Skip to content

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

chore: update ts-proto generator options (#8368)

boojackbce9e536f79a
diff --git a/frontend/src/types/proto/google/api/client.ts b/frontend/src/types/proto/google/api/client.ts
index 950d983c3f..ab0204283e 100644
--- a/frontend/src/types/proto/google/api/client.ts
+++ b/frontend/src/types/proto/google/api/client.ts
@@ -164,35 +164,35 @@ export interface ClientLibrarySettings {
*/
restNumericEnums: boolean;
/** Settings for legacy Java features, supported in the Service YAML. */
- javaSettings?:
+ javaSettings:
| JavaSettings
| undefined;
/** Settings for C++ client libraries. */
- cppSettings?:
+ cppSettings:
| CppSettings
| undefined;
/** Settings for PHP client libraries. */
- phpSettings?:
+ phpSettings:
| PhpSettings
| undefined;
/** Settings for Python client libraries. */
- pythonSettings?:
+ pythonSettings:
| PythonSettings
| undefined;
/** Settings for Node client libraries. */
- nodeSettings?:
+ nodeSettings:
| NodeSettings
| undefined;
/** Settings for .NET client libraries. */
- dotnetSettings?:
+ dotnetSettings:
| DotnetSettings
| undefined;
/** Settings for Ruby client libraries. */
- rubySettings?:
+ rubySettings:
| RubySettings
| undefined;
/** Settings for Go client libraries. */
- goSettings?: GoSettings | undefined;
+ goSettings: GoSettings | undefined;
}
/**
@@ -283,7 +283,7 @@ export interface JavaSettings {
*/
serviceClassNames: { [key: string]: string };
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
export interface JavaSettings_ServiceClassNamesEntry {
@@ -294,31 +294,31 @@ export interface JavaSettings_ServiceClassNamesEntry {
/** Settings for C++ client libraries. */
export interface CppSettings {
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
/** Settings for Php client libraries. */
export interface PhpSettings {
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
/** Settings for Python client libraries. */
export interface PythonSettings {
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
/** Settings for Node client libraries. */
export interface NodeSettings {
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
/** Settings for Dotnet client libraries. */
export interface DotnetSettings {
/** Some settings. */
- common?:
+ common:
| CommonLanguageSettings
| undefined;
/**
@@ -371,13 +371,13 @@ export interface DotnetSettings_RenamedResourcesEntry {
/** Settings for Ruby client libraries. */
export interface RubySettings {
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
/** Settings for Go client libraries. */
export interface GoSettings {
/** Some settings. */
- common?: CommonLanguageSettings | undefined;
+ common: CommonLanguageSettings | undefined;
}
/** Describes the generator configuration for a method. */
@@ -406,7 +406,7 @@ export interface MethodSettings {
* total_poll_timeout:
* seconds: 54000 # 90 minutes
*/
- longRunning?: MethodSettings_LongRunning | undefined;
+ longRunning: MethodSettings_LongRunning | undefined;
}
/**
@@ -421,7 +421,7 @@ export interface MethodSettings_LongRunning {
* Initial delay after which the first poll request will be made.
* Default value: 5 seconds.
*/
- initialPollDelay?:
+ initialPollDelay:
| Duration
| undefined;
/**
@@ -434,14 +434,14 @@ export interface MethodSettings_LongRunning {
* Maximum time between two subsequent poll requests.
* Default value: 45 seconds.
*/
- maxPollDelay?:
+ maxPollDelay:
| Duration
| undefined;
/**
* Total polling timeout.
* Default value: 5 minutes.
*/
- totalPollTimeout?: Duration | undefined;
+ 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 16ce959440..278b3163c0 100644
--- a/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
+++ b/frontend/src/types/proto/google/api/expr/v1alpha1/syntax.ts
@@ -10,11 +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
| undefined;
/** The source info derived from input that generated the parsed `expr`. */
- sourceInfo?: SourceInfo | undefined;
+ sourceInfo: SourceInfo | undefined;
}
/**
@@ -88,7 +88,7 @@ export interface Expr_Select {
* For example, in the select expression `request.auth`, the `request`
* portion of the expression is the `operand`.
*/
- operand?:
+ operand:
| Expr
| undefined;
/**
@@ -116,7 +116,7 @@ export interface Expr_Call {
* The target of an method call-style expression. For example, `x` in
* `x.f()`.
*/
- target?:
+ target:
| Expr
| undefined;
/** Required. The name of the function or method being called. */
@@ -185,7 +185,7 @@ 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?:
+ value:
| Expr
| undefined;
/** Whether the key-value pair is optional. */
@@ -224,13 +224,13 @@ export interface Expr_Comprehension {
/** The name of the iteration variable. */
iterVar: string;
/** The range over which var iterates. */
- iterRange?:
+ iterRange:
| Expr
| undefined;
/** The name of the variable used for accumulation of the result. */
accuVar: string;
/** The initial value of the accumulator. */
- accuInit?:
+ accuInit:
| Expr
| undefined;
/**
@@ -239,7 +239,7 @@ export interface Expr_Comprehension {
* Returns false when the result has been computed and may be used as
* a hint to short-circuit the remainder of the comprehension.
*/
- loopCondition?:
+ loopCondition:
| Expr
| undefined;
/**
@@ -247,7 +247,7 @@ export interface Expr_Comprehension {
*
* Computes the next value of accu_var.
*/
- loopStep?:
+ loopStep:
| Expr
| undefined;
/**
@@ -255,7 +255,7 @@ export interface Expr_Comprehension {
*
* Computes the result.
*/
- result?: Expr | undefined;
+ result: Expr | undefined;
}
/**
@@ -368,7 +368,7 @@ export interface SourceInfo_PositionsEntry {
export interface SourceInfo_MacroCallsEntry {
key: number;
- value?: Expr | undefined;
+ value: Expr | undefined;
}
/** A specific position in source. */
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index 6a78778785..d3ce935221 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -32,7 +32,7 @@ export interface FileDescriptorProto {
enumType: EnumDescriptorProto[];
service: ServiceDescriptorProto[];
extension: FieldDescriptorProto[];
- options?:
+ options:
| FileOptions
| undefined;
/**
@@ -41,7 +41,7 @@ export interface FileDescriptorProto {
* functionality of the descriptors -- the information is needed only by
* development tools.
*/
- sourceCodeInfo?:
+ sourceCodeInfo:
| SourceCodeInfo
| undefined;
/**
@@ -64,7 +64,7 @@ export interface DescriptorProto {
enumType: EnumDescriptorProto[];
extensionRange: DescriptorProto_ExtensionRange[];
oneofDecl: OneofDescriptorProto[];
- options?: MessageOptions | undefined;
+ options: MessageOptions | undefined;
reservedRange: DescriptorProto_ReservedRange[];
/**
* Reserved field names, which may not be used by fields in the same message.
@@ -78,7 +78,7 @@ export interface DescriptorProto_ExtensionRange {
start: number;
/** Exclusive. */
end: number;
- options?: ExtensionRangeOptions | undefined;
+ options: ExtensionRangeOptions | undefined;
}
/**
@@ -140,7 +140,7 @@ export interface FieldDescriptorProto {
* it to camelCase.
*/
jsonName: string;
- options?:
+ options:
| FieldOptions
| undefined;
/**
@@ -363,14 +363,14 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
/** Describes a oneof. */
export interface OneofDescriptorProto {
name: string;
- options?: OneofOptions | undefined;
+ options: OneofOptions | undefined;
}
/** Describes an enum type. */
export interface EnumDescriptorProto {
name: string;
value: EnumValueDescriptorProto[];
- options?:
+ options:
| EnumOptions
| undefined;
/**
@@ -405,14 +405,14 @@ export interface EnumDescriptorProto_EnumReservedRange {
export interface EnumValueDescriptorProto {
name: string;
number: number;
- options?: EnumValueOptions | undefined;
+ options: EnumValueOptions | undefined;
}
/** Describes a service. */
export interface ServiceDescriptorProto {
name: string;
method: MethodDescriptorProto[];
- options?: ServiceOptions | undefined;
+ options: ServiceOptions | undefined;
}
/** Describes a method of a service. */
@@ -424,7 +424,7 @@ export interface MethodDescriptorProto {
*/
inputType: string;
outputType: string;
- options?:
+ options:
| MethodOptions
| undefined;
/** Identifies if client streams multiple client messages */
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index 84c94b8355..6ffbf5bb98 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -54,7 +54,7 @@ export interface Struct {
export interface Struct_FieldsEntry {
key: string;
- value?: any | undefined;
+ value: any | undefined;
}
/**
diff --git a/frontend/src/types/proto/store/activity.ts b/frontend/src/types/proto/store/activity.ts
index bc21950eb7..26f82a08cb 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 | undefined;
+ approvalStep: ApprovalStep | undefined;
}
function createBaseActivityIssueCreatePayload(): ActivityIssueCreatePayload {
diff --git a/frontend/src/types/proto/store/approval.ts b/frontend/src/types/proto/store/approval.ts
index cdad635dc3..ddeec313ee 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 | undefined;
+ 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 67cf0c61c6..f3bf274a6e 100644
--- a/frontend/src/types/proto/store/database.ts
+++ b/frontend/src/types/proto/store/database.ts
@@ -9,7 +9,7 @@ export const protobufPackage = "bytebase.store";
/** DatabaseMetadata is the metadata for databases. */
export interface DatabaseMetadata {
labels: { [key: string]: string };
- lastSyncTime?: Date | undefined;
+ lastSyncTime: Date | undefined;
}
export interface DatabaseMetadata_LabelsEntry {
@@ -260,7 +260,7 @@ 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?:
+ default:
| string
| undefined;
/** The nullable is the nullable of a column. */
diff --git a/frontend/src/types/proto/store/idp.ts b/frontend/src/types/proto/store/idp.ts
index 1d42f4c0af..da617075d9 100644
--- a/frontend/src/types/proto/store/idp.ts
+++ b/frontend/src/types/proto/store/idp.ts
@@ -109,7 +109,7 @@ export interface OAuth2IdentityProviderConfig {
clientId: string;
clientSecret: string;
scopes: string[];
- fieldMapping?: FieldMapping | undefined;
+ fieldMapping: FieldMapping | undefined;
skipTlsVerify: boolean;
authStyle: OAuth2AuthStyle;
}
@@ -119,7 +119,7 @@ export interface OIDCIdentityProviderConfig {
issuer: string;
clientId: string;
clientSecret: string;
- fieldMapping?: FieldMapping | undefined;
+ fieldMapping: FieldMapping | undefined;
skipTlsVerify: boolean;
authStyle: OAuth2AuthStyle;
}
@@ -160,7 +160,7 @@ export interface LDAPIdentityProviderConfig {
* FieldMapping is the mapping of the user attributes returned by the LDAP
* server.
*/
- fieldMapping?: FieldMapping | undefined;
+ fieldMapping: FieldMapping | undefined;
}
/**
diff --git a/frontend/src/types/proto/store/instance.ts b/frontend/src/types/proto/store/instance.ts
index 0a44495ee3..636794dd7a 100644
--- a/frontend/src/types/proto/store/instance.ts
+++ b/frontend/src/types/proto/store/instance.ts
@@ -13,7 +13,7 @@ export interface InstanceOptions {
*/
schemaTenantMode: boolean;
/** How often the instance is synced. */
- syncInterval?: Duration | undefined;
+ syncInterval: Duration | undefined;
}
/** InstanceMetadata is the metadata for instances. */
@@ -23,7 +23,7 @@ export interface InstanceMetadata {
* It is used to determine whether the table names and database names are case sensitive.
*/
mysqlLowerCaseTableNames: number;
- lastSyncTime?: Date | undefined;
+ lastSyncTime: Date | undefined;
}
function createBaseInstanceOptions(): InstanceOptions {
diff --git a/frontend/src/types/proto/store/instance_change_history.ts b/frontend/src/types/proto/store/instance_change_history.ts
index a4d5810536..900ec542b7 100644
--- a/frontend/src/types/proto/store/instance_change_history.ts
+++ b/frontend/src/types/proto/store/instance_change_history.ts
@@ -5,8 +5,8 @@ import { PushEvent } from "./vcs";
export const protobufPackage = "bytebase.store";
export interface InstanceChangeHistoryPayload {
- pushEvent?: PushEvent | undefined;
- changedResources?: ChangedResources | undefined;
+ pushEvent: PushEvent | undefined;
+ changedResources: ChangedResources | undefined;
}
export interface ChangedResources {
diff --git a/frontend/src/types/proto/store/issue.ts b/frontend/src/types/proto/store/issue.ts
index a9cadd8edf..4999aa9ac9 100644
--- a/frontend/src/types/proto/store/issue.ts
+++ b/frontend/src/types/proto/store/issue.ts
@@ -7,8 +7,8 @@ import { IssuePayloadApproval } from "./approval";
export const protobufPackage = "bytebase.store";
export interface IssuePayload {
- approval?: IssuePayloadApproval | undefined;
- grantRequest?: GrantRequest | undefined;
+ approval: IssuePayloadApproval | undefined;
+ grantRequest: GrantRequest | undefined;
}
export interface GrantRequest {
@@ -22,8 +22,8 @@ export interface GrantRequest {
* Format: users/{userUID}.
*/
user: string;
- condition?: Expr | undefined;
- expiration?: Duration | undefined;
+ 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 ae88a94295..9680396b73 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -14,7 +14,7 @@ export interface PlanConfig_Step {
export interface PlanConfig_Spec {
/** earliest_allowed_time the earliest execution time of the change. */
- earliestAllowedTime?:
+ earliestAllowedTime:
| Date
| undefined;
/** A UUID4 string that uniquely identifies the Spec. */
diff --git a/frontend/src/types/proto/store/plan_check_run.ts b/frontend/src/types/proto/store/plan_check_run.ts
index a8a4757982..35f1f97507 100644
--- a/frontend/src/types/proto/store/plan_check_run.ts
+++ b/frontend/src/types/proto/store/plan_check_run.ts
@@ -123,7 +123,7 @@ export interface PlanCheckRunResult_Result_SqlSummaryReport {
/** statement_types are the types of statements that are found in the sql. */
statementTypes: string[];
affectedRows: number;
- changedResources?: ChangedResources | undefined;
+ changedResources: ChangedResources | undefined;
}
export interface PlanCheckRunResult_Result_SqlReviewReport {
diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.ts
index 55fc7b791f..42ad61774f 100644
--- a/frontend/src/types/proto/store/policy.ts
+++ b/frontend/src/types/proto/store/policy.ts
@@ -30,7 +30,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 | undefined;
+ condition: Expr | undefined;
}
export interface MaskingPolicy {
@@ -66,7 +66,7 @@ export interface MaskingExceptionPolicy_MaskingException {
*/
member: string;
/** The condition that is associated with this exception policy instance. */
- condition?: Expr | undefined;
+ condition: Expr | undefined;
}
export enum MaskingExceptionPolicy_MaskingException_Action {
@@ -119,7 +119,7 @@ export interface MaskingRulePolicy {
export interface MaskingRulePolicy_MaskingRule {
/** A unique identifier for a node in UUID format. */
id: string;
- condition?: Expr | undefined;
+ condition: Expr | undefined;
maskingLevel: MaskingLevel;
}
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.ts
index 10d65a166e..2e8ee2ba9d 100644
--- a/frontend/src/types/proto/store/setting.ts
+++ b/frontend/src/types/proto/store/setting.ts
@@ -27,11 +27,11 @@ export interface WorkspaceProfileSetting {
/** The webhook URL for the GitOps workflow. */
gitopsWebhookUrl: string;
/** The duration for token. */
- tokenDuration?:
+ tokenDuration:
| Duration
| undefined;
/** The setting of custom announcement */
- announcement?: Announcement | undefined;
+ announcement: Announcement | undefined;
}
export interface Announcement {
@@ -101,9 +101,9 @@ export interface WorkspaceApprovalSetting {
}
export interface WorkspaceApprovalSetting_Rule {
- expression?: ParsedExpr | undefined;
- template?: ApprovalTemplate | undefined;
- condition?: Expr | undefined;
+ expression: ParsedExpr | undefined;
+ template: ApprovalTemplate | undefined;
+ condition: Expr | undefined;
}
export interface ExternalApprovalSetting {
@@ -247,7 +247,7 @@ export interface SchemaTemplateSetting_FieldTemplate {
id: string;
engine: Engine;
category: string;
- column?: ColumnMetadata | undefined;
+ column: ColumnMetadata | undefined;
}
export interface SchemaTemplateSetting_ColumnType {
@@ -292,7 +292,7 @@ export interface DataClassificationSetting_DataClassificationConfig_DataClassifi
export interface DataClassificationSetting_DataClassificationConfig_ClassificationEntry {
key: string;
- value?: DataClassificationSetting_DataClassificationConfig_DataClassification | undefined;
+ value: DataClassificationSetting_DataClassificationConfig_DataClassification | undefined;
}
export interface SemanticTypesSetting {
diff --git a/frontend/src/types/proto/store/sheet.ts b/frontend/src/types/proto/store/sheet.ts
index 8e16b4187c..3e187cd86e 100644
--- a/frontend/src/types/proto/store/sheet.ts
+++ b/frontend/src/types/proto/store/sheet.ts
@@ -8,8 +8,8 @@ export const protobufPackage = "bytebase.store";
export interface SheetPayload {
type: SheetPayload_Type;
- vcsPayload?: SheetPayload_VCSPayload | undefined;
- schemaDesign?: SheetPayload_SchemaDesign | undefined;
+ vcsPayload: SheetPayload_VCSPayload | undefined;
+ schemaDesign: SheetPayload_SchemaDesign | undefined;
}
/** Type of the SheetPayload. */
@@ -53,7 +53,7 @@ export interface SheetPayload_VCSPayload {
author: string;
lastCommitId: string;
lastSyncTs: number;
- pushEvent?: PushEvent | undefined;
+ pushEvent: PushEvent | undefined;
}
export interface SheetPayload_SchemaDesign {
@@ -68,7 +68,7 @@ export interface SheetPayload_SchemaDesign {
/** The id of the baseline change history including the baseline change history.(optional) */
baselineChangeHistoryId: string;
/** The protection of the schema design. */
- protection?: SheetPayload_SchemaDesign_Protection | undefined;
+ protection: SheetPayload_SchemaDesign_Protection | undefined;
}
export enum SheetPayload_SchemaDesign_Type {
diff --git a/frontend/src/types/proto/store/slow_query.ts b/frontend/src/types/proto/store/slow_query.ts
index 8985442909..471752408c 100644
--- a/frontend/src/types/proto/store/slow_query.ts
+++ b/frontend/src/types/proto/store/slow_query.ts
@@ -19,15 +19,15 @@ 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?:
+ latestLogTime:
| Date
| undefined;
/** The total query time of the slow query log. */
- totalQueryTime?:
+ totalQueryTime:
| Duration
| undefined;
/** The maximum query time of the slow query log. */
- maximumQueryTime?:
+ maximumQueryTime:
| Duration
| undefined;
/** The total rows sent of the slow query log. */
@@ -45,15 +45,15 @@ 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?:
+ startTime:
| Date
| undefined;
/** query_time is the query time of the slow query. */
- queryTime?:
+ queryTime:
| Duration
| undefined;
/** lock_time is the lock time of the slow query. */
- lockTime?:
+ lockTime:
| Duration
| undefined;
/** rows_sent is the number of rows sent by the slow query. */
diff --git a/frontend/src/types/proto/store/vcs.ts b/frontend/src/types/proto/store/vcs.ts
index c6b3d3c990..f598c2b562 100644
--- a/frontend/src/types/proto/store/vcs.ts
+++ b/frontend/src/types/proto/store/vcs.ts
@@ -16,7 +16,7 @@ export interface PushEvent {
repositoryFullPath: string;
authorName: string;
commits: Commit[];
- fileCommit?: FileCommit | undefined;
+ fileCommit: FileCommit | undefined;
}
export interface Commit {
diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.ts
index 9c1a418b0a..34d64ab9cb 100644
--- a/frontend/src/types/proto/v1/actuator_service.ts
+++ b/frontend/src/types/proto/v1/actuator_service.ts
@@ -11,11 +11,11 @@ export interface GetActuatorInfoRequest {
export interface UpdateActuatorInfoRequest {
/** The actuator to update. */
- actuator?:
+ actuator:
| ActuatorInfo
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface ListDebugLogRequest {
@@ -47,7 +47,7 @@ export interface ListDebugLogResponse {
}
export interface DebugLog {
- recordTime?: Date | undefined;
+ recordTime: Date | undefined;
requestPath: string;
role: string;
error: string;
@@ -83,7 +83,7 @@ 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?:
+ lastActiveTime:
| Date
| undefined;
/** require_2fa is the flag to require 2FA for all users. */
diff --git a/frontend/src/types/proto/v1/anomaly_service.ts b/frontend/src/types/proto/v1/anomaly_service.ts
index 00b3ba37ea..c0a8376f1b 100644
--- a/frontend/src/types/proto/v1/anomaly_service.ts
+++ b/frontend/src/types/proto/v1/anomaly_service.ts
@@ -59,8 +59,8 @@ export interface Anomaly {
databaseBackupPolicyViolationDetail?: Anomaly_DatabaseBackupPolicyViolationDetail | undefined;
databaseBackupMissingDetail?: Anomaly_DatabaseBackupMissingDetail | undefined;
databaseSchemaDriftDetail?: Anomaly_DatabaseSchemaDriftDetail | undefined;
- createTime?: Date | undefined;
- updateTime?: Date | undefined;
+ createTime: Date | undefined;
+ updateTime: Date | undefined;
}
/** AnomalyType is the type of the anomaly. */
@@ -234,7 +234,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 | undefined;
+ 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 4c614c8498..3a720230f3 100644
--- a/frontend/src/types/proto/v1/auth_service.ts
+++ b/frontend/src/types/proto/v1/auth_service.ts
@@ -136,7 +136,7 @@ export interface ListUsersResponse {
export interface CreateUserRequest {
/** The user to create. */
- user?: User | undefined;
+ user: User | undefined;
}
export interface UpdateUserRequest {
@@ -146,11 +146,11 @@ export interface UpdateUserRequest {
* The user's `name` field is used to identify the user to update.
* Format: users/{user}
*/
- user?:
+ user:
| User
| undefined;
/** The list of fields to update. */
- updateMask?:
+ updateMask:
| string[]
| undefined;
/** The otp_code is used to verify the user's identity by MFA. */
@@ -193,7 +193,7 @@ export interface LoginRequest {
*/
idpName: string;
/** The idp_context is using to get the user information from identity provider. */
- idpContext?:
+ idpContext:
| IdentityProviderContext
| undefined;
/** The otp_code is used to verify the user's identity by MFA. */
diff --git a/frontend/src/types/proto/v1/bookmark_service.ts b/frontend/src/types/proto/v1/bookmark_service.ts
index f1576999aa..4aafbefccf 100644
--- a/frontend/src/types/proto/v1/bookmark_service.ts
+++ b/frontend/src/types/proto/v1/bookmark_service.ts
@@ -6,7 +6,7 @@ export const protobufPackage = "bytebase.v1";
export interface CreateBookmarkRequest {
/** The bookmark to create. */
- bookmark?: Bookmark | undefined;
+ 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 7eab60797b..bc3edfb922 100644
--- a/frontend/src/types/proto/v1/cel_service.ts
+++ b/frontend/src/types/proto/v1/cel_service.ts
@@ -9,11 +9,11 @@ export interface ParseRequest {
}
export interface ParseResponse {
- expression?: ParsedExpr | undefined;
+ expression: ParsedExpr | undefined;
}
export interface DeparseRequest {
- expression?: ParsedExpr | undefined;
+ 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 658da27d08..f82fe6abeb 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -147,11 +147,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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface BatchUpdateDatabasesRequest {
@@ -236,7 +236,7 @@ export interface GetBackupSettingRequest {
export interface UpdateBackupSettingRequest {
/** The database backup setting to update. */
- setting?: BackupSetting | undefined;
+ setting: BackupSetting | undefined;
}
/** CreateBackupRequest is the request message for CreateBackup. */
@@ -246,7 +246,7 @@ export interface CreateBackupRequest {
* Format: instances/{instance}/databases/{database}
*/
parent: string;
- backup?: Backup | undefined;
+ backup: Backup | undefined;
}
/** ListBackupsRequest is the request message for ListBackup. */
@@ -295,7 +295,7 @@ export interface Database {
/** The existence of a database on latest sync. */
syncState: State;
/** The latest synchronization time. */
- successfulSyncTime?:
+ successfulSyncTime:
| Date
| undefined;
/**
@@ -401,7 +401,7 @@ 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?:
+ default:
| string
| undefined;
/** The nullable is the nullable of a column. */
@@ -699,7 +699,7 @@ 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?:
+ backupRetainDuration:
| Duration
| undefined;
/**
@@ -721,11 +721,11 @@ export interface Backup {
*/
name: string;
/** The timestamp when the backup resource was created initially. */
- createTime?:
+ createTime:
| Date
| undefined;
/** The timestamp when the backup resource was updated. */
- updateTime?:
+ updateTime:
| Date
| undefined;
/** The state of the backup. */
@@ -885,7 +885,7 @@ export interface SlowQueryLog {
*/
project: string;
/** The statistics of the slow query log. */
- statistics?: SlowQueryStatistics | undefined;
+ statistics: SlowQueryStatistics | undefined;
}
/** SlowQueryStatistics is the statistics of the slow query log. */
@@ -895,15 +895,15 @@ export interface SlowQueryStatistics {
/** The count of the slow query log. */
count: number;
/** The latest log time of the slow query log. */
- latestLogTime?:
+ latestLogTime:
| Date
| undefined;
/** The average query time of the slow query log. */
- averageQueryTime?:
+ averageQueryTime:
| Duration
| undefined;
/** The maximum query time of the slow query log. */
- maximumQueryTime?:
+ maximumQueryTime:
| Duration
| undefined;
/** The average rows sent of the slow query log. */
@@ -925,15 +925,15 @@ export interface SlowQueryStatistics {
/** SlowQueryDetails is the details of the slow query log. */
export interface SlowQueryDetails {
/** The start time of the slow query log. */
- startTime?:
+ startTime:
| Date
| undefined;
/** The query time of the slow query log. */
- queryTime?:
+ queryTime:
| Duration
| undefined;
/** The lock time of the slow query log. */
- lockTime?:
+ lockTime:
| Duration
| undefined;
/** The rows sent of the slow query log. */
@@ -979,11 +979,11 @@ export interface ListSecretsResponse {
export interface UpdateSecretRequest {
/** The secret to be created or updated. */
- secret?:
+ secret:
| Secret
| undefined;
/** The mask of the fields to be updated. */
- updateMask?:
+ updateMask:
| string[]
| undefined;
/** If true, the secret will be created if it does not exist. */
@@ -1008,11 +1008,11 @@ export interface Secret {
*/
name: string;
/** Not used. The timestamp when the secret resource was created initially. */
- createdTime?:
+ createdTime:
| Date
| undefined;
/** Not used. The timestamp when the secret resource was updated. */
- updatedTime?:
+ updatedTime:
| Date
| undefined;
/** The value of the secret. */
@@ -1047,8 +1047,8 @@ export interface ChangeHistory {
creator: string;
/** Format: users/[email protected] */
updater: string;
- createTime?: Date | undefined;
- updateTime?:
+ createTime: Date | undefined;
+ updateTime:
| Date
| undefined;
/** release version of Bytebase */
@@ -1061,13 +1061,13 @@ export interface ChangeHistory {
statement: string;
schema: string;
prevSchema: string;
- executionDuration?:
+ executionDuration:
| Duration
| undefined;
/** Format: projects/{project}/issues/{issue} */
issue: string;
- pushEvent?: PushEvent | undefined;
- changedResources?: ChangedResources | undefined;
+ pushEvent: PushEvent | undefined;
+ changedResources: ChangedResources | undefined;
}
export enum ChangeHistory_Source {
diff --git a/frontend/src/types/proto/v1/environment_service.ts b/frontend/src/types/proto/v1/environment_service.ts
index 8862239d33..a12ad8d8ae 100644
--- a/frontend/src/types/proto/v1/environment_service.ts
+++ b/frontend/src/types/proto/v1/environment_service.ts
@@ -85,7 +85,7 @@ export interface ListEnvironmentsResponse {
export interface CreateEnvironmentRequest {
/** The environment to create. */
- environment?:
+ environment:
| Environment
| undefined;
/**
@@ -105,11 +105,11 @@ export interface UpdateEnvironmentRequest {
* The environment's `name` field is used to identify the environment to update.
* Format: environments/{environment}
*/
- environment?:
+ environment:
| Environment
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteEnvironmentRequest {
@@ -144,7 +144,7 @@ export interface Environment {
export interface UpdateEnvironmentBackupSettingRequest {
/** The environment backup setting to update. */
- setting?: EnvironmentBackupSetting | undefined;
+ 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 fe68b7a80b..43d9851e7e 100644
--- a/frontend/src/types/proto/v1/externalvs_service.ts
+++ b/frontend/src/types/proto/v1/externalvs_service.ts
@@ -7,7 +7,7 @@ import { Timestamp } from "../google/protobuf/timestamp";
export const protobufPackage = "bytebase.v1";
export interface CreateExternalVersionControlRequest {
- externalVersionControl?: ExternalVersionControl | undefined;
+ externalVersionControl: ExternalVersionControl | undefined;
}
export interface GetExternalVersionControlRequest {
@@ -43,11 +43,11 @@ export interface ListExternalVersionControlsResponse {
}
export interface UpdateExternalVersionControlRequest {
- externalVersionControl?:
+ externalVersionControl:
| ExternalVersionControl
| undefined;
/** The list of fields to be updated. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteExternalVersionControlRequest {
@@ -217,12 +217,12 @@ export interface ProjectGitOpsInfo {
/** The webhook endpoint ID of the repository. */
webhookEndpointId: string;
accessToken: string;
- expiresTime?: Date | undefined;
+ expiresTime: Date | undefined;
refreshToken: string;
}
export interface ExchangeTokenRequest {
- exchangeToken?: ExchangeToken | undefined;
+ exchangeToken: ExchangeToken | undefined;
}
export interface ExchangeToken {
@@ -241,7 +241,7 @@ export interface ExchangeToken {
export interface OAuthToken {
accessToken: string;
refreshToken: string;
- expiresTime?: Date | undefined;
+ 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 8a49693ca3..200a768aad 100644
--- a/frontend/src/types/proto/v1/iam_policy.ts
+++ b/frontend/src/types/proto/v1/iam_policy.ts
@@ -26,11 +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?:
+ condition:
| Expr
| undefined;
/** The parsed expression of the condition. */
- parsedExpr?: ParsedExpr | undefined;
+ 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 906ea74daf..cec298061a 100644
--- a/frontend/src/types/proto/v1/idp_service.ts
+++ b/frontend/src/types/proto/v1/idp_service.ts
@@ -134,7 +134,7 @@ export interface ListIdentityProvidersResponse {
export interface CreateIdentityProviderRequest {
/** The identity provider to create. */
- identityProvider?:
+ identityProvider:
| IdentityProvider
| undefined;
/**
@@ -154,11 +154,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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteIdentityProviderRequest {
@@ -179,7 +179,7 @@ export interface UndeleteIdentityProviderRequest {
export interface TestIdentityProviderRequest {
/** The identity provider to test connection including uncreated. */
- identityProvider?: IdentityProvider | undefined;
+ identityProvider: IdentityProvider | undefined;
oauth2Context?: OAuth2IdentityProviderTestRequestContext | undefined;
}
@@ -203,7 +203,7 @@ export interface IdentityProvider {
title: string;
domain: string;
type: IdentityProviderType;
- config?: IdentityProviderConfig | undefined;
+ config: IdentityProviderConfig | undefined;
}
export interface IdentityProviderConfig {
@@ -220,7 +220,7 @@ export interface OAuth2IdentityProviderConfig {
clientId: string;
clientSecret: string;
scopes: string[];
- fieldMapping?: FieldMapping | undefined;
+ fieldMapping: FieldMapping | undefined;
skipTlsVerify: boolean;
authStyle: OAuth2AuthStyle;
}
@@ -231,7 +231,7 @@ export interface OIDCIdentityProviderConfig {
clientId: string;
clientSecret: string;
scopes: string[];
- fieldMapping?: FieldMapping | undefined;
+ fieldMapping: FieldMapping | undefined;
skipTlsVerify: boolean;
authStyle: OAuth2AuthStyle;
}
@@ -272,7 +272,7 @@ export interface LDAPIdentityProviderConfig {
* FieldMapping is the mapping of the user attributes returned by the LDAP
* server.
*/
- fieldMapping?: FieldMapping | undefined;
+ fieldMapping: FieldMapping | undefined;
}
/**
diff --git a/frontend/src/types/proto/v1/inbox_service.ts b/frontend/src/types/proto/v1/inbox_service.ts
index 5369cbc6ec..11e94cd262 100644
--- a/frontend/src/types/proto/v1/inbox_service.ts
+++ b/frontend/src/types/proto/v1/inbox_service.ts
@@ -44,11 +44,11 @@ export interface GetInboxSummaryRequest {
export interface UpdateInboxRequest {
/** The inbox message to update. */
- inboxMessage?:
+ inboxMessage:
| InboxMessage
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface InboxMessage {
@@ -56,7 +56,7 @@ export interface InboxMessage {
name: string;
activityUid: string;
status: InboxMessage_Status;
- activity?: LogEntity | undefined;
+ 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 05300589d5..13417a308f 100644
--- a/frontend/src/types/proto/v1/instance_role_service.ts
+++ b/frontend/src/types/proto/v1/instance_role_service.ts
@@ -56,7 +56,7 @@ export interface CreateInstanceRoleRequest {
*/
parent: string;
/** The role to create. */
- role?: InstanceRole | undefined;
+ role: InstanceRole | undefined;
}
export interface UpdateInstanceRoleRequest {
@@ -66,11 +66,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?:
+ role:
| InstanceRole
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ 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 0dbfc45a78..b9f59e834f 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -86,7 +86,7 @@ export interface ListInstancesResponse {
export interface CreateInstanceRequest {
/** The instance to create. */
- instance?:
+ instance:
| Instance
| undefined;
/**
@@ -108,11 +108,11 @@ export interface UpdateInstanceRequest {
* The instance's `name` field is used to identify the instance to update.
* Format: instances/{instance}
*/
- instance?:
+ instance:
| Instance
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteInstanceRequest {
@@ -154,7 +154,7 @@ export interface AddDataSourceRequest {
* Identified by type.
* Only READ_ONLY data source can be added.
*/
- dataSource?:
+ dataSource:
| DataSource
| undefined;
/** Validate only also tests the data source connection. */
@@ -171,7 +171,7 @@ export interface RemoveDataSourceRequest {
* Identified by type.
* Only READ_ONLY data source can be removed.
*/
- dataSource?: DataSource | undefined;
+ dataSource: DataSource | undefined;
}
export interface UpdateDataSourceRequest {
@@ -181,11 +181,11 @@ export interface UpdateDataSourceRequest {
*/
instance: string;
/** Identified by type. */
- dataSource?:
+ dataSource:
| DataSource
| undefined;
/** The list of fields to update. */
- updateMask?:
+ updateMask:
| string[]
| undefined;
/** Validate only also tests the data source connection. */
@@ -209,7 +209,7 @@ export interface InstanceOptions {
*/
schemaTenantMode: boolean;
/** How often the instance is synced. */
- syncInterval?: Duration | undefined;
+ syncInterval: Duration | undefined;
}
export interface Instance {
@@ -232,7 +232,7 @@ export interface Instance {
*/
environment: string;
activation: boolean;
- options?: InstanceOptions | undefined;
+ 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 1332248622..2e1c08d11e 100644
--- a/frontend/src/types/proto/v1/issue_service.ts
+++ b/frontend/src/types/proto/v1/issue_service.ts
@@ -68,7 +68,7 @@ export interface CreateIssueRequest {
*/
parent: string;
/** The issue to create. */
- issue?: Issue | undefined;
+ issue: Issue | undefined;
}
export interface ListIssuesRequest {
@@ -114,11 +114,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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface SearchIssuesRequest {
@@ -259,8 +259,8 @@ export interface Issue {
subscribers: string[];
/** Format: users/[email protected] */
creator: string;
- createTime?: Date | undefined;
- updateTime?:
+ createTime: Date | undefined;
+ updateTime:
| Date
| undefined;
/**
@@ -276,7 +276,7 @@ export interface Issue {
*/
rollout: string;
/** Used if the issue type is GRANT_REQUEST. */
- grantRequest?: GrantRequest | undefined;
+ grantRequest: GrantRequest | undefined;
}
export enum Issue_Type {
@@ -381,12 +381,12 @@ export interface GrantRequest {
* Format: users/{email}.
*/
user: string;
- condition?: Expr | undefined;
- expiration?: Duration | undefined;
+ condition: Expr | undefined;
+ expiration: Duration | undefined;
}
export interface ApprovalTemplate {
- flow?: ApprovalFlow | undefined;
+ flow: ApprovalFlow | undefined;
title: string;
description: string;
/**
@@ -562,7 +562,7 @@ export interface CreateIssueCommentRequest {
* Format: projects/{project}/issues/{issue}
*/
parent: string;
- issueComment?: IssueComment | undefined;
+ issueComment: IssueComment | undefined;
}
export interface UpdateIssueCommentRequest {
@@ -571,11 +571,11 @@ export interface UpdateIssueCommentRequest {
* Format: projects/{project}/issues/{issue}
*/
parent: string;
- issueComment?:
+ issueComment:
| IssueComment
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface IssueComment {
@@ -583,8 +583,8 @@ export interface IssueComment {
comment: string;
/** TODO: use struct message instead. */
payload: string;
- createTime?: Date | undefined;
- updateTime?: Date | undefined;
+ 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 146819618f..e2ab09b4b0 100644
--- a/frontend/src/types/proto/v1/logging_service.ts
+++ b/frontend/src/types/proto/v1/logging_service.ts
@@ -116,8 +116,8 @@ export interface LogEntity {
* Format: users/{email}
*/
creator: string;
- createTime?: Date | undefined;
- updateTime?: Date | undefined;
+ 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 1f1367783c..e53d76443c 100644
--- a/frontend/src/types/proto/v1/org_policy_service.ts
+++ b/frontend/src/types/proto/v1/org_policy_service.ts
@@ -326,7 +326,7 @@ export interface CreatePolicyRequest {
*/
parent: string;
/** The policy to create. */
- policy?: Policy | undefined;
+ policy: Policy | undefined;
type: PolicyType;
}
@@ -341,11 +341,11 @@ export interface UpdatePolicyRequest {
* Instance resource name: instances/instance-id.
* Database resource name: instances/instance-id/databases/database-name.
*/
- policy?:
+ policy:
| Policy
| undefined;
/** The list of fields to update. */
- updateMask?:
+ updateMask:
| string[]
| undefined;
/**
@@ -456,7 +456,7 @@ export interface DeploymentApprovalStrategy {
export interface BackupPlanPolicy {
schedule: BackupPlanSchedule;
- retentionDuration?: Duration | undefined;
+ retentionDuration: Duration | undefined;
}
export interface SlowQueryPolicy {
@@ -513,7 +513,7 @@ export interface MaskingExceptionPolicy_MaskingException {
*/
member: string;
/** The condition that is associated with this exception policy instance. */
- condition?: Expr | undefined;
+ condition: Expr | undefined;
}
export enum MaskingExceptionPolicy_MaskingException_Action {
@@ -566,7 +566,7 @@ export interface MaskingRulePolicy {
export interface MaskingRulePolicy_MaskingRule {
/** A unique identifier for a node in UUID format. */
id: string;
- condition?: Expr | undefined;
+ condition: Expr | undefined;
maskingLevel: MaskingLevel;
}
diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.ts
index 76f62ec705..f47f1c9644 100644
--- a/frontend/src/types/proto/v1/project_service.ts
+++ b/frontend/src/types/proto/v1/project_service.ts
@@ -406,7 +406,7 @@ export interface SearchProjectsResponse {
export interface CreateProjectRequest {
/** The project to create. */
- project?:
+ project:
| Project
| undefined;
/**
@@ -426,11 +426,11 @@ export interface UpdateProjectRequest {
* The project's `name` field is used to identify the project to update.
* Format: projects/{project}
*/
- project?:
+ project:
| Project
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteProjectRequest {
@@ -471,7 +471,7 @@ export interface BatchGetIamPolicyResponse {
export interface BatchGetIamPolicyResponse_PolicyResult {
project: string;
- policy?: IamPolicy | undefined;
+ policy: IamPolicy | undefined;
}
export interface SetIamPolicyRequest {
@@ -480,7 +480,7 @@ export interface SetIamPolicyRequest {
* Format: projects/{project}
*/
project: string;
- policy?: IamPolicy | undefined;
+ policy: IamPolicy | undefined;
}
export interface GetDeploymentConfigRequest {
@@ -492,16 +492,16 @@ export interface GetDeploymentConfigRequest {
}
export interface UpdateDeploymentConfigRequest {
- config?: DeploymentConfig | undefined;
+ config: DeploymentConfig | undefined;
}
export interface UpdateProjectGitOpsInfoRequest {
/** The binding for the project and external version control. */
- projectGitopsInfo?:
+ projectGitopsInfo:
| ProjectGitOpsInfo
| undefined;
/** The mask of the fields to be updated. */
- updateMask?:
+ updateMask:
| string[]
| undefined;
/** If true, the gitops will be created if it does not exist. */
@@ -566,21 +566,21 @@ export interface AddWebhookRequest {
*/
project: string;
/** The webhook to add. */
- webhook?: Webhook | undefined;
+ webhook: Webhook | undefined;
}
export interface UpdateWebhookRequest {
/** The webhook to modify. */
- webhook?:
+ webhook:
| Webhook
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface RemoveWebhookRequest {
/** The webhook to remove. Identified by its url. */
- webhook?: Webhook | undefined;
+ webhook: Webhook | undefined;
}
export interface TestWebhookRequest {
@@ -590,7 +590,7 @@ export interface TestWebhookRequest {
*/
project: string;
/** The webhook to test. Identified by its url. */
- webhook?: Webhook | undefined;
+ webhook: Webhook | undefined;
}
export interface TestWebhookResponse {
@@ -701,7 +701,7 @@ export interface DeploymentConfig {
name: string;
/** The title of the deployment config. */
title: string;
- schedule?: Schedule | undefined;
+ schedule: Schedule | undefined;
}
export interface Schedule {
@@ -711,11 +711,11 @@ export interface Schedule {
export interface ScheduleDeployment {
/** The title of the deployment (stage) in a schedule. */
title: string;
- spec?: DeploymentSpec | undefined;
+ spec: DeploymentSpec | undefined;
}
export interface DeploymentSpec {
- labelSelector?: LabelSelector | undefined;
+ labelSelector: LabelSelector | undefined;
}
export interface LabelSelector {
@@ -975,7 +975,7 @@ export interface CreateDatabaseGroupRequest {
*/
parent: string;
/** The database group to create. */
- databaseGroup?:
+ databaseGroup:
| DatabaseGroup
| undefined;
/**
@@ -997,11 +997,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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteDatabaseGroupRequest {
@@ -1024,7 +1024,7 @@ export interface DatabaseGroup {
*/
databasePlaceholder: string;
/** The condition that is associated with this database group. */
- databaseExpr?:
+ databaseExpr:
| Expr
| undefined;
/** The list of databases that match the database group condition. */
@@ -1048,7 +1048,7 @@ export interface CreateSchemaGroupRequest {
*/
parent: string;
/** The schema group to create. */
- schemaGroup?:
+ schemaGroup:
| SchemaGroup
| undefined;
/**
@@ -1070,11 +1070,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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteSchemaGroupRequest {
@@ -1138,7 +1138,7 @@ 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?:
+ tableExpr:
| Expr
| undefined;
/**
diff --git a/frontend/src/types/proto/v1/risk_service.ts b/frontend/src/types/proto/v1/risk_service.ts
index 53729fa67d..61ad7a1c64 100644
--- a/frontend/src/types/proto/v1/risk_service.ts
+++ b/frontend/src/types/proto/v1/risk_service.ts
@@ -36,7 +36,7 @@ export interface ListRisksResponse {
export interface CreateRiskRequest {
/** The risk to create. */
- risk?: Risk | undefined;
+ risk: Risk | undefined;
}
export interface UpdateRiskRequest {
@@ -46,11 +46,11 @@ export interface UpdateRiskRequest {
* The risk's `name` field is used to identify the risk to update.
* Format: risks/{risk}
*/
- risk?:
+ risk:
| Risk
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface DeleteRiskRequest {
@@ -70,7 +70,7 @@ export interface Risk {
title: string;
level: number;
active: boolean;
- condition?: Expr | undefined;
+ condition: Expr | undefined;
}
export enum Risk_Source {
diff --git a/frontend/src/types/proto/v1/role_service.ts b/frontend/src/types/proto/v1/role_service.ts
index 4b2d012579..fd4d9ca499 100644
--- a/frontend/src/types/proto/v1/role_service.ts
+++ b/frontend/src/types/proto/v1/role_service.ts
@@ -33,7 +33,7 @@ export interface ListRolesResponse {
}
export interface CreateRoleRequest {
- role?:
+ role:
| Role
| undefined;
/**
@@ -47,8 +47,8 @@ export interface CreateRoleRequest {
}
export interface UpdateRoleRequest {
- role?: Role | undefined;
- updateMask?: string[] | undefined;
+ 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 95c6dd3432..93e9323dd3 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 | undefined;
+ plan: Plan | undefined;
}
export interface UpdatePlanRequest {
@@ -66,11 +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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface Plan {
@@ -98,7 +98,7 @@ export interface Plan_Step {
export interface Plan_Spec {
/** earliest_allowed_time the earliest execution time of the change. */
- earliestAllowedTime?:
+ earliestAllowedTime:
| Date
| undefined;
/** A UUID4 string that uniquely identifies the Spec. */
@@ -383,7 +383,7 @@ export interface PlanCheckRun {
results: PlanCheckRun_Result[];
/** error is set if the Status is FAILED. */
error: string;
- createTime?: Date | undefined;
+ createTime: Date | undefined;
}
export enum PlanCheckRun_Type {
@@ -571,7 +571,7 @@ export interface PlanCheckRun_Result_SqlSummaryReport {
/** statement_types are the types of statements that are found in the sql. */
statementTypes: string[];
affectedRows: number;
- changedResources?: ChangedResources | undefined;
+ changedResources: ChangedResources | undefined;
}
export interface PlanCheckRun_Result_SqlReviewReport {
@@ -607,7 +607,7 @@ export interface PreviewRolloutRequest {
*/
project: string;
/** The plan used to preview rollout. */
- plan?: Plan | undefined;
+ plan: Plan | undefined;
}
export interface ListTaskRunsRequest {
@@ -1023,8 +1023,8 @@ export interface TaskRun {
creator: string;
/** Format: user/[email protected] */
updater: string;
- createTime?: Date | undefined;
- updateTime?: Date | undefined;
+ createTime: Date | undefined;
+ updateTime: Date | undefined;
title: string;
status: TaskRun_Status;
/** Below are the results of a task run. */
diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.ts
index c3137f9d66..549036c542 100644
--- a/frontend/src/types/proto/v1/schema_design_service.ts
+++ b/frontend/src/types/proto/v1/schema_design_service.ts
@@ -20,13 +20,13 @@ export interface SchemaDesign {
/** The schema of schema design. AKA sheet's statement. */
schema: string;
/** The metadata of the current editing schema. */
- schemaMetadata?:
+ schemaMetadata:
| DatabaseMetadata
| undefined;
/** The baseline schema. */
baselineSchema: string;
/** The metadata of the baseline schema. */
- baselineSchemaMetadata?:
+ baselineSchemaMetadata:
| DatabaseMetadata
| undefined;
/** The database engine of the schema design. */
@@ -51,7 +51,7 @@ export interface SchemaDesign {
/** The etag of the schema design. */
etag: string;
/** The protection of the schema design branch. */
- protection?:
+ protection:
| SchemaDesign_Protection
| undefined;
/**
@@ -65,11 +65,11 @@ export interface SchemaDesign {
*/
updater: string;
/** The timestamp when the schema design was created. */
- createTime?:
+ createTime:
| Date
| undefined;
/** The timestamp when the schema design was last updated. */
- updateTime?: Date | undefined;
+ updateTime: Date | undefined;
}
export enum SchemaDesign_Type {
@@ -167,7 +167,7 @@ export interface CreateSchemaDesignRequest {
* Format: project/{project}
*/
parent: string;
- schemaDesign?: SchemaDesign | undefined;
+ schemaDesign: SchemaDesign | undefined;
}
export interface UpdateSchemaDesignRequest {
@@ -177,11 +177,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
| undefined;
/** The list of fields to update. */
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface MergeSchemaDesignRequest {
@@ -206,7 +206,7 @@ export interface ParseSchemaStringRequest {
export interface ParseSchemaStringResponse {
/** The metadata of the parsed schema. */
- schemaMetadata?: DatabaseMetadata | undefined;
+ schemaMetadata: DatabaseMetadata | undefined;
}
export interface DeleteSchemaDesignRequest {
@@ -219,11 +219,11 @@ export interface DeleteSchemaDesignRequest {
export interface DiffMetadataRequest {
/** The metadata of the source schema. */
- sourceMetadata?:
+ sourceMetadata:
| DatabaseMetadata
| undefined;
/** The metadata of the target schema. */
- targetMetadata?:
+ targetMetadata:
| DatabaseMetadata
| undefined;
/** The database engine of the schema. */
diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.ts
index 20ac69209c..24f0dd8797 100644
--- a/frontend/src/types/proto/v1/setting_service.ts
+++ b/frontend/src/types/proto/v1/setting_service.ts
@@ -46,13 +46,13 @@ export interface GetSettingRequest {
/** The response message for getting a setting. */
export interface GetSettingResponse {
- setting?: Setting | undefined;
+ setting: Setting | undefined;
}
/** The request message for updating a setting. */
export interface SetSettingRequest {
/** The setting to update. */
- setting?:
+ setting:
| Setting
| undefined;
/**
@@ -72,7 +72,7 @@ export interface Setting {
*/
name: string;
/** The value of the setting. */
- value?: Value | undefined;
+ value: Value | undefined;
}
/** The data in setting value. */
@@ -224,7 +224,7 @@ export interface AppIMSetting {
imType: AppIMSetting_IMType;
appId: string;
appSecret: string;
- externalApproval?: AppIMSetting_ExternalApproval | undefined;
+ externalApproval: AppIMSetting_ExternalApproval | undefined;
}
export enum AppIMSetting_IMType {
@@ -290,11 +290,11 @@ export interface WorkspaceProfileSetting {
/** The webhook URL for the GitOps workflow. */
gitopsWebhookUrl: string;
/** The duration for token. */
- tokenDuration?:
+ tokenDuration:
| Duration
| undefined;
/** The setting of custom announcement */
- announcement?: Announcement | undefined;
+ announcement: Announcement | undefined;
}
export interface Announcement {
@@ -357,8 +357,8 @@ export interface WorkspaceApprovalSetting {
}
export interface WorkspaceApprovalSetting_Rule {
- template?: ApprovalTemplate | undefined;
- condition?: Expr | undefined;
+ template: ApprovalTemplate | undefined;
+ condition: Expr | undefined;
}
export interface ExternalApprovalSetting {
@@ -386,7 +386,7 @@ export interface SchemaTemplateSetting_FieldTemplate {
id: string;
engine: Engine;
category: string;
- column?: ColumnMetadata | undefined;
+ column: ColumnMetadata | undefined;
}
export interface SchemaTemplateSetting_ColumnType {
@@ -397,8 +397,8 @@ export interface SchemaTemplateSetting_ColumnType {
export interface WorkspaceTrialSetting {
instanceCount: number;
- expireTime?: Date | undefined;
- issuedTime?: Date | undefined;
+ expireTime: Date | undefined;
+ issuedTime: Date | undefined;
subject: string;
orgName: string;
plan: PlanType;
@@ -440,7 +440,7 @@ export interface DataClassificationSetting_DataClassificationConfig_DataClassifi
export interface DataClassificationSetting_DataClassificationConfig_ClassificationEntry {
key: string;
- value?: DataClassificationSetting_DataClassificationConfig_DataClassification | undefined;
+ value: DataClassificationSetting_DataClassificationConfig_DataClassification | undefined;
}
export interface SemanticTypesSetting {
diff --git a/frontend/src/types/proto/v1/sheet_service.ts b/frontend/src/types/proto/v1/sheet_service.ts
index 2a1237ab9d..e3402aec4d 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 | undefined;
+ sheet: Sheet | undefined;
}
export interface GetSheetRequest {
@@ -35,7 +35,7 @@ export interface UpdateSheetRequest {
* The sheet's `name` field is used to identify the sheet to update.
* Format: projects/{project}/sheets/{sheet}
*/
- sheet?:
+ sheet:
| Sheet
| undefined;
/**
@@ -48,7 +48,7 @@ export interface UpdateSheetRequest {
* - `starred`
* - `visibility`
*/
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface UpdateSheetOrganizerRequest {
@@ -58,7 +58,7 @@ export interface UpdateSheetOrganizerRequest {
* The organizer's `sheet` field is used to identify the sheet.
* Format: projects/{project}/sheets/{sheet}
*/
- organizer?:
+ organizer:
| SheetOrganizer
| undefined;
/**
@@ -68,7 +68,7 @@ export interface UpdateSheetOrganizerRequest {
* - `starred`
* - `pinned`
*/
- updateMask?: string[] | undefined;
+ updateMask: string[] | undefined;
}
export interface SheetOrganizer {
@@ -162,11 +162,11 @@ export interface Sheet {
*/
creator: string;
/** The create time of the sheet. */
- createTime?:
+ createTime:
| Date
| undefined;
/** The last update time of the sheet. */
- updateTime?:
+ updateTime:
| Date
| undefined;
/**
@@ -186,7 +186,7 @@ export interface Sheet {
starred: boolean;
/** TODO: deprecate this field. */
payload: string;
- pushEvent?: PushEvent | undefined;
+ pushEvent: PushEvent | undefined;
}
export enum Sheet_Visibility {
diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.ts
index cf799cf22d..369dfda808 100644
--- a/frontend/src/types/proto/v1/sql_service.ts
+++ b/frontend/src/types/proto/v1/sql_service.ts
@@ -11,7 +11,7 @@ export const protobufPackage = "bytebase.v1";
export interface DifferPreviewRequest {
engine: Engine;
oldSchema: string;
- newMetadata?: DatabaseMetadata | undefined;
+ newMetadata: DatabaseMetadata | undefined;
}
export interface DifferPreviewResponse {
@@ -35,7 +35,7 @@ export interface AdminExecuteRequest {
/** The maximum number of rows to return. */
limit: number;
/** The timeout for the request. */
- timeout?: Duration | undefined;
+ timeout: Duration | undefined;
}
export interface AdminExecuteResponse {
@@ -90,7 +90,7 @@ export interface QueryRequest {
/** The maximum number of rows to return. */
limit: number;
/** The timeout for the request. */
- timeout?: Duration | undefined;
+ timeout: Duration | undefined;
}
export interface QueryResponse {
@@ -119,7 +119,7 @@ export interface QueryResult {
/** The error message if the query failed. */
error: string;
/** The time it takes to execute the query. */
- latency?:
+ latency:
| Duration
| undefined;
/** The query statement for the result. */
diff --git a/frontend/src/types/proto/v1/subscription_service.ts b/frontend/src/types/proto/v1/subscription_service.ts
index 37f2ca089f..6bb061657f 100644
--- a/frontend/src/types/proto/v1/subscription_service.ts
+++ b/frontend/src/types/proto/v1/subscription_service.ts
@@ -56,11 +56,11 @@ export interface GetFeatureMatrixRequest {
}
export interface UpdateSubscriptionRequest {
- patch?: PatchSubscription | undefined;
+ patch: PatchSubscription | undefined;
}
export interface TrialSubscriptionRequest {
- trial?: TrialSubscription | undefined;
+ trial: TrialSubscription | undefined;
}
export interface PatchSubscription {
@@ -75,8 +75,8 @@ export interface TrialSubscription {
export interface Subscription {
instanceCount: number;
- expiresTime?: Date | undefined;
- startedTime?: Date | undefined;
+ 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 39bf5fa655..67ef58b55e 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 | undefined;
+ fileCommit: FileCommit | undefined;
}
export interface Commit {
id: string;
title: string;
message: string;
- createdTime?: Date | undefined;
+ createdTime: Date | undefined;
url: string;
authorName: string;
authorEmail: string;
@@ -79,7 +79,7 @@ export interface FileCommit {
id: string;
title: string;
message: string;
- createdTime?: Date | undefined;
+ createdTime: Date | undefined;
url: string;
authorName: string;
authorEmail: string;
diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml
index 92e0ac9497..11b726bedb 100644
--- a/proto/buf.gen.yaml
+++ b/proto/buf.gen.yaml
@@ -16,7 +16,6 @@ plugins:
# 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=generic-definitions
- useExactTypes=false
- esModuleInterop=true