Skip to content

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

chore: update generated proto (#7044)

Danny Xu487d37852436
diff --git a/frontend/package.json b/frontend/package.json
index 2610b6af8c..58397fbce6 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -125,7 +125,7 @@
"prettier": "2.7.1",
"protobufjs": "^7.2.2",
"tailwindcss": "3.2.1",
- "ts-proto": "^1.143.0",
+ "ts-proto": "^1.152.1",
"typescript": "4.8.4",
"unplugin-icons": "0.15.2",
"unplugin-vue-components": "0.22.9",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 70f271eb17..67860189e4 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -335,8 +335,8 @@ devDependencies:
specifier: 3.2.1
version: 3.2.1([email protected])
ts-proto:
- specifier: ^1.143.0
- version: 1.146.0
+ specifier: ^1.152.1
+ version: 1.152.1
typescript:
specifier: 4.8.4
version: 4.8.4
@@ -595,8 +595,8 @@ packages:
vue-i18n:
optional: true
dependencies:
- '@intlify/message-compiler': 9.3.0-beta.20
- '@intlify/shared': 9.3.0-beta.20
+ '@intlify/message-compiler': 9.3.0-beta.24
+ '@intlify/shared': 9.3.0-beta.24
jsonc-eslint-parser: 1.4.1
source-map: 0.6.1
vue-i18n: 9.2.2([email protected])
@@ -625,11 +625,11 @@ packages:
'@intlify/shared': 9.2.2
source-map: 0.6.1
- /@intlify/[email protected]:
- resolution: {integrity: sha512-hwqQXyTnDzAVZ300SU31jO0+3OJbpOdfVU6iBkrmNpS7t2HRnVACo0EwcEXzJa++4EVDreqz5OeqJbt+PeSGGA==}
+ /@intlify/[email protected]:
+ resolution: {integrity: sha512-prhHATkgp0mpPqoVgiAtLmUc1JMvs8fMH6w53AVEBn+VF87dLhzanfmWY5FoZWORG51ag54gBDBOoM/VFv3m3A==}
engines: {node: '>= 16'}
dependencies:
- '@intlify/shared': 9.3.0-beta.20
+ '@intlify/shared': 9.3.0-beta.24
source-map-js: 1.0.2
dev: true
@@ -637,8 +637,8 @@ packages:
resolution: {integrity: sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q==}
engines: {node: '>= 14'}
- /@intlify/[email protected]:
- resolution: {integrity: sha512-RucSPqh8O9FFxlYUysQTerSw0b9HIRpyoN1Zjogpm0qLiHK+lBNSa5sh1nCJ4wSsNcjphzgpLQCyR60GZlRV8g==}
+ /@intlify/[email protected]:
+ resolution: {integrity: sha512-AKxJ8s7eKIQWkNaf4wyyoLRwf4puCuQgjSChlDJm5JBEt6T8HGgnYTJLRXu6LD/JACn3Qwu6hM/XRX1c9yvjmQ==}
engines: {node: '>= 16'}
dev: true
@@ -658,7 +658,7 @@ packages:
optional: true
dependencies:
'@intlify/bundle-utils': 3.4.0([email protected])
- '@intlify/shared': 9.3.0-beta.20
+ '@intlify/shared': 9.3.0-beta.24
'@rollup/pluginutils': 4.2.1
debug: 4.3.4
fast-glob: 3.2.12
@@ -1115,8 +1115,8 @@ packages:
resolution: {integrity: sha512-3YBVyWfiwIGDcQY+2ZeT3LxyApYnV3PrysjIKeNkQtT9Q9eq2mcPPcqSCYR4v/FhYJ9xtZNhXMKNxCn6ukLsXQ==}
dev: true
- resolution: {integrity: sha512-xFdpkAkikBgqBdG9vIlsqffDV8GpvnPEzs0IUtr1v3BEB97ijsFQ4RXVbUZwjFThhB4MDSTUfvmxUD5PGx0wXA==}
+ resolution: {integrity: sha512-tfyXl1JPCf2hzIDK29gO7qGqJjThKBzg/Cn3bA68R9NmWdOx+f7k5mm4to/n43BHspCwcoUC6FU4NpUoK/h9bQ==}
dev: true
@@ -3854,11 +3854,6 @@ packages:
boolbase: 1.0.0
dev: true
- resolution: {integrity: sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA==}
- engines: {node: '>= 0.10.0'}
- dev: true
-
resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
engines: {node: '>= 6'}
@@ -4756,24 +4751,24 @@ packages:
dprint-node: 1.0.7
dev: true
- resolution: {integrity: sha512-iV20plcI8+GRkeZIAygxOOH0p2xpOsKfw9kI1W20NCwawi1/4bG/YRd9rQY9XSJP+lD9j7XbSy3tFFuikfsljw==}
+ resolution: {integrity: sha512-Ui8zA5Q4Jnq6JIGRraUWvECrqixxtwwin8GkhIkvwCpR+JcSPsxWe8HfTj5eHfyruGYI6Zjf96XlC87hTakHfQ==}
dependencies:
long: 4.0.0
protobufjs: 6.11.3
dev: true
- resolution: {integrity: sha512-OyBZRjmqqw+aatLEUbRooWO6VKTtOLJQyaQFMciigEZPNgTsWtApqHpQDtqDMQFWEXhIARqEV+B7ZJx8cljhZA==}
+ resolution: {integrity: sha512-DaCLCZMCizGueKwK6QmMmK8rG4aKzEP2mwC8Gln8/o818XvSwAux7b2Ne6YjCM3iqCGMFzvJUYYzaITrdbL1gQ==}
hasBin: true
dependencies:
- '@types/object-hash': 1.3.4
+ '@types/object-hash': 3.0.2
case-anything: 2.1.10
dataloader: 1.4.0
- object-hash: 1.3.1
+ object-hash: 3.0.0
protobufjs: 6.11.3
ts-poet: 6.4.1
- ts-proto-descriptors: 1.8.0
+ ts-proto-descriptors: 1.9.0
dev: true
diff --git a/frontend/src/types/proto/google/api/client.ts b/frontend/src/types/proto/google/api/client.ts
index 8d9ec11e16..e38085148f 100644
--- a/frontend/src/types/proto/google/api/client.ts
+++ b/frontend/src/types/proto/google/api/client.ts
@@ -164,21 +164,35 @@ export interface ClientLibrarySettings {
*/
restNumericEnums: boolean;
/** Settings for legacy Java features, supported in the Service YAML. */
- javaSettings?: JavaSettings;
+ javaSettings?:
+ | JavaSettings
+ | undefined;
/** Settings for C++ client libraries. */
- cppSettings?: CppSettings;
+ cppSettings?:
+ | CppSettings
+ | undefined;
/** Settings for PHP client libraries. */
- phpSettings?: PhpSettings;
+ phpSettings?:
+ | PhpSettings
+ | undefined;
/** Settings for Python client libraries. */
- pythonSettings?: PythonSettings;
+ pythonSettings?:
+ | PythonSettings
+ | undefined;
/** Settings for Node client libraries. */
- nodeSettings?: NodeSettings;
+ nodeSettings?:
+ | NodeSettings
+ | undefined;
/** Settings for .NET client libraries. */
- dotnetSettings?: DotnetSettings;
+ dotnetSettings?:
+ | DotnetSettings
+ | undefined;
/** Settings for Ruby client libraries. */
- rubySettings?: RubySettings;
+ rubySettings?:
+ | RubySettings
+ | undefined;
/** Settings for Go client libraries. */
- goSettings?: GoSettings;
+ goSettings?: GoSettings | undefined;
}
/**
@@ -269,7 +283,7 @@ export interface JavaSettings {
*/
serviceClassNames: { [key: string]: string };
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
export interface JavaSettings_ServiceClassNamesEntry {
@@ -280,31 +294,33 @@ export interface JavaSettings_ServiceClassNamesEntry {
/** Settings for C++ client libraries. */
export interface CppSettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
/** Settings for Php client libraries. */
export interface PhpSettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
/** Settings for Python client libraries. */
export interface PythonSettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
/** Settings for Node client libraries. */
export interface NodeSettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
/** Settings for Dotnet client libraries. */
export interface DotnetSettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?:
+ | CommonLanguageSettings
+ | undefined;
/**
* Map from original service names to renamed versions.
* This is used when the default generated types
@@ -355,13 +371,13 @@ export interface DotnetSettings_RenamedResourcesEntry {
/** Settings for Ruby client libraries. */
export interface RubySettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
/** Settings for Go client libraries. */
export interface GoSettings {
/** Some settings. */
- common?: CommonLanguageSettings;
+ common?: CommonLanguageSettings | undefined;
}
/** Describes the generator configuration for a method. */
@@ -390,7 +406,7 @@ export interface MethodSettings {
* total_poll_timeout:
* seconds: 54000 # 90 minutes
*/
- longRunning?: MethodSettings_LongRunning;
+ longRunning?: MethodSettings_LongRunning | undefined;
}
/**
@@ -405,7 +421,9 @@ export interface MethodSettings_LongRunning {
* Initial delay after which the first poll request will be made.
* Default value: 5 seconds.
*/
- initialPollDelay?: Duration;
+ initialPollDelay?:
+ | Duration
+ | undefined;
/**
* Multiplier to gradually increase delay between subsequent polls until it
* reaches max_poll_delay.
@@ -416,12 +434,14 @@ export interface MethodSettings_LongRunning {
* Maximum time between two subsequent poll requests.
* Default value: 45 seconds.
*/
- maxPollDelay?: Duration;
+ maxPollDelay?:
+ | Duration
+ | undefined;
/**
* Total polling timeout.
* Default value: 5 minutes.
*/
- totalPollTimeout?: Duration;
+ totalPollTimeout?: Duration | undefined;
}
function createBaseCommonLanguageSettings(): CommonLanguageSettings {
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 f82510caf2..9d02bb8e58 100644
--- a/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
+++ b/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
@@ -10,9 +10,11 @@ export const protobufPackage = "google.api.expr.v1alpha1";
/** An expression together with source information as returned by the parser. */
export interface ParsedExpr {
/** The parsed expression. */
- expr?: Expr;
+ expr?:
+ | Expr
+ | undefined;
/** The source info derived from input that generated the parsed `expr`. */
- sourceInfo?: SourceInfo;
+ sourceInfo?: SourceInfo | undefined;
}
/**
@@ -86,7 +88,9 @@ export interface Expr_Select {
* For example, in the select expression `request.auth`, the `request`
* portion of the expression is the `operand`.
*/
- operand?: Expr;
+ operand?:
+ | Expr
+ | undefined;
/**
* Required. The name of the field to select.
*
@@ -112,7 +116,9 @@ export interface Expr_Call {
* The target of an method call-style expression. For example, `x` in
* `x.f()`.
*/
- target?: Expr;
+ target?:
+ | Expr
+ | undefined;
/** Required. The name of the function or method being called. */
function: string;
/** The arguments. */
@@ -179,7 +185,9 @@ export interface Expr_CreateStruct_Entry {
* optional-typed value. If the optional value is present, the key will be
* set; however, if the optional value is absent, the key will be unset.
*/
- value?: Expr;
+ value?:
+ | Expr
+ | undefined;
/** Whether the key-value pair is optional. */
optionalEntry: boolean;
}
@@ -216,30 +224,38 @@ export interface Expr_Comprehension {
/** The name of the iteration variable. */
iterVar: string;
/** The range over which var iterates. */
- iterRange?: Expr;
+ iterRange?:
+ | Expr
+ | undefined;
/** The name of the variable used for accumulation of the result. */
accuVar: string;
/** The initial value of the accumulator. */
- accuInit?: Expr;
+ accuInit?:
+ | Expr
+ | undefined;
/**
* An expression which can contain iter_var and accu_var.
*
* Returns false when the result has been computed and may be used as
* a hint to short-circuit the remainder of the comprehension.
*/
- loopCondition?: Expr;
+ loopCondition?:
+ | Expr
+ | undefined;
/**
* An expression which can contain iter_var and accu_var.
*
* Computes the next value of accu_var.
*/
- loopStep?: Expr;
+ loopStep?:
+ | Expr
+ | undefined;
/**
* An expression which can contain accu_var.
*
* Computes the result.
*/
- result?: Expr;
+ result?: Expr | undefined;
}
/**
@@ -352,7 +368,7 @@ export interface SourceInfo_PositionsEntry {
export interface SourceInfo_MacroCallsEntry {
key: number;
- value?: Expr;
+ value?: Expr | undefined;
}
/** A specific position in source. */
@@ -1877,10 +1893,10 @@ export const SourcePosition = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index 50a68d0dac..5fa56442ad 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -32,14 +32,18 @@ export interface FileDescriptorProto {
enumType: EnumDescriptorProto[];
service: ServiceDescriptorProto[];
extension: FieldDescriptorProto[];
- options?: FileOptions;
+ options?:
+ | FileOptions
+ | undefined;
/**
* This field contains optional information about the original source code.
* You may safely remove this entire field without harming runtime
* functionality of the descriptors -- the information is needed only by
* development tools.
*/
- sourceCodeInfo?: SourceCodeInfo;
+ sourceCodeInfo?:
+ | SourceCodeInfo
+ | undefined;
/**
* The syntax of the proto file.
* The supported values are "proto2", "proto3", and "editions".
@@ -60,7 +64,7 @@ export interface DescriptorProto {
enumType: EnumDescriptorProto[];
extensionRange: DescriptorProto_ExtensionRange[];
oneofDecl: OneofDescriptorProto[];
- options?: MessageOptions;
+ options?: MessageOptions | undefined;
reservedRange: DescriptorProto_ReservedRange[];
/**
* Reserved field names, which may not be used by fields in the same message.
@@ -74,7 +78,7 @@ export interface DescriptorProto_ExtensionRange {
start: number;
/** Exclusive. */
end: number;
- options?: ExtensionRangeOptions;
+ options?: ExtensionRangeOptions | undefined;
}
/**
@@ -136,7 +140,9 @@ export interface FieldDescriptorProto {
* it to camelCase.
*/
jsonName: string;
- options?: FieldOptions;
+ options?:
+ | FieldOptions
+ | undefined;
/**
* If true, this is a proto3 "optional". When a proto3 field is optional, it
* tracks presence regardless of field type.
@@ -357,14 +363,16 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
/** Describes a oneof. */
export interface OneofDescriptorProto {
name: string;
- options?: OneofOptions;
+ options?: OneofOptions | undefined;
}
/** Describes an enum type. */
export interface EnumDescriptorProto {
name: string;
value: EnumValueDescriptorProto[];
- options?: EnumOptions;
+ options?:
+ | EnumOptions
+ | undefined;
/**
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
@@ -397,14 +405,14 @@ export interface EnumDescriptorProto_EnumReservedRange {
export interface EnumValueDescriptorProto {
name: string;
number: number;
- options?: EnumValueOptions;
+ options?: EnumValueOptions | undefined;
}
/** Describes a service. */
export interface ServiceDescriptorProto {
name: string;
method: MethodDescriptorProto[];
- options?: ServiceOptions;
+ options?: ServiceOptions | undefined;
}
/** Describes a method of a service. */
@@ -416,7 +424,9 @@ export interface MethodDescriptorProto {
*/
inputType: string;
outputType: string;
- options?: MethodOptions;
+ options?:
+ | MethodOptions
+ | undefined;
/** Identifies if client streams multiple client messages */
clientStreaming: boolean;
/** Identifies if server streams multiple server messages */
@@ -4660,10 +4670,10 @@ export const GeneratedCodeInfo_Annotation = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/google/protobuf/duration.ts b/frontend/src/types/proto/google/protobuf/duration.ts
index 9c72fa6cd9..f7854f6b36 100644
--- a/frontend/src/types/proto/google/protobuf/duration.ts
+++ b/frontend/src/types/proto/google/protobuf/duration.ts
@@ -153,10 +153,10 @@ export const Duration = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index ab0541e297..3425fd7e3f 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -49,12 +49,12 @@ export function nullValueToJSON(object: NullValue): string {
*/
export interface Struct {
/** Unordered map of dynamically typed values. */
- fields: { [key: string]: any };
+ fields: { [key: string]: any | undefined };
}
export interface Struct_FieldsEntry {
key: string;
- value?: any;
+ value?: any | undefined;
}
/**
@@ -83,9 +83,11 @@ export interface Value {
| boolean
| undefined;
/** Represents a structured value. */
- structValue?: { [key: string]: any };
+ structValue?:
+ | { [key: string]: any }
+ | undefined;
/** Represents a repeated `Value`. */
- listValue?: Array<any>;
+ listValue?: Array<any> | undefined;
}
/**
@@ -141,8 +143,8 @@ export const Struct = {
fromJSON(object: any): Struct {
return {
fields: isObject(object.fields)
- ? Object.entries(object.fields).reduce<{ [key: string]: any }>((acc, [key, value]) => {
- acc[key] = value as any;
+ ? Object.entries(object.fields).reduce<{ [key: string]: any | undefined }>((acc, [key, value]) => {
+ acc[key] = value as any | undefined;
return acc;
}, {})
: {},
@@ -166,12 +168,15 @@ export const Struct = {
fromPartial(object: DeepPartial<Struct>): Struct {
const message = createBaseStruct();
- message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: any }>((acc, [key, value]) => {
- if (value !== undefined) {
- acc[key] = value;
- }
- return acc;
- }, {});
+ message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: any | undefined }>(
+ (acc, [key, value]) => {
+ if (value !== undefined) {
+ acc[key] = value;
+ }
+ return acc;
+ },
+ {},
+ );
return message;
},
diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.ts
index bbf01134f0..4dea0b96ec 100644
--- a/frontend/src/types/proto/google/protobuf/timestamp.ts
+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts
@@ -182,10 +182,10 @@ export const Timestamp = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/google/protobuf/wrappers.ts b/frontend/src/types/proto/google/protobuf/wrappers.ts
index 1387d5f38b..c1ea99fa46 100644
--- a/frontend/src/types/proto/google/protobuf/wrappers.ts
+++ b/frontend/src/types/proto/google/protobuf/wrappers.ts
@@ -599,10 +599,10 @@ export const BytesValue = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/store/activity.ts b/frontend/src/types/proto/store/activity.ts
index 5d83ae19ea..485209b351 100644
--- a/frontend/src/types/proto/store/activity.ts
+++ b/frontend/src/types/proto/store/activity.ts
@@ -180,7 +180,7 @@ export function activityIssueCommentCreatePayload_ApprovalEvent_StatusToJSON(
}
export interface ActivityIssueApprovalNotifyPayload {
- approvalStep?: ApprovalStep;
+ approvalStep?: ApprovalStep | undefined;
}
function createBaseActivityIssueCreatePayload(): ActivityIssueCreatePayload {
@@ -686,10 +686,10 @@ export const ActivityIssueApprovalNotifyPayload = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/store/approval.ts b/frontend/src/types/proto/store/approval.ts
index 83280f9dfa..9ea5a69f72 100644
--- a/frontend/src/types/proto/store/approval.ts
+++ b/frontend/src/types/proto/store/approval.ts
@@ -71,7 +71,7 @@ export function issuePayloadApproval_Approver_StatusToJSON(object: IssuePayloadA
}
export interface ApprovalTemplate {
- flow?: ApprovalFlow;
+ flow?: ApprovalFlow | undefined;
title: string;
description: string;
creatorId: number;
diff --git a/frontend/src/types/proto/store/database.ts b/frontend/src/types/proto/store/database.ts
index 3ce10c99e8..66dd9ff9ea 100644
--- a/frontend/src/types/proto/store/database.ts
+++ b/frontend/src/types/proto/store/database.ts
@@ -241,7 +241,9 @@ export interface ColumnMetadata {
/** The position is the position in columns. */
position: number;
/** The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. */
- default?: string;
+ default?:
+ | string
+ | undefined;
/** The nullable is the nullable of a column. */
nullable: boolean;
/** The type is the type of a column. */
@@ -2258,10 +2260,10 @@ export const SecretItem = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/store/idp.ts b/frontend/src/types/proto/store/idp.ts
index 4db18b9aaf..ab0a42e232 100644
--- a/frontend/src/types/proto/store/idp.ts
+++ b/frontend/src/types/proto/store/idp.ts
@@ -55,7 +55,7 @@ export interface OAuth2IdentityProviderConfig {
clientId: string;
clientSecret: string;
scopes: string[];
- fieldMapping?: FieldMapping;
+ fieldMapping?: FieldMapping | undefined;
skipTlsVerify: boolean;
}
@@ -64,7 +64,7 @@ export interface OIDCIdentityProviderConfig {
issuer: string;
clientId: string;
clientSecret: string;
- fieldMapping?: FieldMapping;
+ fieldMapping?: FieldMapping | undefined;
skipTlsVerify: boolean;
}
diff --git a/frontend/src/types/proto/store/instance_change_history.ts b/frontend/src/types/proto/store/instance_change_history.ts
index f61d877a2d..e28b2f3b77 100644
--- a/frontend/src/types/proto/store/instance_change_history.ts
+++ b/frontend/src/types/proto/store/instance_change_history.ts
@@ -5,7 +5,7 @@ import { PushEvent } from "./vcs";
export const protobufPackage = "bytebase.store";
export interface InstanceChangeHistoryPayload {
- pushEvent?: PushEvent;
+ pushEvent?: PushEvent | undefined;
}
function createBaseInstanceChangeHistoryPayload(): InstanceChangeHistoryPayload {
diff --git a/frontend/src/types/proto/store/issue.ts b/frontend/src/types/proto/store/issue.ts
index ad18e5b8a4..ee8ef1bb3c 100644
--- a/frontend/src/types/proto/store/issue.ts
+++ b/frontend/src/types/proto/store/issue.ts
@@ -7,9 +7,9 @@ import { IssuePayloadApproval } from "./approval";
export const protobufPackage = "bytebase.store";
export interface IssuePayload {
- approval?: IssuePayloadApproval;
- grantRequest?: GrantRequest;
- grouping?: Grouping;
+ approval?: IssuePayloadApproval | undefined;
+ grantRequest?: GrantRequest | undefined;
+ grouping?: Grouping | undefined;
}
export interface Grouping {
@@ -22,8 +22,8 @@ export interface GrantRequest {
role: string;
/** The requested user, e.g. users/[email protected]. */
user: string;
- condition?: Expr;
- expiration?: Duration;
+ condition?: Expr | undefined;
+ expiration?: Duration | undefined;
}
function createBaseIssuePayload(): IssuePayload {
diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.ts
index 98ffe5de9d..dd8b968c4e 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -14,7 +14,9 @@ export interface PlanConfig_Step {
export interface PlanConfig_Spec {
/** earliest_allowed_time the earliest execution time of the change. */
- earliestAllowedTime?: Date;
+ earliestAllowedTime?:
+ | Date
+ | undefined;
/** A UUID4 string that uniquely identifies the Spec. */
id: string;
createDatabaseConfig?: PlanConfig_CreateDatabaseConfig | undefined;
diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.ts
index 1ab27d59c6..29064a81a0 100644
--- a/frontend/src/types/proto/store/policy.ts
+++ b/frontend/src/types/proto/store/policy.ts
@@ -29,7 +29,7 @@ export interface Binding {
* If the condition evaluates to true, then this binding applies to the current request.
* If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.
*/
- condition?: Expr;
+ condition?: Expr | undefined;
}
function createBaseIamPolicy(): IamPolicy {
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.ts
index 78047ee9d5..ba8680f2fc 100644
--- a/frontend/src/types/proto/store/setting.ts
+++ b/frontend/src/types/proto/store/setting.ts
@@ -37,9 +37,9 @@ export interface WorkspaceApprovalSetting {
}
export interface WorkspaceApprovalSetting_Rule {
- expression?: ParsedExpr;
- template?: ApprovalTemplate;
- condition?: Expr;
+ expression?: ParsedExpr | undefined;
+ template?: ApprovalTemplate | undefined;
+ condition?: Expr | undefined;
}
export interface ExternalApprovalSetting {
diff --git a/frontend/src/types/proto/store/sheet.ts b/frontend/src/types/proto/store/sheet.ts
index bdd19563b9..0dd30a621c 100644
--- a/frontend/src/types/proto/store/sheet.ts
+++ b/frontend/src/types/proto/store/sheet.ts
@@ -7,10 +7,12 @@ export const protobufPackage = "bytebase.store";
export interface SheetPayload {
type: SheetPayload_Type;
- vcsPayload?: SheetPayload_VCSPayload;
+ vcsPayload?:
+ | SheetPayload_VCSPayload
+ | undefined;
/** used_by_issues link to the issues where the sheet is used. */
usedByIssues: SheetPayload_UsedByIssue[];
- schemaDesign?: SheetPayload_SchemaDesign;
+ schemaDesign?: SheetPayload_SchemaDesign | undefined;
}
/** Type of the SheetPayload. */
@@ -440,10 +442,10 @@ export const SheetPayload_SchemaDesign = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/store/slow_query.ts b/frontend/src/types/proto/store/slow_query.ts
index f1bba6fa9d..1d3942c937 100644
--- a/frontend/src/types/proto/store/slow_query.ts
+++ b/frontend/src/types/proto/store/slow_query.ts
@@ -19,11 +19,17 @@ export interface SlowQueryStatisticsItem {
/** count is the number of slow queries with the same fingerprint. */
count: number;
/** latest_log_time is the time of the latest slow query with the same fingerprint. */
- latestLogTime?: Date;
+ latestLogTime?:
+ | Date
+ | undefined;
/** The total query time of the slow query log. */
- totalQueryTime?: Duration;
+ totalQueryTime?:
+ | Duration
+ | undefined;
/** The maximum query time of the slow query log. */
- maximumQueryTime?: Duration;
+ maximumQueryTime?:
+ | Duration
+ | undefined;
/** The total rows sent of the slow query log. */
totalRowsSent: number;
/** The maximum rows sent of the slow query log. */
@@ -39,11 +45,17 @@ export interface SlowQueryStatisticsItem {
/** SlowQueryDetails is the details of a slow query. */
export interface SlowQueryDetails {
/** start_time is the start time of the slow query. */
- startTime?: Date;
+ startTime?:
+ | Date
+ | undefined;
/** query_time is the query time of the slow query. */
- queryTime?: Duration;
+ queryTime?:
+ | Duration
+ | undefined;
/** lock_time is the lock time of the slow query. */
- lockTime?: Duration;
+ lockTime?:
+ | Duration
+ | undefined;
/** rows_sent is the number of rows sent by the slow query. */
rowsSent: number;
/** rows_examined is the number of rows examined by the slow query. */
@@ -438,10 +450,10 @@ export const SlowQueryDetails = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/store/vcs.ts b/frontend/src/types/proto/store/vcs.ts
index a36056a144..fcb21b72c9 100644
--- a/frontend/src/types/proto/store/vcs.ts
+++ b/frontend/src/types/proto/store/vcs.ts
@@ -60,7 +60,7 @@ export interface PushEvent {
repositoryFullPath: string;
authorName: string;
commits: Commit[];
- fileCommit?: FileCommit;
+ fileCommit?: FileCommit | undefined;
}
export interface Commit {
@@ -622,10 +622,10 @@ export const FileCommit = {
},
};
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.ts
index 75036bc3ef..798492635a 100644
--- a/frontend/src/types/proto/v1/actuator_service.ts
+++ b/frontend/src/types/proto/v1/actuator_service.ts
@@ -12,9 +12,11 @@ export interface GetActuatorInfoRequest {
export interface UpdateActuatorInfoRequest {
/** The actuator to update. */
- actuator?: ActuatorInfo;
+ actuator?:
+ | ActuatorInfo
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface ListDebugLogRequest {
@@ -46,7 +48,7 @@ export interface ListDebugLogResponse {
}
export interface DebugLog {
- recordTime?: Date;
+ recordTime?: Date | undefined;
requestPath: string;
role: string;
error: string;
@@ -82,7 +84,9 @@ export interface ActuatorInfo {
/** disallow_signup is the flag to disable self-service signup. */
disallowSignup: boolean;
/** last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value. */
- lastActiveTime?: Date;
+ lastActiveTime?:
+ | Date
+ | undefined;
/** require_2fa is the flag to require 2FA for all users. */
require2fa: boolean;
/** workspace_id is the identifier for the workspace. */
diff --git a/frontend/src/types/proto/v1/anomaly_service.ts b/frontend/src/types/proto/v1/anomaly_service.ts
index e8b0e665b5..efdcaddbb3 100644
--- a/frontend/src/types/proto/v1/anomaly_service.ts
+++ b/frontend/src/types/proto/v1/anomaly_service.ts
@@ -60,8 +60,8 @@ export interface Anomaly {
databaseBackupPolicyViolationDetail?: Anomaly_DatabaseBackupPolicyViolationDetail | undefined;
databaseBackupMissingDetail?: Anomaly_DatabaseBackupMissingDetail | undefined;
databaseSchemaDriftDetail?: Anomaly_DatabaseSchemaDriftDetail | undefined;
- createTime?: Date;
- updateTime?: Date;
+ createTime?: Date | undefined;
+ updateTime?: Date | undefined;
}
/** AnomalyType is the type of the anomaly. */
@@ -235,7 +235,7 @@ export interface Anomaly_DatabaseBackupMissingDetail {
/** expected_schedule is the expected backup plan schedule in the database. */
expectedSchedule: BackupPlanSchedule;
/** latest_backup_time is the latest backup time in the database. */
- latestBackupTime?: Date;
+ latestBackupTime?: Date | undefined;
}
/** DatabaseSchemaDriftDetail is the detail for database schema drift anomaly. */
diff --git a/frontend/src/types/proto/v1/auth_service.ts b/frontend/src/types/proto/v1/auth_service.ts
index 4fda29b163..89d7600899 100644
--- a/frontend/src/types/proto/v1/auth_service.ts
+++ b/frontend/src/types/proto/v1/auth_service.ts
@@ -137,7 +137,7 @@ export interface ListUsersResponse {
export interface CreateUserRequest {
/** The user to create. */
- user?: User;
+ user?: User | undefined;
}
export interface UpdateUserRequest {
@@ -147,9 +147,13 @@ export interface UpdateUserRequest {
* The user's `name` field is used to identify the user to update.
* Format: users/{user}
*/
- user?: User;
+ user?:
+ | User
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?:
+ | string[]
+ | undefined;
/** The otp_code is used to verify the user's identity by MFA. */
otpCode?:
| string
@@ -190,7 +194,9 @@ export interface LoginRequest {
*/
idpName: string;
/** The idp_context is using to get the user information from identity provider. */
- idpContext?: IdentityProviderContext;
+ idpContext?:
+ | IdentityProviderContext
+ | undefined;
/** The otp_code is used to verify the user's identity by MFA. */
otpCode?:
| string
diff --git a/frontend/src/types/proto/v1/bookmark_service.ts b/frontend/src/types/proto/v1/bookmark_service.ts
index 54a19cd6a5..6a785ea209 100644
--- a/frontend/src/types/proto/v1/bookmark_service.ts
+++ b/frontend/src/types/proto/v1/bookmark_service.ts
@@ -7,7 +7,7 @@ export const protobufPackage = "bytebase.v1";
export interface CreateBookmarkRequest {
/** The bookmark to create. */
- bookmark?: Bookmark;
+ bookmark?: Bookmark | undefined;
}
export interface DeleteBookmarkRequest {
diff --git a/frontend/src/types/proto/v1/cel_service.ts b/frontend/src/types/proto/v1/cel_service.ts
index 57908077de..8b8d546fff 100644
--- a/frontend/src/types/proto/v1/cel_service.ts
+++ b/frontend/src/types/proto/v1/cel_service.ts
@@ -10,11 +10,11 @@ export interface ParseRequest {
}
export interface ParseResponse {
- expression?: ParsedExpr;
+ expression?: ParsedExpr | undefined;
}
export interface DeparseRequest {
- expression?: ParsedExpr;
+ expression?: ParsedExpr | undefined;
}
export interface DeparseResponse {
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index f79391f521..328c025285 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -148,9 +148,11 @@ export interface UpdateDatabaseRequest {
* The database's `name` field is used to identify the database to update.
* Format: instances/{instance}/databases/{database}
*/
- database?: Database;
+ database?:
+ | Database
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface BatchUpdateDatabasesRequest {
@@ -212,7 +214,7 @@ export interface GetBackupSettingRequest {
export interface UpdateBackupSettingRequest {
/** The database backup setting to update. */
- setting?: BackupSetting;
+ setting?: BackupSetting | undefined;
}
/** CreateBackupRequest is the request message for CreateBackup. */
@@ -222,7 +224,7 @@ export interface CreateBackupRequest {
* Format: instances/{instance}/databases/{database}
*/
parent: string;
- backup?: Backup;
+ backup?: Backup | undefined;
}
/** ListBackupsRequest is the request message for ListBackup. */
@@ -271,7 +273,9 @@ export interface Database {
/** The existence of a database on latest sync. */
syncState: State;
/** The latest synchronization time. */
- successfulSyncTime?: Date;
+ successfulSyncTime?:
+ | Date
+ | undefined;
/**
* The project for a database.
* Format: projects/{project}
@@ -358,7 +362,9 @@ export interface ColumnMetadata {
/** The position is the position in columns. */
position: number;
/** The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. */
- default?: string;
+ default?:
+ | string
+ | undefined;
/** The nullable is the nullable of a column. */
nullable: boolean;
/** The type is the type of a column. */
@@ -642,7 +648,9 @@ export interface BackupSetting {
* If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS.
* It will be rounded up to the number of days.
*/
- backupRetainDuration?: Duration;
+ backupRetainDuration?:
+ | Duration
+ | undefined;
/**
* Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups.
* Support hour of day, day of week. (UTC time)
@@ -662,9 +670,13 @@ export interface Backup {
*/
name: string;
/** The timestamp when the backup resource was created initially. */
- createTime?: Date;
+ createTime?:
+ | Date
+ | undefined;
/** The timestamp when the backup resource was updated. */
- updateTime?: Date;
+ updateTime?:
+ | Date
+ | undefined;
/** The state of the backup. */
state: Backup_BackupState;
/** The type of the backup. */
@@ -822,7 +834,7 @@ export interface SlowQueryLog {
*/
project: string;
/** The statistics of the slow query log. */
- statistics?: SlowQueryStatistics;
+ statistics?: SlowQueryStatistics | undefined;
}
/** SlowQueryStatistics is the statistics of the slow query log. */
@@ -832,11 +844,17 @@ export interface SlowQueryStatistics {
/** The count of the slow query log. */
count: number;
/** The latest log time of the slow query log. */
- latestLogTime?: Date;
+ latestLogTime?:
+ | Date
+ | undefined;
/** The average query time of the slow query log. */
- averageQueryTime?: Duration;
+ averageQueryTime?:
+ | Duration
+ | undefined;
/** The maximum query time of the slow query log. */
- maximumQueryTime?: Duration;
+ maximumQueryTime?:
+ | Duration
+ | undefined;
/** The average rows sent of the slow query log. */
averageRowsSent: number;
/** The maximum rows sent of the slow query log. */
@@ -856,11 +874,17 @@ export interface SlowQueryStatistics {
/** SlowQueryDetails is the details of the slow query log. */
export interface SlowQueryDetails {
/** The start time of the slow query log. */
- startTime?: Date;
+ startTime?:
+ | Date
+ | undefined;
/** The query time of the slow query log. */
- queryTime?: Duration;
+ queryTime?:
+ | Duration
+ | undefined;
/** The lock time of the slow query log. */
- lockTime?: Duration;
+ lockTime?:
+ | Duration
+ | undefined;
/** The rows sent of the slow query log. */
rowsSent: number;
/** The rows examined of the slow query log. */
@@ -904,9 +928,13 @@ export interface ListSecretsResponse {
export interface UpdateSecretRequest {
/** The secret to be created or updated. */
- secret?: Secret;
+ secret?:
+ | Secret
+ | undefined;
/** The mask of the fields to be updated. */
- updateMask?: string[];
+ updateMask?:
+ | string[]
+ | undefined;
/** If true, the secret will be created if it does not exist. */
allowMissing: boolean;
}
@@ -929,9 +957,13 @@ export interface Secret {
*/
name: string;
/** Not used. The timestamp when the secret resource was created initially. */
- createdTime?: Date;
+ createdTime?:
+ | Date
+ | undefined;
/** Not used. The timestamp when the secret resource was updated. */
- updatedTime?: Date;
+ updatedTime?:
+ | Date
+ | undefined;
/** The value of the secret. */
value: string;
/** The description of the secret. */
@@ -964,8 +996,10 @@ export interface ChangeHistory {
creator: string;
/** Format: users/[email protected] */
updater: string;
- createTime?: Date;
- updateTime?: Date;
+ createTime?: Date | undefined;
+ updateTime?:
+ | Date
+ | undefined;
/** release version of Bytebase */
releaseVersion: string;
source: ChangeHistory_Source;
@@ -976,10 +1010,12 @@ export interface ChangeHistory {
statement: string;
schema: string;
prevSchema: string;
- executionDuration?: Duration;
+ executionDuration?:
+ | Duration
+ | undefined;
/** Format: projects/{project}/issues/{issue} */
issue: string;
- pushEvent?: PushEvent;
+ pushEvent?: PushEvent | undefined;
}
export enum ChangeHistory_Source {
@@ -7659,10 +7695,10 @@ export interface DatabaseServiceClient<CallOptionsExt = {}> {
): Promise<ChangeHistory>;
}
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/v1/environment_service.ts b/frontend/src/types/proto/v1/environment_service.ts
index 353f967ba6..39fb0df27f 100644
--- a/frontend/src/types/proto/v1/environment_service.ts
+++ b/frontend/src/types/proto/v1/environment_service.ts
@@ -86,7 +86,9 @@ export interface ListEnvironmentsResponse {
export interface CreateEnvironmentRequest {
/** The environment to create. */
- environment?: Environment;
+ environment?:
+ | Environment
+ | undefined;
/**
* The ID to use for the environment, which will become the final component of
* the environment's resource name.
@@ -104,9 +106,11 @@ export interface UpdateEnvironmentRequest {
* The environment's `name` field is used to identify the environment to update.
* Format: environments/{environment}
*/
- environment?: Environment;
+ environment?:
+ | Environment
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteEnvironmentRequest {
@@ -141,7 +145,7 @@ export interface Environment {
export interface UpdateEnvironmentBackupSettingRequest {
/** The environment backup setting to update. */
- setting?: EnvironmentBackupSetting;
+ setting?: EnvironmentBackupSetting | undefined;
}
export interface EnvironmentBackupSetting {
diff --git a/frontend/src/types/proto/v1/externalvs_service.ts b/frontend/src/types/proto/v1/externalvs_service.ts
index 928a30fd40..4691ffd4f7 100644
--- a/frontend/src/types/proto/v1/externalvs_service.ts
+++ b/frontend/src/types/proto/v1/externalvs_service.ts
@@ -8,7 +8,7 @@ import { Timestamp } from "../google/protobuf/timestamp";
export const protobufPackage = "bytebase.v1";
export interface CreateExternalVersionControlRequest {
- externalVersionControl?: ExternalVersionControl;
+ externalVersionControl?: ExternalVersionControl | undefined;
}
export interface GetExternalVersionControlRequest {
@@ -44,9 +44,11 @@ export interface ListExternalVersionControlsResponse {
}
export interface UpdateExternalVersionControlRequest {
- externalVersionControl?: ExternalVersionControl;
+ externalVersionControl?:
+ | ExternalVersionControl
+ | undefined;
/** The list of fields to be updated. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteExternalVersionControlRequest {
@@ -209,12 +211,12 @@ export interface ProjectGitOpsInfo {
/** The webhook endpoint ID of the repository. */
webhookEndpointId: string;
accessToken: string;
- expiresTime?: Date;
+ expiresTime?: Date | undefined;
refreshToken: string;
}
export interface ExchangeTokenRequest {
- exchangeToken?: ExchangeToken;
+ exchangeToken?: ExchangeToken | undefined;
}
export interface ExchangeToken {
@@ -233,7 +235,7 @@ export interface ExchangeToken {
export interface OAuthToken {
accessToken: string;
refreshToken: string;
- expiresTime?: Date;
+ expiresTime?: Date | undefined;
}
function createBaseCreateExternalVersionControlRequest(): CreateExternalVersionControlRequest {
diff --git a/frontend/src/types/proto/v1/iam_policy.ts b/frontend/src/types/proto/v1/iam_policy.ts
index 940fdbd4bb..4c1c0895b5 100644
--- a/frontend/src/types/proto/v1/iam_policy.ts
+++ b/frontend/src/types/proto/v1/iam_policy.ts
@@ -26,9 +26,11 @@ export interface Binding {
* If the condition evaluates to true, then this binding applies to the current request.
* If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.
*/
- condition?: Expr;
+ condition?:
+ | Expr
+ | undefined;
/** The parsed expression of the condition. */
- parsedExpr?: ParsedExpr;
+ parsedExpr?: ParsedExpr | undefined;
}
function createBaseIamPolicy(): IamPolicy {
diff --git a/frontend/src/types/proto/v1/idp_service.ts b/frontend/src/types/proto/v1/idp_service.ts
index d2375edeb1..4b4fd3721f 100644
--- a/frontend/src/types/proto/v1/idp_service.ts
+++ b/frontend/src/types/proto/v1/idp_service.ts
@@ -82,7 +82,9 @@ export interface ListIdentityProvidersResponse {
export interface CreateIdentityProviderRequest {
/** The identity provider to create. */
- identityProvider?: IdentityProvider;
+ identityProvider?:
+ | IdentityProvider
+ | undefined;
/**
* The ID to use for the identity provider, which will become the final component of
* the identity provider's resource name.
@@ -100,9 +102,11 @@ export interface UpdateIdentityProviderRequest {
* The identity provider's `name` field is used to identify the identity provider to update.
* Format: idps/{identity_provider}
*/
- identityProvider?: IdentityProvider;
+ identityProvider?:
+ | IdentityProvider
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteIdentityProviderRequest {
@@ -123,7 +127,7 @@ export interface UndeleteIdentityProviderRequest {
export interface TestIdentityProviderRequest {
/** The identity provider to test connection including uncreated. */
- identityProvider?: IdentityProvider;
+ identityProvider?: IdentityProvider | undefined;
oauth2Context?: OAuth2IdentityProviderTestRequestContext | undefined;
}
@@ -147,7 +151,7 @@ export interface IdentityProvider {
title: string;
domain: string;
type: IdentityProviderType;
- config?: IdentityProviderConfig;
+ config?: IdentityProviderConfig | undefined;
}
export interface IdentityProviderConfig {
@@ -163,7 +167,7 @@ export interface OAuth2IdentityProviderConfig {
clientId: string;
clientSecret: string;
scopes: string[];
- fieldMapping?: FieldMapping;
+ fieldMapping?: FieldMapping | undefined;
skipTlsVerify: boolean;
}
@@ -173,7 +177,7 @@ export interface OIDCIdentityProviderConfig {
clientId: string;
clientSecret: string;
scopes: string[];
- fieldMapping?: FieldMapping;
+ fieldMapping?: FieldMapping | undefined;
skipTlsVerify: boolean;
}
diff --git a/frontend/src/types/proto/v1/inbox_service.ts b/frontend/src/types/proto/v1/inbox_service.ts
index c71006e399..7281dfea17 100644
--- a/frontend/src/types/proto/v1/inbox_service.ts
+++ b/frontend/src/types/proto/v1/inbox_service.ts
@@ -45,9 +45,11 @@ export interface GetInboxSummaryRequest {
export interface UpdateInboxRequest {
/** The inbox message to update. */
- inboxMessage?: InboxMessage;
+ inboxMessage?:
+ | InboxMessage
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface InboxMessage {
@@ -55,7 +57,7 @@ export interface InboxMessage {
name: string;
activityUid: string;
status: InboxMessage_Status;
- activity?: LogEntity;
+ activity?: LogEntity | undefined;
}
export enum InboxMessage_Status {
diff --git a/frontend/src/types/proto/v1/instance_role_service.ts b/frontend/src/types/proto/v1/instance_role_service.ts
index c401c20583..e905f6efa3 100644
--- a/frontend/src/types/proto/v1/instance_role_service.ts
+++ b/frontend/src/types/proto/v1/instance_role_service.ts
@@ -57,7 +57,7 @@ export interface CreateInstanceRoleRequest {
*/
parent: string;
/** The role to create. */
- role?: InstanceRole;
+ role?: InstanceRole | undefined;
}
export interface UpdateInstanceRoleRequest {
@@ -67,9 +67,11 @@ export interface UpdateInstanceRoleRequest {
* The role's `name` and `instance` field is used to identify the role to update.
* Format: instances/{instance}/roles/{role name}
*/
- role?: InstanceRole;
+ role?:
+ | InstanceRole
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteInstanceRoleRequest {
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index 6164366359..4c3dbdcc11 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -86,7 +86,9 @@ export interface ListInstancesResponse {
export interface CreateInstanceRequest {
/** The instance to create. */
- instance?: Instance;
+ instance?:
+ | Instance
+ | undefined;
/**
* The ID to use for the instance, which will become the final component of
* the instance's resource name.
@@ -106,9 +108,11 @@ export interface UpdateInstanceRequest {
* The instance's `name` field is used to identify the instance to update.
* Format: instances/{instance}
*/
- instance?: Instance;
+ instance?:
+ | Instance
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteInstanceRequest {
@@ -150,7 +154,9 @@ export interface AddDataSourceRequest {
* Identified by type.
* Only READ_ONLY data source can be added.
*/
- dataSource?: DataSource;
+ dataSource?:
+ | DataSource
+ | undefined;
/** Validate only also tests the data source connection. */
validateOnly: boolean;
}
@@ -165,7 +171,7 @@ export interface RemoveDataSourceRequest {
* Identified by type.
* Only READ_ONLY data source can be removed.
*/
- dataSource?: DataSource;
+ dataSource?: DataSource | undefined;
}
export interface UpdateDataSourceRequest {
@@ -175,9 +181,13 @@ export interface UpdateDataSourceRequest {
*/
instance: string;
/** Identified by type. */
- dataSource?: DataSource;
+ dataSource?:
+ | DataSource
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?:
+ | string[]
+ | undefined;
/** Validate only also tests the data source connection. */
validateOnly: boolean;
}
@@ -219,7 +229,7 @@ export interface Instance {
*/
environment: string;
activation: boolean;
- options?: InstanceOptions;
+ options?: InstanceOptions | undefined;
}
export interface DataSource {
diff --git a/frontend/src/types/proto/v1/issue_service.ts b/frontend/src/types/proto/v1/issue_service.ts
index a4868c4491..13e807e9d5 100644
--- a/frontend/src/types/proto/v1/issue_service.ts
+++ b/frontend/src/types/proto/v1/issue_service.ts
@@ -67,7 +67,7 @@ export interface CreateIssueRequest {
*/
parent: string;
/** The issue to create. */
- issue?: Issue;
+ issue?: Issue | undefined;
}
export interface ListIssuesRequest {
@@ -111,9 +111,11 @@ export interface UpdateIssueRequest {
* The issue's `name` field is used to identify the issue to update.
* Format: projects/{project}/issues/{issue}
*/
- issue?: Issue;
+ issue?:
+ | Issue
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface BatchUpdateIssuesRequest {
@@ -193,8 +195,10 @@ export interface Issue {
subscribers: string[];
/** Format: users/[email protected] */
creator: string;
- createTime?: Date;
- updateTime?: Date;
+ createTime?: Date | undefined;
+ updateTime?:
+ | Date
+ | undefined;
/**
* The plan associated with the issue.
* Can be empty.
@@ -301,7 +305,7 @@ export function issue_Approver_StatusToJSON(object: Issue_Approver_Status): stri
}
export interface ApprovalTemplate {
- flow?: ApprovalFlow;
+ flow?: ApprovalFlow | undefined;
title: string;
description: string;
/**
@@ -477,7 +481,7 @@ export interface CreateIssueCommentRequest {
* Format: projects/{project}/issues/{issue}
*/
parent: string;
- issueComment?: IssueComment;
+ issueComment?: IssueComment | undefined;
}
export interface UpdateIssueCommentRequest {
@@ -486,9 +490,11 @@ export interface UpdateIssueCommentRequest {
* Format: projects/{project}/issues/{issue}
*/
parent: string;
- issueComment?: IssueComment;
+ issueComment?:
+ | IssueComment
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface IssueComment {
@@ -496,8 +502,8 @@ export interface IssueComment {
comment: string;
/** TODO: use struct message instead. */
payload: string;
- createTime?: Date;
- updateTime?: Date;
+ createTime?: Date | undefined;
+ updateTime?: Date | undefined;
}
function createBaseGetIssueRequest(): GetIssueRequest {
diff --git a/frontend/src/types/proto/v1/logging_service.ts b/frontend/src/types/proto/v1/logging_service.ts
index 1f99dc8fb9..0dbff69f8f 100644
--- a/frontend/src/types/proto/v1/logging_service.ts
+++ b/frontend/src/types/proto/v1/logging_service.ts
@@ -78,8 +78,8 @@ export interface LogEntity {
* Format: users/{email}
*/
creator: string;
- createTime?: Date;
- updateTime?: Date;
+ createTime?: Date | undefined;
+ updateTime?: Date | undefined;
action: LogEntity_Action;
level: LogEntity_Level;
/**
diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.ts
index 0942be89a9..610eb579f1 100644
--- a/frontend/src/types/proto/v1/org_policy_service.ts
+++ b/frontend/src/types/proto/v1/org_policy_service.ts
@@ -353,7 +353,7 @@ export interface CreatePolicyRequest {
*/
parent: string;
/** The policy to create. */
- policy?: Policy;
+ policy?: Policy | undefined;
type: PolicyType;
}
@@ -368,9 +368,13 @@ export interface UpdatePolicyRequest {
* Instance resource name: instances/instance-id.
* Database resource name: instances/instance-id/databases/database-name.
*/
- policy?: Policy;
+ policy?:
+ | Policy
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?:
+ | string[]
+ | undefined;
/**
* If set to true, and the policy is not found, a new policy will be created.
* In this situation, `update_mask` is ignored.
@@ -478,7 +482,7 @@ export interface DeploymentApprovalStrategy {
export interface BackupPlanPolicy {
schedule: BackupPlanSchedule;
- retentionDuration?: Duration;
+ retentionDuration?: Duration | undefined;
}
export interface SlowQueryPolicy {
diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.ts
index e82acf217d..bd65ad02aa 100644
--- a/frontend/src/types/proto/v1/project_service.ts
+++ b/frontend/src/types/proto/v1/project_service.ts
@@ -407,7 +407,9 @@ export interface SearchProjectsResponse {
export interface CreateProjectRequest {
/** The project to create. */
- project?: Project;
+ project?:
+ | Project
+ | undefined;
/**
* The ID to use for the project, which will become the final component of
* the project's resource name.
@@ -425,9 +427,11 @@ export interface UpdateProjectRequest {
* The project's `name` field is used to identify the project to update.
* Format: projects/{project}
*/
- project?: Project;
+ project?:
+ | Project
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteProjectRequest {
@@ -468,7 +472,7 @@ export interface BatchGetIamPolicyResponse {
export interface BatchGetIamPolicyResponse_PolicyResult {
project: string;
- policy?: IamPolicy;
+ policy?: IamPolicy | undefined;
}
export interface SetIamPolicyRequest {
@@ -477,7 +481,7 @@ export interface SetIamPolicyRequest {
* Format: projects/{project}
*/
project: string;
- policy?: IamPolicy;
+ policy?: IamPolicy | undefined;
}
export interface GetDeploymentConfigRequest {
@@ -489,14 +493,18 @@ export interface GetDeploymentConfigRequest {
}
export interface UpdateDeploymentConfigRequest {
- config?: DeploymentConfig;
+ config?: DeploymentConfig | undefined;
}
export interface UpdateProjectGitOpsInfoRequest {
/** The binding for the project and external version control. */
- projectGitopsInfo?: ProjectGitOpsInfo;
+ projectGitopsInfo?:
+ | ProjectGitOpsInfo
+ | undefined;
/** The mask of the fields to be updated. */
- updateMask?: string[];
+ updateMask?:
+ | string[]
+ | undefined;
/** If true, the gitops will be created if it does not exist. */
allowMissing: boolean;
}
@@ -559,19 +567,21 @@ export interface AddWebhookRequest {
*/
project: string;
/** The webhook to add. */
- webhook?: Webhook;
+ webhook?: Webhook | undefined;
}
export interface UpdateWebhookRequest {
/** The webhook to modify. */
- webhook?: Webhook;
+ webhook?:
+ | Webhook
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface RemoveWebhookRequest {
/** The webhook to remove. Identified by its url. */
- webhook?: Webhook;
+ webhook?: Webhook | undefined;
}
export interface TestWebhookRequest {
@@ -581,7 +591,7 @@ export interface TestWebhookRequest {
*/
project: string;
/** The webhook to test. Identified by its url. */
- webhook?: Webhook;
+ webhook?: Webhook | undefined;
}
export interface TestWebhookResponse {
@@ -692,7 +702,7 @@ export interface DeploymentConfig {
name: string;
/** The title of the deployment config. */
title: string;
- schedule?: Schedule;
+ schedule?: Schedule | undefined;
}
export interface Schedule {
@@ -702,11 +712,11 @@ export interface Schedule {
export interface ScheduleDeployment {
/** The title of the deployment (stage) in a schedule. */
title: string;
- spec?: DeploymentSpec;
+ spec?: DeploymentSpec | undefined;
}
export interface DeploymentSpec {
- labelSelector?: LabelSelector;
+ labelSelector?: LabelSelector | undefined;
}
export interface LabelSelector {
@@ -966,7 +976,9 @@ export interface CreateDatabaseGroupRequest {
*/
parent: string;
/** The database group to create. */
- databaseGroup?: DatabaseGroup;
+ databaseGroup?:
+ | DatabaseGroup
+ | undefined;
/**
* The ID to use for the database group, which will become the final component of
* the database group's resource name.
@@ -986,9 +998,11 @@ export interface UpdateDatabaseGroupRequest {
* The database group's `name` field is used to identify the database group to update.
* Format: projects/{project}/databaseGroups/{databaseGroup}
*/
- databaseGroup?: DatabaseGroup;
+ databaseGroup?:
+ | DatabaseGroup
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteDatabaseGroupRequest {
@@ -1011,7 +1025,9 @@ export interface DatabaseGroup {
*/
databasePlaceholder: string;
/** The condition that is associated with this database group. */
- databaseExpr?: Expr;
+ databaseExpr?:
+ | Expr
+ | undefined;
/** The list of databases that match the database group condition. */
matchedDatabases: DatabaseGroup_Database[];
/** The list of databases that match the database group condition. */
@@ -1033,7 +1049,9 @@ export interface CreateSchemaGroupRequest {
*/
parent: string;
/** The schema group to create. */
- schemaGroup?: SchemaGroup;
+ schemaGroup?:
+ | SchemaGroup
+ | undefined;
/**
* The ID to use for the schema group, which will become the final component of
* the schema group's resource name.
@@ -1053,9 +1071,11 @@ export interface UpdateSchemaGroupRequest {
* The schema group's `name` field is used to identify the schema group to update.
* Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
*/
- schemaGroup?: SchemaGroup;
+ schemaGroup?:
+ | SchemaGroup
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteSchemaGroupRequest {
@@ -1119,7 +1139,9 @@ export interface SchemaGroup {
* The table condition that is associated with this schema group.
* The table_placeholder in the sheet script will be rendered to the actual table name.
*/
- tableExpr?: Expr;
+ tableExpr?:
+ | Expr
+ | undefined;
/**
* The table placeholder used for rendering. For example, if set to "tbl", all the table name
* "tbl" in the SQL script will be rendered to the actual table name.
diff --git a/frontend/src/types/proto/v1/risk_service.ts b/frontend/src/types/proto/v1/risk_service.ts
index 66017200f8..73d7ce7a42 100644
--- a/frontend/src/types/proto/v1/risk_service.ts
+++ b/frontend/src/types/proto/v1/risk_service.ts
@@ -37,7 +37,7 @@ export interface ListRisksResponse {
export interface CreateRiskRequest {
/** The risk to create. */
- risk?: Risk;
+ risk?: Risk | undefined;
}
export interface UpdateRiskRequest {
@@ -47,9 +47,11 @@ export interface UpdateRiskRequest {
* The risk's `name` field is used to identify the risk to update.
* Format: risks/{risk}
*/
- risk?: Risk;
+ risk?:
+ | Risk
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteRiskRequest {
@@ -69,7 +71,7 @@ export interface Risk {
title: string;
level: number;
active: boolean;
- condition?: Expr;
+ condition?: Expr | undefined;
}
export enum Risk_Source {
@@ -728,10 +730,10 @@ export interface RiskServiceClient<CallOptionsExt = {}> {
deleteRisk(request: DeepPartial<DeleteRiskRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
}
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/v1/role_service.ts b/frontend/src/types/proto/v1/role_service.ts
index 96b090aa2c..0aabe1d545 100644
--- a/frontend/src/types/proto/v1/role_service.ts
+++ b/frontend/src/types/proto/v1/role_service.ts
@@ -34,7 +34,9 @@ export interface ListRolesResponse {
}
export interface CreateRoleRequest {
- role?: Role;
+ role?:
+ | Role
+ | undefined;
/**
* The ID to use for the role, which will become the final component
* of the role's resource name.
@@ -46,8 +48,8 @@ export interface CreateRoleRequest {
}
export interface UpdateRoleRequest {
- role?: Role;
- updateMask?: string[];
+ role?: Role | undefined;
+ updateMask?: string[] | undefined;
}
export interface DeleteRoleRequest {
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index d33e94a85f..9fd3d96dd6 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -56,7 +56,7 @@ export interface CreatePlanRequest {
*/
parent: string;
/** The plan to create. */
- plan?: Plan;
+ plan?: Plan | undefined;
}
export interface UpdatePlanRequest {
@@ -66,9 +66,11 @@ export interface UpdatePlanRequest {
* The plan's `name` field is used to identify the plan to update.
* Format: projects/{project}/plans/{plan}
*/
- plan?: Plan;
+ plan?:
+ | Plan
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface Plan {
@@ -97,7 +99,9 @@ export interface Plan_Step {
export interface Plan_Spec {
/** earliest_allowed_time the earliest execution time of the change. */
- earliestAllowedTime?: Date;
+ earliestAllowedTime?:
+ | Date
+ | undefined;
/** A UUID4 string that uniquely identifies the Spec. */
id: string;
createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;
@@ -570,7 +574,7 @@ export interface PreviewRolloutRequest {
*/
project: string;
/** The plan used to preview rollout. */
- plan?: Plan;
+ plan?: Plan | undefined;
}
export interface Rollout {
@@ -953,8 +957,8 @@ export interface TaskRun {
creator: string;
/** Format: user:[email protected] */
updater: string;
- createTime?: Date;
- updateTime?: Date;
+ createTime?: Date | undefined;
+ updateTime?: Date | undefined;
title: string;
status: TaskRun_Status;
/** Below are the results of a task run. */
@@ -4813,10 +4817,10 @@ export interface RolloutServiceClient<CallOptionsExt = {}> {
): Promise<ListPlanCheckRunsResponse>;
}
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.ts
index 11a586a908..26217c275e 100644
--- a/frontend/src/types/proto/v1/schema_design_service.ts
+++ b/frontend/src/types/proto/v1/schema_design_service.ts
@@ -21,11 +21,15 @@ export interface SchemaDesign {
/** The schema of schema design. AKA sheet's statement. */
schema: string;
/** The metadata of the current editing schema. */
- schemaMetadata?: DatabaseMetadata;
+ schemaMetadata?:
+ | DatabaseMetadata
+ | undefined;
/** The baseline schema. */
baselineSchema: string;
/** The metadata of the baseline schema. */
- baselineSchemaMetadata?: DatabaseMetadata;
+ baselineSchemaMetadata?:
+ | DatabaseMetadata
+ | undefined;
/** The database engine of the schema design. */
engine: Engine;
/**
@@ -49,9 +53,11 @@ export interface SchemaDesign {
*/
updater: string;
/** The timestamp when the schema design was created. */
- createTime?: Date;
+ createTime?:
+ | Date
+ | undefined;
/** The timestamp when the schema design was last updated. */
- updateTime?: Date;
+ updateTime?: Date | undefined;
}
export interface GetSchemaDesignRequest {
@@ -109,7 +115,7 @@ export interface CreateSchemaDesignRequest {
* Format: project/{project}
*/
parent: string;
- schemaDesign?: SchemaDesign;
+ schemaDesign?: SchemaDesign | undefined;
}
export interface UpdateSchemaDesignRequest {
@@ -119,9 +125,11 @@ export interface UpdateSchemaDesignRequest {
* The schema design's `name` field is used to identify the schema design to update.
* Format: projects/{project}/schemaDesigns/{schemaDesign}
*/
- schemaDesign?: SchemaDesign;
+ schemaDesign?:
+ | SchemaDesign
+ | undefined;
/** The list of fields to update. */
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface DeleteSchemaDesignRequest {
diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.ts
index ba23164041..229daf6703 100644
--- a/frontend/src/types/proto/v1/setting_service.ts
+++ b/frontend/src/types/proto/v1/setting_service.ts
@@ -44,13 +44,15 @@ export interface GetSettingRequest {
/** The response message for getting a setting. */
export interface GetSettingResponse {
- setting?: Setting;
+ setting?: Setting | undefined;
}
/** The request message for updating a setting. */
export interface SetSettingRequest {
/** The setting to update. */
- setting?: Setting;
+ setting?:
+ | Setting
+ | undefined;
/**
* validate_only is a flag to indicate whether to validate the setting value,
* server would not persist the setting value if it is true.
@@ -68,7 +70,7 @@ export interface Setting {
*/
name: string;
/** The value of the setting. */
- value?: Value;
+ value?: Value | undefined;
}
/** The data in setting value. */
@@ -216,7 +218,7 @@ export interface AppIMSetting {
imType: AppIMSetting_IMType;
appId: string;
appSecret: string;
- externalApproval?: AppIMSetting_ExternalApproval;
+ externalApproval?: AppIMSetting_ExternalApproval | undefined;
}
export enum AppIMSetting_IMType {
@@ -288,8 +290,8 @@ export interface WorkspaceApprovalSetting {
}
export interface WorkspaceApprovalSetting_Rule {
- template?: ApprovalTemplate;
- condition?: Expr;
+ template?: ApprovalTemplate | undefined;
+ condition?: Expr | undefined;
}
export interface ExternalApprovalSetting {
@@ -310,8 +312,8 @@ export interface ExternalApprovalSetting_Node {
export interface WorkspaceTrialSetting {
instanceCount: number;
- expireTime?: Date;
- issuedTime?: Date;
+ expireTime?: Date | undefined;
+ issuedTime?: Date | undefined;
subject: string;
orgName: string;
plan: PlanType;
diff --git a/frontend/src/types/proto/v1/sheet_service.ts b/frontend/src/types/proto/v1/sheet_service.ts
index 1450e32687..1fb833dfea 100644
--- a/frontend/src/types/proto/v1/sheet_service.ts
+++ b/frontend/src/types/proto/v1/sheet_service.ts
@@ -15,7 +15,7 @@ export interface CreateSheetRequest {
*/
parent: string;
/** The sheet to create. */
- sheet?: Sheet;
+ sheet?: Sheet | undefined;
}
export interface GetSheetRequest {
@@ -35,7 +35,9 @@ export interface UpdateSheetRequest {
* The sheet's `name` field is used to identify the sheet to update.
* Format: projects/{project}/sheets/{sheet}
*/
- sheet?: Sheet;
+ sheet?:
+ | Sheet
+ | undefined;
/**
* The list of fields to be updated.
* Fields are specified relative to the sheet.
@@ -46,7 +48,7 @@ export interface UpdateSheetRequest {
* - `starred`
* - `visibility`
*/
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface UpdateSheetOrganizerRequest {
@@ -56,7 +58,9 @@ export interface UpdateSheetOrganizerRequest {
* The organizer's `sheet` field is used to identify the sheet.
* Format: projects/{project}/sheets/{sheet}
*/
- organizer?: SheetOrganizer;
+ organizer?:
+ | SheetOrganizer
+ | undefined;
/**
* The list of fields to be updated.
* Fields are specified relative to the sheet organizer.
@@ -64,7 +68,7 @@ export interface UpdateSheetOrganizerRequest {
* - `starred`
* - `pinned`
*/
- updateMask?: string[];
+ updateMask?: string[] | undefined;
}
export interface SheetOrganizer {
@@ -158,9 +162,13 @@ export interface Sheet {
*/
creator: string;
/** The create time of the sheet. */
- createTime?: Date;
+ createTime?:
+ | Date
+ | undefined;
/** The last update time of the sheet. */
- updateTime?: Date;
+ updateTime?:
+ | Date
+ | undefined;
/**
* The content of the sheet.
* By default, it will be cut off, if it doesn't match the `content_size`, you can
@@ -1678,10 +1686,10 @@ export interface SheetServiceClient<CallOptionsExt = {}> {
syncSheets(request: DeepPartial<SyncSheetsRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
}
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.ts
index 7cf91ef66c..5b8cea2ff6 100644
--- a/frontend/src/types/proto/v1/sql_service.ts
+++ b/frontend/src/types/proto/v1/sql_service.ts
@@ -25,7 +25,7 @@ export interface AdminExecuteRequest {
/** The maximum number of rows to return. */
limit: number;
/** The timeout for the request. */
- timeout?: Duration;
+ timeout?: Duration | undefined;
}
export interface AdminExecuteResponse {
@@ -125,7 +125,7 @@ export interface QueryRequest {
/** The maximum number of rows to return. */
limit: number;
/** The timeout for the request. */
- timeout?: Duration;
+ timeout?: Duration | undefined;
}
export interface QueryResponse {
@@ -152,7 +152,9 @@ export interface QueryResult {
/** The error message if the query failed. */
error: string;
/** The time it takes to execute the query. */
- latency?: Duration;
+ latency?:
+ | Duration
+ | undefined;
/** The query statement for the result. */
statement: string;
}
@@ -176,7 +178,7 @@ export interface RowValue {
| number
| undefined;
/** value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only. */
- valueValue?: any;
+ valueValue?: any | undefined;
}
export interface Advice {
@@ -1700,10 +1702,10 @@ export interface SQLServiceClient<CallOptionsExt = {}> {
): AsyncIterable<AdminExecuteResponse>;
}
-declare var self: any | undefined;
-declare var window: any | undefined;
-declare var global: any | undefined;
-var tsProtoGlobalThis: any = (() => {
+declare const self: any | undefined;
+declare const window: any | undefined;
+declare const global: any | undefined;
+const tsProtoGlobalThis: any = (() => {
if (typeof globalThis !== "undefined") {
return globalThis;
}
diff --git a/frontend/src/types/proto/v1/subscription_service.ts b/frontend/src/types/proto/v1/subscription_service.ts
index 091c10bc84..219bb6c2af 100644
--- a/frontend/src/types/proto/v1/subscription_service.ts
+++ b/frontend/src/types/proto/v1/subscription_service.ts
@@ -57,11 +57,11 @@ export interface GetFeatureMatrixRequest {
}
export interface UpdateSubscriptionRequest {
- patch?: PatchSubscription;
+ patch?: PatchSubscription | undefined;
}
export interface TrialSubscriptionRequest {
- trial?: TrialSubscription;
+ trial?: TrialSubscription | undefined;
}
export interface PatchSubscription {
@@ -76,8 +76,8 @@ export interface TrialSubscription {
export interface Subscription {
instanceCount: number;
- expiresTime?: Date;
- startedTime?: Date;
+ expiresTime?: Date | undefined;
+ startedTime?: Date | undefined;
plan: PlanType;
trialing: boolean;
orgId: string;
diff --git a/frontend/src/types/proto/v1/vcs.ts b/frontend/src/types/proto/v1/vcs.ts
index 6453380ea2..49a2376923 100644
--- a/frontend/src/types/proto/v1/vcs.ts
+++ b/frontend/src/types/proto/v1/vcs.ts
@@ -60,14 +60,14 @@ export interface PushEvent {
repositoryFullPath: string;
authorName: string;
commits: Commit[];
- fileCommit?: FileCommit;
+ fileCommit?: FileCommit | undefined;
}
export interface Commit {
id: string;
title: string;
message: string;
- createdTime?: Date;
+ createdTime?: Date | undefined;
url: string;
authorName: string;
authorEmail: string;
@@ -79,7 +79,7 @@ export interface FileCommit {
id: string;
title: string;
message: string;
- createdTime?: Date;
+ createdTime?: Date | undefined;
url: string;
authorName: string;
authorEmail: string;