Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update ts-proto options (#8306)

boojack654d1d645676
diff --git a/frontend/src/types/proto/google/api/client.ts b/frontend/src/types/proto/google/api/client.ts
index e38085148f..950d983c3f 100644
--- a/frontend/src/types/proto/google/api/client.ts
+++ b/frontend/src/types/proto/google/api/client.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../protobuf/duration";
import { LaunchStage, launchStageFromJSON, launchStageToJSON } from "./launch_stage";
diff --git a/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts b/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
index 9d02bb8e58..16ce959440 100644
--- a/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
+++ b/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../../../protobuf/duration";
import { NullValue, nullValueFromJSON, nullValueToJSON } from "../../../protobuf/struct";
import { Timestamp } from "../../../protobuf/timestamp";
@@ -1973,8 +1973,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/google/api/http.ts b/frontend/src/types/proto/google/api/http.ts
index ac0479a972..259368a644 100644
--- a/frontend/src/types/proto/google/api/http.ts
+++ b/frontend/src/types/proto/google/api/http.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.api";
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index 5fa56442ad..6a78778785 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
@@ -4728,8 +4728,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/google/protobuf/duration.ts b/frontend/src/types/proto/google/protobuf/duration.ts
index f7854f6b36..77dbf42e92 100644
--- a/frontend/src/types/proto/google/protobuf/duration.ts
+++ b/frontend/src/types/proto/google/protobuf/duration.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
@@ -186,8 +186,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/google/protobuf/empty.ts b/frontend/src/types/proto/google/protobuf/empty.ts
index e69a5509e2..553acad987 100644
--- a/frontend/src/types/proto/google/protobuf/empty.ts
+++ b/frontend/src/types/proto/google/protobuf/empty.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
diff --git a/frontend/src/types/proto/google/protobuf/field_mask.ts b/frontend/src/types/proto/google/protobuf/field_mask.ts
index d4bb0c27df..95026d0f0b 100644
--- a/frontend/src/types/proto/google/protobuf/field_mask.ts
+++ b/frontend/src/types/proto/google/protobuf/field_mask.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index 3425fd7e3f..84c94b8355 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.ts
index 4dea0b96ec..d37cc92c1d 100644
--- a/frontend/src/types/proto/google/protobuf/timestamp.ts
+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
@@ -215,8 +215,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/google/protobuf/wrappers.ts b/frontend/src/types/proto/google/protobuf/wrappers.ts
index c1ea99fa46..45f6e35be7 100644
--- a/frontend/src/types/proto/google/protobuf/wrappers.ts
+++ b/frontend/src/types/proto/google/protobuf/wrappers.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
@@ -657,8 +657,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/google/type/expr.ts b/frontend/src/types/proto/google/type/expr.ts
index bb597d8bd3..51e324bc25 100644
--- a/frontend/src/types/proto/google/type/expr.ts
+++ b/frontend/src/types/proto/google/type/expr.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.type";
diff --git a/frontend/src/types/proto/store/activity.ts b/frontend/src/types/proto/store/activity.ts
index 485209b351..bc21950eb7 100644
--- a/frontend/src/types/proto/store/activity.ts
+++ b/frontend/src/types/proto/store/activity.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { ApprovalStep } from "./approval";
export const protobufPackage = "bytebase.store";
@@ -719,8 +719,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/store/approval.ts b/frontend/src/types/proto/store/approval.ts
index 9ea5a69f72..cdad635dc3 100644
--- a/frontend/src/types/proto/store/approval.ts
+++ b/frontend/src/types/proto/store/approval.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/common.ts b/frontend/src/types/proto/store/common.ts
index d26aebc6fe..ceed7e252b 100644
--- a/frontend/src/types/proto/store/common.ts
+++ b/frontend/src/types/proto/store/common.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.ts
index 0fce9e72b6..54fca1398b 100644
--- a/frontend/src/types/proto/store/data_source.ts
+++ b/frontend/src/types/proto/store/data_source.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/database.ts b/frontend/src/types/proto/store/database.ts
index b6c9f6faa1..67cf0c61c6 100644
--- a/frontend/src/types/proto/store/database.ts
+++ b/frontend/src/types/proto/store/database.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Timestamp } from "../google/protobuf/timestamp";
import { StringValue } from "../google/protobuf/wrappers";
@@ -2554,8 +2554,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/store/idp.ts b/frontend/src/types/proto/store/idp.ts
index f3fb775e64..1d42f4c0af 100644
--- a/frontend/src/types/proto/store/idp.ts
+++ b/frontend/src/types/proto/store/idp.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/instance.ts b/frontend/src/types/proto/store/instance.ts
index 8abcc13166..0a44495ee3 100644
--- a/frontend/src/types/proto/store/instance.ts
+++ b/frontend/src/types/proto/store/instance.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Timestamp } from "../google/protobuf/timestamp";
diff --git a/frontend/src/types/proto/store/instance_change_history.ts b/frontend/src/types/proto/store/instance_change_history.ts
index f881e87225..a4d5810536 100644
--- a/frontend/src/types/proto/store/instance_change_history.ts
+++ b/frontend/src/types/proto/store/instance_change_history.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { PushEvent } from "./vcs";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/issue.ts b/frontend/src/types/proto/store/issue.ts
index 4970f20e62..a9cadd8edf 100644
--- a/frontend/src/types/proto/store/issue.ts
+++ b/frontend/src/types/proto/store/issue.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Expr } from "../google/type/expr";
import { IssuePayloadApproval } from "./approval";
diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.ts
index 999b64b05d..ae88a94295 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Timestamp } from "../google/protobuf/timestamp";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/plan_check_run.ts b/frontend/src/types/proto/store/plan_check_run.ts
index e7474a9715..a8a4757982 100644
--- a/frontend/src/types/proto/store/plan_check_run.ts
+++ b/frontend/src/types/proto/store/plan_check_run.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { ChangedResources } from "./instance_change_history";
export const protobufPackage = "bytebase.store";
@@ -697,8 +697,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.ts
index 5d40a2a602..55fc7b791f 100644
--- a/frontend/src/types/proto/store/policy.ts
+++ b/frontend/src/types/proto/store/policy.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Expr } from "../google/type/expr";
import { MaskingLevel, maskingLevelFromJSON, maskingLevelToJSON } from "./common";
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.ts
index f0d129fb92..a82c9c9ba4 100644
--- a/frontend/src/types/proto/store/setting.ts
+++ b/frontend/src/types/proto/store/setting.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { ParsedExpr } from "../google/api/expr/v1alpha1/syntax";
import { Duration } from "../google/protobuf/duration";
import { Expr } from "../google/type/expr";
diff --git a/frontend/src/types/proto/store/sheet.ts b/frontend/src/types/proto/store/sheet.ts
index 2f14e8ffc8..8e16b4187c 100644
--- a/frontend/src/types/proto/store/sheet.ts
+++ b/frontend/src/types/proto/store/sheet.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Engine, engineFromJSON, engineToJSON } from "./common";
import { PushEvent } from "./vcs";
@@ -572,8 +572,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/store/slow_query.ts b/frontend/src/types/proto/store/slow_query.ts
index 1d3942c937..8985442909 100644
--- a/frontend/src/types/proto/store/slow_query.ts
+++ b/frontend/src/types/proto/store/slow_query.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -505,8 +505,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/store/task_run.ts b/frontend/src/types/proto/store/task_run.ts
index a84f8206f9..c0d8a309a5 100644
--- a/frontend/src/types/proto/store/task_run.ts
+++ b/frontend/src/types/proto/store/task_run.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/user.ts b/frontend/src/types/proto/store/user.ts
index 7a639bbcb4..e41dc1d8e0 100644
--- a/frontend/src/types/proto/store/user.ts
+++ b/frontend/src/types/proto/store/user.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
diff --git a/frontend/src/types/proto/store/vcs.ts b/frontend/src/types/proto/store/vcs.ts
index 4b13f9ca2f..c6b3d3c990 100644
--- a/frontend/src/types/proto/store/vcs.ts
+++ b/frontend/src/types/proto/store/vcs.ts
@@ -1,6 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { VcsType, vcsTypeFromJSON, vcsTypeToJSON } from "./common";
export const protobufPackage = "bytebase.store";
@@ -611,8 +611,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.ts
index c8d62b9629..2075b59e29 100644
--- a/frontend/src/types/proto/v1/actuator_service.ts
+++ b/frontend/src/types/proto/v1/actuator_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -960,38 +959,6 @@ export const ActuatorServiceDefinition = {
},
} as const;
-export interface ActuatorServiceImplementation<CallContextExt = {}> {
- getActuatorInfo(
- request: GetActuatorInfoRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ActuatorInfo>>;
- updateActuatorInfo(
- request: UpdateActuatorInfoRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ActuatorInfo>>;
- deleteCache(request: DeleteCacheRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- listDebugLog(
- request: ListDebugLogRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListDebugLogResponse>>;
-}
-
-export interface ActuatorServiceClient<CallOptionsExt = {}> {
- getActuatorInfo(
- request: DeepPartial<GetActuatorInfoRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ActuatorInfo>;
- updateActuatorInfo(
- request: DeepPartial<UpdateActuatorInfoRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ActuatorInfo>;
- deleteCache(request: DeepPartial<DeleteCacheRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- listDebugLog(
- request: DeepPartial<ListDebugLogRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListDebugLogResponse>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/anomaly_service.ts b/frontend/src/types/proto/v1/anomaly_service.ts
index efdcaddbb3..00b3ba37ea 100644
--- a/frontend/src/types/proto/v1/anomaly_service.ts
+++ b/frontend/src/types/proto/v1/anomaly_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Timestamp } from "../google/protobuf/timestamp";
import { BackupPlanSchedule, backupPlanScheduleFromJSON, backupPlanScheduleToJSON } from "./org_policy_service";
@@ -1039,20 +1038,6 @@ export const AnomalyServiceDefinition = {
},
} as const;
-export interface AnomalyServiceImplementation<CallContextExt = {}> {
- searchAnomalies(
- request: SearchAnomaliesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SearchAnomaliesResponse>>;
-}
-
-export interface AnomalyServiceClient<CallOptionsExt = {}> {
- searchAnomalies(
- request: DeepPartial<SearchAnomaliesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SearchAnomaliesResponse>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/auth_service.ts b/frontend/src/types/proto/v1/auth_service.ts
index 89d7600899..4c614c8498 100644
--- a/frontend/src/types/proto/v1/auth_service.ts
+++ b/frontend/src/types/proto/v1/auth_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { State, stateFromJSON, stateToJSON } from "./common";
@@ -1683,28 +1682,6 @@ export const AuthServiceDefinition = {
},
} as const;
-export interface AuthServiceImplementation<CallContextExt = {}> {
- getUser(request: GetUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<User>>;
- listUsers(request: ListUsersRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListUsersResponse>>;
- createUser(request: CreateUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<User>>;
- updateUser(request: UpdateUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<User>>;
- deleteUser(request: DeleteUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- undeleteUser(request: UndeleteUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<User>>;
- login(request: LoginRequest, context: CallContext & CallContextExt): Promise<DeepPartial<LoginResponse>>;
- logout(request: LogoutRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
-}
-
-export interface AuthServiceClient<CallOptionsExt = {}> {
- getUser(request: DeepPartial<GetUserRequest>, options?: CallOptions & CallOptionsExt): Promise<User>;
- listUsers(request: DeepPartial<ListUsersRequest>, options?: CallOptions & CallOptionsExt): Promise<ListUsersResponse>;
- createUser(request: DeepPartial<CreateUserRequest>, options?: CallOptions & CallOptionsExt): Promise<User>;
- updateUser(request: DeepPartial<UpdateUserRequest>, options?: CallOptions & CallOptionsExt): Promise<User>;
- deleteUser(request: DeepPartial<DeleteUserRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- undeleteUser(request: DeepPartial<UndeleteUserRequest>, options?: CallOptions & CallOptionsExt): Promise<User>;
- login(request: DeepPartial<LoginRequest>, options?: CallOptions & CallOptionsExt): Promise<LoginResponse>;
- logout(request: DeepPartial<LogoutRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/bookmark_service.ts b/frontend/src/types/proto/v1/bookmark_service.ts
index 6a785ea209..f1576999aa 100644
--- a/frontend/src/types/proto/v1/bookmark_service.ts
+++ b/frontend/src/types/proto/v1/bookmark_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
export const protobufPackage = "bytebase.v1";
@@ -514,33 +513,6 @@ export const BookmarkServiceDefinition = {
},
} as const;
-export interface BookmarkServiceImplementation<CallContextExt = {}> {
- /** CreateBookmark creates a new bookmark. */
- createBookmark(request: CreateBookmarkRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Bookmark>>;
- /** DeleteBookmark deletes a bookmark. */
- deleteBookmark(request: DeleteBookmarkRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- /** ListBookmarks lists bookmarks. */
- listBookmarks(
- request: ListBookmarksRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListBookmarksResponse>>;
-}
-
-export interface BookmarkServiceClient<CallOptionsExt = {}> {
- /** CreateBookmark creates a new bookmark. */
- createBookmark(
- request: DeepPartial<CreateBookmarkRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Bookmark>;
- /** DeleteBookmark deletes a bookmark. */
- deleteBookmark(request: DeepPartial<DeleteBookmarkRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- /** ListBookmarks lists bookmarks. */
- listBookmarks(
- request: DeepPartial<ListBookmarksRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListBookmarksResponse>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/cel_service.ts b/frontend/src/types/proto/v1/cel_service.ts
index 8b8d546fff..7eab60797b 100644
--- a/frontend/src/types/proto/v1/cel_service.ts
+++ b/frontend/src/types/proto/v1/cel_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { ParsedExpr } from "../google/api/expr/v1alpha1/syntax";
export const protobufPackage = "bytebase.v1";
@@ -309,16 +308,6 @@ export const CelServiceDefinition = {
},
} as const;
-export interface CelServiceImplementation<CallContextExt = {}> {
- parse(request: ParseRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ParseResponse>>;
- deparse(request: DeparseRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeparseResponse>>;
-}
-
-export interface CelServiceClient<CallOptionsExt = {}> {
- parse(request: DeepPartial<ParseRequest>, options?: CallOptions & CallOptionsExt): Promise<ParseResponse>;
- deparse(request: DeepPartial<DeparseRequest>, options?: CallOptions & CallOptionsExt): Promise<DeparseResponse>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/database_edit.ts b/frontend/src/types/proto/v1/database_edit.ts
index c67e70f87d..2050d2565b 100644
--- a/frontend/src/types/proto/v1/database_edit.ts
+++ b/frontend/src/types/proto/v1/database_edit.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.v1";
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index 86fe0c0fc6..0a8ae8f912 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -1,7 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
@@ -8338,147 +8337,6 @@ export const DatabaseServiceDefinition = {
},
} as const;
-export interface DatabaseServiceImplementation<CallContextExt = {}> {
- getDatabase(request: GetDatabaseRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Database>>;
- listDatabases(
- request: ListDatabasesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListDatabasesResponse>>;
- /** Search for databases that the caller has both projects.get permission on, and also satisfy the specified query. */
- searchDatabases(
- request: SearchDatabasesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SearchDatabasesResponse>>;
- updateDatabase(request: UpdateDatabaseRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Database>>;
- batchUpdateDatabases(
- request: BatchUpdateDatabasesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BatchUpdateDatabasesResponse>>;
- syncDatabase(
- request: SyncDatabaseRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SyncDatabaseResponse>>;
- getDatabaseMetadata(
- request: GetDatabaseMetadataRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DatabaseMetadata>>;
- getDatabaseSchema(
- request: GetDatabaseSchemaRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DatabaseSchema>>;
- diffSchema(
- request: DiffSchemaRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DiffSchemaResponse>>;
- getBackupSetting(
- request: GetBackupSettingRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BackupSetting>>;
- updateBackupSetting(
- request: UpdateBackupSettingRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BackupSetting>>;
- createBackup(request: CreateBackupRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Backup>>;
- listBackups(
- request: ListBackupsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListBackupsResponse>>;
- listSlowQueries(
- request: ListSlowQueriesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListSlowQueriesResponse>>;
- listSecrets(
- request: ListSecretsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListSecretsResponse>>;
- updateSecret(request: UpdateSecretRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Secret>>;
- deleteSecret(request: DeleteSecretRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- adviseIndex(
- request: AdviseIndexRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<AdviseIndexResponse>>;
- listChangeHistories(
- request: ListChangeHistoriesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListChangeHistoriesResponse>>;
- getChangeHistory(
- request: GetChangeHistoryRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ChangeHistory>>;
-}
-
-export interface DatabaseServiceClient<CallOptionsExt = {}> {
- getDatabase(request: DeepPartial<GetDatabaseRequest>, options?: CallOptions & CallOptionsExt): Promise<Database>;
- listDatabases(
- request: DeepPartial<ListDatabasesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListDatabasesResponse>;
- /** Search for databases that the caller has both projects.get permission on, and also satisfy the specified query. */
- searchDatabases(
- request: DeepPartial<SearchDatabasesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SearchDatabasesResponse>;
- updateDatabase(
- request: DeepPartial<UpdateDatabaseRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Database>;
- batchUpdateDatabases(
- request: DeepPartial<BatchUpdateDatabasesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BatchUpdateDatabasesResponse>;
- syncDatabase(
- request: DeepPartial<SyncDatabaseRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SyncDatabaseResponse>;
- getDatabaseMetadata(
- request: DeepPartial<GetDatabaseMetadataRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DatabaseMetadata>;
- getDatabaseSchema(
- request: DeepPartial<GetDatabaseSchemaRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DatabaseSchema>;
- diffSchema(
- request: DeepPartial<DiffSchemaRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DiffSchemaResponse>;
- getBackupSetting(
- request: DeepPartial<GetBackupSettingRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BackupSetting>;
- updateBackupSetting(
- request: DeepPartial<UpdateBackupSettingRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BackupSetting>;
- createBackup(request: DeepPartial<CreateBackupRequest>, options?: CallOptions & CallOptionsExt): Promise<Backup>;
- listBackups(
- request: DeepPartial<ListBackupsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListBackupsResponse>;
- listSlowQueries(
- request: DeepPartial<ListSlowQueriesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListSlowQueriesResponse>;
- listSecrets(
- request: DeepPartial<ListSecretsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListSecretsResponse>;
- updateSecret(request: DeepPartial<UpdateSecretRequest>, options?: CallOptions & CallOptionsExt): Promise<Secret>;
- deleteSecret(request: DeepPartial<DeleteSecretRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- adviseIndex(
- request: DeepPartial<AdviseIndexRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<AdviseIndexResponse>;
- listChangeHistories(
- request: DeepPartial<ListChangeHistoriesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListChangeHistoriesResponse>;
- getChangeHistory(
- request: DeepPartial<GetChangeHistoryRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ChangeHistory>;
-}
-
declare const self: any | undefined;
declare const window: any | undefined;
declare const global: any | undefined;
@@ -8534,8 +8392,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/v1/environment_service.ts b/frontend/src/types/proto/v1/environment_service.ts
index 39fb0df27f..8862239d33 100644
--- a/frontend/src/types/proto/v1/environment_service.ts
+++ b/frontend/src/types/proto/v1/environment_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { State, stateFromJSON, stateToJSON } from "./common";
@@ -1271,68 +1270,6 @@ export const EnvironmentServiceDefinition = {
},
} as const;
-export interface EnvironmentServiceImplementation<CallContextExt = {}> {
- getEnvironment(
- request: GetEnvironmentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Environment>>;
- listEnvironments(
- request: ListEnvironmentsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListEnvironmentsResponse>>;
- createEnvironment(
- request: CreateEnvironmentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Environment>>;
- updateEnvironment(
- request: UpdateEnvironmentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Environment>>;
- deleteEnvironment(
- request: DeleteEnvironmentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
- undeleteEnvironment(
- request: UndeleteEnvironmentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Environment>>;
- updateBackupSetting(
- request: UpdateEnvironmentBackupSettingRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<EnvironmentBackupSetting>>;
-}
-
-export interface EnvironmentServiceClient<CallOptionsExt = {}> {
- getEnvironment(
- request: DeepPartial<GetEnvironmentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Environment>;
- listEnvironments(
- request: DeepPartial<ListEnvironmentsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListEnvironmentsResponse>;
- createEnvironment(
- request: DeepPartial<CreateEnvironmentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Environment>;
- updateEnvironment(
- request: DeepPartial<UpdateEnvironmentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Environment>;
- deleteEnvironment(
- request: DeepPartial<DeleteEnvironmentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
- undeleteEnvironment(
- request: DeepPartial<UndeleteEnvironmentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Environment>;
- updateBackupSetting(
- request: DeepPartial<UpdateEnvironmentBackupSettingRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<EnvironmentBackupSetting>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/externalvs_service.ts b/frontend/src/types/proto/v1/externalvs_service.ts
index 3ee8b32b69..fe68b7a80b 100644
--- a/frontend/src/types/proto/v1/externalvs_service.ts
+++ b/frontend/src/types/proto/v1/externalvs_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -2320,73 +2319,6 @@ export const ExternalVersionControlServiceDefinition = {
},
} as const;
-export interface ExternalVersionControlServiceImplementation<CallContextExt = {}> {
- getExternalVersionControl(
- request: GetExternalVersionControlRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ExternalVersionControl>>;
- listExternalVersionControls(
- request: ListExternalVersionControlsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListExternalVersionControlsResponse>>;
- createExternalVersionControl(
- request: CreateExternalVersionControlRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ExternalVersionControl>>;
- updateExternalVersionControl(
- request: UpdateExternalVersionControlRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ExternalVersionControl>>;
- exchangeToken(request: ExchangeTokenRequest, context: CallContext & CallContextExt): Promise<DeepPartial<OAuthToken>>;
- deleteExternalVersionControl(
- request: DeleteExternalVersionControlRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
- searchExternalVersionControlProjects(
- request: SearchExternalVersionControlProjectsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SearchExternalVersionControlProjectsResponse>>;
- listProjectGitOpsInfo(
- request: ListProjectGitOpsInfoRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListProjectGitOpsInfoResponse>>;
-}
-
-export interface ExternalVersionControlServiceClient<CallOptionsExt = {}> {
- getExternalVersionControl(
- request: DeepPartial<GetExternalVersionControlRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ExternalVersionControl>;
- listExternalVersionControls(
- request: DeepPartial<ListExternalVersionControlsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListExternalVersionControlsResponse>;
- createExternalVersionControl(
- request: DeepPartial<CreateExternalVersionControlRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ExternalVersionControl>;
- updateExternalVersionControl(
- request: DeepPartial<UpdateExternalVersionControlRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ExternalVersionControl>;
- exchangeToken(
- request: DeepPartial<ExchangeTokenRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<OAuthToken>;
- deleteExternalVersionControl(
- request: DeepPartial<DeleteExternalVersionControlRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
- searchExternalVersionControlProjects(
- request: DeepPartial<SearchExternalVersionControlProjectsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SearchExternalVersionControlProjectsResponse>;
- listProjectGitOpsInfo(
- request: DeepPartial<ListProjectGitOpsInfoRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListProjectGitOpsInfoResponse>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/iam_policy.ts b/frontend/src/types/proto/v1/iam_policy.ts
index 4c1c0895b5..8a49693ca3 100644
--- a/frontend/src/types/proto/v1/iam_policy.ts
+++ b/frontend/src/types/proto/v1/iam_policy.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { ParsedExpr } from "../google/api/expr/v1alpha1/syntax";
import { Expr } from "../google/type/expr";
diff --git a/frontend/src/types/proto/v1/idp_service.ts b/frontend/src/types/proto/v1/idp_service.ts
index 6de3936442..906ea74daf 100644
--- a/frontend/src/types/proto/v1/idp_service.ts
+++ b/frontend/src/types/proto/v1/idp_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { State, stateFromJSON, stateToJSON } from "./common";
@@ -2074,68 +2073,6 @@ export const IdentityProviderServiceDefinition = {
},
} as const;
-export interface IdentityProviderServiceImplementation<CallContextExt = {}> {
- getIdentityProvider(
- request: GetIdentityProviderRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<IdentityProvider>>;
- listIdentityProviders(
- request: ListIdentityProvidersRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListIdentityProvidersResponse>>;
- createIdentityProvider(
- request: CreateIdentityProviderRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<IdentityProvider>>;
- updateIdentityProvider(
- request: UpdateIdentityProviderRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<IdentityProvider>>;
- deleteIdentityProvider(
- request: DeleteIdentityProviderRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
- undeleteIdentityProvider(
- request: UndeleteIdentityProviderRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<IdentityProvider>>;
- testIdentityProvider(
- request: TestIdentityProviderRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<TestIdentityProviderResponse>>;
-}
-
-export interface IdentityProviderServiceClient<CallOptionsExt = {}> {
- getIdentityProvider(
- request: DeepPartial<GetIdentityProviderRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<IdentityProvider>;
- listIdentityProviders(
- request: DeepPartial<ListIdentityProvidersRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListIdentityProvidersResponse>;
- createIdentityProvider(
- request: DeepPartial<CreateIdentityProviderRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<IdentityProvider>;
- updateIdentityProvider(
- request: DeepPartial<UpdateIdentityProviderRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<IdentityProvider>;
- deleteIdentityProvider(
- request: DeepPartial<DeleteIdentityProviderRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
- undeleteIdentityProvider(
- request: DeepPartial<UndeleteIdentityProviderRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<IdentityProvider>;
- testIdentityProvider(
- request: DeepPartial<TestIdentityProviderRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<TestIdentityProviderResponse>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/inbox_service.ts b/frontend/src/types/proto/v1/inbox_service.ts
index 7281dfea17..5369cbc6ec 100644
--- a/frontend/src/types/proto/v1/inbox_service.ts
+++ b/frontend/src/types/proto/v1/inbox_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { FieldMask } from "../google/protobuf/field_mask";
import { LogEntity } from "./logging_service";
@@ -681,24 +680,6 @@ export const InboxServiceDefinition = {
},
} as const;
-export interface InboxServiceImplementation<CallContextExt = {}> {
- listInbox(request: ListInboxRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListInboxResponse>>;
- getInboxSummary(
- request: GetInboxSummaryRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<InboxSummary>>;
- updateInbox(request: UpdateInboxRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InboxMessage>>;
-}
-
-export interface InboxServiceClient<CallOptionsExt = {}> {
- listInbox(request: DeepPartial<ListInboxRequest>, options?: CallOptions & CallOptionsExt): Promise<ListInboxResponse>;
- getInboxSummary(
- request: DeepPartial<GetInboxSummaryRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<InboxSummary>;
- updateInbox(request: DeepPartial<UpdateInboxRequest>, options?: CallOptions & CallOptionsExt): Promise<InboxMessage>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/instance_role_service.ts b/frontend/src/types/proto/v1/instance_role_service.ts
index e905f6efa3..05300589d5 100644
--- a/frontend/src/types/proto/v1/instance_role_service.ts
+++ b/frontend/src/types/proto/v1/instance_role_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
@@ -1066,60 +1065,6 @@ export const InstanceRoleServiceDefinition = {
},
} as const;
-export interface InstanceRoleServiceImplementation<CallContextExt = {}> {
- getInstanceRole(
- request: GetInstanceRoleRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<InstanceRole>>;
- listInstanceRoles(
- request: ListInstanceRolesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListInstanceRolesResponse>>;
- createInstanceRole(
- request: CreateInstanceRoleRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<InstanceRole>>;
- updateInstanceRole(
- request: UpdateInstanceRoleRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<InstanceRole>>;
- deleteInstanceRole(
- request: DeleteInstanceRoleRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
- undeleteInstanceRole(
- request: UndeleteInstanceRoleRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<InstanceRole>>;
-}
-
-export interface InstanceRoleServiceClient<CallOptionsExt = {}> {
- getInstanceRole(
- request: DeepPartial<GetInstanceRoleRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<InstanceRole>;
- listInstanceRoles(
- request: DeepPartial<ListInstanceRolesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListInstanceRolesResponse>;
- createInstanceRole(
- request: DeepPartial<CreateInstanceRoleRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<InstanceRole>;
- updateInstanceRole(
- request: DeepPartial<UpdateInstanceRoleRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<InstanceRole>;
- deleteInstanceRole(
- request: DeepPartial<DeleteInstanceRoleRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
- undeleteInstanceRole(
- request: DeepPartial<UndeleteInstanceRoleRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<InstanceRole>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index e2f5ab05e7..0dbfc45a78 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
@@ -2408,70 +2407,6 @@ export const InstanceServiceDefinition = {
},
} as const;
-export interface InstanceServiceImplementation<CallContextExt = {}> {
- getInstance(request: GetInstanceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Instance>>;
- listInstances(
- request: ListInstancesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListInstancesResponse>>;
- createInstance(request: CreateInstanceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Instance>>;
- updateInstance(request: UpdateInstanceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Instance>>;
- deleteInstance(request: DeleteInstanceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- undeleteInstance(
- request: UndeleteInstanceRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Instance>>;
- syncInstance(
- request: SyncInstanceRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SyncInstanceResponse>>;
- addDataSource(request: AddDataSourceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Instance>>;
- removeDataSource(
- request: RemoveDataSourceRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Instance>>;
- updateDataSource(
- request: UpdateDataSourceRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Instance>>;
- syncSlowQueries(request: SyncSlowQueriesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
-}
-
-export interface InstanceServiceClient<CallOptionsExt = {}> {
- getInstance(request: DeepPartial<GetInstanceRequest>, options?: CallOptions & CallOptionsExt): Promise<Instance>;
- listInstances(
- request: DeepPartial<ListInstancesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListInstancesResponse>;
- createInstance(
- request: DeepPartial<CreateInstanceRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Instance>;
- updateInstance(
- request: DeepPartial<UpdateInstanceRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Instance>;
- deleteInstance(request: DeepPartial<DeleteInstanceRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- undeleteInstance(
- request: DeepPartial<UndeleteInstanceRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Instance>;
- syncInstance(
- request: DeepPartial<SyncInstanceRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SyncInstanceResponse>;
- addDataSource(request: DeepPartial<AddDataSourceRequest>, options?: CallOptions & CallOptionsExt): Promise<Instance>;
- removeDataSource(
- request: DeepPartial<RemoveDataSourceRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Instance>;
- updateDataSource(
- request: DeepPartial<UpdateDataSourceRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Instance>;
- syncSlowQueries(request: DeepPartial<SyncSlowQueriesRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/issue_service.ts b/frontend/src/types/proto/v1/issue_service.ts
index f189b83db1..1332248622 100644
--- a/frontend/src/types/proto/v1/issue_service.ts
+++ b/frontend/src/types/proto/v1/issue_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -3356,64 +3355,6 @@ export const IssueServiceDefinition = {
},
} as const;
-export interface IssueServiceImplementation<CallContextExt = {}> {
- getIssue(request: GetIssueRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Issue>>;
- createIssue(request: CreateIssueRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Issue>>;
- listIssues(
- request: ListIssuesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListIssuesResponse>>;
- updateIssue(request: UpdateIssueRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Issue>>;
- searchIssues(
- request: SearchIssuesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SearchIssuesResponse>>;
- createIssueComment(
- request: CreateIssueCommentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<IssueComment>>;
- updateIssueComment(
- request: UpdateIssueCommentRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<IssueComment>>;
- batchUpdateIssuesStatus(
- request: BatchUpdateIssuesStatusRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BatchUpdateIssuesStatusResponse>>;
- approveIssue(request: ApproveIssueRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Issue>>;
- rejectIssue(request: RejectIssueRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Issue>>;
- requestIssue(request: RequestIssueRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Issue>>;
-}
-
-export interface IssueServiceClient<CallOptionsExt = {}> {
- getIssue(request: DeepPartial<GetIssueRequest>, options?: CallOptions & CallOptionsExt): Promise<Issue>;
- createIssue(request: DeepPartial<CreateIssueRequest>, options?: CallOptions & CallOptionsExt): Promise<Issue>;
- listIssues(
- request: DeepPartial<ListIssuesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListIssuesResponse>;
- updateIssue(request: DeepPartial<UpdateIssueRequest>, options?: CallOptions & CallOptionsExt): Promise<Issue>;
- searchIssues(
- request: DeepPartial<SearchIssuesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SearchIssuesResponse>;
- createIssueComment(
- request: DeepPartial<CreateIssueCommentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<IssueComment>;
- updateIssueComment(
- request: DeepPartial<UpdateIssueCommentRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<IssueComment>;
- batchUpdateIssuesStatus(
- request: DeepPartial<BatchUpdateIssuesStatusRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BatchUpdateIssuesStatusResponse>;
- approveIssue(request: DeepPartial<ApproveIssueRequest>, options?: CallOptions & CallOptionsExt): Promise<Issue>;
- rejectIssue(request: DeepPartial<RejectIssueRequest>, options?: CallOptions & CallOptionsExt): Promise<Issue>;
- requestIssue(request: DeepPartial<RequestIssueRequest>, options?: CallOptions & CallOptionsExt): Promise<Issue>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/logging_service.ts b/frontend/src/types/proto/v1/logging_service.ts
index 367543f4b9..146819618f 100644
--- a/frontend/src/types/proto/v1/logging_service.ts
+++ b/frontend/src/types/proto/v1/logging_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Timestamp } from "../google/protobuf/timestamp";
import { ExportFormat, exportFormatFromJSON, exportFormatToJSON } from "./common";
@@ -1003,24 +1002,6 @@ export const LoggingServiceDefinition = {
},
} as const;
-export interface LoggingServiceImplementation<CallContextExt = {}> {
- listLogs(request: ListLogsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListLogsResponse>>;
- getLog(request: GetLogRequest, context: CallContext & CallContextExt): Promise<DeepPartial<LogEntity>>;
- exportLogs(
- request: ExportLogsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ExportLogsResponse>>;
-}
-
-export interface LoggingServiceClient<CallOptionsExt = {}> {
- listLogs(request: DeepPartial<ListLogsRequest>, options?: CallOptions & CallOptionsExt): Promise<ListLogsResponse>;
- getLog(request: DeepPartial<GetLogRequest>, options?: CallOptions & CallOptionsExt): Promise<LogEntity>;
- exportLogs(
- request: DeepPartial<ExportLogsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ExportLogsResponse>;
-}
-
declare const self: any | undefined;
declare const window: any | undefined;
declare const global: any | undefined;
diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.ts
index 11790e15a2..1f1367783c 100644
--- a/frontend/src/types/proto/v1/org_policy_service.ts
+++ b/frontend/src/types/proto/v1/org_policy_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
@@ -3533,28 +3532,6 @@ export const OrgPolicyServiceDefinition = {
},
} as const;
-export interface OrgPolicyServiceImplementation<CallContextExt = {}> {
- getPolicy(request: GetPolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Policy>>;
- listPolicies(
- request: ListPoliciesRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListPoliciesResponse>>;
- createPolicy(request: CreatePolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Policy>>;
- updatePolicy(request: UpdatePolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Policy>>;
- deletePolicy(request: DeletePolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
-}
-
-export interface OrgPolicyServiceClient<CallOptionsExt = {}> {
- getPolicy(request: DeepPartial<GetPolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<Policy>;
- listPolicies(
- request: DeepPartial<ListPoliciesRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListPoliciesResponse>;
- createPolicy(request: DeepPartial<CreatePolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<Policy>;
- updatePolicy(request: DeepPartial<UpdatePolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<Policy>;
- deletePolicy(request: DeepPartial<DeletePolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.ts
index fd15ee903d..76f62ec705 100644
--- a/frontend/src/types/proto/v1/project_service.ts
+++ b/frontend/src/types/proto/v1/project_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Expr } from "../google/type/expr";
@@ -7041,200 +7040,6 @@ export const ProjectServiceDefinition = {
},
} as const;
-export interface ProjectServiceImplementation<CallContextExt = {}> {
- getProject(request: GetProjectRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Project>>;
- listProjects(
- request: ListProjectsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListProjectsResponse>>;
- /** Search for projects that the caller has both projects.get permission on, and also satisfy the specified query. */
- searchProjects(
- request: SearchProjectsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SearchProjectsResponse>>;
- createProject(request: CreateProjectRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Project>>;
- updateProject(request: UpdateProjectRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Project>>;
- deleteProject(request: DeleteProjectRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- undeleteProject(
- request: UndeleteProjectRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Project>>;
- getIamPolicy(request: GetIamPolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<IamPolicy>>;
- batchGetIamPolicy(
- request: BatchGetIamPolicyRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BatchGetIamPolicyResponse>>;
- setIamPolicy(request: SetIamPolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<IamPolicy>>;
- getDeploymentConfig(
- request: GetDeploymentConfigRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DeploymentConfig>>;
- updateDeploymentConfig(
- request: UpdateDeploymentConfigRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DeploymentConfig>>;
- addWebhook(request: AddWebhookRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Project>>;
- updateWebhook(request: UpdateWebhookRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Project>>;
- removeWebhook(request: RemoveWebhookRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Project>>;
- testWebhook(
- request: TestWebhookRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<TestWebhookResponse>>;
- updateProjectGitOpsInfo(
- request: UpdateProjectGitOpsInfoRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ProjectGitOpsInfo>>;
- unsetProjectGitOpsInfo(
- request: UnsetProjectGitOpsInfoRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
- setupProjectSQLReviewCI(
- request: SetupSQLReviewCIRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SetupSQLReviewCIResponse>>;
- getProjectGitOpsInfo(
- request: GetProjectGitOpsInfoRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ProjectGitOpsInfo>>;
- listDatabaseGroups(
- request: ListDatabaseGroupsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListDatabaseGroupsResponse>>;
- getDatabaseGroup(
- request: GetDatabaseGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DatabaseGroup>>;
- createDatabaseGroup(
- request: CreateDatabaseGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DatabaseGroup>>;
- updateDatabaseGroup(
- request: UpdateDatabaseGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DatabaseGroup>>;
- deleteDatabaseGroup(
- request: DeleteDatabaseGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
- listSchemaGroups(
- request: ListSchemaGroupsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListSchemaGroupsResponse>>;
- getSchemaGroup(
- request: GetSchemaGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaGroup>>;
- createSchemaGroup(
- request: CreateSchemaGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaGroup>>;
- updateSchemaGroup(
- request: UpdateSchemaGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaGroup>>;
- deleteSchemaGroup(
- request: DeleteSchemaGroupRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
-}
-
-export interface ProjectServiceClient<CallOptionsExt = {}> {
- getProject(request: DeepPartial<GetProjectRequest>, options?: CallOptions & CallOptionsExt): Promise<Project>;
- listProjects(
- request: DeepPartial<ListProjectsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListProjectsResponse>;
- /** Search for projects that the caller has both projects.get permission on, and also satisfy the specified query. */
- searchProjects(
- request: DeepPartial<SearchProjectsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SearchProjectsResponse>;
- createProject(request: DeepPartial<CreateProjectRequest>, options?: CallOptions & CallOptionsExt): Promise<Project>;
- updateProject(request: DeepPartial<UpdateProjectRequest>, options?: CallOptions & CallOptionsExt): Promise<Project>;
- deleteProject(request: DeepPartial<DeleteProjectRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- undeleteProject(
- request: DeepPartial<UndeleteProjectRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Project>;
- getIamPolicy(request: DeepPartial<GetIamPolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<IamPolicy>;
- batchGetIamPolicy(
- request: DeepPartial<BatchGetIamPolicyRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BatchGetIamPolicyResponse>;
- setIamPolicy(request: DeepPartial<SetIamPolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<IamPolicy>;
- getDeploymentConfig(
- request: DeepPartial<GetDeploymentConfigRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DeploymentConfig>;
- updateDeploymentConfig(
- request: DeepPartial<UpdateDeploymentConfigRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DeploymentConfig>;
- addWebhook(request: DeepPartial<AddWebhookRequest>, options?: CallOptions & CallOptionsExt): Promise<Project>;
- updateWebhook(request: DeepPartial<UpdateWebhookRequest>, options?: CallOptions & CallOptionsExt): Promise<Project>;
- removeWebhook(request: DeepPartial<RemoveWebhookRequest>, options?: CallOptions & CallOptionsExt): Promise<Project>;
- testWebhook(
- request: DeepPartial<TestWebhookRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<TestWebhookResponse>;
- updateProjectGitOpsInfo(
- request: DeepPartial<UpdateProjectGitOpsInfoRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ProjectGitOpsInfo>;
- unsetProjectGitOpsInfo(
- request: DeepPartial<UnsetProjectGitOpsInfoRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
- setupProjectSQLReviewCI(
- request: DeepPartial<SetupSQLReviewCIRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SetupSQLReviewCIResponse>;
- getProjectGitOpsInfo(
- request: DeepPartial<GetProjectGitOpsInfoRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ProjectGitOpsInfo>;
- listDatabaseGroups(
- request: DeepPartial<ListDatabaseGroupsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListDatabaseGroupsResponse>;
- getDatabaseGroup(
- request: DeepPartial<GetDatabaseGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DatabaseGroup>;
- createDatabaseGroup(
- request: DeepPartial<CreateDatabaseGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DatabaseGroup>;
- updateDatabaseGroup(
- request: DeepPartial<UpdateDatabaseGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DatabaseGroup>;
- deleteDatabaseGroup(
- request: DeepPartial<DeleteDatabaseGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
- listSchemaGroups(
- request: DeepPartial<ListSchemaGroupsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListSchemaGroupsResponse>;
- getSchemaGroup(
- request: DeepPartial<GetSchemaGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaGroup>;
- createSchemaGroup(
- request: DeepPartial<CreateSchemaGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaGroup>;
- updateSchemaGroup(
- request: DeepPartial<UpdateSchemaGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaGroup>;
- deleteSchemaGroup(
- request: DeepPartial<DeleteSchemaGroupRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/risk_service.ts b/frontend/src/types/proto/v1/risk_service.ts
index 73d7ce7a42..53729fa67d 100644
--- a/frontend/src/types/proto/v1/risk_service.ts
+++ b/frontend/src/types/proto/v1/risk_service.ts
@@ -1,7 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Expr } from "../google/type/expr";
@@ -716,20 +715,6 @@ export const RiskServiceDefinition = {
},
} as const;
-export interface RiskServiceImplementation<CallContextExt = {}> {
- listRisks(request: ListRisksRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListRisksResponse>>;
- createRisk(request: CreateRiskRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Risk>>;
- updateRisk(request: UpdateRiskRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Risk>>;
- deleteRisk(request: DeleteRiskRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
-}
-
-export interface RiskServiceClient<CallOptionsExt = {}> {
- listRisks(request: DeepPartial<ListRisksRequest>, options?: CallOptions & CallOptionsExt): Promise<ListRisksResponse>;
- createRisk(request: DeepPartial<CreateRiskRequest>, options?: CallOptions & CallOptionsExt): Promise<Risk>;
- updateRisk(request: DeepPartial<UpdateRiskRequest>, options?: CallOptions & CallOptionsExt): Promise<Risk>;
- deleteRisk(request: DeepPartial<DeleteRiskRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
-}
-
declare const self: any | undefined;
declare const window: any | undefined;
declare const global: any | undefined;
@@ -763,8 +748,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/v1/role_service.ts b/frontend/src/types/proto/v1/role_service.ts
index 0aabe1d545..4b2d012579 100644
--- a/frontend/src/types/proto/v1/role_service.ts
+++ b/frontend/src/types/proto/v1/role_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
@@ -607,20 +606,6 @@ export const RoleServiceDefinition = {
},
} as const;
-export interface RoleServiceImplementation<CallContextExt = {}> {
- listRoles(request: ListRolesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListRolesResponse>>;
- createRole(request: CreateRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Role>>;
- updateRole(request: UpdateRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Role>>;
- deleteRole(request: DeleteRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
-}
-
-export interface RoleServiceClient<CallOptionsExt = {}> {
- listRoles(request: DeepPartial<ListRolesRequest>, options?: CallOptions & CallOptionsExt): Promise<ListRolesResponse>;
- createRole(request: DeepPartial<CreateRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Role>;
- updateRole(request: DeepPartial<UpdateRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Role>;
- deleteRole(request: DeepPartial<DeleteRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index b7471ca415..95c6dd3432 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -1,7 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
import { ChangedResources } from "./database_service";
@@ -6095,74 +6094,6 @@ export const RolloutServiceDefinition = {
},
} as const;
-export interface RolloutServiceImplementation<CallContextExt = {}> {
- getPlan(request: GetPlanRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Plan>>;
- listPlans(request: ListPlansRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListPlansResponse>>;
- createPlan(request: CreatePlanRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Plan>>;
- updatePlan(request: UpdatePlanRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Plan>>;
- getRollout(request: GetRolloutRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Rollout>>;
- createRollout(request: CreateRolloutRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Rollout>>;
- previewRollout(request: PreviewRolloutRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Rollout>>;
- listTaskRuns(
- request: ListTaskRunsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListTaskRunsResponse>>;
- listPlanCheckRuns(
- request: ListPlanCheckRunsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListPlanCheckRunsResponse>>;
- runPlanChecks(
- request: RunPlanChecksRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<RunPlanChecksResponse>>;
- batchRunTasks(
- request: BatchRunTasksRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BatchRunTasksResponse>>;
- batchSkipTasks(
- request: BatchSkipTasksRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BatchSkipTasksResponse>>;
- batchCancelTaskRuns(
- request: BatchCancelTaskRunsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<BatchCancelTaskRunsResponse>>;
-}
-
-export interface RolloutServiceClient<CallOptionsExt = {}> {
- getPlan(request: DeepPartial<GetPlanRequest>, options?: CallOptions & CallOptionsExt): Promise<Plan>;
- listPlans(request: DeepPartial<ListPlansRequest>, options?: CallOptions & CallOptionsExt): Promise<ListPlansResponse>;
- createPlan(request: DeepPartial<CreatePlanRequest>, options?: CallOptions & CallOptionsExt): Promise<Plan>;
- updatePlan(request: DeepPartial<UpdatePlanRequest>, options?: CallOptions & CallOptionsExt): Promise<Plan>;
- getRollout(request: DeepPartial<GetRolloutRequest>, options?: CallOptions & CallOptionsExt): Promise<Rollout>;
- createRollout(request: DeepPartial<CreateRolloutRequest>, options?: CallOptions & CallOptionsExt): Promise<Rollout>;
- previewRollout(request: DeepPartial<PreviewRolloutRequest>, options?: CallOptions & CallOptionsExt): Promise<Rollout>;
- listTaskRuns(
- request: DeepPartial<ListTaskRunsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListTaskRunsResponse>;
- listPlanCheckRuns(
- request: DeepPartial<ListPlanCheckRunsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListPlanCheckRunsResponse>;
- runPlanChecks(
- request: DeepPartial<RunPlanChecksRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<RunPlanChecksResponse>;
- batchRunTasks(
- request: DeepPartial<BatchRunTasksRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BatchRunTasksResponse>;
- batchSkipTasks(
- request: DeepPartial<BatchSkipTasksRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BatchSkipTasksResponse>;
- batchCancelTaskRuns(
- request: DeepPartial<BatchCancelTaskRunsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<BatchCancelTaskRunsResponse>;
-}
-
declare const self: any | undefined;
declare const window: any | undefined;
declare const global: any | undefined;
@@ -6218,8 +6149,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.ts
index 4c64bdf392..dce1c3f425 100644
--- a/frontend/src/types/proto/v1/schema_design_service.ts
+++ b/frontend/src/types/proto/v1/schema_design_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -1711,68 +1710,6 @@ export const SchemaDesignServiceDefinition = {
},
} as const;
-export interface SchemaDesignServiceImplementation<CallContextExt = {}> {
- getSchemaDesign(
- request: GetSchemaDesignRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaDesign>>;
- listSchemaDesigns(
- request: ListSchemaDesignsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListSchemaDesignsResponse>>;
- createSchemaDesign(
- request: CreateSchemaDesignRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaDesign>>;
- updateSchemaDesign(
- request: UpdateSchemaDesignRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaDesign>>;
- mergeSchemaDesign(
- request: MergeSchemaDesignRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SchemaDesign>>;
- parseSchemaString(
- request: ParseSchemaStringRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ParseSchemaStringResponse>>;
- deleteSchemaDesign(
- request: DeleteSchemaDesignRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Empty>>;
-}
-
-export interface SchemaDesignServiceClient<CallOptionsExt = {}> {
- getSchemaDesign(
- request: DeepPartial<GetSchemaDesignRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaDesign>;
- listSchemaDesigns(
- request: DeepPartial<ListSchemaDesignsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListSchemaDesignsResponse>;
- createSchemaDesign(
- request: DeepPartial<CreateSchemaDesignRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaDesign>;
- updateSchemaDesign(
- request: DeepPartial<UpdateSchemaDesignRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaDesign>;
- mergeSchemaDesign(
- request: DeepPartial<MergeSchemaDesignRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SchemaDesign>;
- parseSchemaString(
- request: DeepPartial<ParseSchemaStringRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ParseSchemaStringResponse>;
- deleteSchemaDesign(
- request: DeepPartial<DeleteSchemaDesignRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Empty>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.ts
index 29d4acb98e..2b81897697 100644
--- a/frontend/src/types/proto/v1/setting_service.ts
+++ b/frontend/src/types/proto/v1/setting_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Timestamp } from "../google/protobuf/timestamp";
import { Expr } from "../google/type/expr";
@@ -3494,24 +3493,6 @@ export const SettingServiceDefinition = {
},
} as const;
-export interface SettingServiceImplementation<CallContextExt = {}> {
- listSettings(
- request: ListSettingsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<ListSettingsResponse>>;
- getSetting(request: GetSettingRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Setting>>;
- setSetting(request: SetSettingRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Setting>>;
-}
-
-export interface SettingServiceClient<CallOptionsExt = {}> {
- listSettings(
- request: DeepPartial<ListSettingsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<ListSettingsResponse>;
- getSetting(request: DeepPartial<GetSettingRequest>, options?: CallOptions & CallOptionsExt): Promise<Setting>;
- setSetting(request: DeepPartial<SetSettingRequest>, options?: CallOptions & CallOptionsExt): Promise<Setting>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/sheet_service.ts b/frontend/src/types/proto/v1/sheet_service.ts
index 6bc026d635..2a1237ab9d 100644
--- a/frontend/src/types/proto/v1/sheet_service.ts
+++ b/frontend/src/types/proto/v1/sheet_service.ts
@@ -1,7 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -1673,38 +1672,6 @@ export const SheetServiceDefinition = {
},
} as const;
-export interface SheetServiceImplementation<CallContextExt = {}> {
- createSheet(request: CreateSheetRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Sheet>>;
- getSheet(request: GetSheetRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Sheet>>;
- searchSheets(
- request: SearchSheetsRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SearchSheetsResponse>>;
- updateSheet(request: UpdateSheetRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Sheet>>;
- updateSheetOrganizer(
- request: UpdateSheetOrganizerRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<SheetOrganizer>>;
- deleteSheet(request: DeleteSheetRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
- syncSheets(request: SyncSheetsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
-}
-
-export interface SheetServiceClient<CallOptionsExt = {}> {
- createSheet(request: DeepPartial<CreateSheetRequest>, options?: CallOptions & CallOptionsExt): Promise<Sheet>;
- getSheet(request: DeepPartial<GetSheetRequest>, options?: CallOptions & CallOptionsExt): Promise<Sheet>;
- searchSheets(
- request: DeepPartial<SearchSheetsRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SearchSheetsResponse>;
- updateSheet(request: DeepPartial<UpdateSheetRequest>, options?: CallOptions & CallOptionsExt): Promise<Sheet>;
- updateSheetOrganizer(
- request: DeepPartial<UpdateSheetOrganizerRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<SheetOrganizer>;
- deleteSheet(request: DeepPartial<DeleteSheetRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
- syncSheets(request: DeepPartial<SyncSheetsRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
-}
-
declare const self: any | undefined;
declare const window: any | undefined;
declare const global: any | undefined;
@@ -1785,8 +1752,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.ts
index 0f96b95010..2174f1c971 100644
--- a/frontend/src/types/proto/v1/sql_service.ts
+++ b/frontend/src/types/proto/v1/sql_service.ts
@@ -1,7 +1,6 @@
/* eslint-disable */
-import * as Long from "long";
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import Long from "long";
+import _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { NullValue, nullValueFromJSON, nullValueToJSON, Value } from "../google/protobuf/struct";
import { Engine, engineFromJSON, engineToJSON, ExportFormat, exportFormatFromJSON, exportFormatToJSON } from "./common";
@@ -2065,36 +2064,6 @@ export const SQLServiceDefinition = {
},
} as const;
-export interface SQLServiceImplementation<CallContextExt = {}> {
- pretty(request: PrettyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<PrettyResponse>>;
- query(request: QueryRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryResponse>>;
- export(request: ExportRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ExportResponse>>;
- adminExecute(
- request: AsyncIterable<AdminExecuteRequest>,
- context: CallContext & CallContextExt,
- ): ServerStreamingMethodResult<DeepPartial<AdminExecuteResponse>>;
- differPreview(
- request: DifferPreviewRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<DifferPreviewResponse>>;
- check(request: CheckRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CheckResponse>>;
-}
-
-export interface SQLServiceClient<CallOptionsExt = {}> {
- pretty(request: DeepPartial<PrettyRequest>, options?: CallOptions & CallOptionsExt): Promise<PrettyResponse>;
- query(request: DeepPartial<QueryRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryResponse>;
- export(request: DeepPartial<ExportRequest>, options?: CallOptions & CallOptionsExt): Promise<ExportResponse>;
- adminExecute(
- request: AsyncIterable<DeepPartial<AdminExecuteRequest>>,
- options?: CallOptions & CallOptionsExt,
- ): AsyncIterable<AdminExecuteResponse>;
- differPreview(
- request: DeepPartial<DifferPreviewRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<DifferPreviewResponse>;
- check(request: DeepPartial<CheckRequest>, options?: CallOptions & CallOptionsExt): Promise<CheckResponse>;
-}
-
declare const self: any | undefined;
declare const window: any | undefined;
declare const global: any | undefined;
@@ -2153,8 +2122,6 @@ function longToNumber(long: Long): number {
return long.toNumber();
}
-// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
-// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
@@ -2163,5 +2130,3 @@ if (_m0.util.Long !== Long) {
function isSet(value: any): boolean {
return value !== null && value !== undefined;
}
-
-export type ServerStreamingMethodResult<Response> = { [Symbol.asyncIterator](): AsyncIterator<Response, void> };
diff --git a/frontend/src/types/proto/v1/subscription_service.ts b/frontend/src/types/proto/v1/subscription_service.ts
index 219bb6c2af..37f2ca089f 100644
--- a/frontend/src/types/proto/v1/subscription_service.ts
+++ b/frontend/src/types/proto/v1/subscription_service.ts
@@ -1,6 +1,5 @@
/* eslint-disable */
-import type { CallContext, CallOptions } from "nice-grpc-common";
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Timestamp } from "../google/protobuf/timestamp";
export const protobufPackage = "bytebase.v1";
@@ -934,44 +933,6 @@ export const SubscriptionServiceDefinition = {
},
} as const;
-export interface SubscriptionServiceImplementation<CallContextExt = {}> {
- getSubscription(
- request: GetSubscriptionRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Subscription>>;
- getFeatureMatrix(
- request: GetFeatureMatrixRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<FeatureMatrix>>;
- updateSubscription(
- request: UpdateSubscriptionRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Subscription>>;
- trialSubscription(
- request: TrialSubscriptionRequest,
- context: CallContext & CallContextExt,
- ): Promise<DeepPartial<Subscription>>;
-}
-
-export interface SubscriptionServiceClient<CallOptionsExt = {}> {
- getSubscription(
- request: DeepPartial<GetSubscriptionRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Subscription>;
- getFeatureMatrix(
- request: DeepPartial<GetFeatureMatrixRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<FeatureMatrix>;
- updateSubscription(
- request: DeepPartial<UpdateSubscriptionRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Subscription>;
- trialSubscription(
- request: DeepPartial<TrialSubscriptionRequest>,
- options?: CallOptions & CallOptionsExt,
- ): Promise<Subscription>;
-}
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/vcs.ts b/frontend/src/types/proto/v1/vcs.ts
index 49a2376923..39bf5fa655 100644
--- a/frontend/src/types/proto/v1/vcs.ts
+++ b/frontend/src/types/proto/v1/vcs.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-import * as _m0 from "protobufjs/minimal";
+import _m0 from "protobufjs/minimal";
import { Timestamp } from "../google/protobuf/timestamp";
export const protobufPackage = "bytebase.v1";
diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml
index b8473a45cd..92e0ac9497 100644
--- a/proto/buf.gen.yaml
+++ b/proto/buf.gen.yaml
@@ -14,7 +14,12 @@ plugins:
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
out: ../frontend/src/types/proto
# reference: https://github.com/deeplay-io/nice-grpc/blob/master/packages/nice-grpc-web/README.md#using-ts-proto
- opt: env=browser,useOptionals=messages,outputServices=nice-grpc,outputServices=generic-definitions,useExactTypes=false
+ opt:
+ - env=browser
+ - useOptionals=messages
+ - outputServices=generic-definitions
+ - useExactTypes=false
+ - esModuleInterop=true
- plugin: buf.build/community/pseudomuto-doc:v1.5.1
out: gen/grpc-doc
opt: