Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: bring maximum_role_expiration back (#20783)
ecmadaofae532b02abb
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex a9fd20f46b..5f258ef9b6 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -20675,7 +20675,7 @@ components:$ref: '#/components/schemas/bytebase.v1.Announcement'maximumRequestExpiration:title: maximum_request_expiration- description: The max expiration duration for role grants and data access requests.+ description: The max expiration duration for data access requests.$ref: '#/components/schemas/google.protobuf.Duration'domains:type: array@@ -20762,6 +20762,12 @@ components:The enforced CUSTOM theme's full definition — present ONLY whensql_editor_theme_id is a custom uuid. tokens is always complete.$ref: '#/components/schemas/bytebase.v1.SQLEditorThemeSetting'+ maximumRoleExpiration:+ title: maximum_role_expiration+ description: |-+ The max expiration duration for request role.+ Deprecated: use just-in-time access request flows instead.+ $ref: '#/components/schemas/google.protobuf.Duration'title: WorkspaceProfileSettingadditionalProperties: falsebytebase.v1.WorkspaceProfileSetting.PasswordRestriction:diff --git a/backend/api/v1/issue_service.go b/backend/api/v1/issue_service.goindex c3a9a72ab2..4badd4f973 100644--- a/backend/api/v1/issue_service.go+++ b/backend/api/v1/issue_service.go@@ -474,8 +474,8 @@ func (s *IssueService) buildIssueMessage(ctx context.Context, project *store.Pro}}- // Enforce the workspace maximum request expiration cap (project owner is- // exempt), mirroring SetIamPolicy. The role grant's condition carries the+ // Enforce the workspace maximum role expiration cap (project owner is+ // exempt). The role grant's condition carries the// `request.time < timestamp(...)` clause that becomes the IAM binding, so// validating it here also rejects a missing expiration when a cap is set.if request.Issue.RoleGrant.GetRole() != fmt.Sprintf("roles/%s", store.ProjectOwnerRole) {@@ -483,8 +483,8 @@ func (s *IssueService) buildIssueMessage(ctx context.Context, project *store.Proif err != nil {return nil, connect.NewError(connect.CodeInternal, errors.New("failed to get workspace profile setting"))}- if maximumRequestExpiration := workspaceProfileSetting.GetMaximumRequestExpiration(); maximumRequestExpiration != nil {- if err := validateExpirationInExpression(request.Issue.RoleGrant.GetCondition().GetExpression(), maximumRequestExpiration); err != nil {+ if maximumRoleExpiration := workspaceProfileSetting.GetMaximumRoleExpiration(); maximumRoleExpiration != nil {+ if err := validateExpirationInExpression(request.Issue.RoleGrant.GetCondition().GetExpression(), maximumRoleExpiration); err != nil {return nil, connect.NewError(connect.CodeInvalidArgument, errors.Wrapf(err, "failed to validate role expiration"))}}diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex 21d13e19b2..f7ff4de149 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -1085,9 +1085,9 @@ func validateIAMPolicy(if err != nil {return connect.NewError(connect.CodeInternal, errors.New("failed to get workspace profile setting"))}- var maximumRequestExpiration *durationpb.Duration+ var maximumRoleExpiration *durationpb.Durationif workspaceProfileSetting != nil {- maximumRequestExpiration = workspaceProfileSetting.MaximumRequestExpiration+ maximumRoleExpiration = workspaceProfileSetting.MaximumRoleExpiration}roleMessages, err := stores.ListRoles(ctx, &store.FindRoleMessage{Workspace: common.GetWorkspaceIDFromContext(ctx)})@@ -1125,14 +1125,14 @@ func validateIAMPolicy(}}- return validateBindings(msg.Resource, bindings, roleMessages, maximumRequestExpiration)+ return validateBindings(msg.Resource, bindings, roleMessages, maximumRoleExpiration)}func validateBindings(parent string,bindings []*v1pb.Binding,roles []*store.RoleMessage,- maximumRequestExpiration *durationpb.Duration,+ maximumRoleExpiration *durationpb.Duration,) error {existingRoles := make(map[string]bool)for _, role := range roles {@@ -1155,9 +1155,9 @@ func validateBindings(return err}- if binding.Role != fmt.Sprintf("roles/%s", store.ProjectOwnerRole) && maximumRequestExpiration != nil {- // Only validate when maximumRequestExpiration is set and the role is not project owner.- if err := validateExpirationInExpression(binding.GetCondition().GetExpression(), maximumRequestExpiration); err != nil {+ if binding.Role != fmt.Sprintf("roles/%s", store.ProjectOwnerRole) && maximumRoleExpiration != nil {+ // Only validate when maximumRoleExpiration is set and the role is not project owner.+ if err := validateExpirationInExpression(binding.GetCondition().GetExpression(), maximumRoleExpiration); err != nil {return connect.NewError(connect.CodeInvalidArgument, errors.Wrapf(err, "failed to validate expiration for binding %v", binding.Role))}}@@ -1170,8 +1170,8 @@ func validateBindings(// * request.time < timestamp("2021-01-01T00:00:00Z")//// Other expressions will be ignored.-func validateExpirationInExpression(expr string, maximumRequestExpiration *durationpb.Duration) error {- if maximumRequestExpiration == nil {+func validateExpirationInExpression(expr string, maximumExpiration *durationpb.Duration) error {+ if maximumExpiration == nil {return nil}if !strings.Contains(expr, "request.time") {@@ -1245,9 +1245,9 @@ func validateExpirationInExpression(expr string, maximumRequestExpiration *duratif err != nil {return errors.Errorf("failed to parse time %v, error: %v", value, err)}- maxExpirationTime := time.Now().Add(maximumRequestExpiration.AsDuration())+ maxExpirationTime := time.Now().Add(maximumExpiration.AsDuration())if t.After(maxExpirationTime) {- return errors.Errorf("time %s exceeds maximum request expiration %s", t.Format(time.DateTime), maxExpirationTime.Format(time.DateTime))+ return errors.Errorf("time %s exceeds maximum role expiration %s", t.Format(time.DateTime), maxExpirationTime.Format(time.DateTime))}return nildefault:diff --git a/backend/api/v1/project_service_test.go b/backend/api/v1/project_service_test.goindex 5d6aafe093..64383a049d 100644--- a/backend/api/v1/project_service_test.go+++ b/backend/api/v1/project_service_test.go@@ -262,42 +262,42 @@ func TestValidateIAMPolicyExpression(t *testing.T) {withinCap := fmt.Sprintf("request.time < timestamp(\"%s\")", timeNow.AddDate(0, 0, 15).Format(time.RFC3339))overCap := fmt.Sprintf("request.time < timestamp(\"%s\")", timeNow.AddDate(0, 0, 60).Format(time.RFC3339))tests := []struct {- name string- expr string- maximumRequestExpiration *durationpb.Duration- wantErr bool+ name string+ expr string+ maximumExpiration *durationpb.Duration+ wantErr bool}{{- name: "within cap",- expr: withinCap,- maximumRequestExpiration: thirtyDays,+ name: "within cap",+ expr: withinCap,+ maximumExpiration: thirtyDays,},{- name: "exceeds cap",- expr: overCap,- maximumRequestExpiration: thirtyDays,- wantErr: true,+ name: "exceeds cap",+ expr: overCap,+ maximumExpiration: thirtyDays,+ wantErr: true,},{- name: "no cap configured",- expr: overCap,- maximumRequestExpiration: nil,+ name: "no cap configured",+ expr: overCap,+ maximumExpiration: nil,},{- name: "bound with database scoping",- expr: fmt.Sprintf(`%s && (resource.database == "a" || resource.database == "b")`, withinCap),- maximumRequestExpiration: thirtyDays,+ name: "bound with database scoping",+ expr: fmt.Sprintf(`%s && (resource.database == "a" || resource.database == "b")`, withinCap),+ maximumExpiration: thirtyDays,},{- name: "missing request.time",- expr: `resource.database == "a"`,- maximumRequestExpiration: thirtyDays,- wantErr: true,+ name: "missing request.time",+ expr: `resource.database == "a"`,+ maximumExpiration: thirtyDays,+ wantErr: true,},}for _, tt := range tests {- err := validateExpirationInExpression(tt.expr, tt.maximumRequestExpiration)+ err := validateExpirationInExpression(tt.expr, tt.maximumExpiration)if tt.wantErr {require.Error(t, err, tt.name)} else {diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex 72597539e4..80d008e361 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -277,6 +277,14 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *connect.Req}}oldSetting.MaximumRequestExpiration = payload.MaximumRequestExpiration+ case "value.workspace_profile.maximum_role_expiration":+ if payload.MaximumRoleExpiration != nil {+ // If the value is less than or equal to 0, we will remove the setting. AKA no limit.+ if payload.MaximumRoleExpiration.Seconds <= 0 {+ payload.MaximumRoleExpiration = nil+ }+ }+ oldSetting.MaximumRoleExpiration = payload.MaximumRoleExpirationcase "value.workspace_profile.domains":if err := validateDomains(payload.Domains); err != nil {return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid domains, error %v", err))diff --git a/backend/api/v1/setting_service_converter.go b/backend/api/v1/setting_service_converter.goindex e3f16a3696..d0fa027199 100644--- a/backend/api/v1/setting_service_converter.go+++ b/backend/api/v1/setting_service_converter.go@@ -260,6 +260,7 @@ func convertWorkspaceProfileSetting(v1Setting *v1pb.WorkspaceProfileSetting) *stRefreshTokenDuration: v1Setting.RefreshTokenDuration,AccessTokenDuration: v1Setting.AccessTokenDuration,InactiveSessionTimeout: v1Setting.InactiveSessionTimeout,+ MaximumRoleExpiration: v1Setting.MaximumRoleExpiration,MaximumRequestExpiration: v1Setting.MaximumRequestExpiration,Domains: v1Setting.Domains,EnforceIdentityDomain: v1Setting.EnforceIdentityDomain,@@ -333,6 +334,7 @@ func convertToWorkspaceProfileSetting(storeSetting *storepb.WorkspaceProfileSettRefreshTokenDuration: storeSetting.RefreshTokenDuration,AccessTokenDuration: storeSetting.AccessTokenDuration,InactiveSessionTimeout: storeSetting.InactiveSessionTimeout,+ MaximumRoleExpiration: storeSetting.MaximumRoleExpiration,MaximumRequestExpiration: storeSetting.MaximumRequestExpiration,Domains: storeSetting.Domains,EnforceIdentityDomain: storeSetting.EnforceIdentityDomain,diff --git a/backend/generated-go/store/setting.pb.go b/backend/generated-go/store/setting.pb.goindex b1bcea7f45..1a0d9d868d 100644--- a/backend/generated-go/store/setting.pb.go+++ b/backend/generated-go/store/setting.pb.go@@ -520,7 +520,7 @@ type WorkspaceProfileSetting struct {RefreshTokenDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=refresh_token_duration,json=refreshTokenDuration,proto3" json:"refresh_token_duration,omitempty"`// The setting of custom announcementAnnouncement *WorkspaceProfileSetting_Announcement `protobuf:"bytes,5,opt,name=announcement,proto3" json:"announcement,omitempty"`- // The max expiration duration for role grants and data access requests.+ // The max expiration duration for data access requests.MaximumRequestExpiration *durationpb.Duration `protobuf:"bytes,6,opt,name=maximum_request_expiration,json=maximumRequestExpiration,proto3" json:"maximum_request_expiration,omitempty"`// The workspace domain, e.g., bytebase.com.Domains []string `protobuf:"bytes,7,rep,name=domains,proto3" json:"domains,omitempty"`@@ -562,8 +562,11 @@ type WorkspaceProfileSetting struct {// The enforced CUSTOM theme's full definition — present ONLY when// sql_editor_theme_id is a custom uuid. tokens is always complete.SqlEditorCustomTheme *SQLEditorThemeSetting `protobuf:"bytes,24,opt,name=sql_editor_custom_theme,json=sqlEditorCustomTheme,proto3" json:"sql_editor_custom_theme,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // The max expiration duration for request role.+ // Deprecated: use just-in-time access request flows instead.+ MaximumRoleExpiration *durationpb.Duration `protobuf:"bytes,25,opt,name=maximum_role_expiration,json=maximumRoleExpiration,proto3" json:"maximum_role_expiration,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *WorkspaceProfileSetting) Reset() {@@ -757,6 +760,13 @@ func (x *WorkspaceProfileSetting) GetSqlEditorCustomTheme() *SQLEditorThemeSettireturn nil}+func (x *WorkspaceProfileSetting) GetMaximumRoleExpiration() *durationpb.Duration {+ if x != nil {+ return x.MaximumRoleExpiration+ }+ return nil+}+type SQLEditorThemeSetting struct {state protoimpl.MessageState `protogen:"open.v1"`Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`@@ -2803,7 +2813,7 @@ const file_store_setting_proto_rawDesc = "" +"\n" +"\x13store/setting.proto\x12\x0ebytebase.store\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x17google/type/color.proto\x1a\x16google/type/expr.proto\x1a\x14store/approval.proto\x1a\x12store/common.proto\"P\n" +"\rSystemSetting\x12\x18\n" +- "\alicense\x18\x03 \x01(\tR\alicenseJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\vauth_secretR\fworkspace_id\"\xaf\x11\n" ++ "\alicense\x18\x03 \x01(\tR\alicenseJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\vauth_secretR\fworkspace_id\"\x82\x12\n" +"\x17WorkspaceProfileSetting\x12!\n" +"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +@@ -2829,7 +2839,8 @@ const file_store_setting_proto_rawDesc = "" +"\rquery_timeout\x18\x15 \x01(\v2\x19.google.protobuf.DurationR\fqueryTimeout\x125\n" +"\x17allow_email_code_signin\x18\x16 \x01(\bR\x14allowEmailCodeSignin\x12-\n" +"\x13sql_editor_theme_id\x18\x17 \x01(\tR\x10sqlEditorThemeId\x12\\\n" +- "\x17sql_editor_custom_theme\x18\x18 \x01(\v2%.bytebase.store.SQLEditorThemeSettingR\x14sqlEditorCustomTheme\x1a\x92\x02\n" ++ "\x17sql_editor_custom_theme\x18\x18 \x01(\v2%.bytebase.store.SQLEditorThemeSettingR\x14sqlEditorCustomTheme\x12Q\n" ++ "\x17maximum_role_expiration\x18\x19 \x01(\v2\x19.google.protobuf.DurationR\x15maximumRoleExpiration\x1a\x92\x02\n" +"\fAnnouncement\x12\x12\n" +"\x04text\x18\x02 \x01(\tR\x04text\x12\x12\n" +"\x04link\x18\x03 \x01(\tR\x04link\x12\\\n" +@@ -3110,49 +3121,50 @@ var file_store_setting_proto_depIdxs = []int32{44, // 6: bytebase.store.WorkspaceProfileSetting.access_token_duration:type_name -> google.protobuf.Duration44, // 7: bytebase.store.WorkspaceProfileSetting.query_timeout:type_name -> google.protobuf.Duration10, // 8: bytebase.store.WorkspaceProfileSetting.sql_editor_custom_theme:type_name -> bytebase.store.SQLEditorThemeSetting- 22, // 9: bytebase.store.SQLEditorThemeSetting.tokens:type_name -> bytebase.store.SQLEditorThemeSetting.TokensEntry- 23, // 10: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule- 24, // 11: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig- 28, // 12: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask- 29, // 13: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask- 30, // 14: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask- 31, // 15: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask- 33, // 16: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType- 40, // 17: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting- 4, // 18: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider- 41, // 19: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment- 5, // 20: bytebase.store.EmailSetting.type:type_name -> bytebase.store.EmailSetting.Type- 43, // 21: bytebase.store.EmailSetting.smtp:type_name -> bytebase.store.EmailSetting.SMTPConfig- 21, // 22: bytebase.store.WorkspaceProfileSetting.Announcement.theme:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme- 44, // 23: bytebase.store.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration- 45, // 24: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme.background:type_name -> google.type.Color- 45, // 25: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme.text:type_name -> google.type.Color- 45, // 26: bytebase.store.SQLEditorThemeSetting.TokensEntry.value:type_name -> google.type.Color- 46, // 27: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate- 47, // 28: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 2, // 29: bytebase.store.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule.Source- 25, // 30: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level- 27, // 31: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- 26, // 32: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification- 32, // 33: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice- 3, // 34: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType- 13, // 35: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm- 48, // 36: bytebase.store.AppIMSetting.IMSetting.type:type_name -> bytebase.store.WebhookType- 34, // 37: bytebase.store.AppIMSetting.IMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack- 35, // 38: bytebase.store.AppIMSetting.IMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu- 36, // 39: bytebase.store.AppIMSetting.IMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom- 37, // 40: bytebase.store.AppIMSetting.IMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark- 38, // 41: bytebase.store.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk- 39, // 42: bytebase.store.AppIMSetting.IMSetting.teams:type_name -> bytebase.store.AppIMSetting.Teams- 42, // 43: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry- 45, // 44: bytebase.store.EnvironmentSetting.Environment.color:type_name -> google.type.Color- 6, // 45: bytebase.store.EmailSetting.SMTPConfig.encryption:type_name -> bytebase.store.EmailSetting.SMTPConfig.Encryption- 7, // 46: bytebase.store.EmailSetting.SMTPConfig.authentication:type_name -> bytebase.store.EmailSetting.SMTPConfig.Authentication- 47, // [47:47] is the sub-list for method output_type- 47, // [47:47] is the sub-list for method input_type- 47, // [47:47] is the sub-list for extension type_name- 47, // [47:47] is the sub-list for extension extendee- 0, // [0:47] is the sub-list for field type_name+ 44, // 9: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration+ 22, // 10: bytebase.store.SQLEditorThemeSetting.tokens:type_name -> bytebase.store.SQLEditorThemeSetting.TokensEntry+ 23, // 11: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule+ 24, // 12: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig+ 28, // 13: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask+ 29, // 14: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask+ 30, // 15: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask+ 31, // 16: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask+ 33, // 17: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType+ 40, // 18: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting+ 4, // 19: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider+ 41, // 20: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment+ 5, // 21: bytebase.store.EmailSetting.type:type_name -> bytebase.store.EmailSetting.Type+ 43, // 22: bytebase.store.EmailSetting.smtp:type_name -> bytebase.store.EmailSetting.SMTPConfig+ 21, // 23: bytebase.store.WorkspaceProfileSetting.Announcement.theme:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme+ 44, // 24: bytebase.store.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration+ 45, // 25: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme.background:type_name -> google.type.Color+ 45, // 26: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme.text:type_name -> google.type.Color+ 45, // 27: bytebase.store.SQLEditorThemeSetting.TokensEntry.value:type_name -> google.type.Color+ 46, // 28: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate+ 47, // 29: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 2, // 30: bytebase.store.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule.Source+ 25, // 31: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ 27, // 32: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 26, // 33: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ 32, // 34: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice+ 3, // 35: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType+ 13, // 36: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm+ 48, // 37: bytebase.store.AppIMSetting.IMSetting.type:type_name -> bytebase.store.WebhookType+ 34, // 38: bytebase.store.AppIMSetting.IMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack+ 35, // 39: bytebase.store.AppIMSetting.IMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu+ 36, // 40: bytebase.store.AppIMSetting.IMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom+ 37, // 41: bytebase.store.AppIMSetting.IMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark+ 38, // 42: bytebase.store.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk+ 39, // 43: bytebase.store.AppIMSetting.IMSetting.teams:type_name -> bytebase.store.AppIMSetting.Teams+ 42, // 44: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry+ 45, // 45: bytebase.store.EnvironmentSetting.Environment.color:type_name -> google.type.Color+ 6, // 46: bytebase.store.EmailSetting.SMTPConfig.encryption:type_name -> bytebase.store.EmailSetting.SMTPConfig.Encryption+ 7, // 47: bytebase.store.EmailSetting.SMTPConfig.authentication:type_name -> bytebase.store.EmailSetting.SMTPConfig.Authentication+ 48, // [48:48] is the sub-list for method output_type+ 48, // [48:48] is the sub-list for method input_type+ 48, // [48:48] is the sub-list for extension type_name+ 48, // [48:48] is the sub-list for extension extendee+ 0, // [0:48] is the sub-list for field type_name}func init() { file_store_setting_proto_init() }diff --git a/backend/generated-go/store/setting_equal.pb.go b/backend/generated-go/store/setting_equal.pb.goindex efc74912d0..96de0ab901 100644--- a/backend/generated-go/store/setting_equal.pb.go+++ b/backend/generated-go/store/setting_equal.pb.go@@ -173,6 +173,9 @@ func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {if !x.SqlEditorCustomTheme.Equal(y.SqlEditorCustomTheme) {return false}+ if p, q := x.MaximumRoleExpiration, y.MaximumRoleExpiration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {+ return false+ }return true}diff --git a/backend/generated-go/v1/setting_service.pb.go b/backend/generated-go/v1/setting_service.pb.goindex 764cdcb360..ca90b759c9 100644--- a/backend/generated-go/v1/setting_service.pb.go+++ b/backend/generated-go/v1/setting_service.pb.go@@ -993,7 +993,7 @@ type WorkspaceProfileSetting struct {RefreshTokenDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=refresh_token_duration,json=refreshTokenDuration,proto3" json:"refresh_token_duration,omitempty"`// The setting of custom announcementAnnouncement *Announcement `protobuf:"bytes,5,opt,name=announcement,proto3" json:"announcement,omitempty"`- // The max expiration duration for role grants and data access requests.+ // The max expiration duration for data access requests.MaximumRequestExpiration *durationpb.Duration `protobuf:"bytes,6,opt,name=maximum_request_expiration,json=maximumRequestExpiration,proto3" json:"maximum_request_expiration,omitempty"`// The workspace domain, e.g., bytebase.com.Domains []string `protobuf:"bytes,7,rep,name=domains,proto3" json:"domains,omitempty"`@@ -1035,8 +1035,11 @@ type WorkspaceProfileSetting struct {// The enforced CUSTOM theme's full definition — present ONLY when// sql_editor_theme_id is a custom uuid. tokens is always complete.SqlEditorCustomTheme *SQLEditorThemeSetting `protobuf:"bytes,24,opt,name=sql_editor_custom_theme,json=sqlEditorCustomTheme,proto3" json:"sql_editor_custom_theme,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // The max expiration duration for request role.+ // Deprecated: use just-in-time access request flows instead.+ MaximumRoleExpiration *durationpb.Duration `protobuf:"bytes,25,opt,name=maximum_role_expiration,json=maximumRoleExpiration,proto3" json:"maximum_role_expiration,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *WorkspaceProfileSetting) Reset() {@@ -1230,6 +1233,13 @@ func (x *WorkspaceProfileSetting) GetSqlEditorCustomTheme() *SQLEditorThemeSettireturn nil}+func (x *WorkspaceProfileSetting) GetMaximumRoleExpiration() *durationpb.Duration {+ if x != nil {+ return x.MaximumRoleExpiration+ }+ return nil+}+type SQLEditorThemeSetting struct {state protoimpl.MessageState `protogen:"open.v1"`Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`@@ -3444,7 +3454,7 @@ const file_v1_setting_service_proto_rawDesc = "" +"\x04lark\x18\x05 \x01(\v2\x1e.bytebase.v1.AppIMSetting.LarkH\x00R\x04lark\x12@\n" +"\bdingtalk\x18\x06 \x01(\v2\".bytebase.v1.AppIMSetting.DingTalkH\x00R\bdingtalk\x127\n" +"\x05teams\x18\a \x01(\v2\x1f.bytebase.v1.AppIMSetting.TeamsH\x00R\x05teamsB\t\n" +- "\apayload\"\x88\x0e\n" ++ "\apayload\"\xdb\x0e\n" +"\x17WorkspaceProfileSetting\x12!\n" +"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +@@ -3470,7 +3480,8 @@ const file_v1_setting_service_proto_rawDesc = "" +"\rquery_timeout\x18\x15 \x01(\v2\x19.google.protobuf.DurationR\fqueryTimeout\x125\n" +"\x17allow_email_code_signin\x18\x16 \x01(\bR\x14allowEmailCodeSignin\x12-\n" +"\x13sql_editor_theme_id\x18\x17 \x01(\tR\x10sqlEditorThemeId\x12Y\n" +- "\x17sql_editor_custom_theme\x18\x18 \x01(\v2\".bytebase.v1.SQLEditorThemeSettingR\x14sqlEditorCustomTheme\x1a\x93\x03\n" ++ "\x17sql_editor_custom_theme\x18\x18 \x01(\v2\".bytebase.v1.SQLEditorThemeSettingR\x14sqlEditorCustomTheme\x12Q\n" ++ "\x17maximum_role_expiration\x18\x19 \x01(\v2\x19.google.protobuf.DurationR\x15maximumRoleExpiration\x1a\x93\x03\n" +"\x13PasswordRestriction\x12\x1d\n" +"\n" +"min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +@@ -3739,57 +3750,58 @@ var file_v1_setting_service_proto_depIdxs = []int32{53, // 20: bytebase.v1.WorkspaceProfileSetting.access_token_duration:type_name -> google.protobuf.Duration53, // 21: bytebase.v1.WorkspaceProfileSetting.query_timeout:type_name -> google.protobuf.Duration17, // 22: bytebase.v1.WorkspaceProfileSetting.sql_editor_custom_theme:type_name -> bytebase.v1.SQLEditorThemeSetting- 36, // 23: bytebase.v1.SQLEditorThemeSetting.tokens:type_name -> bytebase.v1.SQLEditorThemeSetting.TokensEntry- 37, // 24: bytebase.v1.Announcement.theme:type_name -> bytebase.v1.Announcement.AnnouncementTheme- 38, // 25: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule- 39, // 26: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig- 43, // 27: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType- 44, // 28: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask- 45, // 29: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask- 46, // 30: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask- 47, // 31: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask- 4, // 32: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider- 49, // 33: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment- 5, // 34: bytebase.v1.EmailSetting.type:type_name -> bytebase.v1.EmailSetting.Type- 51, // 35: bytebase.v1.EmailSetting.smtp:type_name -> bytebase.v1.EmailSetting.SMTPConfig- 25, // 36: bytebase.v1.TestEmailSettingRequest.email_setting:type_name -> bytebase.v1.EmailSetting- 54, // 37: bytebase.v1.AppIMSetting.IMSetting.type:type_name -> bytebase.v1.WebhookType- 28, // 38: bytebase.v1.AppIMSetting.IMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack- 29, // 39: bytebase.v1.AppIMSetting.IMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu- 30, // 40: bytebase.v1.AppIMSetting.IMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom- 31, // 41: bytebase.v1.AppIMSetting.IMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark- 32, // 42: bytebase.v1.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk- 33, // 43: bytebase.v1.AppIMSetting.IMSetting.teams:type_name -> bytebase.v1.AppIMSetting.Teams- 53, // 44: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration- 55, // 45: bytebase.v1.SQLEditorThemeSetting.TokensEntry.value:type_name -> google.type.Color- 55, // 46: bytebase.v1.Announcement.AnnouncementTheme.background:type_name -> google.type.Color- 55, // 47: bytebase.v1.Announcement.AnnouncementTheme.text:type_name -> google.type.Color- 56, // 48: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate- 57, // 49: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 2, // 50: bytebase.v1.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule.Source- 40, // 51: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level- 42, // 52: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- 41, // 53: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification- 22, // 54: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm- 48, // 55: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice- 3, // 56: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType- 50, // 57: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry- 55, // 58: bytebase.v1.EnvironmentSetting.Environment.color:type_name -> google.type.Color- 6, // 59: bytebase.v1.EmailSetting.SMTPConfig.encryption:type_name -> bytebase.v1.EmailSetting.SMTPConfig.Encryption- 7, // 60: bytebase.v1.EmailSetting.SMTPConfig.authentication:type_name -> bytebase.v1.EmailSetting.SMTPConfig.Authentication- 8, // 61: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest- 10, // 62: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest- 12, // 63: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest- 26, // 64: bytebase.v1.SettingService.TestEmailSetting:input_type -> bytebase.v1.TestEmailSettingRequest- 9, // 65: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse- 13, // 66: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting- 13, // 67: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting- 27, // 68: bytebase.v1.SettingService.TestEmailSetting:output_type -> bytebase.v1.TestEmailSettingResponse- 65, // [65:69] is the sub-list for method output_type- 61, // [61:65] is the sub-list for method input_type- 61, // [61:61] is the sub-list for extension type_name- 61, // [61:61] is the sub-list for extension extendee- 0, // [0:61] is the sub-list for field type_name+ 53, // 23: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration+ 36, // 24: bytebase.v1.SQLEditorThemeSetting.tokens:type_name -> bytebase.v1.SQLEditorThemeSetting.TokensEntry+ 37, // 25: bytebase.v1.Announcement.theme:type_name -> bytebase.v1.Announcement.AnnouncementTheme+ 38, // 26: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule+ 39, // 27: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig+ 43, // 28: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType+ 44, // 29: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask+ 45, // 30: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask+ 46, // 31: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask+ 47, // 32: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask+ 4, // 33: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider+ 49, // 34: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment+ 5, // 35: bytebase.v1.EmailSetting.type:type_name -> bytebase.v1.EmailSetting.Type+ 51, // 36: bytebase.v1.EmailSetting.smtp:type_name -> bytebase.v1.EmailSetting.SMTPConfig+ 25, // 37: bytebase.v1.TestEmailSettingRequest.email_setting:type_name -> bytebase.v1.EmailSetting+ 54, // 38: bytebase.v1.AppIMSetting.IMSetting.type:type_name -> bytebase.v1.WebhookType+ 28, // 39: bytebase.v1.AppIMSetting.IMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack+ 29, // 40: bytebase.v1.AppIMSetting.IMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu+ 30, // 41: bytebase.v1.AppIMSetting.IMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom+ 31, // 42: bytebase.v1.AppIMSetting.IMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark+ 32, // 43: bytebase.v1.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk+ 33, // 44: bytebase.v1.AppIMSetting.IMSetting.teams:type_name -> bytebase.v1.AppIMSetting.Teams+ 53, // 45: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration+ 55, // 46: bytebase.v1.SQLEditorThemeSetting.TokensEntry.value:type_name -> google.type.Color+ 55, // 47: bytebase.v1.Announcement.AnnouncementTheme.background:type_name -> google.type.Color+ 55, // 48: bytebase.v1.Announcement.AnnouncementTheme.text:type_name -> google.type.Color+ 56, // 49: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate+ 57, // 50: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 2, // 51: bytebase.v1.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule.Source+ 40, // 52: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ 42, // 53: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 41, // 54: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ 22, // 55: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm+ 48, // 56: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice+ 3, // 57: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType+ 50, // 58: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry+ 55, // 59: bytebase.v1.EnvironmentSetting.Environment.color:type_name -> google.type.Color+ 6, // 60: bytebase.v1.EmailSetting.SMTPConfig.encryption:type_name -> bytebase.v1.EmailSetting.SMTPConfig.Encryption+ 7, // 61: bytebase.v1.EmailSetting.SMTPConfig.authentication:type_name -> bytebase.v1.EmailSetting.SMTPConfig.Authentication+ 8, // 62: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest+ 10, // 63: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest+ 12, // 64: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest+ 26, // 65: bytebase.v1.SettingService.TestEmailSetting:input_type -> bytebase.v1.TestEmailSettingRequest+ 9, // 66: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse+ 13, // 67: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting+ 13, // 68: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting+ 27, // 69: bytebase.v1.SettingService.TestEmailSetting:output_type -> bytebase.v1.TestEmailSettingResponse+ 66, // [66:70] is the sub-list for method output_type+ 62, // [62:66] is the sub-list for method input_type+ 62, // [62:62] is the sub-list for extension type_name+ 62, // [62:62] is the sub-list for extension extendee+ 0, // [0:62] is the sub-list for field type_name}func init() { file_v1_setting_service_proto_init() }diff --git a/backend/generated-go/v1/setting_service_equal.pb.go b/backend/generated-go/v1/setting_service_equal.pb.goindex 9d15c2085c..2a150ea8ed 100644--- a/backend/generated-go/v1/setting_service_equal.pb.go+++ b/backend/generated-go/v1/setting_service_equal.pb.go@@ -403,6 +403,9 @@ func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {if !x.SqlEditorCustomTheme.Equal(y.SqlEditorCustomTheme) {return false}+ if p, q := x.MaximumRoleExpiration, y.MaximumRoleExpiration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {+ return false+ }return true}diff --git a/backend/migrator/migration/3.20/0004##restore_maximum_role_expiration.sql b/backend/migrator/migration/3.20/0004##restore_maximum_role_expiration.sqlnew file mode 100644index 0000000000..3036cfe8f3--- /dev/null+++ b/backend/migrator/migration/3.20/0004##restore_maximum_role_expiration.sql@@ -0,0 +1,18 @@+-- Restore the workspace profile `maximumRoleExpiration` JSON key while keeping+-- `maximumRequestExpiration` for request access.+--+-- Safety:+-- * Only copies from an existing `maximumRequestExpiration` key, so it never+-- fabricates a cap for workspaces without a configured request expiration.+-- * Does not overwrite a `maximumRoleExpiration` key if it already exists.+-- * Idempotent: once the restored key exists, the WHERE clause excludes it.+UPDATE setting+SET value = jsonb_set(+ value,+ '{maximumRoleExpiration}',+ value->'maximumRequestExpiration',+ true+)+WHERE name = 'WORKSPACE_PROFILE'+ AND value ? 'maximumRequestExpiration'+ AND NOT (value ? 'maximumRoleExpiration');diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 5d26bf62c6..befa362f5e 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -15,8 +15,8 @@ import (func TestLatestVersion(t *testing.T) {files, err := getSortedVersionedFiles()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.20.3"), *files[len(files)-1].version)- require.Equal(t, "migration/3.20/0003##migrate_color_string_to_message.sql", files[len(files)-1].path)+ require.Equal(t, semver.MustParse("3.20.4"), *files[len(files)-1].version)+ require.Equal(t, "migration/3.20/0004##restore_maximum_role_expiration.sql", files[len(files)-1].path)}func TestVersionUnique(t *testing.T) {diff --git a/backend/tests/maximum_request_expiration_test.go b/backend/tests/maximum_request_expiration_test.goindex c01256c9b5..e3856c63b3 100644--- a/backend/tests/maximum_request_expiration_test.go+++ b/backend/tests/maximum_request_expiration_test.go@@ -38,8 +38,30 @@ func (ctl *controller) setMaximumRequestExpiration(ctx context.Context, d *duratreturn err}+// setMaximumRoleExpiration sets the workspace-level maximum role expiration cap.+// Passing nil clears the cap.+func (ctl *controller) setMaximumRoleExpiration(ctx context.Context, d *durationpb.Duration) error {+ _, err := ctl.settingServiceClient.UpdateSetting(ctx, connect.NewRequest(&v1pb.UpdateSettingRequest{+ AllowMissing: true,+ Setting: &v1pb.Setting{+ Name: "settings/" + v1pb.Setting_WORKSPACE_PROFILE.String(),+ Value: &v1pb.SettingValue{+ Value: &v1pb.SettingValue_WorkspaceProfile{+ WorkspaceProfile: &v1pb.WorkspaceProfileSetting{+ MaximumRoleExpiration: d,+ },+ },+ },+ },+ UpdateMask: &fieldmaskpb.FieldMask{+ Paths: []string{"value.workspace_profile.maximum_role_expiration"},+ },+ }))+ return err+}+// TestRoleGrantMaximumExpiration verifies that creating a ROLE_GRANT issue is-// validated server-side against the workspace maximum request expiration cap.+// validated server-side against the workspace maximum role expiration cap.func TestRoleGrantMaximumExpiration(t *testing.T) {t.Parallel()a := require.New(t)@@ -68,13 +90,21 @@ func TestRoleGrantMaximumExpiration(t *testing.T) {})}- // Within the cap (1 day): allowed.+ // Request expiration does not cap role grants.+ a.NoError(ctl.setMaximumRequestExpiration(ctx, durationpb.New(7*24*time.Hour)))+ overCap := fmt.Sprintf(`request.time < timestamp("%s")`, time.Now().Add(30*24*time.Hour).Format(time.RFC3339))+ _, err = ctl.issueServiceClient.CreateIssue(ctx, newRoleGrantIssue(overCap))+ a.NoError(err, "role grant expiration should ignore the request expiration cap")++ // Cap role expiration to 7 days.+ a.NoError(ctl.setMaximumRoleExpiration(ctx, durationpb.New(7*24*time.Hour)))++ // Within the role cap (1 day): allowed.withinCap := fmt.Sprintf(`request.time < timestamp("%s")`, time.Now().Add(24*time.Hour).Format(time.RFC3339))_, err = ctl.issueServiceClient.CreateIssue(ctx, newRoleGrantIssue(withinCap))a.NoError(err, "expiration within the cap should be allowed")- // Exceeding the cap (30 days): rejected.- overCap := fmt.Sprintf(`request.time < timestamp("%s")`, time.Now().Add(30*24*time.Hour).Format(time.RFC3339))+ // Exceeding the role cap (30 days): rejected._, err = ctl.issueServiceClient.CreateIssue(ctx, newRoleGrantIssue(overCap))a.Error(err, "expiration exceeding the cap should be rejected")a.Equal(connect.CodeInvalidArgument, connect.CodeOf(err))@@ -86,11 +116,66 @@ func TestRoleGrantMaximumExpiration(t *testing.T) {a.Equal(connect.CodeInvalidArgument, connect.CodeOf(err))// Clearing the cap restores the unbounded behavior.- a.NoError(ctl.setMaximumRequestExpiration(ctx, nil))+ a.NoError(ctl.setMaximumRoleExpiration(ctx, nil))_, err = ctl.issueServiceClient.CreateIssue(ctx, newRoleGrantIssue(overCap))a.NoError(err, "expiration should be unbounded when no cap is configured")}+// TestSetIamPolicyMaximumRoleExpiration verifies that direct project role+// grants are validated against the workspace maximum role expiration cap, not+// the request access cap.+func TestSetIamPolicyMaximumRoleExpiration(t *testing.T) {+ t.Parallel()+ a := require.New(t)+ ctx := context.Background()+ ctl := &controller{}++ ctx, err := ctl.StartServerWithExternalPg(ctx)+ a.NoError(err)+ defer ctl.Close(ctx)++ newProjectDeveloperBinding := func(days int) *v1pb.Binding {+ return &v1pb.Binding{+ Role: "roles/projectDeveloper",+ Members: []string{"user:[email protected]"},+ Condition: &expr.Expr{+ Expression: fmt.Sprintf(`request.time < timestamp("%s")`, time.Now().Add(time.Duration(days)*24*time.Hour).Format(time.RFC3339)),+ },+ }+ }++ policyResp, err := ctl.projectServiceClient.GetIamPolicy(ctx, connect.NewRequest(&v1pb.GetIamPolicyRequest{+ Resource: ctl.project.Name,+ }))+ a.NoError(err)+ policy := policyResp.Msg++ // Request expiration does not cap direct role grants.+ a.NoError(ctl.setMaximumRequestExpiration(ctx, durationpb.New(7*24*time.Hour)))+ policy.Bindings = append(policy.Bindings, newProjectDeveloperBinding(30))+ _, err = ctl.projectServiceClient.SetIamPolicy(ctx, connect.NewRequest(&v1pb.SetIamPolicyRequest{+ Resource: ctl.project.Name,+ Policy: policy,+ }))+ a.NoError(err, "direct role grant expiration should ignore the request expiration cap")++ policyResp, err = ctl.projectServiceClient.GetIamPolicy(ctx, connect.NewRequest(&v1pb.GetIamPolicyRequest{+ Resource: ctl.project.Name,+ }))+ a.NoError(err)+ policy = policyResp.Msg++ // Role expiration caps direct role grants.+ a.NoError(ctl.setMaximumRoleExpiration(ctx, durationpb.New(7*24*time.Hour)))+ policy.Bindings = append(policy.Bindings, newProjectDeveloperBinding(31))+ _, err = ctl.projectServiceClient.SetIamPolicy(ctx, connect.NewRequest(&v1pb.SetIamPolicyRequest{+ Resource: ctl.project.Name,+ Policy: policy,+ }))+ a.Error(err, "direct role grant expiration should respect the role expiration cap")+ a.Equal(connect.CodeInvalidArgument, connect.CodeOf(err))+}+// TestAccessGrantMaximumExpiration verifies that creating an access grant is// validated server-side against the workspace maximum request expiration cap.func TestAccessGrantMaximumExpiration(t *testing.T) {diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex ffac8a799b..d63adcfaaa 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2282,12 +2282,18 @@"logo": "Logo","logo-aspect": "The suggested logo size should be 5:2 aspect ratio, e.g 100 x 40.","logo-upload-tip": "{{extension}} up to {{size}} MiB",- "maximum-request-expiration": {+ "maximum-expiration": {"days": "Day(s)",- "description": "Maximum request expiration is the maximum period a role grant or data access request can remain valid. It applies to all project roles except the project owner, and to all data access requests.",- "never-expires": "Never expires",+ "never-expires": "Never expires"+ },+ "maximum-request-expiration": {+ "description": "Maximum request expiration is the maximum period a data access request can remain valid.","self": "Maximum request expiration"},+ "maximum-role-expiration": {+ "description": "Maximum role expiration applies only to request role. <highlight>This legacy setting will be deprecated in the future; use the just-in-time access flow for temporary access.</highlight>",+ "self": "Maximum role expiration"+ },"maximum-sql-result": {"rows": {"description": "Limit the output rows in SQL query result.",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex b04f44eb79..94568de518 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2282,12 +2282,18 @@"logo": "Logotipo","logo-aspect": "El tamaño sugerido para el logo debería tener una proporción de 5:2, por ejemplo, 100 x 40.","logo-upload-tip": "{{extension}} hasta {{size}} MiB",- "maximum-request-expiration": {+ "maximum-expiration": {"days": "Días)",- "description": "La caducidad máxima de la solicitud es el período máximo durante el cual una concesión de rol o una solicitud de acceso a datos puede permanecer válida. Se aplica a todos los roles del proyecto excepto al propietario del proyecto, y a todas las solicitudes de acceso a datos.",- "never-expires": "Nunca expira",+ "never-expires": "Nunca expira"+ },+ "maximum-request-expiration": {+ "description": "La caducidad máxima de la solicitud es el período máximo durante el cual una solicitud de acceso a datos puede permanecer válida.","self": "Caducidad máxima de la solicitud"},+ "maximum-role-expiration": {+ "description": "La caducidad máxima del rol solo se aplica a la solicitud de rol. <highlight>Esta configuración heredada se dejará de usar en el futuro; usa el flujo de acceso justo a tiempo para acceso temporal.</highlight>",+ "self": "Caducidad máxima del rol"+ },"maximum-sql-result": {"rows": {"description": "Limite las filas de salida en el resultado de la consulta SQL.",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 9b10c1fe4d..5504d10355 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2282,12 +2282,18 @@"logo": "ロゴ","logo-aspect": "推奨されるロゴの幅:高さの比率 (例: 100 x 40 ピクセル)","logo-upload-tip": "{{extension}} タイプのファイルをサポートします。{{size}} MiB より大きくすることはできません",- "maximum-request-expiration": {+ "maximum-expiration": {"days": "日",- "description": "最大リクエスト有効期限は、ロールの付与またはデータアクセスリクエストが有効であり続けられる最大期間です。プロジェクト所有者を除くすべてのプロジェクトロール、およびすべてのデータアクセスリクエストに適用されます。",- "never-expires": "期限切れなし",+ "never-expires": "期限切れなし"+ },+ "maximum-request-expiration": {+ "description": "最大リクエスト有効期限は、データアクセスリクエストが有効であり続けられる最大期間です。","self": "最大リクエスト有効期限"},+ "maximum-role-expiration": {+ "description": "最大ロール有効期限はリクエストロールにのみ適用されます。<highlight>この従来の設定は将来廃止予定です。一時的なアクセスにはジャストインタイムアクセスフローを使用してください。</highlight>",+ "self": "最大ロール有効期限"+ },"maximum-sql-result": {"rows": {"description": "SQL クエリ結果の出力行を制限します。",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex c9d538e26e..1adffa028f 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2282,12 +2282,18 @@"logo": "Logo","logo-aspect": "Kích thước logo được đề xuất nên theo tỷ lệ 5:2, ví dụ 100 x 40.","logo-upload-tip": "{{extension}} tối đa {{size}} MiB",- "maximum-request-expiration": {+ "maximum-expiration": {"days": "Ngày",- "description": "Thời hạn yêu cầu tối đa là khoảng thời gian tối đa mà việc cấp vai trò hoặc yêu cầu truy cập dữ liệu có thể còn hiệu lực. Nó áp dụng cho tất cả các vai trò trong dự án ngoại trừ chủ sở hữu dự án, và cho tất cả các yêu cầu truy cập dữ liệu.",- "never-expires": "Không bao giờ hết hạn",+ "never-expires": "Không bao giờ hết hạn"+ },+ "maximum-request-expiration": {+ "description": "Thời hạn yêu cầu tối đa là khoảng thời gian tối đa mà yêu cầu truy cập dữ liệu có thể còn hiệu lực.","self": "Thời hạn yêu cầu tối đa"},+ "maximum-role-expiration": {+ "description": "Thời hạn vai trò tối đa chỉ áp dụng cho yêu cầu vai trò. <highlight>Cấu hình cũ này sẽ bị ngừng sử dụng trong tương lai; hãy dùng luồng truy cập đúng lúc cho quyền truy cập tạm thời.</highlight>",+ "self": "Thời hạn vai trò tối đa"+ },"maximum-sql-result": {"rows": {"description": "Giới hạn số hàng đầu ra trong kết quả truy vấn SQL.",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex be65a1a46f..879211bcd5 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2282,12 +2282,18 @@"logo": "Logo","logo-aspect": "Logo 建议为 5:2 的宽:高比例(例如 100 x 40 像素)","logo-upload-tip": "支持 {{extension}} 类型文件,不能大于 {{size}} MiB",- "maximum-request-expiration": {+ "maximum-expiration": {"days": "天数",- "description": "最大申请有效期是角色授予或数据访问申请可保持有效的最长时间。它适用于除项目所有者之外的所有项目角色,以及所有数据访问申请。",- "never-expires": "永不过期",+ "never-expires": "永不过期"+ },+ "maximum-request-expiration": {+ "description": "最大申请有效期是数据访问申请可保持有效的最长时间。","self": "最大申请有效期"},+ "maximum-role-expiration": {+ "description": "最大角色有效期仅适用于申请角色。<highlight>此旧设置未来会被废弃;建议使用即时访问流程授予临时访问。</highlight>",+ "self": "最大角色有效期"+ },"maximum-sql-result": {"rows": {"description": "限制SQL查询结果的输出行数。",diff --git a/frontend/src/react/pages/settings/MembersPage.test.tsx b/frontend/src/react/pages/settings/MembersPage.test.tsxindex 33c4470032..2936b68a93 100644--- a/frontend/src/react/pages/settings/MembersPage.test.tsx+++ b/frontend/src/react/pages/settings/MembersPage.test.tsx@@ -16,11 +16,15 @@ const {mockPushNotification,mockSaveIntroStateByKey,mockUpdateProjectIamPolicy,+ maximumRoleExpirationSeconds,+ maximumRequestExpirationSeconds,} = vi.hoisted(() => ({mockGetIntroStateByKey: vi.fn(),mockPushNotification: vi.fn(),mockSaveIntroStateByKey: vi.fn(),mockUpdateProjectIamPolicy: vi.fn(),+ maximumRoleExpirationSeconds: { value: undefined as number | undefined },+ maximumRequestExpirationSeconds: { value: undefined as number | undefined },}));vi.mock("@/react/components/AccountMultiSelect", () => ({@@ -320,7 +324,16 @@ vi.mock("@/react/stores/app", () => {settingsByName: {},getOrFetchSettingByName: vi.fn(),getSettingByName: () => undefined,- getWorkspaceProfile: () => ({}),+ getWorkspaceProfile: () => ({+ maximumRoleExpiration:+ maximumRoleExpirationSeconds.value === undefined+ ? undefined+ : { seconds: BigInt(maximumRoleExpirationSeconds.value) },+ maximumRequestExpiration:+ maximumRequestExpirationSeconds.value === undefined+ ? undefined+ : { seconds: BigInt(maximumRequestExpirationSeconds.value) },+ }),getIntroStateByKey: mockGetIntroStateByKey,saveIntroStateByKey: mockSaveIntroStateByKey,});@@ -351,6 +364,8 @@ let root: ReturnType<typeof createRoot>;beforeEach(() => {vi.clearAllMocks();+ maximumRoleExpirationSeconds.value = undefined;+ maximumRequestExpirationSeconds.value = undefined;mockGetIntroStateByKey.mockReturnValue(false);projectIamPolicy.bindings = [];container = document.createElement("div");@@ -390,6 +405,57 @@ describe("MembersPage project role grant drawer", () => {});});+ it("uses maximum role expiration instead of request expiration for direct role grants", async () => {+ maximumRequestExpirationSeconds.value = 30 * 24 * 60 * 60;++ await renderPage();++ const grantButton = [...container.querySelectorAll("button")].find(+ (button) => button.textContent === "settings.members.grant-access"+ ) as HTMLButtonElement;+ await act(async () => {+ grantButton.click();+ });+ await flush();++ const roleInput = container.querySelector(+ "[data-testid='role-select']"+ ) as HTMLInputElement;+ await act(async () => {+ nativeChange(roleInput, "roles/sqlEditorUser");+ });+ await flush();++ expect(container.textContent).not.toContain(+ "project.members.request-role.max-expiration-hint"+ );++ maximumRoleExpirationSeconds.value = 7 * 24 * 60 * 60;+ maximumRequestExpirationSeconds.value = undefined;++ await renderPage();+ await act(async () => {+ (+ [...container.querySelectorAll("button")].find(+ (button) => button.textContent === "settings.members.grant-access"+ ) as HTMLButtonElement+ ).click();+ });+ await flush();++ const roleInputWithRoleCap = container.querySelector(+ "[data-testid='role-select']"+ ) as HTMLInputElement;+ await act(async () => {+ nativeChange(roleInputWithRoleCap, "roles/sqlEditorUser");+ });+ await flush();++ expect(container.textContent).toContain(+ "project.members.request-role.max-expiration-hint"+ );+ });+it("uses the graphical expression editor for database CEL scope", async () => {await renderPage();diff --git a/frontend/src/react/pages/settings/MembersPage.tsx b/frontend/src/react/pages/settings/MembersPage.tsxindex 8e52b86677..85db84ad68 100644--- a/frontend/src/react/pages/settings/MembersPage.tsx+++ b/frontend/src/react/pages/settings/MembersPage.tsx@@ -892,16 +892,16 @@ function formatExpirationDate(timestampMs?: number): string {// must be in the future and within the cap.function isExpirationValid(form: RoleBindingFormState,- maximumRequestExpirationDays: number | undefined+ maximumRoleExpirationDays: number | undefined): boolean {if (form.expirationTimestampInMS === undefined) {- return maximumRequestExpirationDays === undefined;+ return maximumRoleExpirationDays === undefined;}const now = Date.now();if (form.expirationTimestampInMS <= now) return false;if (- maximumRequestExpirationDays !== undefined &&- form.expirationTimestampInMS > now + maximumRequestExpirationDays * 86400000+ maximumRoleExpirationDays !== undefined &&+ form.expirationTimestampInMS > now + maximumRoleExpirationDays * 86400000) {return false;}@@ -1034,14 +1034,14 @@ function ProjectRoleBindingForm({onRemove,canRemove,projectName,- maximumRequestExpirationDays,+ maximumRoleExpirationDays,}: {form: RoleBindingFormState;onChange: (updated: RoleBindingFormState) => void;onRemove: () => void;canRemove: boolean;projectName: string;- maximumRequestExpirationDays: number | undefined;+ maximumRoleExpirationDays: number | undefined;}) {const { t } = useTranslation();@@ -1051,16 +1051,16 @@ function ProjectRoleBindingForm({() =>EXPIRATION_PRESETS.filter((preset) =>- maximumRequestExpirationDays === undefined ||- preset.days <= maximumRequestExpirationDays+ maximumRoleExpirationDays === undefined ||+ preset.days <= maximumRoleExpirationDays),- [maximumRequestExpirationDays]+ [maximumRoleExpirationDays]);const minDatetime = dayjs().format("YYYY-MM-DDTHH:mm");const maxDatetime =- maximumRequestExpirationDays !== undefined+ maximumRoleExpirationDays !== undefined? dayjs()- .add(maximumRequestExpirationDays, "days")+ .add(maximumRoleExpirationDays, "days").format("YYYY-MM-DDTHH:mm"): undefined;const now = Date.now();@@ -1070,9 +1070,8 @@ function ProjectRoleBindingForm({form.expirationTimestampInMS <= now;const expirationExceedsMax =form.expirationTimestampInMS !== undefined &&- maximumRequestExpirationDays !== undefined &&- form.expirationTimestampInMS >- now + maximumRequestExpirationDays * 86400000;+ maximumRoleExpirationDays !== undefined &&+ form.expirationTimestampInMS > now + maximumRoleExpirationDays * 86400000;const factorList = useMemo<Factor[]>(() => [CEL_ATTRIBUTE_RESOURCE_DATABASE,@@ -1149,9 +1148,9 @@ function ProjectRoleBindingForm({// Seed the picker with the current timestamp, or a default 1 week// (clamped to the cap) when switching from "Never".const seedDays =- maximumRequestExpirationDays === undefined+ maximumRoleExpirationDays === undefined? 7- : Math.min(7, maximumRequestExpirationDays);+ : Math.min(7, maximumRoleExpirationDays);onChange({...form,expirationCustom: true,@@ -1278,16 +1277,16 @@ function ProjectRoleBindingForm({</>}description={- maximumRequestExpirationDays !== undefined+ maximumRoleExpirationDays !== undefined? t("project.members.request-role.max-expiration-hint", {- days: maximumRequestExpirationDays,+ days: maximumRoleExpirationDays,}): undefined}><div className="flex flex-wrap gap-1.5">{/* "Never" is only offered when the workspace sets no cap. */}- {maximumRequestExpirationDays === undefined && (+ {maximumRoleExpirationDays === undefined && (<ExpirationChiplabel={t("project.members.never-expires")}selected={@@ -1332,7 +1331,7 @@ function ProjectRoleBindingForm({{expirationExceedsMax && (<FormError>{t("project.members.request-role.expiration-exceeds-max", {- days: maximumRequestExpirationDays,+ days: maximumRoleExpirationDays,})}</FormError>)}@@ -1444,9 +1443,9 @@ function EditMemberRoleDrawer({// grants are exempt; returns undefined when no cap is set. Mirrors// RequestRoleSheet so direct grants and role requests behave the same.const workspaceProfile = useAppStore((s) => s.getWorkspaceProfile());- const maximumRequestExpirationDays = useMemo(() => {+ const maximumRoleExpirationDays = useMemo(() => {if (form.role === PresetRoleType.PROJECT_OWNER) return undefined;- const seconds = workspaceProfile.maximumRequestExpiration?.seconds;+ const seconds = workspaceProfile.maximumRoleExpiration?.seconds;if (!seconds) return undefined;return Math.floor(Number(seconds) / (60 * 60 * 24));}, [workspaceProfile, form.role]);@@ -1754,7 +1753,7 @@ function EditMemberRoleDrawer({const allowConfirm = isProjectCreateMode? selectedBindings.length > 0 &&!!form.role &&- isExpirationValid(form, maximumRequestExpirationDays) &&+ isExpirationValid(form, maximumRoleExpirationDays) &&!(roleHasDatabaseLimitation(form.role) &&form.databaseMode === "SELECT" &&@@ -1981,7 +1980,7 @@ function EditMemberRoleDrawer({onRemove={() => {}}canRemove={false}projectName={projectName}- maximumRequestExpirationDays={maximumRequestExpirationDays}+ maximumRoleExpirationDays={maximumRoleExpirationDays}/></div>) : (diff --git a/frontend/src/react/pages/settings/RequestRoleSheet.test.tsx b/frontend/src/react/pages/settings/RequestRoleSheet.test.tsxindex da71f6c85e..41f6c80fb3 100644--- a/frontend/src/react/pages/settings/RequestRoleSheet.test.tsx+++ b/frontend/src/react/pages/settings/RequestRoleSheet.test.tsx@@ -202,6 +202,7 @@ const mocks = vi.hoisted(() => ({createIssue: vi.fn(),pushNotification: vi.fn(),currentUser: { name: "users/[email protected]", email: "[email protected]" },+ maximumRoleExpirationSeconds: undefined as number | undefined,maximumRequestExpirationSeconds: undefined as number | undefined,}));@@ -232,6 +233,10 @@ vi.mock("@/react/stores/app", () => ({}),// Migrated off the Pinia useSettingV1Store mock.getWorkspaceProfile: () => ({+ maximumRoleExpiration:+ mocks.maximumRoleExpirationSeconds === undefined+ ? undefined+ : { seconds: BigInt(mocks.maximumRoleExpirationSeconds) },maximumRequestExpiration:mocks.maximumRequestExpirationSeconds === undefined? undefined@@ -261,6 +266,7 @@ beforeEach(() => {mocks.createIssue.mockResolvedValue({name: "projects/foo/issues/1",});+ mocks.maximumRoleExpirationSeconds = undefined;mocks.maximumRequestExpirationSeconds = undefined;container = document.createElement("div");document.body.appendChild(container);@@ -343,7 +349,7 @@ beforeEach(async () => {describe("RequestRoleSheet — enforceIssueTitle (BYT-9310)", () => {it("shows the workspace maximum expiration hint when role requests are capped", async () => {- mocks.maximumRequestExpirationSeconds = 30 * 24 * 60 * 60;+ mocks.maximumRoleExpirationSeconds = 30 * 24 * 60 * 60;await renderSheet(false);@@ -352,6 +358,16 @@ describe("RequestRoleSheet — enforceIssueTitle (BYT-9310)", () => {);});+ it("does not cap role requests with the request access expiration", async () => {+ mocks.maximumRequestExpirationSeconds = 30 * 24 * 60 * 60;++ await renderSheet(false);++ expect(container.textContent).not.toContain(+ "project.members.request-role.max-expiration-hint"+ );+ });+it("Submit is enabled with empty reason when enforceIssueTitle is false", async () => {await renderSheet(false);await selectRole("roles/projectOwner");diff --git a/frontend/src/react/pages/settings/RequestRoleSheet.tsx b/frontend/src/react/pages/settings/RequestRoleSheet.tsxindex 6ac99d4d84..b8105d5dc2 100644--- a/frontend/src/react/pages/settings/RequestRoleSheet.tsx+++ b/frontend/src/react/pages/settings/RequestRoleSheet.tsx@@ -224,9 +224,9 @@ function RequestRoleForm({// owners can request unbounded expirations), otherwise the workspace cap// applies. Returns undefined when no cap is set.const workspaceProfile = useAppStore((state) => state.getWorkspaceProfile());- const maximumRequestExpirationDays = useMemo(() => {+ const maximumRoleExpirationDays = useMemo(() => {if (role === PresetRoleType.PROJECT_OWNER) return undefined;- const seconds = workspaceProfile.maximumRequestExpiration?.seconds;+ const seconds = workspaceProfile.maximumRoleExpiration?.seconds;if (!seconds) return undefined;return Math.floor(Number(seconds) / (60 * 60 * 24));}, [workspaceProfile, role]);@@ -267,10 +267,8 @@ function RequestRoleForm({// can't silently pick a time earlier today and submit a zero-duration// role grant.const minDatetime = dayjs().format("YYYY-MM-DDTHH:mm");- const maxDatetime = maximumRequestExpirationDays- ? dayjs()- .add(maximumRequestExpirationDays, "days")- .format("YYYY-MM-DDTHH:mm")+ const maxDatetime = maximumRoleExpirationDays+ ? dayjs().add(maximumRoleExpirationDays, "days").format("YYYY-MM-DDTHH:mm"): undefined;const expirationIsInPast =@@ -282,9 +280,9 @@ function RequestRoleForm({// disables over-cap dates in its picker).const expirationExceedsMax =!!expirationTimestamp &&- !!maximumRequestExpirationDays &&+ !!maximumRoleExpirationDays &&dayjs(expirationTimestamp).isAfter(- dayjs().add(maximumRequestExpirationDays, "days")+ dayjs().add(maximumRoleExpirationDays, "days"));const labelsMisconfigured =@@ -311,7 +309,7 @@ function RequestRoleForm({// pick an expiration — leaving it empty sends `roleGrant.expiration` as// `undefined`, which the backend's approval runner treats as effectively// unbounded (math.MaxInt32 days), bypassing the cap entirely.- const expirationRequired = maximumRequestExpirationDays !== undefined;+ const expirationRequired = maximumRoleExpirationDays !== undefined;const canSubmit =!submitting &&@@ -610,9 +608,9 @@ function RequestRoleForm({</>}description={- maximumRequestExpirationDays !== undefined+ maximumRoleExpirationDays !== undefined? t("project.members.request-role.max-expiration-hint", {- days: maximumRequestExpirationDays,+ days: maximumRoleExpirationDays,}): undefined}@@ -631,7 +629,7 @@ function RequestRoleForm({{expirationExceedsMax && (<FormError>{t("project.members.request-role.expiration-exceeds-max", {- days: maximumRequestExpirationDays,+ days: maximumRoleExpirationDays,})}</FormError>)}diff --git a/frontend/src/react/pages/settings/general/SecuritySection.tsx b/frontend/src/react/pages/settings/general/SecuritySection.tsxindex 4b4ca30350..ea28c76409 100644--- a/frontend/src/react/pages/settings/general/SecuritySection.tsx+++ b/frontend/src/react/pages/settings/general/SecuritySection.tsx@@ -5,13 +5,14 @@ import { X } from "lucide-react";import {forwardRef,type KeyboardEvent,+ type ReactNode,useCallback,useEffect,useId,useImperativeHandle,useState,} from "react";-import { useTranslation } from "react-i18next";+import { Trans, useTranslation } from "react-i18next";import { FeatureBadge } from "@/react/components/FeatureBadge";import {PermissionGuard,@@ -31,10 +32,15 @@ import type { SectionHandle } from "./useSettingSection";const DEFAULT_EXPIRATION_DAYS = 90;-interface SecurityState {- enableWatermark: boolean;+interface ExpirationState {inputValue: number;neverExpire: boolean;+}++interface SecurityState {+ enableWatermark: boolean;+ maximumRoleExpiration: ExpirationState;+ maximumRequestExpiration: ExpirationState;domains: string[];enableRestriction: boolean;}@@ -44,6 +50,30 @@ interface SecuritySectionProps {onDirtyChange: () => void;}+const getExpirationState = (+ secondsValue: bigint | number | undefined+): ExpirationState => {+ let inputValue = DEFAULT_EXPIRATION_DAYS;+ let neverExpire = true;+ const seconds = secondsValue ? Number(secondsValue) : undefined;+ if (seconds && seconds > 0) {+ inputValue =+ Math.floor(seconds / (60 * 60 * 24)) || DEFAULT_EXPIRATION_DAYS;+ neverExpire = false;+ }+ return { inputValue, neverExpire };+};++const getExpirationDuration = (expiration: ExpirationState) => {+ const seconds = expiration.neverExpire+ ? -1+ : expiration.inputValue * 24 * 60 * 60;+ return create(DurationSchema, {+ seconds: BigInt(seconds),+ nanos: 0,+ });+};+export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(function SecuritySection({ title, onDirtyChange }, ref) {const { t } = useTranslation();@@ -61,18 +91,6 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(// Watermarkconst enableWatermark = profile.watermark;- // Maximum role expiration- let inputValue = DEFAULT_EXPIRATION_DAYS;- let neverExpire = true;- const seconds = profile.maximumRequestExpiration?.seconds- ? Number(profile.maximumRequestExpiration.seconds)- : undefined;- if (seconds && seconds > 0) {- inputValue =- Math.floor(seconds / (60 * 60 * 24)) || DEFAULT_EXPIRATION_DAYS;- neverExpire = false;- }-// Domain restrictionconst domains = Array.isArray(profile.domains)? [...profile.domains]@@ -81,8 +99,12 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(return {enableWatermark,- inputValue,- neverExpire,+ maximumRoleExpiration: getExpirationState(+ profile.maximumRoleExpiration?.seconds+ ),+ maximumRequestExpiration: getExpirationState(+ profile.maximumRequestExpiration?.seconds+ ),domains,enableRestriction,};@@ -126,20 +148,28 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(}// Maximum role expiration+ if (!isEqual(state.maximumRoleExpiration, init.maximumRoleExpiration)) {+ await useAppStore.getState().updateWorkspaceProfile({+ payload: {+ maximumRoleExpiration: getExpirationDuration(+ state.maximumRoleExpiration+ ),+ },+ updateMask: create(FieldMaskSchema, {+ paths: ["value.workspace_profile.maximum_role_expiration"],+ }),+ });+ }++ // Maximum request expirationif (- state.neverExpire !== init.neverExpire ||- state.inputValue !== init.inputValue+ !isEqual(state.maximumRequestExpiration, init.maximumRequestExpiration)) {- let seconds = -1;- if (!state.neverExpire) {- seconds = state.inputValue * 24 * 60 * 60;- }await useAppStore.getState().updateWorkspaceProfile({payload: {- maximumRequestExpiration: create(DurationSchema, {- seconds: BigInt(seconds),- nanos: 0,- }),+ maximumRequestExpiration: getExpirationDuration(+ state.maximumRequestExpiration+ ),},updateMask: create(FieldMaskSchema, {paths: ["value.workspace_profile.maximum_request_expiration"],@@ -234,6 +264,67 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(});};+ const renderExpirationField = (+ key: "maximumRoleExpiration" | "maximumRequestExpiration",+ title: string,+ description: ReactNode+ ) => {+ const expiration = state[key];+ return (+ <FormField title={title} description={description}>+ <div className="w-full flex flex-row">+ <div className="flex items-center gap-4">+ <div className="relative w-60">+ <Input+ type="number"+ className="pr-14"+ value={expiration.inputValue}+ min={1}+ step={1}+ disabled={!canEdit || expiration.neverExpire}+ onChange={(e) => {+ const val = Math.max(1, Math.floor(Number(e.target.value)));+ if (!Number.isNaN(val)) {+ setState((prev) => ({+ ...prev,+ [key]: {+ ...prev[key],+ inputValue: val,+ },+ }));+ }+ }}+ />+ <span className="absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500 pointer-events-none">+ {t("settings.general.workspace.maximum-expiration.days")}+ </span>+ </div>+ <label className="flex items-center gap-x-2">+ <Checkbox+ checked={expiration.neverExpire}+ disabled={!canEdit}+ onCheckedChange={(checked) =>+ setState((prev) => ({+ ...prev,+ [key]: {+ ...prev[key],+ neverExpire: checked,+ },+ }))+ }+ />+ <span>+ {t(+ "settings.general.workspace.maximum-expiration.never-expires"+ )}+ </span>+ </label>+ </div>+ </div>+ </FormField>+ );+ };+return (<FormSection id="security" title={title}><PermissionGuard@@ -264,61 +355,24 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>()}/>- {/* Maximum Role Expiration */}- <FormField- title={t(- "settings.general.workspace.maximum-request-expiration.self"- )}- description={t(+ {renderExpirationField(+ "maximumRoleExpiration",+ t("settings.general.workspace.maximum-role-expiration.self"),+ <Trans+ i18nKey="settings.general.workspace.maximum-role-expiration.description"+ components={{+ highlight: <span className="font-medium text-warning" />,+ }}+ />+ )}++ {renderExpirationField(+ "maximumRequestExpiration",+ t("settings.general.workspace.maximum-request-expiration.self"),+ t("settings.general.workspace.maximum-request-expiration.description"- )}- >- <div className="w-full flex flex-row">- <div className="flex items-center gap-4">- <div className="relative w-60">- <Input- type="number"- className="pr-14"- value={state.inputValue}- min={1}- step={1}- disabled={!canEdit || state.neverExpire}- onChange={(e) => {- const val = Math.max(- 1,- Math.floor(Number(e.target.value))- );- if (!Number.isNaN(val)) {- setState((prev) => ({ ...prev, inputValue: val }));- }- }}- />- <span className="absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500 pointer-events-none">- {t(- "settings.general.workspace.maximum-request-expiration.days"- )}- </span>- </div>- <label className="flex items-center gap-x-2">- <Checkbox- checked={state.neverExpire}- disabled={!canEdit}- onCheckedChange={(checked) =>- setState((prev) => ({- ...prev,- neverExpire: checked,- }))- }- />- <span>- {t(- "settings.general.workspace.maximum-request-expiration.never-expires"- )}- </span>- </label>- </div>- </div>- </FormField>+ )+ )}{/* Domain Restriction */}<FormFielddiff --git a/frontend/src/types/proto-es/v1/setting_service_pb.d.ts b/frontend/src/types/proto-es/v1/setting_service_pb.d.tsindex 591df4629b..f107cac2b1 100644--- a/frontend/src/types/proto-es/v1/setting_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/setting_service_pb.d.ts@@ -526,7 +526,7 @@ export declare type WorkspaceProfileSetting = Message<"bytebase.v1.WorkspaceProfannouncement?: Announcement | undefined;/**- * The max expiration duration for role grants and data access requests.+ * The max expiration duration for data access requests.** @generated from field: google.protobuf.Duration maximum_request_expiration = 6;*/@@ -656,6 +656,14 @@ export declare type WorkspaceProfileSetting = Message<"bytebase.v1.WorkspaceProf* @generated from field: bytebase.v1.SQLEditorThemeSetting sql_editor_custom_theme = 24;*/sqlEditorCustomTheme?: SQLEditorThemeSetting | undefined;++ /**+ * The max expiration duration for request role.+ * Deprecated: use just-in-time access request flows instead.+ *+ * @generated from field: google.protobuf.Duration maximum_role_expiration = 25;+ */+ maximumRoleExpiration?: Duration | undefined;};/**diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.js b/frontend/src/types/proto-es/v1/setting_service_pb.jsindex 208ca46794..29533e4d9a 100644--- a/frontend/src/types/proto-es/v1/setting_service_pb.js+++ b/frontend/src/types/proto-es/v1/setting_service_pb.js@@ -18,7 +18,7 @@ import { file_v1_issue_service } from "./issue_service_pb";* Describes the file v1/setting_service.proto.*/export const file_v1_setting_service = /*@__PURE__*/- fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEiUKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIqEBChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIqCgdzZXR0aW5nGAEgASgLMhQuYnl0ZWJhc2UudjEuU2V0dGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sitAIKB1NldHRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEi0KBXZhbHVlGAIgASgLMhkuYnl0ZWJhc2UudjEuU2V0dGluZ1ZhbHVlQgPgQQIitwEKC1NldHRpbmdOYW1lEhwKGFNFVFRJTkdfTkFNRV9VTlNQRUNJRklFRBAAEhUKEVdPUktTUEFDRV9QUk9GSUxFEAESFgoSV09SS1NQQUNFX0FQUFJPVkFMEAISCgoGQVBQX0lNEAMSBgoCQUkQBBIXChNEQVRBX0NMQVNTSUZJQ0FUSU9OEAUSEgoOU0VNQU5USUNfVFlQRVMQBhIPCgtFTlZJUk9OTUVOVBAHEgkKBUVNQUlMEAg6LepBKgoUYnl0ZWJhc2UuY29tL1NldHRpbmcSEnNldHRpbmdzL3tzZXR0aW5nfSLYAwoMU2V0dGluZ1ZhbHVlEisKBmFwcF9pbRgBIAEoCzIZLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZ0gAEkEKEXdvcmtzcGFjZV9wcm9maWxlGAIgASgLMiQuYnl0ZWJhc2UudjEuV29ya3NwYWNlUHJvZmlsZVNldHRpbmdIABJDChJ3b3Jrc3BhY2VfYXBwcm92YWwYAyABKAsyJS5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmdIABJFChNkYXRhX2NsYXNzaWZpY2F0aW9uGAQgASgLMiYuYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZ0gAEjkKDXNlbWFudGljX3R5cGUYBSABKAsyIC5ieXRlYmFzZS52MS5TZW1hbnRpY1R5cGVTZXR0aW5nSAASJAoCYWkYBiABKAsyFi5ieXRlYmFzZS52MS5BSVNldHRpbmdIABI2CgtlbnZpcm9ubWVudBgHIAEoCzIfLmJ5dGViYXNlLnYxLkVudmlyb25tZW50U2V0dGluZ0gAEioKBWVtYWlsGAggASgLMhkuYnl0ZWJhc2UudjEuRW1haWxTZXR0aW5nSABCBwoFdmFsdWUivAYKDEFwcElNU2V0dGluZxI1CghzZXR0aW5ncxgBIAMoCzIjLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5JTVNldHRpbmcaGwoFU2xhY2sSEgoFdG9rZW4YASABKAlCA+BBBBo2CgZGZWlzaHUSEwoGYXBwX2lkGAEgASgJQgPgQQQSFwoKYXBwX3NlY3JldBgCIAEoCUID4EEEGkkKBVdlY29tEhQKB2NvcnBfaWQYASABKAlCA+BBBBIVCghhZ2VudF9pZBgCIAEoCUID4EEEEhMKBnNlY3JldBgDIAEoCUID4EEEGjQKBExhcmsSEwoGYXBwX2lkGAEgASgJQgPgQQQSFwoKYXBwX3NlY3JldBgCIAEoCUID4EEEGlcKCERpbmdUYWxrEhYKCWNsaWVudF9pZBgBIAEoCUID4EEEEhoKDWNsaWVudF9zZWNyZXQYAiABKAlCA+BBBBIXCgpyb2JvdF9jb2RlGAMgASgJQgPgQQQaUwoFVGVhbXMSFgoJdGVuYW50X2lkGAEgASgJQgPgQQQSFgoJY2xpZW50X2lkGAIgASgJQgPgQQQSGgoNY2xpZW50X3NlY3JldBgDIAEoCUID4EEEGvACCglJTVNldHRpbmcSJgoEdHlwZRgBIAEoDjIYLmJ5dGViYXNlLnYxLldlYmhvb2tUeXBlEjAKBXNsYWNrGAIgASgLMh8uYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLlNsYWNrSAASMgoGZmVpc2h1GAMgASgLMiAuYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLkZlaXNodUgAEjAKBXdlY29tGAQgASgLMh8uYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLldlY29tSAASLgoEbGFyaxgFIAEoCzIeLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5MYXJrSAASNgoIZGluZ3RhbGsYBiABKAsyIi5ieXRlYmFzZS52MS5BcHBJTVNldHRpbmcuRGluZ1RhbGtIABIwCgV0ZWFtcxgHIAEoCzIfLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5UZWFtc0gAQgkKB3BheWxvYWQizwkKF1dvcmtzcGFjZVByb2ZpbGVTZXR0aW5nEhQKDGV4dGVybmFsX3VybBgBIAEoCRIXCg9kaXNhbGxvd19zaWdudXAYAiABKAgSEwoLcmVxdWlyZV9tZmEYAyABKAgSOQoWcmVmcmVzaF90b2tlbl9kdXJhdGlvbhgEIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIvCgxhbm5vdW5jZW1lbnQYBSABKAsyGS5ieXRlYmFzZS52MS5Bbm5vdW5jZW1lbnQSPQoabWF4aW11bV9yZXF1ZXN0X2V4cGlyYXRpb24YBiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SDwoHZG9tYWlucxgHIAMoCRIfChdlbmZvcmNlX2lkZW50aXR5X2RvbWFpbhgIIAEoCBI9ChRkYXRhYmFzZV9jaGFuZ2VfbW9kZRgJIAEoDjIfLmJ5dGViYXNlLnYxLkRhdGFiYXNlQ2hhbmdlTW9kZRIgChhkaXNhbGxvd19wYXNzd29yZF9zaWduaW4YCiABKAgSIAoYZW5hYmxlX21ldHJpY19jb2xsZWN0aW9uGAsgASgIEjsKGGluYWN0aXZlX3Nlc3Npb25fdGltZW91dBgMIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIfChdlbmFibGVfYXVkaXRfbG9nX3N0ZG91dBgNIAEoCBIRCgl3YXRlcm1hcmsYDiABKAgSHAoUZGlyZWN0b3J5X3N5bmNfdG9rZW4YDyABKAkSVgoUcGFzc3dvcmRfcmVzdHJpY3Rpb24YESABKAsyOC5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VQcm9maWxlU2V0dGluZy5QYXNzd29yZFJlc3RyaWN0aW9uEjgKFWFjY2Vzc190b2tlbl9kdXJhdGlvbhgSIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIUCgxlbmFibGVfZGVidWcYEyABKAgSFwoPc3FsX3Jlc3VsdF9zaXplGBQgASgDEjAKDXF1ZXJ5X3RpbWVvdXQYFSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SHwoXYWxsb3dfZW1haWxfY29kZV9zaWduaW4YFiABKAgSGwoTc3FsX2VkaXRvcl90aGVtZV9pZBgXIAEoCRJDChdzcWxfZWRpdG9yX2N1c3RvbV90aGVtZRgYIAEoCzIiLmJ5dGViYXNlLnYxLlNRTEVkaXRvclRoZW1lU2V0dGluZxqEAgoTUGFzc3dvcmRSZXN0cmljdGlvbhISCgptaW5fbGVuZ3RoGAEgASgFEhYKDnJlcXVpcmVfbnVtYmVyGAIgASgIEhYKDnJlcXVpcmVfbGV0dGVyGAMgASgIEiAKGHJlcXVpcmVfdXBwZXJjYXNlX2xldHRlchgEIAEoCBIhChlyZXF1aXJlX3NwZWNpYWxfY2hhcmFjdGVyGAUgASgIEi4KJnJlcXVpcmVfcmVzZXRfcGFzc3dvcmRfZm9yX2ZpcnN0X2xvZ2luGAYgASgIEjQKEXBhc3N3b3JkX3JvdGF0aW9uGAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uSgQIEBARIskBChVTUUxFZGl0b3JUaGVtZVNldHRpbmcSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRITCgttb25hY29fYmFzZRgDIAEoCRI+CgZ0b2tlbnMYBCADKAsyLi5ieXRlYmFzZS52MS5TUUxFZGl0b3JUaGVtZVNldHRpbmcuVG9rZW5zRW50cnkaQQoLVG9rZW5zRW50cnkSCwoDa2V5GAEgASgJEiEKBXZhbHVlGAIgASgLMhIuZ29vZ2xlLnR5cGUuQ29sb3I6AjgBItIBCgxBbm5vdW5jZW1lbnQSDAoEdGV4dBgCIAEoCRIMCgRsaW5rGAMgASgJEjoKBXRoZW1lGAQgASgLMisuYnl0ZWJhc2UudjEuQW5ub3VuY2VtZW50LkFubm91bmNlbWVudFRoZW1lGl0KEUFubm91bmNlbWVudFRoZW1lEiYKCmJhY2tncm91bmQYASABKAsyEi5nb29nbGUudHlwZS5Db2xvchIgCgR0ZXh0GAIgASgLMhIuZ29vZ2xlLnR5cGUuQ29sb3JKBAgBEAJSBWxldmVsIv4CChhXb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcSOQoFcnVsZXMYASADKAsyKi5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcuUnVsZRqmAgoEUnVsZRIvCgh0ZW1wbGF0ZRgBIAEoCzIdLmJ5dGViYXNlLnYxLkFwcHJvdmFsVGVtcGxhdGUSJAoJY29uZGl0aW9uGAIgASgLMhEuZ29vZ2xlLnR5cGUuRXhwchJBCgZzb3VyY2UYAyABKA4yMS5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcuUnVsZS5Tb3VyY2UigwEKBlNvdXJjZRIWChJTT1VSQ0VfVU5TUEVDSUZJRUQQABITCg9DSEFOR0VfREFUQUJBU0UQARITCg9DUkVBVEVfREFUQUJBU0UQAhIQCgxSRVFVRVNUX1JPTEUQBBISCg5SRVFVRVNUX0FDQ0VTUxAFIgQIAxADKgtFWFBPUlRfREFUQSLrBAoZRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZxJQCgdjb25maWdzGAEgAygLMj8uYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZy5EYXRhQ2xhc3NpZmljYXRpb25Db25maWca+wMKGERhdGFDbGFzc2lmaWNhdGlvbkNvbmZpZxIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRJVCgZsZXZlbHMYAyADKAsyRS5ieXRlYmFzZS52MS5EYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nLkRhdGFDbGFzc2lmaWNhdGlvbkNvbmZpZy5MZXZlbBJrCg5jbGFzc2lmaWNhdGlvbhgEIAMoCzJTLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmcuRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnLkNsYXNzaWZpY2F0aW9uRW50cnkaJQoFTGV2ZWwSDQoFdGl0bGUYAiABKAkSDQoFbGV2ZWwYBCABKAUaTQoSRGF0YUNsYXNzaWZpY2F0aW9uEgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJEhIKBWxldmVsGAQgASgFSACIAQFCCAoGX2xldmVsGokBChNDbGFzc2lmaWNhdGlvbkVudHJ5EgsKA2tleRgBIAEoCRJhCgV2YWx1ZRgCIAEoCzJSLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmcuRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnLkRhdGFDbGFzc2lmaWNhdGlvbjoCOAEizAEKE1NlbWFudGljVHlwZVNldHRpbmcSPAoFdHlwZXMYASADKAsyLS5ieXRlYmFzZS52MS5TZW1hbnRpY1R5cGVTZXR0aW5nLlNlbWFudGljVHlwZRp3CgxTZW1hbnRpY1R5cGUSCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSKQoJYWxnb3JpdGhtGAYgASgLMhYuYnl0ZWJhc2UudjEuQWxnb3JpdGhtEgwKBGljb24YByABKAki/wQKCUFsZ29yaXRobRI0CglmdWxsX21hc2sYASABKAsyHy5ieXRlYmFzZS52MS5BbGdvcml0aG0uRnVsbE1hc2tIABI2CgpyYW5nZV9tYXNrGAIgASgLMiAuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLlJhbmdlTWFza0gAEjIKCG1kNV9tYXNrGAMgASgLMh4uYnl0ZWJhc2UudjEuQWxnb3JpdGhtLk1ENU1hc2tIABJBChBpbm5lcl9vdXRlcl9tYXNrGAQgASgLMiUuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLklubmVyT3V0ZXJNYXNrSAAaIAoIRnVsbE1hc2sSFAoMc3Vic3RpdHV0aW9uGAEgASgJGn4KCVJhbmdlTWFzaxI2CgZzbGljZXMYASADKAsyJi5ieXRlYmFzZS52MS5BbGdvcml0aG0uUmFuZ2VNYXNrLlNsaWNlGjkKBVNsaWNlEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRIUCgxzdWJzdGl0dXRpb24YAyABKAkaFwoHTUQ1TWFzaxIMCgRzYWx0GAEgASgJGskBCg5Jbm5lck91dGVyTWFzaxISCgpwcmVmaXhfbGVuGAEgASgFEhIKCnN1ZmZpeF9sZW4YAiABKAUSPAoEdHlwZRgDIAEoDjIuLmJ5dGViYXNlLnYxLkFsZ29yaXRobS5Jbm5lck91dGVyTWFzay5NYXNrVHlwZRIUCgxzdWJzdGl0dXRpb24YBCABKAkiOwoITWFza1R5cGUSGQoVTUFTS19UWVBFX1VOU1BFQ0lGSUVEEAASCQoFSU5ORVIQARIJCgVPVVRFUhACQgYKBG1hc2si7wEKCUFJU2V0dGluZxIPCgdlbmFibGVkGAEgASgIEjEKCHByb3ZpZGVyGAIgASgOMh8uYnl0ZWJhc2UudjEuQUlTZXR0aW5nLlByb3ZpZGVyEhAKCGVuZHBvaW50GAMgASgJEg8KB2FwaV9rZXkYBCABKAkSDQoFbW9kZWwYBSABKAkSDwoHdmVyc2lvbhgGIAEoCSJbCghQcm92aWRlchIYChRQUk9WSURFUl9VTlNQRUNJRklFRBAAEgsKB09QRU5fQUkQARIKCgZDTEFVREUQAhIKCgZHRU1JTkkQAxIQCgxBWlVSRV9PUEVOQUkQBCKqAgoSRW52aXJvbm1lbnRTZXR0aW5nEkEKDGVudmlyb25tZW50cxgBIAMoCzIrLmJ5dGViYXNlLnYxLkVudmlyb25tZW50U2V0dGluZy5FbnZpcm9ubWVudBrQAQoLRW52aXJvbm1lbnQSEQoEbmFtZRgBIAEoCUID4EEDEgoKAmlkGAIgASgJEg0KBXRpdGxlGAMgASgJEkMKBHRhZ3MYBCADKAsyNS5ieXRlYmFzZS52MS5FbnZpcm9ubWVudFNldHRpbmcuRW52aXJvbm1lbnQuVGFnc0VudHJ5EiEKBWNvbG9yGAUgASgLMhIuZ29vZ2xlLnR5cGUuQ29sb3IaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi9AQKDEVtYWlsU2V0dGluZxIMCgRmcm9tGAEgASgJEhEKCWZyb21fbmFtZRgCIAEoCRIsCgR0eXBlGAMgASgOMh4uYnl0ZWJhc2UudjEuRW1haWxTZXR0aW5nLlR5cGUSNAoEc210cBgEIAEoCzIkLmJ5dGViYXNlLnYxLkVtYWlsU2V0dGluZy5TTVRQQ29uZmlnSAAarAMKClNNVFBDb25maWcSDAoEaG9zdBgBIAEoCRIMCgRwb3J0GAIgASgFEhAKCHVzZXJuYW1lGAMgASgJEhUKCHBhc3N3b3JkGAQgASgJQgPgQQQSQwoKZW5jcnlwdGlvbhgFIAEoDjIvLmJ5dGViYXNlLnYxLkVtYWlsU2V0dGluZy5TTVRQQ29uZmlnLkVuY3J5cHRpb24SSwoOYXV0aGVudGljYXRpb24YBiABKA4yMy5ieXRlYmFzZS52MS5FbWFpbFNldHRpbmcuU01UUENvbmZpZy5BdXRoZW50aWNhdGlvbiJYCgpFbmNyeXB0aW9uEhoKFkVOQ1JZUFRJT05fVU5TUEVDSUZJRUQQABITCg9FTkNSWVBUSU9OX05PTkUQARIMCghTVEFSVFRMUxACEgsKB1NTTF9UTFMQAyJtCg5BdXRoZW50aWNhdGlvbhIeChpBVVRIRU5USUNBVElPTl9VTlNQRUNJRklFRBAAEhcKE0FVVEhFTlRJQ0FUSU9OX05PTkUQARIJCgVQTEFJThACEgkKBUxPR0lOEAMSDAoIQ1JBTV9NRDUQBCImCgRUeXBlEhQKEFRZUEVfVU5TUEVDSUZJRUQQABIICgRTTVRQEAFCCAoGY29uZmlnInYKF1Rlc3RFbWFpbFNldHRpbmdSZXF1ZXN0EhMKBnBhcmVudBgBIAEoCUID4EECEjUKDWVtYWlsX3NldHRpbmcYAiABKAsyGS5ieXRlYmFzZS52MS5FbWFpbFNldHRpbmdCA+BBAhIPCgJ0bxgDIAEoCUID4EECIjoKGFRlc3RFbWFpbFNldHRpbmdSZXNwb25zZRIPCgdzdWNjZXNzGAEgASgIEg0KBWVycm9yGAIgASgJKlQKEkRhdGFiYXNlQ2hhbmdlTW9kZRIkCiBEQVRBQkFTRV9DSEFOR0VfTU9ERV9VTlNQRUNJRklFRBAAEgwKCFBJUEVMSU5FEAESCgoGRURJVE9SEAIy4QQKDlNldHRpbmdTZXJ2aWNlEoQBCgxMaXN0U2V0dGluZ3MSIC5ieXRlYmFzZS52MS5MaXN0U2V0dGluZ3NSZXF1ZXN0GiEuYnl0ZWJhc2UudjEuTGlzdFNldHRpbmdzUmVzcG9uc2UiL9pBAIrqMBBiYi5zZXR0aW5ncy5saXN0kOowAYLT5JMCDhIML3YxL3NldHRpbmdzEn8KCkdldFNldHRpbmcSHi5ieXRlYmFzZS52MS5HZXRTZXR0aW5nUmVxdWVzdBoULmJ5dGViYXNlLnYxLlNldHRpbmciO9pBBG5hbWWK6jAPYmIuc2V0dGluZ3MuZ2V0kOowAoLT5JMCFxIVL3YxL3tuYW1lPXNldHRpbmdzLyp9EpMBCg1VcGRhdGVTZXR0aW5nEiEuYnl0ZWJhc2UudjEuVXBkYXRlU2V0dGluZ1JlcXVlc3QaFC5ieXRlYmFzZS52MS5TZXR0aW5nIkmK6jAPYmIuc2V0dGluZ3Muc2V0kOowApjqMAGC0+STAig6B3NldHRpbmcyHS92MS97c2V0dGluZy5uYW1lPXNldHRpbmdzLyp9ErABChBUZXN0RW1haWxTZXR0aW5nEiQuYnl0ZWJhc2UudjEuVGVzdEVtYWlsU2V0dGluZ1JlcXVlc3QaJS5ieXRlYmFzZS52MS5UZXN0RW1haWxTZXR0aW5nUmVzcG9uc2UiT4rqMA9iYi5zZXR0aW5ncy5zZXSQ6jABgtPkkwIyOgEqIi0vdjEve3BhcmVudD13b3Jrc3BhY2VzLyp9L3NldHRpbmdzL0VNQUlMOnRlc3RCqQEKD2NvbS5ieXRlYmFzZS52MUITU2V0dGluZ1NlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_type_color, file_google_type_expr, file_v1_annotation, file_v1_common, file_v1_issue_service]);+ fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEiUKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIqEBChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIqCgdzZXR0aW5nGAEgASgLMhQuYnl0ZWJhc2UudjEuU2V0dGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sitAIKB1NldHRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEi0KBXZhbHVlGAIgASgLMhkuYnl0ZWJhc2UudjEuU2V0dGluZ1ZhbHVlQgPgQQIitwEKC1NldHRpbmdOYW1lEhwKGFNFVFRJTkdfTkFNRV9VTlNQRUNJRklFRBAAEhUKEVdPUktTUEFDRV9QUk9GSUxFEAESFgoSV09SS1NQQUNFX0FQUFJPVkFMEAISCgoGQVBQX0lNEAMSBgoCQUkQBBIXChNEQVRBX0NMQVNTSUZJQ0FUSU9OEAUSEgoOU0VNQU5USUNfVFlQRVMQBhIPCgtFTlZJUk9OTUVOVBAHEgkKBUVNQUlMEAg6LepBKgoUYnl0ZWJhc2UuY29tL1NldHRpbmcSEnNldHRpbmdzL3tzZXR0aW5nfSLYAwoMU2V0dGluZ1ZhbHVlEisKBmFwcF9pbRgBIAEoCzIZLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZ0gAEkEKEXdvcmtzcGFjZV9wcm9maWxlGAIgASgLMiQuYnl0ZWJhc2UudjEuV29ya3NwYWNlUHJvZmlsZVNldHRpbmdIABJDChJ3b3Jrc3BhY2VfYXBwcm92YWwYAyABKAsyJS5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmdIABJFChNkYXRhX2NsYXNzaWZpY2F0aW9uGAQgASgLMiYuYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZ0gAEjkKDXNlbWFudGljX3R5cGUYBSABKAsyIC5ieXRlYmFzZS52MS5TZW1hbnRpY1R5cGVTZXR0aW5nSAASJAoCYWkYBiABKAsyFi5ieXRlYmFzZS52MS5BSVNldHRpbmdIABI2CgtlbnZpcm9ubWVudBgHIAEoCzIfLmJ5dGViYXNlLnYxLkVudmlyb25tZW50U2V0dGluZ0gAEioKBWVtYWlsGAggASgLMhkuYnl0ZWJhc2UudjEuRW1haWxTZXR0aW5nSABCBwoFdmFsdWUivAYKDEFwcElNU2V0dGluZxI1CghzZXR0aW5ncxgBIAMoCzIjLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5JTVNldHRpbmcaGwoFU2xhY2sSEgoFdG9rZW4YASABKAlCA+BBBBo2CgZGZWlzaHUSEwoGYXBwX2lkGAEgASgJQgPgQQQSFwoKYXBwX3NlY3JldBgCIAEoCUID4EEEGkkKBVdlY29tEhQKB2NvcnBfaWQYASABKAlCA+BBBBIVCghhZ2VudF9pZBgCIAEoCUID4EEEEhMKBnNlY3JldBgDIAEoCUID4EEEGjQKBExhcmsSEwoGYXBwX2lkGAEgASgJQgPgQQQSFwoKYXBwX3NlY3JldBgCIAEoCUID4EEEGlcKCERpbmdUYWxrEhYKCWNsaWVudF9pZBgBIAEoCUID4EEEEhoKDWNsaWVudF9zZWNyZXQYAiABKAlCA+BBBBIXCgpyb2JvdF9jb2RlGAMgASgJQgPgQQQaUwoFVGVhbXMSFgoJdGVuYW50X2lkGAEgASgJQgPgQQQSFgoJY2xpZW50X2lkGAIgASgJQgPgQQQSGgoNY2xpZW50X3NlY3JldBgDIAEoCUID4EEEGvACCglJTVNldHRpbmcSJgoEdHlwZRgBIAEoDjIYLmJ5dGViYXNlLnYxLldlYmhvb2tUeXBlEjAKBXNsYWNrGAIgASgLMh8uYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLlNsYWNrSAASMgoGZmVpc2h1GAMgASgLMiAuYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLkZlaXNodUgAEjAKBXdlY29tGAQgASgLMh8uYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLldlY29tSAASLgoEbGFyaxgFIAEoCzIeLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5MYXJrSAASNgoIZGluZ3RhbGsYBiABKAsyIi5ieXRlYmFzZS52MS5BcHBJTVNldHRpbmcuRGluZ1RhbGtIABIwCgV0ZWFtcxgHIAEoCzIfLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5UZWFtc0gAQgkKB3BheWxvYWQiiwoKF1dvcmtzcGFjZVByb2ZpbGVTZXR0aW5nEhQKDGV4dGVybmFsX3VybBgBIAEoCRIXCg9kaXNhbGxvd19zaWdudXAYAiABKAgSEwoLcmVxdWlyZV9tZmEYAyABKAgSOQoWcmVmcmVzaF90b2tlbl9kdXJhdGlvbhgEIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIvCgxhbm5vdW5jZW1lbnQYBSABKAsyGS5ieXRlYmFzZS52MS5Bbm5vdW5jZW1lbnQSPQoabWF4aW11bV9yZXF1ZXN0X2V4cGlyYXRpb24YBiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SDwoHZG9tYWlucxgHIAMoCRIfChdlbmZvcmNlX2lkZW50aXR5X2RvbWFpbhgIIAEoCBI9ChRkYXRhYmFzZV9jaGFuZ2VfbW9kZRgJIAEoDjIfLmJ5dGViYXNlLnYxLkRhdGFiYXNlQ2hhbmdlTW9kZRIgChhkaXNhbGxvd19wYXNzd29yZF9zaWduaW4YCiABKAgSIAoYZW5hYmxlX21ldHJpY19jb2xsZWN0aW9uGAsgASgIEjsKGGluYWN0aXZlX3Nlc3Npb25fdGltZW91dBgMIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIfChdlbmFibGVfYXVkaXRfbG9nX3N0ZG91dBgNIAEoCBIRCgl3YXRlcm1hcmsYDiABKAgSHAoUZGlyZWN0b3J5X3N5bmNfdG9rZW4YDyABKAkSVgoUcGFzc3dvcmRfcmVzdHJpY3Rpb24YESABKAsyOC5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VQcm9maWxlU2V0dGluZy5QYXNzd29yZFJlc3RyaWN0aW9uEjgKFWFjY2Vzc190b2tlbl9kdXJhdGlvbhgSIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIUCgxlbmFibGVfZGVidWcYEyABKAgSFwoPc3FsX3Jlc3VsdF9zaXplGBQgASgDEjAKDXF1ZXJ5X3RpbWVvdXQYFSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SHwoXYWxsb3dfZW1haWxfY29kZV9zaWduaW4YFiABKAgSGwoTc3FsX2VkaXRvcl90aGVtZV9pZBgXIAEoCRJDChdzcWxfZWRpdG9yX2N1c3RvbV90aGVtZRgYIAEoCzIiLmJ5dGViYXNlLnYxLlNRTEVkaXRvclRoZW1lU2V0dGluZxI6ChdtYXhpbXVtX3JvbGVfZXhwaXJhdGlvbhgZIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhqEAgoTUGFzc3dvcmRSZXN0cmljdGlvbhISCgptaW5fbGVuZ3RoGAEgASgFEhYKDnJlcXVpcmVfbnVtYmVyGAIgASgIEhYKDnJlcXVpcmVfbGV0dGVyGAMgASgIEiAKGHJlcXVpcmVfdXBwZXJjYXNlX2xldHRlchgEIAEoCBIhChlyZXF1aXJlX3NwZWNpYWxfY2hhcmFjdGVyGAUgASgIEi4KJnJlcXVpcmVfcmVzZXRfcGFzc3dvcmRfZm9yX2ZpcnN0X2xvZ2luGAYgASgIEjQKEXBhc3N3b3JkX3JvdGF0aW9uGAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uSgQIEBARIskBChVTUUxFZGl0b3JUaGVtZVNldHRpbmcSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRITCgttb25hY29fYmFzZRgDIAEoCRI+CgZ0b2tlbnMYBCADKAsyLi5ieXRlYmFzZS52MS5TUUxFZGl0b3JUaGVtZVNldHRpbmcuVG9rZW5zRW50cnkaQQoLVG9rZW5zRW50cnkSCwoDa2V5GAEgASgJEiEKBXZhbHVlGAIgASgLMhIuZ29vZ2xlLnR5cGUuQ29sb3I6AjgBItIBCgxBbm5vdW5jZW1lbnQSDAoEdGV4dBgCIAEoCRIMCgRsaW5rGAMgASgJEjoKBXRoZW1lGAQgASgLMisuYnl0ZWJhc2UudjEuQW5ub3VuY2VtZW50LkFubm91bmNlbWVudFRoZW1lGl0KEUFubm91bmNlbWVudFRoZW1lEiYKCmJhY2tncm91bmQYASABKAsyEi5nb29nbGUudHlwZS5Db2xvchIgCgR0ZXh0GAIgASgLMhIuZ29vZ2xlLnR5cGUuQ29sb3JKBAgBEAJSBWxldmVsIv4CChhXb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcSOQoFcnVsZXMYASADKAsyKi5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcuUnVsZRqmAgoEUnVsZRIvCgh0ZW1wbGF0ZRgBIAEoCzIdLmJ5dGViYXNlLnYxLkFwcHJvdmFsVGVtcGxhdGUSJAoJY29uZGl0aW9uGAIgASgLMhEuZ29vZ2xlLnR5cGUuRXhwchJBCgZzb3VyY2UYAyABKA4yMS5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcuUnVsZS5Tb3VyY2UigwEKBlNvdXJjZRIWChJTT1VSQ0VfVU5TUEVDSUZJRUQQABITCg9DSEFOR0VfREFUQUJBU0UQARITCg9DUkVBVEVfREFUQUJBU0UQAhIQCgxSRVFVRVNUX1JPTEUQBBISCg5SRVFVRVNUX0FDQ0VTUxAFIgQIAxADKgtFWFBPUlRfREFUQSLrBAoZRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZxJQCgdjb25maWdzGAEgAygLMj8uYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZy5EYXRhQ2xhc3NpZmljYXRpb25Db25maWca+wMKGERhdGFDbGFzc2lmaWNhdGlvbkNvbmZpZxIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRJVCgZsZXZlbHMYAyADKAsyRS5ieXRlYmFzZS52MS5EYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nLkRhdGFDbGFzc2lmaWNhdGlvbkNvbmZpZy5MZXZlbBJrCg5jbGFzc2lmaWNhdGlvbhgEIAMoCzJTLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmcuRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnLkNsYXNzaWZpY2F0aW9uRW50cnkaJQoFTGV2ZWwSDQoFdGl0bGUYAiABKAkSDQoFbGV2ZWwYBCABKAUaTQoSRGF0YUNsYXNzaWZpY2F0aW9uEgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJEhIKBWxldmVsGAQgASgFSACIAQFCCAoGX2xldmVsGokBChNDbGFzc2lmaWNhdGlvbkVudHJ5EgsKA2tleRgBIAEoCRJhCgV2YWx1ZRgCIAEoCzJSLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmcuRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnLkRhdGFDbGFzc2lmaWNhdGlvbjoCOAEizAEKE1NlbWFudGljVHlwZVNldHRpbmcSPAoFdHlwZXMYASADKAsyLS5ieXRlYmFzZS52MS5TZW1hbnRpY1R5cGVTZXR0aW5nLlNlbWFudGljVHlwZRp3CgxTZW1hbnRpY1R5cGUSCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSKQoJYWxnb3JpdGhtGAYgASgLMhYuYnl0ZWJhc2UudjEuQWxnb3JpdGhtEgwKBGljb24YByABKAki/wQKCUFsZ29yaXRobRI0CglmdWxsX21hc2sYASABKAsyHy5ieXRlYmFzZS52MS5BbGdvcml0aG0uRnVsbE1hc2tIABI2CgpyYW5nZV9tYXNrGAIgASgLMiAuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLlJhbmdlTWFza0gAEjIKCG1kNV9tYXNrGAMgASgLMh4uYnl0ZWJhc2UudjEuQWxnb3JpdGhtLk1ENU1hc2tIABJBChBpbm5lcl9vdXRlcl9tYXNrGAQgASgLMiUuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLklubmVyT3V0ZXJNYXNrSAAaIAoIRnVsbE1hc2sSFAoMc3Vic3RpdHV0aW9uGAEgASgJGn4KCVJhbmdlTWFzaxI2CgZzbGljZXMYASADKAsyJi5ieXRlYmFzZS52MS5BbGdvcml0aG0uUmFuZ2VNYXNrLlNsaWNlGjkKBVNsaWNlEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRIUCgxzdWJzdGl0dXRpb24YAyABKAkaFwoHTUQ1TWFzaxIMCgRzYWx0GAEgASgJGskBCg5Jbm5lck91dGVyTWFzaxISCgpwcmVmaXhfbGVuGAEgASgFEhIKCnN1ZmZpeF9sZW4YAiABKAUSPAoEdHlwZRgDIAEoDjIuLmJ5dGViYXNlLnYxLkFsZ29yaXRobS5Jbm5lck91dGVyTWFzay5NYXNrVHlwZRIUCgxzdWJzdGl0dXRpb24YBCABKAkiOwoITWFza1R5cGUSGQoVTUFTS19UWVBFX1VOU1BFQ0lGSUVEEAASCQoFSU5ORVIQARIJCgVPVVRFUhACQgYKBG1hc2si7wEKCUFJU2V0dGluZxIPCgdlbmFibGVkGAEgASgIEjEKCHByb3ZpZGVyGAIgASgOMh8uYnl0ZWJhc2UudjEuQUlTZXR0aW5nLlByb3ZpZGVyEhAKCGVuZHBvaW50GAMgASgJEg8KB2FwaV9rZXkYBCABKAkSDQoFbW9kZWwYBSABKAkSDwoHdmVyc2lvbhgGIAEoCSJbCghQcm92aWRlchIYChRQUk9WSURFUl9VTlNQRUNJRklFRBAAEgsKB09QRU5fQUkQARIKCgZDTEFVREUQAhIKCgZHRU1JTkkQAxIQCgxBWlVSRV9PUEVOQUkQBCKqAgoSRW52aXJvbm1lbnRTZXR0aW5nEkEKDGVudmlyb25tZW50cxgBIAMoCzIrLmJ5dGViYXNlLnYxLkVudmlyb25tZW50U2V0dGluZy5FbnZpcm9ubWVudBrQAQoLRW52aXJvbm1lbnQSEQoEbmFtZRgBIAEoCUID4EEDEgoKAmlkGAIgASgJEg0KBXRpdGxlGAMgASgJEkMKBHRhZ3MYBCADKAsyNS5ieXRlYmFzZS52MS5FbnZpcm9ubWVudFNldHRpbmcuRW52aXJvbm1lbnQuVGFnc0VudHJ5EiEKBWNvbG9yGAUgASgLMhIuZ29vZ2xlLnR5cGUuQ29sb3IaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi9AQKDEVtYWlsU2V0dGluZxIMCgRmcm9tGAEgASgJEhEKCWZyb21fbmFtZRgCIAEoCRIsCgR0eXBlGAMgASgOMh4uYnl0ZWJhc2UudjEuRW1haWxTZXR0aW5nLlR5cGUSNAoEc210cBgEIAEoCzIkLmJ5dGViYXNlLnYxLkVtYWlsU2V0dGluZy5TTVRQQ29uZmlnSAAarAMKClNNVFBDb25maWcSDAoEaG9zdBgBIAEoCRIMCgRwb3J0GAIgASgFEhAKCHVzZXJuYW1lGAMgASgJEhUKCHBhc3N3b3JkGAQgASgJQgPgQQQSQwoKZW5jcnlwdGlvbhgFIAEoDjIvLmJ5dGViYXNlLnYxLkVtYWlsU2V0dGluZy5TTVRQQ29uZmlnLkVuY3J5cHRpb24SSwoOYXV0aGVudGljYXRpb24YBiABKA4yMy5ieXRlYmFzZS52MS5FbWFpbFNldHRpbmcuU01UUENvbmZpZy5BdXRoZW50aWNhdGlvbiJYCgpFbmNyeXB0aW9uEhoKFkVOQ1JZUFRJT05fVU5TUEVDSUZJRUQQABITCg9FTkNSWVBUSU9OX05PTkUQARIMCghTVEFSVFRMUxACEgsKB1NTTF9UTFMQAyJtCg5BdXRoZW50aWNhdGlvbhIeChpBVVRIRU5USUNBVElPTl9VTlNQRUNJRklFRBAAEhcKE0FVVEhFTlRJQ0FUSU9OX05PTkUQARIJCgVQTEFJThACEgkKBUxPR0lOEAMSDAoIQ1JBTV9NRDUQBCImCgRUeXBlEhQKEFRZUEVfVU5TUEVDSUZJRUQQABIICgRTTVRQEAFCCAoGY29uZmlnInYKF1Rlc3RFbWFpbFNldHRpbmdSZXF1ZXN0EhMKBnBhcmVudBgBIAEoCUID4EECEjUKDWVtYWlsX3NldHRpbmcYAiABKAsyGS5ieXRlYmFzZS52MS5FbWFpbFNldHRpbmdCA+BBAhIPCgJ0bxgDIAEoCUID4EECIjoKGFRlc3RFbWFpbFNldHRpbmdSZXNwb25zZRIPCgdzdWNjZXNzGAEgASgIEg0KBWVycm9yGAIgASgJKlQKEkRhdGFiYXNlQ2hhbmdlTW9kZRIkCiBEQVRBQkFTRV9DSEFOR0VfTU9ERV9VTlNQRUNJRklFRBAAEgwKCFBJUEVMSU5FEAESCgoGRURJVE9SEAIy4QQKDlNldHRpbmdTZXJ2aWNlEoQBCgxMaXN0U2V0dGluZ3MSIC5ieXRlYmFzZS52MS5MaXN0U2V0dGluZ3NSZXF1ZXN0GiEuYnl0ZWJhc2UudjEuTGlzdFNldHRpbmdzUmVzcG9uc2UiL9pBAIrqMBBiYi5zZXR0aW5ncy5saXN0kOowAYLT5JMCDhIML3YxL3NldHRpbmdzEn8KCkdldFNldHRpbmcSHi5ieXRlYmFzZS52MS5HZXRTZXR0aW5nUmVxdWVzdBoULmJ5dGViYXNlLnYxLlNldHRpbmciO9pBBG5hbWWK6jAPYmIuc2V0dGluZ3MuZ2V0kOowAoLT5JMCFxIVL3YxL3tuYW1lPXNldHRpbmdzLyp9EpMBCg1VcGRhdGVTZXR0aW5nEiEuYnl0ZWJhc2UudjEuVXBkYXRlU2V0dGluZ1JlcXVlc3QaFC5ieXRlYmFzZS52MS5TZXR0aW5nIkmK6jAPYmIuc2V0dGluZ3Muc2V0kOowApjqMAGC0+STAig6B3NldHRpbmcyHS92MS97c2V0dGluZy5uYW1lPXNldHRpbmdzLyp9ErABChBUZXN0RW1haWxTZXR0aW5nEiQuYnl0ZWJhc2UudjEuVGVzdEVtYWlsU2V0dGluZ1JlcXVlc3QaJS5ieXRlYmFzZS52MS5UZXN0RW1haWxTZXR0aW5nUmVzcG9uc2UiT4rqMA9iYi5zZXR0aW5ncy5zZXSQ6jABgtPkkwIyOgEqIi0vdjEve3BhcmVudD13b3Jrc3BhY2VzLyp9L3NldHRpbmdzL0VNQUlMOnRlc3RCqQEKD2NvbS5ieXRlYmFzZS52MUITU2V0dGluZ1NlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_type_color, file_google_type_expr, file_v1_annotation, file_v1_common, file_v1_issue_service]);/*** Describes the message bytebase.v1.ListSettingsRequest.diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex b3a78e67b0..5e5e07eb78 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -29008,7 +29008,7 @@ components:$ref: '#/components/schemas/bytebase.v1.Announcement'maximumRequestExpiration:title: maximum_request_expiration- description: The max expiration duration for role grants and data access requests.+ description: The max expiration duration for data access requests.$ref: '#/components/schemas/google.protobuf.Duration'domains:type: array@@ -29095,6 +29095,12 @@ components:The enforced CUSTOM theme's full definition — present ONLY whensql_editor_theme_id is a custom uuid. tokens is always complete.$ref: '#/components/schemas/bytebase.v1.SQLEditorThemeSetting'+ maximumRoleExpiration:+ title: maximum_role_expiration+ description: |-+ The max expiration duration for request role.+ Deprecated: use just-in-time access request flows instead.+ $ref: '#/components/schemas/google.protobuf.Duration'title: WorkspaceProfileSettingadditionalProperties: falsebytebase.v1.WorkspaceProfileSetting.PasswordRestriction:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 8c5bf2142b..dfdc4666af 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -4661,7 +4661,7 @@ All other settings live in per-workspace WORKSPACE_PROFILE.| require_2fa | [bool](#bool) | | Require 2FA for all users. || refresh_token_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | The duration for refresh token. Default is 7 days. || announcement | [WorkspaceProfileSetting.Announcement](#bytebase-store-WorkspaceProfileSetting-Announcement) | | The setting of custom announcement |-| maximum_request_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max expiration duration for role grants and data access requests. |+| maximum_request_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max expiration duration for data access requests. || domains | [string](#string) | repeated | The workspace domain, e.g., bytebase.com. || enforce_identity_domain | [bool](#bool) | | Only user and group from the domains can be created and login. || database_change_mode | [WorkspaceProfileSetting.DatabaseChangeMode](#bytebase-store-WorkspaceProfileSetting-DatabaseChangeMode) | | The workspace database change mode. |@@ -4679,6 +4679,7 @@ All other settings live in per-workspace WORKSPACE_PROFILE.| allow_email_code_signin | [bool](#bool) | | Allow signin/signup using email + a 6-digit one-time verification code. Requires the EMAIL setting to be configured on the workspace. || sql_editor_theme_id | [string](#string) | | Enforced SQL Editor theme id: OPAQUE — a frontend-resolved built-in preset id OR a custom theme's uuid. Empty ⇒ default light. || sql_editor_custom_theme | [SQLEditorThemeSetting](#bytebase-store-SQLEditorThemeSetting) | | The enforced CUSTOM theme's full definition — present ONLY when sql_editor_theme_id is a custom uuid. tokens is always complete. |+| maximum_role_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max expiration duration for request role. Deprecated: use just-in-time access request flows instead. |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 7c14b4b0cb..f40355ec72 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -63,57 +63,57 @@}td p:nth-child(1) {- text-indent: 0;+ text-indent: 0;}-- .field-table td:nth-child(1) {++ .field-table td:nth-child(1) {width: 10em;}- .field-table td:nth-child(2) {+ .field-table td:nth-child(2) {width: 10em;}- .field-table td:nth-child(3) {+ .field-table td:nth-child(3) {width: 6em;}- .field-table td:nth-child(4) {+ .field-table td:nth-child(4) {width: auto;}-- .extension-table td:nth-child(1) {++ .extension-table td:nth-child(1) {width: 10em;}- .extension-table td:nth-child(2) {+ .extension-table td:nth-child(2) {width: 10em;}- .extension-table td:nth-child(3) {+ .extension-table td:nth-child(3) {width: 10em;}- .extension-table td:nth-child(4) {+ .extension-table td:nth-child(4) {width: 5em;}- .extension-table td:nth-child(5) {+ .extension-table td:nth-child(5) {width: auto;}-- .enum-table td:nth-child(1) {++ .enum-table td:nth-child(1) {width: 10em;}- .enum-table td:nth-child(2) {+ .enum-table td:nth-child(2) {width: 10em;}- .enum-table td:nth-child(3) {+ .enum-table td:nth-child(3) {width: auto;}-+.scalar-value-types-table tr {height: 3em;}-+#toc-container ul {list-style-type: none;padding-left: 1em;@@ -124,7 +124,7 @@font-weight: bold;}-+.file-heading {width: 100%;display: table;@@ -140,7 +140,7 @@display: table-cell;}-+.badge {width: 1.6em;height: 1.6em;@@ -160,7 +160,7 @@}</style>-+<link rel="stylesheet" type="text/css" href="stylesheet.css"/></head>@@ -172,1487 +172,1487 @@<div id="toc-container"><ul id="toc">--++<li><a href="#store%2faccess_grant.proto">store/access_grant.proto</a><ul>-+<li><a href="#bytebase.store.AccessGrant"><span class="badge">M</span>AccessGrant</a></li>-+<li><a href="#bytebase.store.AccessGrantPayload"><span class="badge">M</span>AccessGrantPayload</a></li>--++<li><a href="#bytebase.store.AccessGrant.Status"><span class="badge">E</span>AccessGrant.Status</a></li>---+++</ul></li>--++<li><a href="#store%2fcommon.proto">store/common.proto</a><ul>-+<li><a href="#bytebase.store.PageToken"><span class="badge">M</span>PageToken</a></li>-+<li><a href="#bytebase.store.Position"><span class="badge">M</span>Position</a></li>-+<li><a href="#bytebase.store.Range"><span class="badge">M</span>Range</a></li>--++<li><a href="#bytebase.store.Engine"><span class="badge">E</span>Engine</a></li>-+<li><a href="#bytebase.store.ExportFormat"><span class="badge">E</span>ExportFormat</a></li>-+<li><a href="#bytebase.store.RiskLevel"><span class="badge">E</span>RiskLevel</a></li>-+<li><a href="#bytebase.store.SchemaChangeType"><span class="badge">E</span>SchemaChangeType</a></li>-+<li><a href="#bytebase.store.StatementType"><span class="badge">E</span>StatementType</a></li>-+<li><a href="#bytebase.store.VCSType"><span class="badge">E</span>VCSType</a></li>-+<li><a href="#bytebase.store.WebhookType"><span class="badge">E</span>WebhookType</a></li>---+++</ul></li>--++<li><a href="#store%2fadvice.proto">store/advice.proto</a><ul>-+<li><a href="#bytebase.store.Advice"><span class="badge">M</span>Advice</a></li>--++<li><a href="#bytebase.store.Advice.Status"><span class="badge">E</span>Advice.Status</a></li>---+++</ul></li>--++<li><a href="#store%2fapproval.proto">store/approval.proto</a><ul>-+<li><a href="#bytebase.store.ApprovalFlow"><span class="badge">M</span>ApprovalFlow</a></li>-+<li><a href="#bytebase.store.ApprovalTemplate"><span class="badge">M</span>ApprovalTemplate</a></li>-+<li><a href="#bytebase.store.IssuePayloadApproval"><span class="badge">M</span>IssuePayloadApproval</a></li>-+<li><a href="#bytebase.store.IssuePayloadApproval.Approver"><span class="badge">M</span>IssuePayloadApproval.Approver</a></li>--++<li><a href="#bytebase.store.IssuePayloadApproval.Approver.Status"><span class="badge">E</span>IssuePayloadApproval.Approver.Status</a></li>---+++</ul></li>--++<li><a href="#store%2faudit_log.proto">store/audit_log.proto</a><ul>-+<li><a href="#bytebase.store.AuditLog"><span class="badge">M</span>AuditLog</a></li>-+<li><a href="#bytebase.store.RequestMetadata"><span class="badge">M</span>RequestMetadata</a></li>--++<li><a href="#bytebase.store.AuditLog.Severity"><span class="badge">E</span>AuditLog.Severity</a></li>---+++</ul></li>--++<li><a href="#store%2fauth.proto">store/auth.proto</a><ul>--++<li><a href="#bytebase.store.EmailVerificationCodePurpose"><span class="badge">E</span>EmailVerificationCodePurpose</a></li>---+++</ul></li>--++<li><a href="#store%2fchangelog.proto">store/changelog.proto</a><ul>-+<li><a href="#bytebase.store.ChangelogPayload"><span class="badge">M</span>ChangelogPayload</a></li>----++++</ul></li>--++<li><a href="#store%2fdatabase.proto">store/database.proto</a><ul>-+<li><a href="#bytebase.store.BoundingBox"><span class="badge">M</span>BoundingBox</a></li>-+<li><a href="#bytebase.store.CheckConstraintMetadata"><span class="badge">M</span>CheckConstraintMetadata</a></li>-+<li><a href="#bytebase.store.ColumnCatalog"><span class="badge">M</span>ColumnCatalog</a></li>-+<li><a href="#bytebase.store.ColumnCatalog.LabelsEntry"><span class="badge">M</span>ColumnCatalog.LabelsEntry</a></li>-+<li><a href="#bytebase.store.ColumnMetadata"><span class="badge">M</span>ColumnMetadata</a></li>-+<li><a href="#bytebase.store.DatabaseConfig"><span class="badge">M</span>DatabaseConfig</a></li>-+<li><a href="#bytebase.store.DatabaseMetadata"><span class="badge">M</span>DatabaseMetadata</a></li>-+<li><a href="#bytebase.store.DatabaseMetadata.LabelsEntry"><span class="badge">M</span>DatabaseMetadata.LabelsEntry</a></li>-+<li><a href="#bytebase.store.DatabaseSchemaMetadata"><span class="badge">M</span>DatabaseSchemaMetadata</a></li>-+<li><a href="#bytebase.store.DependencyColumn"><span class="badge">M</span>DependencyColumn</a></li>-+<li><a href="#bytebase.store.DependencyTable"><span class="badge">M</span>DependencyTable</a></li>-+<li><a href="#bytebase.store.DimensionalConfig"><span class="badge">M</span>DimensionalConfig</a></li>-+<li><a href="#bytebase.store.EnumTypeMetadata"><span class="badge">M</span>EnumTypeMetadata</a></li>-+<li><a href="#bytebase.store.EventMetadata"><span class="badge">M</span>EventMetadata</a></li>-+<li><a href="#bytebase.store.EventTriggerMetadata"><span class="badge">M</span>EventTriggerMetadata</a></li>-+<li><a href="#bytebase.store.ExcludeConstraintMetadata"><span class="badge">M</span>ExcludeConstraintMetadata</a></li>-+<li><a href="#bytebase.store.ExtensionMetadata"><span class="badge">M</span>ExtensionMetadata</a></li>-+<li><a href="#bytebase.store.ExternalTableMetadata"><span class="badge">M</span>ExternalTableMetadata</a></li>-+<li><a href="#bytebase.store.ForeignKeyMetadata"><span class="badge">M</span>ForeignKeyMetadata</a></li>-+<li><a href="#bytebase.store.FunctionMetadata"><span class="badge">M</span>FunctionMetadata</a></li>-+<li><a href="#bytebase.store.GenerationMetadata"><span class="badge">M</span>GenerationMetadata</a></li>-+<li><a href="#bytebase.store.GridLevel"><span class="badge">M</span>GridLevel</a></li>-+<li><a href="#bytebase.store.IndexMetadata"><span class="badge">M</span>IndexMetadata</a></li>-+<li><a href="#bytebase.store.InstanceRoleMetadata"><span class="badge">M</span>InstanceRoleMetadata</a></li>-+<li><a href="#bytebase.store.LinkedDatabaseMetadata"><span class="badge">M</span>LinkedDatabaseMetadata</a></li>-+<li><a href="#bytebase.store.MaterializedViewMetadata"><span class="badge">M</span>MaterializedViewMetadata</a></li>-+<li><a href="#bytebase.store.ObjectSchema"><span class="badge">M</span>ObjectSchema</a></li>-+<li><a href="#bytebase.store.ObjectSchema.ArrayKind"><span class="badge">M</span>ObjectSchema.ArrayKind</a></li>-+<li><a href="#bytebase.store.ObjectSchema.StructKind"><span class="badge">M</span>ObjectSchema.StructKind</a></li>-+<li><a href="#bytebase.store.ObjectSchema.StructKind.PropertiesEntry"><span class="badge">M</span>ObjectSchema.StructKind.PropertiesEntry</a></li>-+<li><a href="#bytebase.store.PackageMetadata"><span class="badge">M</span>PackageMetadata</a></li>-+<li><a href="#bytebase.store.ProcedureMetadata"><span class="badge">M</span>ProcedureMetadata</a></li>-+<li><a href="#bytebase.store.RuleMetadata"><span class="badge">M</span>RuleMetadata</a></li>-+<li><a href="#bytebase.store.SchemaCatalog"><span class="badge">M</span>SchemaCatalog</a></li>-+<li><a href="#bytebase.store.SchemaMetadata"><span class="badge">M</span>SchemaMetadata</a></li>-+<li><a href="#bytebase.store.SequenceMetadata"><span class="badge">M</span>SequenceMetadata</a></li>-+<li><a href="#bytebase.store.SpatialIndexConfig"><span class="badge">M</span>SpatialIndexConfig</a></li>-+<li><a href="#bytebase.store.SpatialIndexConfig.EngineSpecificEntry"><span class="badge">M</span>SpatialIndexConfig.EngineSpecificEntry</a></li>-+<li><a href="#bytebase.store.StorageConfig"><span class="badge">M</span>StorageConfig</a></li>-+<li><a href="#bytebase.store.StreamMetadata"><span class="badge">M</span>StreamMetadata</a></li>-+<li><a href="#bytebase.store.TableCatalog"><span class="badge">M</span>TableCatalog</a></li>-+<li><a href="#bytebase.store.TableMetadata"><span class="badge">M</span>TableMetadata</a></li>-+<li><a href="#bytebase.store.TablePartitionMetadata"><span class="badge">M</span>TablePartitionMetadata</a></li>-+<li><a href="#bytebase.store.TaskMetadata"><span class="badge">M</span>TaskMetadata</a></li>-+<li><a href="#bytebase.store.TessellationConfig"><span class="badge">M</span>TessellationConfig</a></li>-+<li><a href="#bytebase.store.TriggerMetadata"><span class="badge">M</span>TriggerMetadata</a></li>-+<li><a href="#bytebase.store.ViewMetadata"><span class="badge">M</span>ViewMetadata</a></li>--++<li><a href="#bytebase.store.ColumnMetadata.IdentityGeneration"><span class="badge">E</span>ColumnMetadata.IdentityGeneration</a></li>-+<li><a href="#bytebase.store.GenerationMetadata.Type"><span class="badge">E</span>GenerationMetadata.Type</a></li>-+<li><a href="#bytebase.store.ObjectSchema.Type"><span class="badge">E</span>ObjectSchema.Type</a></li>-+<li><a href="#bytebase.store.StreamMetadata.Mode"><span class="badge">E</span>StreamMetadata.Mode</a></li>-+<li><a href="#bytebase.store.StreamMetadata.Type"><span class="badge">E</span>StreamMetadata.Type</a></li>-+<li><a href="#bytebase.store.SyncStatus"><span class="badge">E</span>SyncStatus</a></li>-+<li><a href="#bytebase.store.TablePartitionMetadata.Type"><span class="badge">E</span>TablePartitionMetadata.Type</a></li>-+<li><a href="#bytebase.store.TaskMetadata.State"><span class="badge">E</span>TaskMetadata.State</a></li>---+++</ul></li>--++<li><a href="#store%2fexport_archive.proto">store/export_archive.proto</a><ul>-+<li><a href="#bytebase.store.ExportArchivePayload"><span class="badge">M</span>ExportArchivePayload</a></li>----++++</ul></li>--++<li><a href="#store%2fgroup.proto">store/group.proto</a><ul>-+<li><a href="#bytebase.store.GroupMember"><span class="badge">M</span>GroupMember</a></li>-+<li><a href="#bytebase.store.GroupPayload"><span class="badge">M</span>GroupPayload</a></li>--++<li><a href="#bytebase.store.GroupMember.Role"><span class="badge">E</span>GroupMember.Role</a></li>---+++</ul></li>--++<li><a href="#store%2fidp.proto">store/idp.proto</a><ul>-+<li><a href="#bytebase.store.FieldMapping"><span class="badge">M</span>FieldMapping</a></li>-+<li><a href="#bytebase.store.IdentityProviderConfig"><span class="badge">M</span>IdentityProviderConfig</a></li>-+<li><a href="#bytebase.store.IdentityProviderUserInfo"><span class="badge">M</span>IdentityProviderUserInfo</a></li>-+<li><a href="#bytebase.store.LDAPIdentityProviderConfig"><span class="badge">M</span>LDAPIdentityProviderConfig</a></li>-+<li><a href="#bytebase.store.OAuth2IdentityProviderConfig"><span class="badge">M</span>OAuth2IdentityProviderConfig</a></li>-+<li><a href="#bytebase.store.OIDCIdentityProviderConfig"><span class="badge">M</span>OIDCIdentityProviderConfig</a></li>--++<li><a href="#bytebase.store.IdentityProviderType"><span class="badge">E</span>IdentityProviderType</a></li>-+<li><a href="#bytebase.store.LDAPIdentityProviderConfig.SecurityProtocol"><span class="badge">E</span>LDAPIdentityProviderConfig.SecurityProtocol</a></li>-+<li><a href="#bytebase.store.OAuth2AuthStyle"><span class="badge">E</span>OAuth2AuthStyle</a></li>---+++</ul></li>--++<li><a href="#store%2finstance.proto">store/instance.proto</a><ul>-+<li><a href="#bytebase.store.DataSource"><span class="badge">M</span>DataSource</a></li>-+<li><a href="#bytebase.store.DataSource.AWSCredential"><span class="badge">M</span>DataSource.AWSCredential</a></li>-+<li><a href="#bytebase.store.DataSource.Address"><span class="badge">M</span>DataSource.Address</a></li>-+<li><a href="#bytebase.store.DataSource.AzureCredential"><span class="badge">M</span>DataSource.AzureCredential</a></li>-+<li><a href="#bytebase.store.DataSource.ExtraConnectionParametersEntry"><span class="badge">M</span>DataSource.ExtraConnectionParametersEntry</a></li>-+<li><a href="#bytebase.store.DataSource.GCPCredential"><span class="badge">M</span>DataSource.GCPCredential</a></li>-+<li><a href="#bytebase.store.DataSourceExternalSecret"><span class="badge">M</span>DataSourceExternalSecret</a></li>-+<li><a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption"><span class="badge">M</span>DataSourceExternalSecret.AppRoleAuthOption</a></li>-+<li><a href="#bytebase.store.Instance"><span class="badge">M</span>Instance</a></li>-+<li><a href="#bytebase.store.Instance.LabelsEntry"><span class="badge">M</span>Instance.LabelsEntry</a></li>-+<li><a href="#bytebase.store.InstanceRole"><span class="badge">M</span>InstanceRole</a></li>-+<li><a href="#bytebase.store.KerberosConfig"><span class="badge">M</span>KerberosConfig</a></li>-+<li><a href="#bytebase.store.SASLConfig"><span class="badge">M</span>SASLConfig</a></li>--++<li><a href="#bytebase.store.DataSource.AuthenticationType"><span class="badge">E</span>DataSource.AuthenticationType</a></li>-+<li><a href="#bytebase.store.DataSource.CloudSQLIPType"><span class="badge">E</span>DataSource.CloudSQLIPType</a></li>-+<li><a href="#bytebase.store.DataSource.RedisType"><span class="badge">E</span>DataSource.RedisType</a></li>-+<li><a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType"><span class="badge">E</span>DataSourceExternalSecret.AppRoleAuthOption.SecretType</a></li>-+<li><a href="#bytebase.store.DataSourceExternalSecret.AuthType"><span class="badge">E</span>DataSourceExternalSecret.AuthType</a></li>-+<li><a href="#bytebase.store.DataSourceExternalSecret.SecretType"><span class="badge">E</span>DataSourceExternalSecret.SecretType</a></li>-+<li><a href="#bytebase.store.DataSourceExternalSecret.TokenType"><span class="badge">E</span>DataSourceExternalSecret.TokenType</a></li>-+<li><a href="#bytebase.store.DataSourceType"><span class="badge">E</span>DataSourceType</a></li>---+++</ul></li>--++<li><a href="#store%2fissue.proto">store/issue.proto</a><ul>-+<li><a href="#bytebase.store.Issue"><span class="badge">M</span>Issue</a></li>-+<li><a href="#bytebase.store.RoleGrant"><span class="badge">M</span>RoleGrant</a></li>--++<li><a href="#bytebase.store.Issue.Status"><span class="badge">E</span>Issue.Status</a></li>-+<li><a href="#bytebase.store.Issue.Type"><span class="badge">E</span>Issue.Type</a></li>---+++</ul></li>--++<li><a href="#store%2fplan.proto">store/plan.proto</a><ul>-+<li><a href="#bytebase.store.PlanConfig"><span class="badge">M</span>PlanConfig</a></li>-+<li><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig"><span class="badge">M</span>PlanConfig.ChangeDatabaseConfig</a></li>-+<li><a href="#bytebase.store.PlanConfig.CreateDatabaseConfig"><span class="badge">M</span>PlanConfig.CreateDatabaseConfig</a></li>-+<li><a href="#bytebase.store.PlanConfig.ExportDataConfig"><span class="badge">M</span>PlanConfig.ExportDataConfig</a></li>-+<li><a href="#bytebase.store.PlanConfig.Spec"><span class="badge">M</span>PlanConfig.Spec</a></li>----++++</ul></li>--++<li><a href="#store%2fissue_comment.proto">store/issue_comment.proto</a><ul>-+<li><a href="#bytebase.store.IssueCommentPayload"><span class="badge">M</span>IssueCommentPayload</a></li>-+<li><a href="#bytebase.store.IssueCommentPayload.Approval"><span class="badge">M</span>IssueCommentPayload.Approval</a></li>-+<li><a href="#bytebase.store.IssueCommentPayload.IssueUpdate"><span class="badge">M</span>IssueCommentPayload.IssueUpdate</a></li>-+<li><a href="#bytebase.store.IssueCommentPayload.PlanUpdate"><span class="badge">M</span>IssueCommentPayload.PlanUpdate</a></li>----++++</ul></li>--++<li><a href="#store%2foauth2.proto">store/oauth2.proto</a><ul>-+<li><a href="#bytebase.store.OAuth2AuthorizationCodeConfig"><span class="badge">M</span>OAuth2AuthorizationCodeConfig</a></li>-+<li><a href="#bytebase.store.OAuth2ClientConfig"><span class="badge">M</span>OAuth2ClientConfig</a></li>----++++</ul></li>--++<li><a href="#store%2fplan_check_run.proto">store/plan_check_run.proto</a><ul>-+<li><a href="#bytebase.store.ChangedResourceDatabase"><span class="badge">M</span>ChangedResourceDatabase</a></li>-+<li><a href="#bytebase.store.ChangedResourceSchema"><span class="badge">M</span>ChangedResourceSchema</a></li>-+<li><a href="#bytebase.store.ChangedResourceTable"><span class="badge">M</span>ChangedResourceTable</a></li>-+<li><a href="#bytebase.store.ChangedResources"><span class="badge">M</span>ChangedResources</a></li>-+<li><a href="#bytebase.store.PlanCheckRunResult"><span class="badge">M</span>PlanCheckRunResult</a></li>-+<li><a href="#bytebase.store.PlanCheckRunResult.Result"><span class="badge">M</span>PlanCheckRunResult.Result</a></li>-+<li><a href="#bytebase.store.PlanCheckRunResult.Result.SqlReviewReport"><span class="badge">M</span>PlanCheckRunResult.Result.SqlReviewReport</a></li>-+<li><a href="#bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport"><span class="badge">M</span>PlanCheckRunResult.Result.SqlSummaryReport</a></li>--++<li><a href="#bytebase.store.PlanCheckType"><span class="badge">E</span>PlanCheckType</a></li>---+++</ul></li>--++<li><a href="#store%2fpolicy.proto">store/policy.proto</a><ul>-+<li><a href="#bytebase.store.Binding"><span class="badge">M</span>Binding</a></li>-+<li><a href="#bytebase.store.IamPolicy"><span class="badge">M</span>IamPolicy</a></li>-+<li><a href="#bytebase.store.MaskingExemptionPolicy"><span class="badge">M</span>MaskingExemptionPolicy</a></li>-+<li><a href="#bytebase.store.MaskingExemptionPolicy.Exemption"><span class="badge">M</span>MaskingExemptionPolicy.Exemption</a></li>-+<li><a href="#bytebase.store.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a></li>-+<li><a href="#bytebase.store.MaskingRulePolicy.MaskingRule"><span class="badge">M</span>MaskingRulePolicy.MaskingRule</a></li>-+<li><a href="#bytebase.store.Policy"><span class="badge">M</span>Policy</a></li>-+<li><a href="#bytebase.store.QueryDataPolicy"><span class="badge">M</span>QueryDataPolicy</a></li>-+<li><a href="#bytebase.store.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a></li>-+<li><a href="#bytebase.store.TagPolicy"><span class="badge">M</span>TagPolicy</a></li>-+<li><a href="#bytebase.store.TagPolicy.TagsEntry"><span class="badge">M</span>TagPolicy.TagsEntry</a></li>--++<li><a href="#bytebase.store.Policy.Resource"><span class="badge">E</span>Policy.Resource</a></li>-+<li><a href="#bytebase.store.Policy.Type"><span class="badge">E</span>Policy.Type</a></li>---+++</ul></li>--++<li><a href="#store%2fproject.proto">store/project.proto</a><ul>-+<li><a href="#bytebase.store.Label"><span class="badge">M</span>Label</a></li>-+<li><a href="#bytebase.store.Project"><span class="badge">M</span>Project</a></li>-+<li><a href="#bytebase.store.Project.ExecutionRetryPolicy"><span class="badge">M</span>Project.ExecutionRetryPolicy</a></li>-+<li><a href="#bytebase.store.Project.LabelsEntry"><span class="badge">M</span>Project.LabelsEntry</a></li>----++++</ul></li>--++<li><a href="#store%2fproject_webhook.proto">store/project_webhook.proto</a><ul>-+<li><a href="#bytebase.store.Activity"><span class="badge">M</span>Activity</a></li>-+<li><a href="#bytebase.store.ProjectWebhook"><span class="badge">M</span>ProjectWebhook</a></li>--++<li><a href="#bytebase.store.Activity.Type"><span class="badge">E</span>Activity.Type</a></li>---+++</ul></li>--++<li><a href="#store%2fquery_history.proto">store/query_history.proto</a><ul>-+<li><a href="#bytebase.store.QueryHistoryPayload"><span class="badge">M</span>QueryHistoryPayload</a></li>----++++</ul></li>--++<li><a href="#store%2frelease.proto">store/release.proto</a><ul>-+<li><a href="#bytebase.store.ReleasePayload"><span class="badge">M</span>ReleasePayload</a></li>-+<li><a href="#bytebase.store.ReleasePayload.File"><span class="badge">M</span>ReleasePayload.File</a></li>-+<li><a href="#bytebase.store.ReleasePayload.VCSSource"><span class="badge">M</span>ReleasePayload.VCSSource</a></li>----++++</ul></li>--++<li><a href="#store%2freview_config.proto">store/review_config.proto</a><ul>-+<li><a href="#bytebase.store.ReviewConfigPayload"><span class="badge">M</span>ReviewConfigPayload</a></li>-+<li><a href="#bytebase.store.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.CommentConventionRulePayload"><span class="badge">M</span>SQLReviewRule.CommentConventionRulePayload</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.NamingCaseRulePayload"><span class="badge">M</span>SQLReviewRule.NamingCaseRulePayload</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.NamingRulePayload"><span class="badge">M</span>SQLReviewRule.NamingRulePayload</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.NumberRulePayload"><span class="badge">M</span>SQLReviewRule.NumberRulePayload</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.StringArrayRulePayload"><span class="badge">M</span>SQLReviewRule.StringArrayRulePayload</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.StringRulePayload"><span class="badge">M</span>SQLReviewRule.StringRulePayload</a></li>--++<li><a href="#bytebase.store.SQLReviewRule.Level"><span class="badge">E</span>SQLReviewRule.Level</a></li>-+<li><a href="#bytebase.store.SQLReviewRule.Type"><span class="badge">E</span>SQLReviewRule.Type</a></li>---+++</ul></li>--++<li><a href="#store%2frevision.proto">store/revision.proto</a><ul>-+<li><a href="#bytebase.store.RevisionPayload"><span class="badge">M</span>RevisionPayload</a></li>----++++</ul></li>--++<li><a href="#store%2frole.proto">store/role.proto</a><ul>-+<li><a href="#bytebase.store.RolePermissions"><span class="badge">M</span>RolePermissions</a></li>----++++</ul></li>--++<li><a href="#store%2fserver_config.proto">store/server_config.proto</a><ul>-+<li><a href="#bytebase.store.ServerConfigPayload"><span class="badge">M</span>ServerConfigPayload</a></li>----++++</ul></li>--++<li><a href="#store%2fsetting.proto">store/setting.proto</a><ul>-+<li><a href="#bytebase.store.AISetting"><span class="badge">M</span>AISetting</a></li>-+<li><a href="#bytebase.store.Algorithm"><span class="badge">M</span>Algorithm</a></li>-+<li><a href="#bytebase.store.Algorithm.FullMask"><span class="badge">M</span>Algorithm.FullMask</a></li>-+<li><a href="#bytebase.store.Algorithm.InnerOuterMask"><span class="badge">M</span>Algorithm.InnerOuterMask</a></li>-+<li><a href="#bytebase.store.Algorithm.MD5Mask"><span class="badge">M</span>Algorithm.MD5Mask</a></li>-+<li><a href="#bytebase.store.Algorithm.RangeMask"><span class="badge">M</span>Algorithm.RangeMask</a></li>-+<li><a href="#bytebase.store.Algorithm.RangeMask.Slice"><span class="badge">M</span>Algorithm.RangeMask.Slice</a></li>-+<li><a href="#bytebase.store.AppIMSetting"><span class="badge">M</span>AppIMSetting</a></li>-+<li><a href="#bytebase.store.AppIMSetting.DingTalk"><span class="badge">M</span>AppIMSetting.DingTalk</a></li>-+<li><a href="#bytebase.store.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a></li>-+<li><a href="#bytebase.store.AppIMSetting.IMSetting"><span class="badge">M</span>AppIMSetting.IMSetting</a></li>-+<li><a href="#bytebase.store.AppIMSetting.Lark"><span class="badge">M</span>AppIMSetting.Lark</a></li>-+<li><a href="#bytebase.store.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a></li>-+<li><a href="#bytebase.store.AppIMSetting.Teams"><span class="badge">M</span>AppIMSetting.Teams</a></li>-+<li><a href="#bytebase.store.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a></li>-+<li><a href="#bytebase.store.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a></li>-+<li><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a></li>-+<li><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></li>-+<li><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a></li>-+<li><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a></li>-+<li><a href="#bytebase.store.EmailSetting"><span class="badge">M</span>EmailSetting</a></li>-+<li><a href="#bytebase.store.EmailSetting.SMTPConfig"><span class="badge">M</span>EmailSetting.SMTPConfig</a></li>-+<li><a href="#bytebase.store.EnvironmentSetting"><span class="badge">M</span>EnvironmentSetting</a></li>-+<li><a href="#bytebase.store.EnvironmentSetting.Environment"><span class="badge">M</span>EnvironmentSetting.Environment</a></li>-+<li><a href="#bytebase.store.EnvironmentSetting.Environment.TagsEntry"><span class="badge">M</span>EnvironmentSetting.Environment.TagsEntry</a></li>-+<li><a href="#bytebase.store.SQLEditorThemeSetting"><span class="badge">M</span>SQLEditorThemeSetting</a></li>-+<li><a href="#bytebase.store.SQLEditorThemeSetting.TokensEntry"><span class="badge">M</span>SQLEditorThemeSetting.TokensEntry</a></li>-+<li><a href="#bytebase.store.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a></li>-+<li><a href="#bytebase.store.SemanticTypeSetting.SemanticType"><span class="badge">M</span>SemanticTypeSetting.SemanticType</a></li>-+<li><a href="#bytebase.store.SystemSetting"><span class="badge">M</span>SystemSetting</a></li>-+<li><a href="#bytebase.store.WorkspaceApprovalSetting"><span class="badge">M</span>WorkspaceApprovalSetting</a></li>-+<li><a href="#bytebase.store.WorkspaceApprovalSetting.Rule"><span class="badge">M</span>WorkspaceApprovalSetting.Rule</a></li>-+<li><a href="#bytebase.store.WorkspaceProfileSetting"><span class="badge">M</span>WorkspaceProfileSetting</a></li>-+<li><a href="#bytebase.store.WorkspaceProfileSetting.Announcement"><span class="badge">M</span>WorkspaceProfileSetting.Announcement</a></li>-+<li><a href="#bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme"><span class="badge">M</span>WorkspaceProfileSetting.Announcement.AnnouncementTheme</a></li>-+<li><a href="#bytebase.store.WorkspaceProfileSetting.PasswordRestriction"><span class="badge">M</span>WorkspaceProfileSetting.PasswordRestriction</a></li>--++<li><a href="#bytebase.store.AISetting.Provider"><span class="badge">E</span>AISetting.Provider</a></li>-+<li><a href="#bytebase.store.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>Algorithm.InnerOuterMask.MaskType</a></li>-+<li><a href="#bytebase.store.EmailSetting.SMTPConfig.Authentication"><span class="badge">E</span>EmailSetting.SMTPConfig.Authentication</a></li>-+<li><a href="#bytebase.store.EmailSetting.SMTPConfig.Encryption"><span class="badge">E</span>EmailSetting.SMTPConfig.Encryption</a></li>-+<li><a href="#bytebase.store.EmailSetting.Type"><span class="badge">E</span>EmailSetting.Type</a></li>-+<li><a href="#bytebase.store.SettingName"><span class="badge">E</span>SettingName</a></li>-+<li><a href="#bytebase.store.WorkspaceApprovalSetting.Rule.Source"><span class="badge">E</span>WorkspaceApprovalSetting.Rule.Source</a></li>-+<li><a href="#bytebase.store.WorkspaceProfileSetting.DatabaseChangeMode"><span class="badge">E</span>WorkspaceProfileSetting.DatabaseChangeMode</a></li>---+++</ul></li>--++<li><a href="#store%2fsignal.proto">store/signal.proto</a><ul>-+<li><a href="#bytebase.store.Signal"><span class="badge">M</span>Signal</a></li>--++<li><a href="#bytebase.store.Signal.Type"><span class="badge">E</span>Signal.Type</a></li>---+++</ul></li>--++<li><a href="#store%2fsubscription.proto">store/subscription.proto</a><ul>-+<li><a href="#bytebase.store.SubscriptionPayload"><span class="badge">M</span>SubscriptionPayload</a></li>--++<li><a href="#bytebase.store.SubscriptionPayload.BillingInterval"><span class="badge">E</span>SubscriptionPayload.BillingInterval</a></li>-+<li><a href="#bytebase.store.SubscriptionPayload.Plan"><span class="badge">E</span>SubscriptionPayload.Plan</a></li>-+<li><a href="#bytebase.store.SubscriptionPayload.Status"><span class="badge">E</span>SubscriptionPayload.Status</a></li>---+++</ul></li>--++<li><a href="#store%2ftask.proto">store/task.proto</a><ul>-+<li><a href="#bytebase.store.Task"><span class="badge">M</span>Task</a></li>--++<li><a href="#bytebase.store.Task.Type"><span class="badge">E</span>Task.Type</a></li>---+++</ul></li>--++<li><a href="#store%2ftask_run.proto">store/task_run.proto</a><ul>-+<li><a href="#bytebase.store.SchedulerInfo"><span class="badge">M</span>SchedulerInfo</a></li>-+<li><a href="#bytebase.store.SchedulerInfo.WaitingCause"><span class="badge">M</span>SchedulerInfo.WaitingCause</a></li>-+<li><a href="#bytebase.store.TaskRun"><span class="badge">M</span>TaskRun</a></li>-+<li><a href="#bytebase.store.TaskRunPayload"><span class="badge">M</span>TaskRunPayload</a></li>-+<li><a href="#bytebase.store.TaskRunResult"><span class="badge">M</span>TaskRunResult</a></li>--++<li><a href="#bytebase.store.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a></li>---+++</ul></li>--++<li><a href="#store%2ftask_run_log.proto">store/task_run_log.proto</a><ul>-+<li><a href="#bytebase.store.PriorBackupDetail"><span class="badge">M</span>PriorBackupDetail</a></li>-+<li><a href="#bytebase.store.PriorBackupDetail.Item"><span class="badge">M</span>PriorBackupDetail.Item</a></li>-+<li><a href="#bytebase.store.PriorBackupDetail.Item.Table"><span class="badge">M</span>PriorBackupDetail.Item.Table</a></li>-+<li><a href="#bytebase.store.TaskRunLog"><span class="badge">M</span>TaskRunLog</a></li>-+<li><a href="#bytebase.store.TaskRunLog.CommandExecute"><span class="badge">M</span>TaskRunLog.CommandExecute</a></li>-+<li><a href="#bytebase.store.TaskRunLog.CommandResponse"><span class="badge">M</span>TaskRunLog.CommandResponse</a></li>-+<li><a href="#bytebase.store.TaskRunLog.ComputeDiffEnd"><span class="badge">M</span>TaskRunLog.ComputeDiffEnd</a></li>-+<li><a href="#bytebase.store.TaskRunLog.ComputeDiffStart"><span class="badge">M</span>TaskRunLog.ComputeDiffStart</a></li>-+<li><a href="#bytebase.store.TaskRunLog.DatabaseSyncEnd"><span class="badge">M</span>TaskRunLog.DatabaseSyncEnd</a></li>-+<li><a href="#bytebase.store.TaskRunLog.DatabaseSyncStart"><span class="badge">M</span>TaskRunLog.DatabaseSyncStart</a></li>-+<li><a href="#bytebase.store.TaskRunLog.GhostMigrationEnd"><span class="badge">M</span>TaskRunLog.GhostMigrationEnd</a></li>-+<li><a href="#bytebase.store.TaskRunLog.GhostMigrationStart"><span class="badge">M</span>TaskRunLog.GhostMigrationStart</a></li>-+<li><a href="#bytebase.store.TaskRunLog.PriorBackupEnd"><span class="badge">M</span>TaskRunLog.PriorBackupEnd</a></li>-+<li><a href="#bytebase.store.TaskRunLog.PriorBackupStart"><span class="badge">M</span>TaskRunLog.PriorBackupStart</a></li>-+<li><a href="#bytebase.store.TaskRunLog.ReleaseFileExecute"><span class="badge">M</span>TaskRunLog.ReleaseFileExecute</a></li>-+<li><a href="#bytebase.store.TaskRunLog.RetryInfo"><span class="badge">M</span>TaskRunLog.RetryInfo</a></li>-+<li><a href="#bytebase.store.TaskRunLog.SchemaDumpEnd"><span class="badge">M</span>TaskRunLog.SchemaDumpEnd</a></li>-+<li><a href="#bytebase.store.TaskRunLog.SchemaDumpStart"><span class="badge">M</span>TaskRunLog.SchemaDumpStart</a></li>-+<li><a href="#bytebase.store.TaskRunLog.TransactionControl"><span class="badge">M</span>TaskRunLog.TransactionControl</a></li>--++<li><a href="#bytebase.store.TaskRunLog.TransactionControl.Type"><span class="badge">E</span>TaskRunLog.TransactionControl.Type</a></li>-+<li><a href="#bytebase.store.TaskRunLog.Type"><span class="badge">E</span>TaskRunLog.Type</a></li>---+++</ul></li>--++<li><a href="#store%2fuser.proto">store/user.proto</a><ul>-+<li><a href="#bytebase.store.MFAConfig"><span class="badge">M</span>MFAConfig</a></li>-+<li><a href="#bytebase.store.UserProfile"><span class="badge">M</span>UserProfile</a></li>-+<li><a href="#bytebase.store.WorkloadIdentityConfig"><span class="badge">M</span>WorkloadIdentityConfig</a></li>--++<li><a href="#bytebase.store.PrincipalType"><span class="badge">E</span>PrincipalType</a></li>-+<li><a href="#bytebase.store.WorkloadIdentityConfig.ProviderType"><span class="badge">E</span>WorkloadIdentityConfig.ProviderType</a></li>---+++</ul></li>--++<li><a href="#store%2fvcs_provider_user.proto">store/vcs_provider_user.proto</a><ul>-+<li><a href="#bytebase.store.VCSProviderUserPayload"><span class="badge">M</span>VCSProviderUserPayload</a></li>----++++</ul></li>--++<li><a href="#store%2fworksheet.proto">store/worksheet.proto</a><ul>-+<li><a href="#bytebase.store.WorkSheetOrganizerPayload"><span class="badge">M</span>WorkSheetOrganizerPayload</a></li>----++++</ul></li>--++<li><a href="#store%2fworkspace.proto">store/workspace.proto</a><ul>-+<li><a href="#bytebase.store.WorkspacePayload"><span class="badge">M</span>WorkspacePayload</a></li>----++++</ul></li>-+<li><a href="#scalar-value-types">Scalar Value Types</a></li></ul></div>--++<div class="file-heading"><h2 id="store/access_grant.proto">store/access_grant.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.AccessGrant">AccessGrant</h3><p></p>---+++<h3 id="bytebase.store.AccessGrantPayload">AccessGrantPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issue_id</td><td><a href="#int64">int64</a></td><td></td><td><p>The issue associated with the access grant. </p></td></tr>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -1660,28 +1660,28 @@<td><p>The target databases for this access grant.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>query</td><td><a href="#string">string</a></td><td></td><td><p>The query permission granted. </p></td></tr>-+<tr><td>unmask</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the grant allows unmasking sensitive data. </p></td></tr>-+<tr><td>reason</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>requested_duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>@@ -1690,23 +1690,23 @@ Format: instances/{instance}/databases/{database} </p></td>Stored when the user provides a TTL instead of an absolute expire_time.The server computes expire_time from this value at activation time. </p></td></tr>-+<tr><td>export</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether export the query result. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.AccessGrant.Status">AccessGrant.Status</h3><p></p><table class="enum-table">@@ -1714,87 +1714,87 @@ The server computes expire_time from this value at activation time. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p></p></td></tr>-+<tr><td>ACTIVE</td><td>2</td><td><p></p></td></tr>-+<tr><td>REVOKED</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/common.proto">store/common.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.PageToken">PageToken</h3><p>PageToken is used internally for obfuscating pagination tokens.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>limit</td><td><a href="#int32">int32</a></td><td></td><td><p>Maximum number of items to return. </p></td></tr>-+<tr><td>offset</td><td><a href="#int32">int32</a></td><td></td><td><p>Number of items to skip before starting to return results. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Position">Position</h3><p>Position in a text expressed as one-based line and one-based column.</p><p>We use 1-based numbering to match the majority of industry standards:</p><p>- Monaco Editor uses 1-based (https://microsoft.github.io/monaco-editor/typedoc/interfaces/IPosition.html)</p><p>- GitHub Actions uses 1-based (https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message)</p><p>- Most text editors display 1-based positions to users</p><p>Note: LSP uses 0-based (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position),</p><p>but we follow the canonical user-facing standards.</p><p>Handling unknown positions:</p><p>- If the entire position is unknown, leave this field as nil/undefined</p><p>- If only line is known, set line and leave column as 0 (e.g., line=5, column=0)</p><p>- If only column is known (rare), set column and leave line as 0</p><p>Frontends should check for nil/undefined/zero values and handle them appropriately.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>line</td><td><a href="#int32">int32</a></td>@@ -1803,7 +1803,7 @@ The server computes expire_time from this value at activation time. </p></td>First line of the text is line 1.A value of 0 indicates the line information is unknown. </p></td></tr>-+<tr><td>column</td><td><a href="#int32">int32</a></td>@@ -1818,47 +1818,47 @@ Examples:- "SELECT 你好 FROM t" - column 8 is '你' (even though it's at byte offset 7)- "SELECT 😀 FROM t" - column 8 is '😀' (even though it's 4 bytes in UTF-8) </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Range">Range</h3><p>Range represents a span within a text or sequence.</p><p>Whether the indices are byte offsets or character indices depends on the context.</p><p>Check the documentation of the field using Range for specific semantics.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start</td><td><a href="#int32">int32</a></td><td></td><td><p>Start index (inclusive). </p></td></tr>-+<tr><td>end</td><td><a href="#int32">int32</a></td><td></td><td><p>End index (exclusive). </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Engine">Engine</h3><p>Engine represents the type of database system.</p><table class="enum-table">@@ -1866,166 +1866,166 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ENGINE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CLICKHOUSE</td><td>1</td><td><p></p></td></tr>-+<tr><td>MYSQL</td><td>2</td><td><p></p></td></tr>-+<tr><td>POSTGRES</td><td>3</td><td><p></p></td></tr>-+<tr><td>SNOWFLAKE</td><td>4</td><td><p></p></td></tr>-+<tr><td>SQLITE</td><td>5</td><td><p></p></td></tr>-+<tr><td>TIDB</td><td>6</td><td><p></p></td></tr>-+<tr><td>MONGODB</td><td>7</td><td><p></p></td></tr>-+<tr><td>REDIS</td><td>8</td><td><p></p></td></tr>-+<tr><td>ORACLE</td><td>9</td><td><p></p></td></tr>-+<tr><td>SPANNER</td><td>10</td><td><p></p></td></tr>-+<tr><td>MSSQL</td><td>11</td><td><p></p></td></tr>-+<tr><td>REDSHIFT</td><td>12</td><td><p></p></td></tr>-+<tr><td>MARIADB</td><td>13</td><td><p></p></td></tr>-+<tr><td>OCEANBASE</td><td>14</td><td><p></p></td></tr>-+<tr><td>STARROCKS</td><td>15</td><td><p></p></td></tr>-+<tr><td>DORIS</td><td>16</td><td><p></p></td></tr>-+<tr><td>HIVE</td><td>17</td><td><p></p></td></tr>-+<tr><td>ELASTICSEARCH</td><td>18</td><td><p></p></td></tr>-+<tr><td>BIGQUERY</td><td>19</td><td><p></p></td></tr>-+<tr><td>DYNAMODB</td><td>20</td><td><p></p></td></tr>-+<tr><td>DATABRICKS</td><td>21</td><td><p></p></td></tr>-+<tr><td>COCKROACHDB</td><td>22</td><td><p></p></td></tr>-+<tr><td>COSMOSDB</td><td>23</td><td><p></p></td></tr>-+<tr><td>TRINO</td><td>24</td><td><p></p></td></tr>-+<tr><td>CASSANDRA</td><td>25</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.ExportFormat">ExportFormat</h3><p>ExportFormat represents the file format for exported data.</p><table class="enum-table">@@ -2033,40 +2033,40 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>FORMAT_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CSV</td><td>1</td><td><p></p></td></tr>-+<tr><td>JSON</td><td>2</td><td><p></p></td></tr>-+<tr><td>SQL</td><td>3</td><td><p></p></td></tr>-+<tr><td>XLSX</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.RiskLevel">RiskLevel</h3><p>RiskLevel represents the assessed risk level of a database operation.</p><table class="enum-table">@@ -2074,34 +2074,34 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>RISK_LEVEL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>LOW</td><td>1</td><td><p></p></td></tr>-+<tr><td>MODERATE</td><td>2</td><td><p></p></td></tr>-+<tr><td>HIGH</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.SchemaChangeType">SchemaChangeType</h3><p>SchemaChangeType represents the strategy for schema changes.</p><table class="enum-table">@@ -2109,28 +2109,28 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SCHEMA_CHANGE_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>VERSIONED</td><td>1</td><td><p>Versioned migration with explicit migration scripts.</p></td></tr>-+<tr><td>DECLARATIVE</td><td>2</td><td><p>Declarative schema definition (state-based).</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.StatementType">StatementType</h3><p>StatementType represents the type of SQL statement.</p><table class="enum-table">@@ -2138,256 +2138,256 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATEMENT_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CREATE_DATABASE</td><td>1</td><td><p>DDL - CREATE statements</p></td></tr>-+<tr><td>CREATE_TABLE</td><td>2</td><td><p></p></td></tr>-+<tr><td>CREATE_VIEW</td><td>3</td><td><p></p></td></tr>-+<tr><td>CREATE_INDEX</td><td>4</td><td><p></p></td></tr>-+<tr><td>CREATE_SEQUENCE</td><td>5</td><td><p></p></td></tr>-+<tr><td>CREATE_SCHEMA</td><td>6</td><td><p></p></td></tr>-+<tr><td>CREATE_FUNCTION</td><td>7</td><td><p></p></td></tr>-+<tr><td>CREATE_TRIGGER</td><td>8</td><td><p></p></td></tr>-+<tr><td>CREATE_PROCEDURE</td><td>9</td><td><p></p></td></tr>-+<tr><td>CREATE_EVENT</td><td>10</td><td><p></p></td></tr>-+<tr><td>CREATE_EXTENSION</td><td>11</td><td><p></p></td></tr>-+<tr><td>CREATE_TYPE</td><td>12</td><td><p></p></td></tr>-+<tr><td>DROP_DATABASE</td><td>20</td><td><p>DDL - DROP statements</p></td></tr>-+<tr><td>DROP_TABLE</td><td>21</td><td><p></p></td></tr>-+<tr><td>DROP_VIEW</td><td>22</td><td><p></p></td></tr>-+<tr><td>DROP_INDEX</td><td>23</td><td><p></p></td></tr>-+<tr><td>DROP_SEQUENCE</td><td>24</td><td><p></p></td></tr>-+<tr><td>DROP_SCHEMA</td><td>25</td><td><p></p></td></tr>-+<tr><td>DROP_FUNCTION</td><td>26</td><td><p></p></td></tr>-+<tr><td>DROP_TRIGGER</td><td>27</td><td><p></p></td></tr>-+<tr><td>DROP_PROCEDURE</td><td>28</td><td><p></p></td></tr>-+<tr><td>DROP_EVENT</td><td>29</td><td><p></p></td></tr>-+<tr><td>DROP_EXTENSION</td><td>30</td><td><p></p></td></tr>-+<tr><td>DROP_TYPE</td><td>31</td><td><p></p></td></tr>-+<tr><td>ALTER_DATABASE</td><td>40</td><td><p>DDL - ALTER statements</p></td></tr>-+<tr><td>ALTER_TABLE</td><td>41</td><td><p></p></td></tr>-+<tr><td>ALTER_VIEW</td><td>42</td><td><p></p></td></tr>-+<tr><td>ALTER_SEQUENCE</td><td>43</td><td><p></p></td></tr>-+<tr><td>ALTER_EVENT</td><td>44</td><td><p></p></td></tr>-+<tr><td>ALTER_TYPE</td><td>45</td><td><p></p></td></tr>-+<tr><td>ALTER_INDEX</td><td>46</td><td><p></p></td></tr>-+<tr><td>TRUNCATE</td><td>50</td><td><p>DDL - Other</p></td></tr>-+<tr><td>RENAME</td><td>51</td><td><p></p></td></tr>-+<tr><td>RENAME_INDEX</td><td>52</td><td><p></p></td></tr>-+<tr><td>RENAME_SCHEMA</td><td>53</td><td><p></p></td></tr>-+<tr><td>RENAME_SEQUENCE</td><td>54</td><td><p></p></td></tr>-+<tr><td>COMMENT</td><td>55</td><td><p></p></td></tr>-+<tr><td>INSERT</td><td>60</td><td><p>DML statements</p></td></tr>-+<tr><td>UPDATE</td><td>61</td><td><p></p></td></tr>-+<tr><td>DELETE</td><td>62</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.VCSType">VCSType</h3><p>VCSType represents the type of version control system.</p><table class="enum-table">@@ -2395,40 +2395,40 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>VCS_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>GITHUB</td><td>1</td><td><p></p></td></tr>-+<tr><td>GITLAB</td><td>2</td><td><p></p></td></tr>-+<tr><td>BITBUCKET</td><td>3</td><td><p></p></td></tr>-+<tr><td>AZURE_DEVOPS</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.WebhookType">WebhookType</h3><p></p><table class="enum-table">@@ -2436,114 +2436,114 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>WEBHOOK_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>SLACK</td><td>1</td><td><p>Slack integration.</p></td></tr>-+<tr><td>DISCORD</td><td>2</td><td><p>Discord integration.</p></td></tr>-+<tr><td>TEAMS</td><td>3</td><td><p>Microsoft Teams integration.</p></td></tr>-+<tr><td>DINGTALK</td><td>4</td><td><p>DingTalk integration.</p></td></tr>-+<tr><td>FEISHU</td><td>5</td><td><p>Feishu integration.</p></td></tr>-+<tr><td>WECOM</td><td>6</td><td><p>WeCom (WeChat Work) integration.</p></td></tr>-+<tr><td>LARK</td><td>7</td><td><p>Lark integration.</p></td></tr>-+<tr><td>GOOGLE_CHAT</td><td>8</td><td><p>Google Chat integration.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/advice.proto">store/advice.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Advice">Advice</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.store.Advice.Status">Advice.Status</a></td><td></td><td><p>The advice status. </p></td></tr>-+<tr><td>code</td><td><a href="#int32">int32</a></td><td></td><td><p>The advice code. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The advice title. </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p>The advice content. </p></td></tr>-+<tr><td>start_position</td><td><a href="#bytebase.store.Position">Position</a></td>@@ -2551,23 +2551,23 @@ Examples:<td><p>The start_position is inclusive and the end_position is exclusive.TODO: use range instead. </p></td></tr>-+<tr><td>end_position</td><td><a href="#bytebase.store.Position">Position</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Advice.Status">Advice.Status</h3><p>Status represents the result status of the advice.</p><table class="enum-table">@@ -2575,132 +2575,132 @@ TODO: use range instead. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>SUCCESS</td><td>1</td><td><p></p></td></tr>-+<tr><td>WARNING</td><td>2</td><td><p></p></td></tr>-+<tr><td>ERROR</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/approval.proto">store/approval.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ApprovalFlow">ApprovalFlow</h3><p>ApprovalFlow defines the sequence of approvals required.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>roles</td><td><a href="#string">string</a></td><td>repeated</td><td><p>List of role names that must approve, in order. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ApprovalTemplate">ApprovalTemplate</h3><p>ApprovalTemplate defines the approval workflow and requirements for an issue.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>flow</td><td><a href="#bytebase.store.ApprovalFlow">ApprovalFlow</a></td><td></td><td><p>The approval workflow specification. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>Human-readable title of the approval template. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>Detailed description of when this template applies. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IssuePayloadApproval">IssuePayloadApproval</h3><p>IssuePayloadApproval records the approval template used and approval history for an issue.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>approval_template</td><td><a href="#bytebase.store.ApprovalTemplate">ApprovalTemplate</a></td><td></td><td><p>The approval template being used for this issue. </p></td></tr>-+<tr><td>approvers</td><td><a href="#bytebase.store.IssuePayloadApproval.Approver">IssuePayloadApproval.Approver</a></td><td>repeated</td><td><p>List of approvers and their current status. </p></td></tr>-+<tr><td>approval_finding_done</td><td><a href="#bool">bool</a></td>@@ -2708,38 +2708,38 @@ TODO: use range instead. </p></td><td><p>Whether the system has finished finding a matching approval template.False means the backend is still searching for matching templates. </p></td></tr>-+<tr><td>approval_input_version</td><td><a href="#int64">int64</a></td><td></td><td><p>The plan approval input version used to generate this approval flow. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IssuePayloadApproval.Approver">IssuePayloadApproval.Approver</h3><p>Approver represents a user who can approve or reject an issue.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</a></td><td></td><td><p>The current approval status. </p></td></tr>-+<tr><td>principal</td><td><a href="#string">string</a></td>@@ -2747,16 +2747,16 @@ False means the backend is still searching for matching templates. </p></td><td><p>The principal who is the approver.Format: users/{email}. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</h3><p>Status represents the approver's decision state.</p><table class="enum-table">@@ -2764,56 +2764,56 @@ Format: users/{email}. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p>Approval is pending from this approver.</p></td></tr>-+<tr><td>APPROVED</td><td>2</td><td><p>Approver has approved the issue.</p></td></tr>-+<tr><td>REJECTED</td><td>3</td><td><p>Approver has rejected the issue.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/audit_log.proto">store/audit_log.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.AuditLog">AuditLog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -2823,14 +2823,14 @@ Formats:- projects/{project}- workspaces/{workspace} </p></td></tr>-+<tr><td>method</td><td><a href="#string">string</a></td><td></td><td><p>Example: /bytebase.v1.SQLService/Query </p></td></tr>-+<tr><td>resource</td><td><a href="#string">string</a></td>@@ -2838,28 +2838,28 @@ Formats:<td><p>The resource name.Example: projects/{project} </p></td></tr>-+<tr><td>user</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/{email}. </p></td></tr>-+<tr><td>severity</td><td><a href="#bytebase.store.AuditLog.Severity">AuditLog.Severity</a></td><td></td><td><p> </p></td></tr>-+<tr><td>request</td><td><a href="#string">string</a></td><td></td><td><p>Marshalled request. </p></td></tr>-+<tr><td>response</td><td><a href="#string">string</a></td>@@ -2867,59 +2867,59 @@ Example: projects/{project} </p></td><td><p>Marshalled response.Some fields are omitted because they are too large or contain sensitive information. </p></td></tr>-+<tr><td>status</td><td><a href="#google.rpc.Status">google.rpc.Status</a></td><td></td><td><p> </p></td></tr>-+<tr><td>latency</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The latency of the RPC. </p></td></tr>-+<tr><td>service_data</td><td><a href="#google.protobuf.Any">google.protobuf.Any</a></td><td></td><td><p>The service-specific data about the request, response, and other activities. </p></td></tr>-+<tr><td>request_metadata</td><td><a href="#bytebase.store.RequestMetadata">RequestMetadata</a></td><td></td><td><p>Metadata about the operation. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.RequestMetadata">RequestMetadata</h3><p>Metadata about the request.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>caller_ip</td><td><a href="#string">string</a></td><td></td><td><p>The IP address of the caller. </p></td></tr>-+<tr><td>caller_supplied_user_agent</td><td><a href="#string">string</a></td>@@ -2927,16 +2927,16 @@ Some fields are omitted because they are too large or contain sensitive informat<td><p>The user agent of the caller.This information is not authenticated and should be treated accordingly. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.AuditLog.Severity">AuditLog.Severity</h3><p></p><table class="enum-table">@@ -2944,78 +2944,78 @@ This information is not authenticated and should be treated accordingly. </p></t<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SEVERITY_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DEBUG</td><td>1</td><td><p></p></td></tr>-+<tr><td>INFO</td><td>2</td><td><p></p></td></tr>-+<tr><td>NOTICE</td><td>3</td><td><p></p></td></tr>-+<tr><td>WARNING</td><td>4</td><td><p></p></td></tr>-+<tr><td>ERROR</td><td>5</td><td><p></p></td></tr>-+<tr><td>CRITICAL</td><td>6</td><td><p></p></td></tr>-+<tr><td>ALERT</td><td>7</td><td><p></p></td></tr>-+<tr><td>EMERGENCY</td><td>8</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/auth.proto">store/auth.proto</h2><a href="#title">Top</a></div><p></p>--++<h3 id="bytebase.store.EmailVerificationCodePurpose">EmailVerificationCodePurpose</h3><p>EmailVerificationCodePurpose distinguishes login codes from password reset codes.</p><p>Stored as the enum name string in email_verification_code.purpose column.</p><table class="enum-table">@@ -3023,275 +3023,275 @@ This information is not authenticated and should be treated accordingly. </p></t<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>EMAIL_VERIFICATION_CODE_PURPOSE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>LOGIN</td><td>1</td><td><p></p></td></tr>-+<tr><td>PASSWORD_RESET</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/changelog.proto">store/changelog.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ChangelogPayload">ChangelogPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>task_run</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+<tr><td>git_commit</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/database.proto">store/database.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.BoundingBox">BoundingBox</h3><p>BoundingBox defines the bounding box for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>xmin</td><td><a href="#double">double</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ymin</td><td><a href="#double">double</a></td><td></td><td><p> </p></td></tr>-+<tr><td>xmax</td><td><a href="#double">double</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ymax</td><td><a href="#double">double</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.CheckConstraintMetadata">CheckConstraintMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the check constraint. </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td><td></td><td><p>The expression is the expression of a check constraint. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ColumnCatalog">ColumnCatalog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the column. </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.store.ColumnCatalog.LabelsEntry">ColumnCatalog.LabelsEntry</a></td><td>repeated</td><td><p>The user labels for a column. </p></td></tr>-+<tr><td>classification</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>object_schema</td><td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td><td>optional</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ColumnCatalog.LabelsEntry">ColumnCatalog.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ColumnMetadata">ColumnMetadata</h3><p>ColumnMetadata is the metadata for columns.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the column. </p></td></tr>-+<tr><td>position</td><td><a href="#int32">int32</a></td><td></td><td><p>The position is the position in columns. </p></td></tr>-+<tr><td>default</td><td><a href="#string">string</a></td><td></td><td><p>The default value of the column. </p></td></tr>-+<tr><td>default_on_null</td><td><a href="#bool">bool</a></td>@@ -3299,7 +3299,7 @@ This information is not authenticated and should be treated accordingly. </p></t<td><p>Oracle specific metadata.The default_on_null is the default on null of a column. </p></td></tr>-+<tr><td>on_update</td><td><a href="#string">string</a></td>@@ -3308,77 +3308,77 @@ The default_on_null is the default on null of a column. </p></td>For MySQL like databases, it's only supported for TIMESTAMP columns withCURRENT_TIMESTAMP as on update value. </p></td></tr>-+<tr><td>nullable</td><td><a href="#bool">bool</a></td><td></td><td><p>The nullable is the nullable of a column. </p></td></tr>-+<tr><td>type</td><td><a href="#string">string</a></td><td></td><td><p>The type is the type of a column. </p></td></tr>-+<tr><td>character_set</td><td><a href="#string">string</a></td><td></td><td><p>The character_set is the character_set of a column. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>The collation is the collation of a column. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a column. </p></td></tr>-+<tr><td>generation</td><td><a href="#bytebase.store.GenerationMetadata">GenerationMetadata</a></td><td></td><td><p>The generation is for generated columns. </p></td></tr>-+<tr><td>is_identity</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>identity_generation</td><td><a href="#bytebase.store.ColumnMetadata.IdentityGeneration">ColumnMetadata.IdentityGeneration</a></td><td></td><td><p>The identity_generation is for identity columns, PG only. </p></td></tr>-+<tr><td>identity_seed</td><td><a href="#int64">int64</a></td><td></td><td><p>The identity_seed is for identity columns, MSSQL only. </p></td></tr>-+<tr><td>identity_increment</td><td><a href="#int64">int64</a></td><td></td><td><p>The identity_increment is for identity columns, MSSQL only. </p></td></tr>-+<tr><td>default_constraint_name</td><td><a href="#string">string</a></td>@@ -3404,83 +3404,83 @@ To modify the default, you must first drop the existing constraint by name:This field is populated when syncing from the database. When empty (e.g., when parsingfrom SQL files), the system cannot automatically drop the constraint. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DatabaseConfig">DatabaseConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schemas</td><td><a href="#bytebase.store.SchemaCatalog">SchemaCatalog</a></td><td>repeated</td><td><p>The schema_configs is the list of configs for schemas in a database. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DatabaseMetadata">DatabaseMetadata</h3><p>DatabaseMetadata is the metadata for databases.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>labels</td><td><a href="#bytebase.store.DatabaseMetadata.LabelsEntry">DatabaseMetadata.LabelsEntry</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>last_sync_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>backup_available</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>datashare</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -3488,139 +3488,139 @@ from SQL files), the system cannot automatically drop the constraint. </p></td><td><p>The release that was last applied to this database.Format: projects/{project}/releases/{release_id} </p></td></tr>-+<tr><td>sync_status</td><td><a href="#bytebase.store.SyncStatus">SyncStatus</a></td><td></td><td><p>The sync status of the database. </p></td></tr>-+<tr><td>sync_error</td><td><a href="#string">string</a></td><td></td><td><p>The error message if sync failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DatabaseMetadata.LabelsEntry">DatabaseMetadata.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DatabaseSchemaMetadata">DatabaseSchemaMetadata</h3><p>DatabaseSchemaMetadata is the schema metadata for databases.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schemas</td><td><a href="#bytebase.store.SchemaMetadata">SchemaMetadata</a></td><td>repeated</td><td><p>The list of schemas in a database. </p></td></tr>-+<tr><td>character_set</td><td><a href="#string">string</a></td><td></td><td><p>The character set of the database. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>The collation of the database. </p></td></tr>-+<tr><td>extensions</td><td><a href="#bytebase.store.ExtensionMetadata">ExtensionMetadata</a></td><td>repeated</td><td><p>The list of extensions in a database. </p></td></tr>-+<tr><td>datashare</td><td><a href="#bool">bool</a></td><td></td><td><p>The database belongs to a datashare. </p></td></tr>-+<tr><td>service_name</td><td><a href="#string">string</a></td><td></td><td><p>The service name of the database. It's an Oracle-specific concept. </p></td></tr>-+<tr><td>linked_databases</td><td><a href="#bytebase.store.LinkedDatabaseMetadata">LinkedDatabaseMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>search_path</td><td><a href="#string">string</a></td><td></td><td><p>The search_path is the search path of a PostgreSQL database. </p></td></tr>-+<tr><td>event_triggers</td><td><a href="#bytebase.store.EventTriggerMetadata">EventTriggerMetadata</a></td>@@ -3628,100 +3628,100 @@ Format: projects/{project}/releases/{release_id} </p></td><td><p>The list of event triggers in a database (PostgreSQL specific).Event triggers are database-level objects, not schema-scoped. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DependencyColumn">DependencyColumn</h3><p>DependencyColumn is the metadata for dependency columns.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema is the schema of a reference column. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td><td></td><td><p>The table is the table of a reference column. </p></td></tr>-+<tr><td>column</td><td><a href="#string">string</a></td><td></td><td><p>The column is the name of a reference column. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DependencyTable">DependencyTable</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema is the schema of a reference table. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td><td></td><td><p>The table is the name of a reference table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DimensionalConfig">DimensionalConfig</h3><p>DimensionalConfig defines dimensional and constraint parameters for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>dimensions</td><td><a href="#int32">int32</a></td><td></td><td><p>Number of dimensions (2-4, default 2) </p></td></tr>-+<tr><td>data_type</td><td><a href="#string">string</a></td>@@ -3729,7 +3729,7 @@ Event triggers are database-level objects, not schema-scoped. </p></td><td><p>Spatial data typeExamples: GEOMETRY, GEOGRAPHY, POINT, POLYGON, etc. </p></td></tr>-+<tr><td>operator_class</td><td><a href="#string">string</a></td>@@ -3737,7 +3737,7 @@ Examples: GEOMETRY, GEOGRAPHY, POINT, POLYGON, etc. </p></td><td><p>PostgreSQL operator classExamples: gist_geometry_ops_2d, gist_geometry_ops_nd, etc. </p></td></tr>-+<tr><td>layer_gtype</td><td><a href="#string">string</a></td>@@ -3745,184 +3745,184 @@ Examples: gist_geometry_ops_2d, gist_geometry_ops_nd, etc. </p></td><td><p>Oracle geometry type constraintExamples: POINT, LINE, POLYGON, COLLECTION </p></td></tr>-+<tr><td>parallel_build</td><td><a href="#bool">bool</a></td><td></td><td><p>Parallel index creation </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EnumTypeMetadata">EnumTypeMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the enum type. </p></td></tr>-+<tr><td>values</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The enum values of the type. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EventMetadata">EventMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the event. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The schedule of the event. </p></td></tr>-+<tr><td>time_zone</td><td><a href="#string">string</a></td><td></td><td><p>The time zone of the event. </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EventTriggerMetadata">EventTriggerMetadata</h3><p>EventTriggerMetadata is the metadata for PostgreSQL event triggers.</p><p>Event triggers are database-level objects that fire on DDL events.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the event trigger. </p></td></tr>-+<tr><td>event</td><td><a href="#string">string</a></td><td></td><td><p>The event type: DDL_COMMAND_START, DDL_COMMAND_END, SQL_DROP, TABLE_REWRITE. </p></td></tr>-+<tr><td>tags</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The tags filter (e.g., ['CREATE TABLE', 'DROP TABLE']). </p></td></tr>-+<tr><td>function_schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema of the function to execute. </p></td></tr>-+<tr><td>function_name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the function to execute. </p></td></tr>-+<tr><td>enabled</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the trigger is enabled. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td>@@ -3930,45 +3930,45 @@ Examples: POINT, LINE, POLYGON, COLLECTION </p></td><td><p>The full CREATE EVENT TRIGGER definition from pg_get_event_trigger_def().SDL output should prefer using this field. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment on the event trigger. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p>Skip dump flag (for extension-owned triggers). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ExcludeConstraintMetadata">ExcludeConstraintMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the EXCLUDE constraint. </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td>@@ -3976,31 +3976,31 @@ SDL output should prefer using this field. </p></td><td><p>The expression is the full EXCLUDE constraint definition including "EXCLUDE" keyword.Example: "EXCLUDE USING gist (room_id WITH =, during WITH &&)" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ExtensionMetadata">ExtensionMetadata</h3><p>ExtensionMetadata is the metadata for extensions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the extension. </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td>@@ -4008,97 +4008,97 @@ Example: "EXCLUDE USING gist (room_id WITH =, during WITH &&)" <<td><p>The schema where the extension is installed. However, the extension usageis not limited to the schema. </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The version is the version of an extension. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>The description is the description of an extension. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ExternalTableMetadata">ExternalTableMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the external table. </p></td></tr>-+<tr><td>external_server_name</td><td><a href="#string">string</a></td><td></td><td><p>The external_server_name is the name of the external server. </p></td></tr>-+<tr><td>external_database_name</td><td><a href="#string">string</a></td><td></td><td><p>The external_database_name is the name of the external database. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.store.ColumnMetadata">ColumnMetadata</a></td><td>repeated</td><td><p>The columns is the ordered list of columns in a foreign table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ForeignKeyMetadata">ForeignKeyMetadata</h3><p>ForeignKeyMetadata is the metadata for foreign keys.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the foreign key. </p></td></tr>-+<tr><td>columns</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The columns are the ordered referencing columns of a foreign key. </p></td></tr>-+<tr><td>referenced_schema</td><td><a href="#string">string</a></td>@@ -4106,35 +4106,35 @@ is not limited to the schema. </p></td><td><p>The referenced_schema is the referenced schema name of a foreign key.It is an empty string for databases without such concept such as MySQL. </p></td></tr>-+<tr><td>referenced_table</td><td><a href="#string">string</a></td><td></td><td><p>The referenced_table is the referenced table name of a foreign key. </p></td></tr>-+<tr><td>referenced_columns</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The referenced_columns are the ordered referenced columns of a foreign key. </p></td></tr>-+<tr><td>on_delete</td><td><a href="#string">string</a></td><td></td><td><p>The on_delete is the on delete action of a foreign key. </p></td></tr>-+<tr><td>on_update</td><td><a href="#string">string</a></td><td></td><td><p>The on_update is the on update action of a foreign key. </p></td></tr>-+<tr><td>match_type</td><td><a href="#string">string</a></td>@@ -4143,38 +4143,38 @@ It is an empty string for databases without such concept such as MySQL. </p></tdThe match_type is the PostgreSQL specific field.It's empty string for other databases. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.FunctionMetadata">FunctionMetadata</h3><p>FunctionMetadata is the metadata for functions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the function. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a function. </p></td></tr>-+<tr><td>signature</td><td><a href="#string">string</a></td>@@ -4182,42 +4182,42 @@ It's empty string for other databases. </p></td><td><p>The signature is the name with the number and type of input arguments thefunction takes. </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p>MySQL specific metadata. </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_collation</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>dependency_tables</td><td><a href="#bytebase.store.DependencyTable">DependencyTable</a></td>@@ -4225,100 +4225,100 @@ function takes. </p></td><td><p>The dependency_tables is the list of dependency tables of a function.For PostgreSQL, it's the list of tables that the function depends on the return type definition. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.GenerationMetadata">GenerationMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.GenerationMetadata.Type">GenerationMetadata.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.GridLevel">GridLevel</h3><p>GridLevel defines a grid level for spatial tessellation.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>level</td><td><a href="#int32">int32</a></td><td></td><td><p>1-4 for SQL Server </p></td></tr>-+<tr><td>density</td><td><a href="#string">string</a></td><td></td><td><p>LOW, MEDIUM, HIGH </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IndexMetadata">IndexMetadata</h3><p>IndexMetadata is the metadata for indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the index. </p></td></tr>-+<tr><td>expressions</td><td><a href="#string">string</a></td>@@ -4332,7 +4332,7 @@ pg_get_indexdef(oid, col, true) — the tightest `index_elem` grammar form:- expression key: parenthesized a_expr e.g. "(payload ->> 'k'::text)"The DDL emitter writes entries verbatim into the CREATE INDEX key list. </p></td></tr>-+<tr><td>key_length</td><td><a href="#int64">int64</a></td>@@ -4340,77 +4340,77 @@ The DDL emitter writes entries verbatim into the CREATE INDEX key list. </p></td<td><p>The ordered list of key lengths for the index.If the key length is not specified, it is -1. </p></td></tr>-+<tr><td>descending</td><td><a href="#bool">bool</a></td><td>repeated</td><td><p>The ordered list of descending flags for the index columns. </p></td></tr>-+<tr><td>type</td><td><a href="#string">string</a></td><td></td><td><p>The type is the type of an index. </p></td></tr>-+<tr><td>unique</td><td><a href="#bool">bool</a></td><td></td><td><p>The unique is whether the index is unique. </p></td></tr>-+<tr><td>primary</td><td><a href="#bool">bool</a></td><td></td><td><p>The primary is whether the index is a primary key index. </p></td></tr>-+<tr><td>visible</td><td><a href="#bool">bool</a></td><td></td><td><p>The visible is whether the index is visible. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of an index. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition of an index. </p></td></tr>-+<tr><td>parent_index_schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema name of the parent index. </p></td></tr>-+<tr><td>parent_index_name</td><td><a href="#string">string</a></td><td></td><td><p>The index name of the parent index. </p></td></tr>-+<tr><td>granularity</td><td><a href="#int64">int64</a></td><td></td><td><p>The number of granules in the block. It's a ClickHouse specific field. </p></td></tr>-+<tr><td>is_constraint</td><td><a href="#bool">bool</a></td>@@ -4418,14 +4418,14 @@ If the key length is not specified, it is -1. </p></td><td><p>It's a PostgreSQL specific field.The unique constraint and unique index are not the same thing in PostgreSQL. </p></td></tr>-+<tr><td>spatial_config</td><td><a href="#bytebase.store.SpatialIndexConfig">SpatialIndexConfig</a></td><td></td><td><p>Spatial index specific configuration </p></td></tr>-+<tr><td>opclass_names</td><td><a href="#string">string</a></td>@@ -4433,38 +4433,38 @@ The unique constraint and unique index are not the same thing in PostgreSQL. </p<td><p>https://www.postgresql.org/docs/current/catalog-pg-opclass.htmlName of the operator class for each column. (PostgreSQL specific). </p></td></tr>-+<tr><td>opclass_defaults</td><td><a href="#bool">bool</a></td><td>repeated</td><td><p>True if the operator class is the default. (PostgreSQL specific). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.InstanceRoleMetadata">InstanceRoleMetadata</h3><p>InstanceRoleMetadata is the message for instance role.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The role name. It's unique within the instance. </p></td></tr>-+<tr><td>grant</td><td><a href="#string">string</a></td>@@ -4472,297 +4472,297 @@ Name of the operator class for each column. (PostgreSQL specific). </p></td><td><p>The grant display string on the instance. It's generated by databaseengine. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.LinkedDatabaseMetadata">LinkedDatabaseMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>username</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.MaterializedViewMetadata">MaterializedViewMetadata</h3><p>MaterializedViewMetadata is the metadata for materialized views.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the materialized view. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a view. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a view. </p></td></tr>-+<tr><td>dependency_columns</td><td><a href="#bytebase.store.DependencyColumn">DependencyColumn</a></td><td>repeated</td><td><p>The list of dependency columns of the view. </p></td></tr>-+<tr><td>triggers</td><td><a href="#bytebase.store.TriggerMetadata">TriggerMetadata</a></td><td>repeated</td><td><p>The ordered list of columns in the materialized view. </p></td></tr>-+<tr><td>indexes</td><td><a href="#bytebase.store.IndexMetadata">IndexMetadata</a></td><td>repeated</td><td><p>The list of indexes in the materialized view. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ObjectSchema">ObjectSchema</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.ObjectSchema.Type">ObjectSchema.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>struct_kind</td><td><a href="#bytebase.store.ObjectSchema.StructKind">ObjectSchema.StructKind</a></td><td></td><td><p> </p></td></tr>-+<tr><td>array_kind</td><td><a href="#bytebase.store.ObjectSchema.ArrayKind">ObjectSchema.ArrayKind</a></td><td></td><td><p> </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ObjectSchema.ArrayKind">ObjectSchema.ArrayKind</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>kind</td><td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ObjectSchema.StructKind">ObjectSchema.StructKind</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>properties</td><td><a href="#bytebase.store.ObjectSchema.StructKind.PropertiesEntry">ObjectSchema.StructKind.PropertiesEntry</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ObjectSchema.StructKind.PropertiesEntry">ObjectSchema.StructKind.PropertiesEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PackageMetadata">PackageMetadata</h3><p>PackageMetadata is the metadata for packages.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the package. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a package. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ProcedureMetadata">ProcedureMetadata</h3><p>ProcedureMetadata is the metadata for procedures.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the procedure. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a procedure. </p></td></tr>-+<tr><td>signature</td><td><a href="#string">string</a></td>@@ -4770,132 +4770,132 @@ engine. </p></td><td><p>The signature is the name with the number and type of input arguments thefunction takes. </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p>MySQL specific metadata. </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_collation</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.RuleMetadata">RuleMetadata</h3><p>RuleMetadata is the metadata for PostgreSQL rules.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the rule. </p></td></tr>-+<tr><td>event</td><td><a href="#string">string</a></td><td></td><td><p>The event type of the rule: SELECT, INSERT, UPDATE, or DELETE. </p></td></tr>-+<tr><td>condition</td><td><a href="#string">string</a></td><td></td><td><p>The WHERE condition of the rule (optional). </p></td></tr>-+<tr><td>action</td><td><a href="#string">string</a></td><td></td><td><p>The command(s) to execute when the rule fires. </p></td></tr>-+<tr><td>is_instead</td><td><a href="#bool">bool</a></td><td></td><td><p>The is_instead indicates whether this is an INSTEAD rule. </p></td></tr>-+<tr><td>is_enabled</td><td><a href="#bool">bool</a></td><td></td><td><p>The is_enabled indicates whether the rule is enabled. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The full CREATE RULE statement. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SchemaCatalog">SchemaCatalog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -4903,31 +4903,31 @@ function takes. </p></td><td><p>The schema name.It is an empty string for databases without such concept such as MySQL. </p></td></tr>-+<tr><td>tables</td><td><a href="#bytebase.store.TableCatalog">TableCatalog</a></td><td>repeated</td><td><p>The table_configs is the list of configs for tables in a schema. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SchemaMetadata">SchemaMetadata</h3><p>SchemaMetadata is the metadata for schemas.</p><p>This is the concept of schema in Postgres, but it's a no-op for MySQL.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -4935,237 +4935,237 @@ It is an empty string for databases without such concept such as MySQL. </p></td<td><p>The schema name.It is an empty string for databases without such concept such as MySQL. </p></td></tr>-+<tr><td>tables</td><td><a href="#bytebase.store.TableMetadata">TableMetadata</a></td><td>repeated</td><td><p>The list of tables in a schema. </p></td></tr>-+<tr><td>external_tables</td><td><a href="#bytebase.store.ExternalTableMetadata">ExternalTableMetadata</a></td><td>repeated</td><td><p>The list of external tables in a schema. </p></td></tr>-+<tr><td>views</td><td><a href="#bytebase.store.ViewMetadata">ViewMetadata</a></td><td>repeated</td><td><p>The list of views in a schema. </p></td></tr>-+<tr><td>functions</td><td><a href="#bytebase.store.FunctionMetadata">FunctionMetadata</a></td><td>repeated</td><td><p>The list of functions in a schema. </p></td></tr>-+<tr><td>procedures</td><td><a href="#bytebase.store.ProcedureMetadata">ProcedureMetadata</a></td><td>repeated</td><td><p>The list of procedures in a schema. </p></td></tr>-+<tr><td>streams</td><td><a href="#bytebase.store.StreamMetadata">StreamMetadata</a></td><td>repeated</td><td><p>The list of streams in a schema, currently only used for Snowflake. </p></td></tr>-+<tr><td>tasks</td><td><a href="#bytebase.store.TaskMetadata">TaskMetadata</a></td><td>repeated</td><td><p>The list of tasks in a schema, currently only used for Snowflake. </p></td></tr>-+<tr><td>materialized_views</td><td><a href="#bytebase.store.MaterializedViewMetadata">MaterializedViewMetadata</a></td><td>repeated</td><td><p>The list of materialized views in a schema. </p></td></tr>-+<tr><td>sequences</td><td><a href="#bytebase.store.SequenceMetadata">SequenceMetadata</a></td><td>repeated</td><td><p>The list of sequences in a schema. </p></td></tr>-+<tr><td>packages</td><td><a href="#bytebase.store.PackageMetadata">PackageMetadata</a></td><td>repeated</td><td><p>The list of packages in a schema. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>events</td><td><a href="#bytebase.store.EventMetadata">EventMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>enum_types</td><td><a href="#bytebase.store.EnumTypeMetadata">EnumTypeMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SequenceMetadata">SequenceMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of a sequence. </p></td></tr>-+<tr><td>data_type</td><td><a href="#string">string</a></td><td></td><td><p>The data type of a sequence. </p></td></tr>-+<tr><td>start</td><td><a href="#string">string</a></td><td></td><td><p>The start value of a sequence. </p></td></tr>-+<tr><td>min_value</td><td><a href="#string">string</a></td><td></td><td><p>The minimum value of a sequence. </p></td></tr>-+<tr><td>max_value</td><td><a href="#string">string</a></td><td></td><td><p>The maximum value of a sequence. </p></td></tr>-+<tr><td>increment</td><td><a href="#string">string</a></td><td></td><td><p>The increment value of a sequence. </p></td></tr>-+<tr><td>cycle</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the sequence cycles. </p></td></tr>-+<tr><td>cache_size</td><td><a href="#string">string</a></td><td></td><td><p>Cache size of a sequence. </p></td></tr>-+<tr><td>last_value</td><td><a href="#string">string</a></td><td></td><td><p>The last value of a sequence. </p></td></tr>-+<tr><td>owner_table</td><td><a href="#string">string</a></td><td></td><td><p>The table that owns the sequence. </p></td></tr>-+<tr><td>owner_column</td><td><a href="#string">string</a></td><td></td><td><p>The column that owns the sequence. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SpatialIndexConfig">SpatialIndexConfig</h3><p>SpatialIndexConfig is the configuration for spatial indexes across different database engines.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>method</td><td><a href="#string">string</a></td>@@ -5173,83 +5173,83 @@ It is an empty string for databases without such concept such as MySQL. </p></td<td><p>Index method/type (database-specific)Examples: "SPATIAL" (MySQL/SQL Server), "GIST"/"SPGIST" (PostgreSQL), "MDSYS.SPATIAL_INDEX_V2" (Oracle) </p></td></tr>-+<tr><td>tessellation</td><td><a href="#bytebase.store.TessellationConfig">TessellationConfig</a></td><td></td><td><p>Tessellation configuration (primarily SQL Server) </p></td></tr>-+<tr><td>storage</td><td><a href="#bytebase.store.StorageConfig">StorageConfig</a></td><td></td><td><p>Storage and performance parameters </p></td></tr>-+<tr><td>dimensional</td><td><a href="#bytebase.store.DimensionalConfig">DimensionalConfig</a></td><td></td><td><p>Dimensional and constraint parameters </p></td></tr>-+<tr><td>engine_specific</td><td><a href="#bytebase.store.SpatialIndexConfig.EngineSpecificEntry">SpatialIndexConfig.EngineSpecificEntry</a></td><td>repeated</td><td><p>Database-specific parameters (stored as key-value pairs for extensibility) </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SpatialIndexConfig.EngineSpecificEntry">SpatialIndexConfig.EngineSpecificEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.StorageConfig">StorageConfig</h3><p>StorageConfig defines storage and performance parameters for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>fillfactor</td><td><a href="#int32">int32</a></td>@@ -5258,345 +5258,345 @@ Examples: "SPATIAL" (MySQL/SQL Server), "GIST"/"SPGIST"10-100 </p></td></tr>-+<tr><td>buffering</td><td><a href="#string">string</a></td><td></td><td><p>auto, on, off </p></td></tr>-+<tr><td>tablespace</td><td><a href="#string">string</a></td><td></td><td><p>Oracle parameters </p></td></tr>-+<tr><td>work_tablespace</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sdo_level</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>commit_interval</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>pad_index</td><td><a href="#bool">bool</a></td><td></td><td><p>SQL Server parameters </p></td></tr>-+<tr><td>sort_in_tempdb</td><td><a href="#string">string</a></td><td></td><td><p>ON, OFF </p></td></tr>-+<tr><td>drop_existing</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>online</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>allow_row_locks</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>allow_page_locks</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>maxdop</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>data_compression</td><td><a href="#string">string</a></td><td></td><td><p>NONE, ROW, PAGE </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.StreamMetadata">StreamMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the stream. </p></td></tr>-+<tr><td>table_name</td><td><a href="#string">string</a></td><td></td><td><p>The table_name is the name of the table/view that the stream is created on. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the stream. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment of the stream. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.StreamMetadata.Type">StreamMetadata.Type</a></td><td></td><td><p>The type of the stream. </p></td></tr>-+<tr><td>stale</td><td><a href="#bool">bool</a></td><td></td><td><p>Indicates whether the stream was last read before the `stale_after` time. </p></td></tr>-+<tr><td>mode</td><td><a href="#bytebase.store.StreamMetadata.Mode">StreamMetadata.Mode</a></td><td></td><td><p>The mode of the stream. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition of the stream. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TableCatalog">TableCatalog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the table. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.store.ColumnCatalog">ColumnCatalog</a></td><td>repeated</td><td><p>The column_configs is the ordered list of configs for columns in a table. </p></td></tr>-+<tr><td>object_schema</td><td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>classification</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TableMetadata">TableMetadata</h3><p>TableMetadata is the metadata for tables.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the table. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.store.ColumnMetadata">ColumnMetadata</a></td><td>repeated</td><td><p>The columns is the ordered list of columns in a table. </p></td></tr>-+<tr><td>indexes</td><td><a href="#bytebase.store.IndexMetadata">IndexMetadata</a></td><td>repeated</td><td><p>The indexes is the list of indexes in a table. </p></td></tr>-+<tr><td>engine</td><td><a href="#string">string</a></td><td></td><td><p>The engine is the engine of a table. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>The collation is the collation of a table. </p></td></tr>-+<tr><td>charset</td><td><a href="#string">string</a></td><td></td><td><p>The character set of the table. </p></td></tr>-+<tr><td>row_count</td><td><a href="#int64">int64</a></td><td></td><td><p>The row_count is the estimated number of rows of a table. </p></td></tr>-+<tr><td>data_size</td><td><a href="#int64">int64</a></td><td></td><td><p>The data_size is the estimated data size of a table. </p></td></tr>-+<tr><td>index_size</td><td><a href="#int64">int64</a></td><td></td><td><p>The index_size is the estimated index size of a table. </p></td></tr>-+<tr><td>data_free</td><td><a href="#int64">int64</a></td><td></td><td><p>The data_free is the estimated free data size of a table. </p></td></tr>-+<tr><td>create_options</td><td><a href="#string">string</a></td><td></td><td><p>The create_options is the create option of a table. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a table. </p></td></tr>-+<tr><td>foreign_keys</td><td><a href="#bytebase.store.ForeignKeyMetadata">ForeignKeyMetadata</a></td><td>repeated</td><td><p>The foreign_keys is the list of foreign keys in a table. </p></td></tr>-+<tr><td>partitions</td><td><a href="#bytebase.store.TablePartitionMetadata">TablePartitionMetadata</a></td><td>repeated</td><td><p>The partitions is the list of partitions in a table. </p></td></tr>-+<tr><td>check_constraints</td><td><a href="#bytebase.store.CheckConstraintMetadata">CheckConstraintMetadata</a></td><td>repeated</td><td><p>The check_constraints is the list of check constraints in a table. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sorting_keys</td><td><a href="#string">string</a></td>@@ -5604,35 +5604,35 @@ Examples: "SPATIAL" (MySQL/SQL Server), "GIST"/"SPGIST"<td><p>The sorting_keys is a tuple of column names or arbitrary expressions. ClickHouse specific field.Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by </p></td></tr>-+<tr><td>triggers</td><td><a href="#bytebase.store.TriggerMetadata">TriggerMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>rules</td><td><a href="#bytebase.store.RuleMetadata">RuleMetadata</a></td><td>repeated</td><td><p>The rules is the list of rules in a table (PostgreSQL specific). </p></td></tr>-+<tr><td>sharding_info</td><td><a href="#string">string</a></td><td></td><td><p>https://docs.pingcap.com/tidb/stable/information-schema-tables/ </p></td></tr>-+<tr><td>primary_key_type</td><td><a href="#string">string</a></td>@@ -5640,45 +5640,45 @@ Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family<td><p>https://docs.pingcap.com/tidb/stable/clustered-indexes/#clustered-indexesCLUSTERED or NONCLUSTERED. </p></td></tr>-+<tr><td>exclude_constraints</td><td><a href="#bytebase.store.ExcludeConstraintMetadata">ExcludeConstraintMetadata</a></td><td>repeated</td><td><p>The exclude_constraints is the list of EXCLUDE constraints in a table (PostgreSQL specific). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TablePartitionMetadata">TablePartitionMetadata</h3><p>TablePartitionMetadata is the metadata for table partitions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the table partition. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.TablePartitionMetadata.Type">TablePartitionMetadata.Type</a></td><td></td><td><p>The type of a table partition. </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td>@@ -5694,7 +5694,7 @@ PARTITION BY| RANGE{(expr) | COLUMNS(column_list)}| LIST{(expr) | COLUMNS(column_list)} }. </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td>@@ -5708,7 +5708,7 @@ partition's VALUES IN clause, which is a list of comma-separated integervalues.- For others, it's an empty string. </p></td></tr>-+<tr><td>use_default</td><td><a href="#string">string</a></td>@@ -5718,59 +5718,59 @@ the different value for different database engines. For MySQL, it's [INT]type, 0 means not use default partition, otherwise, it's equals to numberin syntax [SUB]PARTITION {number}. </p></td></tr>-+<tr><td>subpartitions</td><td><a href="#bytebase.store.TablePartitionMetadata">TablePartitionMetadata</a></td><td>repeated</td><td><p>The subpartitions is the list of subpartitions in a table partition. </p></td></tr>-+<tr><td>indexes</td><td><a href="#bytebase.store.IndexMetadata">IndexMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>check_constraints</td><td><a href="#bytebase.store.CheckConstraintMetadata">CheckConstraintMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>exclude_constraints</td><td><a href="#bytebase.store.ExcludeConstraintMetadata">ExcludeConstraintMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskMetadata">TaskMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the task. </p></td></tr>-+<tr><td>id</td><td><a href="#string">string</a></td>@@ -5778,80 +5778,80 @@ in syntax [SUB]PARTITION {number}. </p></td><td><p>The Snowflake-generated ID of the task.Example: 01ad32a0-1bb6-5e93-0000-000000000001. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the task. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment of the task. </p></td></tr>-+<tr><td>warehouse</td><td><a href="#string">string</a></td><td></td><td><p>The warehouse of the task. </p></td></tr>-+<tr><td>schedule</td><td><a href="#string">string</a></td><td></td><td><p>The schedule interval of the task. </p></td></tr>-+<tr><td>predecessors</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The predecessor tasks of the task. </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.store.TaskMetadata.State">TaskMetadata.State</a></td><td></td><td><p>The state of the task. </p></td></tr>-+<tr><td>condition</td><td><a href="#string">string</a></td><td></td><td><p>The condition of the task. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition of the task. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TessellationConfig">TessellationConfig</h3><p>TessellationConfig defines tessellation parameters for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>scheme</td><td><a href="#string">string</a></td>@@ -5859,190 +5859,190 @@ Example: 01ad32a0-1bb6-5e93-0000-000000000001. </p></td><td><p>Tessellation schemeExamples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID </p></td></tr>-+<tr><td>bounding_box</td><td><a href="#bytebase.store.BoundingBox">BoundingBox</a></td><td></td><td><p>Bounding box for GEOMETRY indexes (SQL Server) </p></td></tr>-+<tr><td>grid_levels</td><td><a href="#bytebase.store.GridLevel">GridLevel</a></td><td>repeated</td><td><p>Grid level configuration (SQL Server) </p></td></tr>-+<tr><td>cells_per_object</td><td><a href="#int32">int32</a></td><td></td><td><p>Cells per object (SQL Server) </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TriggerMetadata">TriggerMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the trigger. </p></td></tr>-+<tr><td>event</td><td><a href="#string">string</a></td><td></td><td><p>The event that triggers this action, such as INSERT, UPDATE, DELETE, or TRUNCATE. </p></td></tr>-+<tr><td>timing</td><td><a href="#string">string</a></td><td></td><td><p>The timing of when the trigger fires, such as BEFORE or AFTER. </p></td></tr>-+<tr><td>body</td><td><a href="#string">string</a></td><td></td><td><p>The body of the trigger. </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ViewMetadata">ViewMetadata</h3><p>ViewMetadata is the metadata for views.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the view. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a view. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a view. </p></td></tr>-+<tr><td>dependency_columns</td><td><a href="#bytebase.store.DependencyColumn">DependencyColumn</a></td><td>repeated</td><td><p>The list of dependency columns of a view. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.store.ColumnMetadata">ColumnMetadata</a></td><td>repeated</td><td><p>The ordered list of columns in the view. </p></td></tr>-+<tr><td>triggers</td><td><a href="#bytebase.store.TriggerMetadata">TriggerMetadata</a></td><td>repeated</td><td><p>The list of triggers in the view. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>rules</td><td><a href="#bytebase.store.RuleMetadata">RuleMetadata</a></td><td>repeated</td><td><p>The rules is the list of rules in a view (PostgreSQL specific). </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.ColumnMetadata.IdentityGeneration">ColumnMetadata.IdentityGeneration</h3><p></p><table class="enum-table">@@ -6050,28 +6050,28 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>IDENTITY_GENERATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ALWAYS</td><td>1</td><td><p></p></td></tr>-+<tr><td>BY_DEFAULT</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.GenerationMetadata.Type">GenerationMetadata.Type</h3><p></p><table class="enum-table">@@ -6079,28 +6079,28 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>TYPE_VIRTUAL</td><td>1</td><td><p></p></td></tr>-+<tr><td>TYPE_STORED</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.ObjectSchema.Type">ObjectSchema.Type</h3><p></p><table class="enum-table">@@ -6108,46 +6108,46 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>STRING</td><td>1</td><td><p></p></td></tr>-+<tr><td>NUMBER</td><td>2</td><td><p></p></td></tr>-+<tr><td>BOOLEAN</td><td>3</td><td><p></p></td></tr>-+<tr><td>OBJECT</td><td>4</td><td><p></p></td></tr>-+<tr><td>ARRAY</td><td>5</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.StreamMetadata.Mode">StreamMetadata.Mode</h3><p></p><table class="enum-table">@@ -6155,34 +6155,34 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>MODE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>MODE_DEFAULT</td><td>1</td><td><p></p></td></tr>-+<tr><td>MODE_APPEND_ONLY</td><td>2</td><td><p></p></td></tr>-+<tr><td>MODE_INSERT_ONLY</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.StreamMetadata.Type">StreamMetadata.Type</h3><p></p><table class="enum-table">@@ -6190,22 +6190,22 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>TYPE_DELTA</td><td>1</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.SyncStatus">SyncStatus</h3><p>SyncStatus is the status of the database sync operation.</p><table class="enum-table">@@ -6213,28 +6213,28 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SYNC_STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>SYNC_STATUS_OK</td><td>1</td><td><p></p></td></tr>-+<tr><td>SYNC_STATUS_FAILED</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.TablePartitionMetadata.Type">TablePartitionMetadata.Type</h3><p>The type is the type of a table partition. Some database engines may not</p><p>support all types. Only available for the following database engines now:</p><p>MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY,</p><p>LINEAR_KEY</p><p>(https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html) TiDB:</p><p>RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY PostgreSQL: RANGE,</p><p>LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)</p><table class="enum-table">@@ -6242,64 +6242,64 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>RANGE</td><td>1</td><td><p></p></td></tr>-+<tr><td>RANGE_COLUMNS</td><td>2</td><td><p></p></td></tr>-+<tr><td>LIST</td><td>3</td><td><p></p></td></tr>-+<tr><td>LIST_COLUMNS</td><td>4</td><td><p></p></td></tr>-+<tr><td>HASH</td><td>5</td><td><p></p></td></tr>-+<tr><td>LINEAR_HASH</td><td>6</td><td><p></p></td></tr>-+<tr><td>KEY</td><td>7</td><td><p></p></td></tr>-+<tr><td>LINEAR_KEY</td><td>8</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.TaskMetadata.State">TaskMetadata.State</h3><p></p><table class="enum-table">@@ -6307,88 +6307,88 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRID<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>STATE_STARTED</td><td>1</td><td><p></p></td></tr>-+<tr><td>STATE_SUSPENDED</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/export_archive.proto">store/export_archive.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ExportArchivePayload">ExportArchivePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>file_format</td><td><a href="#bytebase.store.ExportFormat">ExportFormat</a></td><td></td><td><p>The exported file format. e.g. JSON, CSV, SQL </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/group.proto">store/group.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.GroupMember">GroupMember</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>member</td><td><a href="#string">string</a></td>@@ -6397,54 +6397,54 @@ Examples: GEOMETRY_GRID, GEOGRAPHY_GRID, GEOMETRY_AUTO_GRID, GEOGRAPHY_AUTO_GRIDFormat: users/{email}. </p></td></tr>-+<tr><td>role</td><td><a href="#bytebase.store.GroupMember.Role">GroupMember.Role</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.GroupPayload">GroupPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>members</td><td><a href="#bytebase.store.GroupMember">GroupMember</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>source</td><td><a href="#string">string</a></td><td></td><td><p>The source indicates where the group comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.GroupMember.Role">GroupMember.Role</h3><p></p><table class="enum-table">@@ -6452,71 +6452,71 @@ Format: users/{email}. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ROLE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>OWNER</td><td>1</td><td><p></p></td></tr>-+<tr><td>MEMBER</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/idp.proto">store/idp.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.FieldMapping">FieldMapping</h3><p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identifier</td><td><a href="#string">string</a></td><td></td><td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td></tr>-+<tr><td>display_name</td><td><a href="#string">string</a></td><td></td><td><p>DisplayName is the field name of display name in 3rd-party idp user info. Optional. </p></td></tr>-+<tr><td>phone</td><td><a href="#string">string</a></td><td></td><td><p>Phone is the field name of primary phone in 3rd-party idp user info. Optional. </p></td></tr>-+<tr><td>groups</td><td><a href="#string">string</a></td>@@ -6524,83 +6524,83 @@ Format: users/{email}. </p></td><td><p>Groups is the field name of groups in 3rd-party idp user info. Optional.Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/ </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IdentityProviderConfig">IdentityProviderConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>oauth2_config</td><td><a href="#bytebase.store.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>oidc_config</td><td><a href="#bytebase.store.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ldap_config</td><td><a href="#bytebase.store.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IdentityProviderUserInfo">IdentityProviderUserInfo</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identifier</td><td><a href="#string">string</a></td><td></td><td><p>Identifier is the value of the unique identifier in 3rd-party idp user info. </p></td></tr>-+<tr><td>display_name</td><td><a href="#string">string</a></td><td></td><td><p>DisplayName is the value of display name in 3rd-party idp user info. </p></td></tr>-+<tr><td>phone</td><td><a href="#string">string</a></td><td></td><td><p>Phone is the value of primary phone in 3rd-party idp user info. </p></td></tr>-+<tr><td>groups</td><td><a href="#string">string</a></td>@@ -6608,31 +6608,31 @@ Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-gr<td><p>Groups is the value of groups in 3rd-party idp user info.Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/ </p></td></tr>-+<tr><td>has_groups</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3><p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>host</td><td><a href="#string">string</a></td>@@ -6640,7 +6640,7 @@ Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-gr<td><p>Host is the hostname or IP address of the LDAP server, e.g."ldap.example.com". </p></td></tr>-+<tr><td>port</td><td><a href="#int32">int32</a></td>@@ -6649,14 +6649,14 @@ Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-grdefault port of the corresponding security protocol will be used, i.e. 389for StartTLS and 636 for LDAPS. </p></td></tr>-+<tr><td>skip_tls_verify</td><td><a href="#bool">bool</a></td><td></td><td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td></tr>-+<tr><td>bind_dn</td><td><a href="#string">string</a></td>@@ -6664,28 +6664,28 @@ for StartTLS and 636 for LDAPS. </p></td><td><p>BindDN is the DN of the user to bind as a service account to performsearch requests. </p></td></tr>-+<tr><td>bind_password</td><td><a href="#string">string</a></td><td></td><td><p>BindPassword is the password of the user to bind as a service account. </p></td></tr>-+<tr><td>base_dn</td><td><a href="#string">string</a></td><td></td><td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td></tr>-+<tr><td>user_filter</td><td><a href="#string">string</a></td><td></td><td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td></tr>-+<tr><td>security_protocol</td><td><a href="#bytebase.store.LDAPIdentityProviderConfig.SecurityProtocol">LDAPIdentityProviderConfig.SecurityProtocol</a></td>@@ -6693,7 +6693,7 @@ search requests. </p></td><td><p>SecurityProtocol is the security protocol to be used for establishingconnections with the LDAP server. </p></td></tr>-+<tr><td>field_mapping</td><td><a href="#bytebase.store.FieldMapping">FieldMapping</a></td>@@ -6701,162 +6701,162 @@ connections with the LDAP server. </p></td><td><p>FieldMapping is the mapping of the user attributes returned by the LDAPserver. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3><p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>auth_url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>token_url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>user_info_url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>scopes</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>field_mapping</td><td><a href="#bytebase.store.FieldMapping">FieldMapping</a></td><td></td><td><p> </p></td></tr>-+<tr><td>skip_tls_verify</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>auth_style</td><td><a href="#bytebase.store.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3><p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issuer</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>scopes</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>field_mapping</td><td><a href="#bytebase.store.FieldMapping">FieldMapping</a></td><td></td><td><p> </p></td></tr>-+<tr><td>skip_tls_verify</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>auth_style</td><td><a href="#bytebase.store.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.IdentityProviderType">IdentityProviderType</h3><p></p><table class="enum-table">@@ -6864,34 +6864,34 @@ server. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>OAUTH2</td><td>1</td><td><p></p></td></tr>-+<tr><td>OIDC</td><td>2</td><td><p></p></td></tr>-+<tr><td>LDAP</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.LDAPIdentityProviderConfig.SecurityProtocol">LDAPIdentityProviderConfig.SecurityProtocol</h3><p></p><table class="enum-table">@@ -6899,28 +6899,28 @@ server. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SECURITY_PROTOCOL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>START_TLS</td><td>1</td><td><p>StartTLS is the security protocol that starts with an unencrypted connection and then upgrades to TLS.</p></td></tr>-+<tr><td>LDAPS</td><td>2</td><td><p>LDAPS is the security protocol that uses TLS from the beginning.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.OAuth2AuthStyle">OAuth2AuthStyle</h3><p></p><table class="enum-table">@@ -6928,178 +6928,178 @@ server. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>IN_PARAMS</td><td>1</td><td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST bodyas application/x-www-form-urlencoded parameters.</p></td></tr>-+<tr><td>IN_HEADER</td><td>2</td><td><p>IN_HEADER sends the client_id and client_secret using HTTP Basic Authorization.This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/instance.proto">store/instance.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.DataSource">DataSource</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.DataSourceType">DataSourceType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>username</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>use_ssl</td><td><a href="#bool">bool</a></td><td></td><td><p>Use SSL to connect to the data source. By default, we use the system's SSL configuration. </p></td></tr>-+<tr><td>ssl_ca</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_ssl_ca</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssl_cert</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_ssl_cert</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssl_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_ssl_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssl_ca_path</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_ssl_ca_path</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssl_cert_path</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_ssl_cert_path</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssl_key_path</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_ssl_key_path</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>verify_tls_certificate</td><td><a href="#bool">bool</a></td>@@ -7110,28 +7110,28 @@ Set to true for secure connections (recommended for production).Only set to false for development or when certificates cannot be properlyvalidated (e.g., self-signed certs, VPN environments). </p></td></tr>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>port</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>srv</td><td><a href="#bool">bool</a></td>@@ -7139,35 +7139,35 @@ validated (e.g., self-signed certs, VPN environments). </p></td><td><p>srv, authentication_database, and replica_set are used for MongoDB.srv is a boolean flag that indicates whether the host is a DNS SRV record. </p></td></tr>-+<tr><td>authentication_database</td><td><a href="#string">string</a></td><td></td><td><p>authentication_database is the database name to authenticate against, which stores the user credentials. </p></td></tr>-+<tr><td>replica_set</td><td><a href="#string">string</a></td><td></td><td><p>replica_set is used for MongoDB replica set. </p></td></tr>-+<tr><td>sid</td><td><a href="#string">string</a></td><td></td><td><p>sid and service_name are used for Oracle. </p></td></tr>-+<tr><td>service_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssh_host</td><td><a href="#string">string</a></td>@@ -7175,49 +7175,49 @@ srv is a boolean flag that indicates whether the host is a DNS SRV record. </p><<td><p>SSH relatedThe hostname of the SSH server agent. </p></td></tr>-+<tr><td>ssh_port</td><td><a href="#string">string</a></td><td></td><td><p>The port of the SSH server agent. It's 22 typically. </p></td></tr>-+<tr><td>ssh_user</td><td><a href="#string">string</a></td><td></td><td><p>The user to login the server. </p></td></tr>-+<tr><td>ssh_password</td><td><a href="#string">string</a></td><td></td><td><p>The password to login the server. If it's empty string, no password is required. </p></td></tr>-+<tr><td>obfuscated_ssh_password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssh_private_key</td><td><a href="#string">string</a></td><td></td><td><p>The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK"). </p></td></tr>-+<tr><td>obfuscated_ssh_private_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>authentication_private_key</td><td><a href="#string">string</a></td>@@ -7225,42 +7225,42 @@ The hostname of the SSH server agent. </p></td><td><p>PKCS#8 private key in PEM format. If it's empty string, no private key is required.Used for authentication when connecting to the data source. </p></td></tr>-+<tr><td>obfuscated_authentication_private_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>authentication_private_key_passphrase</td><td><a href="#string">string</a></td><td></td><td><p>Passphrase for the encrypted PKCS#8 private key. Only used when the private key is encrypted. </p></td></tr>-+<tr><td>obfuscated_authentication_private_key_passphrase</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>external_secret</td><td><a href="#bytebase.store.DataSourceExternalSecret">DataSourceExternalSecret</a></td><td></td><td><p> </p></td></tr>-+<tr><td>authentication_type</td><td><a href="#bytebase.store.DataSource.AuthenticationType">DataSource.AuthenticationType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>cloud_sql_ip_type</td><td><a href="#bytebase.store.DataSource.CloudSQLIPType">DataSource.CloudSQLIPType</a></td>@@ -7268,105 +7268,105 @@ Used for authentication when connecting to the data source. </p></td><td><p>cloud_sql_ip_type selects the Cloud SQL IP type for Google Cloud SQL IAM connections.CLOUD_SQL_IP_TYPE_UNSPECIFIED is treated as PUBLIC for backward compatibility. </p></td></tr>-+<tr><td>azure_credential</td><td><a href="#bytebase.store.DataSource.AzureCredential">DataSource.AzureCredential</a></td><td></td><td><p> </p></td></tr>-+<tr><td>aws_credential</td><td><a href="#bytebase.store.DataSource.AWSCredential">DataSource.AWSCredential</a></td><td></td><td><p> </p></td></tr>-+<tr><td>gcp_credential</td><td><a href="#bytebase.store.DataSource.GCPCredential">DataSource.GCPCredential</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sasl_config</td><td><a href="#bytebase.store.SASLConfig">SASLConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>additional_addresses</td><td><a href="#bytebase.store.DataSource.Address">DataSource.Address</a></td><td>repeated</td><td><p>additional_addresses is used for MongoDB replica set. </p></td></tr>-+<tr><td>direct_connection</td><td><a href="#bool">bool</a></td><td></td><td><p>direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. </p></td></tr>-+<tr><td>region</td><td><a href="#string">string</a></td><td></td><td><p>Region is the location of the database, used for AWS RDS. For example, us-east-1. </p></td></tr>-+<tr><td>warehouse_id</td><td><a href="#string">string</a></td><td></td><td><p>warehouse_id is used by Databricks. </p></td></tr>-+<tr><td>master_name</td><td><a href="#string">string</a></td><td></td><td><p>master_name is the master name used by connecting redis-master via redis sentinel. </p></td></tr>-+<tr><td>master_username</td><td><a href="#string">string</a></td><td></td><td><p>master_username and master_obfuscated_password are master credentials used by redis sentinel mode. </p></td></tr>-+<tr><td>master_password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_master_password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>redis_type</td><td><a href="#bytebase.store.DataSource.RedisType">DataSource.RedisType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>cluster</td><td><a href="#string">string</a></td><td></td><td><p>Cluster is the cluster name for the data source. Used by CockroachDB. </p></td></tr>-+<tr><td>extra_connection_parameters</td><td><a href="#bytebase.store.DataSource.ExtraConnectionParametersEntry">DataSource.ExtraConnectionParametersEntry</a></td>@@ -7374,66 +7374,66 @@ CLOUD_SQL_IP_TYPE_UNSPECIFIED is treated as PUBLIC for backward compatibility. <<td><p>Extra connection parameters for the database connection.For PostgreSQL HA, this can be used to set target_session_attrs=read-write </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSource.AWSCredential">DataSource.AWSCredential</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>access_key_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_access_key_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>secret_access_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_secret_access_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>session_token</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_session_token</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>role_arn</td><td><a href="#string">string</a></td>@@ -7441,7 +7441,7 @@ For PostgreSQL HA, this can be used to set target_session_attrs=read-write </p><<td><p>ARN of IAM role to assume for cross-account access.See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html </p></td></tr>-+<tr><td>external_id</td><td><a href="#string">string</a></td>@@ -7449,225 +7449,225 @@ See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html </p></td<td><p>Optional external ID for additional security when assuming role.See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSource.Address">DataSource.Address</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>port</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSource.AzureCredential">DataSource.AzureCredential</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>tenant_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSource.ExtraConnectionParametersEntry">DataSource.ExtraConnectionParametersEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSource.GCPCredential">DataSource.GCPCredential</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>obfuscated_content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSourceExternalSecret">DataSourceExternalSecret</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>secret_type</td><td><a href="#bytebase.store.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>auth_type</td><td><a href="#bytebase.store.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>app_role</td><td><a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</a></td><td></td><td><p> </p></td></tr>-+<tr><td>token</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>token_type</td><td><a href="#bytebase.store.DataSourceExternalSecret.TokenType">DataSourceExternalSecret.TokenType</a></td><td></td><td><p>How to interpret the token field when auth_type is TOKEN. </p></td></tr>-+<tr><td>engine_name</td><td><a href="#string">string</a></td><td></td><td><p>engine name is the name for secret engine. </p></td></tr>-+<tr><td>secret_name</td><td><a href="#string">string</a></td><td></td><td><p>the secret name in the engine to store the password. </p></td></tr>-+<tr><td>password_key_name</td><td><a href="#string">string</a></td><td></td><td><p>the key name for the password. </p></td></tr>-+<tr><td>skip_vault_tls_verification</td><td><a href="#bool">bool</a></td>@@ -7678,160 +7678,160 @@ skip_vault_tls_verification disables TLS certificate verification for Vault connDefault is false (verification enabled) for security.Only set to true for development or when certificates cannot be properly validated. </p></td></tr>-+<tr><td>vault_ssl_ca</td><td><a href="#string">string</a></td><td></td><td><p>CA certificate for Vault server verification. </p></td></tr>-+<tr><td>obfuscated_vault_ssl_ca</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>vault_ssl_cert</td><td><a href="#string">string</a></td><td></td><td><p>Client certificate for mutual TLS authentication with Vault. </p></td></tr>-+<tr><td>obfuscated_vault_ssl_cert</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>vault_ssl_key</td><td><a href="#string">string</a></td><td></td><td><p>Client private key for mutual TLS authentication with Vault. </p></td></tr>-+<tr><td>obfuscated_vault_ssl_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>secret_id</td><td><a href="#string">string</a></td><td></td><td><p>The secret ID for the role without TTL. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>mount_path</td><td><a href="#string">string</a></td><td></td><td><p>The path where the approle auth method is mounted. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Instance">Instance</h3><p>Instance is the proto for instances.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>engine</td><td><a href="#bytebase.store.Engine">Engine</a></td><td></td><td><p> </p></td></tr>-+<tr><td>activation</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>external_link</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>data_sources</td><td><a href="#bytebase.store.DataSource">DataSource</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>sync_interval</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The interval between automatic instance synchronizations. </p></td></tr>-+<tr><td>sync_databases</td><td><a href="#string">string</a></td>@@ -7839,7 +7839,7 @@ Only set to true for development or when certificates cannot be properly validat<td><p>Enable sync for the following databases.Default empty, means sync all schemas & databases. </p></td></tr>-+<tr><td>mysql_lower_case_table_names</td><td><a href="#int32">int32</a></td>@@ -7847,21 +7847,21 @@ Default empty, means sync all schemas & databases. </p></td><td><p>The lower_case_table_names config for MySQL instances.It is used to determine whether the table names and database names are case sensitive. </p></td></tr>-+<tr><td>last_sync_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>roles</td><td><a href="#bytebase.store.InstanceRole">InstanceRole</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.store.Instance.LabelsEntry">Instance.LabelsEntry</a></td>@@ -7869,76 +7869,76 @@ It is used to determine whether the table names and database names are case sens<td><p>Labels are key-value pairs that can be attached to the instance.For example, { "org_group": "infrastructure", "environment": "production" } </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Instance.LabelsEntry">Instance.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.InstanceRole">InstanceRole</h3><p>InstanceRole is the API message for instance role.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The role name. </p></td></tr>-+<tr><td>connection_limit</td><td><a href="#int32">int32</a></td><td>optional</td><td><p>The connection count limit for this role. </p></td></tr>-+<tr><td>valid_until</td><td><a href="#string">string</a></td><td>optional</td><td><p>The expiration for the role's password. </p></td></tr>-+<tr><td>attribute</td><td><a href="#string">string</a></td>@@ -7947,106 +7947,106 @@ For example, { "org_group": "infrastructure", "environment&#For PostgreSQL, it contains super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.htmlFor MySQL, it is the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.KerberosConfig">KerberosConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>primary</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>instance</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>realm</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>keytab</td><td><a href="#bytes">bytes</a></td><td></td><td><p> </p></td></tr>-+<tr><td>kdc_host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>kdc_port</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>kdc_transport_protocol</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SASLConfig">SASLConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>krb_config</td><td><a href="#bytebase.store.KerberosConfig">KerberosConfig</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.DataSource.AuthenticationType">DataSource.AuthenticationType</h3><p></p><table class="enum-table">@@ -8054,40 +8054,40 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTHENTICATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PASSWORD</td><td>1</td><td><p></p></td></tr>-+<tr><td>GOOGLE_CLOUD_SQL_IAM</td><td>2</td><td><p></p></td></tr>-+<tr><td>AWS_RDS_IAM</td><td>3</td><td><p></p></td></tr>-+<tr><td>AZURE_IAM</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSource.CloudSQLIPType">DataSource.CloudSQLIPType</h3><p>CloudSQLIPType selects which Cloud SQL IP to dial for Google Cloud SQL IAM connections.</p><table class="enum-table">@@ -8095,34 +8095,34 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>CLOUD_SQL_IP_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PUBLIC</td><td>1</td><td><p></p></td></tr>-+<tr><td>PRIVATE</td><td>2</td><td><p></p></td></tr>-+<tr><td>PSC</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSource.RedisType">DataSource.RedisType</h3><p></p><table class="enum-table">@@ -8130,34 +8130,34 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>REDIS_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>STANDALONE</td><td>1</td><td><p></p></td></tr>-+<tr><td>SENTINEL</td><td>2</td><td><p></p></td></tr>-+<tr><td>CLUSTER</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</h3><p></p><table class="enum-table">@@ -8165,28 +8165,28 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SECRET_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PLAIN</td><td>1</td><td><p></p></td></tr>-+<tr><td>ENVIRONMENT</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</h3><p></p><table class="enum-table">@@ -8194,28 +8194,28 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTH_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>TOKEN</td><td>1</td><td><p>ref: https://developer.hashicorp.com/vault/docs/auth/token</p></td></tr>-+<tr><td>VAULT_APP_ROLE</td><td>2</td><td><p>ref: https://developer.hashicorp.com/vault/docs/auth/approle</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</h3><p></p><table class="enum-table">@@ -8223,40 +8223,40 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SECRET_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>VAULT_KV_V2</td><td>1</td><td><p>ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2</p></td></tr>-+<tr><td>AWS_SECRETS_MANAGER</td><td>2</td><td><p>ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html</p></td></tr>-+<tr><td>GCP_SECRET_MANAGER</td><td>3</td><td><p>ref: https://cloud.google.com/secret-manager/docs</p></td></tr>-+<tr><td>AZURE_KEY_VAULT</td><td>4</td><td><p>ref: https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSourceExternalSecret.TokenType">DataSourceExternalSecret.TokenType</h3><p></p><table class="enum-table">@@ -8264,36 +8264,36 @@ For MySQL, it is the global privileges as GRANT statements, which means it only<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TOKEN_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PLAIN</td><td>1</td><td><p>The token field holds the literal token value.</p></td></tr>-+<tr><td>ENVIRONMENT</td><td>2</td><td><p>The token field holds the name of an environment variable on theBytebase server that holds the token value.</p></td></tr>-+<tr><td>FILE</td><td>3</td><td><p>The token field holds a path to a file on the Bytebase server thatholds the token value.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.DataSourceType">DataSourceType</h3><p></p><table class="enum-table">@@ -8301,102 +8301,102 @@ holds the token value.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>DATA_SOURCE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ADMIN</td><td>1</td><td><p></p></td></tr>-+<tr><td>READ_ONLY</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/issue.proto">store/issue.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Issue">Issue</h3><p>Issue is the metadata for issues that track database operations and access requests.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>approval</td><td><a href="#bytebase.store.IssuePayloadApproval">IssuePayloadApproval</a></td><td></td><td><p>Approval information for the issue workflow. </p></td></tr>-+<tr><td>role_grant</td><td><a href="#bytebase.store.RoleGrant">RoleGrant</a></td><td></td><td><p>Role grant details if this is a role grant issue. </p></td></tr>-+<tr><td>labels</td><td><a href="#string">string</a></td><td>repeated</td><td><p>Labels attached to categorize and filter the issue. </p></td></tr>-+<tr><td>risk_level</td><td><a href="#bytebase.store.RiskLevel">RiskLevel</a></td><td></td><td><p>Risk level for the issue, calculated from statement types. </p></td></tr>-+<tr><td>access_grant_id</td><td><a href="#string">string</a></td><td></td><td><p>The access grant id for ACCESS_GRANT type issue. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.RoleGrant">RoleGrant</h3><p>RoleGrant contains details for requesting a project role.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#string">string</a></td>@@ -8404,7 +8404,7 @@ holds the token value.</p></td><td><p>The role being requested for the user.Format: roles/EXPORTER. </p></td></tr>-+<tr><td>user</td><td><a href="#string">string</a></td>@@ -8412,30 +8412,30 @@ Format: roles/EXPORTER. </p></td><td><p>The user who will receive the role.Format: users/{email}. </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td><td></td><td><p>Optional conditional expression that limits when the grant applies. </p></td></tr>-+<tr><td>expiration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>Duration after which the grant automatically expires. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Issue.Status">Issue.Status</h3><p>Status represents the current state of the issue.</p><table class="enum-table">@@ -8443,34 +8443,34 @@ Format: users/{email}. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ISSUE_STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>OPEN</td><td>1</td><td><p>Issue is open and pending action.</p></td></tr>-+<tr><td>DONE</td><td>2</td><td><p>Issue has been completed successfully.</p></td></tr>-+<tr><td>CANCELED</td><td>3</td><td><p>Issue was canceled and will not be completed.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.Issue.Type">Issue.Type</h3><p>Type represents the category of issue.</p><table class="enum-table">@@ -8478,76 +8478,76 @@ Format: users/{email}. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ISSUE_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DATABASE_CHANGE</td><td>1</td><td><p>Issue for database schema or data changes.</p></td></tr>-+<tr><td>ROLE_GRANT</td><td>2</td><td><p>Role grant request.</p></td></tr>-+<tr><td>DATABASE_EXPORT</td><td>3</td><td><p>Issue for exporting data from databases.</p></td></tr>-+<tr><td>ACCESS_GRANT</td><td>4</td><td><p>Temporary access grant request.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/plan.proto">store/plan.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.PlanConfig">PlanConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>specs</td><td><a href="#bytebase.store.PlanConfig.Spec">PlanConfig.Spec</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>has_rollout</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the plan has started the rollout. </p></td></tr>-+<tr><td>approval_input_version</td><td><a href="#int64">int64</a></td>@@ -8555,24 +8555,24 @@ Format: users/{email}. </p></td><td><p>Internal monotonic version for plan inputs that affect approval generation.Starts at the proto default 0 for compatibility with existing plans. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig">PlanConfig.ChangeDatabaseConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -8581,14 +8581,14 @@ Starts at the proto default 0 for compatibility with existing plans. </p></td>Multi-database format: [instances/{instance-id}/databases/{database-name}].Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td><td></td><td><p>The SHA256 hash of the sheet content (hex-encoded). </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -8596,31 +8596,31 @@ Single database group format: [projects/{project}/databaseGroups/{databaseGroup}<td><p>The resource name of the release.Format: projects/{project}/releases/{release} </p></td></tr>-+<tr><td>enable_prior_backup</td><td><a href="#bool">bool</a></td><td></td><td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -8628,14 +8628,14 @@ Format: projects/{project}/releases/{release} </p></td><td><p>The resource name of the instance on which the database is created.Format: instances/{instance} </p></td></tr>-+<tr><td>database</td><td><a href="#string">string</a></td><td></td><td><p>The name of the database to create. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td>@@ -8643,35 +8643,35 @@ Format: instances/{instance} </p></td><td><p>table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.For example, in MongoDB, it only creates the database when we first store data in that database. </p></td></tr>-+<tr><td>character_set</td><td><a href="#string">string</a></td><td></td><td><p>character_set is the character set of the database. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>collation is the collation of the database. </p></td></tr>-+<tr><td>cluster</td><td><a href="#string">string</a></td><td></td><td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td></tr>-+<tr><td>environment</td><td><a href="#string">string</a></td>@@ -8679,24 +8679,24 @@ For example, in MongoDB, it only creates the database when we first store data i<td><p>The environment resource.Format: environments/prod where prod is the environment resource ID. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -8705,21 +8705,21 @@ Format: environments/prod where prod is the environment resource ID. </p></td>Multi-database format: [instances/{instance-id}/databases/{database-name}].Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td><td></td><td><p>The SHA256 hash of the sheet content (hex-encoded). </p></td></tr>-+<tr><td>format</td><td><a href="#bytebase.store.ExportFormat">ExportFormat</a></td><td></td><td><p>The format of the exported file. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td>@@ -8727,550 +8727,550 @@ Single database group format: [projects/{project}/databaseGroups/{databaseGroup}<td><p>The zip password provided by users.Leave it empty if there is no need to encrypt the zip file. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanConfig.Spec">PlanConfig.Spec</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr>-+<tr><td>create_database_config</td><td><a href="#bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>change_database_config</td><td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig">PlanConfig.ChangeDatabaseConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>export_data_config</td><td><a href="#bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/issue_comment.proto">store/issue_comment.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.IssueCommentPayload">IssueCommentPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>approval</td><td><a href="#bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</a></td><td></td><td><p> </p></td></tr>-+<tr><td>issue_update</td><td><a href="#bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</a></td><td></td><td><p> </p></td></tr>-+<tr><td>plan_update</td><td><a href="#bytebase.store.IssueCommentPayload.PlanUpdate">IssueCommentPayload.PlanUpdate</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>from_title</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>to_title</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>from_description</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>to_description</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>from_status</td><td><a href="#bytebase.store.Issue.Status">Issue.Status</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>to_status</td><td><a href="#bytebase.store.Issue.Status">Issue.Status</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>from_labels</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>to_labels</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IssueCommentPayload.PlanUpdate">IssueCommentPayload.PlanUpdate</h3><p>PlanUpdate carries before/after snapshots of plan.config.specs,</p><p>emitted once per PlanService.UpdatePlan call whose specs branch</p><p>produces a non-cosmetic diff. The renderer computes per-spec</p><p>add/remove/update from the snapshot pair.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>from_specs</td><td><a href="#bytebase.store.PlanConfig.Spec">PlanConfig.Spec</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>to_specs</td><td><a href="#bytebase.store.PlanConfig.Spec">PlanConfig.Spec</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/oauth2.proto">store/oauth2.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.OAuth2AuthorizationCodeConfig">OAuth2AuthorizationCodeConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>redirect_uri</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>code_challenge</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>code_challenge_method</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.OAuth2ClientConfig">OAuth2ClientConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>client_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>redirect_uris</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>grant_types</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>token_endpoint_auth_method</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/plan_check_run.proto">store/plan_check_run.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schemas</td><td><a href="#bytebase.store.ChangedResourceSchema">ChangedResourceSchema</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ChangedResourceSchema">ChangedResourceSchema</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>tables</td><td><a href="#bytebase.store.ChangedResourceTable">ChangedResourceTable</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ChangedResourceTable">ChangedResourceTable</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>table_rows</td><td><a href="#int64">int64</a></td><td></td><td><p>The estimated row count of the table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ChangedResources">ChangedResources</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>databases</td><td><a href="#bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanCheckRunResult">PlanCheckRunResult</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>results</td><td><a href="#bytebase.store.PlanCheckRunResult.Result">PlanCheckRunResult.Result</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>approval_input_version</td><td><a href="#int64">int64</a></td><td></td><td><p>The plan approval input version this check run was created for. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanCheckRunResult.Result">PlanCheckRunResult.Result</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.store.Advice.Status">Advice.Status</a></td><td></td><td><p> </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>code</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -9278,14 +9278,14 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><td><p>Target identification for consolidated resultsFormat: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.PlanCheckType">PlanCheckType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td>@@ -9293,99 +9293,99 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>sheet_sha256 is the content hash of the SQL sheet used to produce this result.Empty for checks that are not tied to a SQL sheet. </p></td></tr>-+<tr><td>sql_summary_report</td><td><a href="#bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport">PlanCheckRunResult.Result.SqlSummaryReport</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_review_report</td><td><a href="#bytebase.store.PlanCheckRunResult.Result.SqlReviewReport">PlanCheckRunResult.Result.SqlReviewReport</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanCheckRunResult.Result.SqlReviewReport">PlanCheckRunResult.Result.SqlReviewReport</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_position</td><td><a href="#bytebase.store.Position">Position</a></td><td></td><td><p>Position of the SQL statement. </p></td></tr>-+<tr><td>end_position</td><td><a href="#bytebase.store.Position">Position</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport">PlanCheckRunResult.Result.SqlSummaryReport</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>statement_types</td><td><a href="#bytebase.store.StatementType">StatementType</a></td><td>repeated</td><td><p>statement_types are the types of statements found in the SQL. </p></td></tr>-+<tr><td>affected_rows</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>changed_resources</td><td><a href="#bytebase.store.ChangedResources">ChangedResources</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.PlanCheckType">PlanCheckType</h3><p></p><table class="enum-table">@@ -9393,56 +9393,56 @@ Empty for checks that are not tied to a SQL sheet. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PLAN_CHECK_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PLAN_CHECK_TYPE_STATEMENT_ADVISE</td><td>1</td><td><p></p></td></tr>-+<tr><td>PLAN_CHECK_TYPE_STATEMENT_SUMMARY_REPORT</td><td>2</td><td><p></p></td></tr>-+<tr><td>PLAN_CHECK_TYPE_GHOST_SYNC</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/policy.proto">store/policy.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Binding">Binding</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#string">string</a></td>@@ -9450,7 +9450,7 @@ Empty for checks that are not tied to a SQL sheet. </p></td><td><p>The role that is assigned to the members.Format: roles/{role} </p></td></tr>-+<tr><td>members</td><td><a href="#string">string</a></td>@@ -9459,7 +9459,7 @@ Format: roles/{role} </p></td>For users, the member should be: users/{email}For groups, the member should be: groups/{email} </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -9468,24 +9468,24 @@ For groups, the member should be: groups/{email} </p></td>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. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.IamPolicy">IamPolicy</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>bindings</td><td><a href="#bytebase.store.Binding">Binding</a></td>@@ -9493,48 +9493,48 @@ If the condition evaluates to false, then this binding does not apply to the cur<td><p>Collection of binding.A binding binds one or more members or groups to a single role. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.MaskingExemptionPolicy">MaskingExemptionPolicy</h3><p>MaskingExemptionPolicy is the allowlist of users who can access sensitive data.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>exemptions</td><td><a href="#bytebase.store.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>members</td><td><a href="#string">string</a></td>@@ -9543,7 +9543,7 @@ A binding binds one or more members or groups to a single role. </p></td>Format: users/{email} or groups/{group email} </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -9565,93 +9565,93 @@ For example:resource.instance_id == "local" && resource.database_name == "employee" && request.time < timestamp("2025-04-30T11:10:39.000Z")resource.instance_id == "local" && resource.database_name == "employee" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.MaskingRulePolicy">MaskingRulePolicy</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>rules</td><td><a href="#bytebase.store.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>A unique identifier for a node in UUID format. </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td><td></td><td><p> </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Policy">Policy</h3><p></p>---+++<h3 id="bytebase.store.QueryDataPolicy">QueryDataPolicy</h3><p>QueryDataPolicy is the policy configuration for querying data in the SQL Editor.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>disable_export</td><td><a href="#bool">bool</a></td>@@ -9659,7 +9659,7 @@ resource.instance_id == "local" && resource.database_name == <td><p>workspace-level policyDisable exporting data in the SQL editor. </p></td></tr>-+<tr><td>maximum_result_rows</td><td><a href="#int32">int32</a></td>@@ -9668,7 +9668,7 @@ Disable exporting data in the SQL editor. </p></td>The maximum number of rows to return in the SQL editor.The default value <= 0, means no limit. </p></td></tr>-+<tr><td>disable_copy_data</td><td><a href="#bool">bool</a></td>@@ -9676,7 +9676,7 @@ The default value <= 0, means no limit. </p></td><td><p>workspace-level policyDisable copying data. </p></td></tr>-+<tr><td>allow_admin_data_source</td><td><a href="#bool">bool</a></td>@@ -9684,7 +9684,7 @@ Disable copying data. </p></td><td><p>workspace-level policyAllow using the admin data source to query in the SQL editor. </p></td></tr>-+<tr><td>disallow_ddl</td><td><a href="#bool">bool</a></td>@@ -9693,62 +9693,62 @@ Allow using the admin data source to query in the SQL editor. </p></td>Deprecate following fields.Disallow running DDL statements in the SQL editor. </p></td></tr>-+<tr><td>disallow_dml</td><td><a href="#bool">bool</a></td><td></td><td><p>Disallow running DML statements in the SQL editor. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.RolloutPolicy">RolloutPolicy</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>automatic</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>roles</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TagPolicy">TagPolicy</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>tags</td><td><a href="#bytebase.store.TagPolicy.TagsEntry">TagPolicy.TagsEntry</a></td>@@ -9756,47 +9756,47 @@ Disallow running DDL statements in the SQL editor. </p></td><td><p>tags is the key-value map for resources.For example, the environment resource can have the SQL review config tag, such as "bb.tag.review_config": "reviewConfigs/{review config resource id}". </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TagPolicy.TagsEntry">TagPolicy.TagsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Policy.Resource">Policy.Resource</h3><p></p><table class="enum-table">@@ -9804,34 +9804,34 @@ For example, the environment resource can have the SQL review config tag, such a<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>RESOURCE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>WORKSPACE</td><td>1</td><td><p></p></td></tr>-+<tr><td>ENVIRONMENT</td><td>2</td><td><p></p></td></tr>-+<tr><td>PROJECT</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.Policy.Type">Policy.Type</h3><p></p><table class="enum-table">@@ -9839,133 +9839,133 @@ For example, the environment resource can have the SQL review config tag, such a<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ROLLOUT</td><td>1</td><td><p></p></td></tr>-+<tr><td>MASKING_EXEMPTION</td><td>2</td><td><p></p></td></tr>-+<tr><td>QUERY_DATA</td><td>3</td><td><p></p></td></tr>-+<tr><td>MASKING_RULE</td><td>4</td><td><p></p></td></tr>-+<tr><td>IAM</td><td>5</td><td><p></p></td></tr>-+<tr><td>TAG</td><td>6</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/project.proto">store/project.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Label">Label</h3><p>Label represents a categorization tag that can be applied to issues.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p>The display text of the label. </p></td></tr>-+<tr><td>color</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p>The color for the label. </p></td></tr>-+<tr><td>group</td><td><a href="#string">string</a></td><td></td><td><p>Optional group name for organizing related labels. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Project">Project</h3><p>Project contains settings and configuration for a Bytebase project.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issue_labels</td><td><a href="#bytebase.store.Label">Label</a></td><td>repeated</td><td><p>Available labels that can be applied to issues in this project. </p></td></tr>-+<tr><td>force_issue_labels</td><td><a href="#bool">bool</a></td><td></td><td><p>Force issue labels to be used when creating an issue. </p></td></tr>-+<tr><td>enforce_issue_title</td><td><a href="#bool">bool</a></td><td></td><td><p>Enforce issue title created by user instead of generated by Bytebase. </p></td></tr>-+<tr><td>postgres_database_tenant_mode</td><td><a href="#bool">bool</a></td>@@ -9973,21 +9973,21 @@ For example, the environment resource can have the SQL review config tag, such a<td><p>Whether to enable the database tenant mode for PostgreSQL.If enabled, the issue will be created with the prepend "set role <db_owner>" statement. </p></td></tr>-+<tr><td>allow_self_approval</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to allow the issue creator to self-approve the issue. </p></td></tr>-+<tr><td>execution_retry_policy</td><td><a href="#bytebase.store.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</a></td><td></td><td><p>Configuration for automatic retry on task execution failures. </p></td></tr>-+<tr><td>ci_sampling_size</td><td><a href="#int32">int32</a></td>@@ -9995,14 +9995,14 @@ If enabled, the issue will be created with the prepend "set role <db_owne<td><p>The maximum number of databases to sample during CI data validation.If not specified, sampling is disabled, resulting in a full validation. </p></td></tr>-+<tr><td>parallel_tasks_per_rollout</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of parallel tasks to run during the rollout. </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.store.Project.LabelsEntry">Project.LabelsEntry</a></td>@@ -10010,7 +10010,7 @@ If not specified, sampling is disabled, resulting in a full validation. </p></td<td><p>Labels are key-value pairs that can be attached to the project.For example, { "environment": "production", "team": "backend" } </p></td></tr>-+<tr><td>enforce_sql_review</td><td><a href="#bool">bool</a></td>@@ -10018,163 +10018,163 @@ For example, { "environment": "production", "team": "<td><p>Whether to enforce SQL review checks to pass before issue creation.If enabled, issues cannot be created when SQL review finds errors. </p></td></tr>-+<tr><td>require_issue_approval</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether issue approval is required before proceeding with rollout. </p></td></tr>-+<tr><td>require_plan_check_no_error</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to block rollout when plan check finds errors. </p></td></tr>-+<tr><td>allow_request_role</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>data_classification_config_id</td><td><a href="#string">string</a></td><td></td><td><p>The data classification configuration ID for the project. </p></td></tr>-+<tr><td>allow_just_in_time_access</td><td><a href="#bool">bool</a></td><td></td><td><p>Once enabled, users can request and use the just-in-time access in the SQL Editor. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</h3><p>ExecutionRetryPolicy defines retry behavior for failed task executions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>maximum_retries</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of retry attempts for lock timeout errors. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Project.LabelsEntry">Project.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/project_webhook.proto">store/project_webhook.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Activity">Activity</h3><p>Activity types for webhook notifications.</p>---+++<h3 id="bytebase.store.ProjectWebhook">ProjectWebhook</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.WebhookType">WebhookType</a></td><td></td><td><p>Webhook type. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>Webhook title. </p></td></tr>-+<tr><td>url</td><td><a href="#string">string</a></td><td></td><td><p>Webhook URL. </p></td></tr>-+<tr><td>activities</td><td><a href="#bytebase.store.Activity.Type">Activity.Type</a></td><td>repeated</td><td><p>List of activities that trigger this webhook. </p></td></tr>-+<tr><td>direct_message</td><td><a href="#bool">bool</a></td>@@ -10183,16 +10183,16 @@ If enabled, issues cannot be created when SQL review finds errors. </p></td>to the persons and url will be ignored.IM integration setting should be set for this function to work. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Activity.Type">Activity.Type</h3><p>Activity type enumeration.</p><table class="enum-table">@@ -10200,494 +10200,494 @@ IM integration setting should be set for this function to work. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>ISSUE_CREATED</td><td>10</td><td><p>ISSUE_CREATED represents a new issue creation event.</p></td></tr>-+<tr><td>ISSUE_APPROVAL_REQUESTED</td><td>11</td><td><p>ISSUE_APPROVAL_REQUESTED represents an approval request event.</p></td></tr>-+<tr><td>ISSUE_SENT_BACK</td><td>12</td><td><p>ISSUE_SENT_BACK represents an issue being sent back by an approver.</p></td></tr>-+<tr><td>PIPELINE_FAILED</td><td>13</td><td><p>PIPELINE_FAILED represents a pipeline failure event.</p></td></tr>-+<tr><td>PIPELINE_COMPLETED</td><td>14</td><td><p>PIPELINE_COMPLETED represents a pipeline completion event.</p></td></tr>-+<tr><td>ISSUE_APPROVED</td><td>15</td><td><p>ISSUE_APPROVED represents an issue being fully approved.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/query_history.proto">store/query_history.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.QueryHistoryPayload">QueryHistoryPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/release.proto">store/release.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ReleasePayload">ReleasePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>files</td><td><a href="#bytebase.store.ReleasePayload.File">ReleasePayload.File</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>vcs_source</td><td><a href="#bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.SchemaChangeType">SchemaChangeType</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ReleasePayload.File">ReleasePayload.File</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>path</td><td><a href="#string">string</a></td><td></td><td><p>The path of the file, e.g., `2.2/V0001_create_table.sql`. </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td><td></td><td><p>The SHA256 hash of the sheet content (hex-encoded). </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>vcs_type</td><td><a href="#bytebase.store.VCSType">VCSType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/review_config.proto">store/review_config.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ReviewConfigPayload">ReviewConfigPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>sql_review_rules</td><td><a href="#bytebase.store.SQLReviewRule">SQLReviewRule</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule">SQLReviewRule</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.SQLReviewRule.Type">SQLReviewRule.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>level</td><td><a href="#bytebase.store.SQLReviewRule.Level">SQLReviewRule.Level</a></td><td></td><td><p> </p></td></tr>-+<tr><td>naming_payload</td><td><a href="#bytebase.store.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>number_payload</td><td><a href="#bytebase.store.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>string_array_payload</td><td><a href="#bytebase.store.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment_convention_payload</td><td><a href="#bytebase.store.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>string_payload</td><td><a href="#bytebase.store.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>naming_case_payload</td><td><a href="#bytebase.store.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>engine</td><td><a href="#bytebase.store.Engine">Engine</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>required</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>max_length</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>upper</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</h3><p>Payload message types for SQL review rules</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>max_length</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>format</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>number</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>list</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.SQLReviewRule.Level">SQLReviewRule.Level</h3><p>The severity level for SQL review rules.</p><table class="enum-table">@@ -10695,28 +10695,28 @@ IM integration setting should be set for this function to work. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>LEVEL_UNSPECIFIED</td><td>0</td><td><p>Unspecified level.</p></td></tr>-+<tr><td>ERROR</td><td>1</td><td><p>Rule violation is an error.</p></td></tr>-+<tr><td>WARNING</td><td>2</td><td><p>Rule violation is a warning.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.SQLReviewRule.Type">SQLReviewRule.Type</h3><p></p><table class="enum-table">@@ -10724,662 +10724,662 @@ IM integration setting should be set for this function to work. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ENGINE_MYSQL_USE_INNODB</td><td>1</td><td><p></p></td></tr>-+<tr><td>NAMING_FULLY_QUALIFIED</td><td>2</td><td><p></p></td></tr>-+<tr><td>NAMING_TABLE</td><td>3</td><td><p></p></td></tr>-+<tr><td>NAMING_COLUMN</td><td>4</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_PK</td><td>5</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_UK</td><td>6</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_FK</td><td>7</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_IDX</td><td>8</td><td><p></p></td></tr>-+<tr><td>NAMING_COLUMN_AUTO_INCREMENT</td><td>9</td><td><p></p></td></tr>-+<tr><td>NAMING_TABLE_NO_KEYWORD</td><td>10</td><td><p></p></td></tr>-+<tr><td>NAMING_IDENTIFIER_NO_KEYWORD</td><td>11</td><td><p></p></td></tr>-+<tr><td>NAMING_IDENTIFIER_CASE</td><td>12</td><td><p></p></td></tr>-+<tr><td>STATEMENT_SELECT_NO_SELECT_ALL</td><td>13</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_REQUIRE_SELECT</td><td>14</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_REQUIRE_UPDATE_DELETE</td><td>15</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE</td><td>16</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ON_DEL_CASCADE</td><td>17</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_RM_TBL_CASCADE</td><td>18</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_COMMIT</td><td>19</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_LIMIT</td><td>20</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ORDER_BY</td><td>21</td><td><p></p></td></tr>-+<tr><td>STATEMENT_MERGE_ALTER_TABLE</td><td>22</td><td><p></p></td></tr>-+<tr><td>STATEMENT_INSERT_ROW_LIMIT</td><td>23</td><td><p></p></td></tr>-+<tr><td>STATEMENT_INSERT_MUST_SPECIFY_COLUMN</td><td>24</td><td><p></p></td></tr>-+<tr><td>STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND</td><td>25</td><td><p></p></td></tr>-+<tr><td>STATEMENT_AFFECTED_ROW_LIMIT</td><td>26</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DML_DRY_RUN</td><td>27</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT</td><td>28</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADD_CHECK_NOT_VALID</td><td>29</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADD_FOREIGN_KEY_NOT_VALID</td><td>30</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ADD_NOT_NULL</td><td>31</td><td><p></p></td></tr>-+<tr><td>STATEMENT_CREATE_SPECIFY_SCHEMA</td><td>33</td><td><p></p></td></tr>-+<tr><td>STATEMENT_CHECK_SET_ROLE_VARIABLE</td><td>34</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_NO_EQUAL_NULL</td><td>37</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS</td><td>38</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT</td><td>40</td><td><p></p></td></tr>-+<tr><td>STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION</td><td>43</td><td><p></p></td></tr>-+<tr><td>STATEMENT_NON_TRANSACTIONAL</td><td>45</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADD_COLUMN_WITHOUT_POSITION</td><td>46</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_OFFLINE_DDL</td><td>47</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_CROSS_DB_QUERIES</td><td>48</td><td><p></p></td></tr>-+<tr><td>STATEMENT_MAX_EXECUTION_TIME</td><td>49</td><td><p></p></td></tr>-+<tr><td>STATEMENT_REQUIRE_ALGORITHM_OPTION</td><td>50</td><td><p></p></td></tr>-+<tr><td>STATEMENT_REQUIRE_LOCK_OPTION</td><td>51</td><td><p></p></td></tr>-+<tr><td>STATEMENT_OBJECT_OWNER_CHECK</td><td>52</td><td><p></p></td></tr>-+<tr><td>TABLE_REQUIRE_PK</td><td>53</td><td><p></p></td></tr>-+<tr><td>TABLE_NO_FOREIGN_KEY</td><td>54</td><td><p></p></td></tr>-+<tr><td>TABLE_DROP_NAMING_CONVENTION</td><td>55</td><td><p></p></td></tr>-+<tr><td>TABLE_COMMENT</td><td>56</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_PARTITION</td><td>57</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_TRIGGER</td><td>58</td><td><p></p></td></tr>-+<tr><td>TABLE_NO_DUPLICATE_INDEX</td><td>59</td><td><p></p></td></tr>-+<tr><td>TABLE_TEXT_FIELDS_TOTAL_LENGTH</td><td>60</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_SET_CHARSET</td><td>61</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_DDL</td><td>62</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_DML</td><td>63</td><td><p></p></td></tr>-+<tr><td>TABLE_LIMIT_SIZE</td><td>64</td><td><p></p></td></tr>-+<tr><td>TABLE_REQUIRE_CHARSET</td><td>65</td><td><p></p></td></tr>-+<tr><td>TABLE_REQUIRE_COLLATION</td><td>66</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRED</td><td>67</td><td><p></p></td></tr>-+<tr><td>COLUMN_NO_NULL</td><td>68</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_CHANGE_TYPE</td><td>69</td><td><p></p></td></tr>-+<tr><td>COLUMN_SET_DEFAULT_FOR_NOT_NULL</td><td>70</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_CHANGE</td><td>71</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_CHANGING_ORDER</td><td>72</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_DROP</td><td>73</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_DROP_IN_INDEX</td><td>74</td><td><p></p></td></tr>-+<tr><td>COLUMN_COMMENT</td><td>75</td><td><p></p></td></tr>-+<tr><td>COLUMN_AUTO_INCREMENT_MUST_INTEGER</td><td>76</td><td><p></p></td></tr>-+<tr><td>COLUMN_TYPE_DISALLOW_LIST</td><td>77</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_SET_CHARSET</td><td>78</td><td><p></p></td></tr>-+<tr><td>COLUMN_MAXIMUM_CHARACTER_LENGTH</td><td>79</td><td><p></p></td></tr>-+<tr><td>COLUMN_MAXIMUM_VARCHAR_LENGTH</td><td>80</td><td><p></p></td></tr>-+<tr><td>COLUMN_AUTO_INCREMENT_INITIAL_VALUE</td><td>81</td><td><p></p></td></tr>-+<tr><td>COLUMN_AUTO_INCREMENT_MUST_UNSIGNED</td><td>82</td><td><p></p></td></tr>-+<tr><td>COLUMN_CURRENT_TIME_COUNT_LIMIT</td><td>83</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRE_DEFAULT</td><td>84</td><td><p></p></td></tr>-+<tr><td>COLUMN_DEFAULT_DISALLOW_VOLATILE</td><td>85</td><td><p></p></td></tr>-+<tr><td>COLUMN_ADD_NOT_NULL_REQUIRE_DEFAULT</td><td>86</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRE_CHARSET</td><td>87</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRE_COLLATION</td><td>88</td><td><p></p></td></tr>-+<tr><td>SCHEMA_BACKWARD_COMPATIBILITY</td><td>89</td><td><p></p></td></tr>-+<tr><td>DATABASE_DROP_EMPTY_DATABASE</td><td>90</td><td><p></p></td></tr>-+<tr><td>INDEX_NO_DUPLICATE_COLUMN</td><td>91</td><td><p></p></td></tr>-+<tr><td>INDEX_KEY_NUMBER_LIMIT</td><td>92</td><td><p></p></td></tr>-+<tr><td>INDEX_PK_TYPE_LIMIT</td><td>93</td><td><p></p></td></tr>-+<tr><td>INDEX_TYPE_NO_BLOB</td><td>94</td><td><p></p></td></tr>-+<tr><td>INDEX_TOTAL_NUMBER_LIMIT</td><td>95</td><td><p></p></td></tr>-+<tr><td>INDEX_PRIMARY_KEY_TYPE_ALLOWLIST</td><td>96</td><td><p></p></td></tr>-+<tr><td>INDEX_CREATE_CONCURRENTLY</td><td>97</td><td><p></p></td></tr>-+<tr><td>INDEX_TYPE_ALLOW_LIST</td><td>98</td><td><p></p></td></tr>-+<tr><td>INDEX_NOT_REDUNDANT</td><td>99</td><td><p></p></td></tr>-+<tr><td>SYSTEM_CHARSET_ALLOWLIST</td><td>100</td><td><p></p></td></tr>-+<tr><td>SYSTEM_COLLATION_ALLOWLIST</td><td>101</td><td><p></p></td></tr>-+<tr><td>SYSTEM_COMMENT_LENGTH</td><td>102</td><td><p></p></td></tr>-+<tr><td>SYSTEM_PROCEDURE_DISALLOW_CREATE</td><td>103</td><td><p></p></td></tr>-+<tr><td>SYSTEM_EVENT_DISALLOW_CREATE</td><td>104</td><td><p></p></td></tr>-+<tr><td>SYSTEM_VIEW_DISALLOW_CREATE</td><td>105</td><td><p></p></td></tr>-+<tr><td>SYSTEM_FUNCTION_DISALLOW_CREATE</td><td>106</td><td><p></p></td></tr>-+<tr><td>SYSTEM_FUNCTION_DISALLOWED_LIST</td><td>107</td><td><p></p></td></tr>-+<tr><td>ADVICE_ONLINE_MIGRATION</td><td>108</td><td><p></p></td></tr>-+<tr><td>BUILTIN_PRIOR_BACKUP_CHECK</td><td>109</td><td><p></p></td></tr>-+<tr><td>BUILTIN_WALK_THROUGH_CHECK</td><td>110</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_TRUNCATE</td><td>111</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/revision.proto">store/revision.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.RevisionPayload">RevisionPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -11387,7 +11387,7 @@ IM integration setting should be set for this function to work. </p></td><td><p>Format: projects/{project}/releases/{release}Can be empty. </p></td></tr>-+<tr><td>file</td><td><a href="#string">string</a></td>@@ -11395,14 +11395,14 @@ Can be empty. </p></td><td><p>The file filepath.Can be empty. </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td><td></td><td><p>The SHA256 hash of the sheet content (hex-encoded). </p></td></tr>-+<tr><td>task_run</td><td><a href="#string">string</a></td>@@ -11411,225 +11411,225 @@ Can be empty. </p></td>Can be empty.Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.SchemaChangeType">SchemaChangeType</a></td><td></td><td><p>The type of the revision. </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/role.proto">store/role.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.RolePermissions">RolePermissions</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>permissions</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/server_config.proto">store/server_config.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.ServerConfigPayload">ServerConfigPayload</h3><p>ServerConfigPayload stores global server-level infrastructure configuration.</p><p>Only contains settings that are truly cross-workspace and cannot be derived</p><p>from any workspace context (e.g., JWT signing secret).</p><p>All other settings live in per-workspace WORKSPACE_PROFILE.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>auth_secret</td><td><a href="#string">string</a></td><td></td><td><p>Authentication secret for token signing (32-character random string). </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/setting.proto">store/setting.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.AISetting">AISetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>enabled</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>provider</td><td><a href="#bytebase.store.AISetting.Provider">AISetting.Provider</a></td><td></td><td><p> </p></td></tr>-+<tr><td>endpoint</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>api_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>model</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Algorithm">Algorithm</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>full_mask</td><td><a href="#bytebase.store.Algorithm.FullMask">Algorithm.FullMask</a></td><td></td><td><p> </p></td></tr>-+<tr><td>range_mask</td><td><a href="#bytebase.store.Algorithm.RangeMask">Algorithm.RangeMask</a></td><td></td><td><p> </p></td></tr>-+<tr><td>md5_mask</td><td><a href="#bytebase.store.Algorithm.MD5Mask">Algorithm.MD5Mask</a></td><td></td><td><p> </p></td></tr>-+<tr><td>inner_outer_mask</td><td><a href="#bytebase.store.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Algorithm.FullMask">Algorithm.FullMask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>substitution</td><td><a href="#string">string</a></td>@@ -11637,93 +11637,93 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/task<td><p>substitution is the string used to replace the original value, themax length of the string is 16 bytes. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>prefix_len</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>suffix_len</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>substitution</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Algorithm.MD5Mask">Algorithm.MD5Mask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>salt</td><td><a href="#string">string</a></td><td></td><td><p>salt is the salt value to generate a different hash that with the word alone. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Algorithm.RangeMask">Algorithm.RangeMask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>slices</td><td><a href="#bytebase.store.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</a></td>@@ -11731,24 +11731,24 @@ max length of the string is 16 bytes. </p></td><td><p>We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.But frontend can be started with a single rule easily. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start</td><td><a href="#int32">int32</a></td>@@ -11757,7 +11757,7 @@ But frontend can be started with a single rule easily. </p></td>Uses character indices (not byte offsets) for display-oriented masking.Example: For "你好world", character index 2 refers to 'w' (the 3rd character). </p></td></tr>-+<tr><td>end</td><td><a href="#int32">int32</a></td>@@ -11765,345 +11765,345 @@ Example: For "你好world", character index 2 refers to 'w' (the<td><p>end is the end character index (exclusive) of the original value.Uses character indices (not byte offsets) for display-oriented masking. </p></td></tr>-+<tr><td>substitution</td><td><a href="#string">string</a></td><td></td><td><p>OriginalValue[start:end) would be replaced with substitution. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting">AppIMSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>settings</td><td><a href="#bytebase.store.AppIMSetting.IMSetting">AppIMSetting.IMSetting</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.DingTalk">AppIMSetting.DingTalk</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>robot_code</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.Feishu">AppIMSetting.Feishu</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>app_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>app_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.IMSetting">AppIMSetting.IMSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.WebhookType">WebhookType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>slack</td><td><a href="#bytebase.store.AppIMSetting.Slack">AppIMSetting.Slack</a></td><td></td><td><p> </p></td></tr>-+<tr><td>feishu</td><td><a href="#bytebase.store.AppIMSetting.Feishu">AppIMSetting.Feishu</a></td><td></td><td><p> </p></td></tr>-+<tr><td>wecom</td><td><a href="#bytebase.store.AppIMSetting.Wecom">AppIMSetting.Wecom</a></td><td></td><td><p> </p></td></tr>-+<tr><td>lark</td><td><a href="#bytebase.store.AppIMSetting.Lark">AppIMSetting.Lark</a></td><td></td><td><p> </p></td></tr>-+<tr><td>dingtalk</td><td><a href="#bytebase.store.AppIMSetting.DingTalk">AppIMSetting.DingTalk</a></td><td></td><td><p> </p></td></tr>-+<tr><td>teams</td><td><a href="#bytebase.store.AppIMSetting.Teams">AppIMSetting.Teams</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.Lark">AppIMSetting.Lark</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>app_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>app_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.Slack">AppIMSetting.Slack</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>token</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.Teams">AppIMSetting.Teams</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>tenant_id</td><td><a href="#string">string</a></td><td></td><td><p>Azure AD tenant ID (Directory ID). </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p>Azure AD application (client) ID. </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p>Azure AD client secret. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.AppIMSetting.Wecom">AppIMSetting.Wecom</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>corp_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>agent_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataClassificationSetting">DataClassificationSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>configs</td><td><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td>@@ -12111,21 +12111,21 @@ Uses character indices (not byte offsets) for display-oriented masking. </p></td<td><p>id is the uuid for classification. Each project can chose oneclassification config. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>levels</td><td><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</a></td><td>repeated</td><td><p>levels is user defined level list for classification. </p></td></tr>-+<tr><td>classification</td><td><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></td>@@ -12133,259 +12133,259 @@ classification config. </p></td><td><p>classification is the id - DataClassification map.The id should in [0-9]+-[0-9]+-[0-9]+ format. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>level</td><td><a href="#int32">int32</a></td><td>optional</td><td><p>The sensitivity level. Maps to Level.level. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>level</td><td><a href="#int32">int32</a></td><td></td><td><p>The numeric level for ordering. Higher = more sensitive. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EmailSetting">EmailSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>from</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>from_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.store.EmailSetting.Type">EmailSetting.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>smtp</td><td><a href="#bytebase.store.EmailSetting.SMTPConfig">EmailSetting.SMTPConfig</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EmailSetting.SMTPConfig">EmailSetting.SMTPConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>port</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>username</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>encryption</td><td><a href="#bytebase.store.EmailSetting.SMTPConfig.Encryption">EmailSetting.SMTPConfig.Encryption</a></td><td></td><td><p> </p></td></tr>-+<tr><td>authentication</td><td><a href="#bytebase.store.EmailSetting.SMTPConfig.Authentication">EmailSetting.SMTPConfig.Authentication</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EnvironmentSetting">EnvironmentSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>environments</td><td><a href="#bytebase.store.EnvironmentSetting.Environment">EnvironmentSetting.Environment</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EnvironmentSetting.Environment">EnvironmentSetting.Environment</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>id</td><td><a href="#string">string</a></td>@@ -12394,398 +12394,398 @@ The id should in [0-9]+-[0-9]+-[0-9]+ format. </p></td>This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display name of the environment. </p></td></tr>-+<tr><td>tags</td><td><a href="#bytebase.store.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>color</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLEditorThemeSetting">SQLEditorThemeSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>monaco_base</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>tokens</td><td><a href="#bytebase.store.SQLEditorThemeSetting.TokensEntry">SQLEditorThemeSetting.TokensEntry</a></td><td>repeated</td><td><p>CSS token colors. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SQLEditorThemeSetting.TokensEntry">SQLEditorThemeSetting.TokensEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SemanticTypeSetting">SemanticTypeSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>types</td><td><a href="#bytebase.store.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>id is the uuid for semantic type. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>the title of the semantic type, it should not be empty. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>the description of the semantic type, it can be empty. </p></td></tr>-+<tr><td>algorithm</td><td><a href="#bytebase.store.Algorithm">Algorithm</a></td><td></td><td><p> </p></td></tr>-+<tr><td>icon</td><td><a href="#string">string</a></td><td></td><td><p>icon is the icon for semantic type, it can be emoji or base64 encoded image. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SystemSetting">SystemSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>license</td><td><a href="#string">string</a></td><td></td><td><p>Enterprise license JWT token. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.WorkspaceApprovalSetting">WorkspaceApprovalSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>rules</td><td><a href="#bytebase.store.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>template</td><td><a href="#bytebase.store.ApprovalTemplate">ApprovalTemplate</a></td><td></td><td><p> </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td><td></td><td><p> </p></td></tr>-+<tr><td>source</td><td><a href="#bytebase.store.WorkspaceApprovalSetting.Rule.Source">WorkspaceApprovalSetting.Rule.Source</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.WorkspaceProfileSetting">WorkspaceProfileSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>external_url</td><td><a href="#string">string</a></td><td></td><td><p>The external URL is used for sso authentication callback. </p></td></tr>-+<tr><td>disallow_signup</td><td><a href="#bool">bool</a></td><td></td><td><p>Disallow self-service signup, users can only be invited by the owner. </p></td></tr>-+<tr><td>require_2fa</td><td><a href="#bool">bool</a></td><td></td><td><p>Require 2FA for all users. </p></td></tr>-+<tr><td>refresh_token_duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The duration for refresh token. Default is 7 days. </p></td></tr>-+<tr><td>announcement</td><td><a href="#bytebase.store.WorkspaceProfileSetting.Announcement">WorkspaceProfileSetting.Announcement</a></td><td></td><td><p>The setting of custom announcement </p></td></tr>-+<tr><td>maximum_request_expiration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The max expiration duration for role grants and data access requests. </p></td>+ <td><p>The max expiration duration for data access requests. </p></td></tr>-+<tr><td>domains</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The workspace domain, e.g., bytebase.com. </p></td></tr>-+<tr><td>enforce_identity_domain</td><td><a href="#bool">bool</a></td><td></td><td><p>Only user and group from the domains can be created and login. </p></td></tr>-+<tr><td>database_change_mode</td><td><a href="#bytebase.store.WorkspaceProfileSetting.DatabaseChangeMode">WorkspaceProfileSetting.DatabaseChangeMode</a></td><td></td><td><p>The workspace database change mode. </p></td></tr>-+<tr><td>disallow_password_signin</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to disallow password signin. (Except workspace admins) </p></td></tr>-+<tr><td>enable_metric_collection</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to enable metric collection for the workspace. </p></td></tr>-+<tr><td>inactive_session_timeout</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The session expiration time if not activity detected for the user. Value <= 0 means no limit. </p></td></tr>-+<tr><td>enable_audit_log_stdout</td><td><a href="#bool">bool</a></td>@@ -12793,7 +12793,7 @@ are /[a-z][0-9]-/. </p></td><td><p>Whether to enable audit logging to stdout in structured JSON format.Requires TEAM or ENTERPRISE license. </p></td></tr>-+<tr><td>watermark</td><td><a href="#bool">bool</a></td>@@ -12801,35 +12801,35 @@ Requires TEAM or ENTERPRISE license. </p></td><td><p>Whether to display watermark on pages.Requires ENTERPRISE license. </p></td></tr>-+<tr><td>directory_sync_token</td><td><a href="#string">string</a></td><td></td><td><p>The token for directory sync authentication. </p></td></tr>-+<tr><td>password_restriction</td><td><a href="#bytebase.store.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</a></td><td></td><td><p>Password restriction settings. </p></td></tr>-+<tr><td>access_token_duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The duration for access token. Default is 1 hour. </p></td></tr>-+<tr><td>enable_debug</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether debug mode is enabled. </p></td></tr>-+<tr><td>sql_result_size</td><td><a href="#int64">int64</a></td>@@ -12837,14 +12837,14 @@ Requires ENTERPRISE license. </p></td><td><p>The maximum result size limit in bytes for query and export, works for the SQL Editor and Export Center.The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. </p></td></tr>-+<tr><td>query_timeout</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The query timeout duration for query and export, works for the SQL Editor and Export Center. </p></td></tr>-+<tr><td>allow_email_code_signin</td><td><a href="#bool">bool</a></td>@@ -12852,7 +12852,7 @@ The default value is 100MB, we will use the default value if the setting not exi<td><p>Allow signin/signup using email + a 6-digit one-time verification code.Requires the EMAIL setting to be configured on the workspace. </p></td></tr>-+<tr><td>sql_editor_theme_id</td><td><a href="#string">string</a></td>@@ -12860,7 +12860,7 @@ Requires the EMAIL setting to be configured on the workspace. </p></td><td><p>Enforced SQL Editor theme id: OPAQUE — a frontend-resolved built-in preset idOR a custom theme's uuid. Empty ⇒ default light. </p></td></tr>-+<tr><td>sql_editor_custom_theme</td><td><a href="#bytebase.store.SQLEditorThemeSetting">SQLEditorThemeSetting</a></td>@@ -12868,38 +12868,46 @@ OR a custom theme's uuid. Empty ⇒ default light. </p></td><td><p>The enforced CUSTOM theme's full definition — present ONLY whensql_editor_theme_id is a custom uuid. tokens is always complete. </p></td></tr>-++ <tr>+ <td>maximum_role_expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p>The max expiration duration for request role.+Deprecated: use just-in-time access request flows instead. </p></td>+ </tr>+</tbody></table>---+++<h3 id="bytebase.store.WorkspaceProfileSetting.Announcement">WorkspaceProfileSetting.Announcement</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>text</td><td><a href="#string">string</a></td><td></td><td><p>The text of the announcement. </p></td></tr>-+<tr><td>link</td><td><a href="#string">string</a></td><td></td><td><p>The optional link, user can follow the link to check extra details </p></td></tr>-+<tr><td>theme</td><td><a href="#bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme">WorkspaceProfileSetting.Announcement.AnnouncementTheme</a></td>@@ -12907,113 +12915,113 @@ sql_editor_theme_id is a custom uuid. tokens is always complete. </p></td><td><p>Banner colors. Built-in presets (info/warning/critical) are afrontend-only concept that seeds these colors; the store only holds them. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme">WorkspaceProfileSetting.Announcement.AnnouncementTheme</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>background</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+<tr><td>text</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>min_length</td><td><a href="#int32">int32</a></td><td></td><td><p>min_length is the minimum length for password, should be no less than 8. </p></td></tr>-+<tr><td>require_number</td><td><a href="#bool">bool</a></td><td></td><td><p>require_number requires the password must contain at least one number. </p></td></tr>-+<tr><td>require_letter</td><td><a href="#bool">bool</a></td><td></td><td><p>require_letter requires the password must contain at least one letter, regardless of upper case or lower case </p></td></tr>-+<tr><td>require_uppercase_letter</td><td><a href="#bool">bool</a></td><td></td><td><p>require_uppercase_letter requires the password must contain at least one upper case letter. </p></td></tr>-+<tr><td>require_special_character</td><td><a href="#bool">bool</a></td><td></td><td><p>require_special_character requires the password must contain at least one special character. </p></td></tr>-+<tr><td>require_reset_password_for_first_login</td><td><a href="#bool">bool</a></td><td></td><td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td></tr>-+<tr><td>password_rotation</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>password_rotation requires users to reset their password after the duration. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.AISetting.Provider">AISetting.Provider</h3><p></p><table class="enum-table">@@ -13021,40 +13029,40 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PROVIDER_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>OPEN_AI</td><td>1</td><td><p></p></td></tr>-+<tr><td>CLAUDE</td><td>2</td><td><p></p></td></tr>-+<tr><td>GEMINI</td><td>3</td><td><p></p></td></tr>-+<tr><td>AZURE_OPENAI</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</h3><p></p><table class="enum-table">@@ -13062,28 +13070,28 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>MASK_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>INNER</td><td>1</td><td><p></p></td></tr>-+<tr><td>OUTER</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.EmailSetting.SMTPConfig.Authentication">EmailSetting.SMTPConfig.Authentication</h3><p></p><table class="enum-table">@@ -13091,40 +13099,40 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTHENTICATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>AUTHENTICATION_NONE</td><td>1</td><td><p></p></td></tr>-+<tr><td>PLAIN</td><td>2</td><td><p></p></td></tr>-+<tr><td>LOGIN</td><td>3</td><td><p></p></td></tr>-+<tr><td>CRAM_MD5</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.EmailSetting.SMTPConfig.Encryption">EmailSetting.SMTPConfig.Encryption</h3><p></p><table class="enum-table">@@ -13132,34 +13140,34 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ENCRYPTION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ENCRYPTION_NONE</td><td>1</td><td><p></p></td></tr>-+<tr><td>STARTTLS</td><td>2</td><td><p></p></td></tr>-+<tr><td>SSL_TLS</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.EmailSetting.Type">EmailSetting.Type</h3><p></p><table class="enum-table">@@ -13167,22 +13175,22 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>SMTP</td><td>1</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.SettingName">SettingName</h3><p></p><table class="enum-table">@@ -13190,70 +13198,70 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SETTING_NAME_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>SYSTEM</td><td>1</td><td><p></p></td></tr>-+<tr><td>WORKSPACE_PROFILE</td><td>2</td><td><p></p></td></tr>-+<tr><td>WORKSPACE_APPROVAL</td><td>3</td><td><p></p></td></tr>-+<tr><td>APP_IM</td><td>4</td><td><p></p></td></tr>-+<tr><td>AI</td><td>5</td><td><p></p></td></tr>-+<tr><td>DATA_CLASSIFICATION</td><td>6</td><td><p></p></td></tr>-+<tr><td>SEMANTIC_TYPES</td><td>7</td><td><p></p></td></tr>-+<tr><td>ENVIRONMENT</td><td>8</td><td><p></p></td></tr>-+<tr><td>EMAIL</td><td>9</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.WorkspaceApprovalSetting.Rule.Source">WorkspaceApprovalSetting.Rule.Source</h3><p></p><table class="enum-table">@@ -13261,46 +13269,46 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SOURCE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CHANGE_DATABASE</td><td>1</td><td><p></p></td></tr>-+<tr><td>CREATE_DATABASE</td><td>2</td><td><p></p></td></tr>-+<tr><td>EXPORT_DATA</td><td>3</td><td><p></p></td></tr>-+<tr><td>REQUEST_ROLE</td><td>4</td><td><p></p></td></tr>-+<tr><td>REQUEST_ACCESS</td><td>5</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.WorkspaceProfileSetting.DatabaseChangeMode">WorkspaceProfileSetting.DatabaseChangeMode</h3><p></p><table class="enum-table">@@ -13308,88 +13316,88 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>DATABASE_CHANGE_MODE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PIPELINE</td><td>1</td><td><p>A more advanced database change process, including custom approval workflows and other advanced features.Default to this mode.</p></td></tr>-+<tr><td>EDITOR</td><td>2</td><td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/signal.proto">store/signal.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Signal">Signal</h3><p>Signal represents a notification payload sent via PostgreSQL NOTIFY for HA coordination.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.Signal.Type">Signal.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>uid</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>project</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>approval_input_version</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Signal.Type">Signal.Type</h3><p>Type represents the type of signal.</p><table class="enum-table">@@ -13397,122 +13405,122 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CANCEL_PLAN_CHECK_RUN</td><td>1</td><td><p></p></td></tr>-+<tr><td>CANCEL_TASK_RUN</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/subscription.proto">store/subscription.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.SubscriptionPayload">SubscriptionPayload</h3><p>SubscriptionPayload stores all subscription data for a workspace.</p><p>Serialized as JSONB in the subscription table's payload column.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.store.SubscriptionPayload.Status">SubscriptionPayload.Status</a></td><td></td><td><p>Lifecycle </p></td></tr>-+<tr><td>started_at</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>expires_at</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>plan</td><td><a href="#bytebase.store.SubscriptionPayload.Plan">SubscriptionPayload.Plan</a></td><td></td><td><p>Billing details </p></td></tr>-+<tr><td>interval</td><td><a href="#bytebase.store.SubscriptionPayload.BillingInterval">SubscriptionPayload.BillingInterval</a></td><td></td><td><p> </p></td></tr>-+<tr><td>seat</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>instance_count</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>stripe_subscription_id</td><td><a href="#string">string</a></td><td></td><td><p>Stripe integration </p></td></tr>-+<tr><td>stripe_customer_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.SubscriptionPayload.BillingInterval">SubscriptionPayload.BillingInterval</h3><p></p><table class="enum-table">@@ -13520,28 +13528,28 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>BILLING_INTERVAL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>MONTH</td><td>1</td><td><p></p></td></tr>-+<tr><td>YEAR</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.SubscriptionPayload.Plan">SubscriptionPayload.Plan</h3><p></p><table class="enum-table">@@ -13549,28 +13557,28 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PLAN_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>TEAM</td><td>1</td><td><p></p></td></tr>-+<tr><td>ENTERPRISE</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.SubscriptionPayload.Status">SubscriptionPayload.Status</h3><p></p><table class="enum-table">@@ -13578,77 +13586,77 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ACTIVE</td><td>1</td><td><p></p></td></tr>-+<tr><td>PAUSED</td><td>2</td><td><p></p></td></tr>-+<tr><td>CANCELED</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/task.proto">store/task.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.Task">Task</h3><p>Task is the metadata for database operation tasks.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>skipped</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the task was skipped during execution. </p></td></tr>-+<tr><td>skipped_reason</td><td><a href="#string">string</a></td><td></td><td><p>Reason why the task was skipped. </p></td></tr>-+<tr><td>spec_id</td><td><a href="#string">string</a></td><td></td><td><p>UUID that identifies the spec this task implements. </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td>@@ -13656,7 +13664,7 @@ Default to this mode.</p></td><td><p>The SHA256 hash of a single sheet content (hex-encoded).Used for non-release tasks. </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -13664,23 +13672,23 @@ Used for non-release tasks. </p></td><td><p>The release resource name: projects/{project}/releases/{release}.Used for GitOps release-based tasks that execute multiple files. </p></td></tr>-+<tr><td>enable_prior_backup</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to create an automatic backup before applying changes. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.Task.Type">Task.Type</h3><p>Type represents the type of database operation to perform.</p><table class="enum-table">@@ -13688,19 +13696,19 @@ Used for GitOps release-based tasks that execute multiple files. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TASK_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DATABASE_CREATE</td><td>1</td><td><p>Create a new database.</p></td></tr>-+<tr><td>DATABASE_MIGRATE</td><td>2</td>@@ -13708,138 +13716,138 @@ Used for GitOps release-based tasks that execute multiple files. </p></td>Execution strategy is determined by release type (VERSIONED/DECLARATIVE)or sheet content for non-release tasks.</p></td></tr>-+<tr><td>DATABASE_EXPORT</td><td>3</td><td><p>Export data from a database.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/task_run.proto">store/task_run.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.SchedulerInfo">SchedulerInfo</h3><p>SchedulerInfo contains information about task scheduling and execution delays.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>report_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>Timestamp when the scheduler reported this information. </p></td></tr>-+<tr><td>waiting_cause</td><td><a href="#bytebase.store.SchedulerInfo.WaitingCause">SchedulerInfo.WaitingCause</a></td><td></td><td><p>Reason why the task run is currently waiting. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.SchedulerInfo.WaitingCause">SchedulerInfo.WaitingCause</h3><p>WaitingCause indicates why a task run is waiting to execute.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parallel_tasks_limit</td><td><a href="#bool">bool</a></td><td></td><td><p>Task is waiting due to parallel execution limit. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRun">TaskRun</h3><p>TaskRun represents an execution attempt of a task.</p>---+++<h3 id="bytebase.store.TaskRunPayload">TaskRunPayload</h3><p>TaskRunPayload contains extensible runtime data for a task run.</p><p>Stored in the payload JSONB column. New fields can be added here</p><p>without database schema changes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>scheduler_info</td><td><a href="#bytebase.store.SchedulerInfo">SchedulerInfo</a></td><td></td><td><p>Scheduler information about why a task is waiting. </p></td></tr>-+<tr><td>skip_prior_backup</td><td><a href="#bool">bool</a></td><td></td><td><p>If true, prior backup is skipped for this task run. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunResult">TaskRunResult</h3><p>TaskRunResult contains the outcome and metadata from a task run execution.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>detail</td><td><a href="#string">string</a></td><td></td><td><p>Error message for failed task runs. Empty for successful or canceled runs. </p></td></tr>-+<tr><td>has_prior_backup</td><td><a href="#bool">bool</a></td>@@ -13848,23 +13856,23 @@ or sheet content for non-release tasks.</p></td>When true, the task run can be rolled back using the backup tables.Backup details are available in the task run logs (PRIOR_BACKUP log entries). </p></td></tr>-+<tr><td>export_archive_id</td><td><a href="#string">string</a></td><td></td><td><p>Resource ID of the export archive generated for export tasks. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.TaskRun.Status">TaskRun.Status</h3><p>Status represents the current execution state of a task run.</p><table class="enum-table">@@ -13872,155 +13880,155 @@ Backup details are available in the task run logs (PRIOR_BACKUP log entries). </<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p>Task run is queued and waiting to execute.</p></td></tr>-+<tr><td>RUNNING</td><td>2</td><td><p>Task run is currently executing.</p></td></tr>-+<tr><td>DONE</td><td>3</td><td><p>Task run completed successfully.</p></td></tr>-+<tr><td>FAILED</td><td>4</td><td><p>Task run encountered an error and failed.</p></td></tr>-+<tr><td>CANCELED</td><td>5</td><td><p>Task run was canceled by user or system.</p></td></tr>-+<tr><td>NOT_STARTED</td><td>6</td><td><p>Task run has not started yet.</p></td></tr>-+<tr><td>SKIPPED</td><td>7</td><td><p>Task run was skipped and will not execute.</p></td></tr>-+<tr><td>AVAILABLE</td><td>8</td><td><p>Task run is ready for immediate execution.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/task_run_log.proto">store/task_run_log.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.PriorBackupDetail">PriorBackupDetail</h3><p>PriorBackupDetail contains information about automatic backups created before migration.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>items</td><td><a href="#bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</a></td><td>repeated</td><td><p>List of backup operations performed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</h3><p>Item represents a single backup operation for a table.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>source_table</td><td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td><td></td><td><p>The original table that was backed up. </p></td></tr>-+<tr><td>target_table</td><td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td><td></td><td><p>The backup table where data was copied. </p></td></tr>-+<tr><td>start_position</td><td><a href="#bytebase.store.Position">Position</a></td><td></td><td><p>Starting position in SQL for this backup operation. </p></td></tr>-+<tr><td>end_position</td><td><a href="#bytebase.store.Position">Position</a></td><td></td><td><p>Ending position in SQL for this backup operation. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</h3><p>Table identifies a database table.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>database</td><td><a href="#string">string</a></td>@@ -14028,174 +14036,174 @@ Backup details are available in the task run logs (PRIOR_BACKUP log entries). </<td><p>The database containing the table.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>Schema name (for databases that support schemas). </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td><td></td><td><p>Table name. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog">TaskRunLog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.TaskRunLog.Type">TaskRunLog.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>replica_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schema_dump_start</td><td><a href="#bytebase.store.TaskRunLog.SchemaDumpStart">TaskRunLog.SchemaDumpStart</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schema_dump_end</td><td><a href="#bytebase.store.TaskRunLog.SchemaDumpEnd">TaskRunLog.SchemaDumpEnd</a></td><td></td><td><p> </p></td></tr>-+<tr><td>command_execute</td><td><a href="#bytebase.store.TaskRunLog.CommandExecute">TaskRunLog.CommandExecute</a></td><td></td><td><p> </p></td></tr>-+<tr><td>command_response</td><td><a href="#bytebase.store.TaskRunLog.CommandResponse">TaskRunLog.CommandResponse</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_sync_start</td><td><a href="#bytebase.store.TaskRunLog.DatabaseSyncStart">TaskRunLog.DatabaseSyncStart</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_sync_end</td><td><a href="#bytebase.store.TaskRunLog.DatabaseSyncEnd">TaskRunLog.DatabaseSyncEnd</a></td><td></td><td><p> </p></td></tr>-+<tr><td>transaction_control</td><td><a href="#bytebase.store.TaskRunLog.TransactionControl">TaskRunLog.TransactionControl</a></td><td></td><td><p> </p></td></tr>-+<tr><td>prior_backup_start</td><td><a href="#bytebase.store.TaskRunLog.PriorBackupStart">TaskRunLog.PriorBackupStart</a></td><td></td><td><p> </p></td></tr>-+<tr><td>prior_backup_end</td><td><a href="#bytebase.store.TaskRunLog.PriorBackupEnd">TaskRunLog.PriorBackupEnd</a></td><td></td><td><p> </p></td></tr>-+<tr><td>retry_info</td><td><a href="#bytebase.store.TaskRunLog.RetryInfo">TaskRunLog.RetryInfo</a></td><td></td><td><p> </p></td></tr>-+<tr><td>compute_diff_start</td><td><a href="#bytebase.store.TaskRunLog.ComputeDiffStart">TaskRunLog.ComputeDiffStart</a></td><td></td><td><p> </p></td></tr>-+<tr><td>compute_diff_end</td><td><a href="#bytebase.store.TaskRunLog.ComputeDiffEnd">TaskRunLog.ComputeDiffEnd</a></td><td></td><td><p> </p></td></tr>-+<tr><td>release_file_execute</td><td><a href="#bytebase.store.TaskRunLog.ReleaseFileExecute">TaskRunLog.ReleaseFileExecute</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ghost_migration_start</td><td><a href="#bytebase.store.TaskRunLog.GhostMigrationStart">TaskRunLog.GhostMigrationStart</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ghost_migration_end</td><td><a href="#bytebase.store.TaskRunLog.GhostMigrationEnd">TaskRunLog.GhostMigrationEnd</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.CommandExecute">TaskRunLog.CommandExecute</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>range</td><td><a href="#bytebase.store.Range">Range</a></td>@@ -14204,45 +14212,45 @@ Format: instances/{instance}/databases/{database} </p></td>Uses byte offsets (not character indices) for efficient slicing of sheet content bytes.Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents all 13 bytes. </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The statement to be executed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.CommandResponse">TaskRunLog.CommandResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>affected_rows</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>all_affected_rows</td><td><a href="#int64">int64</a></td>@@ -14250,278 +14258,278 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<td><p>`all_affected_rows` is the affected rows of each command.`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.ComputeDiffEnd">TaskRunLog.ComputeDiffEnd</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.ComputeDiffStart">TaskRunLog.ComputeDiffStart</h3><p></p>---+++<h3 id="bytebase.store.TaskRunLog.DatabaseSyncEnd">TaskRunLog.DatabaseSyncEnd</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.DatabaseSyncStart">TaskRunLog.DatabaseSyncStart</h3><p></p>---+++<h3 id="bytebase.store.TaskRunLog.GhostMigrationEnd">TaskRunLog.GhostMigrationEnd</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.GhostMigrationStart">TaskRunLog.GhostMigrationStart</h3><p></p>---+++<h3 id="bytebase.store.TaskRunLog.PriorBackupEnd">TaskRunLog.PriorBackupEnd</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>prior_backup_detail</td><td><a href="#bytebase.store.PriorBackupDetail">PriorBackupDetail</a></td><td></td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.PriorBackupStart">TaskRunLog.PriorBackupStart</h3><p></p>---+++<h3 id="bytebase.store.TaskRunLog.ReleaseFileExecute">TaskRunLog.ReleaseFileExecute</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The version of the file being executed (e.g., "0001"). </p></td></tr>-+<tr><td>file_path</td><td><a href="#string">string</a></td><td></td><td><p>The file path within the release (e.g., "2.2/V0001_create_table.sql"). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.RetryInfo">TaskRunLog.RetryInfo</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>retry_count</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>maximum_retries</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.SchemaDumpEnd">TaskRunLog.SchemaDumpEnd</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.TaskRunLog.SchemaDumpStart">TaskRunLog.SchemaDumpStart</h3><p></p>---+++<h3 id="bytebase.store.TaskRunLog.TransactionControl">TaskRunLog.TransactionControl</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.store.TaskRunLog.TransactionControl.Type">TaskRunLog.TransactionControl.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.TaskRunLog.TransactionControl.Type">TaskRunLog.TransactionControl.Type</h3><p></p><table class="enum-table">@@ -14529,34 +14537,34 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>BEGIN</td><td>1</td><td><p></p></td></tr>-+<tr><td>COMMIT</td><td>2</td><td><p></p></td></tr>-+<tr><td>ROLLBACK</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.TaskRunLog.Type">TaskRunLog.Type</h3><p></p><table class="enum-table">@@ -14564,201 +14572,201 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>SCHEMA_DUMP_START</td><td>1</td><td><p></p></td></tr>-+<tr><td>SCHEMA_DUMP_END</td><td>2</td><td><p></p></td></tr>-+<tr><td>COMMAND_EXECUTE</td><td>3</td><td><p></p></td></tr>-+<tr><td>COMMAND_RESPONSE</td><td>4</td><td><p></p></td></tr>-+<tr><td>DATABASE_SYNC_START</td><td>5</td><td><p></p></td></tr>-+<tr><td>DATABASE_SYNC_END</td><td>6</td><td><p></p></td></tr>-+<tr><td>TRANSACTION_CONTROL</td><td>8</td><td><p></p></td></tr>-+<tr><td>PRIOR_BACKUP_START</td><td>9</td><td><p></p></td></tr>-+<tr><td>PRIOR_BACKUP_END</td><td>10</td><td><p></p></td></tr>-+<tr><td>RETRY_INFO</td><td>11</td><td><p></p></td></tr>-+<tr><td>COMPUTE_DIFF_START</td><td>12</td><td><p></p></td></tr>-+<tr><td>COMPUTE_DIFF_END</td><td>13</td><td><p></p></td></tr>-+<tr><td>RELEASE_FILE_EXECUTE</td><td>14</td><td><p></p></td></tr>-+<tr><td>GHOST_MIGRATION_START</td><td>15</td><td><p></p></td></tr>-+<tr><td>GHOST_MIGRATION_END</td><td>16</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/user.proto">store/user.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.MFAConfig">MFAConfig</h3><p>MFAConfig is the MFA configuration for a user.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>otp_secret</td><td><a href="#string">string</a></td><td></td><td><p>The otp_secret is the secret key used to validate the OTP code. </p></td></tr>-+<tr><td>temp_otp_secret</td><td><a href="#string">string</a></td><td></td><td><p>The temp_otp_secret is the temporary secret key used to validate the OTP code and will replace the otp_secret in two-phase commits. </p></td></tr>-+<tr><td>recovery_codes</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The recovery_codes are the codes that can be used to recover the account. </p></td></tr>-+<tr><td>temp_recovery_codes</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The temp_recovery_codes are the temporary codes that will replace the recovery_codes in two-phase commits. </p></td></tr>-+<tr><td>temp_otp_secret_created_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The temp_otp_secret_created_time is the timestamp when temp_otp_secret was created. Used to enforce expiration. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.UserProfile">UserProfile</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>last_login_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>last_change_password_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>source</td><td><a href="#string">string</a></td><td></td><td><p>The source indicates where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td></tr>-+<tr><td>last_login_workspace</td><td><a href="#string">string</a></td>@@ -14766,61 +14774,61 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<td><p>The workspace resource ID the user last logged into.Used to auto-select workspace on next login instead of requiring a workspace picker. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.store.WorkloadIdentityConfig">WorkloadIdentityConfig</h3><p>WorkloadIdentityConfig stores OIDC configuration for workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>provider_type</td><td><a href="#bytebase.store.WorkloadIdentityConfig.ProviderType">WorkloadIdentityConfig.ProviderType</a></td><td></td><td><p>Provider type (currently only GITHUB is supported) </p></td></tr>-+<tr><td>issuer_url</td><td><a href="#string">string</a></td><td></td><td><p>OIDC issuer URL </p></td></tr>-+<tr><td>allowed_audiences</td><td><a href="#string">string</a></td><td>repeated</td><td><p>Allowed audiences for token validation </p></td></tr>-+<tr><td>subject_pattern</td><td><a href="#string">string</a></td><td></td><td><p>Subject pattern to match against token subject claim </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.store.PrincipalType">PrincipalType</h3><p>PrincipalType is the type of a principal.</p><table class="enum-table">@@ -14828,34 +14836,34 @@ Used to auto-select workspace on next login instead of requiring a workspace pic<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PRINCIPAL_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>END_USER</td><td>1</td><td><p>END_USER represents the human being using Bytebase.</p></td></tr>-+<tr><td>WORKLOAD_IDENTITY</td><td>2</td><td><p>WORKLOAD_IDENTITY represents external CI/CD workload identity.</p></td></tr>-+<tr><td>SERVICE_ACCOUNT</td><td>3</td><td><p>SERVICE_ACCOUNT represents the external service calling Bytebase OpenAPI.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.store.WorkloadIdentityConfig.ProviderType">WorkloadIdentityConfig.ProviderType</h3><p>ProviderType identifies the CI/CD platform.</p><table class="enum-table">@@ -14863,102 +14871,102 @@ Used to auto-select workspace on next login instead of requiring a workspace pic<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PROVIDER_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>GITHUB</td><td>1</td><td><p></p></td></tr>-+<tr><td>GITLAB</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="store/vcs_provider_user.proto">store/vcs_provider_user.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.VCSProviderUserPayload">VCSProviderUserPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>user_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>display_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/worksheet.proto">store/worksheet.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.WorkSheetOrganizerPayload">WorkSheetOrganizerPayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>starred</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>folders</td><td><a href="#string">string</a></td>@@ -14966,66 +14974,66 @@ Used to auto-select workspace on next login instead of requiring a workspace pic<td><p>The folder path for a worksheet.For example, if the folders is [A, B, C], means the worksheet is in the A/B/C subfolder. </p></td></tr>-+</tbody></table>--------++++++++<div class="file-heading"><h2 id="store/workspace.proto">store/workspace.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.store.WorkspacePayload">WorkspacePayload</h3><p>WorkspacePayload stores workspace-level metadata.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>logo</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>-------+++++++<h2 id="scalar-value-types">Scalar Value Types</h2><table class="scalar-value-types-table">@@ -15033,7 +15041,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<tr><td>.proto Type</td><td>Notes</td><td>C++</td><td>Java</td><td>Python</td><td>Go</td><td>C#</td><td>PHP</td><td>Ruby</td></tr></thead><tbody>-+<tr id="double"><td>double</td><td></td>@@ -15045,7 +15053,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>float</td><td>Float</td></tr>-+<tr id="float"><td>float</td><td></td>@@ -15057,7 +15065,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>float</td><td>Float</td></tr>-+<tr id="int32"><td>int32</td><td>Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.</td>@@ -15069,7 +15077,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="int64"><td>int64</td><td>Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.</td>@@ -15081,7 +15089,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer/string</td><td>Bignum</td></tr>-+<tr id="uint32"><td>uint32</td><td>Uses variable-length encoding.</td>@@ -15093,7 +15101,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="uint64"><td>uint64</td><td>Uses variable-length encoding.</td>@@ -15105,7 +15113,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer/string</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="sint32"><td>sint32</td><td>Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.</td>@@ -15117,7 +15125,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="sint64"><td>sint64</td><td>Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.</td>@@ -15129,7 +15137,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer/string</td><td>Bignum</td></tr>-+<tr id="fixed32"><td>fixed32</td><td>Always four bytes. More efficient than uint32 if values are often greater than 2^28.</td>@@ -15141,7 +15149,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="fixed64"><td>fixed64</td><td>Always eight bytes. More efficient than uint64 if values are often greater than 2^56.</td>@@ -15153,7 +15161,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer/string</td><td>Bignum</td></tr>-+<tr id="sfixed32"><td>sfixed32</td><td>Always four bytes.</td>@@ -15165,7 +15173,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="sfixed64"><td>sfixed64</td><td>Always eight bytes.</td>@@ -15177,7 +15185,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>integer/string</td><td>Bignum</td></tr>-+<tr id="bool"><td>bool</td><td></td>@@ -15189,7 +15197,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>boolean</td><td>TrueClass/FalseClass</td></tr>-+<tr id="string"><td>string</td><td>A string must always contain UTF-8 encoded or 7-bit ASCII text.</td>@@ -15201,7 +15209,7 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>string</td><td>String (UTF-8)</td></tr>-+<tr id="bytes"><td>bytes</td><td>May contain any arbitrary sequence of bytes.</td>@@ -15213,9 +15221,8 @@ For example, if the folders is [A, B, C], means the worksheet is in the A/B/C su<td>string</td><td>String (ASCII-8BIT)</td></tr>-+</tbody></table></body></html>-diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 884596fbdd..db904931f3 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -6710,7 +6710,7 @@ For examples: resource.environment_id == "prod" && statement.aff| require_mfa | [bool](#bool) | | Require MFA for all users. || refresh_token_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | The duration for refresh token. Default is 7 days. || announcement | [Announcement](#bytebase-v1-Announcement) | | The setting of custom announcement |-| maximum_request_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max expiration duration for role grants and data access requests. |+| maximum_request_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max expiration duration for data access requests. || domains | [string](#string) | repeated | The workspace domain, e.g., bytebase.com. || enforce_identity_domain | [bool](#bool) | | Only user and group from the domains can be created and login. || database_change_mode | [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode) | | The workspace database change mode. |@@ -6728,6 +6728,7 @@ For examples: resource.environment_id == "prod" && statement.aff| allow_email_code_signin | [bool](#bool) | | Allow signin/signup using email + a 6-digit one-time verification code. Requires the EMAIL setting to be configured on the workspace. || sql_editor_theme_id | [string](#string) | | Enforced SQL Editor theme id: OPAQUE — a frontend-resolved built-in preset id OR a custom theme's uuid. Empty ⇒ default light. || sql_editor_custom_theme | [SQLEditorThemeSetting](#bytebase-v1-SQLEditorThemeSetting) | | The enforced CUSTOM theme's full definition — present ONLY when sql_editor_theme_id is a custom uuid. tokens is always complete. |+| maximum_role_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max expiration duration for request role. Deprecated: use just-in-time access request flows instead. |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 8e03f6c48a..abb9bd71cd 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -63,57 +63,57 @@}td p:nth-child(1) {- text-indent: 0;+ text-indent: 0;}-- .field-table td:nth-child(1) {++ .field-table td:nth-child(1) {width: 10em;}- .field-table td:nth-child(2) {+ .field-table td:nth-child(2) {width: 10em;}- .field-table td:nth-child(3) {+ .field-table td:nth-child(3) {width: 6em;}- .field-table td:nth-child(4) {+ .field-table td:nth-child(4) {width: auto;}-- .extension-table td:nth-child(1) {++ .extension-table td:nth-child(1) {width: 10em;}- .extension-table td:nth-child(2) {+ .extension-table td:nth-child(2) {width: 10em;}- .extension-table td:nth-child(3) {+ .extension-table td:nth-child(3) {width: 10em;}- .extension-table td:nth-child(4) {+ .extension-table td:nth-child(4) {width: 5em;}- .extension-table td:nth-child(5) {+ .extension-table td:nth-child(5) {width: auto;}-- .enum-table td:nth-child(1) {++ .enum-table td:nth-child(1) {width: 10em;}- .enum-table td:nth-child(2) {+ .enum-table td:nth-child(2) {width: 10em;}- .enum-table td:nth-child(3) {+ .enum-table td:nth-child(3) {width: auto;}-+.scalar-value-types-table tr {height: 3em;}-+#toc-container ul {list-style-type: none;padding-left: 1em;@@ -124,7 +124,7 @@font-weight: bold;}-+.file-heading {width: 100%;display: table;@@ -140,7 +140,7 @@display: table-cell;}-+.badge {width: 1.6em;height: 1.6em;@@ -160,7 +160,7 @@}</style>-+<link rel="stylesheet" type="text/css" href="stylesheet.css"/></head>@@ -172,2919 +172,2919 @@<div id="toc-container"><ul id="toc">--++<li><a href="#v1%2fannotation.proto">v1/annotation.proto</a><ul>--++<li><a href="#bytebase.v1.AuthMethod"><span class="badge">E</span>AuthMethod</a></li>--++<li><a href="#v1%2fannotation.proto-extensions"><span class="badge">X</span>File-level Extensions</a></li>-+<li><a href="#v1%2fannotation.proto-extensions"><span class="badge">X</span>File-level Extensions</a></li>-+<li><a href="#v1%2fannotation.proto-extensions"><span class="badge">X</span>File-level Extensions</a></li>-+<li><a href="#v1%2fannotation.proto-extensions"><span class="badge">X</span>File-level Extensions</a></li>--++</ul></li>--++<li><a href="#v1%2faccess_grant_service.proto">v1/access_grant_service.proto</a><ul>-+<li><a href="#bytebase.v1.AccessGrant"><span class="badge">M</span>AccessGrant</a></li>-+<li><a href="#bytebase.v1.ActivateAccessGrantRequest"><span class="badge">M</span>ActivateAccessGrantRequest</a></li>-+<li><a href="#bytebase.v1.CreateAccessGrantRequest"><span class="badge">M</span>CreateAccessGrantRequest</a></li>-+<li><a href="#bytebase.v1.GetAccessGrantRequest"><span class="badge">M</span>GetAccessGrantRequest</a></li>-+<li><a href="#bytebase.v1.ListAccessGrantsRequest"><span class="badge">M</span>ListAccessGrantsRequest</a></li>-+<li><a href="#bytebase.v1.ListAccessGrantsResponse"><span class="badge">M</span>ListAccessGrantsResponse</a></li>-+<li><a href="#bytebase.v1.RevokeAccessGrantRequest"><span class="badge">M</span>RevokeAccessGrantRequest</a></li>-+<li><a href="#bytebase.v1.SearchMyAccessGrantsRequest"><span class="badge">M</span>SearchMyAccessGrantsRequest</a></li>-+<li><a href="#bytebase.v1.SearchMyAccessGrantsResponse"><span class="badge">M</span>SearchMyAccessGrantsResponse</a></li>--++<li><a href="#bytebase.v1.AccessGrant.Status"><span class="badge">E</span>AccessGrant.Status</a></li>---+++<li><a href="#bytebase.v1.AccessGrantService"><span class="badge">S</span>AccessGrantService</a></li>-+</ul></li>--++<li><a href="#v1%2fcommon.proto">v1/common.proto</a><ul>-+<li><a href="#bytebase.v1.PermissionDeniedDetail"><span class="badge">M</span>PermissionDeniedDetail</a></li>-+<li><a href="#bytebase.v1.Position"><span class="badge">M</span>Position</a></li>-+<li><a href="#bytebase.v1.Range"><span class="badge">M</span>Range</a></li>--++<li><a href="#bytebase.v1.ApprovalStatus"><span class="badge">E</span>ApprovalStatus</a></li>-+<li><a href="#bytebase.v1.Engine"><span class="badge">E</span>Engine</a></li>-+<li><a href="#bytebase.v1.ExportFormat"><span class="badge">E</span>ExportFormat</a></li>-+<li><a href="#bytebase.v1.RiskLevel"><span class="badge">E</span>RiskLevel</a></li>-+<li><a href="#bytebase.v1.State"><span class="badge">E</span>State</a></li>-+<li><a href="#bytebase.v1.StatementType"><span class="badge">E</span>StatementType</a></li>-+<li><a href="#bytebase.v1.VCSType"><span class="badge">E</span>VCSType</a></li>-+<li><a href="#bytebase.v1.WebhookType"><span class="badge">E</span>WebhookType</a></li>---+++</ul></li>--++<li><a href="#v1%2frollout_service.proto">v1/rollout_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchCancelTaskRunsRequest"><span class="badge">M</span>BatchCancelTaskRunsRequest</a></li>-+<li><a href="#bytebase.v1.BatchCancelTaskRunsResponse"><span class="badge">M</span>BatchCancelTaskRunsResponse</a></li>-+<li><a href="#bytebase.v1.BatchRunTasksRequest"><span class="badge">M</span>BatchRunTasksRequest</a></li>-+<li><a href="#bytebase.v1.BatchRunTasksResponse"><span class="badge">M</span>BatchRunTasksResponse</a></li>-+<li><a href="#bytebase.v1.BatchSkipTasksRequest"><span class="badge">M</span>BatchSkipTasksRequest</a></li>-+<li><a href="#bytebase.v1.BatchSkipTasksResponse"><span class="badge">M</span>BatchSkipTasksResponse</a></li>-+<li><a href="#bytebase.v1.CreateRolloutRequest"><span class="badge">M</span>CreateRolloutRequest</a></li>-+<li><a href="#bytebase.v1.GetRolloutRequest"><span class="badge">M</span>GetRolloutRequest</a></li>-+<li><a href="#bytebase.v1.GetTaskRunLogRequest"><span class="badge">M</span>GetTaskRunLogRequest</a></li>-+<li><a href="#bytebase.v1.GetTaskRunRequest"><span class="badge">M</span>GetTaskRunRequest</a></li>-+<li><a href="#bytebase.v1.GetTaskRunSessionRequest"><span class="badge">M</span>GetTaskRunSessionRequest</a></li>-+<li><a href="#bytebase.v1.ListRolloutsRequest"><span class="badge">M</span>ListRolloutsRequest</a></li>-+<li><a href="#bytebase.v1.ListRolloutsResponse"><span class="badge">M</span>ListRolloutsResponse</a></li>-+<li><a href="#bytebase.v1.ListTaskRunsRequest"><span class="badge">M</span>ListTaskRunsRequest</a></li>-+<li><a href="#bytebase.v1.ListTaskRunsResponse"><span class="badge">M</span>ListTaskRunsResponse</a></li>-+<li><a href="#bytebase.v1.PreviewTaskRunRollbackRequest"><span class="badge">M</span>PreviewTaskRunRollbackRequest</a></li>-+<li><a href="#bytebase.v1.PreviewTaskRunRollbackResponse"><span class="badge">M</span>PreviewTaskRunRollbackResponse</a></li>-+<li><a href="#bytebase.v1.Rollout"><span class="badge">M</span>Rollout</a></li>-+<li><a href="#bytebase.v1.Stage"><span class="badge">M</span>Stage</a></li>-+<li><a href="#bytebase.v1.Task"><span class="badge">M</span>Task</a></li>-+<li><a href="#bytebase.v1.Task.DatabaseCreate"><span class="badge">M</span>Task.DatabaseCreate</a></li>-+<li><a href="#bytebase.v1.Task.DatabaseDataExport"><span class="badge">M</span>Task.DatabaseDataExport</a></li>-+<li><a href="#bytebase.v1.Task.DatabaseUpdate"><span class="badge">M</span>Task.DatabaseUpdate</a></li>-+<li><a href="#bytebase.v1.TaskRun"><span class="badge">M</span>TaskRun</a></li>-+<li><a href="#bytebase.v1.TaskRun.SchedulerInfo"><span class="badge">M</span>TaskRun.SchedulerInfo</a></li>-+<li><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause"><span class="badge">M</span>TaskRun.SchedulerInfo.WaitingCause</a></li>-+<li><a href="#bytebase.v1.TaskRunLog"><span class="badge">M</span>TaskRunLog</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry"><span class="badge">M</span>TaskRunLogEntry</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute"><span class="badge">M</span>TaskRunLogEntry.CommandExecute</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse"><span class="badge">M</span>TaskRunLogEntry.CommandExecute.CommandResponse</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.ComputeDiff"><span class="badge">M</span>TaskRunLogEntry.ComputeDiff</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync"><span class="badge">M</span>TaskRunLogEntry.DatabaseSync</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.GhostMigration"><span class="badge">M</span>TaskRunLogEntry.GhostMigration</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup"><span class="badge">M</span>TaskRunLogEntry.PriorBackup</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail"><span class="badge">M</span>TaskRunLogEntry.PriorBackup.PriorBackupDetail</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item"><span class="badge">M</span>TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table"><span class="badge">M</span>TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.ReleaseFileExecute"><span class="badge">M</span>TaskRunLogEntry.ReleaseFileExecute</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.RetryInfo"><span class="badge">M</span>TaskRunLogEntry.RetryInfo</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.SchemaDump"><span class="badge">M</span>TaskRunLogEntry.SchemaDump</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl"><span class="badge">M</span>TaskRunLogEntry.TransactionControl</a></li>-+<li><a href="#bytebase.v1.TaskRunSession"><span class="badge">M</span>TaskRunSession</a></li>-+<li><a href="#bytebase.v1.TaskRunSession.Postgres"><span class="badge">M</span>TaskRunSession.Postgres</a></li>-+<li><a href="#bytebase.v1.TaskRunSession.Postgres.Session"><span class="badge">M</span>TaskRunSession.Postgres.Session</a></li>--++<li><a href="#bytebase.v1.Task.Status"><span class="badge">E</span>Task.Status</a></li>-+<li><a href="#bytebase.v1.Task.Type"><span class="badge">E</span>Task.Type</a></li>-+<li><a href="#bytebase.v1.TaskRun.ExportArchiveStatus"><span class="badge">E</span>TaskRun.ExportArchiveStatus</a></li>-+<li><a href="#bytebase.v1.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type"><span class="badge">E</span>TaskRunLogEntry.TransactionControl.Type</a></li>-+<li><a href="#bytebase.v1.TaskRunLogEntry.Type"><span class="badge">E</span>TaskRunLogEntry.Type</a></li>---+++<li><a href="#bytebase.v1.RolloutService"><span class="badge">S</span>RolloutService</a></li>-+</ul></li>--++<li><a href="#v1%2finstance_role_service.proto">v1/instance_role_service.proto</a><ul>-+<li><a href="#bytebase.v1.InstanceRole"><span class="badge">M</span>InstanceRole</a></li>-+<li><a href="#bytebase.v1.ListInstanceRolesRequest"><span class="badge">M</span>ListInstanceRolesRequest</a></li>-+<li><a href="#bytebase.v1.ListInstanceRolesResponse"><span class="badge">M</span>ListInstanceRolesResponse</a></li>----++++<li><a href="#bytebase.v1.InstanceRoleService"><span class="badge">S</span>InstanceRoleService</a></li>-+</ul></li>--++<li><a href="#v1%2finstance_service.proto">v1/instance_service.proto</a><ul>-+<li><a href="#bytebase.v1.AddDataSourceRequest"><span class="badge">M</span>AddDataSourceRequest</a></li>-+<li><a href="#bytebase.v1.BatchSyncInstancesRequest"><span class="badge">M</span>BatchSyncInstancesRequest</a></li>-+<li><a href="#bytebase.v1.BatchSyncInstancesResponse"><span class="badge">M</span>BatchSyncInstancesResponse</a></li>-+<li><a href="#bytebase.v1.BatchUpdateInstancesRequest"><span class="badge">M</span>BatchUpdateInstancesRequest</a></li>-+<li><a href="#bytebase.v1.BatchUpdateInstancesResponse"><span class="badge">M</span>BatchUpdateInstancesResponse</a></li>-+<li><a href="#bytebase.v1.CreateInstanceRequest"><span class="badge">M</span>CreateInstanceRequest</a></li>-+<li><a href="#bytebase.v1.DataSource"><span class="badge">M</span>DataSource</a></li>-+<li><a href="#bytebase.v1.DataSource.AWSCredential"><span class="badge">M</span>DataSource.AWSCredential</a></li>-+<li><a href="#bytebase.v1.DataSource.Address"><span class="badge">M</span>DataSource.Address</a></li>-+<li><a href="#bytebase.v1.DataSource.AzureCredential"><span class="badge">M</span>DataSource.AzureCredential</a></li>-+<li><a href="#bytebase.v1.DataSource.ExtraConnectionParametersEntry"><span class="badge">M</span>DataSource.ExtraConnectionParametersEntry</a></li>-+<li><a href="#bytebase.v1.DataSource.GCPCredential"><span class="badge">M</span>DataSource.GCPCredential</a></li>-+<li><a href="#bytebase.v1.DataSourceExternalSecret"><span class="badge">M</span>DataSourceExternalSecret</a></li>-+<li><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption"><span class="badge">M</span>DataSourceExternalSecret.AppRoleAuthOption</a></li>-+<li><a href="#bytebase.v1.DeleteInstanceRequest"><span class="badge">M</span>DeleteInstanceRequest</a></li>-+<li><a href="#bytebase.v1.GetInstanceRequest"><span class="badge">M</span>GetInstanceRequest</a></li>-+<li><a href="#bytebase.v1.Instance"><span class="badge">M</span>Instance</a></li>-+<li><a href="#bytebase.v1.Instance.LabelsEntry"><span class="badge">M</span>Instance.LabelsEntry</a></li>-+<li><a href="#bytebase.v1.InstanceResource"><span class="badge">M</span>InstanceResource</a></li>-+<li><a href="#bytebase.v1.KerberosConfig"><span class="badge">M</span>KerberosConfig</a></li>-+<li><a href="#bytebase.v1.ListInstanceDatabaseRequest"><span class="badge">M</span>ListInstanceDatabaseRequest</a></li>-+<li><a href="#bytebase.v1.ListInstanceDatabaseResponse"><span class="badge">M</span>ListInstanceDatabaseResponse</a></li>-+<li><a href="#bytebase.v1.ListInstancesRequest"><span class="badge">M</span>ListInstancesRequest</a></li>-+<li><a href="#bytebase.v1.ListInstancesResponse"><span class="badge">M</span>ListInstancesResponse</a></li>-+<li><a href="#bytebase.v1.RemoveDataSourceRequest"><span class="badge">M</span>RemoveDataSourceRequest</a></li>-+<li><a href="#bytebase.v1.SASLConfig"><span class="badge">M</span>SASLConfig</a></li>-+<li><a href="#bytebase.v1.SyncInstanceRequest"><span class="badge">M</span>SyncInstanceRequest</a></li>-+<li><a href="#bytebase.v1.SyncInstanceResponse"><span class="badge">M</span>SyncInstanceResponse</a></li>-+<li><a href="#bytebase.v1.UndeleteInstanceRequest"><span class="badge">M</span>UndeleteInstanceRequest</a></li>-+<li><a href="#bytebase.v1.UpdateDataSourceRequest"><span class="badge">M</span>UpdateDataSourceRequest</a></li>-+<li><a href="#bytebase.v1.UpdateInstanceRequest"><span class="badge">M</span>UpdateInstanceRequest</a></li>--++<li><a href="#bytebase.v1.DataSource.AuthenticationType"><span class="badge">E</span>DataSource.AuthenticationType</a></li>-+<li><a href="#bytebase.v1.DataSource.CloudSQLIPType"><span class="badge">E</span>DataSource.CloudSQLIPType</a></li>-+<li><a href="#bytebase.v1.DataSource.RedisType"><span class="badge">E</span>DataSource.RedisType</a></li>-+<li><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType"><span class="badge">E</span>DataSourceExternalSecret.AppRoleAuthOption.SecretType</a></li>-+<li><a href="#bytebase.v1.DataSourceExternalSecret.AuthType"><span class="badge">E</span>DataSourceExternalSecret.AuthType</a></li>-+<li><a href="#bytebase.v1.DataSourceExternalSecret.SecretType"><span class="badge">E</span>DataSourceExternalSecret.SecretType</a></li>-+<li><a href="#bytebase.v1.DataSourceExternalSecret.TokenType"><span class="badge">E</span>DataSourceExternalSecret.TokenType</a></li>-+<li><a href="#bytebase.v1.DataSourceType"><span class="badge">E</span>DataSourceType</a></li>---+++<li><a href="#bytebase.v1.InstanceService"><span class="badge">S</span>InstanceService</a></li>-+</ul></li>--++<li><a href="#v1%2fdatabase_service.proto">v1/database_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchGetDatabasesRequest"><span class="badge">M</span>BatchGetDatabasesRequest</a></li>-+<li><a href="#bytebase.v1.BatchGetDatabasesResponse"><span class="badge">M</span>BatchGetDatabasesResponse</a></li>-+<li><a href="#bytebase.v1.BatchSyncDatabasesRequest"><span class="badge">M</span>BatchSyncDatabasesRequest</a></li>-+<li><a href="#bytebase.v1.BatchSyncDatabasesResponse"><span class="badge">M</span>BatchSyncDatabasesResponse</a></li>-+<li><a href="#bytebase.v1.BatchUpdateDatabasesRequest"><span class="badge">M</span>BatchUpdateDatabasesRequest</a></li>-+<li><a href="#bytebase.v1.BatchUpdateDatabasesResponse"><span class="badge">M</span>BatchUpdateDatabasesResponse</a></li>-+<li><a href="#bytebase.v1.BoundingBox"><span class="badge">M</span>BoundingBox</a></li>-+<li><a href="#bytebase.v1.Changelog"><span class="badge">M</span>Changelog</a></li>-+<li><a href="#bytebase.v1.CheckConstraintMetadata"><span class="badge">M</span>CheckConstraintMetadata</a></li>-+<li><a href="#bytebase.v1.ColumnMetadata"><span class="badge">M</span>ColumnMetadata</a></li>-+<li><a href="#bytebase.v1.Database"><span class="badge">M</span>Database</a></li>-+<li><a href="#bytebase.v1.Database.LabelsEntry"><span class="badge">M</span>Database.LabelsEntry</a></li>-+<li><a href="#bytebase.v1.DatabaseMetadata"><span class="badge">M</span>DatabaseMetadata</a></li>-+<li><a href="#bytebase.v1.DatabaseSDLSchema"><span class="badge">M</span>DatabaseSDLSchema</a></li>-+<li><a href="#bytebase.v1.DatabaseSchema"><span class="badge">M</span>DatabaseSchema</a></li>-+<li><a href="#bytebase.v1.DependencyColumn"><span class="badge">M</span>DependencyColumn</a></li>-+<li><a href="#bytebase.v1.DependencyTable"><span class="badge">M</span>DependencyTable</a></li>-+<li><a href="#bytebase.v1.DiffSchemaRequest"><span class="badge">M</span>DiffSchemaRequest</a></li>-+<li><a href="#bytebase.v1.DiffSchemaResponse"><span class="badge">M</span>DiffSchemaResponse</a></li>-+<li><a href="#bytebase.v1.DimensionConstraint"><span class="badge">M</span>DimensionConstraint</a></li>-+<li><a href="#bytebase.v1.DimensionalConfig"><span class="badge">M</span>DimensionalConfig</a></li>-+<li><a href="#bytebase.v1.EnumTypeMetadata"><span class="badge">M</span>EnumTypeMetadata</a></li>-+<li><a href="#bytebase.v1.EventMetadata"><span class="badge">M</span>EventMetadata</a></li>-+<li><a href="#bytebase.v1.ExtensionMetadata"><span class="badge">M</span>ExtensionMetadata</a></li>-+<li><a href="#bytebase.v1.ExternalTableMetadata"><span class="badge">M</span>ExternalTableMetadata</a></li>-+<li><a href="#bytebase.v1.ForeignKeyMetadata"><span class="badge">M</span>ForeignKeyMetadata</a></li>-+<li><a href="#bytebase.v1.FunctionMetadata"><span class="badge">M</span>FunctionMetadata</a></li>-+<li><a href="#bytebase.v1.GenerationMetadata"><span class="badge">M</span>GenerationMetadata</a></li>-+<li><a href="#bytebase.v1.GetChangelogRequest"><span class="badge">M</span>GetChangelogRequest</a></li>-+<li><a href="#bytebase.v1.GetDatabaseMetadataRequest"><span class="badge">M</span>GetDatabaseMetadataRequest</a></li>-+<li><a href="#bytebase.v1.GetDatabaseRequest"><span class="badge">M</span>GetDatabaseRequest</a></li>-+<li><a href="#bytebase.v1.GetDatabaseSDLSchemaRequest"><span class="badge">M</span>GetDatabaseSDLSchemaRequest</a></li>-+<li><a href="#bytebase.v1.GetDatabaseSchemaRequest"><span class="badge">M</span>GetDatabaseSchemaRequest</a></li>-+<li><a href="#bytebase.v1.GetSchemaStringRequest"><span class="badge">M</span>GetSchemaStringRequest</a></li>-+<li><a href="#bytebase.v1.GetSchemaStringResponse"><span class="badge">M</span>GetSchemaStringResponse</a></li>-+<li><a href="#bytebase.v1.GridLevel"><span class="badge">M</span>GridLevel</a></li>-+<li><a href="#bytebase.v1.IndexMetadata"><span class="badge">M</span>IndexMetadata</a></li>-+<li><a href="#bytebase.v1.ListChangelogsRequest"><span class="badge">M</span>ListChangelogsRequest</a></li>-+<li><a href="#bytebase.v1.ListChangelogsResponse"><span class="badge">M</span>ListChangelogsResponse</a></li>-+<li><a href="#bytebase.v1.ListDatabasesRequest"><span class="badge">M</span>ListDatabasesRequest</a></li>-+<li><a href="#bytebase.v1.ListDatabasesResponse"><span class="badge">M</span>ListDatabasesResponse</a></li>-+<li><a href="#bytebase.v1.MaterializedViewMetadata"><span class="badge">M</span>MaterializedViewMetadata</a></li>-+<li><a href="#bytebase.v1.PackageMetadata"><span class="badge">M</span>PackageMetadata</a></li>-+<li><a href="#bytebase.v1.ProcedureMetadata"><span class="badge">M</span>ProcedureMetadata</a></li>-+<li><a href="#bytebase.v1.SchemaMetadata"><span class="badge">M</span>SchemaMetadata</a></li>-+<li><a href="#bytebase.v1.SequenceMetadata"><span class="badge">M</span>SequenceMetadata</a></li>-+<li><a href="#bytebase.v1.SpatialIndexConfig"><span class="badge">M</span>SpatialIndexConfig</a></li>-+<li><a href="#bytebase.v1.StorageConfig"><span class="badge">M</span>StorageConfig</a></li>-+<li><a href="#bytebase.v1.StreamMetadata"><span class="badge">M</span>StreamMetadata</a></li>-+<li><a href="#bytebase.v1.SyncDatabaseRequest"><span class="badge">M</span>SyncDatabaseRequest</a></li>-+<li><a href="#bytebase.v1.SyncDatabaseResponse"><span class="badge">M</span>SyncDatabaseResponse</a></li>-+<li><a href="#bytebase.v1.TableMetadata"><span class="badge">M</span>TableMetadata</a></li>-+<li><a href="#bytebase.v1.TablePartitionMetadata"><span class="badge">M</span>TablePartitionMetadata</a></li>-+<li><a href="#bytebase.v1.TaskMetadata"><span class="badge">M</span>TaskMetadata</a></li>-+<li><a href="#bytebase.v1.TessellationConfig"><span class="badge">M</span>TessellationConfig</a></li>-+<li><a href="#bytebase.v1.TriggerMetadata"><span class="badge">M</span>TriggerMetadata</a></li>-+<li><a href="#bytebase.v1.UpdateDatabaseRequest"><span class="badge">M</span>UpdateDatabaseRequest</a></li>-+<li><a href="#bytebase.v1.ViewMetadata"><span class="badge">M</span>ViewMetadata</a></li>--++<li><a href="#bytebase.v1.Changelog.Status"><span class="badge">E</span>Changelog.Status</a></li>-+<li><a href="#bytebase.v1.ChangelogView"><span class="badge">E</span>ChangelogView</a></li>-+<li><a href="#bytebase.v1.ColumnMetadata.IdentityGeneration"><span class="badge">E</span>ColumnMetadata.IdentityGeneration</a></li>-+<li><a href="#bytebase.v1.GenerationMetadata.Type"><span class="badge">E</span>GenerationMetadata.Type</a></li>-+<li><a href="#bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat"><span class="badge">E</span>GetDatabaseSDLSchemaRequest.SDLFormat</a></li>-+<li><a href="#bytebase.v1.GetSchemaStringRequest.ObjectType"><span class="badge">E</span>GetSchemaStringRequest.ObjectType</a></li>-+<li><a href="#bytebase.v1.StreamMetadata.Mode"><span class="badge">E</span>StreamMetadata.Mode</a></li>-+<li><a href="#bytebase.v1.StreamMetadata.Type"><span class="badge">E</span>StreamMetadata.Type</a></li>-+<li><a href="#bytebase.v1.SyncStatus"><span class="badge">E</span>SyncStatus</a></li>-+<li><a href="#bytebase.v1.TablePartitionMetadata.Type"><span class="badge">E</span>TablePartitionMetadata.Type</a></li>-+<li><a href="#bytebase.v1.TaskMetadata.State"><span class="badge">E</span>TaskMetadata.State</a></li>---+++<li><a href="#bytebase.v1.DatabaseService"><span class="badge">S</span>DatabaseService</a></li>-+</ul></li>--++<li><a href="#v1%2fsql_service.proto">v1/sql_service.proto</a><ul>-+<li><a href="#bytebase.v1.AICompletionRequest"><span class="badge">M</span>AICompletionRequest</a></li>-+<li><a href="#bytebase.v1.AICompletionRequest.Message"><span class="badge">M</span>AICompletionRequest.Message</a></li>-+<li><a href="#bytebase.v1.AICompletionResponse"><span class="badge">M</span>AICompletionResponse</a></li>-+<li><a href="#bytebase.v1.AICompletionResponse.Candidate"><span class="badge">M</span>AICompletionResponse.Candidate</a></li>-+<li><a href="#bytebase.v1.AICompletionResponse.Candidate.Content"><span class="badge">M</span>AICompletionResponse.Candidate.Content</a></li>-+<li><a href="#bytebase.v1.AICompletionResponse.Candidate.Content.Part"><span class="badge">M</span>AICompletionResponse.Candidate.Content.Part</a></li>-+<li><a href="#bytebase.v1.AdminExecuteRequest"><span class="badge">M</span>AdminExecuteRequest</a></li>-+<li><a href="#bytebase.v1.AdminExecuteResponse"><span class="badge">M</span>AdminExecuteResponse</a></li>-+<li><a href="#bytebase.v1.Advice"><span class="badge">M</span>Advice</a></li>-+<li><a href="#bytebase.v1.DiffMetadataRequest"><span class="badge">M</span>DiffMetadataRequest</a></li>-+<li><a href="#bytebase.v1.DiffMetadataResponse"><span class="badge">M</span>DiffMetadataResponse</a></li>-+<li><a href="#bytebase.v1.ExportRequest"><span class="badge">M</span>ExportRequest</a></li>-+<li><a href="#bytebase.v1.ExportResponse"><span class="badge">M</span>ExportResponse</a></li>-+<li><a href="#bytebase.v1.GetQueryHistoryRequest"><span class="badge">M</span>GetQueryHistoryRequest</a></li>-+<li><a href="#bytebase.v1.MaskingReason"><span class="badge">M</span>MaskingReason</a></li>-+<li><a href="#bytebase.v1.QueryHistory"><span class="badge">M</span>QueryHistory</a></li>-+<li><a href="#bytebase.v1.QueryOption"><span class="badge">M</span>QueryOption</a></li>-+<li><a href="#bytebase.v1.QueryRequest"><span class="badge">M</span>QueryRequest</a></li>-+<li><a href="#bytebase.v1.QueryResponse"><span class="badge">M</span>QueryResponse</a></li>-+<li><a href="#bytebase.v1.QueryResult"><span class="badge">M</span>QueryResult</a></li>-+<li><a href="#bytebase.v1.QueryResult.CommandError"><span class="badge">M</span>QueryResult.CommandError</a></li>-+<li><a href="#bytebase.v1.QueryResult.Message"><span class="badge">M</span>QueryResult.Message</a></li>-+<li><a href="#bytebase.v1.QueryResult.PostgresError"><span class="badge">M</span>QueryResult.PostgresError</a></li>-+<li><a href="#bytebase.v1.QueryResult.SyntaxError"><span class="badge">M</span>QueryResult.SyntaxError</a></li>-+<li><a href="#bytebase.v1.QueryRow"><span class="badge">M</span>QueryRow</a></li>-+<li><a href="#bytebase.v1.RowValue"><span class="badge">M</span>RowValue</a></li>-+<li><a href="#bytebase.v1.RowValue.Timestamp"><span class="badge">M</span>RowValue.Timestamp</a></li>-+<li><a href="#bytebase.v1.RowValue.TimestampTZ"><span class="badge">M</span>RowValue.TimestampTZ</a></li>-+<li><a href="#bytebase.v1.SearchQueryHistoriesRequest"><span class="badge">M</span>SearchQueryHistoriesRequest</a></li>-+<li><a href="#bytebase.v1.SearchQueryHistoriesResponse"><span class="badge">M</span>SearchQueryHistoriesResponse</a></li>--++<li><a href="#bytebase.v1.Advice.Level"><span class="badge">E</span>Advice.Level</a></li>-+<li><a href="#bytebase.v1.Advice.RuleType"><span class="badge">E</span>Advice.RuleType</a></li>-+<li><a href="#bytebase.v1.QueryHistory.Type"><span class="badge">E</span>QueryHistory.Type</a></li>-+<li><a href="#bytebase.v1.QueryOption.MSSQLExplainFormat"><span class="badge">E</span>QueryOption.MSSQLExplainFormat</a></li>-+<li><a href="#bytebase.v1.QueryOption.RedisRunCommandsOn"><span class="badge">E</span>QueryOption.RedisRunCommandsOn</a></li>-+<li><a href="#bytebase.v1.QueryResult.CommandError.Type"><span class="badge">E</span>QueryResult.CommandError.Type</a></li>-+<li><a href="#bytebase.v1.QueryResult.Message.Level"><span class="badge">E</span>QueryResult.Message.Level</a></li>---+++<li><a href="#bytebase.v1.SQLService"><span class="badge">S</span>SQLService</a></li>-+</ul></li>--++<li><a href="#v1%2fplan_service.proto">v1/plan_service.proto</a><ul>-+<li><a href="#bytebase.v1.CancelPlanCheckRunRequest"><span class="badge">M</span>CancelPlanCheckRunRequest</a></li>-+<li><a href="#bytebase.v1.CancelPlanCheckRunResponse"><span class="badge">M</span>CancelPlanCheckRunResponse</a></li>-+<li><a href="#bytebase.v1.CreatePlanRequest"><span class="badge">M</span>CreatePlanRequest</a></li>-+<li><a href="#bytebase.v1.GetPlanCheckRunRequest"><span class="badge">M</span>GetPlanCheckRunRequest</a></li>-+<li><a href="#bytebase.v1.GetPlanRequest"><span class="badge">M</span>GetPlanRequest</a></li>-+<li><a href="#bytebase.v1.ListPlansRequest"><span class="badge">M</span>ListPlansRequest</a></li>-+<li><a href="#bytebase.v1.ListPlansResponse"><span class="badge">M</span>ListPlansResponse</a></li>-+<li><a href="#bytebase.v1.Plan"><span class="badge">M</span>Plan</a></li>-+<li><a href="#bytebase.v1.Plan.ChangeDatabaseConfig"><span class="badge">M</span>Plan.ChangeDatabaseConfig</a></li>-+<li><a href="#bytebase.v1.Plan.CreateDatabaseConfig"><span class="badge">M</span>Plan.CreateDatabaseConfig</a></li>-+<li><a href="#bytebase.v1.Plan.ExportDataConfig"><span class="badge">M</span>Plan.ExportDataConfig</a></li>-+<li><a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry"><span class="badge">M</span>Plan.PlanCheckRunStatusCountEntry</a></li>-+<li><a href="#bytebase.v1.Plan.RolloutStageSummary"><span class="badge">M</span>Plan.RolloutStageSummary</a></li>-+<li><a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a></li>-+<li><a href="#bytebase.v1.Plan.TaskStatusCount"><span class="badge">M</span>Plan.TaskStatusCount</a></li>-+<li><a href="#bytebase.v1.PlanCheckRun"><span class="badge">M</span>PlanCheckRun</a></li>-+<li><a href="#bytebase.v1.PlanCheckRun.Result"><span class="badge">M</span>PlanCheckRun.Result</a></li>-+<li><a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport"><span class="badge">M</span>PlanCheckRun.Result.SqlReviewReport</a></li>-+<li><a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport"><span class="badge">M</span>PlanCheckRun.Result.SqlSummaryReport</a></li>-+<li><a href="#bytebase.v1.RunPlanChecksRequest"><span class="badge">M</span>RunPlanChecksRequest</a></li>-+<li><a href="#bytebase.v1.RunPlanChecksResponse"><span class="badge">M</span>RunPlanChecksResponse</a></li>-+<li><a href="#bytebase.v1.UpdatePlanRequest"><span class="badge">M</span>UpdatePlanRequest</a></li>--++<li><a href="#bytebase.v1.PlanCheckRun.Result.Type"><span class="badge">E</span>PlanCheckRun.Result.Type</a></li>-+<li><a href="#bytebase.v1.PlanCheckRun.Status"><span class="badge">E</span>PlanCheckRun.Status</a></li>---+++<li><a href="#bytebase.v1.PlanService"><span class="badge">S</span>PlanService</a></li>-+</ul></li>--++<li><a href="#v1%2fissue_service.proto">v1/issue_service.proto</a><ul>-+<li><a href="#bytebase.v1.ApprovalFlow"><span class="badge">M</span>ApprovalFlow</a></li>-+<li><a href="#bytebase.v1.ApprovalTemplate"><span class="badge">M</span>ApprovalTemplate</a></li>-+<li><a href="#bytebase.v1.ApproveIssueRequest"><span class="badge">M</span>ApproveIssueRequest</a></li>-+<li><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest"><span class="badge">M</span>BatchUpdateIssuesStatusRequest</a></li>-+<li><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse"><span class="badge">M</span>BatchUpdateIssuesStatusResponse</a></li>-+<li><a href="#bytebase.v1.CreateIssueCommentRequest"><span class="badge">M</span>CreateIssueCommentRequest</a></li>-+<li><a href="#bytebase.v1.CreateIssueRequest"><span class="badge">M</span>CreateIssueRequest</a></li>-+<li><a href="#bytebase.v1.GetIssueRequest"><span class="badge">M</span>GetIssueRequest</a></li>-+<li><a href="#bytebase.v1.Issue"><span class="badge">M</span>Issue</a></li>-+<li><a href="#bytebase.v1.Issue.Approver"><span class="badge">M</span>Issue.Approver</a></li>-+<li><a href="#bytebase.v1.IssueComment"><span class="badge">M</span>IssueComment</a></li>-+<li><a href="#bytebase.v1.IssueComment.Approval"><span class="badge">M</span>IssueComment.Approval</a></li>-+<li><a href="#bytebase.v1.IssueComment.IssueUpdate"><span class="badge">M</span>IssueComment.IssueUpdate</a></li>-+<li><a href="#bytebase.v1.IssueComment.PlanUpdate"><span class="badge">M</span>IssueComment.PlanUpdate</a></li>-+<li><a href="#bytebase.v1.ListIssueCommentsRequest"><span class="badge">M</span>ListIssueCommentsRequest</a></li>-+<li><a href="#bytebase.v1.ListIssueCommentsResponse"><span class="badge">M</span>ListIssueCommentsResponse</a></li>-+<li><a href="#bytebase.v1.ListIssuesRequest"><span class="badge">M</span>ListIssuesRequest</a></li>-+<li><a href="#bytebase.v1.ListIssuesResponse"><span class="badge">M</span>ListIssuesResponse</a></li>-+<li><a href="#bytebase.v1.RejectIssueRequest"><span class="badge">M</span>RejectIssueRequest</a></li>-+<li><a href="#bytebase.v1.RequestIssueRequest"><span class="badge">M</span>RequestIssueRequest</a></li>-+<li><a href="#bytebase.v1.RetryIssueApprovalRequest"><span class="badge">M</span>RetryIssueApprovalRequest</a></li>-+<li><a href="#bytebase.v1.RoleGrant"><span class="badge">M</span>RoleGrant</a></li>-+<li><a href="#bytebase.v1.SearchIssuesRequest"><span class="badge">M</span>SearchIssuesRequest</a></li>-+<li><a href="#bytebase.v1.SearchIssuesResponse"><span class="badge">M</span>SearchIssuesResponse</a></li>-+<li><a href="#bytebase.v1.UpdateIssueCommentRequest"><span class="badge">M</span>UpdateIssueCommentRequest</a></li>-+<li><a href="#bytebase.v1.UpdateIssueRequest"><span class="badge">M</span>UpdateIssueRequest</a></li>--++<li><a href="#bytebase.v1.Issue.Approver.Status"><span class="badge">E</span>Issue.Approver.Status</a></li>-+<li><a href="#bytebase.v1.Issue.Type"><span class="badge">E</span>Issue.Type</a></li>-+<li><a href="#bytebase.v1.IssueComment.Approval.Status"><span class="badge">E</span>IssueComment.Approval.Status</a></li>-+<li><a href="#bytebase.v1.IssueStatus"><span class="badge">E</span>IssueStatus</a></li>---+++<li><a href="#bytebase.v1.IssueService"><span class="badge">S</span>IssueService</a></li>-+</ul></li>--++<li><a href="#v1%2fsetting_service.proto">v1/setting_service.proto</a><ul>-+<li><a href="#bytebase.v1.AISetting"><span class="badge">M</span>AISetting</a></li>-+<li><a href="#bytebase.v1.Algorithm"><span class="badge">M</span>Algorithm</a></li>-+<li><a href="#bytebase.v1.Algorithm.FullMask"><span class="badge">M</span>Algorithm.FullMask</a></li>-+<li><a href="#bytebase.v1.Algorithm.InnerOuterMask"><span class="badge">M</span>Algorithm.InnerOuterMask</a></li>-+<li><a href="#bytebase.v1.Algorithm.MD5Mask"><span class="badge">M</span>Algorithm.MD5Mask</a></li>-+<li><a href="#bytebase.v1.Algorithm.RangeMask"><span class="badge">M</span>Algorithm.RangeMask</a></li>-+<li><a href="#bytebase.v1.Algorithm.RangeMask.Slice"><span class="badge">M</span>Algorithm.RangeMask.Slice</a></li>-+<li><a href="#bytebase.v1.Announcement"><span class="badge">M</span>Announcement</a></li>-+<li><a href="#bytebase.v1.Announcement.AnnouncementTheme"><span class="badge">M</span>Announcement.AnnouncementTheme</a></li>-+<li><a href="#bytebase.v1.AppIMSetting"><span class="badge">M</span>AppIMSetting</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.DingTalk"><span class="badge">M</span>AppIMSetting.DingTalk</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.IMSetting"><span class="badge">M</span>AppIMSetting.IMSetting</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.Lark"><span class="badge">M</span>AppIMSetting.Lark</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.Teams"><span class="badge">M</span>AppIMSetting.Teams</a></li>-+<li><a href="#bytebase.v1.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a></li>-+<li><a href="#bytebase.v1.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a></li>-+<li><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a></li>-+<li><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></li>-+<li><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a></li>-+<li><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a></li>-+<li><a href="#bytebase.v1.EmailSetting"><span class="badge">M</span>EmailSetting</a></li>-+<li><a href="#bytebase.v1.EmailSetting.SMTPConfig"><span class="badge">M</span>EmailSetting.SMTPConfig</a></li>-+<li><a href="#bytebase.v1.EnvironmentSetting"><span class="badge">M</span>EnvironmentSetting</a></li>-+<li><a href="#bytebase.v1.EnvironmentSetting.Environment"><span class="badge">M</span>EnvironmentSetting.Environment</a></li>-+<li><a href="#bytebase.v1.EnvironmentSetting.Environment.TagsEntry"><span class="badge">M</span>EnvironmentSetting.Environment.TagsEntry</a></li>-+<li><a href="#bytebase.v1.GetSettingRequest"><span class="badge">M</span>GetSettingRequest</a></li>-+<li><a href="#bytebase.v1.GetSettingResponse"><span class="badge">M</span>GetSettingResponse</a></li>-+<li><a href="#bytebase.v1.ListSettingsRequest"><span class="badge">M</span>ListSettingsRequest</a></li>-+<li><a href="#bytebase.v1.ListSettingsResponse"><span class="badge">M</span>ListSettingsResponse</a></li>-+<li><a href="#bytebase.v1.SQLEditorThemeSetting"><span class="badge">M</span>SQLEditorThemeSetting</a></li>-+<li><a href="#bytebase.v1.SQLEditorThemeSetting.TokensEntry"><span class="badge">M</span>SQLEditorThemeSetting.TokensEntry</a></li>-+<li><a href="#bytebase.v1.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a></li>-+<li><a href="#bytebase.v1.SemanticTypeSetting.SemanticType"><span class="badge">M</span>SemanticTypeSetting.SemanticType</a></li>-+<li><a href="#bytebase.v1.Setting"><span class="badge">M</span>Setting</a></li>-+<li><a href="#bytebase.v1.SettingValue"><span class="badge">M</span>SettingValue</a></li>-+<li><a href="#bytebase.v1.TestEmailSettingRequest"><span class="badge">M</span>TestEmailSettingRequest</a></li>-+<li><a href="#bytebase.v1.TestEmailSettingResponse"><span class="badge">M</span>TestEmailSettingResponse</a></li>-+<li><a href="#bytebase.v1.UpdateSettingRequest"><span class="badge">M</span>UpdateSettingRequest</a></li>-+<li><a href="#bytebase.v1.WorkspaceApprovalSetting"><span class="badge">M</span>WorkspaceApprovalSetting</a></li>-+<li><a href="#bytebase.v1.WorkspaceApprovalSetting.Rule"><span class="badge">M</span>WorkspaceApprovalSetting.Rule</a></li>-+<li><a href="#bytebase.v1.WorkspaceProfileSetting"><span class="badge">M</span>WorkspaceProfileSetting</a></li>-+<li><a href="#bytebase.v1.WorkspaceProfileSetting.PasswordRestriction"><span class="badge">M</span>WorkspaceProfileSetting.PasswordRestriction</a></li>--++<li><a href="#bytebase.v1.AISetting.Provider"><span class="badge">E</span>AISetting.Provider</a></li>-+<li><a href="#bytebase.v1.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>Algorithm.InnerOuterMask.MaskType</a></li>-+<li><a href="#bytebase.v1.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a></li>-+<li><a href="#bytebase.v1.EmailSetting.SMTPConfig.Authentication"><span class="badge">E</span>EmailSetting.SMTPConfig.Authentication</a></li>-+<li><a href="#bytebase.v1.EmailSetting.SMTPConfig.Encryption"><span class="badge">E</span>EmailSetting.SMTPConfig.Encryption</a></li>-+<li><a href="#bytebase.v1.EmailSetting.Type"><span class="badge">E</span>EmailSetting.Type</a></li>-+<li><a href="#bytebase.v1.Setting.SettingName"><span class="badge">E</span>Setting.SettingName</a></li>-+<li><a href="#bytebase.v1.WorkspaceApprovalSetting.Rule.Source"><span class="badge">E</span>WorkspaceApprovalSetting.Rule.Source</a></li>---+++<li><a href="#bytebase.v1.SettingService"><span class="badge">S</span>SettingService</a></li>-+</ul></li>--++<li><a href="#v1%2factuator_service.proto">v1/actuator_service.proto</a><ul>-+<li><a href="#bytebase.v1.ActuatorInfo"><span class="badge">M</span>ActuatorInfo</a></li>-+<li><a href="#bytebase.v1.DeleteCacheRequest"><span class="badge">M</span>DeleteCacheRequest</a></li>-+<li><a href="#bytebase.v1.GetActuatorInfoRequest"><span class="badge">M</span>GetActuatorInfoRequest</a></li>-+<li><a href="#bytebase.v1.Restriction"><span class="badge">M</span>Restriction</a></li>-+<li><a href="#bytebase.v1.SetupSampleRequest"><span class="badge">M</span>SetupSampleRequest</a></li>----++++<li><a href="#bytebase.v1.ActuatorService"><span class="badge">S</span>ActuatorService</a></li>-+</ul></li>--++<li><a href="#v1%2fai_service.proto">v1/ai_service.proto</a><ul>-+<li><a href="#bytebase.v1.AIChatMessage"><span class="badge">M</span>AIChatMessage</a></li>-+<li><a href="#bytebase.v1.AIChatRequest"><span class="badge">M</span>AIChatRequest</a></li>-+<li><a href="#bytebase.v1.AIChatResponse"><span class="badge">M</span>AIChatResponse</a></li>-+<li><a href="#bytebase.v1.AIChatToolCall"><span class="badge">M</span>AIChatToolCall</a></li>-+<li><a href="#bytebase.v1.AIChatToolDefinition"><span class="badge">M</span>AIChatToolDefinition</a></li>-+<li><a href="#bytebase.v1.AIChatUsage"><span class="badge">M</span>AIChatUsage</a></li>--++<li><a href="#bytebase.v1.AIChatMessageRole"><span class="badge">E</span>AIChatMessageRole</a></li>---+++<li><a href="#bytebase.v1.AIService"><span class="badge">S</span>AIService</a></li>-+</ul></li>--++<li><a href="#v1%2fiam_policy.proto">v1/iam_policy.proto</a><ul>-+<li><a href="#bytebase.v1.Binding"><span class="badge">M</span>Binding</a></li>-+<li><a href="#bytebase.v1.BindingDelta"><span class="badge">M</span>BindingDelta</a></li>-+<li><a href="#bytebase.v1.GetIamPolicyRequest"><span class="badge">M</span>GetIamPolicyRequest</a></li>-+<li><a href="#bytebase.v1.IamPolicy"><span class="badge">M</span>IamPolicy</a></li>-+<li><a href="#bytebase.v1.PolicyDelta"><span class="badge">M</span>PolicyDelta</a></li>-+<li><a href="#bytebase.v1.SetIamPolicyRequest"><span class="badge">M</span>SetIamPolicyRequest</a></li>--++<li><a href="#bytebase.v1.BindingDelta.Action"><span class="badge">E</span>BindingDelta.Action</a></li>---+++</ul></li>--++<li><a href="#v1%2faudit_log_service.proto">v1/audit_log_service.proto</a><ul>-+<li><a href="#bytebase.v1.AuditData"><span class="badge">M</span>AuditData</a></li>-+<li><a href="#bytebase.v1.AuditLog"><span class="badge">M</span>AuditLog</a></li>-+<li><a href="#bytebase.v1.ExportAuditLogsRequest"><span class="badge">M</span>ExportAuditLogsRequest</a></li>-+<li><a href="#bytebase.v1.ExportAuditLogsResponse"><span class="badge">M</span>ExportAuditLogsResponse</a></li>-+<li><a href="#bytebase.v1.RequestMetadata"><span class="badge">M</span>RequestMetadata</a></li>-+<li><a href="#bytebase.v1.SearchAuditLogsRequest"><span class="badge">M</span>SearchAuditLogsRequest</a></li>-+<li><a href="#bytebase.v1.SearchAuditLogsResponse"><span class="badge">M</span>SearchAuditLogsResponse</a></li>--++<li><a href="#bytebase.v1.AuditLog.Severity"><span class="badge">E</span>AuditLog.Severity</a></li>---+++<li><a href="#bytebase.v1.AuditLogService"><span class="badge">S</span>AuditLogService</a></li>-+</ul></li>--++<li><a href="#v1%2fuser_service.proto">v1/user_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchGetUsersRequest"><span class="badge">M</span>BatchGetUsersRequest</a></li>-+<li><a href="#bytebase.v1.BatchGetUsersResponse"><span class="badge">M</span>BatchGetUsersResponse</a></li>-+<li><a href="#bytebase.v1.CreateUserRequest"><span class="badge">M</span>CreateUserRequest</a></li>-+<li><a href="#bytebase.v1.DeleteUserRequest"><span class="badge">M</span>DeleteUserRequest</a></li>-+<li><a href="#bytebase.v1.GetUserRequest"><span class="badge">M</span>GetUserRequest</a></li>-+<li><a href="#bytebase.v1.ListUsersRequest"><span class="badge">M</span>ListUsersRequest</a></li>-+<li><a href="#bytebase.v1.ListUsersResponse"><span class="badge">M</span>ListUsersResponse</a></li>-+<li><a href="#bytebase.v1.UndeleteUserRequest"><span class="badge">M</span>UndeleteUserRequest</a></li>-+<li><a href="#bytebase.v1.UpdateEmailRequest"><span class="badge">M</span>UpdateEmailRequest</a></li>-+<li><a href="#bytebase.v1.UpdateUserRequest"><span class="badge">M</span>UpdateUserRequest</a></li>-+<li><a href="#bytebase.v1.User"><span class="badge">M</span>User</a></li>-+<li><a href="#bytebase.v1.User.Profile"><span class="badge">M</span>User.Profile</a></li>----++++<li><a href="#bytebase.v1.UserService"><span class="badge">S</span>UserService</a></li>-+</ul></li>--++<li><a href="#v1%2fauth_service.proto">v1/auth_service.proto</a><ul>-+<li><a href="#bytebase.v1.ExchangeTokenRequest"><span class="badge">M</span>ExchangeTokenRequest</a></li>-+<li><a href="#bytebase.v1.ExchangeTokenResponse"><span class="badge">M</span>ExchangeTokenResponse</a></li>-+<li><a href="#bytebase.v1.IdentityProviderContext"><span class="badge">M</span>IdentityProviderContext</a></li>-+<li><a href="#bytebase.v1.LoginRequest"><span class="badge">M</span>LoginRequest</a></li>-+<li><a href="#bytebase.v1.LoginResponse"><span class="badge">M</span>LoginResponse</a></li>-+<li><a href="#bytebase.v1.LogoutRequest"><span class="badge">M</span>LogoutRequest</a></li>-+<li><a href="#bytebase.v1.OAuth2IdentityProviderContext"><span class="badge">M</span>OAuth2IdentityProviderContext</a></li>-+<li><a href="#bytebase.v1.OIDCIdentityProviderContext"><span class="badge">M</span>OIDCIdentityProviderContext</a></li>-+<li><a href="#bytebase.v1.RefreshRequest"><span class="badge">M</span>RefreshRequest</a></li>-+<li><a href="#bytebase.v1.RefreshResponse"><span class="badge">M</span>RefreshResponse</a></li>-+<li><a href="#bytebase.v1.RequestPasswordResetRequest"><span class="badge">M</span>RequestPasswordResetRequest</a></li>-+<li><a href="#bytebase.v1.ResetPasswordRequest"><span class="badge">M</span>ResetPasswordRequest</a></li>-+<li><a href="#bytebase.v1.SendEmailLoginCodeRequest"><span class="badge">M</span>SendEmailLoginCodeRequest</a></li>-+<li><a href="#bytebase.v1.SignupRequest"><span class="badge">M</span>SignupRequest</a></li>-+<li><a href="#bytebase.v1.SwitchWorkspaceRequest"><span class="badge">M</span>SwitchWorkspaceRequest</a></li>----++++<li><a href="#bytebase.v1.AuthService"><span class="badge">S</span>AuthService</a></li>-+</ul></li>--++<li><a href="#v1%2fcel_service.proto">v1/cel_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchDeparseRequest"><span class="badge">M</span>BatchDeparseRequest</a></li>-+<li><a href="#bytebase.v1.BatchDeparseResponse"><span class="badge">M</span>BatchDeparseResponse</a></li>-+<li><a href="#bytebase.v1.BatchParseRequest"><span class="badge">M</span>BatchParseRequest</a></li>-+<li><a href="#bytebase.v1.BatchParseResponse"><span class="badge">M</span>BatchParseResponse</a></li>----++++<li><a href="#bytebase.v1.CelService"><span class="badge">S</span>CelService</a></li>-+</ul></li>--++<li><a href="#v1%2fdatabase_catalog_service.proto">v1/database_catalog_service.proto</a><ul>-+<li><a href="#bytebase.v1.ColumnCatalog"><span class="badge">M</span>ColumnCatalog</a></li>-+<li><a href="#bytebase.v1.ColumnCatalog.LabelsEntry"><span class="badge">M</span>ColumnCatalog.LabelsEntry</a></li>-+<li><a href="#bytebase.v1.DatabaseCatalog"><span class="badge">M</span>DatabaseCatalog</a></li>-+<li><a href="#bytebase.v1.GetDatabaseCatalogRequest"><span class="badge">M</span>GetDatabaseCatalogRequest</a></li>-+<li><a href="#bytebase.v1.ObjectSchema"><span class="badge">M</span>ObjectSchema</a></li>-+<li><a href="#bytebase.v1.ObjectSchema.ArrayKind"><span class="badge">M</span>ObjectSchema.ArrayKind</a></li>-+<li><a href="#bytebase.v1.ObjectSchema.StructKind"><span class="badge">M</span>ObjectSchema.StructKind</a></li>-+<li><a href="#bytebase.v1.ObjectSchema.StructKind.PropertiesEntry"><span class="badge">M</span>ObjectSchema.StructKind.PropertiesEntry</a></li>-+<li><a href="#bytebase.v1.SchemaCatalog"><span class="badge">M</span>SchemaCatalog</a></li>-+<li><a href="#bytebase.v1.TableCatalog"><span class="badge">M</span>TableCatalog</a></li>-+<li><a href="#bytebase.v1.TableCatalog.Columns"><span class="badge">M</span>TableCatalog.Columns</a></li>-+<li><a href="#bytebase.v1.UpdateDatabaseCatalogRequest"><span class="badge">M</span>UpdateDatabaseCatalogRequest</a></li>--++<li><a href="#bytebase.v1.ObjectSchema.Type"><span class="badge">E</span>ObjectSchema.Type</a></li>---+++<li><a href="#bytebase.v1.DatabaseCatalogService"><span class="badge">S</span>DatabaseCatalogService</a></li>-+</ul></li>--++<li><a href="#v1%2fdatabase_group_service.proto">v1/database_group_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreateDatabaseGroupRequest"><span class="badge">M</span>CreateDatabaseGroupRequest</a></li>-+<li><a href="#bytebase.v1.DatabaseGroup"><span class="badge">M</span>DatabaseGroup</a></li>-+<li><a href="#bytebase.v1.DatabaseGroup.Database"><span class="badge">M</span>DatabaseGroup.Database</a></li>-+<li><a href="#bytebase.v1.DeleteDatabaseGroupRequest"><span class="badge">M</span>DeleteDatabaseGroupRequest</a></li>-+<li><a href="#bytebase.v1.GetDatabaseGroupRequest"><span class="badge">M</span>GetDatabaseGroupRequest</a></li>-+<li><a href="#bytebase.v1.ListDatabaseGroupsRequest"><span class="badge">M</span>ListDatabaseGroupsRequest</a></li>-+<li><a href="#bytebase.v1.ListDatabaseGroupsResponse"><span class="badge">M</span>ListDatabaseGroupsResponse</a></li>-+<li><a href="#bytebase.v1.UpdateDatabaseGroupRequest"><span class="badge">M</span>UpdateDatabaseGroupRequest</a></li>--++<li><a href="#bytebase.v1.DatabaseGroupView"><span class="badge">E</span>DatabaseGroupView</a></li>---+++<li><a href="#bytebase.v1.DatabaseGroupService"><span class="badge">S</span>DatabaseGroupService</a></li>-+</ul></li>--++<li><a href="#v1%2fgroup_service.proto">v1/group_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchGetGroupsRequest"><span class="badge">M</span>BatchGetGroupsRequest</a></li>-+<li><a href="#bytebase.v1.BatchGetGroupsResponse"><span class="badge">M</span>BatchGetGroupsResponse</a></li>-+<li><a href="#bytebase.v1.CreateGroupRequest"><span class="badge">M</span>CreateGroupRequest</a></li>-+<li><a href="#bytebase.v1.DeleteGroupRequest"><span class="badge">M</span>DeleteGroupRequest</a></li>-+<li><a href="#bytebase.v1.GetGroupRequest"><span class="badge">M</span>GetGroupRequest</a></li>-+<li><a href="#bytebase.v1.Group"><span class="badge">M</span>Group</a></li>-+<li><a href="#bytebase.v1.GroupMember"><span class="badge">M</span>GroupMember</a></li>-+<li><a href="#bytebase.v1.ListGroupsRequest"><span class="badge">M</span>ListGroupsRequest</a></li>-+<li><a href="#bytebase.v1.ListGroupsResponse"><span class="badge">M</span>ListGroupsResponse</a></li>-+<li><a href="#bytebase.v1.UpdateGroupRequest"><span class="badge">M</span>UpdateGroupRequest</a></li>--++<li><a href="#bytebase.v1.GroupMember.Role"><span class="badge">E</span>GroupMember.Role</a></li>---+++<li><a href="#bytebase.v1.GroupService"><span class="badge">S</span>GroupService</a></li>-+</ul></li>--++<li><a href="#v1%2fidp_service.proto">v1/idp_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreateIdentityProviderRequest"><span class="badge">M</span>CreateIdentityProviderRequest</a></li>-+<li><a href="#bytebase.v1.DeleteIdentityProviderRequest"><span class="badge">M</span>DeleteIdentityProviderRequest</a></li>-+<li><a href="#bytebase.v1.FieldMapping"><span class="badge">M</span>FieldMapping</a></li>-+<li><a href="#bytebase.v1.GetIdentityProviderRequest"><span class="badge">M</span>GetIdentityProviderRequest</a></li>-+<li><a href="#bytebase.v1.IdentityProvider"><span class="badge">M</span>IdentityProvider</a></li>-+<li><a href="#bytebase.v1.IdentityProviderConfig"><span class="badge">M</span>IdentityProviderConfig</a></li>-+<li><a href="#bytebase.v1.LDAPIdentityProviderConfig"><span class="badge">M</span>LDAPIdentityProviderConfig</a></li>-+<li><a href="#bytebase.v1.ListIdentityProvidersRequest"><span class="badge">M</span>ListIdentityProvidersRequest</a></li>-+<li><a href="#bytebase.v1.ListIdentityProvidersResponse"><span class="badge">M</span>ListIdentityProvidersResponse</a></li>-+<li><a href="#bytebase.v1.OAuth2IdentityProviderConfig"><span class="badge">M</span>OAuth2IdentityProviderConfig</a></li>-+<li><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext"><span class="badge">M</span>OAuth2IdentityProviderTestRequestContext</a></li>-+<li><a href="#bytebase.v1.OIDCIdentityProviderConfig"><span class="badge">M</span>OIDCIdentityProviderConfig</a></li>-+<li><a href="#bytebase.v1.OIDCIdentityProviderTestRequestContext"><span class="badge">M</span>OIDCIdentityProviderTestRequestContext</a></li>-+<li><a href="#bytebase.v1.TestIdentityProviderRequest"><span class="badge">M</span>TestIdentityProviderRequest</a></li>-+<li><a href="#bytebase.v1.TestIdentityProviderResponse"><span class="badge">M</span>TestIdentityProviderResponse</a></li>-+<li><a href="#bytebase.v1.TestIdentityProviderResponse.ClaimsEntry"><span class="badge">M</span>TestIdentityProviderResponse.ClaimsEntry</a></li>-+<li><a href="#bytebase.v1.TestIdentityProviderResponse.UserInfoEntry"><span class="badge">M</span>TestIdentityProviderResponse.UserInfoEntry</a></li>-+<li><a href="#bytebase.v1.UpdateIdentityProviderRequest"><span class="badge">M</span>UpdateIdentityProviderRequest</a></li>--++<li><a href="#bytebase.v1.IdentityProviderType"><span class="badge">E</span>IdentityProviderType</a></li>-+<li><a href="#bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol"><span class="badge">E</span>LDAPIdentityProviderConfig.SecurityProtocol</a></li>-+<li><a href="#bytebase.v1.OAuth2AuthStyle"><span class="badge">E</span>OAuth2AuthStyle</a></li>---+++<li><a href="#bytebase.v1.IdentityProviderService"><span class="badge">S</span>IdentityProviderService</a></li>-+</ul></li>--++<li><a href="#v1%2forg_policy_service.proto">v1/org_policy_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreatePolicyRequest"><span class="badge">M</span>CreatePolicyRequest</a></li>-+<li><a href="#bytebase.v1.DeletePolicyRequest"><span class="badge">M</span>DeletePolicyRequest</a></li>-+<li><a href="#bytebase.v1.GetPolicyRequest"><span class="badge">M</span>GetPolicyRequest</a></li>-+<li><a href="#bytebase.v1.ListPoliciesRequest"><span class="badge">M</span>ListPoliciesRequest</a></li>-+<li><a href="#bytebase.v1.ListPoliciesResponse"><span class="badge">M</span>ListPoliciesResponse</a></li>-+<li><a href="#bytebase.v1.MaskingExemptionPolicy"><span class="badge">M</span>MaskingExemptionPolicy</a></li>-+<li><a href="#bytebase.v1.MaskingExemptionPolicy.Exemption"><span class="badge">M</span>MaskingExemptionPolicy.Exemption</a></li>-+<li><a href="#bytebase.v1.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a></li>-+<li><a href="#bytebase.v1.MaskingRulePolicy.MaskingRule"><span class="badge">M</span>MaskingRulePolicy.MaskingRule</a></li>-+<li><a href="#bytebase.v1.Policy"><span class="badge">M</span>Policy</a></li>-+<li><a href="#bytebase.v1.QueryDataPolicy"><span class="badge">M</span>QueryDataPolicy</a></li>-+<li><a href="#bytebase.v1.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a></li>-+<li><a href="#bytebase.v1.TagPolicy"><span class="badge">M</span>TagPolicy</a></li>-+<li><a href="#bytebase.v1.TagPolicy.TagsEntry"><span class="badge">M</span>TagPolicy.TagsEntry</a></li>-+<li><a href="#bytebase.v1.UpdatePolicyRequest"><span class="badge">M</span>UpdatePolicyRequest</a></li>--++<li><a href="#bytebase.v1.PolicyResourceType"><span class="badge">E</span>PolicyResourceType</a></li>-+<li><a href="#bytebase.v1.PolicyType"><span class="badge">E</span>PolicyType</a></li>---+++<li><a href="#bytebase.v1.OrgPolicyService"><span class="badge">S</span>OrgPolicyService</a></li>-+</ul></li>--++<li><a href="#v1%2fproject_service.proto">v1/project_service.proto</a><ul>-+<li><a href="#bytebase.v1.Activity"><span class="badge">M</span>Activity</a></li>-+<li><a href="#bytebase.v1.AddWebhookRequest"><span class="badge">M</span>AddWebhookRequest</a></li>-+<li><a href="#bytebase.v1.BatchDeleteProjectsRequest"><span class="badge">M</span>BatchDeleteProjectsRequest</a></li>-+<li><a href="#bytebase.v1.BatchGetProjectsRequest"><span class="badge">M</span>BatchGetProjectsRequest</a></li>-+<li><a href="#bytebase.v1.BatchGetProjectsResponse"><span class="badge">M</span>BatchGetProjectsResponse</a></li>-+<li><a href="#bytebase.v1.CreateProjectRequest"><span class="badge">M</span>CreateProjectRequest</a></li>-+<li><a href="#bytebase.v1.DeleteProjectRequest"><span class="badge">M</span>DeleteProjectRequest</a></li>-+<li><a href="#bytebase.v1.GetProjectRequest"><span class="badge">M</span>GetProjectRequest</a></li>-+<li><a href="#bytebase.v1.Label"><span class="badge">M</span>Label</a></li>-+<li><a href="#bytebase.v1.ListProjectsRequest"><span class="badge">M</span>ListProjectsRequest</a></li>-+<li><a href="#bytebase.v1.ListProjectsResponse"><span class="badge">M</span>ListProjectsResponse</a></li>-+<li><a href="#bytebase.v1.Project"><span class="badge">M</span>Project</a></li>-+<li><a href="#bytebase.v1.Project.ExecutionRetryPolicy"><span class="badge">M</span>Project.ExecutionRetryPolicy</a></li>-+<li><a href="#bytebase.v1.Project.LabelsEntry"><span class="badge">M</span>Project.LabelsEntry</a></li>-+<li><a href="#bytebase.v1.RemoveWebhookRequest"><span class="badge">M</span>RemoveWebhookRequest</a></li>-+<li><a href="#bytebase.v1.SearchProjectsRequest"><span class="badge">M</span>SearchProjectsRequest</a></li>-+<li><a href="#bytebase.v1.SearchProjectsResponse"><span class="badge">M</span>SearchProjectsResponse</a></li>-+<li><a href="#bytebase.v1.TestWebhookRequest"><span class="badge">M</span>TestWebhookRequest</a></li>-+<li><a href="#bytebase.v1.TestWebhookResponse"><span class="badge">M</span>TestWebhookResponse</a></li>-+<li><a href="#bytebase.v1.UndeleteProjectRequest"><span class="badge">M</span>UndeleteProjectRequest</a></li>-+<li><a href="#bytebase.v1.UpdateProjectRequest"><span class="badge">M</span>UpdateProjectRequest</a></li>-+<li><a href="#bytebase.v1.UpdateWebhookRequest"><span class="badge">M</span>UpdateWebhookRequest</a></li>-+<li><a href="#bytebase.v1.Webhook"><span class="badge">M</span>Webhook</a></li>--++<li><a href="#bytebase.v1.Activity.Type"><span class="badge">E</span>Activity.Type</a></li>---+++<li><a href="#bytebase.v1.ProjectService"><span class="badge">S</span>ProjectService</a></li>-+</ul></li>--++<li><a href="#v1%2frelease_service.proto">v1/release_service.proto</a><ul>-+<li><a href="#bytebase.v1.CheckReleaseRequest"><span class="badge">M</span>CheckReleaseRequest</a></li>-+<li><a href="#bytebase.v1.CheckReleaseResponse"><span class="badge">M</span>CheckReleaseResponse</a></li>-+<li><a href="#bytebase.v1.CheckReleaseResponse.CheckResult"><span class="badge">M</span>CheckReleaseResponse.CheckResult</a></li>-+<li><a href="#bytebase.v1.CreateReleaseRequest"><span class="badge">M</span>CreateReleaseRequest</a></li>-+<li><a href="#bytebase.v1.DeleteReleaseRequest"><span class="badge">M</span>DeleteReleaseRequest</a></li>-+<li><a href="#bytebase.v1.GetReleaseRequest"><span class="badge">M</span>GetReleaseRequest</a></li>-+<li><a href="#bytebase.v1.ListReleaseCategoriesRequest"><span class="badge">M</span>ListReleaseCategoriesRequest</a></li>-+<li><a href="#bytebase.v1.ListReleaseCategoriesResponse"><span class="badge">M</span>ListReleaseCategoriesResponse</a></li>-+<li><a href="#bytebase.v1.ListReleasesRequest"><span class="badge">M</span>ListReleasesRequest</a></li>-+<li><a href="#bytebase.v1.ListReleasesResponse"><span class="badge">M</span>ListReleasesResponse</a></li>-+<li><a href="#bytebase.v1.Release"><span class="badge">M</span>Release</a></li>-+<li><a href="#bytebase.v1.Release.File"><span class="badge">M</span>Release.File</a></li>-+<li><a href="#bytebase.v1.Release.VCSSource"><span class="badge">M</span>Release.VCSSource</a></li>-+<li><a href="#bytebase.v1.UndeleteReleaseRequest"><span class="badge">M</span>UndeleteReleaseRequest</a></li>-+<li><a href="#bytebase.v1.UpdateReleaseRequest"><span class="badge">M</span>UpdateReleaseRequest</a></li>-+<li><a href="#bytebase.v1.VCSUser"><span class="badge">M</span>VCSUser</a></li>--++<li><a href="#bytebase.v1.Release.Type"><span class="badge">E</span>Release.Type</a></li>---+++<li><a href="#bytebase.v1.ReleaseService"><span class="badge">S</span>ReleaseService</a></li>-+</ul></li>--++<li><a href="#v1%2freview_config_service.proto">v1/review_config_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreateReviewConfigRequest"><span class="badge">M</span>CreateReviewConfigRequest</a></li>-+<li><a href="#bytebase.v1.DeleteReviewConfigRequest"><span class="badge">M</span>DeleteReviewConfigRequest</a></li>-+<li><a href="#bytebase.v1.GetReviewConfigRequest"><span class="badge">M</span>GetReviewConfigRequest</a></li>-+<li><a href="#bytebase.v1.ListReviewConfigsRequest"><span class="badge">M</span>ListReviewConfigsRequest</a></li>-+<li><a href="#bytebase.v1.ListReviewConfigsResponse"><span class="badge">M</span>ListReviewConfigsResponse</a></li>-+<li><a href="#bytebase.v1.ReviewConfig"><span class="badge">M</span>ReviewConfig</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.CommentConventionRulePayload"><span class="badge">M</span>SQLReviewRule.CommentConventionRulePayload</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.NamingCaseRulePayload"><span class="badge">M</span>SQLReviewRule.NamingCaseRulePayload</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.NamingRulePayload"><span class="badge">M</span>SQLReviewRule.NamingRulePayload</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.NumberRulePayload"><span class="badge">M</span>SQLReviewRule.NumberRulePayload</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.StringArrayRulePayload"><span class="badge">M</span>SQLReviewRule.StringArrayRulePayload</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.StringRulePayload"><span class="badge">M</span>SQLReviewRule.StringRulePayload</a></li>-+<li><a href="#bytebase.v1.UpdateReviewConfigRequest"><span class="badge">M</span>UpdateReviewConfigRequest</a></li>--++<li><a href="#bytebase.v1.SQLReviewRule.Level"><span class="badge">E</span>SQLReviewRule.Level</a></li>-+<li><a href="#bytebase.v1.SQLReviewRule.Type"><span class="badge">E</span>SQLReviewRule.Type</a></li>---+++<li><a href="#bytebase.v1.ReviewConfigService"><span class="badge">S</span>ReviewConfigService</a></li>-+</ul></li>--++<li><a href="#v1%2frevision_service.proto">v1/revision_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchCreateRevisionsRequest"><span class="badge">M</span>BatchCreateRevisionsRequest</a></li>-+<li><a href="#bytebase.v1.BatchCreateRevisionsResponse"><span class="badge">M</span>BatchCreateRevisionsResponse</a></li>-+<li><a href="#bytebase.v1.CreateRevisionRequest"><span class="badge">M</span>CreateRevisionRequest</a></li>-+<li><a href="#bytebase.v1.DeleteRevisionRequest"><span class="badge">M</span>DeleteRevisionRequest</a></li>-+<li><a href="#bytebase.v1.GetRevisionRequest"><span class="badge">M</span>GetRevisionRequest</a></li>-+<li><a href="#bytebase.v1.ListRevisionsRequest"><span class="badge">M</span>ListRevisionsRequest</a></li>-+<li><a href="#bytebase.v1.ListRevisionsResponse"><span class="badge">M</span>ListRevisionsResponse</a></li>-+<li><a href="#bytebase.v1.Revision"><span class="badge">M</span>Revision</a></li>--++<li><a href="#bytebase.v1.Revision.Type"><span class="badge">E</span>Revision.Type</a></li>---+++<li><a href="#bytebase.v1.RevisionService"><span class="badge">S</span>RevisionService</a></li>-+</ul></li>--++<li><a href="#v1%2frole_service.proto">v1/role_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreateRoleRequest"><span class="badge">M</span>CreateRoleRequest</a></li>-+<li><a href="#bytebase.v1.DeleteRoleRequest"><span class="badge">M</span>DeleteRoleRequest</a></li>-+<li><a href="#bytebase.v1.GetRoleRequest"><span class="badge">M</span>GetRoleRequest</a></li>-+<li><a href="#bytebase.v1.ListRolesRequest"><span class="badge">M</span>ListRolesRequest</a></li>-+<li><a href="#bytebase.v1.ListRolesResponse"><span class="badge">M</span>ListRolesResponse</a></li>-+<li><a href="#bytebase.v1.Role"><span class="badge">M</span>Role</a></li>-+<li><a href="#bytebase.v1.UpdateRoleRequest"><span class="badge">M</span>UpdateRoleRequest</a></li>--++<li><a href="#bytebase.v1.Role.Type"><span class="badge">E</span>Role.Type</a></li>---+++<li><a href="#bytebase.v1.RoleService"><span class="badge">S</span>RoleService</a></li>-+</ul></li>--++<li><a href="#v1%2fservice_account_service.proto">v1/service_account_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreateServiceAccountRequest"><span class="badge">M</span>CreateServiceAccountRequest</a></li>-+<li><a href="#bytebase.v1.DeleteServiceAccountRequest"><span class="badge">M</span>DeleteServiceAccountRequest</a></li>-+<li><a href="#bytebase.v1.GetServiceAccountRequest"><span class="badge">M</span>GetServiceAccountRequest</a></li>-+<li><a href="#bytebase.v1.ListServiceAccountsRequest"><span class="badge">M</span>ListServiceAccountsRequest</a></li>-+<li><a href="#bytebase.v1.ListServiceAccountsResponse"><span class="badge">M</span>ListServiceAccountsResponse</a></li>-+<li><a href="#bytebase.v1.ServiceAccount"><span class="badge">M</span>ServiceAccount</a></li>-+<li><a href="#bytebase.v1.UndeleteServiceAccountRequest"><span class="badge">M</span>UndeleteServiceAccountRequest</a></li>-+<li><a href="#bytebase.v1.UpdateServiceAccountRequest"><span class="badge">M</span>UpdateServiceAccountRequest</a></li>----++++<li><a href="#bytebase.v1.ServiceAccountService"><span class="badge">S</span>ServiceAccountService</a></li>-+</ul></li>--++<li><a href="#v1%2fsheet_service.proto">v1/sheet_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchCreateSheetsRequest"><span class="badge">M</span>BatchCreateSheetsRequest</a></li>-+<li><a href="#bytebase.v1.BatchCreateSheetsResponse"><span class="badge">M</span>BatchCreateSheetsResponse</a></li>-+<li><a href="#bytebase.v1.CreateSheetRequest"><span class="badge">M</span>CreateSheetRequest</a></li>-+<li><a href="#bytebase.v1.GetSheetRequest"><span class="badge">M</span>GetSheetRequest</a></li>-+<li><a href="#bytebase.v1.Sheet"><span class="badge">M</span>Sheet</a></li>----++++<li><a href="#bytebase.v1.SheetService"><span class="badge">S</span>SheetService</a></li>-+</ul></li>--++<li><a href="#v1%2fsubscription_service.proto">v1/subscription_service.proto</a><ul>-+<li><a href="#bytebase.v1.CancelPurchaseRequest"><span class="badge">M</span>CancelPurchaseRequest</a></li>-+<li><a href="#bytebase.v1.CreatePurchaseRequest"><span class="badge">M</span>CreatePurchaseRequest</a></li>-+<li><a href="#bytebase.v1.ExportVCSProviderUsersRequest"><span class="badge">M</span>ExportVCSProviderUsersRequest</a></li>-+<li><a href="#bytebase.v1.GetPaymentInfoRequest"><span class="badge">M</span>GetPaymentInfoRequest</a></li>-+<li><a href="#bytebase.v1.GetSubscriptionRequest"><span class="badge">M</span>GetSubscriptionRequest</a></li>-+<li><a href="#bytebase.v1.ListPurchasePlansRequest"><span class="badge">M</span>ListPurchasePlansRequest</a></li>-+<li><a href="#bytebase.v1.ListPurchasePlansResponse"><span class="badge">M</span>ListPurchasePlansResponse</a></li>-+<li><a href="#bytebase.v1.PaymentInfo"><span class="badge">M</span>PaymentInfo</a></li>-+<li><a href="#bytebase.v1.PlanConfig"><span class="badge">M</span>PlanConfig</a></li>-+<li><a href="#bytebase.v1.PlanLimitConfig"><span class="badge">M</span>PlanLimitConfig</a></li>-+<li><a href="#bytebase.v1.PurchaseBillingMethod"><span class="badge">M</span>PurchaseBillingMethod</a></li>-+<li><a href="#bytebase.v1.PurchaseDiscount"><span class="badge">M</span>PurchaseDiscount</a></li>-+<li><a href="#bytebase.v1.PurchasePlan"><span class="badge">M</span>PurchasePlan</a></li>-+<li><a href="#bytebase.v1.PurchasePlanAdditional"><span class="badge">M</span>PurchasePlanAdditional</a></li>-+<li><a href="#bytebase.v1.PurchaseResponse"><span class="badge">M</span>PurchaseResponse</a></li>-+<li><a href="#bytebase.v1.Subscription"><span class="badge">M</span>Subscription</a></li>-+<li><a href="#bytebase.v1.UpdatePurchaseRequest"><span class="badge">M</span>UpdatePurchaseRequest</a></li>-+<li><a href="#bytebase.v1.UploadLicenseRequest"><span class="badge">M</span>UploadLicenseRequest</a></li>-+<li><a href="#bytebase.v1.VerifyCheckoutSessionRequest"><span class="badge">M</span>VerifyCheckoutSessionRequest</a></li>-+<li><a href="#bytebase.v1.VerifyCheckoutSessionResponse"><span class="badge">M</span>VerifyCheckoutSessionResponse</a></li>--++<li><a href="#bytebase.v1.BillingInterval"><span class="badge">E</span>BillingInterval</a></li>-+<li><a href="#bytebase.v1.PlanFeature"><span class="badge">E</span>PlanFeature</a></li>-+<li><a href="#bytebase.v1.PlanType"><span class="badge">E</span>PlanType</a></li>-+<li><a href="#bytebase.v1.PurchaseDiscount.Type"><span class="badge">E</span>PurchaseDiscount.Type</a></li>-+<li><a href="#bytebase.v1.PurchasePlanAdditional.Type"><span class="badge">E</span>PurchasePlanAdditional.Type</a></li>---+++<li><a href="#bytebase.v1.SubscriptionService"><span class="badge">S</span>SubscriptionService</a></li>-+</ul></li>--++<li><a href="#v1%2fworkload_identity_service.proto">v1/workload_identity_service.proto</a><ul>-+<li><a href="#bytebase.v1.CreateWorkloadIdentityRequest"><span class="badge">M</span>CreateWorkloadIdentityRequest</a></li>-+<li><a href="#bytebase.v1.DeleteWorkloadIdentityRequest"><span class="badge">M</span>DeleteWorkloadIdentityRequest</a></li>-+<li><a href="#bytebase.v1.GetWorkloadIdentityRequest"><span class="badge">M</span>GetWorkloadIdentityRequest</a></li>-+<li><a href="#bytebase.v1.ListWorkloadIdentitiesRequest"><span class="badge">M</span>ListWorkloadIdentitiesRequest</a></li>-+<li><a href="#bytebase.v1.ListWorkloadIdentitiesResponse"><span class="badge">M</span>ListWorkloadIdentitiesResponse</a></li>-+<li><a href="#bytebase.v1.UndeleteWorkloadIdentityRequest"><span class="badge">M</span>UndeleteWorkloadIdentityRequest</a></li>-+<li><a href="#bytebase.v1.UpdateWorkloadIdentityRequest"><span class="badge">M</span>UpdateWorkloadIdentityRequest</a></li>-+<li><a href="#bytebase.v1.WorkloadIdentity"><span class="badge">M</span>WorkloadIdentity</a></li>-+<li><a href="#bytebase.v1.WorkloadIdentityConfig"><span class="badge">M</span>WorkloadIdentityConfig</a></li>--++<li><a href="#bytebase.v1.WorkloadIdentityConfig.ProviderType"><span class="badge">E</span>WorkloadIdentityConfig.ProviderType</a></li>---+++<li><a href="#bytebase.v1.WorkloadIdentityService"><span class="badge">S</span>WorkloadIdentityService</a></li>-+</ul></li>--++<li><a href="#v1%2fworksheet_service.proto">v1/worksheet_service.proto</a><ul>-+<li><a href="#bytebase.v1.BatchUpdateWorksheetOrganizerRequest"><span class="badge">M</span>BatchUpdateWorksheetOrganizerRequest</a></li>-+<li><a href="#bytebase.v1.BatchUpdateWorksheetOrganizerResponse"><span class="badge">M</span>BatchUpdateWorksheetOrganizerResponse</a></li>-+<li><a href="#bytebase.v1.CreateWorksheetRequest"><span class="badge">M</span>CreateWorksheetRequest</a></li>-+<li><a href="#bytebase.v1.DeleteWorksheetRequest"><span class="badge">M</span>DeleteWorksheetRequest</a></li>-+<li><a href="#bytebase.v1.GetWorksheetRequest"><span class="badge">M</span>GetWorksheetRequest</a></li>-+<li><a href="#bytebase.v1.SearchWorksheetsRequest"><span class="badge">M</span>SearchWorksheetsRequest</a></li>-+<li><a href="#bytebase.v1.SearchWorksheetsResponse"><span class="badge">M</span>SearchWorksheetsResponse</a></li>-+<li><a href="#bytebase.v1.UpdateWorksheetOrganizerRequest"><span class="badge">M</span>UpdateWorksheetOrganizerRequest</a></li>-+<li><a href="#bytebase.v1.UpdateWorksheetRequest"><span class="badge">M</span>UpdateWorksheetRequest</a></li>-+<li><a href="#bytebase.v1.Worksheet"><span class="badge">M</span>Worksheet</a></li>-+<li><a href="#bytebase.v1.WorksheetOrganizer"><span class="badge">M</span>WorksheetOrganizer</a></li>--++<li><a href="#bytebase.v1.Worksheet.Visibility"><span class="badge">E</span>Worksheet.Visibility</a></li>---+++<li><a href="#bytebase.v1.WorksheetService"><span class="badge">S</span>WorksheetService</a></li>-+</ul></li>--++<li><a href="#v1%2fworkspace_service.proto">v1/workspace_service.proto</a><ul>-+<li><a href="#bytebase.v1.DeleteWorkspaceRequest"><span class="badge">M</span>DeleteWorkspaceRequest</a></li>-+<li><a href="#bytebase.v1.GetWorkspaceRequest"><span class="badge">M</span>GetWorkspaceRequest</a></li>-+<li><a href="#bytebase.v1.LeaveWorkspaceRequest"><span class="badge">M</span>LeaveWorkspaceRequest</a></li>-+<li><a href="#bytebase.v1.ListWorkspacesRequest"><span class="badge">M</span>ListWorkspacesRequest</a></li>-+<li><a href="#bytebase.v1.ListWorkspacesResponse"><span class="badge">M</span>ListWorkspacesResponse</a></li>-+<li><a href="#bytebase.v1.UpdateWorkspaceRequest"><span class="badge">M</span>UpdateWorkspaceRequest</a></li>-+<li><a href="#bytebase.v1.Workspace"><span class="badge">M</span>Workspace</a></li>----++++<li><a href="#bytebase.v1.WorkspaceService"><span class="badge">S</span>WorkspaceService</a></li>-+</ul></li>-+<li><a href="#scalar-value-types">Scalar Value Types</a></li></ul></div>--++<div class="file-heading"><h2 id="v1/annotation.proto">v1/annotation.proto</h2><a href="#title">Top</a></div><p></p>--++<h3 id="bytebase.v1.AuthMethod">AuthMethod</h3><p>Authorization method for RPC calls.</p><table class="enum-table">@@ -3092,37 +3092,37 @@<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTH_METHOD_UNSPECIFIED</td><td>0</td><td><p>Unspecified authorization method.</p></td></tr>-+<tr><td>IAM</td><td>1</td><td><p>Standard IAM authorization check on organizational resources.</p></td></tr>-+<tr><td>CUSTOM</td><td>2</td><td><p>Custom authorization logic.</p></td></tr>-+</tbody></table>--++<h3 id="v1/annotation.proto-extensions">File-level Extensions</h3><table class="extension-table"><thead><tr><td>Extension</td><td>Type</td><td>Base</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>allow_without_credential</td><td><a href="#bool">bool</a></td>@@ -3130,7 +3130,7 @@<td>100000</td><td><p>Whether the method allows access without authentication credentials.</p></td></tr>-+<tr><td>audit</td><td><a href="#bool">bool</a></td>@@ -3138,7 +3138,7 @@<td>100003</td><td><p>Whether to audit calls to this method.</p></td></tr>-+<tr><td>auth_method</td><td><a href="#bytebase.v1.AuthMethod">AuthMethod</a></td>@@ -3146,7 +3146,7 @@<td>100002</td><td><p>The authorization method to use for this RPC.</p></td></tr>-+<tr><td>permission</td><td><a href="#string">string</a></td>@@ -3154,30 +3154,30 @@<td>100001</td><td><p>The permission required to call this method.</p></td></tr>-+</tbody></table>----++++<div class="file-heading"><h2 id="v1/access_grant_service.proto">v1/access_grant_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.AccessGrant">AccessGrant</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -3186,7 +3186,7 @@Format: projects/{project}/accessGrants/{access_grant}The {access_grant} segment is a server-generated unique ID. </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td>@@ -3194,7 +3194,7 @@ The {access_grant} segment is a server-generated unique ID. </p></td><td><p>The creator of the access grant.Format: users/{email} </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.AccessGrant.Status">AccessGrant.Status</a></td>@@ -3204,14 +3204,14 @@ An ACTIVE grant with `expire_time` in the past is effectively expiredand no longer authorizes access. Use `expire_time` to determinewhether an ACTIVE grant has expired. </p></td></tr>-+<tr><td>expire_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The expiration time of the access grant. </p></td></tr>-+<tr><td>ttl</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>@@ -3219,7 +3219,7 @@ whether an ACTIVE grant has expired. </p></td><td><p>Input only. The time-to-live duration for the access grant.The server computes `expire_time` from this value at activation time. </p></td></tr>-+<tr><td>issue</td><td><a href="#string">string</a></td>@@ -3228,7 +3228,7 @@ The server computes `expire_time` from this value at activation time. </p></td>Can be empty.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -3236,66 +3236,66 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The target databases for this access grant.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>query</td><td><a href="#string">string</a></td><td></td><td><p>The query permission granted. </p></td></tr>-+<tr><td>unmask</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the grant allows unmasking sensitive data. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>reason</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>export</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether export the query result. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ActivateAccessGrantRequest">ActivateAccessGrantRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -3303,24 +3303,24 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The name of the access grant to activate.Format: projects/{project}/accessGrants/{access_grant} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateAccessGrantRequest">CreateAccessGrantRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -3328,31 +3328,31 @@ Format: projects/{project}/accessGrants/{access_grant} </p></td><td><p>The parent project for the access grant.Format: projects/{project} </p></td></tr>-+<tr><td>access_grant</td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td></td><td><p>The access grant to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetAccessGrantRequest">GetAccessGrantRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -3360,24 +3360,24 @@ Format: projects/{project} </p></td><td><p>The name of the access grant to retrieve.Format: projects/{project}/accessGrants/{access_grant} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListAccessGrantsRequest">ListAccessGrantsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -3385,21 +3385,21 @@ Format: projects/{project}/accessGrants/{access_grant} </p></td><td><p>The parent project of the access grants.Format: projects/{project} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of access grants to return. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td><td></td><td><p>A page token from a previous ListAccessGrants call. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -3428,7 +3428,7 @@ Examples:- unmask == true- export == true && status == "ACTIVE" </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -3440,31 +3440,31 @@ For example:- order_by = "expire_time desc"- order_by = "expire_time asc, create_time desc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListAccessGrantsResponse">ListAccessGrantsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>access_grants</td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td>repeated</td><td><p>The access grants from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -3472,24 +3472,24 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RevokeAccessGrantRequest">RevokeAccessGrantRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -3497,24 +3497,24 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the access grant to revoke.Format: projects/{project}/accessGrants/{access_grant} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchMyAccessGrantsRequest">SearchMyAccessGrantsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -3522,59 +3522,59 @@ Format: projects/{project}/accessGrants/{access_grant} </p></td><td><p>The parent project to search in.Format: projects/{project} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of access grants to return. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td><td></td><td><p>A page token from a previous SearchMyAccessGrants call. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td><td></td><td><p>Check the filter field in the ListAccessGrantsRequest message. </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td><td></td><td><p>Check the order_by field in the ListAccessGrantsRequest message. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchMyAccessGrantsResponse">SearchMyAccessGrantsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>access_grants</td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td>repeated</td><td><p>The access grants from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -3582,16 +3582,16 @@ Format: projects/{project} </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.AccessGrant.Status">AccessGrant.Status</h3><p>The status of the access grant.</p><table class="enum-table">@@ -3599,39 +3599,39 @@ If this field is omitted, there are no subsequent pages. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p>The access grant is pending approval.</p></td></tr>-+<tr><td>ACTIVE</td><td>2</td><td><p>The access grant is active. Check `expire_time` to determinewhether the grant is still valid or has expired.</p></td></tr>-+<tr><td>REVOKED</td><td>3</td><td><p>The access grant has been revoked.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AccessGrantService">AccessGrantService</h3><p>AccessGrantService manages temporary access grants within projects.</p><table class="enum-table">@@ -3639,55 +3639,55 @@ whether the grant is still valid or has expired.</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetAccessGrant</td><td><a href="#bytebase.v1.GetAccessGrantRequest">GetAccessGrantRequest</a></td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td><p>Gets an access grant by name.</p></td></tr>-+<tr><td>ListAccessGrants</td><td><a href="#bytebase.v1.ListAccessGrantsRequest">ListAccessGrantsRequest</a></td><td><a href="#bytebase.v1.ListAccessGrantsResponse">ListAccessGrantsResponse</a></td><td><p>Lists access grants in a project.</p></td></tr>-+<tr><td>CreateAccessGrant</td><td><a href="#bytebase.v1.CreateAccessGrantRequest">CreateAccessGrantRequest</a></td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td><p>Creates an access grant.</p></td></tr>-+<tr><td>ActivateAccessGrant</td><td><a href="#bytebase.v1.ActivateAccessGrantRequest">ActivateAccessGrantRequest</a></td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td><p>Activates a pending access grant.</p></td></tr>-+<tr><td>RevokeAccessGrant</td><td><a href="#bytebase.v1.RevokeAccessGrantRequest">RevokeAccessGrantRequest</a></td><td><a href="#bytebase.v1.AccessGrant">AccessGrant</a></td><td><p>Revokes an active access grant.</p></td></tr>-+<tr><td>SearchMyAccessGrants</td><td><a href="#bytebase.v1.SearchMyAccessGrantsRequest">SearchMyAccessGrantsRequest</a></td><td><a href="#bytebase.v1.SearchMyAccessGrantsResponse">SearchMyAccessGrantsResponse</a></td><td><p>Searches access grants created by the caller.</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -3699,127 +3699,127 @@ whether the grant is still valid or has expired.</p></td></tr></thead><tbody>---+++<tr><td>GetAccessGrant</td><td>GET</td><td>/v1/{name=projects/*/accessGrants/*}</td><td></td></tr>----++++<tr><td>ListAccessGrants</td><td>GET</td><td>/v1/{parent=projects/*}/accessGrants</td><td></td></tr>----++++<tr><td>CreateAccessGrant</td><td>POST</td><td>/v1/{parent=projects/*}/accessGrants</td><td>access_grant</td></tr>----++++<tr><td>ActivateAccessGrant</td><td>POST</td><td>/v1/{name=projects/*/accessGrants/*}:activate</td><td>*</td></tr>----++++<tr><td>RevokeAccessGrant</td><td>POST</td><td>/v1/{name=projects/*/accessGrants/*}:revoke</td><td>*</td></tr>----++++<tr><td>SearchMyAccessGrants</td><td>POST</td><td>/v1/{parent=projects/*}/accessGrants:searchMy</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/common.proto">v1/common.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.PermissionDeniedDetail">PermissionDeniedDetail</h3><p>PermissionDeniedDetail provides structured information about permission failures.</p><p>Used as error detail when returning CodePermissionDenied errors.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>method</td><td><a href="#string">string</a></td><td></td><td><p>The API method that was called. </p></td></tr>-+<tr><td>required_permissions</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The permissions required but not granted to the user. </p></td></tr>-+<tr><td>resources</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The resources the user was trying to access. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Position">Position</h3><p>Position in a text expressed as one-based line and one-based column.</p><p>We use 1-based numbering to match the majority of industry standards:</p><p>- Monaco Editor uses 1-based (https://microsoft.github.io/monaco-editor/typedoc/interfaces/IPosition.html)</p><p>- GitHub Actions uses 1-based (https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message)</p><p>- Most text editors display 1-based positions to users</p><p>Note: LSP uses 0-based (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position),</p><p>but we follow the canonical user-facing standards.</p><p>Handling unknown positions:</p><p>- If the entire position is unknown, leave this field as nil/undefined</p><p>- If only line is known, set line and leave column as 0 (e.g., line=5, column=0)</p><p>- If only column is known (rare), set column and leave line as 0</p><p>Frontends should check for nil/undefined/zero values and handle them appropriately.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>line</td><td><a href="#int32">int32</a></td>@@ -3828,7 +3828,7 @@ whether the grant is still valid or has expired.</p></td>First line of the text is line 1.A value of 0 indicates the line information is unknown. </p></td></tr>-+<tr><td>column</td><td><a href="#int32">int32</a></td>@@ -3843,47 +3843,47 @@ Examples:- "SELECT 你好 FROM t" - column 8 is '你' (even though it's at byte offset 7)- "SELECT 😀 FROM t" - column 8 is '😀' (even though it's 4 bytes in UTF-8) </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Range">Range</h3><p>Range represents a span within a text or sequence.</p><p>Whether the indices are byte offsets or character indices depends on the context.</p><p>Check the documentation of the field using Range for specific semantics.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start</td><td><a href="#int32">int32</a></td><td></td><td><p>Start index (inclusive). </p></td></tr>-+<tr><td>end</td><td><a href="#int32">int32</a></td><td></td><td><p>End index (exclusive). </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.ApprovalStatus">ApprovalStatus</h3><p>Approval workflow status for an issue or a plan.</p><p>Lives at the top level so both plan_service.proto and issue_service.proto</p><p>can reference it without a circular import.</p><table class="enum-table">@@ -3891,46 +3891,46 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>APPROVAL_STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified approval status.</p></td></tr>-+<tr><td>CHECKING</td><td>1</td><td><p>Approval checks are being evaluated.</p></td></tr>-+<tr><td>PENDING</td><td>2</td><td><p>Approval is pending.</p></td></tr>-+<tr><td>APPROVED</td><td>3</td><td><p>Issue has been approved.</p></td></tr>-+<tr><td>REJECTED</td><td>4</td><td><p>Issue has been rejected.</p></td></tr>-+<tr><td>SKIPPED</td><td>5</td><td><p>Approval was skipped.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.Engine">Engine</h3><p>Database engine type.</p><table class="enum-table">@@ -3938,166 +3938,166 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ENGINE_UNSPECIFIED</td><td>0</td><td><p>Unspecified database engine.</p></td></tr>-+<tr><td>CLICKHOUSE</td><td>1</td><td><p>ClickHouse columnar database.</p></td></tr>-+<tr><td>MYSQL</td><td>2</td><td><p>MySQL relational database.</p></td></tr>-+<tr><td>POSTGRES</td><td>3</td><td><p>PostgreSQL relational database.</p></td></tr>-+<tr><td>SNOWFLAKE</td><td>4</td><td><p>Snowflake cloud data warehouse.</p></td></tr>-+<tr><td>SQLITE</td><td>5</td><td><p>SQLite embedded database.</p></td></tr>-+<tr><td>TIDB</td><td>6</td><td><p>TiDB distributed SQL database.</p></td></tr>-+<tr><td>MONGODB</td><td>7</td><td><p>MongoDB document database.</p></td></tr>-+<tr><td>REDIS</td><td>8</td><td><p>Redis key-value store.</p></td></tr>-+<tr><td>ORACLE</td><td>9</td><td><p>Oracle relational database.</p></td></tr>-+<tr><td>SPANNER</td><td>10</td><td><p>Google Cloud Spanner distributed database.</p></td></tr>-+<tr><td>MSSQL</td><td>11</td><td><p>Microsoft SQL Server relational database.</p></td></tr>-+<tr><td>REDSHIFT</td><td>12</td><td><p>Amazon Redshift data warehouse.</p></td></tr>-+<tr><td>MARIADB</td><td>13</td><td><p>MariaDB relational database.</p></td></tr>-+<tr><td>OCEANBASE</td><td>14</td><td><p>OceanBase distributed database.</p></td></tr>-+<tr><td>STARROCKS</td><td>15</td><td><p>StarRocks analytics database.</p></td></tr>-+<tr><td>DORIS</td><td>16</td><td><p>Apache Doris analytics database.</p></td></tr>-+<tr><td>HIVE</td><td>17</td><td><p>Apache Hive data warehouse.</p></td></tr>-+<tr><td>ELASTICSEARCH</td><td>18</td><td><p>Elasticsearch search engine.</p></td></tr>-+<tr><td>BIGQUERY</td><td>19</td><td><p>Google BigQuery data warehouse.</p></td></tr>-+<tr><td>DYNAMODB</td><td>20</td><td><p>Amazon DynamoDB NoSQL database.</p></td></tr>-+<tr><td>DATABRICKS</td><td>21</td><td><p>Databricks lakehouse platform.</p></td></tr>-+<tr><td>COCKROACHDB</td><td>22</td><td><p>CockroachDB distributed SQL database.</p></td></tr>-+<tr><td>COSMOSDB</td><td>23</td><td><p>Azure Cosmos DB multi-model database.</p></td></tr>-+<tr><td>TRINO</td><td>24</td><td><p>Trino distributed SQL query engine.</p></td></tr>-+<tr><td>CASSANDRA</td><td>25</td><td><p>Apache Cassandra NoSQL database.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.ExportFormat">ExportFormat</h3><p>Data export format.</p><table class="enum-table">@@ -4105,40 +4105,40 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>FORMAT_UNSPECIFIED</td><td>0</td><td><p>Unspecified export format.</p></td></tr>-+<tr><td>CSV</td><td>1</td><td><p>Comma-separated values format.</p></td></tr>-+<tr><td>JSON</td><td>2</td><td><p>JavaScript Object Notation format.</p></td></tr>-+<tr><td>SQL</td><td>3</td><td><p>SQL statements format.</p></td></tr>-+<tr><td>XLSX</td><td>4</td><td><p>Microsoft Excel spreadsheet format.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.RiskLevel">RiskLevel</h3><p>RiskLevel is the risk level.</p><table class="enum-table">@@ -4146,34 +4146,34 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>RISK_LEVEL_UNSPECIFIED</td><td>0</td><td><p>Unspecified risk level.</p></td></tr>-+<tr><td>LOW</td><td>1</td><td><p>Low risk operation.</p></td></tr>-+<tr><td>MODERATE</td><td>2</td><td><p>Moderate risk operation.</p></td></tr>-+<tr><td>HIGH</td><td>3</td><td><p>High risk operation.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.State">State</h3><p>Resource lifecycle state.</p><table class="enum-table">@@ -4181,28 +4181,28 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ACTIVE</td><td>1</td><td><p>Resource is active and operational.</p></td></tr>-+<tr><td>DELETED</td><td>2</td><td><p>Resource is soft-deleted but may be recoverable.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.StatementType">StatementType</h3><p>StatementType represents the type of SQL statement.</p><table class="enum-table">@@ -4210,256 +4210,256 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATEMENT_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CREATE_DATABASE</td><td>1</td><td><p>DDL - CREATE statements</p></td></tr>-+<tr><td>CREATE_TABLE</td><td>2</td><td><p></p></td></tr>-+<tr><td>CREATE_VIEW</td><td>3</td><td><p></p></td></tr>-+<tr><td>CREATE_INDEX</td><td>4</td><td><p></p></td></tr>-+<tr><td>CREATE_SEQUENCE</td><td>5</td><td><p></p></td></tr>-+<tr><td>CREATE_SCHEMA</td><td>6</td><td><p></p></td></tr>-+<tr><td>CREATE_FUNCTION</td><td>7</td><td><p></p></td></tr>-+<tr><td>CREATE_TRIGGER</td><td>8</td><td><p></p></td></tr>-+<tr><td>CREATE_PROCEDURE</td><td>9</td><td><p></p></td></tr>-+<tr><td>CREATE_EVENT</td><td>10</td><td><p></p></td></tr>-+<tr><td>CREATE_EXTENSION</td><td>11</td><td><p></p></td></tr>-+<tr><td>CREATE_TYPE</td><td>12</td><td><p></p></td></tr>-+<tr><td>DROP_DATABASE</td><td>20</td><td><p>DDL - DROP statements</p></td></tr>-+<tr><td>DROP_TABLE</td><td>21</td><td><p></p></td></tr>-+<tr><td>DROP_VIEW</td><td>22</td><td><p></p></td></tr>-+<tr><td>DROP_INDEX</td><td>23</td><td><p></p></td></tr>-+<tr><td>DROP_SEQUENCE</td><td>24</td><td><p></p></td></tr>-+<tr><td>DROP_SCHEMA</td><td>25</td><td><p></p></td></tr>-+<tr><td>DROP_FUNCTION</td><td>26</td><td><p></p></td></tr>-+<tr><td>DROP_TRIGGER</td><td>27</td><td><p></p></td></tr>-+<tr><td>DROP_PROCEDURE</td><td>28</td><td><p></p></td></tr>-+<tr><td>DROP_EVENT</td><td>29</td><td><p></p></td></tr>-+<tr><td>DROP_EXTENSION</td><td>30</td><td><p></p></td></tr>-+<tr><td>DROP_TYPE</td><td>31</td><td><p></p></td></tr>-+<tr><td>ALTER_DATABASE</td><td>40</td><td><p>DDL - ALTER statements</p></td></tr>-+<tr><td>ALTER_TABLE</td><td>41</td><td><p></p></td></tr>-+<tr><td>ALTER_VIEW</td><td>42</td><td><p></p></td></tr>-+<tr><td>ALTER_SEQUENCE</td><td>43</td><td><p></p></td></tr>-+<tr><td>ALTER_EVENT</td><td>44</td><td><p></p></td></tr>-+<tr><td>ALTER_TYPE</td><td>45</td><td><p></p></td></tr>-+<tr><td>ALTER_INDEX</td><td>46</td><td><p></p></td></tr>-+<tr><td>TRUNCATE</td><td>50</td><td><p>DDL - Other</p></td></tr>-+<tr><td>RENAME</td><td>51</td><td><p></p></td></tr>-+<tr><td>RENAME_INDEX</td><td>52</td><td><p></p></td></tr>-+<tr><td>RENAME_SCHEMA</td><td>53</td><td><p></p></td></tr>-+<tr><td>RENAME_SEQUENCE</td><td>54</td><td><p></p></td></tr>-+<tr><td>COMMENT</td><td>55</td><td><p></p></td></tr>-+<tr><td>INSERT</td><td>60</td><td><p>DML statements</p></td></tr>-+<tr><td>UPDATE</td><td>61</td><td><p></p></td></tr>-+<tr><td>DELETE</td><td>62</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.VCSType">VCSType</h3><p>Version control system type.</p><table class="enum-table">@@ -4467,40 +4467,40 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>VCS_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified VCS type.</p></td></tr>-+<tr><td>GITHUB</td><td>1</td><td><p>GitHub version control platform.</p></td></tr>-+<tr><td>GITLAB</td><td>2</td><td><p>GitLab version control platform.</p></td></tr>-+<tr><td>BITBUCKET</td><td>3</td><td><p>Bitbucket version control platform.</p></td></tr>-+<tr><td>AZURE_DEVOPS</td><td>4</td><td><p>Azure DevOps version control platform.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.WebhookType">WebhookType</h3><p>Webhook integration type.</p><table class="enum-table">@@ -4508,86 +4508,86 @@ Examples:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>WEBHOOK_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>SLACK</td><td>1</td><td><p>Slack integration.</p></td></tr>-+<tr><td>DISCORD</td><td>2</td><td><p>Discord integration.</p></td></tr>-+<tr><td>TEAMS</td><td>3</td><td><p>Microsoft Teams integration.</p></td></tr>-+<tr><td>DINGTALK</td><td>4</td><td><p>DingTalk integration.</p></td></tr>-+<tr><td>FEISHU</td><td>5</td><td><p>Feishu integration.</p></td></tr>-+<tr><td>WECOM</td><td>6</td><td><p>WeCom (WeChat Work) integration.</p></td></tr>-+<tr><td>LARK</td><td>7</td><td><p>Lark integration.</p></td></tr>-+<tr><td>GOOGLE_CHAT</td><td>8</td><td><p>Google Chat integration.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -4596,7 +4596,7 @@ Examples:Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}Use `projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td></tr>-+<tr><td>task_runs</td><td><a href="#string">string</a></td>@@ -4604,31 +4604,31 @@ Use `projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/-` to cancel t<td><p>The taskRuns to cancel.Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3><p></p>---+++<h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -4636,7 +4636,7 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/task<td><p>The stage name for the tasks.Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td></tr>-+<tr><td>tasks</td><td><a href="#string">string</a></td>@@ -4644,45 +4644,45 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td><td><p>The tasks to run.Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task} </p></td></tr>-+<tr><td>run_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td>optional</td><td><p>The task run should run after run_time. </p></td></tr>-+<tr><td>skip_prior_backup</td><td><a href="#bool">bool</a></td><td></td><td><p>If true, skip prior backup for this run even if the task has prior backup enabled. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3><p></p>---+++<h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -4690,7 +4690,7 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task} </p><td><p>The stage name for the tasks.Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td></tr>-+<tr><td>tasks</td><td><a href="#string">string</a></td>@@ -4698,38 +4698,38 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td><td><p>The tasks to skip.Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task} </p></td></tr>-+<tr><td>reason</td><td><a href="#string">string</a></td><td></td><td><p>The reason for skipping the tasks. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3><p></p>---+++<h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -4737,7 +4737,7 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task} </p><td><p>The parent plan for which this rollout will be created.Format: projects/{project}/plans/{plan} </p></td></tr>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -4747,24 +4747,24 @@ Format: environments/{environment}If unspecified, all stages are created.If set to "", no stages are created. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -4773,96 +4773,96 @@ If set to "", no stages are created. </p></td>This is the rollout resource name, which is the plan name plus /rollout suffix.Format: projects/{project}/plans/{plan}/rollout </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -4871,7 +4871,7 @@ Format: projects/{project}/plans/{plan}/rollout </p></td>Format: projects/{project}Use "projects/-" to list all rollouts from all projects. </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -4881,7 +4881,7 @@ this value.If unspecified, at most 10 rollouts will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -4892,7 +4892,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListRollouts` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -4908,31 +4908,31 @@ For example:update_time >= "2025-01-02T15:04:05Z07:00"task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"] </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>rollouts</td><td><a href="#bytebase.v1.Rollout">Rollout</a></td><td>repeated</td><td><p>The rollouts from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -4940,24 +4940,24 @@ task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"] </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -4966,96 +4966,96 @@ If this field is omitted, there are no subsequent pages. </p></td>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>task_runs</td><td><a href="#bytebase.v1.TaskRun">TaskRun</a></td><td>repeated</td><td><p>The taskRuns from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The rollback SQL statement that would undo the task run. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Rollout">Rollout</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -5063,7 +5063,7 @@ Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list a<td><p>The resource name of the rollout.Format: projects/{project}/plans/{plan}/rollout </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td>@@ -5071,45 +5071,45 @@ Format: projects/{project}/plans/{plan}/rollout </p></td><td><p>The title of the rollout, inherited from the associated plan.This field is output only and cannot be directly set. </p></td></tr>-+<tr><td>stages</td><td><a href="#bytebase.v1.Stage">Stage</a></td><td>repeated</td><td><p>Stages and thus tasks of the rollout. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Stage">Stage</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -5117,7 +5117,7 @@ This field is output only and cannot be directly set. </p></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}Use "-" for {stage} when the stage has no environment or deleted environment. </p></td></tr>-+<tr><td>id</td><td><a href="#string">string</a></td>@@ -5126,7 +5126,7 @@ Use "-" for {stage} when the stage has no environment or deleted environe.g., "prod".Use "-" when the stage has no environment or deleted environment. </p></td></tr>-+<tr><td>environment</td><td><a href="#string">string</a></td>@@ -5134,66 +5134,66 @@ Use "-" when the stage has no environment or deleted environment. </p></<td><p>environment is the environment of the stage.Format: environments/{environment} for valid environments, or "environments/-" for stages without environment or with deleted environments. </p></td></tr>-+<tr><td>tasks</td><td><a href="#bytebase.v1.Task">Task</a></td><td>repeated</td><td><p>The tasks within this stage. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Task">Task</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task} </p></td></tr>-+<tr><td>spec_id</td><td><a href="#string">string</a></td><td></td><td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.Task.Status">Task.Status</a></td><td></td><td><p>Status is the status of the task. </p></td></tr>-+<tr><td>skipped_reason</td><td><a href="#string">string</a></td><td></td><td><p>The reason why the task was skipped. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.Task.Type">Task.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -5201,28 +5201,28 @@ Format: environments/{environment} for valid environments, or "environments/<td><p>Format: instances/{instance} if the task is DatabaseCreate.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>database_create</td><td><a href="#bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_update</td><td><a href="#bytebase.v1.Task.DatabaseUpdate">Task.DatabaseUpdate</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_data_export</td><td><a href="#bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>@@ -5230,7 +5230,7 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The update_time is the update time of latest task run.If there are no task runs, it will be empty. </p></td></tr>-+<tr><td>run_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>@@ -5238,48 +5238,48 @@ If there are no task runs, it will be empty. </p></td><td><p>The run_time is the scheduled run time of latest task run.If there are no task runs or the task run is not scheduled, it will be empty. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</h3><p>Payload for creating a new database.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>sheet</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</h3><p>Payload for exporting database data.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>sheet</td><td><a href="#string">string</a></td>@@ -5287,90 +5287,90 @@ If there are no task runs or the task run is not scheduled, it will be empty. </<td><p>The resource name of the sheet.Format: projects/{project}/sheets/{sheet} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Task.DatabaseUpdate">Task.DatabaseUpdate</h3><p>Payload for updating a database schema.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>sheet</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/releases/{release} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRun">TaskRun</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/[email protected] </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.TaskRun.Status">TaskRun.Status</a></td><td></td><td><p>The current execution status of the task run. </p></td></tr>-+<tr><td>detail</td><td><a href="#string">string</a></td>@@ -5378,21 +5378,21 @@ Format: projects/{project}/sheets/{sheet} </p></td><td><p>Below are the results of a task run.Detailed information about the task run result. </p></td></tr>-+<tr><td>start_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The time when the task run started execution. </p></td></tr>-+<tr><td>export_archive_status</td><td><a href="#bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</a></td><td></td><td><p>The export archive status for data export tasks. </p></td></tr>-+<tr><td>has_prior_backup</td><td><a href="#bool">bool</a></td>@@ -5401,14 +5401,14 @@ Detailed information about the task run result. </p></td>When true, rollback SQL can be generated via PreviewTaskRunRollback.Backup details are available in the task run logs. </p></td></tr>-+<tr><td>scheduler_info</td><td><a href="#bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</a></td><td></td><td><p>Scheduling information about the task run. </p></td></tr>-+<tr><td>run_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>@@ -5416,218 +5416,218 @@ Backup details are available in the task run logs. </p></td><td><p>The task run should run after run_time.This can only be set when creating the task run calling BatchRunTasks. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</h3><p>Information about task run scheduling.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>report_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The time when the scheduling info was reported. </p></td></tr>-+<tr><td>waiting_cause</td><td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</a></td><td></td><td><p>The cause for the task run waiting. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</h3><p>Information about why a task run is waiting.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parallel_tasks_limit</td><td><a href="#bool">bool</a></td><td></td><td><p>Waiting due to parallel tasks limit. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLog">TaskRunLog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log </p></td></tr>-+<tr><td>entries</td><td><a href="#bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</a></td><td>repeated</td><td><p>The log entries for this task run. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</a></td><td></td><td><p>The type of this log entry. </p></td></tr>-+<tr><td>log_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The time when the log was recorded. </p></td></tr>-+<tr><td>replica_id</td><td><a href="#string">string</a></td><td></td><td><p>The replica ID for this log entry. </p></td></tr>-+<tr><td>schema_dump</td><td><a href="#bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</a></td><td></td><td><p>Schema dump details (if type is SCHEMA_DUMP). </p></td></tr>-+<tr><td>command_execute</td><td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</a></td><td></td><td><p>Command execution details (if type is COMMAND_EXECUTE). </p></td></tr>-+<tr><td>database_sync</td><td><a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</a></td><td></td><td><p>Database sync details (if type is DATABASE_SYNC). </p></td></tr>-+<tr><td>transaction_control</td><td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</a></td><td></td><td><p>Transaction control details (if type is TRANSACTION_CONTROL). </p></td></tr>-+<tr><td>prior_backup</td><td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup">TaskRunLogEntry.PriorBackup</a></td><td></td><td><p>Prior backup details (if type is PRIOR_BACKUP). </p></td></tr>-+<tr><td>retry_info</td><td><a href="#bytebase.v1.TaskRunLogEntry.RetryInfo">TaskRunLogEntry.RetryInfo</a></td><td></td><td><p>Retry information details (if type is RETRY_INFO). </p></td></tr>-+<tr><td>compute_diff</td><td><a href="#bytebase.v1.TaskRunLogEntry.ComputeDiff">TaskRunLogEntry.ComputeDiff</a></td><td></td><td><p>Compute diff details (if type is COMPUTE_DIFF). </p></td></tr>-+<tr><td>release_file_execute</td><td><a href="#bytebase.v1.TaskRunLogEntry.ReleaseFileExecute">TaskRunLogEntry.ReleaseFileExecute</a></td><td></td><td><p>Release file execution details (if type is RELEASE_FILE_EXECUTE). </p></td></tr>-+<tr><td>ghost_migration</td><td><a href="#bytebase.v1.TaskRunLogEntry.GhostMigration">TaskRunLogEntry.GhostMigration</a></td><td></td><td><p>gh-ost migration details (if type is GHOST_MIGRATION). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</h3><p>Command execution details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>log_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the command was logged. </p></td></tr>-+<tr><td>range</td><td><a href="#bytebase.v1.Range">Range</a></td>@@ -5636,59 +5636,59 @@ This can only be set when creating the task run calling BatchRunTasks. </p></td>Uses byte offsets (not character indices) for efficient slicing of sheet content bytes.Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents all 13 bytes. </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The executed statement. </p></td></tr>-+<tr><td>response</td><td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</a></td><td></td><td><p>The response from executing the command. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</h3><p>Command execution response.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>log_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the response was logged. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if command execution failed. </p></td></tr>-+<tr><td>affected_rows</td><td><a href="#int64">int64</a></td><td></td><td><p>Total affected rows. </p></td></tr>-+<tr><td>all_affected_rows</td><td><a href="#int64">int64</a></td>@@ -5696,252 +5696,252 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<td><p>`all_affected_rows` is the affected rows of each command.`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.ComputeDiff">TaskRunLogEntry.ComputeDiff</h3><p>Schema diff computation details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When diff computation started. </p></td></tr>-+<tr><td>end_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When diff computation ended. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if computation failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</h3><p>Database synchronization details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the database sync started. </p></td></tr>-+<tr><td>end_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the database sync ended. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if sync failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.GhostMigration">TaskRunLogEntry.GhostMigration</h3><p>gh-ost migration details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the gh-ost migration started. </p></td></tr>-+<tr><td>end_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the gh-ost migration ended. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if the gh-ost migration failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup">TaskRunLogEntry.PriorBackup</h3><p>Prior backup operation details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the backup started. </p></td></tr>-+<tr><td>end_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the backup ended. </p></td></tr>-+<tr><td>prior_backup_detail</td><td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail">TaskRunLogEntry.PriorBackup.PriorBackupDetail</a></td><td></td><td><p>The backup details. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if the backup failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail">TaskRunLogEntry.PriorBackup.PriorBackupDetail</h3><p>Prior backup detail for rollback purposes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>items</td><td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item</a></td><td>repeated</td><td><p>The list of backed up tables. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item</h3><p>A single backup table mapping.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>source_table</td><td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</a></td><td></td><td><p>The original table information. </p></td></tr>-+<tr><td>target_table</td><td><a href="#bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</a></td><td></td><td><p>The target backup table information. </p></td></tr>-+<tr><td>start_position</td><td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p>The start position in the SQL statement. </p></td></tr>-+<tr><td>end_position</td><td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p>The end position in the SQL statement. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table">TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table</h3><p>Table information.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>database</td><td><a href="#string">string</a></td>@@ -5949,352 +5949,352 @@ Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents<td><p>The database information.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema name. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td><td></td><td><p>The table name. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.ReleaseFileExecute">TaskRunLogEntry.ReleaseFileExecute</h3><p>Release file execution details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The version of the file being executed (e.g., "0001"). </p></td></tr>-+<tr><td>file_path</td><td><a href="#string">string</a></td><td></td><td><p>The file path within the release (e.g., "2.2/V0001_create_table.sql"). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.RetryInfo">TaskRunLogEntry.RetryInfo</h3><p>Retry information for failed operations.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>The error that triggered the retry. </p></td></tr>-+<tr><td>retry_count</td><td><a href="#int32">int32</a></td><td></td><td><p>Current retry attempt number. </p></td></tr>-+<tr><td>maximum_retries</td><td><a href="#int32">int32</a></td><td></td><td><p>Maximum number of retries allowed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3><p>Schema dump operation details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the schema dump started. </p></td></tr>-+<tr><td>end_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the schema dump ended. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if the schema dump failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</h3><p>Transaction control operation details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</a></td><td></td><td><p>The type of transaction control. </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>Error message if the operation failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunSession">TaskRunSession</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session </p></td></tr>-+<tr><td>postgres</td><td><a href="#bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</a></td><td></td><td><p>PostgreSQL session information. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</h3><p>PostgreSQL session information.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>session</td><td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td><td></td><td><p>`session` is the session of the task run executing commands. </p></td></tr>-+<tr><td>blocking_sessions</td><td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td><td>repeated</td><td><p>`blocking_sessions` block `session`. </p></td></tr>-+<tr><td>blocked_sessions</td><td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td><td>repeated</td><td><p>`blocked_sessions` are blocked by `session`. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</h3><p>PostgreSQL session information read from `pg_stat_activity`.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>pid</td><td><a href="#string">string</a></td><td></td><td><p>Process ID of the session. </p></td></tr>-+<tr><td>blocked_by_pids</td><td><a href="#string">string</a></td><td>repeated</td><td><p>PIDs of sessions blocking this session. </p></td></tr>-+<tr><td>query</td><td><a href="#string">string</a></td><td></td><td><p>Current query being executed. </p></td></tr>-+<tr><td>state</td><td><a href="#string">string</a></td><td>optional</td><td><p>Session state (active, idle, etc.). </p></td></tr>-+<tr><td>wait_event_type</td><td><a href="#string">string</a></td><td>optional</td><td><p>Wait event type if session is waiting. </p></td></tr>-+<tr><td>wait_event</td><td><a href="#string">string</a></td><td>optional</td><td><p>Specific wait event if session is waiting. </p></td></tr>-+<tr><td>datname</td><td><a href="#string">string</a></td><td>optional</td><td><p>Database name. </p></td></tr>-+<tr><td>usename</td><td><a href="#string">string</a></td><td>optional</td><td><p>User name. </p></td></tr>-+<tr><td>application_name</td><td><a href="#string">string</a></td><td></td><td><p>Application name. </p></td></tr>-+<tr><td>client_addr</td><td><a href="#string">string</a></td><td>optional</td><td><p>Client IP address. </p></td></tr>-+<tr><td>client_port</td><td><a href="#string">string</a></td><td>optional</td><td><p>Client port number. </p></td></tr>-+<tr><td>backend_start</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>When the backend process started. </p></td></tr>-+<tr><td>xact_start</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td>optional</td><td><p>When the current transaction started. </p></td></tr>-+<tr><td>query_start</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td>optional</td><td><p>When the current query started. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Task.Status">Task.Status</h3><p></p><table class="enum-table">@@ -6302,58 +6302,58 @@ Format: instances/{instance}/databases/{database} </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified status.</p></td></tr>-+<tr><td>NOT_STARTED</td><td>1</td><td><p>Task has not started and is awaiting its turn in the deployment sequence.</p></td></tr>-+<tr><td>PENDING</td><td>2</td><td><p>Task is ready to run and waiting for approval or scheduled time.</p></td></tr>-+<tr><td>RUNNING</td><td>3</td><td><p>Task is currently executing.</p></td></tr>-+<tr><td>DONE</td><td>4</td><td><p>Task completed successfully.</p></td></tr>-+<tr><td>FAILED</td><td>5</td><td><p>Task execution failed with errors.</p></td></tr>-+<tr><td>CANCELED</td><td>6</td><td><p>Task execution was canceled by a user.</p></td></tr>-+<tr><td>SKIPPED</td><td>7</td><td><p>Task was skipped and will not be executed.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.Task.Type">Task.Type</h3><p></p><table class="enum-table">@@ -6361,43 +6361,43 @@ Format: instances/{instance}/databases/{database} </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified task type.</p></td></tr>-+<tr><td>GENERAL</td><td>1</td><td><p>General task for miscellaneous operations.</p></td></tr>-+<tr><td>DATABASE_CREATE</td><td>2</td><td><p>Database creation task that creates a new database.Use payload DatabaseCreate.</p></td></tr>-+<tr><td>DATABASE_MIGRATE</td><td>3</td><td><p>Database migration task that applies versioned schema changes.Use payload DatabaseUpdate.</p></td></tr>-+<tr><td>DATABASE_EXPORT</td><td>4</td><td><p>Database export task that exports query results or table data.Use payload DatabaseDataExport.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3><p></p><table class="enum-table">@@ -6405,28 +6405,28 @@ Use payload DatabaseDataExport.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified export archive status.</p></td></tr>-+<tr><td>READY</td><td>1</td><td><p>Export archive is ready for download.</p></td></tr>-+<tr><td>EXPORTED</td><td>2</td><td><p>Export archive has been downloaded by the user.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3><p></p><table class="enum-table">@@ -6434,52 +6434,52 @@ Use payload DatabaseDataExport.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified status.</p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p>Task run is queued and waiting to start execution.</p></td></tr>-+<tr><td>RUNNING</td><td>2</td><td><p>Task run is currently executing.</p></td></tr>-+<tr><td>DONE</td><td>3</td><td><p>Task run completed successfully.</p></td></tr>-+<tr><td>FAILED</td><td>4</td><td><p>Task run execution failed with errors.</p></td></tr>-+<tr><td>CANCELED</td><td>5</td><td><p>Task run execution was canceled by a user.</p></td></tr>-+<tr><td>AVAILABLE</td><td>6</td><td><p>Task run is ready for immediate execution.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3><p>Transaction control type.</p><table class="enum-table">@@ -6487,34 +6487,34 @@ Use payload DatabaseDataExport.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>BEGIN</td><td>1</td><td><p>Begin transaction.</p></td></tr>-+<tr><td>COMMIT</td><td>2</td><td><p>Commit transaction.</p></td></tr>-+<tr><td>ROLLBACK</td><td>3</td><td><p>Rollback transaction.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3><p>The type of log entry.</p><table class="enum-table">@@ -6522,74 +6522,74 @@ Use payload DatabaseDataExport.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>SCHEMA_DUMP</td><td>1</td><td><p>Schema dump operation.</p></td></tr>-+<tr><td>COMMAND_EXECUTE</td><td>2</td><td><p>Command execution.</p></td></tr>-+<tr><td>DATABASE_SYNC</td><td>3</td><td><p>Database synchronization.</p></td></tr>-+<tr><td>TRANSACTION_CONTROL</td><td>5</td><td><p>Transaction control (BEGIN, COMMIT, ROLLBACK).</p></td></tr>-+<tr><td>PRIOR_BACKUP</td><td>6</td><td><p>Prior backup operation.</p></td></tr>-+<tr><td>RETRY_INFO</td><td>7</td><td><p>Retry information.</p></td></tr>-+<tr><td>COMPUTE_DIFF</td><td>8</td><td><p>Schema diff computation.</p></td></tr>-+<tr><td>RELEASE_FILE_EXECUTE</td><td>9</td><td><p>Release file execution.</p></td></tr>-+<tr><td>GHOST_MIGRATION</td><td>10</td><td><p>gh-ost online migration.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RolloutService">RolloutService</h3><p>RolloutService manages the execution of deployment plans.</p><table class="enum-table">@@ -6597,7 +6597,7 @@ Use payload DatabaseDataExport.</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetRollout</td><td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>@@ -6605,7 +6605,7 @@ Use payload DatabaseDataExport.</p></td><td><p>Retrieves a rollout by its plan name.Permissions required: bb.rollouts.get</p></td></tr>-+<tr><td>ListRollouts</td><td><a href="#bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</a></td>@@ -6613,7 +6613,7 @@ Permissions required: bb.rollouts.get</p></td><td><p>Lists rollouts in a project.Permissions required: bb.rollouts.list</p></td></tr>-+<tr><td>CreateRollout</td><td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>@@ -6621,7 +6621,7 @@ Permissions required: bb.rollouts.list</p></td><td><p>Creates a new rollout for a plan.Permissions required: bb.rollouts.create (or issue creator for data export issues)</p></td></tr>-+<tr><td>ListTaskRuns</td><td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>@@ -6629,7 +6629,7 @@ Permissions required: bb.rollouts.create (or issue creator for data export issue<td><p>Lists task run executions for a task.Permissions required: bb.taskRuns.list</p></td></tr>-+<tr><td>GetTaskRun</td><td><a href="#bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</a></td>@@ -6637,7 +6637,7 @@ Permissions required: bb.taskRuns.list</p></td><td><p>Retrieves a task run by name.Permissions required: bb.taskRuns.list</p></td></tr>-+<tr><td>GetTaskRunLog</td><td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>@@ -6645,7 +6645,7 @@ Permissions required: bb.taskRuns.list</p></td><td><p>Retrieves execution logs for a task run.Permissions required: bb.taskRuns.list</p></td></tr>-+<tr><td>GetTaskRunSession</td><td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>@@ -6653,7 +6653,7 @@ Permissions required: bb.taskRuns.list</p></td><td><p>Retrieves database session information for a running task.Permissions required: bb.taskRuns.list</p></td></tr>-+<tr><td>BatchRunTasks</td><td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>@@ -6661,7 +6661,7 @@ Permissions required: bb.taskRuns.list</p></td><td><p>Executes multiple tasks in a rollout stage.Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)</p></td></tr>-+<tr><td>BatchSkipTasks</td><td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>@@ -6669,7 +6669,7 @@ Permissions required: bb.taskRuns.create (or issue creator for data export issue<td><p>Skips multiple tasks in a rollout stage.Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)</p></td></tr>-+<tr><td>BatchCancelTaskRuns</td><td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>@@ -6680,7 +6680,7 @@ a best-effort cancellation request and may continue running if the request is miexecutor does not stop. The response does not report which task runs were actually canceled.Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)</p></td></tr>-+<tr><td>PreviewTaskRunRollback</td><td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>@@ -6688,13 +6688,13 @@ Permissions required: bb.taskRuns.create (or issue creator for data export issue<td><p>Generates rollback SQL for a completed task run.Permissions required: bb.taskRuns.list</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -6706,139 +6706,139 @@ Permissions required: bb.taskRuns.list</p></td></tr></thead><tbody>---+++<tr><td>GetRollout</td><td>GET</td><td>/v1/{name=projects/*/plans/*/rollout}</td><td></td></tr>----++++<tr><td>ListRollouts</td><td>GET</td><td>/v1/{parent=projects/*}/rollouts</td><td></td></tr>----++++<tr><td>CreateRollout</td><td>POST</td><td>/v1/{parent=projects/*/plans/*}/rollout</td><td>*</td></tr>----++++<tr><td>ListTaskRuns</td><td>GET</td><td>/v1/{parent=projects/*/plans/*/rollout/stages/*/tasks/*}/taskRuns</td><td></td></tr>----++++<tr><td>GetTaskRun</td><td>GET</td><td>/v1/{name=projects/*/plans/*/rollout/stages/*/tasks/*/taskRuns/*}</td><td></td></tr>----++++<tr><td>GetTaskRunLog</td><td>GET</td><td>/v1/{parent=projects/*/plans/*/rollout/stages/*/tasks/*/taskRuns/*}/log</td><td></td></tr>----++++<tr><td>GetTaskRunSession</td><td>GET</td><td>/v1/{parent=projects/*/plans/*/rollout/stages/*/tasks/*/taskRuns/*}/session</td><td></td></tr>----++++<tr><td>BatchRunTasks</td><td>POST</td><td>/v1/{parent=projects/*/plans/*/rollout/stages/*}/tasks:batchRun</td><td>*</td></tr>----++++<tr><td>BatchSkipTasks</td><td>POST</td><td>/v1/{parent=projects/*/plans/*/rollout/stages/*}/tasks:batchSkip</td><td>*</td></tr>----++++<tr><td>BatchCancelTaskRuns</td><td>POST</td><td>/v1/{parent=projects/*/plans/*/rollout/stages/*/tasks/*}/taskRuns:batchCancel</td><td>*</td></tr>----++++<tr><td>PreviewTaskRunRollback</td><td>POST</td><td>/v1/{name=projects/*/plans/*/rollout/stages/*/tasks/*/taskRuns/*}:previewRollback</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.InstanceRole">InstanceRole</h3><p>InstanceRole is the API message for instance role.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -6847,35 +6847,35 @@ Permissions required: bb.taskRuns.list</p></td>Format: instances/{instance}/roles/{role}The role name is the unique name for the role. </p></td></tr>-+<tr><td>role_name</td><td><a href="#string">string</a></td><td></td><td><p>The role name. It's unique within the instance. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td>optional</td><td><p>The role password. </p></td></tr>-+<tr><td>connection_limit</td><td><a href="#int32">int32</a></td><td>optional</td><td><p>The connection count limit for this role. </p></td></tr>-+<tr><td>valid_until</td><td><a href="#string">string</a></td><td>optional</td><td><p>The expiration for the role's password. </p></td></tr>-+<tr><td>attribute</td><td><a href="#string">string</a></td>@@ -6884,24 +6884,24 @@ The role name is the unique name for the role. </p></td>For PostgreSQL, it contains super_user, no_inherit, create_role, create_db, can_login, replication, and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.htmlFor MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -6909,7 +6909,7 @@ For MySQL, it's the global privileges as GRANT statements, which means it on<td><p>The parent, which owns this collection of roles.Format: instances/{instance} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -6920,7 +6920,7 @@ this value.If unspecified, at most 10 roles will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -6932,38 +6932,38 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListInstanceRoles` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>refresh</td><td><a href="#bool">bool</a></td><td></td><td><p>Refresh will refresh and return the latest data. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>roles</td><td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td>repeated</td><td><p>The roles from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -6971,20 +6971,20 @@ the call that provided the page token. </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3><p>InstanceRoleService manages database roles within instances.</p><table class="enum-table">@@ -6992,7 +6992,7 @@ If this field is omitted, there are no subsequent pages. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>ListInstanceRoles</td><td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>@@ -7000,13 +7000,13 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>Lists all database roles in an instance.Permissions required: bb.instanceRoles.list</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -7018,39 +7018,39 @@ Permissions required: bb.instanceRoles.list</p></td></tr></thead><tbody>---+++<tr><td>ListInstanceRoles</td><td>GET</td><td>/v1/{parent=instances/*}/roles</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/instance_service.proto">v1/instance_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.AddDataSourceRequest">AddDataSourceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -7058,7 +7058,7 @@ Permissions required: bb.instanceRoles.list</p></td><td><p>The name of the instance to add a data source to.Format: instances/{instance} </p></td></tr>-+<tr><td>data_source</td><td><a href="#bytebase.v1.DataSource">DataSource</a></td>@@ -7066,31 +7066,31 @@ Format: instances/{instance} </p></td><td><p>Identified by data source ID.Only READ_ONLY data source can be added. </p></td></tr>-+<tr><td>validate_only</td><td><a href="#bool">bool</a></td><td></td><td><p>Validate only also tests the data source connection. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchSyncInstancesRequest">BatchSyncInstancesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>requests</td><td><a href="#bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</a></td>@@ -7098,86 +7098,86 @@ Only READ_ONLY data source can be added. </p></td><td><p>The request message specifying the instances to sync.A maximum of 1000 instances can be synced in a batch. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchSyncInstancesResponse">BatchSyncInstancesResponse</h3><p></p>---+++<h3 id="bytebase.v1.BatchUpdateInstancesRequest">BatchUpdateInstancesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>requests</td><td><a href="#bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</a></td><td>repeated</td><td><p>The request message specifying the resources to update. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchUpdateInstancesResponse">BatchUpdateInstancesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>instances</td><td><a href="#bytebase.v1.Instance">Instance</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateInstanceRequest">CreateInstanceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>instance</td><td><a href="#bytebase.v1.Instance">Instance</a></td><td></td><td><p>The instance to create. </p></td></tr>-+<tr><td>instance_id</td><td><a href="#string">string</a></td>@@ -7188,150 +7188,150 @@ the instance's resource name.This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. </p></td></tr>-+<tr><td>validate_only</td><td><a href="#bool">bool</a></td><td></td><td><p>Validate only also tests the data source connection. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSource">DataSource</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>The unique identifier for this data source. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.DataSourceType">DataSourceType</a></td><td></td><td><p>The type of data source (ADMIN or READ_ONLY). </p></td></tr>-+<tr><td>username</td><td><a href="#string">string</a></td><td></td><td><p>The username for database authentication. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p>The password for database authentication. </p></td></tr>-+<tr><td>use_ssl</td><td><a href="#bool">bool</a></td><td></td><td><p>Use SSL to connect to the data source. By default, we use system default SSL configuration. </p></td></tr>-+<tr><td>ssl_ca</td><td><a href="#string">string</a></td><td></td><td><p>The SSL certificate authority certificate. </p></td></tr>-+<tr><td>ssl_cert</td><td><a href="#string">string</a></td><td></td><td><p>The SSL client certificate. </p></td></tr>-+<tr><td>ssl_key</td><td><a href="#string">string</a></td><td></td><td><p>The SSL client private key. </p></td></tr>-+<tr><td>ssl_ca_path</td><td><a href="#string">string</a></td><td></td><td><p>The local filesystem path to the SSL certificate authority certificate. </p></td></tr>-+<tr><td>ssl_cert_path</td><td><a href="#string">string</a></td><td></td><td><p>The local filesystem path to the SSL client certificate. </p></td></tr>-+<tr><td>ssl_key_path</td><td><a href="#string">string</a></td><td></td><td><p>The local filesystem path to the SSL client private key. </p></td></tr>-+<tr><td>ssl_ca_set</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether an SSL certificate authority certificate has been configured. </p></td></tr>-+<tr><td>ssl_cert_set</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether an SSL client certificate has been configured. </p></td></tr>-+<tr><td>ssl_key_set</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether an SSL client private key has been configured. </p></td></tr>-+<tr><td>ssl_ca_path_set</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether an SSL certificate authority path has been configured. </p></td></tr>-+<tr><td>ssl_cert_path_set</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether an SSL client certificate path has been configured. </p></td></tr>-+<tr><td>ssl_key_path_set</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether an SSL client private key path has been configured. </p></td></tr>-+<tr><td>verify_tls_certificate</td><td><a href="#bool">bool</a></td>@@ -7342,28 +7342,28 @@ Set to true for secure connections (recommended for production).Only set to false for development or when certificates cannot be properlyvalidated (e.g., self-signed certs, VPN environments). </p></td></tr>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p>The hostname or IP address of the database server. </p></td></tr>-+<tr><td>port</td><td><a href="#string">string</a></td><td></td><td><p>The port number of the database server. </p></td></tr>-+<tr><td>database</td><td><a href="#string">string</a></td><td></td><td><p>The name of the database to connect to. </p></td></tr>-+<tr><td>srv</td><td><a href="#bool">bool</a></td>@@ -7371,35 +7371,35 @@ validated (e.g., self-signed certs, VPN environments). </p></td><td><p>srv, authentication_database and replica_set are used for MongoDB.srv is a boolean flag that indicates whether the host is a DNS SRV record. </p></td></tr>-+<tr><td>authentication_database</td><td><a href="#string">string</a></td><td></td><td><p>authentication_database is the database name to authenticate against, which stores the user credentials. </p></td></tr>-+<tr><td>replica_set</td><td><a href="#string">string</a></td><td></td><td><p>replica_set is used for MongoDB replica set. </p></td></tr>-+<tr><td>sid</td><td><a href="#string">string</a></td><td></td><td><p>sid and service_name are used for Oracle. </p></td></tr>-+<tr><td>service_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ssh_host</td><td><a href="#string">string</a></td>@@ -7408,7 +7408,7 @@ srv is a boolean flag that indicates whether the host is a DNS SRV record. </p><The hostname of the SSH server agent.Required. </p></td></tr>-+<tr><td>ssh_port</td><td><a href="#string">string</a></td>@@ -7416,7 +7416,7 @@ Required. </p></td><td><p>The port of the SSH server agent. It's 22 typically.Required. </p></td></tr>-+<tr><td>ssh_user</td><td><a href="#string">string</a></td>@@ -7424,21 +7424,21 @@ Required. </p></td><td><p>The user to login the server.Required. </p></td></tr>-+<tr><td>ssh_password</td><td><a href="#string">string</a></td><td></td><td><p>The password to login the server. If it's empty string, no password is required. </p></td></tr>-+<tr><td>ssh_private_key</td><td><a href="#string">string</a></td><td></td><td><p>The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK"). </p></td></tr>-+<tr><td>authentication_private_key</td><td><a href="#string">string</a></td>@@ -7446,28 +7446,28 @@ Required. </p></td><td><p>PKCS#8 private key in PEM format. If it's empty string, no private key is required.Used for authentication when connecting to the data source. </p></td></tr>-+<tr><td>authentication_private_key_passphrase</td><td><a href="#string">string</a></td><td></td><td><p>Passphrase for the encrypted PKCS#8 private key. Only used when the private key is encrypted. </p></td></tr>-+<tr><td>external_secret</td><td><a href="#bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</a></td><td></td><td><p> </p></td></tr>-+<tr><td>authentication_type</td><td><a href="#bytebase.v1.DataSource.AuthenticationType">DataSource.AuthenticationType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>cloud_sql_ip_type</td><td><a href="#bytebase.v1.DataSource.CloudSQLIPType">DataSource.CloudSQLIPType</a></td>@@ -7475,98 +7475,98 @@ Used for authentication when connecting to the data source. </p></td><td><p>cloud_sql_ip_type selects the Cloud SQL IP type for Google Cloud SQL IAM connections.CLOUD_SQL_IP_TYPE_UNSPECIFIED is treated as PUBLIC for backward compatibility. </p></td></tr>-+<tr><td>azure_credential</td><td><a href="#bytebase.v1.DataSource.AzureCredential">DataSource.AzureCredential</a></td><td></td><td><p> </p></td></tr>-+<tr><td>aws_credential</td><td><a href="#bytebase.v1.DataSource.AWSCredential">DataSource.AWSCredential</a></td><td></td><td><p> </p></td></tr>-+<tr><td>gcp_credential</td><td><a href="#bytebase.v1.DataSource.GCPCredential">DataSource.GCPCredential</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sasl_config</td><td><a href="#bytebase.v1.SASLConfig">SASLConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>additional_addresses</td><td><a href="#bytebase.v1.DataSource.Address">DataSource.Address</a></td><td>repeated</td><td><p>additional_addresses is used for MongoDB replica set. </p></td></tr>-+<tr><td>direct_connection</td><td><a href="#bool">bool</a></td><td></td><td><p>direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. </p></td></tr>-+<tr><td>region</td><td><a href="#string">string</a></td><td></td><td><p>region is the location of where the DB is, works for AWS RDS. For example, us-east-1. </p></td></tr>-+<tr><td>warehouse_id</td><td><a href="#string">string</a></td><td></td><td><p>warehouse_id is used by Databricks. </p></td></tr>-+<tr><td>master_name</td><td><a href="#string">string</a></td><td></td><td><p>master_name is the master name used by connecting redis-master via redis sentinel. </p></td></tr>-+<tr><td>master_username</td><td><a href="#string">string</a></td><td></td><td><p>master_username and master_password are master credentials used by redis sentinel mode. </p></td></tr>-+<tr><td>master_password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>redis_type</td><td><a href="#bytebase.v1.DataSource.RedisType">DataSource.RedisType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>cluster</td><td><a href="#string">string</a></td><td></td><td><p>Cluster is the cluster name for the data source. Used by CockroachDB. </p></td></tr>-+<tr><td>extra_connection_parameters</td><td><a href="#bytebase.v1.DataSource.ExtraConnectionParametersEntry">DataSource.ExtraConnectionParametersEntry</a></td>@@ -7574,45 +7574,45 @@ CLOUD_SQL_IP_TYPE_UNSPECIFIED is treated as PUBLIC for backward compatibility. <<td><p>Extra connection parameters for the database connection.For PostgreSQL HA, this can be used to set target_session_attrs=read-write </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSource.AWSCredential">DataSource.AWSCredential</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>access_key_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>secret_access_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>session_token</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>role_arn</td><td><a href="#string">string</a></td>@@ -7620,7 +7620,7 @@ For PostgreSQL HA, this can be used to set target_session_attrs=read-write </p><<td><p>ARN of IAM role to assume for cross-account access.See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html </p></td></tr>-+<tr><td>external_id</td><td><a href="#string">string</a></td>@@ -7628,176 +7628,176 @@ See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html </p></td<td><p>Optional external ID for additional security when assuming role.See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSource.Address">DataSource.Address</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>port</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSource.AzureCredential">DataSource.AzureCredential</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>tenant_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSource.ExtraConnectionParametersEntry">DataSource.ExtraConnectionParametersEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSource.GCPCredential">DataSource.GCPCredential</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>secret_type</td><td><a href="#bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</a></td><td></td><td><p>The type of external secret store. </p></td></tr>-+<tr><td>url</td><td><a href="#string">string</a></td><td></td><td><p>The URL of the external secret store. </p></td></tr>-+<tr><td>auth_type</td><td><a href="#bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</a></td><td></td><td><p>The authentication method for accessing the secret store. </p></td></tr>-+<tr><td>app_role</td><td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</a></td><td></td><td><p>AppRole authentication configuration. </p></td></tr>-+<tr><td>token</td><td><a href="#string">string</a></td>@@ -7806,35 +7806,35 @@ See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_ethe literal token (PLAIN), an environment variable name (ENVIRONMENT),or a file path (FILE). </p></td></tr>-+<tr><td>token_type</td><td><a href="#bytebase.v1.DataSourceExternalSecret.TokenType">DataSourceExternalSecret.TokenType</a></td><td></td><td><p>How to interpret the token field when auth_type is TOKEN. </p></td></tr>-+<tr><td>engine_name</td><td><a href="#string">string</a></td><td></td><td><p>engine name is the name for secret engine. </p></td></tr>-+<tr><td>secret_name</td><td><a href="#string">string</a></td><td></td><td><p>the secret name in the engine to store the password. </p></td></tr>-+<tr><td>password_key_name</td><td><a href="#string">string</a></td><td></td><td><p>the key name for the password. </p></td></tr>-+<tr><td>skip_vault_tls_verification</td><td><a href="#bool">bool</a></td>@@ -7845,90 +7845,90 @@ skip_vault_tls_verification disables TLS certificate verification for Vault connDefault is false (verification enabled) for security.Only set to true for development or when certificates cannot be properly validated. </p></td></tr>-+<tr><td>vault_ssl_ca</td><td><a href="#string">string</a></td><td></td><td><p>CA certificate for Vault server verification. </p></td></tr>-+<tr><td>vault_ssl_cert</td><td><a href="#string">string</a></td><td></td><td><p>Client certificate for mutual TLS authentication with Vault. </p></td></tr>-+<tr><td>vault_ssl_key</td><td><a href="#string">string</a></td><td></td><td><p>Client private key for mutual TLS authentication with Vault. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role_id</td><td><a href="#string">string</a></td><td></td><td><p>The role ID for Vault AppRole authentication. </p></td></tr>-+<tr><td>secret_id</td><td><a href="#string">string</a></td><td></td><td><p>the secret id for the role without ttl. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</a></td><td></td><td><p>The type of secret for AppRole authentication. </p></td></tr>-+<tr><td>mount_path</td><td><a href="#string">string</a></td><td></td><td><p>The path where the approle auth method is mounted. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteInstanceRequest">DeleteInstanceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -7936,14 +7936,14 @@ Only set to true for development or when certificates cannot be properly validat<td><p>The name of the instance to delete.Format: instances/{instance} </p></td></tr>-+<tr><td>force</td><td><a href="#bool">bool</a></td><td></td><td><p>If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. </p></td></tr>-+<tr><td>purge</td><td><a href="#bool">bool</a></td>@@ -7953,24 +7953,24 @@ This operation is irreversible. Following AIP-165, this should only be used foradministrative cleanup of old soft-deleted instances.The instance must already be soft-deleted for this to work. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetInstanceRequest">GetInstanceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -7978,24 +7978,24 @@ The instance must already be soft-deleted for this to work. </p></td><td><p>The name of the instance to retrieve.Format: instances/{instance} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Instance">Instance</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8003,49 +8003,49 @@ Format: instances/{instance} </p></td><td><p>The name of the instance.Format: instances/{instance} </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The lifecycle state of the instance. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title of the instance. </p></td></tr>-+<tr><td>engine</td><td><a href="#bytebase.v1.Engine">Engine</a></td><td></td><td><p>The database engine type. </p></td></tr>-+<tr><td>engine_version</td><td><a href="#string">string</a></td><td></td><td><p>The version of the database engine. </p></td></tr>-+<tr><td>external_link</td><td><a href="#string">string</a></td><td></td><td><p>External URL to the database instance console. </p></td></tr>-+<tr><td>data_sources</td><td><a href="#bytebase.v1.DataSource">DataSource</a></td><td>repeated</td><td><p>Data source configurations for connecting to the instance. </p></td></tr>-+<tr><td>environment</td><td><a href="#string">string</a></td>@@ -8053,28 +8053,28 @@ Format: instances/{instance} </p></td><td><p>The environment resource.Format: environments/prod where prod is the environment resource ID. </p></td></tr>-+<tr><td>activation</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the instance is activated for use. </p></td></tr>-+<tr><td>roles</td><td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td>repeated</td><td><p>Database roles available in this instance. </p></td></tr>-+<tr><td>sync_interval</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>How often the instance is synced. </p></td></tr>-+<tr><td>sync_databases</td><td><a href="#string">string</a></td>@@ -8082,14 +8082,14 @@ Format: environments/prod where prod is the environment resource ID. </p></td><td><p>Enable sync for following databases.Default empty, means sync all schemas & databases. </p></td></tr>-+<tr><td>last_sync_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The last time the instance was synced. </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.v1.Instance.LabelsEntry">Instance.LabelsEntry</a></td>@@ -8097,90 +8097,90 @@ Default empty, means sync all schemas & databases. </p></td><td><p>Labels are key-value pairs that can be attached to the instance.For example, { "org_group": "infrastructure", "environment": "production" } </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Instance.LabelsEntry">Instance.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.InstanceResource">InstanceResource</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title of the instance. </p></td></tr>-+<tr><td>engine</td><td><a href="#bytebase.v1.Engine">Engine</a></td><td></td><td><p>The database engine type. </p></td></tr>-+<tr><td>engine_version</td><td><a href="#string">string</a></td><td></td><td><p>The version of the database engine. </p></td></tr>-+<tr><td>data_sources</td><td><a href="#bytebase.v1.DataSource">DataSource</a></td><td>repeated</td><td><p>Data source configurations for the instance. </p></td></tr>-+<tr><td>activation</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the instance is activated. </p></td></tr>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8188,7 +8188,7 @@ For example, { "org_group": "infrastructure", "environment&#<td><p>The name of the instance.Format: instances/{instance} </p></td></tr>-+<tr><td>environment</td><td><a href="#string">string</a></td>@@ -8196,90 +8196,90 @@ Format: instances/{instance} </p></td><td><p>The environment resource.Format: environments/prod where prod is the environment resource ID. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.KerberosConfig">KerberosConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>primary</td><td><a href="#string">string</a></td><td></td><td><p>The primary component of the Kerberos principal. </p></td></tr>-+<tr><td>instance</td><td><a href="#string">string</a></td><td></td><td><p>The instance component of the Kerberos principal. </p></td></tr>-+<tr><td>realm</td><td><a href="#string">string</a></td><td></td><td><p>The Kerberos realm. </p></td></tr>-+<tr><td>keytab</td><td><a href="#bytes">bytes</a></td><td></td><td><p>The keytab file contents for authentication. </p></td></tr>-+<tr><td>kdc_host</td><td><a href="#string">string</a></td><td></td><td><p>The hostname of the Key Distribution Center (KDC). </p></td></tr>-+<tr><td>kdc_port</td><td><a href="#string">string</a></td><td></td><td><p>The port of the Key Distribution Center (KDC). </p></td></tr>-+<tr><td>kdc_transport_protocol</td><td><a href="#string">string</a></td><td></td><td><p>The transport protocol for KDC communication (tcp or udp). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListInstanceDatabaseRequest">ListInstanceDatabaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8287,55 +8287,55 @@ Format: environments/prod where prod is the environment resource ID. </p></td><td><p>The name of the instance.Format: instances/{instance} </p></td></tr>-+<tr><td>instance</td><td><a href="#bytebase.v1.Instance">Instance</a></td><td>optional</td><td><p>The target instance. We need to set this field if the target instance is not created yet. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListInstanceDatabaseResponse">ListInstanceDatabaseResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>databases</td><td><a href="#string">string</a></td><td>repeated</td><td><p>All database name list in the instance. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListInstancesRequest">ListInstancesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -8345,7 +8345,7 @@ this value.If unspecified, at most 10 instances will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -8356,14 +8356,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListInstances` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted instances if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -8404,7 +8404,7 @@ You can combine filter conditions like:name.contains("sample") && environment == "environments/test"host == "127.0.0.1" && port == "54321" </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -8416,31 +8416,31 @@ For example:- order_by = "title desc"- order_by = "title desc, environment asc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListInstancesResponse">ListInstancesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>instances</td><td><a href="#bytebase.v1.Instance">Instance</a></td><td>repeated</td><td><p>The instances from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -8448,24 +8448,24 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8473,7 +8473,7 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the instance to remove a data source from.Format: instances/{instance} </p></td></tr>-+<tr><td>data_source</td><td><a href="#bytebase.v1.DataSource">DataSource</a></td>@@ -8481,48 +8481,48 @@ Format: instances/{instance} </p></td><td><p>Identified by data source ID.Only READ_ONLY data source can be removed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SASLConfig">SASLConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>krb_config</td><td><a href="#bytebase.v1.KerberosConfig">KerberosConfig</a></td><td></td><td><p>Kerberos authentication configuration. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8530,7 +8530,7 @@ Only READ_ONLY data source can be removed. </p></td><td><p>The name of instance.Format: instances/{instance} </p></td></tr>-+<tr><td>enable_full_sync</td><td><a href="#bool">bool</a></td>@@ -8538,48 +8538,48 @@ Format: instances/{instance} </p></td><td><p>When full sync is enabled, all databases in the instance will be synchronized. Otherwise, onlythe instance metadata (such as the database list) and any newly discovered databases will be synced. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SyncInstanceResponse">SyncInstanceResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>databases</td><td><a href="#string">string</a></td><td>repeated</td><td><p>All database name list in the instance. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UndeleteInstanceRequest">UndeleteInstanceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8587,24 +8587,24 @@ the instance metadata (such as the database list) and any newly discovered datab<td><p>The name of the deleted instance.Format: instances/{instance} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateDataSourceRequest">UpdateDataSourceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -8612,28 +8612,28 @@ Format: instances/{instance} </p></td><td><p>The name of the instance to update a data source.Format: instances/{instance} </p></td></tr>-+<tr><td>data_source</td><td><a href="#bytebase.v1.DataSource">DataSource</a></td><td></td><td><p>Identified by data source ID. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>validate_only</td><td><a href="#bool">bool</a></td><td></td><td><p>Validate only also tests the data source connection. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -8641,24 +8641,24 @@ Format: instances/{instance} </p></td><td><p>If set to true, and the data source is not found, a new data source will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>instance</td><td><a href="#bytebase.v1.Instance">Instance</a></td>@@ -8668,14 +8668,14 @@ In this situation, `update_mask` is ignored. </p></td>The instance's `name` field is used to identify the instance to update.Format: instances/{instance} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -8683,16 +8683,16 @@ Format: instances/{instance} </p></td><td><p>If set to true, and the instance is not found, a new instance will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.DataSource.AuthenticationType">DataSource.AuthenticationType</h3><p></p><table class="enum-table">@@ -8700,40 +8700,40 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTHENTICATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PASSWORD</td><td>1</td><td><p></p></td></tr>-+<tr><td>GOOGLE_CLOUD_SQL_IAM</td><td>2</td><td><p></p></td></tr>-+<tr><td>AWS_RDS_IAM</td><td>3</td><td><p></p></td></tr>-+<tr><td>AZURE_IAM</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSource.CloudSQLIPType">DataSource.CloudSQLIPType</h3><p>CloudSQLIPType selects which Cloud SQL IP to dial for Google Cloud SQL IAM connections.</p><table class="enum-table">@@ -8741,34 +8741,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>CLOUD_SQL_IP_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PUBLIC</td><td>1</td><td><p></p></td></tr>-+<tr><td>PRIVATE</td><td>2</td><td><p></p></td></tr>-+<tr><td>PSC</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSource.RedisType">DataSource.RedisType</h3><p></p><table class="enum-table">@@ -8776,34 +8776,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>REDIS_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>STANDALONE</td><td>1</td><td><p></p></td></tr>-+<tr><td>SENTINEL</td><td>2</td><td><p></p></td></tr>-+<tr><td>CLUSTER</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</h3><p></p><table class="enum-table">@@ -8811,28 +8811,28 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SECRET_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified secret type.</p></td></tr>-+<tr><td>PLAIN</td><td>1</td><td><p>Plain text secret.</p></td></tr>-+<tr><td>ENVIRONMENT</td><td>2</td><td><p>Secret from environment variable.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</h3><p></p><table class="enum-table">@@ -8840,28 +8840,28 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTH_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified authentication type.</p></td></tr>-+<tr><td>TOKEN</td><td>1</td><td><p>ref: https://developer.hashicorp.com/vault/docs/auth/token</p></td></tr>-+<tr><td>VAULT_APP_ROLE</td><td>2</td><td><p>ref: https://developer.hashicorp.com/vault/docs/auth/approle</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</h3><p></p><table class="enum-table">@@ -8869,40 +8869,40 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SECRET_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified secret type.</p></td></tr>-+<tr><td>VAULT_KV_V2</td><td>1</td><td><p>ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2</p></td></tr>-+<tr><td>AWS_SECRETS_MANAGER</td><td>2</td><td><p>ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html</p></td></tr>-+<tr><td>GCP_SECRET_MANAGER</td><td>3</td><td><p>ref: https://cloud.google.com/secret-manager/docs</p></td></tr>-+<tr><td>AZURE_KEY_VAULT</td><td>4</td><td><p>ref: https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSourceExternalSecret.TokenType">DataSourceExternalSecret.TokenType</h3><p></p><table class="enum-table">@@ -8910,36 +8910,36 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TOKEN_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified token type, treated as PLAIN for backward compatibility.</p></td></tr>-+<tr><td>PLAIN</td><td>1</td><td><p>The token field holds the literal token value.</p></td></tr>-+<tr><td>ENVIRONMENT</td><td>2</td><td><p>The token field holds the name of an environment variable on theBytebase server that holds the token value.</p></td></tr>-+<tr><td>FILE</td><td>3</td><td><p>The token field holds a path to a file on the Bytebase server thatholds the token value.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DataSourceType">DataSourceType</h3><p></p><table class="enum-table">@@ -8947,32 +8947,32 @@ holds the token value.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>DATA_SOURCE_UNSPECIFIED</td><td>0</td><td><p>Unspecified data source type.</p></td></tr>-+<tr><td>ADMIN</td><td>1</td><td><p>Admin data source with write permissions.</p></td></tr>-+<tr><td>READ_ONLY</td><td>2</td><td><p>Read-only data source for query operations.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.InstanceService">InstanceService</h3><p>InstanceService manages database instances and their connections.</p><table class="enum-table">@@ -8980,7 +8980,7 @@ holds the token value.</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetInstance</td><td><a href="#bytebase.v1.GetInstanceRequest">GetInstanceRequest</a></td>@@ -8988,7 +8988,7 @@ holds the token value.</p></td><td><p>Gets a database instance by name.Permissions required: bb.instances.get</p></td></tr>-+<tr><td>ListInstances</td><td><a href="#bytebase.v1.ListInstancesRequest">ListInstancesRequest</a></td>@@ -8996,7 +8996,7 @@ Permissions required: bb.instances.get</p></td><td><p>Lists all database instances.Permissions required: bb.instances.list</p></td></tr>-+<tr><td>CreateInstance</td><td><a href="#bytebase.v1.CreateInstanceRequest">CreateInstanceRequest</a></td>@@ -9004,7 +9004,7 @@ Permissions required: bb.instances.list</p></td><td><p>Creates a new database instance.Permissions required: bb.instances.create</p></td></tr>-+<tr><td>UpdateInstance</td><td><a href="#bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</a></td>@@ -9012,7 +9012,7 @@ Permissions required: bb.instances.create</p></td><td><p>Updates a database instance.Permissions required: bb.instances.update</p></td></tr>-+<tr><td>DeleteInstance</td><td><a href="#bytebase.v1.DeleteInstanceRequest">DeleteInstanceRequest</a></td>@@ -9020,7 +9020,7 @@ Permissions required: bb.instances.update</p></td><td><p>Deletes or soft-deletes a database instance.Permissions required: bb.instances.delete</p></td></tr>-+<tr><td>UndeleteInstance</td><td><a href="#bytebase.v1.UndeleteInstanceRequest">UndeleteInstanceRequest</a></td>@@ -9028,7 +9028,7 @@ Permissions required: bb.instances.delete</p></td><td><p>Restores a soft-deleted database instance.Permissions required: bb.instances.undelete</p></td></tr>-+<tr><td>SyncInstance</td><td><a href="#bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</a></td>@@ -9036,7 +9036,7 @@ Permissions required: bb.instances.undelete</p></td><td><p>Syncs database schemas and metadata from an instance.Permissions required: bb.instances.sync</p></td></tr>-+<tr><td>ListInstanceDatabase</td><td><a href="#bytebase.v1.ListInstanceDatabaseRequest">ListInstanceDatabaseRequest</a></td>@@ -9044,7 +9044,7 @@ Permissions required: bb.instances.sync</p></td><td><p>Lists all databases within an instance without creating them.Permissions required: bb.instances.get</p></td></tr>-+<tr><td>BatchSyncInstances</td><td><a href="#bytebase.v1.BatchSyncInstancesRequest">BatchSyncInstancesRequest</a></td>@@ -9052,7 +9052,7 @@ Permissions required: bb.instances.get</p></td><td><p>Syncs multiple instances in a single request.Permissions required: bb.instances.sync</p></td></tr>-+<tr><td>BatchUpdateInstances</td><td><a href="#bytebase.v1.BatchUpdateInstancesRequest">BatchUpdateInstancesRequest</a></td>@@ -9060,7 +9060,7 @@ Permissions required: bb.instances.sync</p></td><td><p>Updates multiple instances in a single request.Permissions required: bb.instances.update</p></td></tr>-+<tr><td>AddDataSource</td><td><a href="#bytebase.v1.AddDataSourceRequest">AddDataSourceRequest</a></td>@@ -9068,7 +9068,7 @@ Permissions required: bb.instances.update</p></td><td><p>Adds a read-only data source to an instance.Permissions required: bb.instances.update</p></td></tr>-+<tr><td>RemoveDataSource</td><td><a href="#bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</a></td>@@ -9076,7 +9076,7 @@ Permissions required: bb.instances.update</p></td><td><p>Removes a read-only data source from an instance.Permissions required: bb.instances.update</p></td></tr>-+<tr><td>UpdateDataSource</td><td><a href="#bytebase.v1.UpdateDataSourceRequest">UpdateDataSourceRequest</a></td>@@ -9084,13 +9084,13 @@ Permissions required: bb.instances.update</p></td><td><p>Updates a data source configuration.Permissions required: bb.instances.update</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -9102,159 +9102,159 @@ Permissions required: bb.instances.update</p></td></tr></thead><tbody>---+++<tr><td>GetInstance</td><td>GET</td><td>/v1/{name=instances/*}</td><td></td></tr>----++++<tr><td>ListInstances</td><td>GET</td><td>/v1/instances</td><td></td></tr>----++++<tr><td>CreateInstance</td><td>POST</td><td>/v1/instances</td><td>instance</td></tr>----++++<tr><td>UpdateInstance</td><td>PATCH</td><td>/v1/{instance.name=instances/*}</td><td>instance</td></tr>----++++<tr><td>DeleteInstance</td><td>DELETE</td><td>/v1/{name=instances/*}</td><td></td></tr>----++++<tr><td>UndeleteInstance</td><td>POST</td><td>/v1/{name=instances/*}:undelete</td><td>*</td></tr>----++++<tr><td>SyncInstance</td><td>POST</td><td>/v1/{name=instances/*}:sync</td><td>*</td></tr>----++++<tr><td>ListInstanceDatabase</td><td>POST</td><td>/v1/{name=instances/*}:databases</td><td>*</td></tr>----++++<tr><td>BatchSyncInstances</td><td>POST</td><td>/v1/instances:batchSync</td><td>*</td></tr>----++++<tr><td>BatchUpdateInstances</td><td>POST</td><td>/v1/instances:batchUpdate</td><td>*</td></tr>----++++<tr><td>AddDataSource</td><td>POST</td><td>/v1/{name=instances/*}:addDataSource</td><td>*</td></tr>----++++<tr><td>RemoveDataSource</td><td>POST</td><td>/v1/{name=instances/*}:removeDataSource</td><td>*</td></tr>----++++<tr><td>UpdateDataSource</td><td>PATCH</td><td>/v1/{name=instances/*}:updateDataSource</td><td>data_source</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/database_service.proto">v1/database_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchGetDatabasesRequest">BatchGetDatabasesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -9264,55 +9264,55 @@ Permissions required: bb.instances.update</p></td>- instances/{instances}: batch get databases in a instance;Use "-" as wildcard to batch get databases across parent. </p></td></tr>-+<tr><td>names</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The list of database names to retrieve. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchGetDatabasesResponse">BatchGetDatabasesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>databases</td><td><a href="#bytebase.v1.Database">Database</a></td><td>repeated</td><td><p>The databases from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchSyncDatabasesRequest">BatchSyncDatabasesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -9321,38 +9321,38 @@ Use "-" as wildcard to batch get databases across parent. </p></td>Format: instances/{instance}If the operation spans parents, a dash (-) may be accepted as a wildcard. </p></td></tr>-+<tr><td>names</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The list of database names to sync. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchSyncDatabasesResponse">BatchSyncDatabasesResponse</h3><p></p>---+++<h3 id="bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -9362,7 +9362,7 @@ Format: instances/{instance}If the operation spans parents, a dash (-) may be accepted as a wildcard.We only support updating the project of databases for now. </p></td></tr>-+<tr><td>requests</td><td><a href="#bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</a></td>@@ -9370,135 +9370,135 @@ We only support updating the project of databases for now. </p></td><td><p>The request message specifying the resources to update.A maximum of 1000 databases can be modified in a batch. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchUpdateDatabasesResponse">BatchUpdateDatabasesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>databases</td><td><a href="#bytebase.v1.Database">Database</a></td><td>repeated</td><td><p>Databases updated. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BoundingBox">BoundingBox</h3><p>BoundingBox defines the spatial bounds for GEOMETRY spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>xmin</td><td><a href="#double">double</a></td><td></td><td><p>Minimum X coordinate </p></td></tr>-+<tr><td>ymin</td><td><a href="#double">double</a></td><td></td><td><p>Minimum Y coordinate </p></td></tr>-+<tr><td>xmax</td><td><a href="#double">double</a></td><td></td><td><p>Maximum X coordinate </p></td></tr>-+<tr><td>ymax</td><td><a href="#double">double</a></td><td></td><td><p>Maximum Y coordinate </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Changelog">Changelog</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.Changelog.Status">Changelog.Status</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schema_size</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>task_run</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+<tr><td>plan_title</td><td><a href="#string">string</a></td>@@ -9506,83 +9506,83 @@ A maximum of 1000 databases can be modified in a batch. </p></td><td><p>The title of the plan associated with this changelog's task run.This field is populated by deriving the plan from task_run for display purposes. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</h3><p>CheckConstraintMetadata is the metadata for check constraints.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a check constraint. </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td><td></td><td><p>The expression is the expression of a check constraint. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ColumnMetadata">ColumnMetadata</h3><p>ColumnMetadata is the metadata for columns.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a column. </p></td></tr>-+<tr><td>position</td><td><a href="#int32">int32</a></td><td></td><td><p>The position is the position in columns. </p></td></tr>-+<tr><td>has_default</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>default</td><td><a href="#string">string</a></td><td></td><td><p>The default value of column. </p></td></tr>-+<tr><td>default_on_null</td><td><a href="#bool">bool</a></td>@@ -9590,7 +9590,7 @@ This field is populated by deriving the plan from task_run for display purposes.<td><p>Oracle specific metadata.The default_on_null is the default on null of a column. </p></td></tr>-+<tr><td>on_update</td><td><a href="#string">string</a></td>@@ -9599,77 +9599,77 @@ The default_on_null is the default on null of a column. </p></td>For MySQL like databases, it's only supported for TIMESTAMP columns withCURRENT_TIMESTAMP as on update value. </p></td></tr>-+<tr><td>nullable</td><td><a href="#bool">bool</a></td><td></td><td><p>The nullable is the nullable of a column. </p></td></tr>-+<tr><td>type</td><td><a href="#string">string</a></td><td></td><td><p>The type is the type of a column. </p></td></tr>-+<tr><td>character_set</td><td><a href="#string">string</a></td><td></td><td><p>The character_set is the character_set of a column. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>The collation is the collation of a column. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a column. </p></td></tr>-+<tr><td>generation</td><td><a href="#bytebase.v1.GenerationMetadata">GenerationMetadata</a></td><td></td><td><p>The generation is the generation of a column. </p></td></tr>-+<tr><td>is_identity</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>identity_generation</td><td><a href="#bytebase.v1.ColumnMetadata.IdentityGeneration">ColumnMetadata.IdentityGeneration</a></td><td></td><td><p>The identity_generation is for identity columns, PG only. </p></td></tr>-+<tr><td>identity_seed</td><td><a href="#int64">int64</a></td><td></td><td><p>The identity_seed is for identity columns, MSSQL only. </p></td></tr>-+<tr><td>identity_increment</td><td><a href="#int64">int64</a></td><td></td><td><p>The identity_increment is for identity columns, MSSQL only. </p></td></tr>-+<tr><td>default_constraint_name</td><td><a href="#string">string</a></td>@@ -9695,24 +9695,24 @@ To modify the default, you must first drop the existing constraint by name:This field is populated when syncing from the database. When empty (e.g., when parsingfrom SQL files), the system cannot automatically drop the constraint. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Database">Database</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -9721,21 +9721,21 @@ from SQL files), the system cannot automatically drop the constraint. </p></td>Format: instances/{instance}/databases/{database}{database} is the database name in the instance. </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The existence of a database. </p></td></tr>-+<tr><td>successful_sync_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The latest synchronization time. </p></td></tr>-+<tr><td>project</td><td><a href="#string">string</a></td>@@ -9743,7 +9743,7 @@ Format: instances/{instance}/databases/{database}<td><p>The project for a database.Format: projects/{project} </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -9752,7 +9752,7 @@ Format: projects/{project} </p></td>Format: projects/{project}/releases/{release_id}Example: projects/my-project/releases/release_20260115-RC00 </p></td></tr>-+<tr><td>environment</td><td><a href="#string">string</a></td>@@ -9760,7 +9760,7 @@ Example: projects/my-project/releases/release_20260115-RC00 </p></td><td><p>The environment resource.Format: environments/prod where prod is the environment resource ID. </p></td></tr>-+<tr><td>effective_environment</td><td><a href="#string">string</a></td>@@ -9769,90 +9769,90 @@ Format: environments/prod where prod is the environment resource ID. </p></td>tag on the instance. Inheritance followshttps://cloud.google.com/resource-manager/docs/tags/tags-overview. </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.v1.Database.LabelsEntry">Database.LabelsEntry</a></td><td>repeated</td><td><p>Labels will be used for deployment and policy control. </p></td></tr>-+<tr><td>instance_resource</td><td><a href="#bytebase.v1.InstanceResource">InstanceResource</a></td><td></td><td><p>The instance resource. </p></td></tr>-+<tr><td>backup_available</td><td><a href="#bool">bool</a></td><td></td><td><p>The database is available for DML prior backup. </p></td></tr>-+<tr><td>sync_status</td><td><a href="#bytebase.v1.SyncStatus">SyncStatus</a></td><td></td><td><p>The sync status of the database. </p></td></tr>-+<tr><td>sync_error</td><td><a href="#string">string</a></td><td></td><td><p>The error message if sync failed. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Database.LabelsEntry">Database.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseMetadata">DatabaseMetadata</h3><p>DatabaseMetadata is the metadata for databases.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -9861,66 +9861,66 @@ https://cloud.google.com/resource-manager/docs/tags/tags-overview. </p></td>Format: instances/{instance}/databases/{database}/metadata </p></td></tr>-+<tr><td>schemas</td><td><a href="#bytebase.v1.SchemaMetadata">SchemaMetadata</a></td><td>repeated</td><td><p>The schemas is the list of schemas in a database. </p></td></tr>-+<tr><td>character_set</td><td><a href="#string">string</a></td><td></td><td><p>The character_set is the character set of a database. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>The collation is the collation of a database. </p></td></tr>-+<tr><td>extensions</td><td><a href="#bytebase.v1.ExtensionMetadata">ExtensionMetadata</a></td><td>repeated</td><td><p>The extensions is the list of extensions in a database. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the database. </p></td></tr>-+<tr><td>search_path</td><td><a href="#string">string</a></td><td></td><td><p>The search_path is the search path of a PostgreSQL database. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseSDLSchema">DatabaseSDLSchema</h3><p>DatabaseSDLSchema contains the schema in SDL format.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema</td><td><a href="#bytes">bytes</a></td>@@ -9929,7 +9929,7 @@ Format: instances/{instance}/databases/{database}/metadata </p></td>- For SINGLE_FILE format: contains the complete SDL schema as a text string.- For MULTI_FILE format: contains the ZIP archive as binary data. </p></td></tr>-+<tr><td>content_type</td><td><a href="#string">string</a></td>@@ -9940,117 +9940,117 @@ Examples:- "text/plain; charset=utf-8" for SINGLE_FILE format- "application/zip" for MULTI_FILE format </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseSchema">DatabaseSchema</h3><p>DatabaseSchema is the metadata for databases.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema dump from database. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DependencyColumn">DependencyColumn</h3><p>DependencyColumn is the metadata for dependency columns.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema is the schema of a reference column. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td><td></td><td><p>The table is the table of a reference column. </p></td></tr>-+<tr><td>column</td><td><a href="#string">string</a></td><td></td><td><p>The column is the name of a reference column. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DependencyTable">DependencyTable</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema is the schema of a reference table. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td><td></td><td><p>The table is the name of a reference table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10060,14 +10060,14 @@ Format:database: instances/{instance}/databases/{database}changelog: instances/{instance}/databases/{database}/changelogs/{changelog} </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>The target schema. </p></td></tr>-+<tr><td>changelog</td><td><a href="#string">string</a></td>@@ -10076,256 +10076,256 @@ changelog: instances/{instance}/databases/{database}/changelogs/{changelog} </p>Format:instances/{instance}/databases/{database}/changelogs/{changelog} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>diff</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DimensionConstraint">DimensionConstraint</h3><p>DimensionConstraint defines constraints for a spatial dimension.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>dimension</td><td><a href="#string">string</a></td><td></td><td><p>Dimension name/type (X, Y, Z, M, etc.) </p></td></tr>-+<tr><td>min_value</td><td><a href="#double">double</a></td><td></td><td><p>Minimum value for this dimension </p></td></tr>-+<tr><td>max_value</td><td><a href="#double">double</a></td><td></td><td><p>Maximum value for this dimension </p></td></tr>-+<tr><td>tolerance</td><td><a href="#double">double</a></td><td></td><td><p>Tolerance for this dimension </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DimensionalConfig">DimensionalConfig</h3><p>DimensionalConfig defines dimensional and constraint parameters for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>dimensions</td><td><a href="#int32">int32</a></td><td></td><td><p>Number of dimensions (2-4, default 2) </p></td></tr>-+<tr><td>data_type</td><td><a href="#string">string</a></td><td></td><td><p>Spatial data type (GEOMETRY, GEOGRAPHY, POINT, POLYGON, etc.) </p></td></tr>-+<tr><td>srid</td><td><a href="#int32">int32</a></td><td></td><td><p>Spatial reference system identifier (SRID) </p></td></tr>-+<tr><td>constraints</td><td><a href="#bytebase.v1.DimensionConstraint">DimensionConstraint</a></td><td>repeated</td><td><p>Coordinate system constraints </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EnumTypeMetadata">EnumTypeMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of a type. </p></td></tr>-+<tr><td>values</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The enum values of a type. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment describing the enum type. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip this enum type during schema dump operations. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EventMetadata">EventMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the event. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The schedule of the event. </p></td></tr>-+<tr><td>time_zone</td><td><a href="#string">string</a></td><td></td><td><p>The time zone of the event. </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p>The SQL mode setting for the event. </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p>The character set used by the client creating the event. </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p>The collation used for the connection when creating the event. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of an event. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExtensionMetadata">ExtensionMetadata</h3><p>ExtensionMetadata is the metadata for extensions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of an extension. </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td>@@ -10333,97 +10333,97 @@ instances/{instance}/databases/{database}/changelogs/{changelog} </p></td><td><p>The schema is the extension that is installed to. But the extension usageis not limited to the schema. </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The version is the version of an extension. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>The description is the description of an extension. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExternalTableMetadata">ExternalTableMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a external table. </p></td></tr>-+<tr><td>external_server_name</td><td><a href="#string">string</a></td><td></td><td><p>The external_server_name is the name of the external server. </p></td></tr>-+<tr><td>external_database_name</td><td><a href="#string">string</a></td><td></td><td><p>The external_database_name is the name of the external database. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td><td>repeated</td><td><p>The columns is the ordered list of columns in a foreign table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ForeignKeyMetadata">ForeignKeyMetadata</h3><p>ForeignKeyMetadata is the metadata for foreign keys.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a foreign key. </p></td></tr>-+<tr><td>columns</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The columns are the ordered referencing columns of a foreign key. </p></td></tr>-+<tr><td>referenced_schema</td><td><a href="#string">string</a></td>@@ -10431,35 +10431,35 @@ is not limited to the schema. </p></td><td><p>The referenced_schema is the referenced schema name of a foreign key.It is an empty string for databases without such concept such as MySQL. </p></td></tr>-+<tr><td>referenced_table</td><td><a href="#string">string</a></td><td></td><td><p>The referenced_table is the referenced table name of a foreign key. </p></td></tr>-+<tr><td>referenced_columns</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The referenced_columns are the ordered referenced columns of a foreign key. </p></td></tr>-+<tr><td>on_delete</td><td><a href="#string">string</a></td><td></td><td><p>The on_delete is the on delete action of a foreign key. </p></td></tr>-+<tr><td>on_update</td><td><a href="#string">string</a></td><td></td><td><p>The on_update is the on update action of a foreign key. </p></td></tr>-+<tr><td>match_type</td><td><a href="#string">string</a></td>@@ -10468,38 +10468,38 @@ It is an empty string for databases without such concept such as MySQL. </p></tdThe match_type is the PostgreSQL specific field.It's empty string for other databases. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.FunctionMetadata">FunctionMetadata</h3><p>FunctionMetadata is the metadata for functions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a function. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a function. </p></td></tr>-+<tr><td>signature</td><td><a href="#string">string</a></td>@@ -10507,42 +10507,42 @@ It's empty string for other databases. </p></td><td><p>The signature is the name with the number and type of input arguments thefunction takes. </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p>MySQL specific metadata. </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_collation</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>dependency_tables</td><td><a href="#bytebase.v1.DependencyTable">DependencyTable</a></td>@@ -10550,62 +10550,62 @@ function takes. </p></td><td><p>The dependency_tables is the list of dependency tables of a function.For PostgreSQL, it's the list of tables that the function depends on the return type definition. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GenerationMetadata">GenerationMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.GenerationMetadata.Type">GenerationMetadata.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetChangelogRequest">GetChangelogRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10613,31 +10613,31 @@ For PostgreSQL, it's the list of tables that the function depends on the ret<td><p>The name of the changelog to retrieve.Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></td></tr>-+<tr><td>view</td><td><a href="#bytebase.v1.ChangelogView">ChangelogView</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetDatabaseMetadataRequest">GetDatabaseMetadataRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10645,7 +10645,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<td><p>The name of the database to retrieve metadata.Format: instances/{instance}/databases/{database}/metadata </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -10665,7 +10665,7 @@ schema == "schema-a" && table.contains("sample")The filter is used to search for tables containing "sample" in the schema "schemas/schema-a".The column masking level will only be returned when a table filter is used. </p></td></tr>-+<tr><td>limit</td><td><a href="#int32">int32</a></td>@@ -10675,24 +10675,24 @@ For example, if the database has 3 schemas, and each schema has 100 tables,if limit is 20, then only 20 tables will be returned for each schema, total 60 tables.Default 0, means no limit. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetDatabaseRequest">GetDatabaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10700,24 +10700,24 @@ Default 0, means no limit. </p></td><td><p>The name of the database to retrieve.Format: instances/{instance}/databases/{database} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetDatabaseSDLSchemaRequest">GetDatabaseSDLSchemaRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10725,31 +10725,31 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The name of the database to retrieve SDL schema.Format: instances/{instance}/databases/{database}/sdlSchema </p></td></tr>-+<tr><td>format</td><td><a href="#bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat">GetDatabaseSDLSchemaRequest.SDLFormat</a></td><td></td><td><p>The format of the SDL schema output. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10757,24 +10757,24 @@ Format: instances/{instance}/databases/{database}/sdlSchema </p></td><td><p>The name of the database to retrieve schema.Format: instances/{instance}/databases/{database}/schema </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetSchemaStringRequest">GetSchemaStringRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -10782,28 +10782,28 @@ Format: instances/{instance}/databases/{database}/schema </p></td><td><p>The name of the database.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.GetSchemaStringRequest.ObjectType">GetSchemaStringRequest.ObjectType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td><td></td><td><p>It's empty for DATABASE. </p></td></tr>-+<tr><td>object</td><td><a href="#string">string</a></td><td></td><td><p>It's empty for DATABASE and SCHEMA. </p></td></tr>-+<tr><td>metadata</td><td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>@@ -10811,86 +10811,86 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>If use the metadata to generate the schema string, the type is OBJECT_TYPE_UNSPECIFIED.Also the schema and object are empty. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetSchemaStringResponse">GetSchemaStringResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>schema_string</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GridLevel">GridLevel</h3><p>GridLevel defines a tessellation grid level with its density.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>level</td><td><a href="#int32">int32</a></td><td></td><td><p>Grid level number (1-4 for SQL Server) </p></td></tr>-+<tr><td>density</td><td><a href="#string">string</a></td><td></td><td><p>Grid density (LOW, MEDIUM, HIGH) </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IndexMetadata">IndexMetadata</h3><p>IndexMetadata is the metadata for indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of an index. </p></td></tr>-+<tr><td>expressions</td><td><a href="#string">string</a></td>@@ -10898,7 +10898,7 @@ Also the schema and object are empty. </p></td><td><p>The expressions are the ordered columns or expressions of an index.This could refer to a column or an expression. </p></td></tr>-+<tr><td>key_length</td><td><a href="#int64">int64</a></td>@@ -10906,77 +10906,77 @@ This could refer to a column or an expression. </p></td><td><p>The key_lengths are the ordered key lengths of an index.If the key length is not specified, it's -1. </p></td></tr>-+<tr><td>descending</td><td><a href="#bool">bool</a></td><td>repeated</td><td><p>The descending is the ordered descending of an index. </p></td></tr>-+<tr><td>type</td><td><a href="#string">string</a></td><td></td><td><p>The type is the type of an index. </p></td></tr>-+<tr><td>unique</td><td><a href="#bool">bool</a></td><td></td><td><p>The unique is whether the index is unique. </p></td></tr>-+<tr><td>primary</td><td><a href="#bool">bool</a></td><td></td><td><p>The primary is whether the index is a primary key index. </p></td></tr>-+<tr><td>visible</td><td><a href="#bool">bool</a></td><td></td><td><p>The visible is whether the index is visible. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of an index. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition of an index. </p></td></tr>-+<tr><td>parent_index_schema</td><td><a href="#string">string</a></td><td></td><td><p>The schema name of the parent index. </p></td></tr>-+<tr><td>parent_index_name</td><td><a href="#string">string</a></td><td></td><td><p>The index name of the parent index. </p></td></tr>-+<tr><td>granularity</td><td><a href="#int64">int64</a></td><td></td><td><p>The number of granules in the block. It's a ClickHouse specific field. </p></td></tr>-+<tr><td>is_constraint</td><td><a href="#bool">bool</a></td>@@ -10984,14 +10984,14 @@ If the key length is not specified, it's -1. </p></td><td><p>It's a PostgreSQL specific field.The unique constraint and unique index are not the same thing in PostgreSQL. </p></td></tr>-+<tr><td>spatial_config</td><td><a href="#bytebase.v1.SpatialIndexConfig">SpatialIndexConfig</a></td><td></td><td><p>Spatial index configuration for spatial databases like SQL Server, PostgreSQL with PostGIS, etc. </p></td></tr>-+<tr><td>opclass_names</td><td><a href="#string">string</a></td>@@ -10999,31 +10999,31 @@ The unique constraint and unique index are not the same thing in PostgreSQL. </p<td><p>https://www.postgresql.org/docs/current/catalog-pg-opclass.htmlName of the operator class for each column. (PostgreSQL specific). </p></td></tr>-+<tr><td>opclass_defaults</td><td><a href="#bool">bool</a></td><td>repeated</td><td><p>True if the operator class is the default. (PostgreSQL specific). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListChangelogsRequest">ListChangelogsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -11031,7 +11031,7 @@ Name of the operator class for each column. (PostgreSQL specific). </p></td><td><p>The parent of the changelogs.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -11040,7 +11040,7 @@ Format: instances/{instance}/databases/{database} </p></td>than this value. If unspecified, at most 10 changelogs will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -11051,14 +11051,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided must matchthe call that provided the page token. </p></td></tr>-+<tr><td>view</td><td><a href="#bytebase.v1.ChangelogView">ChangelogView</a></td><td></td><td><p> </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -11075,31 +11075,31 @@ status == "DONE"status == "FAILED" && type == "SDL"create_time >= "2024-01-01T00:00:00Z" && create_time <= "2024-01-02T00:00:00Z" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListChangelogsResponse">ListChangelogsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>changelogs</td><td><a href="#bytebase.v1.Changelog">Changelog</a></td><td>repeated</td><td><p>The list of changelogs. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -11107,24 +11107,24 @@ create_time >= "2024-01-01T00:00:00Z" && create_time <= &#<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListDatabasesRequest">ListDatabasesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -11133,7 +11133,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- workspaces/{id}: list databases in the workspace, require "bb.databases.list" permission.- instances/{instances}: list databases in a instance, require "bb.instances.get" permission </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -11143,7 +11143,7 @@ than this value.If unspecified, at most 10 databases will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -11154,7 +11154,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListDatabases` mustmatch the call that provided the page token. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -11191,14 +11191,14 @@ labels.region in ["asia", "europe"]You can combine filter conditions like:environment == "environments/prod" && name.contains("employee") </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted database if specified. </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -11210,31 +11210,31 @@ For example:- order_by = "name desc"- order_by = "name desc, project asc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListDatabasesResponse">ListDatabasesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>databases</td><td><a href="#bytebase.v1.Database">Database</a></td><td>repeated</td><td><p>The databases from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -11242,45 +11242,45 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</h3><p>MaterializedViewMetadata is the metadata for materialized views.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a materialized view. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a materialized view. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a materialized view. </p></td></tr>-+<tr><td>dependency_columns</td><td><a href="#bytebase.v1.DependencyColumn">DependencyColumn</a></td>@@ -11288,90 +11288,90 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The dependency_columns is the list of dependency columns of a materializedview. </p></td></tr>-+<tr><td>triggers</td><td><a href="#bytebase.v1.TriggerMetadata">TriggerMetadata</a></td><td>repeated</td><td><p>The columns is the ordered list of columns in a table. </p></td></tr>-+<tr><td>indexes</td><td><a href="#bytebase.v1.IndexMetadata">IndexMetadata</a></td><td>repeated</td><td><p>The indexes is the list of indexes in a table. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PackageMetadata">PackageMetadata</h3><p>PackageMetadata is the metadata for packages.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a package. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a package. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ProcedureMetadata">ProcedureMetadata</h3><p>ProcedureMetadata is the metadata for procedures.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a procedure. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a procedure. </p></td></tr>-+<tr><td>signature</td><td><a href="#string">string</a></td>@@ -11379,66 +11379,66 @@ view. </p></td><td><p>The signature is the name with the number and type of input arguments theprocedure takes. </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p>MySQL specific metadata. </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>database_collation</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a procedure. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SchemaMetadata">SchemaMetadata</h3><p>SchemaMetadata is the metadata for schemas.</p><p>This is the concept of schema in Postgres, but it's a no-op for MySQL.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -11446,42 +11446,42 @@ procedure takes. </p></td><td><p>The name is the schema name.It is an empty string for databases without such concept such as MySQL. </p></td></tr>-+<tr><td>tables</td><td><a href="#bytebase.v1.TableMetadata">TableMetadata</a></td><td>repeated</td><td><p>The tables is the list of tables in a schema. </p></td></tr>-+<tr><td>external_tables</td><td><a href="#bytebase.v1.ExternalTableMetadata">ExternalTableMetadata</a></td><td>repeated</td><td><p>The external_tables is the list of external tables in a schema. </p></td></tr>-+<tr><td>views</td><td><a href="#bytebase.v1.ViewMetadata">ViewMetadata</a></td><td>repeated</td><td><p>The views is the list of views in a schema. </p></td></tr>-+<tr><td>functions</td><td><a href="#bytebase.v1.FunctionMetadata">FunctionMetadata</a></td><td>repeated</td><td><p>The functions is the list of functions in a schema. </p></td></tr>-+<tr><td>procedures</td><td><a href="#bytebase.v1.ProcedureMetadata">ProcedureMetadata</a></td><td>repeated</td><td><p>The procedures is the list of procedures in a schema. </p></td></tr>-+<tr><td>streams</td><td><a href="#bytebase.v1.StreamMetadata">StreamMetadata</a></td>@@ -11489,7 +11489,7 @@ It is an empty string for databases without such concept such as MySQL. </p></td<td><p>The streams is the list of streams in a schema, currently, only used forSnowflake. </p></td></tr>-+<tr><td>tasks</td><td><a href="#bytebase.v1.TaskMetadata">TaskMetadata</a></td>@@ -11497,421 +11497,421 @@ Snowflake. </p></td><td><p>The routines is the list of routines in a schema, currently, only used forSnowflake. </p></td></tr>-+<tr><td>materialized_views</td><td><a href="#bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</a></td><td>repeated</td><td><p>The materialized_views is the list of materialized views in a schema. </p></td></tr>-+<tr><td>packages</td><td><a href="#bytebase.v1.PackageMetadata">PackageMetadata</a></td><td>repeated</td><td><p>The packages is the list of packages in a schema. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the schema. </p></td></tr>-+<tr><td>sequences</td><td><a href="#bytebase.v1.SequenceMetadata">SequenceMetadata</a></td><td>repeated</td><td><p>The sequences is the list of sequences in a schema, sorted by name. </p></td></tr>-+<tr><td>events</td><td><a href="#bytebase.v1.EventMetadata">EventMetadata</a></td><td>repeated</td><td><p>The events is the list of scheduled events in a schema. </p></td></tr>-+<tr><td>enum_types</td><td><a href="#bytebase.v1.EnumTypeMetadata">EnumTypeMetadata</a></td><td>repeated</td><td><p>The enum_types is the list of user-defined enum types in a schema. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip this schema during schema dump operations. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a schema. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SequenceMetadata">SequenceMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of a sequence. </p></td></tr>-+<tr><td>data_type</td><td><a href="#string">string</a></td><td></td><td><p>The data type of a sequence. </p></td></tr>-+<tr><td>start</td><td><a href="#string">string</a></td><td></td><td><p>The start value of a sequence. </p></td></tr>-+<tr><td>min_value</td><td><a href="#string">string</a></td><td></td><td><p>The minimum value of a sequence. </p></td></tr>-+<tr><td>max_value</td><td><a href="#string">string</a></td><td></td><td><p>The maximum value of a sequence. </p></td></tr>-+<tr><td>increment</td><td><a href="#string">string</a></td><td></td><td><p>Increment value of a sequence. </p></td></tr>-+<tr><td>cycle</td><td><a href="#bool">bool</a></td><td></td><td><p>Cycle is whether the sequence cycles. </p></td></tr>-+<tr><td>cache_size</td><td><a href="#string">string</a></td><td></td><td><p>Cache size of a sequence. </p></td></tr>-+<tr><td>last_value</td><td><a href="#string">string</a></td><td></td><td><p>Last value of a sequence. </p></td></tr>-+<tr><td>owner_table</td><td><a href="#string">string</a></td><td></td><td><p>The owner table of the sequence. </p></td></tr>-+<tr><td>owner_column</td><td><a href="#string">string</a></td><td></td><td><p>The owner column of the sequence. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment describing the sequence. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip this sequence during schema dump operations. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SpatialIndexConfig">SpatialIndexConfig</h3><p>SpatialIndexConfig defines the spatial index configuration for spatial databases.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>method</td><td><a href="#string">string</a></td><td></td><td><p>Spatial indexing method (e.g., "SPATIAL", "R-TREE", "GIST") </p></td></tr>-+<tr><td>tessellation</td><td><a href="#bytebase.v1.TessellationConfig">TessellationConfig</a></td><td></td><td><p>Tessellation configuration for grid-based spatial indexes </p></td></tr>-+<tr><td>storage</td><td><a href="#bytebase.v1.StorageConfig">StorageConfig</a></td><td></td><td><p>Storage and performance configuration </p></td></tr>-+<tr><td>dimensional</td><td><a href="#bytebase.v1.DimensionalConfig">DimensionalConfig</a></td><td></td><td><p>Dimensional configuration </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.StorageConfig">StorageConfig</h3><p>StorageConfig defines storage and performance parameters for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>fillfactor</td><td><a href="#int32">int32</a></td><td></td><td><p>Fill factor percentage (1-100) </p></td></tr>-+<tr><td>buffering</td><td><a href="#string">string</a></td><td></td><td><p>Buffering mode for PostgreSQL (auto, on, off) </p></td></tr>-+<tr><td>tablespace</td><td><a href="#string">string</a></td><td></td><td><p>Tablespace configuration for Oracle </p></td></tr>-+<tr><td>work_tablespace</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sdo_level</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>commit_interval</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>pad_index</td><td><a href="#bool">bool</a></td><td></td><td><p>SQL Server specific parameters </p></td></tr>-+<tr><td>sort_in_tempdb</td><td><a href="#string">string</a></td><td></td><td><p>ON, OFF </p></td></tr>-+<tr><td>drop_existing</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>online</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>allow_row_locks</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>allow_page_locks</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>maxdop</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>data_compression</td><td><a href="#string">string</a></td><td></td><td><p>NONE, ROW, PAGE </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.StreamMetadata">StreamMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a stream. </p></td></tr>-+<tr><td>table_name</td><td><a href="#string">string</a></td><td></td><td><p>The table_name is the name of the table/view that the stream is created on. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the stream. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment of the stream. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.StreamMetadata.Type">StreamMetadata.Type</a></td><td></td><td><p>The type of the stream. </p></td></tr>-+<tr><td>stale</td><td><a href="#bool">bool</a></td><td></td><td><p>Indicates whether the stream was last read before the `stale_after` time. </p></td></tr>-+<tr><td>mode</td><td><a href="#bytebase.v1.StreamMetadata.Mode">StreamMetadata.Mode</a></td><td></td><td><p>The mode of the stream. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition of the stream. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SyncDatabaseRequest">SyncDatabaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -11919,143 +11919,143 @@ Snowflake. </p></td><td><p>The name of the database to sync.Format: instances/{instance}/databases/{database} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SyncDatabaseResponse">SyncDatabaseResponse</h3><p></p>---+++<h3 id="bytebase.v1.TableMetadata">TableMetadata</h3><p>TableMetadata is the metadata for tables.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a table. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td><td>repeated</td><td><p>The columns is the ordered list of columns in a table. </p></td></tr>-+<tr><td>indexes</td><td><a href="#bytebase.v1.IndexMetadata">IndexMetadata</a></td><td>repeated</td><td><p>The indexes is the list of indexes in a table. </p></td></tr>-+<tr><td>engine</td><td><a href="#string">string</a></td><td></td><td><p>The engine is the engine of a table. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>The collation is the collation of a table. </p></td></tr>-+<tr><td>charset</td><td><a href="#string">string</a></td><td></td><td><p>The character set of table. </p></td></tr>-+<tr><td>row_count</td><td><a href="#int64">int64</a></td><td></td><td><p>The row_count is the estimated number of rows of a table. </p></td></tr>-+<tr><td>data_size</td><td><a href="#int64">int64</a></td><td></td><td><p>The data_size is the estimated data size of a table. </p></td></tr>-+<tr><td>index_size</td><td><a href="#int64">int64</a></td><td></td><td><p>The index_size is the estimated index size of a table. </p></td></tr>-+<tr><td>data_free</td><td><a href="#int64">int64</a></td><td></td><td><p>The data_free is the estimated free data size of a table. </p></td></tr>-+<tr><td>create_options</td><td><a href="#string">string</a></td><td></td><td><p>The create_options is the create option of a table. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a table. </p></td></tr>-+<tr><td>foreign_keys</td><td><a href="#bytebase.v1.ForeignKeyMetadata">ForeignKeyMetadata</a></td><td>repeated</td><td><p>The foreign_keys is the list of foreign keys in a table. </p></td></tr>-+<tr><td>partitions</td><td><a href="#bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</a></td><td>repeated</td><td><p>The partitions is the list of partitions in a table. </p></td></tr>-+<tr><td>check_constraints</td><td><a href="#bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</a></td><td>repeated</td><td><p>The check_constraints is the list of check constraints in a table. </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the table. </p></td></tr>-+<tr><td>sorting_keys</td><td><a href="#string">string</a></td>@@ -12063,28 +12063,28 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The sorting_keys is a tuple of column names or arbitrary expressions. ClickHouse specific field.Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by </p></td></tr>-+<tr><td>triggers</td><td><a href="#bytebase.v1.TriggerMetadata">TriggerMetadata</a></td><td>repeated</td><td><p>The triggers is the list of triggers associated with the table. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip this table during schema dump operations. </p></td></tr>-+<tr><td>sharding_info</td><td><a href="#string">string</a></td><td></td><td><p>https://docs.pingcap.com/tidb/stable/information-schema-tables/ </p></td></tr>-+<tr><td>primary_key_type</td><td><a href="#string">string</a></td>@@ -12092,38 +12092,38 @@ Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family<td><p>https://docs.pingcap.com/tidb/stable/clustered-indexes/#clustered-indexesCLUSTERED or NONCLUSTERED. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</h3><p>TablePartitionMetadata is the metadata for table partitions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a table partition. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.TablePartitionMetadata.Type">TablePartitionMetadata.Type</a></td><td></td><td><p>The type of a table partition. </p></td></tr>-+<tr><td>expression</td><td><a href="#string">string</a></td>@@ -12139,7 +12139,7 @@ PARTITION BY| RANGE{(expr) | COLUMNS(column_list)}| LIST{(expr) | COLUMNS(column_list)} }. </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td>@@ -12153,7 +12153,7 @@ partition's VALUES IN clause, which is a list of comma-separated integervalues.- For others, it's an empty string. </p></td></tr>-+<tr><td>use_default</td><td><a href="#string">string</a></td>@@ -12163,52 +12163,52 @@ the different value for different database engines. For MySQL, it's [INT]type, 0 means not use default partition, otherwise, it's equals to numberin syntax [SUB]PARTITION {number}. </p></td></tr>-+<tr><td>subpartitions</td><td><a href="#bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</a></td><td>repeated</td><td><p>The subpartitions is the list of subpartitions in a table partition. </p></td></tr>-+<tr><td>indexes</td><td><a href="#bytebase.v1.IndexMetadata">IndexMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>check_constraints</td><td><a href="#bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TaskMetadata">TaskMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a task. </p></td></tr>-+<tr><td>id</td><td><a href="#string">string</a></td>@@ -12216,132 +12216,132 @@ in syntax [SUB]PARTITION {number}. </p></td><td><p>The id is the snowflake-generated id of a task.Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>The owner of the task. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment of the task. </p></td></tr>-+<tr><td>warehouse</td><td><a href="#string">string</a></td><td></td><td><p>The warehouse of the task. </p></td></tr>-+<tr><td>schedule</td><td><a href="#string">string</a></td><td></td><td><p>The schedule interval of the task. </p></td></tr>-+<tr><td>predecessors</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The predecessor tasks of the task. </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.TaskMetadata.State">TaskMetadata.State</a></td><td></td><td><p>The state of the task. </p></td></tr>-+<tr><td>condition</td><td><a href="#string">string</a></td><td></td><td><p>The condition of the task. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition of the task. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TessellationConfig">TessellationConfig</h3><p>TessellationConfig defines tessellation parameters for spatial indexes.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>scheme</td><td><a href="#string">string</a></td><td></td><td><p>Tessellation scheme (e.g., "GEOMETRY_GRID", "GEOGRAPHY_GRID", "GEOMETRY_AUTO_GRID") </p></td></tr>-+<tr><td>grid_levels</td><td><a href="#bytebase.v1.GridLevel">GridLevel</a></td><td>repeated</td><td><p>Grid levels and densities for multi-level tessellation </p></td></tr>-+<tr><td>cells_per_object</td><td><a href="#int32">int32</a></td><td></td><td><p>Number of cells per object (1-8192 for SQL Server) </p></td></tr>-+<tr><td>bounding_box</td><td><a href="#bytebase.v1.BoundingBox">BoundingBox</a></td><td></td><td><p>Bounding box for GEOMETRY tessellation (not used for GEOGRAPHY) </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TriggerMetadata">TriggerMetadata</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of the trigger. </p></td></tr>-+<tr><td>event</td><td><a href="#string">string</a></td>@@ -12349,73 +12349,73 @@ Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td><td><p>The event is the event of the trigger, such as INSERT, UPDATE, DELETE,TRUNCATE. </p></td></tr>-+<tr><td>timing</td><td><a href="#string">string</a></td><td></td><td><p>The timing is the timing of the trigger, such as BEFORE, AFTER. </p></td></tr>-+<tr><td>body</td><td><a href="#string">string</a></td><td></td><td><p>The body is the body of the trigger. </p></td></tr>-+<tr><td>sql_mode</td><td><a href="#string">string</a></td><td></td><td><p>The SQL mode setting for the trigger. </p></td></tr>-+<tr><td>character_set_client</td><td><a href="#string">string</a></td><td></td><td><p>The character set used by the client creating the trigger. </p></td></tr>-+<tr><td>collation_connection</td><td><a href="#string">string</a></td><td></td><td><p>The collation used for the connection when creating the trigger. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment describing the trigger. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip this trigger during schema dump operations. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>database</td><td><a href="#bytebase.v1.Database">Database</a></td>@@ -12425,14 +12425,14 @@ TRUNCATE. </p></td>The database's `name` field is used to identify the database to update.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -12440,82 +12440,82 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>If set to true, and the database is not found, a new database will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ViewMetadata">ViewMetadata</h3><p>ViewMetadata is the metadata for views.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name is the name of a view. </p></td></tr>-+<tr><td>definition</td><td><a href="#string">string</a></td><td></td><td><p>The definition is the definition of a view. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment is the comment of a view. </p></td></tr>-+<tr><td>dependency_columns</td><td><a href="#bytebase.v1.DependencyColumn">DependencyColumn</a></td><td>repeated</td><td><p>The dependency_columns is the list of dependency columns of a view. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td><td>repeated</td><td><p>The columns is the ordered list of columns in a table. </p></td></tr>-+<tr><td>triggers</td><td><a href="#bytebase.v1.TriggerMetadata">TriggerMetadata</a></td><td>repeated</td><td><p>The triggers is the list of triggers in a view. </p></td></tr>-+<tr><td>skip_dump</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Changelog.Status">Changelog.Status</h3><p></p><table class="enum-table">@@ -12523,34 +12523,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p></p></td></tr>-+<tr><td>DONE</td><td>2</td><td><p></p></td></tr>-+<tr><td>FAILED</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.ChangelogView">ChangelogView</h3><p></p><table class="enum-table">@@ -12558,29 +12558,29 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>CHANGELOG_VIEW_UNSPECIFIED</td><td>0</td><td><p>The default / unset value.The API will default to the BASIC view.</p></td></tr>-+<tr><td>CHANGELOG_VIEW_BASIC</td><td>1</td><td><p></p></td></tr>-+<tr><td>CHANGELOG_VIEW_FULL</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.ColumnMetadata.IdentityGeneration">ColumnMetadata.IdentityGeneration</h3><p></p><table class="enum-table">@@ -12588,28 +12588,28 @@ The API will default to the BASIC view.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>IDENTITY_GENERATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ALWAYS</td><td>1</td><td><p></p></td></tr>-+<tr><td>BY_DEFAULT</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.GenerationMetadata.Type">GenerationMetadata.Type</h3><p></p><table class="enum-table">@@ -12617,28 +12617,28 @@ The API will default to the BASIC view.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>VIRTUAL</td><td>1</td><td><p></p></td></tr>-+<tr><td>STORED</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat">GetDatabaseSDLSchemaRequest.SDLFormat</h3><p>SDLFormat specifies the output format for SDL schema.</p><table class="enum-table">@@ -12646,29 +12646,29 @@ The API will default to the BASIC view.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SDL_FORMAT_UNSPECIFIED</td><td>0</td><td><p>Unspecified format. Defaults to SINGLE_FILE.</p></td></tr>-+<tr><td>SINGLE_FILE</td><td>1</td><td><p>Single file format: returns the complete SDL schema as a single file.</p></td></tr>-+<tr><td>MULTI_FILE</td><td>2</td><td><p>Multi-file format: returns the SDL schema as a ZIP archive containingmultiple files organized by schema objects (tables, views, functions, etc.).</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.GetSchemaStringRequest.ObjectType">GetSchemaStringRequest.ObjectType</h3><p></p><table class="enum-table">@@ -12676,64 +12676,64 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>OBJECT_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DATABASE</td><td>1</td><td><p></p></td></tr>-+<tr><td>SCHEMA</td><td>2</td><td><p></p></td></tr>-+<tr><td>TABLE</td><td>3</td><td><p></p></td></tr>-+<tr><td>VIEW</td><td>4</td><td><p></p></td></tr>-+<tr><td>MATERIALIZED_VIEW</td><td>5</td><td><p></p></td></tr>-+<tr><td>FUNCTION</td><td>6</td><td><p></p></td></tr>-+<tr><td>PROCEDURE</td><td>7</td><td><p></p></td></tr>-+<tr><td>SEQUENCE</td><td>8</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.StreamMetadata.Mode">StreamMetadata.Mode</h3><p></p><table class="enum-table">@@ -12741,34 +12741,34 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>MODE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DEFAULT</td><td>1</td><td><p></p></td></tr>-+<tr><td>APPEND_ONLY</td><td>2</td><td><p></p></td></tr>-+<tr><td>INSERT_ONLY</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.StreamMetadata.Type">StreamMetadata.Type</h3><p></p><table class="enum-table">@@ -12776,22 +12776,22 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DELTA</td><td>1</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.SyncStatus">SyncStatus</h3><p>SyncStatus is the status of the database sync operation.</p><table class="enum-table">@@ -12799,28 +12799,28 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SYNC_STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>OK</td><td>1</td><td><p>The database was synced successfully.</p></td></tr>-+<tr><td>FAILED</td><td>2</td><td><p>The database sync failed.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.TablePartitionMetadata.Type">TablePartitionMetadata.Type</h3><p>Type is the type of a table partition, some database engines may not</p><p>support all types. Only avilable for the following database engines now:</p><p>MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY,</p><p>LINEAR_KEY</p><p>(https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html) TiDB:</p><p>RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY PostgreSQL: RANGE,</p><p>LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)</p><table class="enum-table">@@ -12828,64 +12828,64 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>RANGE</td><td>1</td><td><p></p></td></tr>-+<tr><td>RANGE_COLUMNS</td><td>2</td><td><p></p></td></tr>-+<tr><td>LIST</td><td>3</td><td><p></p></td></tr>-+<tr><td>LIST_COLUMNS</td><td>4</td><td><p></p></td></tr>-+<tr><td>HASH</td><td>5</td><td><p></p></td></tr>-+<tr><td>LINEAR_HASH</td><td>6</td><td><p></p></td></tr>-+<tr><td>KEY</td><td>7</td><td><p></p></td></tr>-+<tr><td>LINEAR_KEY</td><td>8</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.TaskMetadata.State">TaskMetadata.State</h3><p></p><table class="enum-table">@@ -12893,32 +12893,32 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>STARTED</td><td>1</td><td><p></p></td></tr>-+<tr><td>SUSPENDED</td><td>2</td><td><p></p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseService">DatabaseService</h3><p>DatabaseService manages databases and their schemas.</p><table class="enum-table">@@ -12926,7 +12926,7 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetDatabase</td><td><a href="#bytebase.v1.GetDatabaseRequest">GetDatabaseRequest</a></td>@@ -12934,7 +12934,7 @@ multiple files organized by schema objects (tables, views, functions, etc.).</p><td><p>Retrieves a database by name.Permissions required: bb.databases.get</p></td></tr>-+<tr><td>BatchGetDatabases</td><td><a href="#bytebase.v1.BatchGetDatabasesRequest">BatchGetDatabasesRequest</a></td>@@ -12942,7 +12942,7 @@ Permissions required: bb.databases.get</p></td><td><p>Retrieves multiple databases by their names.Permissions required: bb.databases.get</p></td></tr>-+<tr><td>ListDatabases</td><td><a href="#bytebase.v1.ListDatabasesRequest">ListDatabasesRequest</a></td>@@ -12950,7 +12950,7 @@ Permissions required: bb.databases.get</p></td><td><p>Lists databases in a project, instance, or workspace.Permissions required: bb.projects.get (for project parent), bb.databases.list (for workspace parent), or bb.instances.get (for instance parent)</p></td></tr>-+<tr><td>UpdateDatabase</td><td><a href="#bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</a></td>@@ -12958,7 +12958,7 @@ Permissions required: bb.projects.get (for project parent), bb.databases.list (f<td><p>Updates database properties such as labels and project assignment.Permissions required: bb.databases.update</p></td></tr>-+<tr><td>BatchUpdateDatabases</td><td><a href="#bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</a></td>@@ -12966,7 +12966,7 @@ Permissions required: bb.databases.update</p></td><td><p>Updates multiple databases in a single batch operation.Permissions required: bb.databases.update</p></td></tr>-+<tr><td>SyncDatabase</td><td><a href="#bytebase.v1.SyncDatabaseRequest">SyncDatabaseRequest</a></td>@@ -12974,7 +12974,7 @@ Permissions required: bb.databases.update</p></td><td><p>Synchronizes database schema from the instance.Permissions required: bb.databases.sync</p></td></tr>-+<tr><td>BatchSyncDatabases</td><td><a href="#bytebase.v1.BatchSyncDatabasesRequest">BatchSyncDatabasesRequest</a></td>@@ -12982,7 +12982,7 @@ Permissions required: bb.databases.sync</p></td><td><p>Synchronizes multiple databases in a single batch operation.Permissions required: bb.databases.sync</p></td></tr>-+<tr><td>GetDatabaseMetadata</td><td><a href="#bytebase.v1.GetDatabaseMetadataRequest">GetDatabaseMetadataRequest</a></td>@@ -12990,7 +12990,7 @@ Permissions required: bb.databases.sync</p></td><td><p>Retrieves database metadata including tables, columns, and indexes.Permissions required: bb.databases.getSchema</p></td></tr>-+<tr><td>GetDatabaseSchema</td><td><a href="#bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</a></td>@@ -12998,7 +12998,7 @@ Permissions required: bb.databases.getSchema</p></td><td><p>Retrieves database schema as DDL statements.Permissions required: bb.databases.getSchema</p></td></tr>-+<tr><td>GetDatabaseSDLSchema</td><td><a href="#bytebase.v1.GetDatabaseSDLSchemaRequest">GetDatabaseSDLSchemaRequest</a></td>@@ -13006,7 +13006,7 @@ Permissions required: bb.databases.getSchema</p></td><td><p>Retrieves database schema in SDL (Schema Definition Language) format.Permissions required: bb.databases.getSchema</p></td></tr>-+<tr><td>DiffSchema</td><td><a href="#bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</a></td>@@ -13014,7 +13014,7 @@ Permissions required: bb.databases.getSchema</p></td><td><p>Compares and generates migration statements between two schemas.Permissions required: bb.databases.get</p></td></tr>-+<tr><td>ListChangelogs</td><td><a href="#bytebase.v1.ListChangelogsRequest">ListChangelogsRequest</a></td>@@ -13022,7 +13022,7 @@ Permissions required: bb.databases.get</p></td><td><p>Lists migration history for a database.Permissions required: bb.changelogs.list</p></td></tr>-+<tr><td>GetChangelog</td><td><a href="#bytebase.v1.GetChangelogRequest">GetChangelogRequest</a></td>@@ -13030,7 +13030,7 @@ Permissions required: bb.changelogs.list</p></td><td><p>Retrieves a specific changelog entry.Permissions required: bb.changelogs.get</p></td></tr>-+<tr><td>GetSchemaString</td><td><a href="#bytebase.v1.GetSchemaStringRequest">GetSchemaStringRequest</a></td>@@ -13038,13 +13038,13 @@ Permissions required: bb.changelogs.get</p></td><td><p>Generates schema DDL for a database object.Permissions required: bb.databases.getSchema</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -13056,252 +13056,252 @@ Permissions required: bb.databases.getSchema</p></td></tr></thead><tbody>---+++<tr><td>GetDatabase</td><td>GET</td><td>/v1/{name=instances/*/databases/*}</td><td></td></tr>----++++<tr><td>BatchGetDatabases</td><td>GET</td><td>/v1/{parent=projects/*}/databases:batchGet</td><td></td></tr>-+<tr><td>BatchGetDatabases</td><td>GET</td><td>/v1/{parent=instances/*}/databases:batchGet</td><td></td></tr>----++++<tr><td>ListDatabases</td><td>GET</td><td>/v1/{parent=projects/*}/databases</td><td></td></tr>-+<tr><td>ListDatabases</td><td>GET</td><td>/v1/{parent=instances/*}/databases</td><td></td></tr>-+<tr><td>ListDatabases</td><td>GET</td><td>/v1/{parent=workspaces/*}/databases</td><td></td></tr>----++++<tr><td>UpdateDatabase</td><td>PATCH</td><td>/v1/{database.name=instances/*/databases/*}</td><td>database</td></tr>----++++<tr><td>BatchUpdateDatabases</td><td>POST</td><td>/v1/{parent=instances/*}/databases:batchUpdate</td><td>*</td></tr>----++++<tr><td>SyncDatabase</td><td>POST</td><td>/v1/{name=instances/*/databases/*}:sync</td><td>*</td></tr>----++++<tr><td>BatchSyncDatabases</td><td>POST</td><td>/v1/{parent=instances/*}/databases:batchSync</td><td>*</td></tr>----++++<tr><td>GetDatabaseMetadata</td><td>GET</td><td>/v1/{name=instances/*/databases/*/metadata}</td><td></td></tr>----++++<tr><td>GetDatabaseSchema</td><td>GET</td><td>/v1/{name=instances/*/databases/*/schema}</td><td></td></tr>----++++<tr><td>GetDatabaseSDLSchema</td><td>GET</td><td>/v1/{name=instances/*/databases/*/sdlSchema}</td><td></td></tr>----++++<tr><td>DiffSchema</td><td>POST</td><td>/v1/{name=instances/*/databases/*}:diffSchema</td><td>*</td></tr>-+<tr><td>DiffSchema</td><td>POST</td><td>/v1/{name=instances/*/databases/*/changelogs/*}:diffSchema</td><td>*</td></tr>----++++<tr><td>ListChangelogs</td><td>GET</td><td>/v1/{parent=instances/*/databases/*}/changelogs</td><td></td></tr>----++++<tr><td>GetChangelog</td><td>GET</td><td>/v1/{name=instances/*/databases/*/changelogs/*}</td><td></td></tr>----++++<tr><td>GetSchemaString</td><td>GET</td><td>/v1/{name=instances/*/databases/*/schemaString}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/sql_service.proto">v1/sql_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.AICompletionRequest">AICompletionRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>messages</td><td><a href="#bytebase.v1.AICompletionRequest.Message">AICompletionRequest.Message</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AICompletionRequest.Message">AICompletionRequest.Message</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AICompletionResponse">AICompletionResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>candidates</td><td><a href="#bytebase.v1.AICompletionResponse.Candidate">AICompletionResponse.Candidate</a></td>@@ -13309,96 +13309,96 @@ Permissions required: bb.databases.getSchema</p></td><td><p>candidates is used for results with multiple choices and candidates. Usedfor OpenAI and Gemini. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AICompletionResponse.Candidate">AICompletionResponse.Candidate</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>content</td><td><a href="#bytebase.v1.AICompletionResponse.Candidate.Content">AICompletionResponse.Candidate.Content</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AICompletionResponse.Candidate.Content">AICompletionResponse.Candidate.Content</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parts</td><td><a href="#bytebase.v1.AICompletionResponse.Candidate.Content.Part">AICompletionResponse.Candidate.Content.Part</a></td><td>repeated</td><td><p>parts is used for a result content with multiple parts. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AICompletionResponse.Candidate.Content.Part">AICompletionResponse.Candidate.Content.Part</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>text</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AdminExecuteRequest">AdminExecuteRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -13406,21 +13406,21 @@ for OpenAI and Gemini. </p></td><td><p>The name is the instance name to execute the query against.Format: instances/{instance}/databases/{databaseName} </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The SQL statement to execute. </p></td></tr>-+<tr><td>limit</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of rows to return. </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td>@@ -13428,7 +13428,7 @@ Format: instances/{instance}/databases/{databaseName} </p></td><td><p>The default schema to execute the statement. Equals to the current schemain Oracle and search path in Postgres. </p></td></tr>-+<tr><td>container</td><td><a href="#string">string</a></td>@@ -13436,76 +13436,76 @@ in Oracle and search path in Postgres. </p></td><td><p>Container is the container name to execute the query against, used forCosmosDB only. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AdminExecuteResponse">AdminExecuteResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>results</td><td><a href="#bytebase.v1.QueryResult">QueryResult</a></td><td>repeated</td><td><p>The query results. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Advice">Advice</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.v1.Advice.Level">Advice.Level</a></td><td></td><td><p>The advice level. </p></td></tr>-+<tr><td>code</td><td><a href="#int32">int32</a></td><td></td><td><p>The advice code. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The advice title. </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p>The advice content. </p></td></tr>-+<tr><td>start_position</td><td><a href="#bytebase.v1.Position">Position</a></td>@@ -13513,100 +13513,100 @@ CosmosDB only. </p></td><td><p>The start_position is inclusive and the end_position is exclusive.TODO: use range instead </p></td></tr>-+<tr><td>end_position</td><td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p> </p></td></tr>-+<tr><td>rule_type</td><td><a href="#bytebase.v1.Advice.RuleType">Advice.RuleType</a></td><td></td><td><p>The type of linting rule that generated this advice. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>source_metadata</td><td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td><td></td><td><p>The metadata of the source schema. </p></td></tr>-+<tr><td>target_metadata</td><td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td><td></td><td><p>The metadata of the target schema. </p></td></tr>-+<tr><td>engine</td><td><a href="#bytebase.v1.Engine">Engine</a></td><td></td><td><p>The database engine of the schema. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>diff</td><td><a href="#string">string</a></td><td></td><td><p>The diff of the metadata. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExportRequest">ExportRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -13617,28 +13617,28 @@ Format: instances/{instance}Format: projects/{project}/plans/{plan}/rolloutFormat: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The SQL statement to execute. </p></td></tr>-+<tr><td>limit</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of rows to return. </p></td></tr>-+<tr><td>format</td><td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td><td><p>The export format. </p></td></tr>-+<tr><td>admin</td><td><a href="#bool">bool</a></td>@@ -13646,14 +13646,14 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td><td><p>The admin is used for workspace owner and DBA for exporting data from SQLEditor Admin mode. The exported data is not masked. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p>The zip password provide by users. </p></td></tr>-+<tr><td>data_source_id</td><td><a href="#string">string</a></td>@@ -13664,7 +13664,7 @@ single read-only data source when exactly one exists, or the admin datasource otherwise. It can also be set explicitly to export from the admindata source or a specific read-only data source. </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td>@@ -13672,31 +13672,31 @@ data source or a specific read-only data source. </p></td><td><p>The default schema to search objects. Equals to the current schema inOracle and search path in Postgres. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExportResponse">ExportResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>content</td><td><a href="#bytes">bytes</a></td><td></td><td><p>The export file content. </p></td></tr>-+<tr><td>applied_access_grant</td><td><a href="#string">string</a></td>@@ -13705,24 +13705,24 @@ Oracle and search path in Postgres. </p></td>Format: projects/{project}/accessGrants/{accessGrant}.Empty when the user was authorized through normal ACL rather than a grant. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetQueryHistoryRequest">GetQueryHistoryRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -13730,90 +13730,90 @@ Empty when the user was authorized through normal ACL rather than a grant. </p><<td><p>The name of the query history to retrieve.Format: projects/{project}/queryHistories/{id} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.MaskingReason">MaskingReason</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>semantic_type_id</td><td><a href="#string">string</a></td><td></td><td><p>The semantic type that triggered masking (e.g., "SSN", "email", "phone"). </p></td></tr>-+<tr><td>semantic_type_title</td><td><a href="#string">string</a></td><td></td><td><p>Human-readable semantic type title. </p></td></tr>-+<tr><td>masking_rule_id</td><td><a href="#string">string</a></td><td></td><td><p>The masking rule ID that matched (if applicable). </p></td></tr>-+<tr><td>algorithm</td><td><a href="#string">string</a></td><td></td><td><p>The masking algorithm used. </p></td></tr>-+<tr><td>context</td><td><a href="#string">string</a></td><td></td><td><p>Additional context (e.g., "Matched global rule: PII Protection"). </p></td></tr>-+<tr><td>classification_level</td><td><a href="#int32">int32</a></td><td></td><td><p>The classification level that triggered masking. </p></td></tr>-+<tr><td>semantic_type_icon</td><td><a href="#string">string</a></td><td></td><td><p>Icon associated with the semantic type (if any). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryHistory">QueryHistory</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -13821,7 +13821,7 @@ Format: projects/{project}/queryHistories/{id} </p></td><td><p>The name for the query history.Format: projects/{project}/queryHistories/{id} </p></td></tr>-+<tr><td>database</td><td><a href="#string">string</a></td>@@ -13829,97 +13829,97 @@ Format: projects/{project}/queryHistories/{id} </p></td><td><p>The database name to execute the query.Format: instances/{instance}/databases/{databaseName} </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.QueryHistory.Type">QueryHistory.Type</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryOption">QueryOption</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>redis_run_commands_on</td><td><a href="#bytebase.v1.QueryOption.RedisRunCommandsOn">QueryOption.RedisRunCommandsOn</a></td><td></td><td><p> </p></td></tr>-+<tr><td>mssql_explain_format</td><td><a href="#bytebase.v1.QueryOption.MSSQLExplainFormat">QueryOption.MSSQLExplainFormat</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryRequest">QueryRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -13927,21 +13927,21 @@ Format: instances/{instance}/databases/{databaseName} </p></td><td><p>The name is the instance name to execute the query against.Format: instances/{instance}/databases/{databaseName} </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The SQL statement to execute. </p></td></tr>-+<tr><td>limit</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of rows to return. </p></td></tr>-+<tr><td>data_source_id</td><td><a href="#string">string</a></td>@@ -13952,14 +13952,14 @@ read-only data source when exactly one exists, or the admin data sourceotherwise. It can also be set explicitly to query the admin data source ora specific read-only data source. </p></td></tr>-+<tr><td>explain</td><td><a href="#bool">bool</a></td><td></td><td><p>Explain the statement. </p></td></tr>-+<tr><td>schema</td><td><a href="#string">string</a></td>@@ -13967,14 +13967,14 @@ a specific read-only data source. </p></td><td><p>The default schema to search objects. Equals to the current schema inOracle and search path in Postgres. </p></td></tr>-+<tr><td>query_option</td><td><a href="#bytebase.v1.QueryOption">QueryOption</a></td><td></td><td><p> </p></td></tr>-+<tr><td>container</td><td><a href="#string">string</a></td>@@ -13982,31 +13982,31 @@ Oracle and search path in Postgres. </p></td><td><p>Container is the container name to execute the query against, used forCosmosDB only. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryResponse">QueryResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>results</td><td><a href="#bytebase.v1.QueryResult">QueryResult</a></td><td>repeated</td><td><p>The query results. </p></td></tr>-+<tr><td>applied_access_grant</td><td><a href="#string">string</a></td>@@ -14015,31 +14015,31 @@ CosmosDB only. </p></td>Format: projects/{project}/accessGrants/{accessGrant}.Empty when the user was authorized through normal ACL rather than a grant. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryResult">QueryResult</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>column_names</td><td><a href="#string">string</a></td><td>repeated</td><td><p>Column names of the query result. </p></td></tr>-+<tr><td>column_type_names</td><td><a href="#string">string</a></td>@@ -14047,70 +14047,70 @@ Empty when the user was authorized through normal ACL rather than a grant. </p><<td><p>Column types of the query result.The types come from the Golang SQL driver. </p></td></tr>-+<tr><td>rows</td><td><a href="#bytebase.v1.QueryRow">QueryRow</a></td><td>repeated</td><td><p>Rows of the query result. </p></td></tr>-+<tr><td>rows_count</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>The error message if the query failed. </p></td></tr>-+<tr><td>latency</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The time it takes to execute the query. </p></td></tr>-+<tr><td>statement</td><td><a href="#string">string</a></td><td></td><td><p>The query statement for the result. </p></td></tr>-+<tr><td>postgres_error</td><td><a href="#bytebase.v1.QueryResult.PostgresError">QueryResult.PostgresError</a></td><td></td><td><p> </p></td></tr>-+<tr><td>syntax_error</td><td><a href="#bytebase.v1.QueryResult.SyntaxError">QueryResult.SyntaxError</a></td><td></td><td><p> </p></td></tr>-+<tr><td>permission_denied</td><td><a href="#bytebase.v1.PermissionDeniedDetail">PermissionDeniedDetail</a></td><td></td><td><p> </p></td></tr>-+<tr><td>command_error</td><td><a href="#bytebase.v1.QueryResult.CommandError">QueryResult.CommandError</a></td><td></td><td><p> </p></td></tr>-+<tr><td>messages</td><td><a href="#bytebase.v1.QueryResult.Message">QueryResult.Message</a></td>@@ -14118,347 +14118,347 @@ The types come from the Golang SQL driver. </p></td><td><p>Informational or debug messages returned by the database engine during query execution.Examples include PostgreSQL's RAISE NOTICE, MSSQL's PRINT, or Oracle's DBMS_OUTPUT.PUT_LINE. </p></td></tr>-+<tr><td>masked</td><td><a href="#bytebase.v1.MaskingReason">MaskingReason</a></td><td>repeated</td><td><p>Masking reasons for each column (empty for non-masked columns). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryResult.CommandError">QueryResult.CommandError</h3><p>Permission denied with resource information or disallowed command_type.</p><p>Either resources or command_type is available.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>command_type</td><td><a href="#bytebase.v1.QueryResult.CommandError.Type">QueryResult.CommandError.Type</a></td><td></td><td><p>Disallowed command_type. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryResult.Message">QueryResult.Message</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>level</td><td><a href="#bytebase.v1.QueryResult.Message.Level">QueryResult.Message.Level</a></td><td></td><td><p> </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryResult.PostgresError">QueryResult.PostgresError</h3><p>refer https://www.postgresql.org/docs/11/protocol-error-fields.html</p><p>for field description.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>severity</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>code</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>message</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>detail</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>hint</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>position</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>internal_position</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>internal_query</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>where</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>schema_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>table_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>column_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>data_type_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>constraint_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>file</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>line</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>routine</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryResult.SyntaxError">QueryResult.SyntaxError</h3><p>Syntax error with position information for editor highlighting</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_position</td><td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p>Position information for highlighting in editor </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryRow">QueryRow</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>values</td><td><a href="#bytebase.v1.RowValue">RowValue</a></td><td>repeated</td><td><p>Row values of the query result. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RowValue">RowValue</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>null_value</td><td><a href="#google.protobuf.NullValue">google.protobuf.NullValue</a></td><td></td><td><p> </p></td></tr>-+<tr><td>bool_value</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>bytes_value</td><td><a href="#bytes">bytes</a></td><td></td><td><p> </p></td></tr>-+<tr><td>double_value</td><td><a href="#double">double</a></td><td></td><td><p> </p></td></tr>-+<tr><td>float_value</td><td><a href="#float">float</a></td><td></td><td><p> </p></td></tr>-+<tr><td>int32_value</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>int64_value</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>string_value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>uint32_value</td><td><a href="#uint32">uint32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>uint64_value</td><td><a href="#uint64">uint64</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value_value</td><td><a href="#google.protobuf.Value">google.protobuf.Value</a></td><td></td><td><p>value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only. </p></td></tr>-+<tr><td>timestamp_value</td><td><a href="#bytebase.v1.RowValue.Timestamp">RowValue.Timestamp</a></td>@@ -14468,7 +14468,7 @@ meaning it only includes the timestamp without any time zone or locationinfo. Although it may be expressed as a UTC value, it should be seen as atimestamp missing location context. </p></td></tr>-+<tr><td>timestamp_tz_value</td><td><a href="#bytebase.v1.RowValue.TimestampTZ">RowValue.TimestampTZ</a></td>@@ -14476,62 +14476,62 @@ timestamp missing location context. </p></td><td><p>timestamp_tz_value is used for the timestamptz data type, whichaccurately represents the timestamp with location information. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RowValue.Timestamp">RowValue.Timestamp</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>google_timestamp</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>accuracy</td><td><a href="#int32">int32</a></td><td></td><td><p>The accuracy is the number of digits after the decimal point. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RowValue.TimestampTZ">RowValue.TimestampTZ</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>google_timestamp</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>zone</td><td><a href="#string">string</a></td>@@ -14543,38 +14543,38 @@ database. A timestamp is in UTC or epoch time, and with zone info, we canconvert it to a local time string. Zone and offset are returned bytime.Time.Zone() </p></td></tr>-+<tr><td>offset</td><td><a href="#int32">int32</a></td><td></td><td><p>The offset is in seconds east of UTC </p></td></tr>-+<tr><td>accuracy</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchQueryHistoriesRequest">SearchQueryHistoriesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -14584,7 +14584,7 @@ The service may return fewer than this value.If unspecified, at most 10 history entries will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -14592,7 +14592,7 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td><p>A page token, received from a previous `ListQueryHistory` call.Provide this to retrieve the subsequent page. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -14616,31 +14616,31 @@ type == "EXPORT"statement.contains("select")type == "QUERY" && statement.contains("select") </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchQueryHistoriesResponse">SearchQueryHistoriesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>query_histories</td><td><a href="#bytebase.v1.QueryHistory">QueryHistory</a></td><td>repeated</td><td><p>The list of history. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -14649,16 +14649,16 @@ type == "QUERY" && statement.contains("select") </p></tdPass this value in the page_token field in the subsequent call to`ListQueryHistory` method to retrieve the next page of history. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Advice.Level">Advice.Level</h3><p>Level represents the severity level of the advice.</p><table class="enum-table">@@ -14666,34 +14666,34 @@ Pass this value in the page_token field in the subsequent call to<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ADVICE_LEVEL_UNSPECIFIED</td><td>0</td><td><p>Unspecified advice level.</p></td></tr>-+<tr><td>SUCCESS</td><td>1</td><td><p>Success status indicating the check passed without issues.</p></td></tr>-+<tr><td>WARNING</td><td>2</td><td><p>Warning status indicating potential issues that should be reviewed.</p></td></tr>-+<tr><td>ERROR</td><td>3</td><td><p>Error status indicating critical issues that must be addressed.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.Advice.RuleType">Advice.RuleType</h3><p>RuleType indicates the source of the linting rule.</p><table class="enum-table">@@ -14701,30 +14701,30 @@ Pass this value in the page_token field in the subsequent call to<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>RULE_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified rule type.</p></td></tr>-+<tr><td>PARSER_BASED</td><td>1</td><td><p>Parser-based rule enforced by the built-in SQL parser.These are non-configurable, mandatory checks for schema health.</p></td></tr>-+<tr><td>AI_POWERED</td><td>2</td><td><p>AI-powered rule defined by user in natural language.These are custom, flexible checks powered by AI models.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.QueryHistory.Type">QueryHistory.Type</h3><p></p><table class="enum-table">@@ -14732,28 +14732,28 @@ These are custom, flexible checks powered by AI models.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified query history type.</p></td></tr>-+<tr><td>QUERY</td><td>1</td><td><p>Query execution for data retrieval.</p></td></tr>-+<tr><td>EXPORT</td><td>2</td><td><p>Data export operation to file.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.QueryOption.MSSQLExplainFormat">QueryOption.MSSQLExplainFormat</h3><p></p><table class="enum-table">@@ -14761,28 +14761,28 @@ These are custom, flexible checks powered by AI models.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>MSSQL_EXPLAIN_FORMAT_UNSPECIFIED</td><td>0</td><td><p>defaults to SHOWPLAN_ALL</p></td></tr>-+<tr><td>MSSQL_EXPLAIN_FORMAT_ALL</td><td>1</td><td><p>SHOWPLAN_ALL</p></td></tr>-+<tr><td>MSSQL_EXPLAIN_FORMAT_XML</td><td>2</td><td><p>SHOWPLAN_XML</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.QueryOption.RedisRunCommandsOn">QueryOption.RedisRunCommandsOn</h3><p></p><table class="enum-table">@@ -14790,28 +14790,28 @@ These are custom, flexible checks powered by AI models.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>REDIS_RUN_COMMANDS_ON_UNSPECIFIED</td><td>0</td><td><p>UNSPECIFIED defaults to SINGLE_NODE.</p></td></tr>-+<tr><td>SINGLE_NODE</td><td>1</td><td><p>Execute Redis commands on a single node in the cluster.</p></td></tr>-+<tr><td>ALL_NODES</td><td>2</td><td><p>Execute Redis commands on all nodes in the cluster for cluster-wide operations.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.QueryResult.CommandError.Type">QueryResult.CommandError.Type</h3><p></p><table class="enum-table">@@ -14819,34 +14819,34 @@ These are custom, flexible checks powered by AI models.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>DDL</td><td>1</td><td><p></p></td></tr>-+<tr><td>DML</td><td>2</td><td><p></p></td></tr>-+<tr><td>NON_READ_ONLY</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.QueryResult.Message.Level">QueryResult.Message.Level</h3><p></p><table class="enum-table">@@ -14854,56 +14854,56 @@ These are custom, flexible checks powered by AI models.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>LEVEL_UNSPECIFIED</td><td>0</td><td><p>Unspecified message level.</p></td></tr>-+<tr><td>INFO</td><td>1</td><td><p>Informational message.</p></td></tr>-+<tr><td>WARNING</td><td>2</td><td><p>Warning message indicating potential issues.</p></td></tr>-+<tr><td>DEBUG</td><td>3</td><td><p>Debug message for development and troubleshooting.</p></td></tr>-+<tr><td>LOG</td><td>4</td><td><p>General log message.</p></td></tr>-+<tr><td>NOTICE</td><td>5</td><td><p>Notice message for important information.</p></td></tr>-+<tr><td>EXCEPTION</td><td>6</td><td><p>Exception message indicating error conditions.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLService">SQLService</h3><p>SQLService executes SQL queries and manages query operations.</p><table class="enum-table">@@ -14911,7 +14911,7 @@ These are custom, flexible checks powered by AI models.</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>Query</td><td><a href="#bytebase.v1.QueryRequest">QueryRequest</a></td>@@ -14919,7 +14919,7 @@ These are custom, flexible checks powered by AI models.</p></td><td><p>Executes a read-only SQL query against a database.Permissions required: bb.databases.get</p></td></tr>-+<tr><td>AdminExecute</td><td><a href="#bytebase.v1.AdminExecuteRequest">AdminExecuteRequest</a> stream</td>@@ -14927,7 +14927,7 @@ Permissions required: bb.databases.get</p></td><td><p>Executes SQL with admin privileges via streaming connection.Permissions required: bb.sql.admin</p></td></tr>-+<tr><td>SearchQueryHistories</td><td><a href="#bytebase.v1.SearchQueryHistoriesRequest">SearchQueryHistoriesRequest</a></td>@@ -14935,7 +14935,7 @@ Permissions required: bb.sql.admin</p></td><td><p>SearchQueryHistories searches query histories for the caller.Permissions required: None (only returns caller's own query histories)</p></td></tr>-+<tr><td>GetQueryHistory</td><td><a href="#bytebase.v1.GetQueryHistoryRequest">GetQueryHistoryRequest</a></td>@@ -14943,7 +14943,7 @@ Permissions required: None (only returns caller's own query histories)</p></<td><p>GetQueryHistory gets a single query history for the caller.Permissions required: None (only returns the caller's own query history)</p></td></tr>-+<tr><td>Export</td><td><a href="#bytebase.v1.ExportRequest">ExportRequest</a></td>@@ -14951,7 +14951,7 @@ Permissions required: None (only returns the caller's own query history)</p><td><p>Exports query results to a file format.Permissions required: bb.databases.get</p></td></tr>-+<tr><td>DiffMetadata</td><td><a href="#bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</a></td>@@ -14959,7 +14959,7 @@ Permissions required: bb.databases.get</p></td><td><p>Computes schema differences between two database metadata.Permissions required: None</p></td></tr>-+<tr><td>AICompletion</td><td><a href="#bytebase.v1.AICompletionRequest">AICompletionRequest</a></td>@@ -14967,13 +14967,13 @@ Permissions required: None</p></td><td><p>Provides AI-powered SQL completion and generation.Permissions required: None (authenticated users only, requires AI to be enabled)</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -14985,113 +14985,113 @@ Permissions required: None (authenticated users only, requires AI to be enabled)</tr></thead><tbody>---+++<tr><td>Query</td><td>POST</td><td>/v1/{name=instances/*/databases/*}:query</td><td>*</td></tr>----++++<tr><td>AdminExecute</td><td>GET</td><td>/v1:adminExecute</td><td></td></tr>----++++<tr><td>SearchQueryHistories</td><td>POST</td><td>/v1/queryHistories:search</td><td>*</td></tr>----++++<tr><td>GetQueryHistory</td><td>GET</td><td>/v1/{name=projects/*/queryHistories/*}</td><td></td></tr>----++++<tr><td>Export</td><td>POST</td><td>/v1/{name=instances/*/databases/*}:export</td><td>*</td></tr>-+<tr><td>Export</td><td>POST</td><td>/v1/{name=projects/*/plans/*/rollout}:export</td><td>*</td></tr>-+<tr><td>Export</td><td>POST</td><td>/v1/{name=projects/*/plans/*/rollout/stages/*}:export</td><td>*</td></tr>----++++<tr><td>DiffMetadata</td><td>POST</td><td>/v1/schemaDesign:diffMetadata</td><td>*</td></tr>----++++<tr><td>AICompletion</td><td>POST</td><td>/v1/sql/aiCompletion</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/plan_service.proto">v1/plan_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CancelPlanCheckRunRequest">CancelPlanCheckRunRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -15099,31 +15099,31 @@ Permissions required: None (authenticated users only, requires AI to be enabled)<td><p>The name of the plan check run to cancel.Format: projects/{project}/plans/{plan}/planCheckRun </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CancelPlanCheckRunResponse">CancelPlanCheckRunResponse</h3><p></p>---+++<h3 id="bytebase.v1.CreatePlanRequest">CreatePlanRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -15131,31 +15131,31 @@ Format: projects/{project}/plans/{plan}/planCheckRun </p></td><td><p>The parent project where this plan will be created.Format: projects/{project} </p></td></tr>-+<tr><td>plan</td><td><a href="#bytebase.v1.Plan">Plan</a></td><td></td><td><p>The plan to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetPlanCheckRunRequest">GetPlanCheckRunRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -15163,24 +15163,24 @@ Format: projects/{project} </p></td><td><p>The name of the plan check run to retrieve.Format: projects/{project}/plans/{plan}/planCheckRun </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetPlanRequest">GetPlanRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -15188,24 +15188,24 @@ Format: projects/{project}/plans/{plan}/planCheckRun </p></td><td><p>The name of the plan to retrieve.Format: projects/{project}/plans/{plan} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListPlansRequest">ListPlansRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -15214,7 +15214,7 @@ Format: projects/{project}/plans/{plan} </p></td>Format: projects/{project}Use "projects/-" to list all plans from all projects. </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -15224,7 +15224,7 @@ this value.If unspecified, at most 10 plans will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -15235,7 +15235,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListPlans` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -15260,31 +15260,31 @@ title.contains("database migration")spec_type == "change_database_config"state == "ACTIVE" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListPlansResponse">ListPlansResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plans</td><td><a href="#bytebase.v1.Plan">Plan</a></td><td>repeated</td><td><p>The plans from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -15292,24 +15292,24 @@ state == "ACTIVE" </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan">Plan</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -15318,14 +15318,14 @@ If this field is omitted, there are no subsequent pages. </p></td>`plan` is a system generated ID.Format: projects/{project}/plans/{plan} </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The state of the plan. </p></td></tr>-+<tr><td>issue</td><td><a href="#string">string</a></td>@@ -15334,49 +15334,49 @@ Format: projects/{project}/plans/{plan} </p></td>Can be empty.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The title of the plan. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>The description of the plan. </p></td></tr>-+<tr><td>specs</td><td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td><td>repeated</td><td><p>The deployment specs for the plan. </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/[email protected] </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>plan_check_run_status_count</td><td><a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry">Plan.PlanCheckRunStatusCountEntry</a></td>@@ -15388,14 +15388,14 @@ Keys are:- ERROR- RUNNING </p></td></tr>-+<tr><td>has_rollout</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the plan has started the rollout. </p></td></tr>-+<tr><td>approval_status</td><td><a href="#bytebase.v1.ApprovalStatus">ApprovalStatus</a></td>@@ -15403,7 +15403,7 @@ Keys are:<td><p>The approval status of the linked issue.Unspecified when no linked issue exists. </p></td></tr>-+<tr><td>rollout_stage_summaries</td><td><a href="#bytebase.v1.Plan.RolloutStageSummary">Plan.RolloutStageSummary</a></td>@@ -15411,24 +15411,24 @@ Unspecified when no linked issue exists. </p></td><td><p>Per-stage rollout status summary.Ordered by environment deployment order. Empty when no rollout exists. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -15437,7 +15437,7 @@ Ordered by environment deployment order. Empty when no rollout exists. </p></td>Multi-database format: [instances/{instance-id}/databases/{database-name}].Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td></tr>-+<tr><td>sheet</td><td><a href="#string">string</a></td>@@ -15445,7 +15445,7 @@ Single database group format: [projects/{project}/databaseGroups/{databaseGroup}<td><p>The resource name of the sheet.Format: projects/{project}/sheets/{sheet} </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -15453,31 +15453,31 @@ Format: projects/{project}/sheets/{sheet} </p></td><td><p>The resource name of the release.Format: projects/{project}/releases/{release} </p></td></tr>-+<tr><td>enable_prior_backup</td><td><a href="#bool">bool</a></td><td></td><td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -15485,14 +15485,14 @@ Format: projects/{project}/releases/{release} </p></td><td><p>The resource name of the instance on which the database is created.Format: instances/{instance} </p></td></tr>-+<tr><td>database</td><td><a href="#string">string</a></td><td></td><td><p>The name of the database to create. </p></td></tr>-+<tr><td>table</td><td><a href="#string">string</a></td>@@ -15500,35 +15500,35 @@ Format: instances/{instance} </p></td><td><p>table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.For example, in MongoDB, it only creates the database when we first store data in that database. </p></td></tr>-+<tr><td>character_set</td><td><a href="#string">string</a></td><td></td><td><p>character_set is the character set of the database. </p></td></tr>-+<tr><td>collation</td><td><a href="#string">string</a></td><td></td><td><p>collation is the collation of the database. </p></td></tr>-+<tr><td>cluster</td><td><a href="#string">string</a></td><td></td><td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td></tr>-+<tr><td>owner</td><td><a href="#string">string</a></td><td></td><td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td></tr>-+<tr><td>environment</td><td><a href="#string">string</a></td>@@ -15536,24 +15536,24 @@ For example, in MongoDB, it only creates the database when we first store data i<td><p>The environment resource.Format: environments/prod where prod is the environment resource ID. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -15562,7 +15562,7 @@ Format: environments/prod where prod is the environment resource ID. </p></td>Multi-database format: [instances/{instance-id}/databases/{database-name}].Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td></tr>-+<tr><td>sheet</td><td><a href="#string">string</a></td>@@ -15570,14 +15570,14 @@ Single database group format: [projects/{project}/databaseGroups/{databaseGroup}<td><p>The resource name of the sheet.Format: projects/{project}/sheets/{sheet} </p></td></tr>-+<tr><td>format</td><td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td><td><p>The format of the exported file. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td>@@ -15585,55 +15585,55 @@ Format: projects/{project}/sheets/{sheet} </p></td><td><p>The zip password provide by users.Leave it empty if no needs to encrypt the zip file. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.PlanCheckRunStatusCountEntry">Plan.PlanCheckRunStatusCountEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.RolloutStageSummary">Plan.RolloutStageSummary</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>stage</td><td><a href="#string">string</a></td>@@ -15641,187 +15641,187 @@ Leave it empty if no needs to encrypt the zip file. </p></td><td><p>The stage resource name.Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td></tr>-+<tr><td>task_status_counts</td><td><a href="#bytebase.v1.Plan.TaskStatusCount">Plan.TaskStatusCount</a></td><td>repeated</td><td><p>Task status counts for this stage. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr>-+<tr><td>create_database_config</td><td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>change_database_config</td><td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</a></td><td></td><td><p> </p></td></tr>-+<tr><td>export_data_config</td><td><a href="#bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Plan.TaskStatusCount">Plan.TaskStatusCount</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.v1.Task.Status">Task.Status</a></td><td></td><td><p>The task status. </p></td></tr>-+<tr><td>count</td><td><a href="#int32">int32</a></td><td></td><td><p>The number of tasks in the status. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanCheckRun">PlanCheckRun</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/plans/{plan}/planCheckRun </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</a></td><td></td><td><p> </p></td></tr>-+<tr><td>results</td><td><a href="#bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>error is set if the Status is FAILED. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.v1.Advice.Level">Advice.Level</a></td><td></td><td><p> </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>code</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -15829,107 +15829,107 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage} </p></td><td><p>Target identification for consolidated results.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.PlanCheckRun.Result.Type">PlanCheckRun.Result.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_summary_report</td><td><a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</a></td><td></td><td><p> </p></td></tr>-+<tr><td>sql_review_report</td><td><a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start_position</td><td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p>Position of the SQL statement. </p></td></tr>-+<tr><td>end_position</td><td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>statement_types</td><td><a href="#bytebase.v1.StatementType">StatementType</a></td><td>repeated</td><td><p>statement_types are the types of statements that are found in the sql. </p></td></tr>-+<tr><td>affected_rows</td><td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -15937,7 +15937,7 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The plan to run plan checks.Format: projects/{project}/plans/{plan} </p></td></tr>-+<tr><td>spec_id</td><td><a href="#string">string</a></td>@@ -15946,31 +15946,31 @@ Format: projects/{project}/plans/{plan} </p></td>This should match the spec.id field in Plan.Spec.If not set, all specs in the plan will be used. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</h3><p></p>---+++<h3 id="bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plan</td><td><a href="#bytebase.v1.Plan">Plan</a></td>@@ -15980,14 +15980,14 @@ If not set, all specs in the plan will be used. </p></td>The plan's `name` field is used to identify the plan to update.Format: projects/{project}/plans/{plan} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -15995,16 +15995,16 @@ Format: projects/{project}/plans/{plan} </p></td><td><p>If set to true, and the plan is not found, a new plan will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.PlanCheckRun.Result.Type">PlanCheckRun.Result.Type</h3><p></p><table class="enum-table">@@ -16012,34 +16012,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADVISE</td><td>1</td><td><p></p></td></tr>-+<tr><td>STATEMENT_SUMMARY_REPORT</td><td>2</td><td><p></p></td></tr>-+<tr><td>GHOST_SYNC</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</h3><p></p><table class="enum-table">@@ -16047,44 +16047,44 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>RUNNING</td><td>1</td><td><p></p></td></tr>-+<tr><td>DONE</td><td>2</td><td><p></p></td></tr>-+<tr><td>FAILED</td><td>3</td><td><p></p></td></tr>-+<tr><td>CANCELED</td><td>4</td><td><p></p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanService">PlanService</h3><p>PlanService manages deployment plans for database changes.</p><table class="enum-table">@@ -16092,7 +16092,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetPlan</td><td><a href="#bytebase.v1.GetPlanRequest">GetPlanRequest</a></td>@@ -16100,7 +16100,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>Retrieves a deployment plan by name.Permissions required: bb.plans.get</p></td></tr>-+<tr><td>ListPlans</td><td><a href="#bytebase.v1.ListPlansRequest">ListPlansRequest</a></td>@@ -16108,7 +16108,7 @@ Permissions required: bb.plans.get</p></td><td><p>Lists deployment plans in a project.Permissions required: bb.plans.list</p></td></tr>-+<tr><td>CreatePlan</td><td><a href="#bytebase.v1.CreatePlanRequest">CreatePlanRequest</a></td>@@ -16116,7 +16116,7 @@ Permissions required: bb.plans.list</p></td><td><p>Creates a new deployment plan.Permissions required: bb.plans.create</p></td></tr>-+<tr><td>UpdatePlan</td><td><a href="#bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</a></td>@@ -16125,7 +16125,7 @@ Permissions required: bb.plans.create</p></td>The plan creator and the user with bb.plans.update permission on the project can update the plan.Permissions required: bb.plans.update (or creator)</p></td></tr>-+<tr><td>GetPlanCheckRun</td><td><a href="#bytebase.v1.GetPlanCheckRunRequest">GetPlanCheckRunRequest</a></td>@@ -16133,7 +16133,7 @@ Permissions required: bb.plans.update (or creator)</p></td><td><p>Gets the plan check run for a deployment plan.Permissions required: bb.planCheckRuns.get</p></td></tr>-+<tr><td>RunPlanChecks</td><td><a href="#bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</a></td>@@ -16141,7 +16141,7 @@ Permissions required: bb.planCheckRuns.get</p></td><td><p>Executes validation checks on a deployment plan.Permissions required: bb.planCheckRuns.run</p></td></tr>-+<tr><td>CancelPlanCheckRun</td><td><a href="#bytebase.v1.CancelPlanCheckRunRequest">CancelPlanCheckRunRequest</a></td>@@ -16149,13 +16149,13 @@ Permissions required: bb.planCheckRuns.run</p></td><td><p>Cancels the plan check run for a deployment plan.Permissions required: bb.planCheckRuns.run</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -16167,161 +16167,161 @@ Permissions required: bb.planCheckRuns.run</p></td></tr></thead><tbody>---+++<tr><td>GetPlan</td><td>GET</td><td>/v1/{name=projects/*/plans/*}</td><td></td></tr>----++++<tr><td>ListPlans</td><td>GET</td><td>/v1/{parent=projects/*}/plans</td><td></td></tr>----++++<tr><td>CreatePlan</td><td>POST</td><td>/v1/{parent=projects/*}/plans</td><td>plan</td></tr>----++++<tr><td>UpdatePlan</td><td>PATCH</td><td>/v1/{plan.name=projects/*/plans/*}</td><td>plan</td></tr>----++++<tr><td>GetPlanCheckRun</td><td>GET</td><td>/v1/{name=projects/*/plans/*/planCheckRun}</td><td></td></tr>----++++<tr><td>RunPlanChecks</td><td>POST</td><td>/v1/{name=projects/*/plans/*}:runPlanChecks</td><td>*</td></tr>----++++<tr><td>CancelPlanCheckRun</td><td>POST</td><td>/v1/{name=projects/*/plans/*/planCheckRun}:cancel</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>roles</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The roles required for approval in order. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>flow</td><td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td><td></td><td><p>The approval flow definition. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The title of the approval template. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>The description of the approval template. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -16329,31 +16329,31 @@ Permissions required: bb.planCheckRuns.run</p></td><td><p>The name of the issue to add an approver.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment explaining the approval decision. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -16363,7 +16363,7 @@ Format: projects/{project}If the operation spans parents, a dash (-) may be accepted as a wildcard.We only support updating the status of databases for now. </p></td></tr>-+<tr><td>issues</td><td><a href="#string">string</a></td>@@ -16371,45 +16371,45 @@ We only support updating the status of databases for now. </p></td><td><p>The list of issues to update.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td><td></td><td><p>The new status. </p></td></tr>-+<tr><td>reason</td><td><a href="#string">string</a></td><td></td><td><p>The reason for the status change. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3><p></p>---+++<h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -16417,31 +16417,31 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The issue nameFormat: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>issue_comment</td><td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td></td><td><p>The comment to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -16449,31 +16449,31 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The parent, which owns this collection of issues.Format: projects/{project} </p></td></tr>-+<tr><td>issue</td><td><a href="#bytebase.v1.Issue">Issue</a></td><td></td><td><p>The issue to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -16481,31 +16481,31 @@ Format: projects/{project} </p></td><td><p>The name of the issue to retrieve.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>force</td><td><a href="#bool">bool</a></td><td></td><td><p>If set to true, bypass cache and fetch the latest data. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Issue">Issue</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -16513,70 +16513,70 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The name of the issue.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The title of the issue. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>The description of the issue. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>status</td><td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td><td></td><td><p>The status of the issue. </p></td></tr>-+<tr><td>approvers</td><td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>approval_template</td><td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td><td></td><td><p>The approval template for the issue. </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/[email protected] </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>plan</td><td><a href="#string">string</a></td>@@ -16585,35 +16585,35 @@ Format: projects/{project}/issues/{issue} </p></td>Can be empty.Format: projects/{project}/plans/{plan} </p></td></tr>-+<tr><td>role_grant</td><td><a href="#bytebase.v1.RoleGrant">RoleGrant</a></td><td></td><td><p>Used if the issue type is ROLE_GRANT. </p></td></tr>-+<tr><td>risk_level</td><td><a href="#bytebase.v1.RiskLevel">RiskLevel</a></td><td></td><td><p>The risk level of the issue. </p></td></tr>-+<tr><td>labels</td><td><a href="#string">string</a></td><td>repeated</td><td><p>Labels attached to the issue for categorization and filtering. </p></td></tr>-+<tr><td>approval_status</td><td><a href="#bytebase.v1.ApprovalStatus">ApprovalStatus</a></td><td></td><td><p>The overall approval status for the issue. </p></td></tr>-+<tr><td>access_grant</td><td><a href="#string">string</a></td>@@ -16621,270 +16621,270 @@ Format: projects/{project}/plans/{plan} </p></td><td><p>The access grant associated with this issue.Format: projects/{project}/accessGrants/{access_grant} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Issue.Approver">Issue.Approver</h3><p>Approvers and their approval status for the issue.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td><td></td><td><p>The new status. </p></td></tr>-+<tr><td>principal</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/[email protected] </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IssueComment">IssueComment</h3><p>A comment on an issue.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid} </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The text content of the comment. </p></td></tr>-+<tr><td>payload</td><td><a href="#string">string</a></td><td></td><td><p>TODO: use struct message instead. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/{email} </p></td></tr>-+<tr><td>approval</td><td><a href="#bytebase.v1.IssueComment.Approval">IssueComment.Approval</a></td><td></td><td><p>Approval event. </p></td></tr>-+<tr><td>issue_update</td><td><a href="#bytebase.v1.IssueComment.IssueUpdate">IssueComment.IssueUpdate</a></td><td></td><td><p>Issue update event. </p></td></tr>-+<tr><td>plan_update</td><td><a href="#bytebase.v1.IssueComment.PlanUpdate">IssueComment.PlanUpdate</a></td><td></td><td><p>Plan update event. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IssueComment.Approval">IssueComment.Approval</h3><p>Approval event information.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#bytebase.v1.IssueComment.Approval.Status">IssueComment.Approval.Status</a></td><td></td><td><p>The approval status. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IssueComment.IssueUpdate">IssueComment.IssueUpdate</h3><p>Issue update event information.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>from_title</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>to_title</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>from_description</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>to_description</td><td><a href="#string">string</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>from_status</td><td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>to_status</td><td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td><td>optional</td><td><p> </p></td></tr>-+<tr><td>from_labels</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>to_labels</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IssueComment.PlanUpdate">IssueComment.PlanUpdate</h3><p>Plan update event information (snapshot of plan.config.specs before</p><p>and after a PlanService.UpdatePlan call that mutated specs).</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>from_specs</td><td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>to_specs</td><td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListIssueCommentsRequest">ListIssueCommentsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{projects}/issues/{issue} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -16894,7 +16894,7 @@ this value.If unspecified, at most 10 issue comments will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -16905,31 +16905,31 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListIssueComments` must matchthe call that provided the page token. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListIssueCommentsResponse">ListIssueCommentsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issue_comments</td><td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td>repeated</td><td><p>The issue comments from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -16937,24 +16937,24 @@ the call that provided the page token. </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -16962,7 +16962,7 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The parent, which owns this collection of issues.Format: projects/{project} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -16972,7 +16972,7 @@ this value.If unspecified, at most 10 issues will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -16983,7 +16983,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListIssues` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -17008,14 +17008,14 @@ labels in ["label1", "label2"]risk_level in ["HIGH", "MODERATE"]create_time >= "2025-01-02T15:04:05Z07:00" </p></td></tr>-+<tr><td>query</td><td><a href="#string">string</a></td><td></td><td><p>Query is the query statement. </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -17029,31 +17029,31 @@ For example:- order_by = "create_time desc"- order_by = "update_time asc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issues</td><td><a href="#bytebase.v1.Issue">Issue</a></td><td>repeated</td><td><p>The issues from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -17061,24 +17061,24 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -17086,31 +17086,31 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the issue to add a rejection.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment explaining the rejection decision. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -17118,31 +17118,31 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The name of the issue to request a issue.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>The comment explaining the request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RetryIssueApprovalRequest">RetryIssueApprovalRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -17150,24 +17150,24 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The name of the issue whose approval-finding should be retried.Format: projects/{project}/issues/{issue} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RoleGrant">RoleGrant</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#string">string</a></td>@@ -17175,7 +17175,7 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>The requested role.Format: roles/EXPORTER. </p></td></tr>-+<tr><td>user</td><td><a href="#string">string</a></td>@@ -17183,38 +17183,38 @@ Format: roles/EXPORTER. </p></td><td><p>The user to be granted.Format: users/{email}. </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td><td></td><td><p>The condition for the role. Same as the condition in IAM Binding message. </p></td></tr>-+<tr><td>expiration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The duration for which the grant is valid. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -17223,7 +17223,7 @@ Format: users/{email}. </p></td>Format: projects/{project}Use "projects/-" to list all issues from all projects. </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -17233,7 +17233,7 @@ this value.If unspecified, at most 10 issues will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -17244,7 +17244,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `SearchIssues` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -17252,14 +17252,14 @@ the call that provided the page token. </p></td><td><p>Filter is used to filter issues returned in the list.Check the filter field in the ListIssuesRequest message. </p></td></tr>-+<tr><td>query</td><td><a href="#string">string</a></td><td></td><td><p>Query is the query statement. </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -17273,31 +17273,31 @@ For example:- order_by = "create_time desc"- order_by = "update_time asc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issues</td><td><a href="#bytebase.v1.Issue">Issue</a></td><td>repeated</td><td><p>The issues from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -17305,24 +17305,24 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -17330,21 +17330,21 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The issue nameFormat: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>issue_comment</td><td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td></td><td><p>The comment to update. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -17352,24 +17352,24 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>If set to true, and the issue comment is not found, a new issue comment will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issue</td><td><a href="#bytebase.v1.Issue">Issue</a></td>@@ -17379,14 +17379,14 @@ In this situation, `update_mask` is ignored. </p></td>The issue's `name` field is used to identify the issue to update.Format: projects/{project}/issues/{issue} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -17394,16 +17394,16 @@ Format: projects/{project}/issues/{issue} </p></td><td><p>If set to true, and the issue is not found, a new issue will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3><p>The approval status of an approver.</p><table class="enum-table">@@ -17411,34 +17411,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified status.</p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p>Awaiting approval.</p></td></tr>-+<tr><td>APPROVED</td><td>2</td><td><p>Approved.</p></td></tr>-+<tr><td>REJECTED</td><td>3</td><td><p>Rejected.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.Issue.Type">Issue.Type</h3><p>The type of issue.</p><table class="enum-table">@@ -17446,40 +17446,40 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified issue type.</p></td></tr>-+<tr><td>DATABASE_CHANGE</td><td>1</td><td><p>Database schema or data change.</p></td></tr>-+<tr><td>ROLE_GRANT</td><td>2</td><td><p>Role grant request.</p></td></tr>-+<tr><td>DATABASE_EXPORT</td><td>3</td><td><p>Database data export request.</p></td></tr>-+<tr><td>ACCESS_GRANT</td><td>4</td><td><p>Temporary access grant request.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.IssueComment.Approval.Status">IssueComment.Approval.Status</h3><p>Approval status values.</p><table class="enum-table">@@ -17487,34 +17487,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified status.</p></td></tr>-+<tr><td>PENDING</td><td>1</td><td><p>Approval pending.</p></td></tr>-+<tr><td>APPROVED</td><td>2</td><td><p>Approved.</p></td></tr>-+<tr><td>REJECTED</td><td>3</td><td><p>Rejected.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.IssueStatus">IssueStatus</h3><p>The status of an issue.</p><table class="enum-table">@@ -17522,38 +17522,38 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ISSUE_STATUS_UNSPECIFIED</td><td>0</td><td><p>Unspecified status.</p></td></tr>-+<tr><td>OPEN</td><td>1</td><td><p>Issue is open and active.</p></td></tr>-+<tr><td>DONE</td><td>2</td><td><p>Issue is completed.</p></td></tr>-+<tr><td>CANCELED</td><td>3</td><td><p>Issue is canceled.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IssueService">IssueService</h3><p>IssueService manages issues for tracking database changes and tasks.</p><table class="enum-table">@@ -17561,7 +17561,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetIssue</td><td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>@@ -17569,7 +17569,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>Retrieves an issue by name.Permissions required: bb.issues.get</p></td></tr>-+<tr><td>CreateIssue</td><td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>@@ -17577,7 +17577,7 @@ Permissions required: bb.issues.get</p></td><td><p>Creates a new issue for database changes or tasks.Permissions required: bb.issues.create</p></td></tr>-+<tr><td>ListIssues</td><td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>@@ -17585,7 +17585,7 @@ Permissions required: bb.issues.create</p></td><td><p>Lists issues in a project.Permissions required: bb.issues.list</p></td></tr>-+<tr><td>SearchIssues</td><td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>@@ -17593,7 +17593,7 @@ Permissions required: bb.issues.list</p></td><td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.Permissions required: bb.issues.get</p></td></tr>-+<tr><td>UpdateIssue</td><td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>@@ -17601,7 +17601,7 @@ Permissions required: bb.issues.get</p></td><td><p>Updates an issue's properties such as title, description, or labels.Permissions required: bb.issues.update</p></td></tr>-+<tr><td>ListIssueComments</td><td><a href="#bytebase.v1.ListIssueCommentsRequest">ListIssueCommentsRequest</a></td>@@ -17609,7 +17609,7 @@ Permissions required: bb.issues.update</p></td><td><p>Lists comments on an issue.Permissions required: bb.issueComments.list</p></td></tr>-+<tr><td>CreateIssueComment</td><td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>@@ -17617,7 +17617,7 @@ Permissions required: bb.issueComments.list</p></td><td><p>Adds a comment to an issue.Permissions required: bb.issueComments.create</p></td></tr>-+<tr><td>UpdateIssueComment</td><td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>@@ -17625,7 +17625,7 @@ Permissions required: bb.issueComments.create</p></td><td><p>Updates an existing issue comment.Permissions required: bb.issueComments.update</p></td></tr>-+<tr><td>BatchUpdateIssuesStatus</td><td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>@@ -17633,7 +17633,7 @@ Permissions required: bb.issueComments.update</p></td><td><p>Updates the status of multiple issues in a single operation.Permissions required: bb.issues.update</p></td></tr>-+<tr><td>ApproveIssue</td><td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>@@ -17641,7 +17641,7 @@ Permissions required: bb.issues.update</p></td><td><p>Approves an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step.Permissions required: None (determined by approval flow)</p></td></tr>-+<tr><td>RejectIssue</td><td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>@@ -17649,7 +17649,7 @@ Permissions required: None (determined by approval flow)</p></td><td><p>Rejects an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step.Permissions required: None (determined by approval flow)</p></td></tr>-+<tr><td>RequestIssue</td><td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>@@ -17657,7 +17657,7 @@ Permissions required: None (determined by approval flow)</p></td><td><p>Requests changes on an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step.Permissions required: None (determined by approval flow)</p></td></tr>-+<tr><td>RetryIssueApproval</td><td><a href="#bytebase.v1.RetryIssueApprovalRequest">RetryIssueApprovalRequest</a></td>@@ -17672,13 +17672,13 @@ approval-finding has already completed.Permissions required: None (caller must be the issue creator;mirrors RequestIssue's authorization model).</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -17690,263 +17690,263 @@ mirrors RequestIssue's authorization model).</p></td></tr></thead><tbody>---+++<tr><td>GetIssue</td><td>GET</td><td>/v1/{name=projects/*/issues/*}</td><td></td></tr>----++++<tr><td>CreateIssue</td><td>POST</td><td>/v1/{parent=projects/*}/issues</td><td>issue</td></tr>----++++<tr><td>ListIssues</td><td>GET</td><td>/v1/{parent=projects/*}/issues</td><td></td></tr>----++++<tr><td>SearchIssues</td><td>POST</td><td>/v1/{parent=projects/*}/issues:search</td><td>*</td></tr>----++++<tr><td>UpdateIssue</td><td>PATCH</td><td>/v1/{issue.name=projects/*/issues/*}</td><td>issue</td></tr>----++++<tr><td>ListIssueComments</td><td>GET</td><td>/v1/{parent=projects/*/issues/*}/issueComments</td><td></td></tr>----++++<tr><td>CreateIssueComment</td><td>POST</td><td>/v1/{parent=projects/*/issues/*}:comment</td><td>issue_comment</td></tr>----++++<tr><td>UpdateIssueComment</td><td>PATCH</td><td>/v1/{parent=projects/*/issues/*}:comment</td><td>issue_comment</td></tr>----++++<tr><td>BatchUpdateIssuesStatus</td><td>POST</td><td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td><td>*</td></tr>----++++<tr><td>ApproveIssue</td><td>POST</td><td>/v1/{name=projects/*/issues/*}:approve</td><td>*</td></tr>----++++<tr><td>RejectIssue</td><td>POST</td><td>/v1/{name=projects/*/issues/*}:reject</td><td>*</td></tr>----++++<tr><td>RequestIssue</td><td>POST</td><td>/v1/{name=projects/*/issues/*}:request</td><td>*</td></tr>----++++<tr><td>RetryIssueApproval</td><td>POST</td><td>/v1/{name=projects/*/issues/*}:retryApproval</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/setting_service.proto">v1/setting_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.AISetting">AISetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>enabled</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>provider</td><td><a href="#bytebase.v1.AISetting.Provider">AISetting.Provider</a></td><td></td><td><p> </p></td></tr>-+<tr><td>endpoint</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>api_key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>model</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Algorithm">Algorithm</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>full_mask</td><td><a href="#bytebase.v1.Algorithm.FullMask">Algorithm.FullMask</a></td><td></td><td><p> </p></td></tr>-+<tr><td>range_mask</td><td><a href="#bytebase.v1.Algorithm.RangeMask">Algorithm.RangeMask</a></td><td></td><td><p> </p></td></tr>-+<tr><td>md5_mask</td><td><a href="#bytebase.v1.Algorithm.MD5Mask">Algorithm.MD5Mask</a></td><td></td><td><p> </p></td></tr>-+<tr><td>inner_outer_mask</td><td><a href="#bytebase.v1.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Algorithm.FullMask">Algorithm.FullMask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>substitution</td><td><a href="#string">string</a></td>@@ -17954,93 +17954,93 @@ mirrors RequestIssue's authorization model).</p></td><td><p>substitution is the string used to replace the original value, themax length of the string is 16 bytes. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>prefix_len</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>suffix_len</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>substitution</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Algorithm.MD5Mask">Algorithm.MD5Mask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>salt</td><td><a href="#string">string</a></td><td></td><td><p>salt is the salt value to generate a different hash that with the word alone. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Algorithm.RangeMask">Algorithm.RangeMask</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>slices</td><td><a href="#bytebase.v1.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</a></td>@@ -18048,24 +18048,24 @@ max length of the string is 16 bytes. </p></td><td><p>We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.But frontend can be started with a single rule easily. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>start</td><td><a href="#int32">int32</a></td>@@ -18074,7 +18074,7 @@ But frontend can be started with a single rule easily. </p></td>Uses character indices (not byte offsets) for display-oriented masking.Example: For "你好world", character index 2 refers to 'w' (the 3rd character). </p></td></tr>-+<tr><td>end</td><td><a href="#int32">int32</a></td>@@ -18082,45 +18082,45 @@ Example: For "你好world", character index 2 refers to 'w' (the<td><p>end is the end character index (exclusive) of the original value.Uses character indices (not byte offsets) for display-oriented masking. </p></td></tr>-+<tr><td>substitution</td><td><a href="#string">string</a></td><td></td><td><p>substitution is the string used to replace the OriginalValue[start:end). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Announcement">Announcement</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>text</td><td><a href="#string">string</a></td><td></td><td><p>The text of announcement </p></td></tr>-+<tr><td>link</td><td><a href="#string">string</a></td><td></td><td><p>The optional link, user can follow the link to check extra details </p></td></tr>-+<tr><td>theme</td><td><a href="#bytebase.v1.Announcement.AnnouncementTheme">Announcement.AnnouncementTheme</a></td>@@ -18128,390 +18128,390 @@ Uses character indices (not byte offsets) for display-oriented masking. </p></td<td><p>Banner colors. Built-in presets (info/warning/critical) are afrontend-only concept that seeds these colors; the store only holds them. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Announcement.AnnouncementTheme">Announcement.AnnouncementTheme</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>background</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+<tr><td>text</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting">AppIMSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>settings</td><td><a href="#bytebase.v1.AppIMSetting.IMSetting">AppIMSetting.IMSetting</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.DingTalk">AppIMSetting.DingTalk</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>robot_code</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>app_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>app_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.IMSetting">AppIMSetting.IMSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.WebhookType">WebhookType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>slack</td><td><a href="#bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</a></td><td></td><td><p> </p></td></tr>-+<tr><td>feishu</td><td><a href="#bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</a></td><td></td><td><p> </p></td></tr>-+<tr><td>wecom</td><td><a href="#bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</a></td><td></td><td><p> </p></td></tr>-+<tr><td>lark</td><td><a href="#bytebase.v1.AppIMSetting.Lark">AppIMSetting.Lark</a></td><td></td><td><p> </p></td></tr>-+<tr><td>dingtalk</td><td><a href="#bytebase.v1.AppIMSetting.DingTalk">AppIMSetting.DingTalk</a></td><td></td><td><p> </p></td></tr>-+<tr><td>teams</td><td><a href="#bytebase.v1.AppIMSetting.Teams">AppIMSetting.Teams</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.Lark">AppIMSetting.Lark</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>app_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>app_secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>token</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.Teams">AppIMSetting.Teams</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>tenant_id</td><td><a href="#string">string</a></td><td></td><td><p>Azure AD tenant ID (Directory ID). </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p>Azure AD application (client) ID. </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p>Azure AD client secret. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>corp_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>agent_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>secret</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataClassificationSetting">DataClassificationSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>configs</td><td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>id is the uuid for classification. Each project can chose one classification config. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>levels</td><td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</a></td><td>repeated</td><td><p>levels is user defined level list for classification. </p></td></tr>-+<tr><td>classification</td><td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></td>@@ -18519,252 +18519,252 @@ frontend-only concept that seeds these colors; the store only holds them. </p></<td><p>classification is the id - DataClassification map.The id should in [0-9]+-[0-9]+-[0-9]+ format. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>level</td><td><a href="#int32">int32</a></td><td>optional</td><td><p>The sensitivity level. Maps to Level.level. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>level</td><td><a href="#int32">int32</a></td><td></td><td><p>The numeric level for ordering. Higher = more sensitive. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EmailSetting">EmailSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>from</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>from_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.EmailSetting.Type">EmailSetting.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>smtp</td><td><a href="#bytebase.v1.EmailSetting.SMTPConfig">EmailSetting.SMTPConfig</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EmailSetting.SMTPConfig">EmailSetting.SMTPConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>port</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>username</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>encryption</td><td><a href="#bytebase.v1.EmailSetting.SMTPConfig.Encryption">EmailSetting.SMTPConfig.Encryption</a></td><td></td><td><p> </p></td></tr>-+<tr><td>authentication</td><td><a href="#bytebase.v1.EmailSetting.SMTPConfig.Authentication">EmailSetting.SMTPConfig.Authentication</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EnvironmentSetting">EnvironmentSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>environments</td><td><a href="#bytebase.v1.EnvironmentSetting.Environment">EnvironmentSetting.Environment</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EnvironmentSetting.Environment">EnvironmentSetting.Environment</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -18773,7 +18773,7 @@ The id should in [0-9]+-[0-9]+-[0-9]+ format. </p></td>Format: environments/{environment}.Output only. </p></td></tr>-+<tr><td>id</td><td><a href="#string">string</a></td>@@ -18782,307 +18782,307 @@ Output only. </p></td>This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display name of the environment. </p></td></tr>-+<tr><td>tags</td><td><a href="#bytebase.v1.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>color</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetSettingRequest">GetSettingRequest</h3><p>The request message for getting a setting.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The resource name of the setting. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetSettingResponse">GetSettingResponse</h3><p>The response message for getting a setting.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>setting</td><td><a href="#bytebase.v1.Setting">Setting</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListSettingsRequest">ListSettingsRequest</h3><p></p>---+++<h3 id="bytebase.v1.ListSettingsResponse">ListSettingsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>settings</td><td><a href="#bytebase.v1.Setting">Setting</a></td><td>repeated</td><td><p>The settings from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLEditorThemeSetting">SQLEditorThemeSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>monaco_base</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>tokens</td><td><a href="#bytebase.v1.SQLEditorThemeSetting.TokensEntry">SQLEditorThemeSetting.TokensEntry</a></td><td>repeated</td><td><p>CSS token colors. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLEditorThemeSetting.TokensEntry">SQLEditorThemeSetting.TokensEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>types</td><td><a href="#bytebase.v1.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>id is the uuid for semantic type. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>the title of the semantic type, it should not be empty. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>the description of the semantic type, it can be empty. </p></td></tr>-+<tr><td>algorithm</td><td><a href="#bytebase.v1.Algorithm">Algorithm</a></td><td></td><td><p> </p></td></tr>-+<tr><td>icon</td><td><a href="#string">string</a></td><td></td><td><p>icon is the icon for semantic type, it can be emoji or base64 encoded image. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Setting">Setting</h3><p>The schema of setting.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -19091,180 +19091,180 @@ are /[a-z][0-9]-/. </p></td>Format: settings/{setting}Example: "settings/SEMANTIC_TYPES" </p></td></tr>-+<tr><td>value</td><td><a href="#bytebase.v1.SettingValue">SettingValue</a></td><td></td><td><p>The configuration value of the setting. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SettingValue">SettingValue</h3><p>The data in setting value.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>app_im</td><td><a href="#bytebase.v1.AppIMSetting">AppIMSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>workspace_profile</td><td><a href="#bytebase.v1.WorkspaceProfileSetting">WorkspaceProfileSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>workspace_approval</td><td><a href="#bytebase.v1.WorkspaceApprovalSetting">WorkspaceApprovalSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>data_classification</td><td><a href="#bytebase.v1.DataClassificationSetting">DataClassificationSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ai</td><td><a href="#bytebase.v1.AISetting">AISetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>environment</td><td><a href="#bytebase.v1.EnvironmentSetting">EnvironmentSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>email</td><td><a href="#bytebase.v1.EmailSetting">EmailSetting</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestEmailSettingRequest">TestEmailSettingRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>email_setting</td><td><a href="#bytebase.v1.EmailSetting">EmailSetting</a></td><td></td><td><p> </p></td></tr>-+<tr><td>to</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestEmailSettingResponse">TestEmailSettingResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>success</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateSettingRequest">UpdateSettingRequest</h3><p>The request message for updating or creating a setting.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>setting</td><td><a href="#bytebase.v1.Setting">Setting</a></td><td></td><td><p>The setting to update. </p></td></tr>-+<tr><td>validate_only</td><td><a href="#bool">bool</a></td>@@ -19272,69 +19272,69 @@ Example: "settings/SEMANTIC_TYPES" </p></td><td><p>validate_only is a flag to indicate whether to validate the setting value,server would not persist the setting value if it is true. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorkspaceApprovalSetting">WorkspaceApprovalSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>rules</td><td><a href="#bytebase.v1.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>template</td><td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td><td></td><td><p> </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -19367,115 +19367,115 @@ For examples:resource.environment_id == "prod" && statement.affected_rows >= 100resource.table_name.matches("sensitive_.*") && resource.db_engine == "MYSQL" </p></td></tr>-+<tr><td>source</td><td><a href="#bytebase.v1.WorkspaceApprovalSetting.Rule.Source">WorkspaceApprovalSetting.Rule.Source</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorkspaceProfileSetting">WorkspaceProfileSetting</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>external_url</td><td><a href="#string">string</a></td><td></td><td><p>The external URL is used for sso authentication callback. </p></td></tr>-+<tr><td>disallow_signup</td><td><a href="#bool">bool</a></td><td></td><td><p>Disallow self-service signup, users can only be invited by the owner. </p></td></tr>-+<tr><td>require_mfa</td><td><a href="#bool">bool</a></td><td></td><td><p>Require MFA for all users. </p></td></tr>-+<tr><td>refresh_token_duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The duration for refresh token. Default is 7 days. </p></td></tr>-+<tr><td>announcement</td><td><a href="#bytebase.v1.Announcement">Announcement</a></td><td></td><td><p>The setting of custom announcement </p></td></tr>-+<tr><td>maximum_request_expiration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The max expiration duration for role grants and data access requests. </p></td>+ <td><p>The max expiration duration for data access requests. </p></td></tr>-+<tr><td>domains</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The workspace domain, e.g., bytebase.com. </p></td></tr>-+<tr><td>enforce_identity_domain</td><td><a href="#bool">bool</a></td><td></td><td><p>Only user and group from the domains can be created and login. </p></td></tr>-+<tr><td>database_change_mode</td><td><a href="#bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</a></td><td></td><td><p>The workspace database change mode. </p></td></tr>-+<tr><td>disallow_password_signin</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to disallow password signin. (Except workspace admins) </p></td></tr>-+<tr><td>enable_metric_collection</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to enable metric collection for the workspace. </p></td></tr>-+<tr><td>inactive_session_timeout</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The session expiration time if not activity detected for the user. Value <= 0 means no limit. </p></td></tr>-+<tr><td>enable_audit_log_stdout</td><td><a href="#bool">bool</a></td>@@ -19483,7 +19483,7 @@ resource.table_name.matches("sensitive_.*") && resource.db_engin<td><p>Whether to enable audit logging to stdout in structured JSON format.Requires TEAM or ENTERPRISE license. </p></td></tr>-+<tr><td>watermark</td><td><a href="#bool">bool</a></td>@@ -19491,35 +19491,35 @@ Requires TEAM or ENTERPRISE license. </p></td><td><p>Whether to display watermark on pages.Requires ENTERPRISE license. </p></td></tr>-+<tr><td>directory_sync_token</td><td><a href="#string">string</a></td><td></td><td><p>The token for directory sync authentication. </p></td></tr>-+<tr><td>password_restriction</td><td><a href="#bytebase.v1.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</a></td><td></td><td><p>Password restriction settings. </p></td></tr>-+<tr><td>access_token_duration</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The duration for access token. Default is 1 hour. </p></td></tr>-+<tr><td>enable_debug</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether debug mode is enabled. </p></td></tr>-+<tr><td>sql_result_size</td><td><a href="#int64">int64</a></td>@@ -19527,14 +19527,14 @@ Requires ENTERPRISE license. </p></td><td><p>The maximum result size limit in bytes for query and export, works for the SQL Editor and Export Center.The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. </p></td></tr>-+<tr><td>query_timeout</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The query timeout duration for query and export, works for the SQL Editor and Export Center. </p></td></tr>-+<tr><td>allow_email_code_signin</td><td><a href="#bool">bool</a></td>@@ -19542,7 +19542,7 @@ The default value is 100MB, we will use the default value if the setting not exi<td><p>Allow signin/signup using email + a 6-digit one-time verification code.Requires the EMAIL setting to be configured on the workspace. </p></td></tr>-+<tr><td>sql_editor_theme_id</td><td><a href="#string">string</a></td>@@ -19550,7 +19550,7 @@ Requires the EMAIL setting to be configured on the workspace. </p></td><td><p>Enforced SQL Editor theme id: OPAQUE — a frontend-resolved built-in preset idOR a custom theme's uuid. Empty ⇒ default light. </p></td></tr>-+<tr><td>sql_editor_custom_theme</td><td><a href="#bytebase.v1.SQLEditorThemeSetting">SQLEditorThemeSetting</a></td>@@ -19558,82 +19558,90 @@ OR a custom theme's uuid. Empty ⇒ default light. </p></td><td><p>The enforced CUSTOM theme's full definition — present ONLY whensql_editor_theme_id is a custom uuid. tokens is always complete. </p></td></tr>-++ <tr>+ <td>maximum_role_expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p>The max expiration duration for request role.+Deprecated: use just-in-time access request flows instead. </p></td>+ </tr>+</tbody></table>---+++<h3 id="bytebase.v1.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>min_length</td><td><a href="#int32">int32</a></td><td></td><td><p>min_length is the minimum length for password, should no less than 8. </p></td></tr>-+<tr><td>require_number</td><td><a href="#bool">bool</a></td><td></td><td><p>require_number requires the password must contains at least one number. </p></td></tr>-+<tr><td>require_letter</td><td><a href="#bool">bool</a></td><td></td><td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td></tr>-+<tr><td>require_uppercase_letter</td><td><a href="#bool">bool</a></td><td></td><td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td></tr>-+<tr><td>require_special_character</td><td><a href="#bool">bool</a></td><td></td><td><p>require_special_character requires the password must contains at least one special character. </p></td></tr>-+<tr><td>require_reset_password_for_first_login</td><td><a href="#bool">bool</a></td><td></td><td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td></tr>-+<tr><td>password_rotation</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>password_rotation requires users to reset their password after the duration. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.AISetting.Provider">AISetting.Provider</h3><p></p><table class="enum-table">@@ -19641,40 +19649,40 @@ sql_editor_theme_id is a custom uuid. tokens is always complete. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PROVIDER_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>OPEN_AI</td><td>1</td><td><p></p></td></tr>-+<tr><td>CLAUDE</td><td>2</td><td><p></p></td></tr>-+<tr><td>GEMINI</td><td>3</td><td><p></p></td></tr>-+<tr><td>AZURE_OPENAI</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</h3><p></p><table class="enum-table">@@ -19682,28 +19690,28 @@ sql_editor_theme_id is a custom uuid. tokens is always complete. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>MASK_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>INNER</td><td>1</td><td><p></p></td></tr>-+<tr><td>OUTER</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</h3><p></p><table class="enum-table">@@ -19711,29 +19719,29 @@ sql_editor_theme_id is a custom uuid. tokens is always complete. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>DATABASE_CHANGE_MODE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PIPELINE</td><td>1</td><td><p>A more advanced database change process, including custom approval workflows and other advanced features.Default to this mode.</p></td></tr>-+<tr><td>EDITOR</td><td>2</td><td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.EmailSetting.SMTPConfig.Authentication">EmailSetting.SMTPConfig.Authentication</h3><p></p><table class="enum-table">@@ -19741,40 +19749,40 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AUTHENTICATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>AUTHENTICATION_NONE</td><td>1</td><td><p></p></td></tr>-+<tr><td>PLAIN</td><td>2</td><td><p></p></td></tr>-+<tr><td>LOGIN</td><td>3</td><td><p></p></td></tr>-+<tr><td>CRAM_MD5</td><td>4</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.EmailSetting.SMTPConfig.Encryption">EmailSetting.SMTPConfig.Encryption</h3><p></p><table class="enum-table">@@ -19782,34 +19790,34 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ENCRYPTION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ENCRYPTION_NONE</td><td>1</td><td><p></p></td></tr>-+<tr><td>STARTTLS</td><td>2</td><td><p></p></td></tr>-+<tr><td>SSL_TLS</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.EmailSetting.Type">EmailSetting.Type</h3><p></p><table class="enum-table">@@ -19817,22 +19825,22 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>SMTP</td><td>1</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.Setting.SettingName">Setting.SettingName</h3><p></p><table class="enum-table">@@ -19840,64 +19848,64 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SETTING_NAME_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>WORKSPACE_PROFILE</td><td>1</td><td><p></p></td></tr>-+<tr><td>WORKSPACE_APPROVAL</td><td>2</td><td><p></p></td></tr>-+<tr><td>APP_IM</td><td>3</td><td><p></p></td></tr>-+<tr><td>AI</td><td>4</td><td><p></p></td></tr>-+<tr><td>DATA_CLASSIFICATION</td><td>5</td><td><p></p></td></tr>-+<tr><td>SEMANTIC_TYPES</td><td>6</td><td><p></p></td></tr>-+<tr><td>ENVIRONMENT</td><td>7</td><td><p></p></td></tr>-+<tr><td>EMAIL</td><td>8</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.WorkspaceApprovalSetting.Rule.Source">WorkspaceApprovalSetting.Rule.Source</h3><p></p><table class="enum-table">@@ -19905,44 +19913,44 @@ Default to this mode.</p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SOURCE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>CHANGE_DATABASE</td><td>1</td><td><p></p></td></tr>-+<tr><td>CREATE_DATABASE</td><td>2</td><td><p></p></td></tr>-+<tr><td>REQUEST_ROLE</td><td>4</td><td><p></p></td></tr>-+<tr><td>REQUEST_ACCESS</td><td>5</td><td><p></p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SettingService">SettingService</h3><p>SettingService manages workspace-level settings and configurations.</p><table class="enum-table">@@ -19950,7 +19958,7 @@ Default to this mode.</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>ListSettings</td><td><a href="#bytebase.v1.ListSettingsRequest">ListSettingsRequest</a></td>@@ -19958,7 +19966,7 @@ Default to this mode.</p></td><td><p>Lists all workspace settings.Permissions required: bb.settings.list</p></td></tr>-+<tr><td>GetSetting</td><td><a href="#bytebase.v1.GetSettingRequest">GetSettingRequest</a></td>@@ -19966,7 +19974,7 @@ Permissions required: bb.settings.list</p></td><td><p>Retrieves a workspace setting by name.Permissions required: bb.settings.get</p></td></tr>-+<tr><td>UpdateSetting</td><td><a href="#bytebase.v1.UpdateSettingRequest">UpdateSettingRequest</a></td>@@ -19974,7 +19982,7 @@ Permissions required: bb.settings.get</p></td><td><p>Updates a workspace setting.Permissions required: bb.settings.set</p></td></tr>-+<tr><td>TestEmailSetting</td><td><a href="#bytebase.v1.TestEmailSettingRequest">TestEmailSettingRequest</a></td>@@ -19982,13 +19990,13 @@ Permissions required: bb.settings.set</p></td><td><p>Sends a test email using the provided config (without persisting).Permissions required: bb.settings.set</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -20000,125 +20008,125 @@ Permissions required: bb.settings.set</p></td></tr></thead><tbody>---+++<tr><td>ListSettings</td><td>GET</td><td>/v1/settings</td><td></td></tr>----++++<tr><td>GetSetting</td><td>GET</td><td>/v1/{name=settings/*}</td><td></td></tr>----++++<tr><td>UpdateSetting</td><td>PATCH</td><td>/v1/{setting.name=settings/*}</td><td>setting</td></tr>----++++<tr><td>TestEmailSetting</td><td>POST</td><td>/v1/{parent=workspaces/*}/settings/EMAIL:test</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/actuator_service.proto">v1/actuator_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.ActuatorInfo">ActuatorInfo</h3><p>System information and configuration for the Bytebase instance.</p><p>Actuator concept is similar to the Spring Boot Actuator.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The Bytebase server version. </p></td></tr>-+<tr><td>git_commit</td><td><a href="#string">string</a></td><td></td><td><p>The git commit hash of the build. </p></td></tr>-+<tr><td>readonly</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the Bytebase instance is running in read-only mode. </p></td></tr>-+<tr><td>saas</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the Bytebase instance is running in SaaS mode where some features cannot be edited by users. </p></td></tr>-+<tr><td>host</td><td><a href="#string">string</a></td><td></td><td><p>The host address of the Bytebase instance. </p></td></tr>-+<tr><td>port</td><td><a href="#string">string</a></td><td></td><td><p>The port number of the Bytebase instance. </p></td></tr>-+<tr><td>external_url</td><td><a href="#string">string</a></td><td></td><td><p>The external URL where users or webhook callbacks access Bytebase. </p></td></tr>-+<tr><td>last_active_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The last time any API call was made, refreshed on each request. </p></td></tr>-+<tr><td>workspace</td><td><a href="#string">string</a></td>@@ -20126,70 +20134,70 @@ Permissions required: bb.settings.set</p></td><td><p>The unique identifier for the workspace.Format: workspaces/{id} </p></td></tr>-+<tr><td>unlicensed_features</td><td><a href="#string">string</a></td><td>repeated</td><td><p>List of features that are not licensed. </p></td></tr>-+<tr><td>docker</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the Bytebase instance is running in Docker. </p></td></tr>-+<tr><td>activated_user_count</td><td><a href="#int32">int32</a></td><td></td><td><p>The number of activated users. </p></td></tr>-+<tr><td>activated_instance_count</td><td><a href="#int32">int32</a></td><td></td><td><p>The number of activated database instances. </p></td></tr>-+<tr><td>total_instance_count</td><td><a href="#int32">int32</a></td><td></td><td><p>The total number of database instances. </p></td></tr>-+<tr><td>enable_sample</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether sample data setup is enabled. </p></td></tr>-+<tr><td>external_url_from_flag</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the external URL is set via command-line flag (and thus cannot be changed via UI). </p></td></tr>-+<tr><td>replica_count</td><td><a href="#int32">int32</a></td><td></td><td><p>The number of active replicas (servers sharing the same database). </p></td></tr>-+<tr><td>restriction</td><td><a href="#bytebase.v1.Restriction">Restriction</a></td><td></td><td><p> </p></td></tr>-+<tr><td>default_project</td><td><a href="#string">string</a></td>@@ -20197,45 +20205,45 @@ Format: workspaces/{id} </p></td><td><p>The default project for unassigned databases.Format: projects/{id} </p></td></tr>-+<tr><td>user_count_in_iam</td><td><a href="#int32">int32</a></td><td></td><td><p>The number of users in the workspace IAM (for seat limit display). </p></td></tr>-+<tr><td>active_vcs_user_count</td><td><a href="#int32">int32</a></td><td></td><td><p>The number of active VCS users seen in the active window. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteCacheRequest">DeleteCacheRequest</h3><p>Request message for deleting cache.</p>---+++<h3 id="bytebase.v1.GetActuatorInfoRequest">GetActuatorInfoRequest</h3><p>Request message for getting actuator information.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -20245,52 +20253,52 @@ Format: workspaces/{workspace}When unset, the workspace is resolved from the request context (self-hosted)or no workspace-scoped fields are returned (SaaS). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Restriction">Restriction</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>disallow_signup</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether self-service user signup is disabled. </p></td></tr>-+<tr><td>disallow_password_signin</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether password-based signin is disabled (except for workspace admins). </p></td></tr>-+<tr><td>password_restriction</td><td><a href="#bytebase.v1.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</a></td><td></td><td><p>Password complexity and restriction requirements. </p></td></tr>-+<tr><td>allow_email_code_signin</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether email + 6-digit code signin is enabled for this workspace. </p></td></tr>-+<tr><td>password_reset_enabled</td><td><a href="#bool">bool</a></td>@@ -20298,27 +20306,27 @@ or no workspace-scoped fields are returned (SaaS). </p></td><td><p>Whether password reset via email is available for this workspace.True when the workspace (or deployment) has an email setting configured. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SetupSampleRequest">SetupSampleRequest</h3><p>Request message for setting up sample data.</p>------++++++<h3 id="bytebase.v1.ActuatorService">ActuatorService</h3><p>ActuatorService manages system health and operational information.</p><table class="enum-table">@@ -20326,7 +20334,7 @@ True when the workspace (or deployment) has an email setting configured. </p></t<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetActuatorInfo</td><td><a href="#bytebase.v1.GetActuatorInfoRequest">GetActuatorInfoRequest</a></td>@@ -20336,7 +20344,7 @@ When `name` is provided (or the workspace-scoped binding is used), theresponse includes workspace-scoped fields for that workspace.Permissions required: None</p></td></tr>-+<tr><td>SetupSample</td><td><a href="#bytebase.v1.SetupSampleRequest">SetupSampleRequest</a></td>@@ -20344,7 +20352,7 @@ Permissions required: None</p></td><td><p>Sets up sample data for demonstration and testing purposes.Permissions required: bb.projects.create</p></td></tr>-+<tr><td>DeleteCache</td><td><a href="#bytebase.v1.DeleteCacheRequest">DeleteCacheRequest</a></td>@@ -20352,13 +20360,13 @@ Permissions required: bb.projects.create</p></td><td><p>Clears the system cache to force data refresh.Permissions required: None</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -20370,201 +20378,201 @@ Permissions required: None</p></td></tr></thead><tbody>---+++<tr><td>GetActuatorInfo</td><td>GET</td><td>/v1/actuator/info</td><td></td></tr>-+<tr><td>GetActuatorInfo</td><td>GET</td><td>/v1/{name=workspaces/*}/actuator/info</td><td></td></tr>----++++<tr><td>SetupSample</td><td>POST</td><td>/v1/actuator:setupSample</td><td></td></tr>----++++<tr><td>DeleteCache</td><td>DELETE</td><td>/v1/actuator/cache</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/ai_service.proto">v1/ai_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.AIChatMessage">AIChatMessage</h3><p>A single message in the conversation.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#bytebase.v1.AIChatMessageRole">AIChatMessageRole</a></td><td></td><td><p>The role of the message sender. </p></td></tr>-+<tr><td>content</td><td><a href="#string">string</a></td><td>optional</td><td><p>The text content of the message. Optional for assistant messages that only contain tool calls. </p></td></tr>-+<tr><td>tool_calls</td><td><a href="#bytebase.v1.AIChatToolCall">AIChatToolCall</a></td><td>repeated</td><td><p>Tool calls made by the assistant. Only present in assistant messages. </p></td></tr>-+<tr><td>tool_call_id</td><td><a href="#string">string</a></td><td>optional</td><td><p>The ID of the tool call this message is responding to. Only present in tool messages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AIChatRequest">AIChatRequest</h3><p>Request message for AIService.Chat.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>messages</td><td><a href="#bytebase.v1.AIChatMessage">AIChatMessage</a></td><td>repeated</td><td><p>The conversation messages. </p></td></tr>-+<tr><td>tool_definitions</td><td><a href="#bytebase.v1.AIChatToolDefinition">AIChatToolDefinition</a></td><td>repeated</td><td><p>The tool definitions available to the AI. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AIChatResponse">AIChatResponse</h3><p>Response message for AIService.Chat.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>content</td><td><a href="#string">string</a></td><td>optional</td><td><p>The text content of the AI response. Optional when the response only contains tool calls. </p></td></tr>-+<tr><td>tool_calls</td><td><a href="#bytebase.v1.AIChatToolCall">AIChatToolCall</a></td><td>repeated</td><td><p>Tool calls the AI wants to make. </p></td></tr>-+<tr><td>usage</td><td><a href="#bytebase.v1.AIChatUsage">AIChatUsage</a></td><td>optional</td><td><p>Token usage for this provider call, when available. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AIChatToolCall">AIChatToolCall</h3><p>A tool call made by the AI.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>The unique ID of this tool call. </p></td></tr>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the tool to call. </p></td></tr>-+<tr><td>arguments</td><td><a href="#string">string</a></td><td></td><td><p>The JSON-encoded arguments to pass to the tool. </p></td></tr>-+<tr><td>metadata</td><td><a href="#string">string</a></td>@@ -20572,78 +20580,78 @@ Permissions required: None</p></td><td><p>Opaque provider-specific metadata (e.g., Gemini thought_signature).Frontend must echo this back unchanged when sending tool results. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AIChatToolDefinition">AIChatToolDefinition</h3><p>A tool definition that the AI can invoke.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The name of the tool. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>A description of what the tool does. </p></td></tr>-+<tr><td>parameters_schema</td><td><a href="#string">string</a></td><td></td><td><p>The JSON Schema describing the tool's parameters. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AIChatUsage">AIChatUsage</h3><p>Token usage for a single AI provider call.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>total_tokens</td><td><a href="#int32">int32</a></td><td></td><td><p>Total tokens used by the provider call. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.AIChatMessageRole">AIChatMessageRole</h3><p>Role of a chat message.</p><table class="enum-table">@@ -20651,44 +20659,44 @@ Frontend must echo this back unchanged when sending tool results. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>AI_CHAT_MESSAGE_ROLE_UNSPECIFIED</td><td>0</td><td><p>Unspecified role.</p></td></tr>-+<tr><td>AI_CHAT_MESSAGE_ROLE_SYSTEM</td><td>1</td><td><p>System message providing instructions.</p></td></tr>-+<tr><td>AI_CHAT_MESSAGE_ROLE_USER</td><td>2</td><td><p>User message.</p></td></tr>-+<tr><td>AI_CHAT_MESSAGE_ROLE_ASSISTANT</td><td>3</td><td><p>Assistant (AI) message.</p></td></tr>-+<tr><td>AI_CHAT_MESSAGE_ROLE_TOOL</td><td>4</td><td><p>Tool result message.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AIService">AIService</h3><p>AIService provides AI chat capabilities for the page agent.</p><table class="enum-table">@@ -20696,7 +20704,7 @@ Frontend must echo this back unchanged when sending tool results. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>Chat</td><td><a href="#bytebase.v1.AIChatRequest">AIChatRequest</a></td>@@ -20704,13 +20712,13 @@ Frontend must echo this back unchanged when sending tool results. </p></td><td><p>Chat sends a conversation with tool definitions to the configured AI providerand returns the AI response.</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -20722,39 +20730,39 @@ and returns the AI response.</p></td></tr></thead><tbody>---+++<tr><td>Chat</td><td>POST</td><td>/v1/ai/chat</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/iam_policy.proto">v1/iam_policy.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.Binding">Binding</h3><p>Binding associates members with a role and optional conditions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#string">string</a></td>@@ -20762,7 +20770,7 @@ and returns the AI response.</p></td><td><p>The role that is assigned to the members.Format: roles/{role} </p></td></tr>-+<tr><td>members</td><td><a href="#string">string</a></td>@@ -20773,7 +20781,7 @@ For groups, the member should be: group:{email}For service accounts, the member should be: serviceAccount:{email}For workload identities, the member should be: workloadIdentity:{email} </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -20810,38 +20818,38 @@ resource.database == "instances/local-pg/databases/bytebase" &&resource.database == "instances/local-pg/databases/postgres" && resource.environment_id in ["test"]request.time < timestamp("2025-04-26T11:24:48.655Z") </p></td></tr>-+<tr><td>parsed_expr</td><td><a href="#google.api.expr.v1alpha1.Expr">google.api.expr.v1alpha1.Expr</a></td><td></td><td><p>The parsed expression of the condition. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BindingDelta">BindingDelta</h3><p>A single change to a binding.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>action</td><td><a href="#bytebase.v1.BindingDelta.Action">BindingDelta.Action</a></td><td></td><td><p>The action that was performed on a Binding. </p></td></tr>-+<tr><td>role</td><td><a href="#string">string</a></td>@@ -20849,38 +20857,38 @@ request.time < timestamp("2025-04-26T11:24:48.655Z") </p></td><td><p>Role that is assigned to `members`.For example, `roles/projectOwner`. </p></td></tr>-+<tr><td>member</td><td><a href="#string">string</a></td><td></td><td><p>Follows the same format of Binding.members. </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td><td></td><td><p>The condition that is associated with this binding. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</h3><p>Request message for getting an IAM policy.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>resource</td><td><a href="#string">string</a></td>@@ -20889,24 +20897,24 @@ For example, `roles/projectOwner`. </p></td>Format: projects/{project}Format: workspaces/{workspace} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IamPolicy">IamPolicy</h3><p>IAM policy that binds members to roles.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>bindings</td><td><a href="#bytebase.v1.Binding">Binding</a></td>@@ -20914,7 +20922,7 @@ Format: workspaces/{workspace} </p></td><td><p>Collection of binding.A binding binds one or more project members to a single project role. </p></td></tr>-+<tr><td>etag</td><td><a href="#string">string</a></td>@@ -20923,48 +20931,48 @@ A binding binds one or more project members to a single project role. </p></td>If an etag is provided and does not match the current etag of the policy,the call will be blocked and an ABORTED error will be returned. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PolicyDelta">PolicyDelta</h3><p>Describes changes between two IAM policies.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>binding_deltas</td><td><a href="#bytebase.v1.BindingDelta">BindingDelta</a></td><td>repeated</td><td><p>The delta for Bindings between two policies. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</h3><p>Request message for setting an IAM policy.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>resource</td><td><a href="#string">string</a></td>@@ -20973,30 +20981,30 @@ the call will be blocked and an ABORTED error will be returned. </p></td>Format: projects/{project}Format: workspaces/{workspace} </p></td></tr>-+<tr><td>policy</td><td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td><td></td><td><p> </p></td></tr>-+<tr><td>etag</td><td><a href="#string">string</a></td><td></td><td><p>The current etag of the policy. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.BindingDelta.Action">BindingDelta.Action</h3><p>Type of action performed on a binding.</p><table class="enum-table">@@ -21004,74 +21012,74 @@ Format: workspaces/{workspace} </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ACTION_UNSPECIFIED</td><td>0</td><td><p>Unspecified action.</p></td></tr>-+<tr><td>ADD</td><td>1</td><td><p>Add a binding.</p></td></tr>-+<tr><td>REMOVE</td><td>2</td><td><p>Remove a binding.</p></td></tr>-+</tbody></table>-----+++++<div class="file-heading"><h2 id="v1/audit_log_service.proto">v1/audit_log_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.AuditData">AuditData</h3><p>Additional audit data specific to certain operations.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>policy_delta</td><td><a href="#bytebase.v1.PolicyDelta">PolicyDelta</a></td><td></td><td><p>Changes to IAM policies. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AuditLog">AuditLog</h3><p>Audit log entry recording system activity or API call.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -21081,14 +21089,14 @@ Formats:- projects/{project}/auditLogs/{uid}- workspaces/{workspace}/auditLogs/{uid} </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The timestamp when the audit log was created. </p></td></tr>-+<tr><td>user</td><td><a href="#string">string</a></td>@@ -21096,7 +21104,7 @@ Formats:<td><p>The user who performed the action.Format: users/{email} </p></td></tr>-+<tr><td>method</td><td><a href="#string">string</a></td>@@ -21104,28 +21112,28 @@ Format: users/{email} </p></td><td><p>The method or action being audited.For example: /bytebase.v1.SQLService/Query or bb.project.repository.push </p></td></tr>-+<tr><td>severity</td><td><a href="#bytebase.v1.AuditLog.Severity">AuditLog.Severity</a></td><td></td><td><p>The severity level of this audit log entry. </p></td></tr>-+<tr><td>resource</td><td><a href="#string">string</a></td><td></td><td><p>The resource associated with this audit log. </p></td></tr>-+<tr><td>request</td><td><a href="#string">string</a></td><td></td><td><p>The request payload in JSON format. </p></td></tr>-+<tr><td>response</td><td><a href="#string">string</a></td>@@ -21133,59 +21141,59 @@ For example: /bytebase.v1.SQLService/Query or bb.project.repository.push </p></t<td><p>The response payload in JSON format.Some fields may be omitted if they are too large or contain sensitive information. </p></td></tr>-+<tr><td>status</td><td><a href="#google.rpc.Status">google.rpc.Status</a></td><td></td><td><p>The status of the operation. </p></td></tr>-+<tr><td>latency</td><td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td><td><p>The duration of the operation. </p></td></tr>-+<tr><td>service_data</td><td><a href="#google.protobuf.Any">google.protobuf.Any</a></td><td></td><td><p>Service-specific metadata about the request, response, and activities. </p></td></tr>-+<tr><td>request_metadata</td><td><a href="#bytebase.v1.RequestMetadata">RequestMetadata</a></td><td></td><td><p>Metadata about the request context. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExportAuditLogsRequest">ExportAuditLogsRequest</h3><p>Request message for exporting audit logs.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -21193,7 +21201,7 @@ Some fields may be omitted if they are too large or contain sensitive informatio<td><p>The filter of the log. It should be a valid CEL expression.Check the filter field in the SearchAuditLogsRequest message. </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -21204,14 +21212,14 @@ For example:- order_by = "create_time asc"- order_by = "create_time desc" </p></td></tr>-+<tr><td>format</td><td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td><td><p>The export format. </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -21221,7 +21229,7 @@ The service may return fewer than this value.If unspecified, at most 10 log entries will be returned.The maximum value is 5000; values above 5000 will be coerced to 5000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -21229,31 +21237,31 @@ The maximum value is 5000; values above 5000 will be coerced to 5000. </p></td><td><p>A page token, received from a previous `ExportAuditLogs` call.Provide this to retrieve the subsequent page. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExportAuditLogsResponse">ExportAuditLogsResponse</h3><p>Response message for exporting audit logs.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>content</td><td><a href="#bytes">bytes</a></td><td></td><td><p>The exported audit log content in the requested format. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -21262,31 +21270,31 @@ Provide this to retrieve the subsequent page. </p></td>Pass this value in the page_token field in the subsequent callto retrieve the next page of log entities. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RequestMetadata">RequestMetadata</h3><p>Metadata about the incoming request.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>caller_ip</td><td><a href="#string">string</a></td><td></td><td><p>The IP address of the request originator. </p></td></tr>-+<tr><td>caller_supplied_user_agent</td><td><a href="#string">string</a></td>@@ -21294,31 +21302,31 @@ to retrieve the next page of log entities. </p></td><td><p>The user agent string provided by the caller.This is supplied by the client and is not authenticated. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchAuditLogsRequest">SearchAuditLogsRequest</h3><p>Request message for searching audit logs.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -21338,7 +21346,7 @@ For example:- filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'"- filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -21349,7 +21357,7 @@ For example:- order_by = "create_time asc"- order_by = "create_time desc" </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -21359,7 +21367,7 @@ The service may return fewer than this value.If unspecified, at most 10 log entries will be returned.The maximum value is 5000; values above 5000 will be coerced to 5000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -21367,31 +21375,31 @@ The maximum value is 5000; values above 5000 will be coerced to 5000. </p></td><td><p>A page token, received from a previous `SearchLogs` call.Provide this to retrieve the subsequent page. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchAuditLogsResponse">SearchAuditLogsResponse</h3><p>Response message for searching audit logs.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>audit_logs</td><td><a href="#bytebase.v1.AuditLog">AuditLog</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -21400,16 +21408,16 @@ Provide this to retrieve the subsequent page. </p></td>Pass this value in the page_token field in the subsequent callto retrieve the next page of log entities. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.AuditLog.Severity">AuditLog.Severity</h3><p>Severity level for audit log entries.</p><table class="enum-table">@@ -21417,68 +21425,68 @@ to retrieve the next page of log entities. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SEVERITY_UNSPECIFIED</td><td>0</td><td><p>Unspecified severity level.</p></td></tr>-+<tr><td>DEBUG</td><td>1</td><td><p>Debug-level information.</p></td></tr>-+<tr><td>INFO</td><td>2</td><td><p>Informational messages.</p></td></tr>-+<tr><td>NOTICE</td><td>3</td><td><p>Notable events.</p></td></tr>-+<tr><td>WARNING</td><td>4</td><td><p>Warning conditions.</p></td></tr>-+<tr><td>ERROR</td><td>5</td><td><p>Error conditions.</p></td></tr>-+<tr><td>CRITICAL</td><td>6</td><td><p>Critical conditions.</p></td></tr>-+<tr><td>ALERT</td><td>7</td><td><p>Action must be taken immediately.</p></td></tr>-+<tr><td>EMERGENCY</td><td>8</td><td><p>System is unusable.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.AuditLogService">AuditLogService</h3><p>AuditLogService manages audit logs for system activities and API calls.</p><table class="enum-table">@@ -21486,7 +21494,7 @@ to retrieve the next page of log entities. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>SearchAuditLogs</td><td><a href="#bytebase.v1.SearchAuditLogsRequest">SearchAuditLogsRequest</a></td>@@ -21494,7 +21502,7 @@ to retrieve the next page of log entities. </p></td><td><p>Searches audit logs with optional filtering and pagination.Permissions required: bb.auditLogs.search</p></td></tr>-+<tr><td>ExportAuditLogs</td><td><a href="#bytebase.v1.ExportAuditLogsRequest">ExportAuditLogsRequest</a></td>@@ -21502,13 +21510,13 @@ Permissions required: bb.auditLogs.search</p></td><td><p>Exports audit logs in a specified format for external analysis.Permissions required: bb.auditLogs.export</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -21520,63 +21528,63 @@ Permissions required: bb.auditLogs.export</p></td></tr></thead><tbody>---+++<tr><td>SearchAuditLogs</td><td>POST</td><td>/v1/{parent=projects/*}/auditLogs:search</td><td>*</td></tr>-+<tr><td>SearchAuditLogs</td><td>POST</td><td>/v1/auditLogs:search</td><td>*</td></tr>----++++<tr><td>ExportAuditLogs</td><td>POST</td><td>/v1/{parent=projects/*}/auditLogs:export</td><td>*</td></tr>-+<tr><td>ExportAuditLogs</td><td>POST</td><td>/v1/auditLogs:export</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/user_service.proto">v1/user_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchGetUsersRequest">BatchGetUsersRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>names</td><td><a href="#string">string</a></td>@@ -21584,72 +21592,72 @@ Permissions required: bb.auditLogs.export</p></td><td><p>The user names to retrieve.Format: users/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchGetUsersResponse">BatchGetUsersResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>users</td><td><a href="#bytebase.v1.User">User</a></td><td>repeated</td><td><p>The users from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateUserRequest">CreateUserRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>user</td><td><a href="#bytebase.v1.User">User</a></td><td></td><td><p>The user to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteUserRequest">DeleteUserRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -21657,24 +21665,24 @@ Format: users/{email} </p></td><td><p>The name of the user to delete.Format: users/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetUserRequest">GetUserRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -21682,24 +21690,24 @@ Format: users/{email} </p></td><td><p>The name of the user to retrieve.Format: users/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListUsersRequest">ListUsersRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -21709,7 +21717,7 @@ this value.If unspecified, at most 10 users will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -21720,14 +21728,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListUsers` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted users if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -21752,31 +21760,31 @@ You can combine filter conditions like:name.contains("ed") && project == "projects/sample-project"(name == "ed" || email == "[email protected]") && project == "projects/sample-project" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListUsersResponse">ListUsersResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>users</td><td><a href="#bytebase.v1.User">User</a></td><td>repeated</td><td><p>The users from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -21784,24 +21792,24 @@ name.contains("ed") && project == "projects/sample-project&#<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UndeleteUserRequest">UndeleteUserRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -21809,24 +21817,24 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the deleted user.Format: users/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateEmailRequest">UpdateEmailRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -21835,31 +21843,31 @@ Format: users/{email} </p></td>Format: users/{email}Note: This is the current (old) email address. The new email is specified in the 'email' field. </p></td></tr>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The new email address. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateUserRequest">UpdateUserRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>user</td><td><a href="#bytebase.v1.User">User</a></td>@@ -21869,21 +21877,21 @@ Note: This is the current (old) email address. The new email is specified in theThe user's `name` field is used to identify the user to update.Format: users/{email} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>otp_code</td><td><a href="#string">string</a></td><td>optional</td><td><p>The otp_code is used to verify the user's identity by MFA. </p></td></tr>-+<tr><td>regenerate_temp_mfa_secret</td><td><a href="#bool">bool</a></td>@@ -21891,14 +21899,14 @@ Format: users/{email} </p></td><td><p>The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user.This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response. </p></td></tr>-+<tr><td>regenerate_recovery_codes</td><td><a href="#bool">bool</a></td><td></td><td><p>The regenerate_recovery_codes flag means to regenerate recovery codes for user. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -21906,24 +21914,24 @@ This is used for MFA setup. The temporary MFA secret and recovery codes will be<td><p>If set to true, and the user is not found, a new user will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.User">User</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -21931,70 +21939,70 @@ In this situation, `update_mask` is ignored. </p></td><td><p>The name of the user.Format: users/{email} </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The lifecycle state of the user account. </p></td></tr>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The email address of the user, used for login and notifications. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title or full name of the user. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p>The password for authentication. Only used during user creation or password updates. </p></td></tr>-+<tr><td>service_key</td><td><a href="#string">string</a></td><td></td><td><p>The service key for service account authentication. </p></td></tr>-+<tr><td>mfa_enabled</td><td><a href="#bool">bool</a></td><td></td><td><p>The mfa_enabled flag means if the user has enabled MFA. </p></td></tr>-+<tr><td>temp_otp_secret</td><td><a href="#string">string</a></td><td></td><td><p>Temporary OTP secret used during MFA setup and regeneration. </p></td></tr>-+<tr><td>temp_recovery_codes</td><td><a href="#string">string</a></td><td>repeated</td><td><p>Temporary recovery codes used during MFA setup and regeneration. </p></td></tr>-+<tr><td>temp_otp_secret_created_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>Timestamp when temp_otp_secret was created. Used by frontend to show countdown timer. </p></td></tr>-+<tr><td>phone</td><td><a href="#string">string</a></td>@@ -22002,14 +22010,14 @@ Format: users/{email} </p></td><td><p>Should be a valid E.164 compliant phone number.Could be empty. </p></td></tr>-+<tr><td>profile</td><td><a href="#bytebase.v1.User.Profile">User.Profile</a></td><td></td><td><p>User profile metadata. </p></td></tr>-+<tr><td>groups</td><td><a href="#string">string</a></td>@@ -22017,7 +22025,7 @@ Could be empty. </p></td><td><p>The groups for the user.Format: groups/{email} </p></td></tr>-+<tr><td>workspace</td><td><a href="#string">string</a></td>@@ -22025,58 +22033,58 @@ Format: groups/{email} </p></td><td><p>The current workspace.Format: workspaces/{id} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.User.Profile">User.Profile</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>last_login_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The last time the user successfully logged in. </p></td></tr>-+<tr><td>last_change_password_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The last time the user changed their password. </p></td></tr>-+<tr><td>source</td><td><a href="#string">string</a></td><td></td><td><p>source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.UserService">UserService</h3><p>UserService manages user accounts and authentication.</p><table class="enum-table">@@ -22084,7 +22092,7 @@ Format: workspaces/{id} </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetUser</td><td><a href="#bytebase.v1.GetUserRequest">GetUserRequest</a></td>@@ -22093,7 +22101,7 @@ Format: workspaces/{id} </p></td>Any authenticated user can get the user.Permissions required: bb.users.get</p></td></tr>-+<tr><td>BatchGetUsers</td><td><a href="#bytebase.v1.BatchGetUsersRequest">BatchGetUsersRequest</a></td>@@ -22102,7 +22110,7 @@ Permissions required: bb.users.get</p></td>Any authenticated user can batch get users.Permissions required: bb.users.get</p></td></tr>-+<tr><td>GetCurrentUser</td><td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>@@ -22110,7 +22118,7 @@ Permissions required: bb.users.get</p></td><td><p>Get the current authenticated user.Permissions required: None</p></td></tr>-+<tr><td>ListUsers</td><td><a href="#bytebase.v1.ListUsersRequest">ListUsersRequest</a></td>@@ -22119,7 +22127,7 @@ Permissions required: None</p></td>Any authenticated user can list users.Permissions required: bb.users.list</p></td></tr>-+<tr><td>CreateUser</td><td><a href="#bytebase.v1.CreateUserRequest">CreateUserRequest</a></td>@@ -22128,7 +22136,7 @@ Permissions required: bb.users.list</p></td>In SaaS mode, admins should add users via workspace IAM policy instead.Permissions required: bb.users.create</p></td></tr>-+<tr><td>UpdateUser</td><td><a href="#bytebase.v1.UpdateUserRequest">UpdateUserRequest</a></td>@@ -22137,7 +22145,7 @@ Permissions required: bb.users.create</p></td>Note: Email updates are not supported through this API. Use UpdateEmail instead.Permissions required: bb.users.update (or self)</p></td></tr>-+<tr><td>DeleteUser</td><td><a href="#bytebase.v1.DeleteUserRequest">DeleteUserRequest</a></td>@@ -22145,7 +22153,7 @@ Permissions required: bb.users.update (or self)</p></td><td><p>Deletes a user. Requires bb.users.delete permission with additional validation: the last remaining workspace admin cannot be deleted.Permissions required: bb.users.delete</p></td></tr>-+<tr><td>UndeleteUser</td><td><a href="#bytebase.v1.UndeleteUserRequest">UndeleteUserRequest</a></td>@@ -22153,7 +22161,7 @@ Permissions required: bb.users.delete</p></td><td><p>Restores a deleted user.Permissions required: bb.users.undelete</p></td></tr>-+<tr><td>UpdateEmail</td><td><a href="#bytebase.v1.UpdateEmailRequest">UpdateEmailRequest</a></td>@@ -22161,13 +22169,13 @@ Permissions required: bb.users.undelete</p></td><td><p>Updates a user's email address.Permissions required: bb.users.updateEmail</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -22179,126 +22187,126 @@ Permissions required: bb.users.updateEmail</p></td></tr></thead><tbody>---+++<tr><td>GetUser</td><td>GET</td><td>/v1/{name=users/*}</td><td></td></tr>----++++<tr><td>BatchGetUsers</td><td>GET</td><td>/v1/users:batchGet</td><td></td></tr>----++++<tr><td>GetCurrentUser</td><td>GET</td><td>/v1/users/me</td><td></td></tr>----++++<tr><td>ListUsers</td><td>GET</td><td>/v1/users</td><td></td></tr>----++++<tr><td>CreateUser</td><td>POST</td><td>/v1/users</td><td>user</td></tr>----++++<tr><td>UpdateUser</td><td>PATCH</td><td>/v1/{user.name=users/*}</td><td>user</td></tr>----++++<tr><td>DeleteUser</td><td>DELETE</td><td>/v1/{name=users/*}</td><td></td></tr>----++++<tr><td>UndeleteUser</td><td>POST</td><td>/v1/{name=users/*}:undelete</td><td>*</td></tr>----++++<tr><td>UpdateEmail</td><td>POST</td><td>/v1/{name=users/*}:updateEmail</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/auth_service.proto">v1/auth_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.ExchangeTokenRequest">ExchangeTokenRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>token</td><td><a href="#string">string</a></td><td></td><td><p>External OIDC token (JWT) from CI/CD platform. </p></td></tr>-+<tr><td>email</td><td><a href="#string">string</a></td>@@ -22306,93 +22314,93 @@ Permissions required: bb.users.updateEmail</p></td><td><p>Workload Identity email for identifying which identity to authenticate as.Format: {name}@workload.bytebase.com </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExchangeTokenResponse">ExchangeTokenResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>access_token</td><td><a href="#string">string</a></td><td></td><td><p>Bytebase access token. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IdentityProviderContext">IdentityProviderContext</h3><p>Context for identity provider authentication.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>oauth2_context</td><td><a href="#bytebase.v1.OAuth2IdentityProviderContext">OAuth2IdentityProviderContext</a></td><td></td><td><p>OAuth2 authentication context. </p></td></tr>-+<tr><td>oidc_context</td><td><a href="#bytebase.v1.OIDCIdentityProviderContext">OIDCIdentityProviderContext</a></td><td></td><td><p>OpenID Connect authentication context. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.LoginRequest">LoginRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>User's email address. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p>User's password for authentication. </p></td></tr>-+<tr><td>web</td><td><a href="#bool">bool</a></td>@@ -22400,7 +22408,7 @@ Format: {name}@workload.bytebase.com </p></td><td><p>If true, sets access token and refresh token as HTTP-only cookies instead ofreturning the token in the response body. Use for browser-based clients. </p></td></tr>-+<tr><td>idp_name</td><td><a href="#string">string</a></td>@@ -22408,35 +22416,35 @@ returning the token in the response body. Use for browser-based clients. </p></t<td><p>The name of the identity provider.Format: idps/{idp} </p></td></tr>-+<tr><td>idp_context</td><td><a href="#bytebase.v1.IdentityProviderContext">IdentityProviderContext</a></td><td></td><td><p>The idp_context is used to get the user information from identity provider. </p></td></tr>-+<tr><td>otp_code</td><td><a href="#string">string</a></td><td>optional</td><td><p>The otp_code is used to verify the user's identity by MFA. </p></td></tr>-+<tr><td>recovery_code</td><td><a href="#string">string</a></td><td>optional</td><td><p>The recovery_code is used to recovery the user's identity with MFA. </p></td></tr>-+<tr><td>mfa_temp_token</td><td><a href="#string">string</a></td><td>optional</td><td><p>The mfa_temp_token is used to verify the user's identity by MFA. </p></td></tr>-+<tr><td>email_code</td><td><a href="#string">string</a></td>@@ -22444,7 +22452,7 @@ Format: idps/{idp} </p></td><td><p>6-digit code from email for passwordless login/signup.Pairs with `email`. Mutually exclusive with `password` and `idp_name`. </p></td></tr>-+<tr><td>workspace</td><td><a href="#string">string</a></td>@@ -22455,24 +22463,24 @@ resolution (last login workspace → first membership). Typically populatedfrom the ?workspace= query parameter in invite links.Format: workspaces/{workspace} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.LoginResponse">LoginResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>token</td><td><a href="#string">string</a></td>@@ -22480,121 +22488,121 @@ Format: workspaces/{workspace} </p></td><td><p>Access token for authenticated requests.Only returned when web=false. For web=true, the token is set as an HTTP-only cookie. </p></td></tr>-+<tr><td>mfa_temp_token</td><td><a href="#string">string</a></td><td>optional</td><td><p>Temporary token for MFA verification. </p></td></tr>-+<tr><td>require_reset_password</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether user must reset password before continuing. </p></td></tr>-+<tr><td>user</td><td><a href="#bytebase.v1.User">User</a></td><td></td><td><p>The user from the successful login. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.LogoutRequest">LogoutRequest</h3><p>Request to logout current user session.</p>---+++<h3 id="bytebase.v1.OAuth2IdentityProviderContext">OAuth2IdentityProviderContext</h3><p>OAuth2 authentication context.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>code</td><td><a href="#string">string</a></td><td></td><td><p>Authorization code from OAuth2 provider. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.OIDCIdentityProviderContext">OIDCIdentityProviderContext</h3><p>OpenID Connect authentication context.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>code</td><td><a href="#string">string</a></td><td></td><td><p>Authorization code from OIDC provider. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RefreshRequest">RefreshRequest</h3><p>Request to refresh the access token.</p>---+++<h3 id="bytebase.v1.RefreshResponse">RefreshResponse</h3><p>Response from refreshing the access token.</p>---+++<h3 id="bytebase.v1.RequestPasswordResetRequest">RequestPasswordResetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The email address of the account to reset. </p></td></tr>-+<tr><td>workspace</td><td><a href="#string">string</a></td>@@ -22604,69 +22612,69 @@ and later (at verify time) for signup gate checks and workspace assignment.Unset for SaaS brand-new signup (no workspace exists yet).Format: workspaces/{workspace} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ResetPasswordRequest">ResetPasswordRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The email address of the account. </p></td></tr>-+<tr><td>code</td><td><a href="#string">string</a></td><td></td><td><p>The 6-digit code from the reset email. </p></td></tr>-+<tr><td>new_password</td><td><a href="#string">string</a></td><td></td><td><p>The new password to set. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SendEmailLoginCodeRequest">SendEmailLoginCodeRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The email address to send the code to. </p></td></tr>-+<tr><td>workspace</td><td><a href="#string">string</a></td>@@ -22676,62 +22684,62 @@ and later (at verify time) for signup gate checks and workspace assignment.Unset for SaaS brand-new signup (no workspace exists yet).Format: workspaces/{workspace} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SignupRequest">SignupRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The email for the new account. </p></td></tr>-+<tr><td>password</td><td><a href="#string">string</a></td><td></td><td><p>The password for the new account. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display name of the user. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SwitchWorkspaceRequest">SwitchWorkspaceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>workspace</td><td><a href="#string">string</a></td>@@ -22739,48 +22747,48 @@ Format: workspaces/{workspace} </p></td><td><p>The target workspace to switch to.Format: workspaces/{workspace} </p></td></tr>-+<tr><td>web</td><td><a href="#bool">bool</a></td><td></td><td><p>If true, sets tokens as HTTP-only cookies (browser clients). </p></td></tr>-+<tr><td>otp_code</td><td><a href="#string">string</a></td><td>optional</td><td><p>OTP code for MFA verification. Required if the target workspace enforces MFA. </p></td></tr>-+<tr><td>recovery_code</td><td><a href="#string">string</a></td><td>optional</td><td><p>Recovery code for MFA verification (alternative to otp_code). </p></td></tr>-+<tr><td>mfa_temp_token</td><td><a href="#string">string</a></td><td>optional</td><td><p>Temporary MFA token from a previous SwitchWorkspace call that returned mfa_temp_token. </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.AuthService">AuthService</h3><p>AuthService handles user authentication operations.</p><table class="enum-table">@@ -22788,7 +22796,7 @@ Format: workspaces/{workspace} </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>Login</td><td><a href="#bytebase.v1.LoginRequest">LoginRequest</a></td>@@ -22796,7 +22804,7 @@ Format: workspaces/{workspace} </p></td><td><p>Authenticates a user and returns access tokens.Permissions required: None</p></td></tr>-+<tr><td>Logout</td><td><a href="#bytebase.v1.LogoutRequest">LogoutRequest</a></td>@@ -22804,7 +22812,7 @@ Permissions required: None</p></td><td><p>Logs out the current user session.Permissions required: None</p></td></tr>-+<tr><td>ExchangeToken</td><td><a href="#bytebase.v1.ExchangeTokenRequest">ExchangeTokenRequest</a></td>@@ -22813,7 +22821,7 @@ Permissions required: None</p></td>Used by CI/CD pipelines with Workload Identity Federation.Permissions required: None (validates via OIDC token)</p></td></tr>-+<tr><td>Signup</td><td><a href="#bytebase.v1.SignupRequest">SignupRequest</a></td>@@ -22823,7 +22831,7 @@ Permissions required: None (validates via OIDC token)</p></td>- Otherwise, creates a new workspace with the user as admin.Returns access tokens so the user is logged in immediately after signup.</p></td></tr>-+<tr><td>Refresh</td><td><a href="#bytebase.v1.RefreshRequest">RefreshRequest</a></td>@@ -22831,7 +22839,7 @@ Returns access tokens so the user is logged in immediately after signup.</p></td<td><p>Refreshes the access token using the refresh token cookie.Permissions required: None (validates via refresh token cookie)</p></td></tr>-+<tr><td>SwitchWorkspace</td><td><a href="#bytebase.v1.SwitchWorkspaceRequest">SwitchWorkspaceRequest</a></td>@@ -22839,7 +22847,7 @@ Permissions required: None (validates via refresh token cookie)</p></td><td><p>Switches the current user's active workspace and issues new tokens.The user must be a member of the target workspace.</p></td></tr>-+<tr><td>RequestPasswordReset</td><td><a href="#bytebase.v1.RequestPasswordResetRequest">RequestPasswordResetRequest</a></td>@@ -22848,7 +22856,7 @@ The user must be a member of the target workspace.</p></td>Always returns success to avoid leaking whether the email exists.Permissions required: None</p></td></tr>-+<tr><td>ResetPassword</td><td><a href="#bytebase.v1.ResetPasswordRequest">ResetPasswordRequest</a></td>@@ -22856,7 +22864,7 @@ Permissions required: None</p></td><td><p>Resets the user's password using a password reset token from email.Permissions required: None (validates via token)</p></td></tr>-+<tr><td>SendEmailLoginCode</td><td><a href="#bytebase.v1.SendEmailLoginCodeRequest">SendEmailLoginCodeRequest</a></td>@@ -22865,13 +22873,13 @@ Permissions required: None (validates via token)</p></td>Always returns success (no email enumeration). Enforces 60-sec resend cooldown.Permissions required: None</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -22883,211 +22891,211 @@ Permissions required: None</p></td></tr></thead><tbody>---+++<tr><td>Login</td><td>POST</td><td>/v1/auth/login</td><td>*</td></tr>----++++<tr><td>Logout</td><td>POST</td><td>/v1/auth/logout</td><td>*</td></tr>----++++<tr><td>ExchangeToken</td><td>POST</td><td>/v1/auth:exchangeToken</td><td>*</td></tr>----++++<tr><td>Signup</td><td>POST</td><td>/v1/auth/signup</td><td>*</td></tr>----++++<tr><td>Refresh</td><td>POST</td><td>/v1/auth/refresh</td><td>*</td></tr>----++++<tr><td>SwitchWorkspace</td><td>POST</td><td>/v1/auth:switchWorkspace</td><td>*</td></tr>----++++<tr><td>RequestPasswordReset</td><td>POST</td><td>/v1/auth:requestPasswordReset</td><td>*</td></tr>----++++<tr><td>ResetPassword</td><td>POST</td><td>/v1/auth:resetPassword</td><td>*</td></tr>----++++<tr><td>SendEmailLoginCode</td><td>POST</td><td>/v1/auth:sendEmailLoginCode</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/cel_service.proto">v1/cel_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</h3><p>Request message for batch deparsing CEL expressions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>expressions</td><td><a href="#google.api.expr.v1alpha1.Expr">google.api.expr.v1alpha1.Expr</a></td><td>repeated</td><td><p>The CEL expression ASTs to deparse. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</h3><p>Response message for batch deparsing CEL expressions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>expressions</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The deparsed CEL expressions as strings. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchParseRequest">BatchParseRequest</h3><p>Request message for batch parsing CEL expressions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>expressions</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The CEL expression strings to parse. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchParseResponse">BatchParseResponse</h3><p>Response message for batch parsing CEL expressions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>expressions</td><td><a href="#google.api.expr.v1alpha1.Expr">google.api.expr.v1alpha1.Expr</a></td><td>repeated</td><td><p>The parsed CEL expressions as AST. </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.CelService">CelService</h3><p>CelService manages CEL (Common Expression Language) parsing and formatting operations.</p><table class="enum-table">@@ -23095,7 +23103,7 @@ Permissions required: None</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>BatchParse</td><td><a href="#bytebase.v1.BatchParseRequest">BatchParseRequest</a></td>@@ -23103,7 +23111,7 @@ Permissions required: None</p></td><td><p>Parses multiple CEL expression strings into AST representations.Permissions required: None</p></td></tr>-+<tr><td>BatchDeparse</td><td><a href="#bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</a></td>@@ -23111,13 +23119,13 @@ Permissions required: None</p></td><td><p>Converts multiple CEL AST representations back into expression strings.Permissions required: None</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -23129,132 +23137,132 @@ Permissions required: None</p></td></tr></thead><tbody>---+++<tr><td>BatchParse</td><td>POST</td><td>/v1/cel/batchParse</td><td>*</td></tr>----++++<tr><td>BatchDeparse</td><td>POST</td><td>/v1/cel/batchDeparse</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/database_catalog_service.proto">v1/database_catalog_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.ColumnCatalog">ColumnCatalog</h3><p>Column metadata within a table.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The column name. </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p>The semantic type describing the data purpose. </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.v1.ColumnCatalog.LabelsEntry">ColumnCatalog.LabelsEntry</a></td><td>repeated</td><td><p>User-defined labels for this column. </p></td></tr>-+<tr><td>classification</td><td><a href="#string">string</a></td><td></td><td><p>The data classification level for this column. </p></td></tr>-+<tr><td>object_schema</td><td><a href="#bytebase.v1.ObjectSchema">ObjectSchema</a></td><td>optional</td><td><p>Object schema for complex column types like JSON. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ColumnCatalog.LabelsEntry">ColumnCatalog.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseCatalog">DatabaseCatalog</h3><p>Catalog metadata for a database including schemas, tables, and columns.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -23262,31 +23270,31 @@ Permissions required: None</p></td><td><p>The name of the database catalog.Format: instances/{instance}/databases/{database}/catalog </p></td></tr>-+<tr><td>schemas</td><td><a href="#bytebase.v1.SchemaCatalog">SchemaCatalog</a></td><td>repeated</td><td><p>The schemas in the database. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetDatabaseCatalogRequest">GetDatabaseCatalogRequest</h3><p>Request message for getting a database catalog.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -23294,248 +23302,248 @@ Format: instances/{instance}/databases/{database}/catalog </p></td><td><p>The name of the database catalog to retrieve.Format: instances/{instance}/databases/{database}/catalog </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ObjectSchema">ObjectSchema</h3><p>Schema definition for object-type columns.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.ObjectSchema.Type">ObjectSchema.Type</a></td><td></td><td><p>The data type of this object. </p></td></tr>-+<tr><td>struct_kind</td><td><a href="#bytebase.v1.ObjectSchema.StructKind">ObjectSchema.StructKind</a></td><td></td><td><p>Struct schema. </p></td></tr>-+<tr><td>array_kind</td><td><a href="#bytebase.v1.ObjectSchema.ArrayKind">ObjectSchema.ArrayKind</a></td><td></td><td><p>Array schema. </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p>The semantic type of this object. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ObjectSchema.ArrayKind">ObjectSchema.ArrayKind</h3><p>Array type with element schema.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>kind</td><td><a href="#bytebase.v1.ObjectSchema">ObjectSchema</a></td><td></td><td><p>The schema of array elements. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ObjectSchema.StructKind">ObjectSchema.StructKind</h3><p>Structure type with named properties.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>properties</td><td><a href="#bytebase.v1.ObjectSchema.StructKind.PropertiesEntry">ObjectSchema.StructKind.PropertiesEntry</a></td><td>repeated</td><td><p>Properties of the struct. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ObjectSchema.StructKind.PropertiesEntry">ObjectSchema.StructKind.PropertiesEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#bytebase.v1.ObjectSchema">ObjectSchema</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SchemaCatalog">SchemaCatalog</h3><p>Schema metadata within a database.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The schema name. </p></td></tr>-+<tr><td>tables</td><td><a href="#bytebase.v1.TableCatalog">TableCatalog</a></td><td>repeated</td><td><p>The tables in the schema. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TableCatalog">TableCatalog</h3><p>Table metadata within a schema.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>The table name. </p></td></tr>-+<tr><td>columns</td><td><a href="#bytebase.v1.TableCatalog.Columns">TableCatalog.Columns</a></td><td></td><td><p>Regular table columns. </p></td></tr>-+<tr><td>object_schema</td><td><a href="#bytebase.v1.ObjectSchema">ObjectSchema</a></td><td></td><td><p>Object schema for JSON/XML columns. </p></td></tr>-+<tr><td>classification</td><td><a href="#string">string</a></td><td></td><td><p>The data classification level for this table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TableCatalog.Columns">TableCatalog.Columns</h3><p>Column list for regular tables.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>columns</td><td><a href="#bytebase.v1.ColumnCatalog">ColumnCatalog</a></td><td>repeated</td><td><p>The columns in the table. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateDatabaseCatalogRequest">UpdateDatabaseCatalogRequest</h3><p>Request message for updating a database catalog.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>catalog</td><td><a href="#bytebase.v1.DatabaseCatalog">DatabaseCatalog</a></td>@@ -23545,7 +23553,7 @@ Format: instances/{instance}/databases/{database}/catalog </p></td>The catalog's `name` field is used to identify the database catalog to update.Format: instances/{instance}/databases/{database}/catalog </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -23553,16 +23561,16 @@ Format: instances/{instance}/databases/{database}/catalog </p></td><td><p>If set to true, and the database catalog is not found, a new database catalog will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.ObjectSchema.Type">ObjectSchema.Type</h3><p>Object schema data types.</p><table class="enum-table">@@ -23570,50 +23578,50 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>STRING</td><td>1</td><td><p>String type.</p></td></tr>-+<tr><td>NUMBER</td><td>2</td><td><p>Number type.</p></td></tr>-+<tr><td>BOOLEAN</td><td>3</td><td><p>Boolean type.</p></td></tr>-+<tr><td>OBJECT</td><td>4</td><td><p>Object/struct type.</p></td></tr>-+<tr><td>ARRAY</td><td>5</td><td><p>Array type.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseCatalogService">DatabaseCatalogService</h3><p>DatabaseCatalogService manages database schema metadata and classification.</p><table class="enum-table">@@ -23621,7 +23629,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetDatabaseCatalog</td><td><a href="#bytebase.v1.GetDatabaseCatalogRequest">GetDatabaseCatalogRequest</a></td>@@ -23629,7 +23637,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>Gets the catalog metadata for a database.Permissions required: bb.databaseCatalogs.get</p></td></tr>-+<tr><td>UpdateDatabaseCatalog</td><td><a href="#bytebase.v1.UpdateDatabaseCatalogRequest">UpdateDatabaseCatalogRequest</a></td>@@ -23637,13 +23645,13 @@ Permissions required: bb.databaseCatalogs.get</p></td><td><p>Updates catalog metadata such as classifications and labels.Permissions required: bb.databaseCatalogs.update</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -23655,49 +23663,49 @@ Permissions required: bb.databaseCatalogs.update</p></td></tr></thead><tbody>---+++<tr><td>GetDatabaseCatalog</td><td>GET</td><td>/v1/{name=instances/*/databases/*/catalog}</td><td></td></tr>----++++<tr><td>UpdateDatabaseCatalog</td><td>PATCH</td><td>/v1/{catalog.name=instances/*/databases/*/catalog}</td><td>catalog</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/database_group_service.proto">v1/database_group_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</h3><p>Request message for creating a database group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -23705,14 +23713,14 @@ Permissions required: bb.databaseCatalogs.update</p></td><td><p>The parent resource where this database group will be created.Format: projects/{project} </p></td></tr>-+<tr><td>database_group</td><td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td><td></td><td><p>The database group to create. </p></td></tr>-+<tr><td>database_group_id</td><td><a href="#string">string</a></td>@@ -23723,31 +23731,31 @@ the database group's resource name.This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. </p></td></tr>-+<tr><td>validate_only</td><td><a href="#bool">bool</a></td><td></td><td><p>If set, validate the create request and preview the full database group response, but do not actually create it. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseGroup">DatabaseGroup</h3><p>A group of databases matched by expressions.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -23755,14 +23763,14 @@ are /[a-z][0-9]-/. </p></td><td><p>The name of the database group.Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The short name used in actual databases specified by users. </p></td></tr>-+<tr><td>database_expr</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -23781,31 +23789,31 @@ For example:resource.environment_id == "test" && resource.database_name.startsWith("sample_")resource.database_labels["tenant"] == "tenant1" </p></td></tr>-+<tr><td>matched_databases</td><td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td><td>repeated</td><td><p>The list of databases that match the database group condition. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</h3><p>A database within a database group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -23813,24 +23821,24 @@ resource.database_labels["tenant"] == "tenant1" </p></td><td><p>The resource name of the database.Format: instances/{instance}/databases/{database} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</h3><p>Request message for deleting a database group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -23838,24 +23846,24 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The name of the database group to delete.Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</h3><p>Request message for getting a database group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -23863,31 +23871,31 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><td><p>The name of the database group to retrieve.Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr>-+<tr><td>view</td><td><a href="#bytebase.v1.DatabaseGroupView">DatabaseGroupView</a></td><td></td><td><p>The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</h3><p>Request message for listing database groups.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -23895,55 +23903,55 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><td><p>The parent resource whose database groups are to be listed.Format: projects/{project} </p></td></tr>-+<tr><td>view</td><td><a href="#bytebase.v1.DatabaseGroupView">DatabaseGroupView</a></td><td></td><td><p>The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</h3><p>Response message for listing database groups.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>database_groups</td><td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td><td>repeated</td><td><p>The database groups from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</h3><p>Request message for updating a database group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>database_group</td><td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>@@ -23953,14 +23961,14 @@ Format: projects/{project} </p></td>The database group's `name` field is used to identify the database group to update.Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -23968,16 +23976,16 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><td><p>If set to true, and the database group is not found, a new database group will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.DatabaseGroupView">DatabaseGroupView</h3><p>View options for database group responses.</p><table class="enum-table">@@ -23985,33 +23993,33 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>DATABASE_GROUP_VIEW_UNSPECIFIED</td><td>0</td><td><p>The default / unset value.The API will default to the BASIC view.</p></td></tr>-+<tr><td>DATABASE_GROUP_VIEW_BASIC</td><td>1</td><td><p>Include basic information about the database group, but exclude the list of matched databases and unmatched databases.</p></td></tr>-+<tr><td>DATABASE_GROUP_VIEW_FULL</td><td>2</td><td><p>Include everything.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DatabaseGroupService">DatabaseGroupService</h3><p>DatabaseGroupService manages database groups for organizing databases by criteria.</p><table class="enum-table">@@ -24019,7 +24027,7 @@ The API will default to the BASIC view.</p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>ListDatabaseGroups</td><td><a href="#bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</a></td>@@ -24027,7 +24035,7 @@ The API will default to the BASIC view.</p></td><td><p>Lists database groups in a project.Permissions required: bb.databaseGroups.list</p></td></tr>-+<tr><td>GetDatabaseGroup</td><td><a href="#bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</a></td>@@ -24035,7 +24043,7 @@ Permissions required: bb.databaseGroups.list</p></td><td><p>Gets a database group by name.Permissions required: bb.databaseGroups.get</p></td></tr>-+<tr><td>CreateDatabaseGroup</td><td><a href="#bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</a></td>@@ -24043,7 +24051,7 @@ Permissions required: bb.databaseGroups.get</p></td><td><p>Creates a new database group.Permissions required: bb.databaseGroups.create</p></td></tr>-+<tr><td>UpdateDatabaseGroup</td><td><a href="#bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</a></td>@@ -24052,7 +24060,7 @@ Permissions required: bb.databaseGroups.create</p></td>Permissions required: bb.databaseGroups.updateWhen allow_missing=true, also requires: bb.databaseGroups.create</p></td></tr>-+<tr><td>DeleteDatabaseGroup</td><td><a href="#bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</a></td>@@ -24060,13 +24068,13 @@ When allow_missing=true, also requires: bb.databaseGroups.create</p></td><td><p>Deletes a database group.Permissions required: bb.databaseGroups.delete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -24078,79 +24086,79 @@ Permissions required: bb.databaseGroups.delete</p></td></tr></thead><tbody>---+++<tr><td>ListDatabaseGroups</td><td>GET</td><td>/v1/{parent=projects/*}/databaseGroups</td><td></td></tr>----++++<tr><td>GetDatabaseGroup</td><td>GET</td><td>/v1/{name=projects/*/databaseGroups/*}</td><td></td></tr>----++++<tr><td>CreateDatabaseGroup</td><td>POST</td><td>/v1/{parent=projects/*}/databaseGroups</td><td>database_group</td></tr>----++++<tr><td>UpdateDatabaseGroup</td><td>PATCH</td><td>/v1/{database_group.name=projects/*/databaseGroups/*}</td><td>database_group</td></tr>----++++<tr><td>DeleteDatabaseGroup</td><td>DELETE</td><td>/v1/{name=projects/*/databaseGroups/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/group_service.proto">v1/group_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchGetGroupsRequest">BatchGetGroupsRequest</h3><p>Request message for batch getting groups.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>names</td><td><a href="#string">string</a></td>@@ -24158,55 +24166,55 @@ Permissions required: bb.databaseGroups.delete</p></td><td><p>The group names to retrieve.Format: groups/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchGetGroupsResponse">BatchGetGroupsResponse</h3><p>Response message for batch getting groups.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>groups</td><td><a href="#bytebase.v1.Group">Group</a></td><td>repeated</td><td><p>The groups from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateGroupRequest">CreateGroupRequest</h3><p>Request message for creating a group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>group</td><td><a href="#bytebase.v1.Group">Group</a></td><td></td><td><p>The group to create. </p></td></tr>-+<tr><td>group_email</td><td><a href="#string">string</a></td>@@ -24214,24 +24222,24 @@ Format: groups/{email} </p></td><td><p>The email to use for the group, which will become the final componentof the group's resource name. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteGroupRequest">DeleteGroupRequest</h3><p>Request message for deleting a group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -24239,24 +24247,24 @@ of the group's resource name. </p></td><td><p>The name of the group to delete.Format: groups/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetGroupRequest">GetGroupRequest</h3><p>Request message for getting a group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -24264,24 +24272,24 @@ Format: groups/{email} </p></td><td><p>The name of the group to retrieve.Format: groups/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Group">Group</h3><p>A group of users within the workspace.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -24289,59 +24297,59 @@ Format: groups/{email} </p></td><td><p>The name of the group to retrieve.Format: groups/{group}, the group should be email or uuid. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title of the group. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>The description of the group. </p></td></tr>-+<tr><td>members</td><td><a href="#bytebase.v1.GroupMember">GroupMember</a></td><td>repeated</td><td><p>The members of the group. </p></td></tr>-+<tr><td>source</td><td><a href="#string">string</a></td><td></td><td><p>The source system where the group originated (e.g., Entra ID for SCIM sync). </p></td></tr>-+<tr><td>email</td><td><a href="#string">string</a></td><td></td><td><p>The unique email for the group. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GroupMember">GroupMember</h3><p>A member of a group with a role.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>member</td><td><a href="#string">string</a></td>@@ -24350,31 +24358,31 @@ Format: groups/{group}, the group should be email or uuid. </p></td>Format: users/[email protected] </p></td></tr>-+<tr><td>role</td><td><a href="#bytebase.v1.GroupMember.Role">GroupMember.Role</a></td><td></td><td><p>The member's role in the group. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListGroupsRequest">ListGroupsRequest</h3><p>Request message for listing groups.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -24384,7 +24392,7 @@ this value.If unspecified, at most 10 groups will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -24395,7 +24403,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListGroups` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -24417,31 +24425,31 @@ project == "projects/sample-project"You can combine filter conditions like:title.contains("dba") || email.contains("dba") </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListGroupsResponse">ListGroupsResponse</h3><p>Response message for listing groups.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>groups</td><td><a href="#bytebase.v1.Group">Group</a></td><td>repeated</td><td><p>The groups from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -24449,24 +24457,24 @@ title.contains("dba") || email.contains("dba") </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateGroupRequest">UpdateGroupRequest</h3><p>Request message for updating a group.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>group</td><td><a href="#bytebase.v1.Group">Group</a></td>@@ -24476,14 +24484,14 @@ If this field is omitted, there are no subsequent pages. </p></td>The group's `name` field is used to identify the group to update.Format: groups/{email} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -24491,16 +24499,16 @@ Format: groups/{email} </p></td><td><p>If set to true, and the group is not found, a new group will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.GroupMember.Role">GroupMember.Role</h3><p>The role of a group member.</p><table class="enum-table">@@ -24508,32 +24516,32 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>ROLE_UNSPECIFIED</td><td>0</td><td><p>Unspecified role.</p></td></tr>-+<tr><td>OWNER</td><td>1</td><td><p>Group owner.</p></td></tr>-+<tr><td>MEMBER</td><td>2</td><td><p>Group member.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GroupService">GroupService</h3><p>GroupService manages user groups for organizing users and permissions.</p><table class="enum-table">@@ -24541,7 +24549,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetGroup</td><td><a href="#bytebase.v1.GetGroupRequest">GetGroupRequest</a></td>@@ -24550,7 +24558,7 @@ In this situation, `update_mask` is ignored. </p></td>Group members or users with bb.groups.get permission can get the group.Permissions required: bb.groups.get OR caller is the group member</p></td></tr>-+<tr><td>BatchGetGroups</td><td><a href="#bytebase.v1.BatchGetGroupsRequest">BatchGetGroupsRequest</a></td>@@ -24559,7 +24567,7 @@ Permissions required: bb.groups.get OR caller is the group member</p></td>Group members or users with bb.groups.get permission can get the group.Permissions required: bb.groups.get OR caller is the group member</p></td></tr>-+<tr><td>ListGroups</td><td><a href="#bytebase.v1.ListGroupsRequest">ListGroupsRequest</a></td>@@ -24567,7 +24575,7 @@ Permissions required: bb.groups.get OR caller is the group member</p></td><td><p>Lists all groups in the workspace.Permissions required: bb.groups.list</p></td></tr>-+<tr><td>CreateGroup</td><td><a href="#bytebase.v1.CreateGroupRequest">CreateGroupRequest</a></td>@@ -24575,7 +24583,7 @@ Permissions required: bb.groups.list</p></td><td><p>Creates a new group.Permissions required: bb.groups.create</p></td></tr>-+<tr><td>UpdateGroup</td><td><a href="#bytebase.v1.UpdateGroupRequest">UpdateGroupRequest</a></td>@@ -24584,7 +24592,7 @@ Permissions required: bb.groups.create</p></td>Permissions required: bb.groups.update OR caller is group ownerWhen allow_missing=true, also requires: bb.groups.create</p></td></tr>-+<tr><td>DeleteGroup</td><td><a href="#bytebase.v1.DeleteGroupRequest">DeleteGroupRequest</a></td>@@ -24592,13 +24600,13 @@ When allow_missing=true, also requires: bb.groups.create</p></td><td><p>Deletes a group. Group owners or users with bb.groups.delete permission can delete.Permissions required: bb.groups.delete OR caller is group owner</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -24610,96 +24618,96 @@ Permissions required: bb.groups.delete OR caller is group owner</p></td></tr></thead><tbody>---+++<tr><td>GetGroup</td><td>GET</td><td>/v1/{name=groups/*}</td><td></td></tr>----++++<tr><td>BatchGetGroups</td><td>GET</td><td>/v1/groups:batchGet</td><td></td></tr>----++++<tr><td>ListGroups</td><td>GET</td><td>/v1/groups</td><td></td></tr>----++++<tr><td>CreateGroup</td><td>POST</td><td>/v1/groups</td><td>group</td></tr>----++++<tr><td>UpdateGroup</td><td>PATCH</td><td>/v1/{group.name=groups/*}</td><td>group</td></tr>----++++<tr><td>DeleteGroup</td><td>DELETE</td><td>/v1/{name=groups/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identity_provider</td><td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td><td><p>The identity provider to create. </p></td></tr>-+<tr><td>identity_provider_id</td><td><a href="#string">string</a></td>@@ -24710,31 +24718,31 @@ the identity provider's resource name.This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. </p></td></tr>-+<tr><td>validate_only</td><td><a href="#bool">bool</a></td><td></td><td><p>If set to true, the request will be validated without actually creating the identity provider. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -24742,45 +24750,45 @@ are /[a-z][0-9]-/. </p></td><td><p>The name of the identity provider to delete.Format: idps/{identity_provider} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.FieldMapping">FieldMapping</h3><p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identifier</td><td><a href="#string">string</a></td><td></td><td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td></tr>-+<tr><td>display_name</td><td><a href="#string">string</a></td><td></td><td><p>DisplayName is the field name of display name in 3rd-party idp user info. Optional. </p></td></tr>-+<tr><td>phone</td><td><a href="#string">string</a></td><td></td><td><p>Phone is the field name of primary phone in 3rd-party idp user info. Optional. </p></td></tr>-+<tr><td>groups</td><td><a href="#string">string</a></td>@@ -24788,24 +24796,24 @@ Format: idps/{identity_provider} </p></td><td><p>Groups is the field name of groups in 3rd-party idp user info. Optional.Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/ </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -24813,24 +24821,24 @@ Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-gr<td><p>The name of the identity provider to retrieve.Format: idps/{idp} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IdentityProvider">IdentityProvider</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -24838,90 +24846,90 @@ Format: idps/{idp} </p></td><td><p>The name of the identity provider.Format: idps/{idp} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title of the identity provider. </p></td></tr>-+<tr><td>domain</td><td><a href="#string">string</a></td><td></td><td><p>The domain for email matching when using this identity provider. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td><td></td><td><p>The type of identity provider protocol. </p></td></tr>-+<tr><td>config</td><td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td><td></td><td><p>The configuration details for the identity provider. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>oauth2_config</td><td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td><td></td><td><p>OAuth2 protocol configuration. </p></td></tr>-+<tr><td>oidc_config</td><td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td><td></td><td><p>OIDC protocol configuration. </p></td></tr>-+<tr><td>ldap_config</td><td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td><td></td><td><p>LDAP protocol configuration. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3><p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>host</td><td><a href="#string">string</a></td>@@ -24929,7 +24937,7 @@ Format: idps/{idp} </p></td><td><p>Host is the hostname or IP address of the LDAP server, e.g.,"ldap.example.com". </p></td></tr>-+<tr><td>port</td><td><a href="#int32">int32</a></td>@@ -24938,14 +24946,14 @@ Format: idps/{idp} </p></td>default port of the corresponding security protocol will be used, i.e. 389for StartTLS and 636 for LDAPS. </p></td></tr>-+<tr><td>skip_tls_verify</td><td><a href="#bool">bool</a></td><td></td><td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td></tr>-+<tr><td>bind_dn</td><td><a href="#string">string</a></td>@@ -24953,28 +24961,28 @@ for StartTLS and 636 for LDAPS. </p></td><td><p>BindDN is the DN of the user to bind as a service account to performsearch requests. </p></td></tr>-+<tr><td>bind_password</td><td><a href="#string">string</a></td><td></td><td><p>BindPassword is the password of the user to bind as a service account. </p></td></tr>-+<tr><td>base_dn</td><td><a href="#string">string</a></td><td></td><td><p>BaseDN is the base DN to search for users, e.g., "ou=users,dc=example,dc=com". </p></td></tr>-+<tr><td>user_filter</td><td><a href="#string">string</a></td><td></td><td><p>UserFilter is the filter to search for users, e.g., "(uid=%s)". </p></td></tr>-+<tr><td>security_protocol</td><td><a href="#bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol">LDAPIdentityProviderConfig.SecurityProtocol</a></td>@@ -24982,7 +24990,7 @@ search requests. </p></td><td><p>SecurityProtocol is the security protocol to be used for establishingconnections with the LDAP server. </p></td></tr>-+<tr><td>field_mapping</td><td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>@@ -24990,24 +24998,24 @@ connections with the LDAP server. </p></td><td><p>FieldMapping is the mapping of the user attributes returned by the LDAPserver. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -25016,173 +25024,173 @@ server. </p></td>Format: workspaces/{workspace}When unset, the workspace is resolved from the request context. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identity_providers</td><td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td>repeated</td><td><p>The identity providers from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3><p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>auth_url</td><td><a href="#string">string</a></td><td></td><td><p>The authorization endpoint URL for OAuth2 flow. </p></td></tr>-+<tr><td>token_url</td><td><a href="#string">string</a></td><td></td><td><p>The token endpoint URL for exchanging authorization code. </p></td></tr>-+<tr><td>user_info_url</td><td><a href="#string">string</a></td><td></td><td><p>The user information endpoint URL. </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p>The OAuth2 client identifier. </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p>The OAuth2 client secret for authentication. </p></td></tr>-+<tr><td>scopes</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The list of OAuth2 scopes to request. </p></td></tr>-+<tr><td>field_mapping</td><td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td><td><p>Mapping configuration for user attributes from OAuth2 response. </p></td></tr>-+<tr><td>skip_tls_verify</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip TLS certificate verification. </p></td></tr>-+<tr><td>auth_style</td><td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p>The authentication style for client credentials. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>code</td><td><a href="#string">string</a></td><td></td><td><p>Authorize code from website. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3><p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>issuer</td><td><a href="#string">string</a></td><td></td><td><p>The OIDC issuer URL for the identity provider. </p></td></tr>-+<tr><td>client_id</td><td><a href="#string">string</a></td><td></td><td><p>The OIDC client identifier. </p></td></tr>-+<tr><td>client_secret</td><td><a href="#string">string</a></td><td></td><td><p>The OIDC client secret for authentication. </p></td></tr>-+<tr><td>scopes</td><td><a href="#string">string</a></td>@@ -25190,28 +25198,28 @@ When unset, the workspace is resolved from the request context. </p></td><td><p>The scopes that the OIDC provider supports.Should be fetched from the well-known configuration file of the OIDC provider. </p></td></tr>-+<tr><td>field_mapping</td><td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td><td><p>Mapping configuration for user attributes from OIDC claims. </p></td></tr>-+<tr><td>skip_tls_verify</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to skip TLS certificate verification. </p></td></tr>-+<tr><td>auth_style</td><td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p>The authentication style for client credentials. </p></td></tr>-+<tr><td>auth_endpoint</td><td><a href="#string">string</a></td>@@ -25219,179 +25227,179 @@ Should be fetched from the well-known configuration file of the OIDC provider. <<td><p>The authorization endpoint of the OIDC provider.Should be fetched from the well-known configuration file of the OIDC provider. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.OIDCIdentityProviderTestRequestContext">OIDCIdentityProviderTestRequestContext</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>code</td><td><a href="#string">string</a></td><td></td><td><p>Authorize code from OIDC provider. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identity_provider</td><td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td><td><p>The identity provider to test connection including uncreated. </p></td></tr>-+<tr><td>oauth2_context</td><td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td><td></td><td><p> </p></td></tr>-+<tr><td>oidc_context</td><td><a href="#bytebase.v1.OIDCIdentityProviderTestRequestContext">OIDCIdentityProviderTestRequestContext</a></td><td></td><td><p>OIDC authentication context for test connection. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>claims</td><td><a href="#bytebase.v1.TestIdentityProviderResponse.ClaimsEntry">TestIdentityProviderResponse.ClaimsEntry</a></td><td>repeated</td><td><p>The map of claims returned by the identity provider. </p></td></tr>-+<tr><td>user_info</td><td><a href="#bytebase.v1.TestIdentityProviderResponse.UserInfoEntry">TestIdentityProviderResponse.UserInfoEntry</a></td><td>repeated</td><td><p>The matched user info from the claims. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestIdentityProviderResponse.ClaimsEntry">TestIdentityProviderResponse.ClaimsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestIdentityProviderResponse.UserInfoEntry">TestIdentityProviderResponse.UserInfoEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>identity_provider</td><td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>@@ -25401,14 +25409,14 @@ Should be fetched from the well-known configuration file of the OIDC provider. <The identity provider's `name` field is used to identify the identity provider to update.Format: idps/{identity_provider} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -25416,16 +25424,16 @@ Format: idps/{identity_provider} </p></td><td><p>If set to true, and the identity provider is not found, a new identity provider will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3><p></p><table class="enum-table">@@ -25433,34 +25441,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified identity provider type.</p></td></tr>-+<tr><td>OAUTH2</td><td>1</td><td><p>OAuth 2.0 authentication protocol.</p></td></tr>-+<tr><td>OIDC</td><td>2</td><td><p>OpenID Connect authentication protocol.</p></td></tr>-+<tr><td>LDAP</td><td>3</td><td><p>LDAP directory service authentication.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol">LDAPIdentityProviderConfig.SecurityProtocol</h3><p></p><table class="enum-table">@@ -25468,28 +25476,28 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>SECURITY_PROTOCOL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>START_TLS</td><td>1</td><td><p>StartTLS is the security protocol that starts with an unencrypted connection and then upgrades to TLS.</p></td></tr>-+<tr><td>LDAPS</td><td>2</td><td><p>LDAPS is the security protocol that uses TLS from the beginning.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3><p></p><table class="enum-table">@@ -25497,34 +25505,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>IN_PARAMS</td><td>1</td><td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST bodyas application/x-www-form-urlencoded parameters.</p></td></tr>-+<tr><td>IN_HEADER</td><td>2</td><td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3><p>IdentityProviderService manages external identity providers for SSO authentication.</p><table class="enum-table">@@ -25532,7 +25540,7 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetIdentityProvider</td><td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>@@ -25540,7 +25548,7 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<td><p>Gets an identity provider by name.Permissions required: bb.identityProviders.get</p></td></tr>-+<tr><td>ListIdentityProviders</td><td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>@@ -25548,7 +25556,7 @@ Permissions required: bb.identityProviders.get</p></td><td><p>Lists all configured identity providers (public endpoint for login page).Permissions required: None</p></td></tr>-+<tr><td>CreateIdentityProvider</td><td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>@@ -25556,7 +25564,7 @@ Permissions required: None</p></td><td><p>Creates a new identity provider.Permissions required: bb.identityProviders.create</p></td></tr>-+<tr><td>UpdateIdentityProvider</td><td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>@@ -25565,7 +25573,7 @@ Permissions required: bb.identityProviders.create</p></td>Permissions required: bb.identityProviders.updateWhen allow_missing=true, also requires: bb.identityProviders.create</p></td></tr>-+<tr><td>DeleteIdentityProvider</td><td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td>@@ -25573,7 +25581,7 @@ When allow_missing=true, also requires: bb.identityProviders.create</p></td><td><p>Deletes an identity provider.Permissions required: bb.identityProviders.delete</p></td></tr>-+<tr><td>TestIdentityProvider</td><td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>@@ -25581,13 +25589,13 @@ Permissions required: bb.identityProviders.delete</p></td><td><p>Tests the connection and configuration of an identity provider.Permissions required: bb.identityProviders.update</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -25599,96 +25607,96 @@ Permissions required: bb.identityProviders.update</p></td></tr></thead><tbody>---+++<tr><td>GetIdentityProvider</td><td>GET</td><td>/v1/{name=idps/*}</td><td></td></tr>----++++<tr><td>ListIdentityProviders</td><td>GET</td><td>/v1/idps</td><td></td></tr>-+<tr><td>ListIdentityProviders</td><td>GET</td><td>/v1/{parent=workspaces/*}/idps</td><td></td></tr>----++++<tr><td>CreateIdentityProvider</td><td>POST</td><td>/v1/idps</td><td>identity_provider</td></tr>----++++<tr><td>UpdateIdentityProvider</td><td>PATCH</td><td>/v1/{identity_provider.name=idps/*}</td><td>identity_provider</td></tr>----++++<tr><td>DeleteIdentityProvider</td><td>DELETE</td><td>/v1/{name=idps/*}</td><td></td></tr>----++++<tr><td>TestIdentityProvider</td><td>POST</td><td>/v1/idps/*:test</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/org_policy_service.proto">v1/org_policy_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -25699,38 +25707,38 @@ Environment resource name: environments/environment-id.Instance resource name: instances/instance-id.Database resource name: instances/instance-id/databases/database-name. </p></td></tr>-+<tr><td>policy</td><td><a href="#bytebase.v1.Policy">Policy</a></td><td></td><td><p>The policy to create. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.PolicyType">PolicyType</a></td><td></td><td><p>The type of policy to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -25742,24 +25750,24 @@ Environment resource name: environments/environment-id.Instance resource name: instances/instance-id.Database resource name: instances/instance-id/databases/database-name. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetPolicyRequest">GetPolicyRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -25767,24 +25775,24 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><td><p>The name of the policy to retrieve.Format: {resource type}/{resource id}/policies/{policy type} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -25792,86 +25800,86 @@ Format: {resource type}/{resource id}/policies/{policy type} </p></td><td><p>The parent, which owns this collection of policies.Format: {resource type}/{resource id} </p></td></tr>-+<tr><td>policy_type</td><td><a href="#bytebase.v1.PolicyType">PolicyType</a></td><td>optional</td><td><p>Filter by specific policy type. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted policies if specified. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>policies</td><td><a href="#bytebase.v1.Policy">Policy</a></td><td>repeated</td><td><p>The policies from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.MaskingExemptionPolicy">MaskingExemptionPolicy</h3><p>MaskingExemptionPolicy is the allowlist of users who can access sensitive data.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>exemptions</td><td><a href="#bytebase.v1.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>members</td><td><a href="#string">string</a></td>@@ -25882,7 +25890,7 @@ For groups, the member should be: group:{email}For service accounts, the member should be: serviceAccount:{email}For workload identities, the member should be: workloadIdentity:{email} </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -25904,55 +25912,55 @@ For example:resource.instance_id == "local" && resource.database_name == "employee" && request.time < timestamp("2025-04-30T11:10:39.000Z")resource.instance_id == "local" && resource.database_name == "employee" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</h3><p>Policy for configuring data masking rules.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>rules</td><td><a href="#bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td><td>repeated</td><td><p>The list of masking rules. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3><p>A rule that defines when and how to mask data.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>id</td><td><a href="#string">string</a></td><td></td><td><p>A unique identifier for the rule in UUID format. </p></td></tr>-+<tr><td>condition</td><td><a href="#google.type.Expr">google.type.Expr</a></td>@@ -25982,31 +25990,31 @@ resource.instance_id == "sample-instance" && resource.database_nresource.environment_id != "test" || !(resource.project_id in ["poject1", "prject2"])resource.instance_id == "sample-instance" && (resource.database_name == "db1" || resource.database_name == "db2") </p></td></tr>-+<tr><td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p>The semantic type of data to mask (e.g., "SSN", "EMAIL"). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Policy">Policy</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -26018,87 +26026,87 @@ Environment resource name: environments/environment-id.Instance resource name: instances/instance-id.Database resource name: instances/instance-id/databases/database-name. </p></td></tr>-+<tr><td>inherit_from_parent</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether this policy inherits from its parent resource. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.PolicyType">PolicyType</a></td><td></td><td><p>The type of policy. </p></td></tr>-+<tr><td>rollout_policy</td><td><a href="#bytebase.v1.RolloutPolicy">RolloutPolicy</a></td><td></td><td><p> </p></td></tr>-+<tr><td>masking_rule_policy</td><td><a href="#bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</a></td><td></td><td><p> </p></td></tr>-+<tr><td>masking_exemption_policy</td><td><a href="#bytebase.v1.MaskingExemptionPolicy">MaskingExemptionPolicy</a></td><td></td><td><p> </p></td></tr>-+<tr><td>tag_policy</td><td><a href="#bytebase.v1.TagPolicy">TagPolicy</a></td><td></td><td><p> </p></td></tr>-+<tr><td>query_data_policy</td><td><a href="#bytebase.v1.QueryDataPolicy">QueryDataPolicy</a></td><td></td><td><p> </p></td></tr>-+<tr><td>enforce</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the policy is enforced. </p></td></tr>-+<tr><td>resource_type</td><td><a href="#bytebase.v1.PolicyResourceType">PolicyResourceType</a></td><td></td><td><p>The resource type for the policy. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.QueryDataPolicy">QueryDataPolicy</h3><p>QueryDataPolicy is the policy configuration for querying data in the SQL Editor.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>maximum_result_rows</td><td><a href="#int32">int32</a></td>@@ -26107,7 +26115,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>The maximum number of rows to return in the SQL editor.The default value <= 0, means no limit. </p></td></tr>-+<tr><td>disable_export</td><td><a href="#bool">bool</a></td>@@ -26115,7 +26123,7 @@ The default value <= 0, means no limit. </p></td><td><p>workspace-level policyDisable data export in the SQL editor. </p></td></tr>-+<tr><td>disable_copy_data</td><td><a href="#bool">bool</a></td>@@ -26123,7 +26131,7 @@ Disable data export in the SQL editor. </p></td><td><p>workspace-level policyDisable copying query results in the SQL editor. </p></td></tr>-+<tr><td>allow_admin_data_source</td><td><a href="#bool">bool</a></td>@@ -26135,55 +26143,55 @@ If false,1. when read-only data source is configured, users're force to use the read-only data source2. otherwise fallback to use the admin data source. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RolloutPolicy">RolloutPolicy</h3><p>Rollout policy configuration.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>automatic</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether rollout is automatic without manual approval. </p></td></tr>-+<tr><td>roles</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The roles that can approve rollout execution. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TagPolicy">TagPolicy</h3><p>Policy for tagging resources with metadata.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>tags</td><td><a href="#bytebase.v1.TagPolicy.TagsEntry">TagPolicy.TagsEntry</a></td>@@ -26191,55 +26199,55 @@ If false,<td><p>tags is the key - value map for resources.for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TagPolicy.TagsEntry">TagPolicy.TagsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>policy</td><td><a href="#bytebase.v1.Policy">Policy</a></td>@@ -26253,14 +26261,14 @@ Environment resource name: environments/environment-id.Instance resource name: instances/instance-id.Database resource name: instances/instance-id/databases/database-name. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -26268,16 +26276,16 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><td><p>If set to true, and the policy is not found, a new policy will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.PolicyResourceType">PolicyResourceType</h3><p>The resource type that a policy can be attached to.</p><table class="enum-table">@@ -26285,34 +26293,34 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>RESOURCE_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified resource type.</p></td></tr>-+<tr><td>WORKSPACE</td><td>1</td><td><p>Workspace-level policy.</p></td></tr>-+<tr><td>ENVIRONMENT</td><td>2</td><td><p>Environment-level policy.</p></td></tr>-+<tr><td>PROJECT</td><td>3</td><td><p>Project-level policy.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.PolicyType">PolicyType</h3><p>The type of organizational policy.</p><table class="enum-table">@@ -26320,50 +26328,50 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>POLICY_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified policy type.</p></td></tr>-+<tr><td>MASKING_RULE</td><td>1</td><td><p>Data masking rule policy.</p></td></tr>-+<tr><td>MASKING_EXEMPTION</td><td>2</td><td><p>Data masking exemption policy.</p></td></tr>-+<tr><td>ROLLOUT_POLICY</td><td>3</td><td><p>Rollout deployment policy.</p></td></tr>-+<tr><td>TAG</td><td>4</td><td><p>Resource tag policy.</p></td></tr>-+<tr><td>DATA_QUERY</td><td>6</td><td><p>Query data access policy.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.OrgPolicyService">OrgPolicyService</h3><p>OrgPolicyService manages organizational policies at various resource levels.</p><table class="enum-table">@@ -26371,7 +26379,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetPolicy</td><td><a href="#bytebase.v1.GetPolicyRequest">GetPolicyRequest</a></td>@@ -26379,7 +26387,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>Retrieves a policy by name.Permissions required: bb.policies.get</p></td></tr>-+<tr><td>ListPolicies</td><td><a href="#bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</a></td>@@ -26387,7 +26395,7 @@ Permissions required: bb.policies.get</p></td><td><p>Lists policies at a specified resource level.Permissions required: bb.policies.list</p></td></tr>-+<tr><td>CreatePolicy</td><td><a href="#bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</a></td>@@ -26395,7 +26403,7 @@ Permissions required: bb.policies.list</p></td><td><p>Creates a new organizational policy.Permissions required: bb.policies.create</p></td></tr>-+<tr><td>UpdatePolicy</td><td><a href="#bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</a></td>@@ -26403,7 +26411,7 @@ Permissions required: bb.policies.create</p></td><td><p>Updates an existing organizational policy.Permissions required: bb.policies.update</p></td></tr>-+<tr><td>DeletePolicy</td><td><a href="#bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</a></td>@@ -26411,13 +26419,13 @@ Permissions required: bb.policies.update</p></td><td><p>Deletes an organizational policy.Permissions required: bb.policies.delete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -26429,226 +26437,226 @@ Permissions required: bb.policies.delete</p></td></tr></thead><tbody>---+++<tr><td>GetPolicy</td><td>GET</td><td>/v1/{name=workspaces/*/policies/*}</td><td></td></tr>-+<tr><td>GetPolicy</td><td>GET</td><td>/v1/{name=projects/*/policies/*}</td><td></td></tr>-+<tr><td>GetPolicy</td><td>GET</td><td>/v1/{name=environments/*/policies/*}</td><td></td></tr>-+<tr><td>GetPolicy</td><td>GET</td><td>/v1/{name=instances/*/policies/*}</td><td></td></tr>-+<tr><td>GetPolicy</td><td>GET</td><td>/v1/{name=instances/*/databases/*/policies/*}</td><td></td></tr>----++++<tr><td>ListPolicies</td><td>GET</td><td>/v1/{parent=workspaces/*}/policies</td><td></td></tr>-+<tr><td>ListPolicies</td><td>GET</td><td>/v1/{parent=projects/*}/policies</td><td></td></tr>-+<tr><td>ListPolicies</td><td>GET</td><td>/v1/{parent=environments/*}/policies</td><td></td></tr>-+<tr><td>ListPolicies</td><td>GET</td><td>/v1/{parent=instances/*}/policies</td><td></td></tr>-+<tr><td>ListPolicies</td><td>GET</td><td>/v1/{parent=instances/*/databases/*}/policies</td><td></td></tr>----++++<tr><td>CreatePolicy</td><td>POST</td><td>/v1/{parent=workspaces/*}/policies</td><td>policy</td></tr>-+<tr><td>CreatePolicy</td><td>POST</td><td>/v1/{parent=projects/*}/policies</td><td>policy</td></tr>-+<tr><td>CreatePolicy</td><td>POST</td><td>/v1/{parent=environments/*}/policies</td><td>policy</td></tr>-+<tr><td>CreatePolicy</td><td>POST</td><td>/v1/{parent=instances/*}/policies</td><td>policy</td></tr>-+<tr><td>CreatePolicy</td><td>POST</td><td>/v1/{parent=instances/*/databases/*}/policies</td><td>policy</td></tr>----++++<tr><td>UpdatePolicy</td><td>PATCH</td><td>/v1/{policy.name=workspaces/*/policies/*}</td><td>policy</td></tr>-+<tr><td>UpdatePolicy</td><td>PATCH</td><td>/v1/{policy.name=projects/*/policies/*}</td><td>policy</td></tr>-+<tr><td>UpdatePolicy</td><td>PATCH</td><td>/v1/{policy.name=environments/*/policies/*}</td><td>policy</td></tr>-+<tr><td>UpdatePolicy</td><td>PATCH</td><td>/v1/{policy.name=instances/*/policies/*}</td><td>policy</td></tr>-+<tr><td>UpdatePolicy</td><td>PATCH</td><td>/v1/{policy.name=instances/*/databases/*/policies/*}</td><td>policy</td></tr>----++++<tr><td>DeletePolicy</td><td>DELETE</td><td>/v1/{name=workspaces/*/policies/*}</td><td></td></tr>-+<tr><td>DeletePolicy</td><td>DELETE</td><td>/v1/{name=projects/*/policies/*}</td><td></td></tr>-+<tr><td>DeletePolicy</td><td>DELETE</td><td>/v1/{name=environments/*/policies/*}</td><td></td></tr>-+<tr><td>DeletePolicy</td><td>DELETE</td><td>/v1/{name=instances/*/policies/*}</td><td></td></tr>-+<tr><td>DeletePolicy</td><td>DELETE</td><td>/v1/{name=instances/*/databases/*/policies/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/project_service.proto">v1/project_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.Activity">Activity</h3><p>Activity types for webhook notifications.</p>---+++<h3 id="bytebase.v1.AddWebhookRequest">AddWebhookRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>project</td><td><a href="#string">string</a></td>@@ -26656,31 +26664,31 @@ Permissions required: bb.policies.delete</p></td><td><p>The name of the project to add the webhook to.Format: projects/{project} </p></td></tr>-+<tr><td>webhook</td><td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td><td><p>The webhook to add. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchDeleteProjectsRequest">BatchDeleteProjectsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>names</td><td><a href="#string">string</a></td>@@ -26688,7 +26696,7 @@ Format: projects/{project} </p></td><td><p>The names of the projects to delete.Format: projects/{project} </p></td></tr>-+<tr><td>purge</td><td><a href="#bool">bool</a></td>@@ -26700,24 +26708,24 @@ All projects must already be soft-deleted for this to work.When purge=true, all databases will be moved to the default project before deletion.When purge=false (soft delete/archive), the projects and their databases/issues remain unchanged. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchGetProjectsRequest">BatchGetProjectsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>names</td><td><a href="#string">string</a></td>@@ -26725,55 +26733,55 @@ When purge=false (soft delete/archive), the projects and their databases/issues<td><p>The names of projects to retrieve.Format: projects/{project} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchGetProjectsResponse">BatchGetProjectsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>projects</td><td><a href="#bytebase.v1.Project">Project</a></td><td>repeated</td><td><p>The projects from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateProjectRequest">CreateProjectRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>project</td><td><a href="#bytebase.v1.Project">Project</a></td><td></td><td><p>The project to create. </p></td></tr>-+<tr><td>project_id</td><td><a href="#string">string</a></td>@@ -26784,24 +26792,24 @@ the project's resource name.This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -26809,7 +26817,7 @@ are /[a-z][0-9]-/. </p></td><td><p>The name of the project to delete.Format: projects/{project} </p></td></tr>-+<tr><td>purge</td><td><a href="#bool">bool</a></td>@@ -26821,24 +26829,24 @@ The project must already be soft-deleted for this to work.When purge=true, all databases will be moved to the default project before deletion.When purge=false (soft delete/archive), the project and its databases/issues remain unchanged. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetProjectRequest">GetProjectRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -26846,62 +26854,62 @@ When purge=false (soft delete/archive), the project and its databases/issues rem<td><p>The name of the project to retrieve.Format: projects/{project} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Label">Label</h3><p>A label for categorizing and organizing issues.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p>The label value/name. </p></td></tr>-+<tr><td>color</td><td><a href="#google.type.Color">google.type.Color</a></td><td></td><td><p>The label color. </p></td></tr>-+<tr><td>group</td><td><a href="#string">string</a></td><td></td><td><p>The group this label belongs to. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListProjectsRequest">ListProjectsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -26911,7 +26919,7 @@ this value.If unspecified, at most 10 projects will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -26922,14 +26930,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListProjects` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted projects if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -26938,7 +26946,7 @@ the call that provided the page token. </p></td>Check filter for SearchProjectsRequest for details.Supports filtering by name, resource_id, state, and labels (e.g., labels.environment == "production"). </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -26950,31 +26958,31 @@ For example:- order_by = "title desc"- order_by = "title asc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListProjectsResponse">ListProjectsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>projects</td><td><a href="#bytebase.v1.Project">Project</a></td><td>repeated</td><td><p>The projects from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -26982,24 +26990,24 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Project">Project</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -27007,56 +27015,56 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the project.Format: projects/{project} </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The lifecycle state of the project. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The title or name of a project. It's not unique within the workspace. </p></td></tr>-+<tr><td>webhooks</td><td><a href="#bytebase.v1.Webhook">Webhook</a></td><td>repeated</td><td><p>The list of webhooks configured for the project. </p></td></tr>-+<tr><td>data_classification_config_id</td><td><a href="#string">string</a></td><td></td><td><p>The data classification configuration ID for the project. </p></td></tr>-+<tr><td>issue_labels</td><td><a href="#bytebase.v1.Label">Label</a></td><td>repeated</td><td><p>Labels available for tagging issues in this project. </p></td></tr>-+<tr><td>force_issue_labels</td><td><a href="#bool">bool</a></td><td></td><td><p>Force issue labels to be used when creating an issue. </p></td></tr>-+<tr><td>enforce_issue_title</td><td><a href="#bool">bool</a></td><td></td><td><p>Enforce issue title to be created by user instead of generated by Bytebase. </p></td></tr>-+<tr><td>postgres_database_tenant_mode</td><td><a href="#bool">bool</a></td>@@ -27064,21 +27072,21 @@ Format: projects/{project} </p></td><td><p>Whether to enable database tenant mode for PostgreSQL.If enabled, issues will include "set role <db_owner>" statement. </p></td></tr>-+<tr><td>allow_self_approval</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to allow issue creators to self-approve their own issues. </p></td></tr>-+<tr><td>execution_retry_policy</td><td><a href="#bytebase.v1.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</a></td><td></td><td><p>Execution retry policy for task runs. </p></td></tr>-+<tr><td>ci_sampling_size</td><td><a href="#int32">int32</a></td>@@ -27086,14 +27094,14 @@ If enabled, issues will include "set role <db_owner>" statement. <<td><p>The maximum number of database rows to sample during CI data validation.Without specification, sampling is disabled, resulting in full validation. </p></td></tr>-+<tr><td>parallel_tasks_per_rollout</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of parallel tasks allowed during rollout execution. </p></td></tr>-+<tr><td>labels</td><td><a href="#bytebase.v1.Project.LabelsEntry">Project.LabelsEntry</a></td>@@ -27101,7 +27109,7 @@ Without specification, sampling is disabled, resulting in full validation. </p><<td><p>Labels are key-value pairs that can be attached to the project.For example, { "environment": "production", "team": "backend" } </p></td></tr>-+<tr><td>enforce_sql_review</td><td><a href="#bool">bool</a></td>@@ -27109,138 +27117,138 @@ For example, { "environment": "production", "team": "<td><p>Whether to enforce SQL review checks to pass before issue creation.If enabled, issues cannot be created when SQL review finds errors. </p></td></tr>-+<tr><td>require_issue_approval</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to require issue approval before rollout. </p></td></tr>-+<tr><td>require_plan_check_no_error</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to require plan check to have no error before rollout. </p></td></tr>-+<tr><td>allow_request_role</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>allow_just_in_time_access</td><td><a href="#bool">bool</a></td><td></td><td><p>Once enabled, users can request and use the just-in-time access in the SQL Editor. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</h3><p>Execution retry policy configuration.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>maximum_retries</td><td><a href="#int32">int32</a></td><td></td><td><p>The maximum number of retries for lock timeout errors. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Project.LabelsEntry">Project.LabelsEntry</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>webhook</td><td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td><td><p>The webhook to remove. Identified by its url. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted projects if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -27270,7 +27278,7 @@ name == "project name" && resource_id.contains("project id&#name.contains("project name") || resource_id == "project id"labels.environment == "production" && labels.tier == "critical" </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -27280,7 +27288,7 @@ this value.If unspecified, at most 10 projects will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -27291,7 +27299,7 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `SearchProjects` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>order_by</td><td><a href="#string">string</a></td>@@ -27303,31 +27311,31 @@ For example:- order_by = "title desc"- order_by = "title asc" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>projects</td><td><a href="#bytebase.v1.Project">Project</a></td><td>repeated</td><td><p>The projects from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -27335,24 +27343,24 @@ For example:<td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestWebhookRequest">TestWebhookRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>project</td><td><a href="#string">string</a></td>@@ -27360,55 +27368,55 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the project which owns the webhook to test.Format: projects/{project} </p></td></tr>-+<tr><td>webhook</td><td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td><td><p>The webhook to test. Identified by its url. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.TestWebhookResponse">TestWebhookResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>error</td><td><a href="#string">string</a></td><td></td><td><p>The result of the test, empty if the test is successful. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -27416,24 +27424,24 @@ Format: projects/{project} </p></td><td><p>The name of the deleted project.Format: projects/{project} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>project</td><td><a href="#bytebase.v1.Project">Project</a></td>@@ -27443,14 +27451,14 @@ Format: projects/{project} </p></td>The project's `name` field is used to identify the project to update.Format: projects/{project} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -27458,38 +27466,38 @@ Format: projects/{project} </p></td><td><p>If set to true, and the project is not found, a new project will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>webhook</td><td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td><td><p>The webhook to modify. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -27497,24 +27505,24 @@ In this situation, `update_mask` is ignored. </p></td><td><p>If set to true, and the webhook is not found, a new webhook will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Webhook">Webhook</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -27522,7 +27530,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>name is the name of the webhook, generated by the server.format: projects/{project}/webhooks/{webhook} </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.WebhookType">WebhookType</a></td>@@ -27530,21 +27538,21 @@ format: projects/{project}/webhooks/{webhook} </p></td><td><p>Webhook integration type.type is the type of the webhook. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>title is the title of the webhook. </p></td></tr>-+<tr><td>url</td><td><a href="#string">string</a></td><td></td><td><p>url is the url of the webhook, should be unique within the project. </p></td></tr>-+<tr><td>direct_message</td><td><a href="#bool">bool</a></td>@@ -27553,7 +27561,7 @@ type is the type of the webhook. </p></td>to the persons and url will be ignored.IM integration setting should be set for this function to work. </p></td></tr>-+<tr><td>notification_types</td><td><a href="#bytebase.v1.Activity.Type">Activity.Type</a></td>@@ -27568,16 +27576,16 @@ It should not be empty, and should be a subset of the following:- PIPELINE_FAILED- PIPELINE_COMPLETED </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Activity.Type">Activity.Type</h3><p>Activity type enumeration.</p><table class="enum-table">@@ -27585,56 +27593,56 @@ It should not be empty, and should be a subset of the following:<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>ISSUE_CREATED</td><td>10</td><td><p>ISSUE_CREATED represents a new issue creation event.</p></td></tr>-+<tr><td>ISSUE_APPROVAL_REQUESTED</td><td>11</td><td><p>ISSUE_APPROVAL_REQUESTED represents an approval request event.</p></td></tr>-+<tr><td>ISSUE_SENT_BACK</td><td>12</td><td><p>ISSUE_SENT_BACK represents an issue being sent back by an approver.</p></td></tr>-+<tr><td>PIPELINE_FAILED</td><td>13</td><td><p>PIPELINE_FAILED represents a pipeline failure event.</p></td></tr>-+<tr><td>PIPELINE_COMPLETED</td><td>14</td><td><p>PIPELINE_COMPLETED represents a pipeline completion event.</p></td></tr>-+<tr><td>ISSUE_APPROVED</td><td>15</td><td><p>ISSUE_APPROVED represents an issue being fully approved.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ProjectService">ProjectService</h3><p>ProjectService manages projects that group databases and changes.</p><table class="enum-table">@@ -27642,7 +27650,7 @@ It should not be empty, and should be a subset of the following:<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetProject</td><td><a href="#bytebase.v1.GetProjectRequest">GetProjectRequest</a></td>@@ -27651,7 +27659,7 @@ It should not be empty, and should be a subset of the following:Users with "bb.projects.get" permission on the workspace or the project owner can access this method.Permissions required: bb.projects.get</p></td></tr>-+<tr><td>BatchGetProjects</td><td><a href="#bytebase.v1.BatchGetProjectsRequest">BatchGetProjectsRequest</a></td>@@ -27659,7 +27667,7 @@ Permissions required: bb.projects.get</p></td><td><p>BatchGetProjects retrieves multiple projects by their names.Permissions required: bb.projects.get</p></td></tr>-+<tr><td>ListProjects</td><td><a href="#bytebase.v1.ListProjectsRequest">ListProjectsRequest</a></td>@@ -27667,7 +27675,7 @@ Permissions required: bb.projects.get</p></td><td><p>Lists all projects in the workspace with optional filtering.Permissions required: bb.projects.list</p></td></tr>-+<tr><td>SearchProjects</td><td><a href="#bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</a></td>@@ -27675,7 +27683,7 @@ Permissions required: bb.projects.list</p></td><td><p>Searches for projects with advanced filtering capabilities.Permissions required: bb.projects.get (or project-level bb.projects.get for specific projects)</p></td></tr>-+<tr><td>CreateProject</td><td><a href="#bytebase.v1.CreateProjectRequest">CreateProjectRequest</a></td>@@ -27683,7 +27691,7 @@ Permissions required: bb.projects.get (or project-level bb.projects.get for spec<td><p>Creates a new project in the workspace.Permissions required: bb.projects.create</p></td></tr>-+<tr><td>UpdateProject</td><td><a href="#bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</a></td>@@ -27691,7 +27699,7 @@ Permissions required: bb.projects.create</p></td><td><p>Updates an existing project's properties.Permissions required: bb.projects.update</p></td></tr>-+<tr><td>DeleteProject</td><td><a href="#bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</a></td>@@ -27699,7 +27707,7 @@ Permissions required: bb.projects.update</p></td><td><p>Deletes (soft-delete or purge) a project.Permissions required: bb.projects.delete</p></td></tr>-+<tr><td>UndeleteProject</td><td><a href="#bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</a></td>@@ -27707,7 +27715,7 @@ Permissions required: bb.projects.delete</p></td><td><p>Restores a soft-deleted project.Permissions required: bb.projects.undelete</p></td></tr>-+<tr><td>BatchDeleteProjects</td><td><a href="#bytebase.v1.BatchDeleteProjectsRequest">BatchDeleteProjectsRequest</a></td>@@ -27715,7 +27723,7 @@ Permissions required: bb.projects.undelete</p></td><td><p>Deletes multiple projects in a single operation.Permissions required: bb.projects.delete</p></td></tr>-+<tr><td>GetIamPolicy</td><td><a href="#bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</a></td>@@ -27723,7 +27731,7 @@ Permissions required: bb.projects.delete</p></td><td><p>Retrieves the IAM policy for a project.Permissions required: bb.projects.getIamPolicy</p></td></tr>-+<tr><td>SetIamPolicy</td><td><a href="#bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</a></td>@@ -27731,7 +27739,7 @@ Permissions required: bb.projects.getIamPolicy</p></td><td><p>Sets the IAM policy for a project.Permissions required: bb.projects.setIamPolicy</p></td></tr>-+<tr><td>AddWebhook</td><td><a href="#bytebase.v1.AddWebhookRequest">AddWebhookRequest</a></td>@@ -27739,7 +27747,7 @@ Permissions required: bb.projects.setIamPolicy</p></td><td><p>Adds a webhook to a project for notifications.Permissions required: bb.projects.update</p></td></tr>-+<tr><td>UpdateWebhook</td><td><a href="#bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</a></td>@@ -27747,7 +27755,7 @@ Permissions required: bb.projects.update</p></td><td><p>Updates an existing webhook configuration.Permissions required: bb.projects.update</p></td></tr>-+<tr><td>RemoveWebhook</td><td><a href="#bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</a></td>@@ -27755,7 +27763,7 @@ Permissions required: bb.projects.update</p></td><td><p>Removes a webhook from a project.Permissions required: bb.projects.update</p></td></tr>-+<tr><td>TestWebhook</td><td><a href="#bytebase.v1.TestWebhookRequest">TestWebhookRequest</a></td>@@ -27763,13 +27771,13 @@ Permissions required: bb.projects.update</p></td><td><p>Tests a webhook by sending a test notification.Permissions required: bb.projects.update</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -27781,193 +27789,193 @@ Permissions required: bb.projects.update</p></td></tr></thead><tbody>---+++<tr><td>GetProject</td><td>GET</td><td>/v1/{name=projects/*}</td><td></td></tr>----++++<tr><td>BatchGetProjects</td><td>GET</td><td>/v1/projects:batchGet</td><td></td></tr>----++++<tr><td>ListProjects</td><td>GET</td><td>/v1/projects</td><td></td></tr>----++++<tr><td>SearchProjects</td><td>POST</td><td>/v1/projects:search</td><td>*</td></tr>----++++<tr><td>CreateProject</td><td>POST</td><td>/v1/projects</td><td>project</td></tr>----++++<tr><td>UpdateProject</td><td>PATCH</td><td>/v1/{project.name=projects/*}</td><td>project</td></tr>----++++<tr><td>DeleteProject</td><td>DELETE</td><td>/v1/{name=projects/*}</td><td></td></tr>----++++<tr><td>UndeleteProject</td><td>POST</td><td>/v1/{name=projects/*}:undelete</td><td>*</td></tr>----++++<tr><td>BatchDeleteProjects</td><td>POST</td><td>/v1/projects:batchDelete</td><td>*</td></tr>----++++<tr><td>GetIamPolicy</td><td>GET</td><td>/v1/{resource=projects/*}:getIamPolicy</td><td></td></tr>----++++<tr><td>SetIamPolicy</td><td>POST</td><td>/v1/{resource=projects/*}:setIamPolicy</td><td>*</td></tr>----++++<tr><td>AddWebhook</td><td>POST</td><td>/v1/{project=projects/*}:addWebhook</td><td>*</td></tr>----++++<tr><td>UpdateWebhook</td><td>PATCH</td><td>/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook</td><td>webhook</td></tr>----++++<tr><td>RemoveWebhook</td><td>POST</td><td>/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook</td><td>*</td></tr>----++++<tr><td>TestWebhook</td><td>POST</td><td>/v1/{project=projects/*}:testWebhook</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/release_service.proto">v1/release_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CheckReleaseRequest">CheckReleaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project} </p></td></tr>-+<tr><td>release</td><td><a href="#bytebase.v1.Release">Release</a></td><td></td><td><p>The release to check. </p></td></tr>-+<tr><td>targets</td><td><a href="#string">string</a></td>@@ -27978,7 +27986,7 @@ Format:projects/{project}/databaseGroups/{databaseGroup}instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>custom_rules</td><td><a href="#string">string</a></td>@@ -27988,7 +27996,7 @@ Each rule should be a clear statement describing the desired schema constraint.Example: "All tables must have a primary key"Example: "VARCHAR columns should specify a maximum length" </p></td></tr>-+<tr><td>vcs_user</td><td><a href="#bytebase.v1.VCSUser">VCSUser</a></td>@@ -27996,69 +28004,69 @@ Example: "VARCHAR columns should specify a maximum length" </p></td><td><p>The non-bot VCS pull request or merge request creator observed by bytebase-release.If absent, Bytebase skips VCS user tracking and VCS user limit enforcement. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CheckReleaseResponse">CheckReleaseResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>results</td><td><a href="#bytebase.v1.CheckReleaseResponse.CheckResult">CheckReleaseResponse.CheckResult</a></td><td>repeated</td><td><p>The check results for each file and target combination. </p></td></tr>-+<tr><td>affected_rows</td><td><a href="#int64">int64</a></td><td></td><td><p>The total affected rows across all checks. </p></td></tr>-+<tr><td>risk_level</td><td><a href="#bytebase.v1.RiskLevel">RiskLevel</a></td><td></td><td><p>The aggregated risk level of the check. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CheckReleaseResponse.CheckResult">CheckReleaseResponse.CheckResult</h3><p>Check result for a single release file on a target database.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>file</td><td><a href="#string">string</a></td><td></td><td><p>The file path that is being checked. </p></td></tr>-+<tr><td>target</td><td><a href="#string">string</a></td>@@ -28066,59 +28074,59 @@ If absent, Bytebase skips VCS user tracking and VCS user limit enforcement. </p><td><p>The target that the check is performed on.Should be a database. Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>advices</td><td><a href="#bytebase.v1.Advice">Advice</a></td><td>repeated</td><td><p>The list of advice for the file and the target. </p></td></tr>-+<tr><td>affected_rows</td><td><a href="#int64">int64</a></td><td></td><td><p>The count of affected rows of the statement on the target. </p></td></tr>-+<tr><td>risk_level</td><td><a href="#bytebase.v1.RiskLevel">RiskLevel</a></td><td></td><td><p>The risk level of the statement on the target. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateReleaseRequest">CreateReleaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project} </p></td></tr>-+<tr><td>release</td><td><a href="#bytebase.v1.Release">Release</a></td><td></td><td><p>The release to create. </p></td></tr>-+<tr><td>release_id_template</td><td><a href="#string">string</a></td>@@ -28128,7 +28136,7 @@ Available variables: {date}, {time}, {timestamp}, {iteration}.Example: "release_{date}-RC{iteration}" generates "release_20260119-RC00".Default: "release_{date}-RC{iteration}". </p></td></tr>-+<tr><td>release_id_timezone</td><td><a href="#string">string</a></td>@@ -28137,24 +28145,24 @@ Default: "release_{date}-RC{iteration}". </p></td>Must be a valid IANA timezone (e.g., "UTC", "America/Los_Angeles").Default: "UTC". </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteReleaseRequest">DeleteReleaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -28162,103 +28170,103 @@ Default: "UTC". </p></td><td><p>The name of the release to delete.Format: projects/{project}/releases/{release} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetReleaseRequest">GetReleaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/releases/{release} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListReleaseCategoriesRequest">ListReleaseCategoriesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListReleaseCategoriesResponse">ListReleaseCategoriesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>categories</td><td><a href="#string">string</a></td><td>repeated</td><td><p>The unique category values in the project. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListReleasesRequest">ListReleasesRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -28267,7 +28275,7 @@ Format: projects/{project}/releases/{release} </p></td>If unspecified, at most 10 releases will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -28278,14 +28286,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListReleases` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted releases if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -28299,31 +28307,31 @@ Supported filters:For example:category == "webapp" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListReleasesResponse">ListReleasesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>releases</td><td><a href="#bytebase.v1.Release">Release</a></td><td>repeated</td><td><p>The releases from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -28331,31 +28339,31 @@ category == "webapp" </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Release">Release</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: projects/{project}/releases/{release} </p></td></tr>-+<tr><td>category</td><td><a href="#string">string</a></td>@@ -28363,80 +28371,80 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>Category extracted from release name (e.g., "webapp", "analytics").Set by Bytebase action during release creation. </p></td></tr>-+<tr><td>files</td><td><a href="#bytebase.v1.Release.File">Release.File</a></td><td>repeated</td><td><p>The SQL files included in the release. </p></td></tr>-+<tr><td>vcs_source</td><td><a href="#bytebase.v1.Release.VCSSource">Release.VCSSource</a></td><td></td><td><p>The version control source of the release. </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td><td></td><td><p>Format: users/[email protected] </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The lifecycle state of the release. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.Release.Type">Release.Type</a></td><td></td><td><p>The type of schema change for all files in this release. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Release.File">Release.File</h3><p>A SQL file in a release.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>path</td><td><a href="#string">string</a></td><td></td><td><p>The path of the file. e.g., `2.2/V0001_create_table.sql`. </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The version identifier for the file. </p></td></tr>-+<tr><td>sheet</td><td><a href="#string">string</a></td>@@ -28447,69 +28455,69 @@ For outputs, we always use `sheet`. `statement` is the preview of the sheet contThe sheet that holds the content.Format: projects/{project}/sheets/{sheet} </p></td></tr>-+<tr><td>statement</td><td><a href="#bytes">bytes</a></td><td></td><td><p>The raw SQL statement content. </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td><td></td><td><p>The SHA256 hash value of the sheet content or the statement. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Release.VCSSource">Release.VCSSource</h3><p>Version control system source information.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>vcs_type</td><td><a href="#bytebase.v1.VCSType">VCSType</a></td><td></td><td><p>The type of VCS. </p></td></tr>-+<tr><td>url</td><td><a href="#string">string</a></td><td></td><td><p>The url link to the e.g., GitHub commit or pull request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UndeleteReleaseRequest">UndeleteReleaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -28517,92 +28525,92 @@ Format: projects/{project}/sheets/{sheet} </p></td><td><p>The name of the deleted release.Format: projects/{project}/releases/{release} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateReleaseRequest">UpdateReleaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>release</td><td><a href="#bytebase.v1.Release">Release</a></td><td></td><td><p>The release to update. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to be updated. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.VCSUser">VCSUser</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>vcs_type</td><td><a href="#bytebase.v1.VCSType">VCSType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>user_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>user_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>display_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Release.Type">Release.Type</h3><p>The type of schema change.</p><table class="enum-table">@@ -28610,32 +28618,32 @@ Format: projects/{project}/releases/{release} </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>VERSIONED</td><td>1</td><td><p>Versioned schema migration.</p></td></tr>-+<tr><td>DECLARATIVE</td><td>2</td><td><p>Declarative schema definition.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ReleaseService">ReleaseService</h3><p>ReleaseService manages releases for coordinating deployments.</p><table class="enum-table">@@ -28643,7 +28651,7 @@ Format: projects/{project}/releases/{release} </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetRelease</td><td><a href="#bytebase.v1.GetReleaseRequest">GetReleaseRequest</a></td>@@ -28651,7 +28659,7 @@ Format: projects/{project}/releases/{release} </p></td><td><p>Retrieves a release by name.Permissions required: bb.releases.get</p></td></tr>-+<tr><td>ListReleases</td><td><a href="#bytebase.v1.ListReleasesRequest">ListReleasesRequest</a></td>@@ -28659,7 +28667,7 @@ Permissions required: bb.releases.get</p></td><td><p>Lists releases in a project.Permissions required: bb.releases.list</p></td></tr>-+<tr><td>CreateRelease</td><td><a href="#bytebase.v1.CreateReleaseRequest">CreateReleaseRequest</a></td>@@ -28667,7 +28675,7 @@ Permissions required: bb.releases.list</p></td><td><p>Creates a new release with SQL files.Permissions required: bb.releases.create</p></td></tr>-+<tr><td>UpdateRelease</td><td><a href="#bytebase.v1.UpdateReleaseRequest">UpdateReleaseRequest</a></td>@@ -28676,7 +28684,7 @@ Permissions required: bb.releases.create</p></td>Permissions required: bb.releases.updateWhen allow_missing=true, also requires: bb.releases.create</p></td></tr>-+<tr><td>DeleteRelease</td><td><a href="#bytebase.v1.DeleteReleaseRequest">DeleteReleaseRequest</a></td>@@ -28684,7 +28692,7 @@ When allow_missing=true, also requires: bb.releases.create</p></td><td><p>Deletes a release.Permissions required: bb.releases.delete</p></td></tr>-+<tr><td>UndeleteRelease</td><td><a href="#bytebase.v1.UndeleteReleaseRequest">UndeleteReleaseRequest</a></td>@@ -28692,7 +28700,7 @@ Permissions required: bb.releases.delete</p></td><td><p>Restores a deleted release.Permissions required: bb.releases.undelete</p></td></tr>-+<tr><td>CheckRelease</td><td><a href="#bytebase.v1.CheckReleaseRequest">CheckReleaseRequest</a></td>@@ -28700,7 +28708,7 @@ Permissions required: bb.releases.undelete</p></td><td><p>Validates a release by dry-running checks on target databases.Permissions required: bb.releases.check</p></td></tr>-+<tr><td>ListReleaseCategories</td><td><a href="#bytebase.v1.ListReleaseCategoriesRequest">ListReleaseCategoriesRequest</a></td>@@ -28708,13 +28716,13 @@ Permissions required: bb.releases.check</p></td><td><p>Lists all unique categories in a project.Permissions required: bb.releases.list</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -28726,133 +28734,133 @@ Permissions required: bb.releases.list</p></td></tr></thead><tbody>---+++<tr><td>GetRelease</td><td>GET</td><td>/v1/{name=projects/*/releases/*}</td><td></td></tr>----++++<tr><td>ListReleases</td><td>GET</td><td>/v1/{parent=projects/*}/releases</td><td></td></tr>----++++<tr><td>CreateRelease</td><td>POST</td><td>/v1/{parent=projects/*}/releases</td><td>release</td></tr>----++++<tr><td>UpdateRelease</td><td>PATCH</td><td>/v1/{release.name=projects/*/releases/*}</td><td>release</td></tr>----++++<tr><td>DeleteRelease</td><td>DELETE</td><td>/v1/{name=projects/*/releases/*}</td><td></td></tr>----++++<tr><td>UndeleteRelease</td><td>POST</td><td>/v1/{name=projects/*/releases/*}:undelete</td><td></td></tr>----++++<tr><td>CheckRelease</td><td>POST</td><td>/v1/{parent=projects/*}/releases:check</td><td>*</td></tr>----++++<tr><td>ListReleaseCategories</td><td>GET</td><td>/v1/{parent=projects/*}/releases:listCategories</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/review_config_service.proto">v1/review_config_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>review_config</td><td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td></td><td><p>The SQL review config to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -28860,24 +28868,24 @@ Permissions required: bb.releases.list</p></td><td><p>The name of the SQL review config to delete.Format: reviewConfigs/{reviewConfig} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -28885,55 +28893,55 @@ Format: reviewConfigs/{reviewConfig} </p></td><td><p>The name of the SQL review config to retrieve.Format: reviewConfigs/{reviewConfig} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</h3><p></p>---+++<h3 id="bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>review_configs</td><td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td>repeated</td><td><p>The SQL review configs from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ReviewConfig">ReviewConfig</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -28941,28 +28949,28 @@ Format: reviewConfigs/{reviewConfig} </p></td><td><p>The name of the SQL review config.Format: reviewConfigs/{reviewConfig} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The title of the review configuration. </p></td></tr>-+<tr><td>enabled</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the review configuration is enabled. </p></td></tr>-+<tr><td>rules</td><td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td><td>repeated</td><td><p>The SQL review rules to enforce. </p></td></tr>-+<tr><td>resources</td><td><a href="#string">string</a></td>@@ -28970,262 +28978,262 @@ Format: reviewConfigs/{reviewConfig} </p></td><td><p>Resources using the config.Format: {resource}/{resource id}, e.g., environments/test. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule">SQLReviewRule</h3><p>SQL review rule configuration. Check the SQL_REVIEW_RULES_DOCUMENTATION.md for details.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.SQLReviewRule.Type">SQLReviewRule.Type</a></td><td></td><td><p>The type of SQL review rule. </p></td></tr>-+<tr><td>level</td><td><a href="#bytebase.v1.SQLReviewRule.Level">SQLReviewRule.Level</a></td><td></td><td><p>The severity level of the rule. </p></td></tr>-+<tr><td>naming_payload</td><td><a href="#bytebase.v1.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>number_payload</td><td><a href="#bytebase.v1.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>string_array_payload</td><td><a href="#bytebase.v1.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>comment_convention_payload</td><td><a href="#bytebase.v1.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>string_payload</td><td><a href="#bytebase.v1.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>naming_case_payload</td><td><a href="#bytebase.v1.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</a></td><td></td><td><p> </p></td></tr>-+<tr><td>engine</td><td><a href="#bytebase.v1.Engine">Engine</a></td><td></td><td><p>The database engine this rule applies to. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>required</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>max_length</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>upper</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</h3><p>Payload message types for SQL review rules</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>max_length</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>format</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>number</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>list</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>review_config</td><td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>@@ -29234,14 +29242,14 @@ Format: {resource}/{resource id}, e.g., environments/test. </p></td>The name field is used to identify the SQL review config to update. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -29249,16 +29257,16 @@ The name field is used to identify the SQL review config to update. </p></td><td><p>If set to true, and the config is not found, a new config will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.SQLReviewRule.Level">SQLReviewRule.Level</h3><p>The severity level for SQL review rules.</p><table class="enum-table">@@ -29266,28 +29274,28 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>LEVEL_UNSPECIFIED</td><td>0</td><td><p>Unspecified level.</p></td></tr>-+<tr><td>ERROR</td><td>1</td><td><p>Rule violation is an error.</p></td></tr>-+<tr><td>WARNING</td><td>2</td><td><p>Rule violation is a warning.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.SQLReviewRule.Type">SQLReviewRule.Type</h3><p></p><table class="enum-table">@@ -29295,644 +29303,644 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>ENGINE_MYSQL_USE_INNODB</td><td>1</td><td><p></p></td></tr>-+<tr><td>NAMING_FULLY_QUALIFIED</td><td>2</td><td><p></p></td></tr>-+<tr><td>NAMING_TABLE</td><td>3</td><td><p></p></td></tr>-+<tr><td>NAMING_COLUMN</td><td>4</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_PK</td><td>5</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_UK</td><td>6</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_FK</td><td>7</td><td><p></p></td></tr>-+<tr><td>NAMING_INDEX_IDX</td><td>8</td><td><p></p></td></tr>-+<tr><td>NAMING_COLUMN_AUTO_INCREMENT</td><td>9</td><td><p></p></td></tr>-+<tr><td>NAMING_TABLE_NO_KEYWORD</td><td>10</td><td><p></p></td></tr>-+<tr><td>NAMING_IDENTIFIER_NO_KEYWORD</td><td>11</td><td><p></p></td></tr>-+<tr><td>NAMING_IDENTIFIER_CASE</td><td>12</td><td><p></p></td></tr>-+<tr><td>STATEMENT_SELECT_NO_SELECT_ALL</td><td>13</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_REQUIRE_SELECT</td><td>14</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_REQUIRE_UPDATE_DELETE</td><td>15</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE</td><td>16</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ON_DEL_CASCADE</td><td>17</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_RM_TBL_CASCADE</td><td>18</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_COMMIT</td><td>19</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_LIMIT</td><td>20</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ORDER_BY</td><td>21</td><td><p></p></td></tr>-+<tr><td>STATEMENT_MERGE_ALTER_TABLE</td><td>22</td><td><p></p></td></tr>-+<tr><td>STATEMENT_INSERT_ROW_LIMIT</td><td>23</td><td><p></p></td></tr>-+<tr><td>STATEMENT_INSERT_MUST_SPECIFY_COLUMN</td><td>24</td><td><p></p></td></tr>-+<tr><td>STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND</td><td>25</td><td><p></p></td></tr>-+<tr><td>STATEMENT_AFFECTED_ROW_LIMIT</td><td>26</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DML_DRY_RUN</td><td>27</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT</td><td>28</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADD_CHECK_NOT_VALID</td><td>29</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADD_FOREIGN_KEY_NOT_VALID</td><td>30</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_ADD_NOT_NULL</td><td>31</td><td><p></p></td></tr>-+<tr><td>STATEMENT_CREATE_SPECIFY_SCHEMA</td><td>33</td><td><p></p></td></tr>-+<tr><td>STATEMENT_CHECK_SET_ROLE_VARIABLE</td><td>34</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_NO_EQUAL_NULL</td><td>37</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS</td><td>38</td><td><p></p></td></tr>-+<tr><td>STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT</td><td>40</td><td><p></p></td></tr>-+<tr><td>STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION</td><td>43</td><td><p></p></td></tr>-+<tr><td>STATEMENT_NON_TRANSACTIONAL</td><td>45</td><td><p></p></td></tr>-+<tr><td>STATEMENT_ADD_COLUMN_WITHOUT_POSITION</td><td>46</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_OFFLINE_DDL</td><td>47</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_CROSS_DB_QUERIES</td><td>48</td><td><p></p></td></tr>-+<tr><td>STATEMENT_MAX_EXECUTION_TIME</td><td>49</td><td><p></p></td></tr>-+<tr><td>STATEMENT_REQUIRE_ALGORITHM_OPTION</td><td>50</td><td><p></p></td></tr>-+<tr><td>STATEMENT_REQUIRE_LOCK_OPTION</td><td>51</td><td><p></p></td></tr>-+<tr><td>STATEMENT_OBJECT_OWNER_CHECK</td><td>52</td><td><p></p></td></tr>-+<tr><td>TABLE_REQUIRE_PK</td><td>53</td><td><p></p></td></tr>-+<tr><td>TABLE_NO_FOREIGN_KEY</td><td>54</td><td><p></p></td></tr>-+<tr><td>TABLE_DROP_NAMING_CONVENTION</td><td>55</td><td><p></p></td></tr>-+<tr><td>TABLE_COMMENT</td><td>56</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_PARTITION</td><td>57</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_TRIGGER</td><td>58</td><td><p></p></td></tr>-+<tr><td>TABLE_NO_DUPLICATE_INDEX</td><td>59</td><td><p></p></td></tr>-+<tr><td>TABLE_TEXT_FIELDS_TOTAL_LENGTH</td><td>60</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_SET_CHARSET</td><td>61</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_DDL</td><td>62</td><td><p></p></td></tr>-+<tr><td>TABLE_DISALLOW_DML</td><td>63</td><td><p></p></td></tr>-+<tr><td>TABLE_LIMIT_SIZE</td><td>64</td><td><p></p></td></tr>-+<tr><td>TABLE_REQUIRE_CHARSET</td><td>65</td><td><p></p></td></tr>-+<tr><td>TABLE_REQUIRE_COLLATION</td><td>66</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRED</td><td>67</td><td><p></p></td></tr>-+<tr><td>COLUMN_NO_NULL</td><td>68</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_CHANGE_TYPE</td><td>69</td><td><p></p></td></tr>-+<tr><td>COLUMN_SET_DEFAULT_FOR_NOT_NULL</td><td>70</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_CHANGE</td><td>71</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_CHANGING_ORDER</td><td>72</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_DROP</td><td>73</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_DROP_IN_INDEX</td><td>74</td><td><p></p></td></tr>-+<tr><td>COLUMN_COMMENT</td><td>75</td><td><p></p></td></tr>-+<tr><td>COLUMN_AUTO_INCREMENT_MUST_INTEGER</td><td>76</td><td><p></p></td></tr>-+<tr><td>COLUMN_TYPE_DISALLOW_LIST</td><td>77</td><td><p></p></td></tr>-+<tr><td>COLUMN_DISALLOW_SET_CHARSET</td><td>78</td><td><p></p></td></tr>-+<tr><td>COLUMN_MAXIMUM_CHARACTER_LENGTH</td><td>79</td><td><p></p></td></tr>-+<tr><td>COLUMN_MAXIMUM_VARCHAR_LENGTH</td><td>80</td><td><p></p></td></tr>-+<tr><td>COLUMN_AUTO_INCREMENT_INITIAL_VALUE</td><td>81</td><td><p></p></td></tr>-+<tr><td>COLUMN_AUTO_INCREMENT_MUST_UNSIGNED</td><td>82</td><td><p></p></td></tr>-+<tr><td>COLUMN_CURRENT_TIME_COUNT_LIMIT</td><td>83</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRE_DEFAULT</td><td>84</td><td><p></p></td></tr>-+<tr><td>COLUMN_DEFAULT_DISALLOW_VOLATILE</td><td>85</td><td><p></p></td></tr>-+<tr><td>COLUMN_ADD_NOT_NULL_REQUIRE_DEFAULT</td><td>86</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRE_CHARSET</td><td>87</td><td><p></p></td></tr>-+<tr><td>COLUMN_REQUIRE_COLLATION</td><td>88</td><td><p></p></td></tr>-+<tr><td>SCHEMA_BACKWARD_COMPATIBILITY</td><td>89</td><td><p></p></td></tr>-+<tr><td>DATABASE_DROP_EMPTY_DATABASE</td><td>90</td><td><p></p></td></tr>-+<tr><td>INDEX_NO_DUPLICATE_COLUMN</td><td>91</td><td><p></p></td></tr>-+<tr><td>INDEX_KEY_NUMBER_LIMIT</td><td>92</td><td><p></p></td></tr>-+<tr><td>INDEX_PK_TYPE_LIMIT</td><td>93</td><td><p></p></td></tr>-+<tr><td>INDEX_TYPE_NO_BLOB</td><td>94</td><td><p></p></td></tr>-+<tr><td>INDEX_TOTAL_NUMBER_LIMIT</td><td>95</td><td><p></p></td></tr>-+<tr><td>INDEX_PRIMARY_KEY_TYPE_ALLOWLIST</td><td>96</td><td><p></p></td></tr>-+<tr><td>INDEX_CREATE_CONCURRENTLY</td><td>97</td><td><p></p></td></tr>-+<tr><td>INDEX_TYPE_ALLOW_LIST</td><td>98</td><td><p></p></td></tr>-+<tr><td>INDEX_NOT_REDUNDANT</td><td>99</td><td><p></p></td></tr>-+<tr><td>SYSTEM_CHARSET_ALLOWLIST</td><td>100</td><td><p></p></td></tr>-+<tr><td>SYSTEM_COLLATION_ALLOWLIST</td><td>101</td><td><p></p></td></tr>-+<tr><td>SYSTEM_COMMENT_LENGTH</td><td>102</td><td><p></p></td></tr>-+<tr><td>SYSTEM_PROCEDURE_DISALLOW_CREATE</td><td>103</td><td><p></p></td></tr>-+<tr><td>SYSTEM_EVENT_DISALLOW_CREATE</td><td>104</td><td><p></p></td></tr>-+<tr><td>SYSTEM_VIEW_DISALLOW_CREATE</td><td>105</td><td><p></p></td></tr>-+<tr><td>SYSTEM_FUNCTION_DISALLOW_CREATE</td><td>106</td><td><p></p></td></tr>-+<tr><td>SYSTEM_FUNCTION_DISALLOWED_LIST</td><td>107</td><td><p></p></td></tr>-+<tr><td>ADVICE_ONLINE_MIGRATION</td><td>108</td><td><p></p></td></tr>-+<tr><td>BUILTIN_PRIOR_BACKUP_CHECK</td><td>109</td><td><p></p></td></tr>-+<tr><td>BUILTIN_WALK_THROUGH_CHECK</td><td>110</td><td><p></p></td></tr>-+<tr><td>STATEMENT_DISALLOW_TRUNCATE</td><td>111</td><td><p></p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ReviewConfigService">ReviewConfigService</h3><p>ReviewConfigService manages approval flow configurations.</p><table class="enum-table">@@ -29940,7 +29948,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>CreateReviewConfig</td><td><a href="#bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</a></td>@@ -29948,7 +29956,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>Creates a new SQL review configuration.Permissions required: bb.reviewConfigs.create</p></td></tr>-+<tr><td>ListReviewConfigs</td><td><a href="#bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</a></td>@@ -29956,7 +29964,7 @@ Permissions required: bb.reviewConfigs.create</p></td><td><p>Lists all SQL review configurations.Permissions required: bb.reviewConfigs.list</p></td></tr>-+<tr><td>GetReviewConfig</td><td><a href="#bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</a></td>@@ -29964,7 +29972,7 @@ Permissions required: bb.reviewConfigs.list</p></td><td><p>Retrieves a SQL review configuration by name.Permissions required: bb.reviewConfigs.get</p></td></tr>-+<tr><td>UpdateReviewConfig</td><td><a href="#bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</a></td>@@ -29973,7 +29981,7 @@ Permissions required: bb.reviewConfigs.get</p></td>Permissions required: bb.reviewConfigs.updateWhen allow_missing=true, also requires: bb.reviewConfigs.create</p></td></tr>-+<tr><td>DeleteReviewConfig</td><td><a href="#bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</a></td>@@ -29981,13 +29989,13 @@ When allow_missing=true, also requires: bb.reviewConfigs.create</p></td><td><p>Deletes a SQL review configuration.Permissions required: bb.reviewConfigs.delete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -29999,79 +30007,79 @@ Permissions required: bb.reviewConfigs.delete</p></td></tr></thead><tbody>---+++<tr><td>CreateReviewConfig</td><td>POST</td><td>/v1/reviewConfigs</td><td>review_config</td></tr>----++++<tr><td>ListReviewConfigs</td><td>GET</td><td>/v1/reviewConfigs</td><td></td></tr>----++++<tr><td>GetReviewConfig</td><td>GET</td><td>/v1/{name=reviewConfigs/*}</td><td></td></tr>----++++<tr><td>UpdateReviewConfig</td><td>PATCH</td><td>/v1/{review_config.name=reviewConfigs/*}</td><td>review_config</td></tr>----++++<tr><td>DeleteReviewConfig</td><td>DELETE</td><td>/v1/{name=reviewConfigs/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/revision_service.proto">v1/revision_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchCreateRevisionsRequest">BatchCreateRevisionsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -30079,7 +30087,7 @@ Permissions required: bb.reviewConfigs.delete</p></td><td><p>The parent resource shared by all revisions being created.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>requests</td><td><a href="#bytebase.v1.CreateRevisionRequest">CreateRevisionRequest</a></td>@@ -30087,79 +30095,79 @@ Format: instances/{instance}/databases/{database} </p></td><td><p>The request message specifying the revisions to create.A maximum of 100 revisions can be created in a batch. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchCreateRevisionsResponse">BatchCreateRevisionsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>revisions</td><td><a href="#bytebase.v1.Revision">Revision</a></td><td>repeated</td><td><p>The created revisions. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateRevisionRequest">CreateRevisionRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td><td></td><td><p>Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>revision</td><td><a href="#bytebase.v1.Revision">Revision</a></td><td></td><td><p>The revision to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteRevisionRequest">DeleteRevisionRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -30167,24 +30175,24 @@ A maximum of 100 revisions can be created in a batch. </p></td><td><p>The name of the revision to delete.Format: instances/{instance}/databases/{database}/revisions/{revision} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetRevisionRequest">GetRevisionRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -30192,24 +30200,24 @@ Format: instances/{instance}/databases/{database}/revisions/{revision} </p></td><td><p>The name of the revision.Format: instances/{instance}/databases/{database}/revisions/{revision} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListRevisionsRequest">ListRevisionsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -30217,7 +30225,7 @@ Format: instances/{instance}/databases/{database}/revisions/{revision} </p></td><td><p>The parent of the revisions.Format: instances/{instance}/databases/{database} </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -30226,7 +30234,7 @@ Format: instances/{instance}/databases/{database} </p></td>than this value. If unspecified, at most 10 revisions will be returned. Themaximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -30237,38 +30245,38 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListRevisions` mustmatch the call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether to include deleted revisions in the results. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListRevisionsResponse">ListRevisionsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>revisions</td><td><a href="#bytebase.v1.Revision">Revision</a></td><td>repeated</td><td><p>The revisions from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -30276,31 +30284,31 @@ match the call that provided the page token. </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Revision">Revision</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: instances/{instance}/databases/{database}/revisions/{revision} </p></td></tr>-+<tr><td>release</td><td><a href="#string">string</a></td>@@ -30308,14 +30316,14 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>Format: projects/{project}/releases/{release}Can be empty. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>deleter</td><td><a href="#string">string</a></td>@@ -30323,14 +30331,14 @@ Can be empty. </p></td><td><p>Format: users/[email protected]Can be empty. </p></td></tr>-+<tr><td>delete_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>Can be empty. </p></td></tr>-+<tr><td>file</td><td><a href="#string">string</a></td>@@ -30339,14 +30347,14 @@ Can be empty. </p></td>The file_path segment is URL-encoded since file paths may contain "/".Can be empty. </p></td></tr>-+<tr><td>version</td><td><a href="#string">string</a></td><td></td><td><p>The schema version string for this revision. </p></td></tr>-+<tr><td>sheet</td><td><a href="#string">string</a></td>@@ -30354,14 +30362,14 @@ Can be empty. </p></td><td><p>The sheet that holds the content.Format: projects/{project}/sheets/{sheet} </p></td></tr>-+<tr><td>sheet_sha256</td><td><a href="#string">string</a></td><td></td><td><p>The SHA256 hash value of the sheet. </p></td></tr>-+<tr><td>task_run</td><td><a href="#string">string</a></td>@@ -30370,23 +30378,23 @@ Format: projects/{project}/sheets/{sheet} </p></td>Can be empty.Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.Revision.Type">Revision.Type</a></td><td></td><td><p>The type of the revision. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Revision.Type">Revision.Type</h3><p>The type of schema revision.</p><table class="enum-table">@@ -30394,32 +30402,32 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/task<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified type.</p></td></tr>-+<tr><td>VERSIONED</td><td>1</td><td><p>Versioned schema migration.</p></td></tr>-+<tr><td>DECLARATIVE</td><td>2</td><td><p>Declarative schema definition.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RevisionService">RevisionService</h3><p>RevisionService manages schema revision history.</p><table class="enum-table">@@ -30427,7 +30435,7 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/task<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>ListRevisions</td><td><a href="#bytebase.v1.ListRevisionsRequest">ListRevisionsRequest</a></td>@@ -30435,7 +30443,7 @@ Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/task<td><p>Lists schema revisions for a database.Permissions required: bb.revisions.list</p></td></tr>-+<tr><td>GetRevision</td><td><a href="#bytebase.v1.GetRevisionRequest">GetRevisionRequest</a></td>@@ -30443,7 +30451,7 @@ Permissions required: bb.revisions.list</p></td><td><p>Retrieves a schema revision by name.Permissions required: bb.revisions.get</p></td></tr>-+<tr><td>BatchCreateRevisions</td><td><a href="#bytebase.v1.BatchCreateRevisionsRequest">BatchCreateRevisionsRequest</a></td>@@ -30451,7 +30459,7 @@ Permissions required: bb.revisions.get</p></td><td><p>Creates multiple schema revisions in a single operation.Permissions required: bb.revisions.create</p></td></tr>-+<tr><td>DeleteRevision</td><td><a href="#bytebase.v1.DeleteRevisionRequest">DeleteRevisionRequest</a></td>@@ -30459,13 +30467,13 @@ Permissions required: bb.revisions.create</p></td><td><p>Deletes a schema revision.Permissions required: bb.revisions.delete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -30477,76 +30485,76 @@ Permissions required: bb.revisions.delete</p></td></tr></thead><tbody>---+++<tr><td>ListRevisions</td><td>GET</td><td>/v1/{parent=instances/*/databases/*}/revisions</td><td></td></tr>----++++<tr><td>GetRevision</td><td>GET</td><td>/v1/{name=instances/*/databases/*/revisions/*}</td><td></td></tr>----++++<tr><td>BatchCreateRevisions</td><td>POST</td><td>/v1/{parent=instances/*/databases/*}/revisions:batchCreate</td><td>*</td></tr>----++++<tr><td>DeleteRevision</td><td>DELETE</td><td>/v1/{name=instances/*/databases/*/revisions/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#bytebase.v1.Role">Role</a></td><td></td><td><p>The role to create. </p></td></tr>-+<tr><td>role_id</td><td><a href="#string">string</a></td>@@ -30557,24 +30565,24 @@ of the role's resource name.This value should be 4-63 characters, and valid charactersare /[a-z][A-Z][0-9]/. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -30582,24 +30590,24 @@ are /[a-z][A-Z][0-9]/. </p></td><td><p>The name of the role to delete.Format: roles/{role} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetRoleRequest">GetRoleRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -30607,121 +30615,121 @@ Format: roles/{role} </p></td><td><p>The name of the role to retrieve.Format: roles/{role} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3><p></p>---+++<h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>roles</td><td><a href="#bytebase.v1.Role">Role</a></td><td>repeated</td><td><p>The roles from the specified request. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Role">Role</h3><p>Role defines a set of permissions that can be assigned to users.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Resource name. Format: roles/{role} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>Human-readable title. </p></td></tr>-+<tr><td>description</td><td><a href="#string">string</a></td><td></td><td><p>Optional description of the role. </p></td></tr>-+<tr><td>permissions</td><td><a href="#string">string</a></td><td>repeated</td><td><p>List of permission identifiers granted by this role. </p></td></tr>-+<tr><td>type</td><td><a href="#bytebase.v1.Role.Type">Role.Type</a></td><td></td><td><p>Role type indicating if it's built-in or custom. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>role</td><td><a href="#bytebase.v1.Role">Role</a></td><td></td><td><p>The role to update. </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p>The list of fields to update. </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -30729,16 +30737,16 @@ Format: roles/{role} </p></td><td><p>If set to true, and the role is not found, a new role will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Role.Type">Role.Type</h3><p></p><table class="enum-table">@@ -30746,32 +30754,32 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>BUILT_IN</td><td>1</td><td><p>System-defined role that cannot be modified.</p></td></tr>-+<tr><td>CUSTOM</td><td>2</td><td><p>User-defined role that can be modified.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.RoleService">RoleService</h3><p>RoleService manages workspace roles and permissions.</p><table class="enum-table">@@ -30779,7 +30787,7 @@ In this situation, `update_mask` is ignored. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>ListRoles</td><td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>@@ -30787,7 +30795,7 @@ In this situation, `update_mask` is ignored. </p></td><td><p>Lists roles in the workspace.Permissions required: bb.roles.list</p></td></tr>-+<tr><td>GetRole</td><td><a href="#bytebase.v1.GetRoleRequest">GetRoleRequest</a></td>@@ -30795,7 +30803,7 @@ Permissions required: bb.roles.list</p></td><td><p>Retrieves a role by name.Permissions required: bb.roles.get</p></td></tr>-+<tr><td>CreateRole</td><td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>@@ -30803,7 +30811,7 @@ Permissions required: bb.roles.get</p></td><td><p>Creates a new custom role.Permissions required: bb.roles.create</p></td></tr>-+<tr><td>UpdateRole</td><td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>@@ -30812,7 +30820,7 @@ Permissions required: bb.roles.create</p></td>Permissions required: bb.roles.updateWhen allow_missing=true, also requires: bb.roles.create</p></td></tr>-+<tr><td>DeleteRole</td><td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>@@ -30820,13 +30828,13 @@ When allow_missing=true, also requires: bb.roles.create</p></td><td><p>Deletes a custom role.Permissions required: bb.roles.delete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -30838,79 +30846,79 @@ Permissions required: bb.roles.delete</p></td></tr></thead><tbody>---+++<tr><td>ListRoles</td><td>GET</td><td>/v1/roles</td><td></td></tr>----++++<tr><td>GetRole</td><td>GET</td><td>/v1/{name=roles/*}</td><td></td></tr>----++++<tr><td>CreateRole</td><td>POST</td><td>/v1/roles</td><td>role</td></tr>----++++<tr><td>UpdateRole</td><td>PATCH</td><td>/v1/{role.name=roles/*}</td><td>role</td></tr>----++++<tr><td>DeleteRole</td><td>DELETE</td><td>/v1/{name=roles/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/service_account_service.proto">v1/service_account_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreateServiceAccountRequest">CreateServiceAccountRequest</h3><p>Request message for creating a service account.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -30918,7 +30926,7 @@ Permissions required: bb.roles.delete</p></td><td><p>The parent resource where this service account will be created.Format: projects/{project} for project-level, workspaces/{id} for workspace-level. </p></td></tr>-+<tr><td>service_account_id</td><td><a href="#string">string</a></td>@@ -30927,31 +30935,31 @@ Format: projects/{project} for project-level, workspaces/{id} for workspace-leveof the service account's email in the format: {service_account_id}@service.bytebase.comor {service_account_id}@{project-id}.service.bytebase.com </p></td></tr>-+<tr><td>service_account</td><td><a href="#bytebase.v1.ServiceAccount">ServiceAccount</a></td><td></td><td><p>The service account to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteServiceAccountRequest">DeleteServiceAccountRequest</h3><p>Request message for deleting a service account.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -30959,24 +30967,24 @@ or {service_account_id}@{project-id}.service.bytebase.com </p></td><td><p>The name of the service account to delete.Format: serviceAccounts/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetServiceAccountRequest">GetServiceAccountRequest</h3><p>Request message for getting a service account.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -30984,24 +30992,24 @@ Format: serviceAccounts/{email} </p></td><td><p>The name of the service account to retrieve.Format: serviceAccounts/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListServiceAccountsRequest">ListServiceAccountsRequest</h3><p>Request message for listing service accounts.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -31009,7 +31017,7 @@ Format: serviceAccounts/{email} </p></td><td><p>The parent resource.Format: projects/{project} for project-level, workspaces/{id} for workspace-level. </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -31019,7 +31027,7 @@ this value.If unspecified, at most 10 service accounts will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -31030,14 +31038,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListServiceAccounts` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted service accounts if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -31057,31 +31065,31 @@ state == "DELETED"email == "[email protected]"email.contains("ed") </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListServiceAccountsResponse">ListServiceAccountsResponse</h3><p>Response message for listing service accounts.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>service_accounts</td><td><a href="#bytebase.v1.ServiceAccount">ServiceAccount</a></td><td>repeated</td><td><p>The service accounts from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -31089,24 +31097,24 @@ email.contains("ed") </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ServiceAccount">ServiceAccount</h3><p>ServiceAccount represents an API integration account.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -31114,14 +31122,14 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the service account.Format: serviceAccounts/{email} </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The state of the service account. </p></td></tr>-+<tr><td>email</td><td><a href="#string">string</a></td>@@ -31130,45 +31138,45 @@ Format: serviceAccounts/{email} </p></td>For workspace-level: {name}@service.bytebase.comFor project-level: {name}@{project-id}.service.bytebase.com </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title of the service account. </p></td></tr>-+<tr><td>service_key</td><td><a href="#string">string</a></td><td></td><td><p>The service key for authentication. Only returned on creation or key rotation. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The timestamp when the service account was created. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UndeleteServiceAccountRequest">UndeleteServiceAccountRequest</h3><p>Request message for restoring a deleted service account.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -31176,24 +31184,24 @@ For project-level: {name}@{project-id}.service.bytebase.com </p></td><td><p>The name of the deleted service account.Format: serviceAccounts/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateServiceAccountRequest">UpdateServiceAccountRequest</h3><p>Request message for updating a service account.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>service_account</td><td><a href="#bytebase.v1.ServiceAccount">ServiceAccount</a></td>@@ -31203,7 +31211,7 @@ Format: serviceAccounts/{email} </p></td>The service account's `name` field is used to identify the service account to update.Format: serviceAccounts/{email} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>@@ -31211,20 +31219,20 @@ Format: serviceAccounts/{email} </p></td><td><p>The list of fields to update.Supported fields: title, service_key (triggers key rotation) </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.ServiceAccountService">ServiceAccountService</h3><p>ServiceAccountService manages service accounts for API integrations.</p><table class="enum-table">@@ -31232,7 +31240,7 @@ Supported fields: title, service_key (triggers key rotation) </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>CreateServiceAccount</td><td><a href="#bytebase.v1.CreateServiceAccountRequest">CreateServiceAccountRequest</a></td>@@ -31241,7 +31249,7 @@ Supported fields: title, service_key (triggers key rotation) </p></td>For workspace-level: parent is workspaces/{id}, permission bb.serviceAccounts.create on workspace.For project-level: parent is projects/{project}, permission bb.serviceAccounts.create on project.</p></td></tr>-+<tr><td>GetServiceAccount</td><td><a href="#bytebase.v1.GetServiceAccountRequest">GetServiceAccountRequest</a></td>@@ -31249,7 +31257,7 @@ For project-level: parent is projects/{project}, permission bb.serviceAccounts.c<td><p>Gets a service account by name.Permissions required: bb.serviceAccounts.get</p></td></tr>-+<tr><td>ListServiceAccounts</td><td><a href="#bytebase.v1.ListServiceAccountsRequest">ListServiceAccountsRequest</a></td>@@ -31258,7 +31266,7 @@ Permissions required: bb.serviceAccounts.get</p></td>For workspace-level: parent is workspaces/{id}, permission bb.serviceAccounts.list on workspace.For project-level: parent is projects/{project}, permission bb.serviceAccounts.list on project.</p></td></tr>-+<tr><td>UpdateServiceAccount</td><td><a href="#bytebase.v1.UpdateServiceAccountRequest">UpdateServiceAccountRequest</a></td>@@ -31266,7 +31274,7 @@ For project-level: parent is projects/{project}, permission bb.serviceAccounts.l<td><p>Updates a service account.Permissions required: bb.serviceAccounts.update</p></td></tr>-+<tr><td>DeleteServiceAccount</td><td><a href="#bytebase.v1.DeleteServiceAccountRequest">DeleteServiceAccountRequest</a></td>@@ -31274,7 +31282,7 @@ Permissions required: bb.serviceAccounts.update</p></td><td><p>Deletes a service account.Permissions required: bb.serviceAccounts.delete</p></td></tr>-+<tr><td>UndeleteServiceAccount</td><td><a href="#bytebase.v1.UndeleteServiceAccountRequest">UndeleteServiceAccountRequest</a></td>@@ -31282,13 +31290,13 @@ Permissions required: bb.serviceAccounts.delete</p></td><td><p>Restores a deleted service account.Permissions required: bb.serviceAccounts.undelete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -31300,103 +31308,103 @@ Permissions required: bb.serviceAccounts.undelete</p></td></tr></thead><tbody>---+++<tr><td>CreateServiceAccount</td><td>POST</td><td>/v1/{parent=projects/*}/serviceAccounts</td><td>service_account</td></tr>-+<tr><td>CreateServiceAccount</td><td>POST</td><td>/v1/{parent=workspaces/*}/serviceAccounts</td><td>service_account</td></tr>----++++<tr><td>GetServiceAccount</td><td>GET</td><td>/v1/{name=serviceAccounts/*}</td><td></td></tr>----++++<tr><td>ListServiceAccounts</td><td>GET</td><td>/v1/{parent=projects/*}/serviceAccounts</td><td></td></tr>-+<tr><td>ListServiceAccounts</td><td>GET</td><td>/v1/{parent=workspaces/*}/serviceAccounts</td><td></td></tr>----++++<tr><td>UpdateServiceAccount</td><td>PATCH</td><td>/v1/{service_account.name=serviceAccounts/*}</td><td>service_account</td></tr>----++++<tr><td>DeleteServiceAccount</td><td>DELETE</td><td>/v1/{name=serviceAccounts/*}</td><td></td></tr>----++++<tr><td>UndeleteServiceAccount</td><td>POST</td><td>/v1/{name=serviceAccounts/*}:undelete</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/sheet_service.proto">v1/sheet_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchCreateSheetsRequest">BatchCreateSheetsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -31404,55 +31412,55 @@ Permissions required: bb.serviceAccounts.undelete</p></td><td><p>The parent resource where all sheets will be created.Format: projects/{project} </p></td></tr>-+<tr><td>requests</td><td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchCreateSheetsResponse">BatchCreateSheetsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>sheets</td><td><a href="#bytebase.v1.Sheet">Sheet</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateSheetRequest">CreateSheetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -31460,31 +31468,31 @@ Format: projects/{project} </p></td><td><p>The parent resource where this sheet will be created.Format: projects/{project} </p></td></tr>-+<tr><td>sheet</td><td><a href="#bytebase.v1.Sheet">Sheet</a></td><td></td><td><p>The sheet to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetSheetRequest">GetSheetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -31492,31 +31500,31 @@ Format: projects/{project} </p></td><td><p>The name of the sheet to retrieve.Format: projects/{project}/sheets/{sheet} </p></td></tr>-+<tr><td>raw</td><td><a href="#bool">bool</a></td><td></td><td><p>By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Sheet">Sheet</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -31525,7 +31533,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>Format: projects/{project}/sheets/{sheet}The sheet ID is generated by the server on creation and cannot be changed. </p></td></tr>-+<tr><td>content</td><td><a href="#bytes">bytes</a></td>@@ -31534,27 +31542,27 @@ The sheet ID is generated by the server on creation and cannot be changed. </p><By default, it will be cut off, if it doesn't match the `content_size`, you canset the `raw` to true in GetSheet request to retrieve the full content. </p></td></tr>-+<tr><td>content_size</td><td><a href="#int64">int64</a></td><td></td><td><p>content_size is the full size of the content, may not match the size of the `content` field. </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.SheetService">SheetService</h3><p>SheetService manages SQL scripts and saved queries.</p><table class="enum-table">@@ -31562,7 +31570,7 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>CreateSheet</td><td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>@@ -31570,7 +31578,7 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td<td><p>Creates a new SQL sheet.Permissions required: bb.sheets.create</p></td></tr>-+<tr><td>BatchCreateSheets</td><td><a href="#bytebase.v1.BatchCreateSheetsRequest">BatchCreateSheetsRequest</a></td>@@ -31578,7 +31586,7 @@ Permissions required: bb.sheets.create</p></td><td><p>Creates multiple SQL sheets in a single operation.Permissions required: bb.sheets.create</p></td></tr>-+<tr><td>GetSheet</td><td><a href="#bytebase.v1.GetSheetRequest">GetSheetRequest</a></td>@@ -31586,13 +31594,13 @@ Permissions required: bb.sheets.create</p></td><td><p>Retrieves a SQL sheet by name.Permissions required: bb.sheets.get</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -31604,59 +31612,59 @@ Permissions required: bb.sheets.get</p></td></tr></thead><tbody>---+++<tr><td>CreateSheet</td><td>POST</td><td>/v1/{parent=projects/*}/sheets</td><td>sheet</td></tr>----++++<tr><td>BatchCreateSheets</td><td>POST</td><td>/v1/{parent=projects/*}/sheets:batchCreate</td><td>*</td></tr>----++++<tr><td>GetSheet</td><td>GET</td><td>/v1/{name=projects/*/sheets/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/subscription_service.proto">v1/subscription_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CancelPurchaseRequest">CancelPurchaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>feedback</td><td><a href="#string">string</a></td>@@ -31666,163 +31674,163 @@ Valid Stripe values: "customer_service", "low_quality", "mis"switched_service", "too_complex", "too_expensive", "unused", "other".Required. </p></td></tr>-+<tr><td>comment</td><td><a href="#string">string</a></td><td></td><td><p>Optional free-form comment. Max 500 chars (Stripe limit). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreatePurchaseRequest">CreatePurchaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plan</td><td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>interval</td><td><a href="#bytebase.v1.BillingInterval">BillingInterval</a></td><td></td><td><p> </p></td></tr>-+<tr><td>seats</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ExportVCSProviderUsersRequest">ExportVCSProviderUsersRequest</h3><p></p>---+++<h3 id="bytebase.v1.GetPaymentInfoRequest">GetPaymentInfoRequest</h3><p></p>---+++<h3 id="bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</h3><p></p>---+++<h3 id="bytebase.v1.ListPurchasePlansRequest">ListPurchasePlansRequest</h3><p></p>---+++<h3 id="bytebase.v1.ListPurchasePlansResponse">ListPurchasePlansResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plans</td><td><a href="#bytebase.v1.PurchasePlan">PurchasePlan</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PaymentInfo">PaymentInfo</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>total_price</td><td><a href="#string">string</a></td><td></td><td><p>Total amount paid for the current billing period, in the smallest currency unit (e.g. cents). </p></td></tr>-+<tr><td>currency</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>period_start</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>period_end</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>invoice_url</td><td><a href="#string">string</a></td><td></td><td><p>Stripe Billing Portal URL for invoice management. </p></td></tr>-+<tr><td>cancel_at_period_end</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether the subscription is scheduled to cancel at the end of the current billing period. </p></td></tr>-+<tr><td>next_period_price</td><td><a href="#string">string</a></td>@@ -31830,259 +31838,259 @@ Required. </p></td><td><p>Amount that will be charged at the next renewal, in the smallest currency unit (e.g. cents).Empty when the subscription will not renew (e.g. scheduled to cancel at period end). </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanConfig">PlanConfig</h3><p>PlanConfig represents the configuration for all plans loaded from plan.yaml</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plans</td><td><a href="#bytebase.v1.PlanLimitConfig">PlanLimitConfig</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>instance_features</td><td><a href="#bytebase.v1.PlanFeature">PlanFeature</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PlanLimitConfig">PlanLimitConfig</h3><p>PlanLimitConfig represents a single plan's configuration</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>maximum_instance_count</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>maximum_seat_count</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>features</td><td><a href="#bytebase.v1.PlanFeature">PlanFeature</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PurchaseBillingMethod">PurchaseBillingMethod</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>interval</td><td><a href="#bytebase.v1.BillingInterval">BillingInterval</a></td><td></td><td><p> </p></td></tr>-+<tr><td>discount</td><td><a href="#bytebase.v1.PurchaseDiscount">PurchaseDiscount</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PurchaseDiscount">PurchaseDiscount</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.PurchaseDiscount.Type">PurchaseDiscount.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>value</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PurchasePlan">PurchasePlan</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>self_service_purchase</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>additionals</td><td><a href="#bytebase.v1.PurchasePlanAdditional">PurchasePlanAdditional</a></td><td>repeated</td><td><p> </p></td></tr>-+<tr><td>billing_methods</td><td><a href="#bytebase.v1.PurchaseBillingMethod">PurchaseBillingMethod</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PurchasePlanAdditional">PurchasePlanAdditional</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>type</td><td><a href="#bytebase.v1.PurchasePlanAdditional.Type">PurchasePlanAdditional.Type</a></td><td></td><td><p> </p></td></tr>-+<tr><td>unit_price</td><td><a href="#int32">int32</a></td><td></td><td><p>Price in USD cents per month. </p></td></tr>-+<tr><td>free_count</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>minimum_count</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>maximum_count</td><td><a href="#int32">int32</a></td><td></td><td><p>-1 means unlimited. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.PurchaseResponse">PurchaseResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>payment_url</td><td><a href="#string">string</a></td>@@ -32090,220 +32098,220 @@ Empty when the subscription will not renew (e.g. scheduled to cancel at period e<td><p>If set, redirect to this Stripe Checkout URL.If empty, the update was applied directly using the existing payment method. </p></td></tr>-+<tr><td>session_id</td><td><a href="#string">string</a></td><td></td><td><p>Stripe Checkout Session ID. Used to verify the session after redirect. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Subscription">Subscription</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plan</td><td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>seats</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>instances</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>active_instances</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>expires_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>-+<tr><td>trialing</td><td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>-+<tr><td>org_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>ha</td><td><a href="#bool">bool</a></td><td></td><td><p>Whether high availability (multiple replicas) is enabled. </p></td></tr>-+<tr><td>etag</td><td><a href="#string">string</a></td><td></td><td><p>Etag for optimistic concurrency on purchase updates. Only set in SaaS mode. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdatePurchaseRequest">UpdatePurchaseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>plan</td><td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td><td><p> </p></td></tr>-+<tr><td>interval</td><td><a href="#bytebase.v1.BillingInterval">BillingInterval</a></td><td></td><td><p> </p></td></tr>-+<tr><td>seats</td><td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>-+<tr><td>etag</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UploadLicenseRequest">UploadLicenseRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>license</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.VerifyCheckoutSessionRequest">VerifyCheckoutSessionRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>session_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.VerifyCheckoutSessionResponse">VerifyCheckoutSessionResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>status</td><td><a href="#string">string</a></td><td></td><td><p>Stripe Checkout Session status: "complete", "expired", or "open". </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.BillingInterval">BillingInterval</h3><p></p><table class="enum-table">@@ -32311,28 +32319,28 @@ If empty, the update was applied directly using the existing payment method. </p<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>BILLING_INTERVAL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>MONTH</td><td>1</td><td><p></p></td></tr>-+<tr><td>YEAR</td><td>2</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.PlanFeature">PlanFeature</h3><p>PlanFeature represents the available features in Bytebase</p><table class="enum-table">@@ -32340,442 +32348,442 @@ If empty, the update was applied directly using the existing payment method. </p<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>FEATURE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATABASE_CHANGE</td><td>1</td><td><p>Database Change Management</p></td></tr>-+<tr><td>FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL</td><td>2</td><td><p></p></td></tr>-+<tr><td>FEATURE_DECLARATIVE_SCHEMA_MIGRATION</td><td>3</td><td><p></p></td></tr>-+<tr><td>FEATURE_COMPARE_AND_SYNC_SCHEMA</td><td>4</td><td><p></p></td></tr>-+<tr><td>FEATURE_ONLINE_SCHEMA_CHANGE</td><td>5</td><td><p></p></td></tr>-+<tr><td>FEATURE_PRE_DEPLOYMENT_SQL_REVIEW</td><td>6</td><td><p></p></td></tr>-+<tr><td>FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES</td><td>7</td><td><p></p></td></tr>-+<tr><td>FEATURE_ONE_CLICK_DATA_ROLLBACK</td><td>8</td><td><p></p></td></tr>-+<tr><td>FEATURE_MULTI_DATABASE_BATCH_CHANGES</td><td>9</td><td><p></p></td></tr>-+<tr><td>FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT</td><td>10</td><td><p></p></td></tr>-+<tr><td>FEATURE_SCHEDULED_ROLLOUT_TIME</td><td>11</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATABASE_CHANGELOG</td><td>12</td><td><p></p></td></tr>-+<tr><td>FEATURE_SCHEMA_DRIFT_DETECTION</td><td>13</td><td><p></p></td></tr>-+<tr><td>FEATURE_ROLLOUT_POLICY</td><td>14</td><td><p></p></td></tr>-+<tr><td>FEATURE_WEB_BASED_SQL_EDITOR</td><td>15</td><td><p>SQL Editor & Development</p></td></tr>-+<tr><td>FEATURE_SQL_EDITOR_ADMIN_MODE</td><td>16</td><td><p></p></td></tr>-+<tr><td>FEATURE_NATURAL_LANGUAGE_TO_SQL</td><td>17</td><td><p></p></td></tr>-+<tr><td>FEATURE_AI_QUERY_EXPLANATION</td><td>18</td><td><p></p></td></tr>-+<tr><td>FEATURE_AI_QUERY_SUGGESTIONS</td><td>19</td><td><p></p></td></tr>-+<tr><td>FEATURE_AUTO_COMPLETE</td><td>20</td><td><p></p></td></tr>-+<tr><td>FEATURE_SCHEMA_DIAGRAM</td><td>21</td><td><p></p></td></tr>-+<tr><td>FEATURE_SCHEMA_EDITOR</td><td>22</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATA_EXPORT</td><td>23</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATA_OFFLINE_EXPORT</td><td>24</td><td><p></p></td></tr>-+<tr><td>FEATURE_QUERY_HISTORY</td><td>25</td><td><p></p></td></tr>-+<tr><td>FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS</td><td>26</td><td><p></p></td></tr>-+<tr><td>FEATURE_BATCH_QUERY</td><td>27</td><td><p></p></td></tr>-+<tr><td>FEATURE_INSTANCE_READ_ONLY_CONNECTION</td><td>28</td><td><p></p></td></tr>-+<tr><td>FEATURE_QUERY_POLICY</td><td>29</td><td><p></p></td></tr>-+<tr><td>FEATURE_RESTRICT_COPYING_DATA</td><td>30</td><td><p></p></td></tr>-+<tr><td>FEATURE_IAM</td><td>31</td><td><p>Security & Compliance</p></td></tr>-+<tr><td>FEATURE_INSTANCE_SSL_CONNECTION</td><td>32</td><td><p></p></td></tr>-+<tr><td>FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL</td><td>33</td><td><p></p></td></tr>-+<tr><td>FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION</td><td>34</td><td><p></p></td></tr>-+<tr><td>FEATURE_GOOGLE_AND_GITHUB_SSO</td><td>35</td><td><p></p></td></tr>-+<tr><td>FEATURE_USER_GROUPS</td><td>36</td><td><p></p></td></tr>-+<tr><td>FEATURE_DISALLOW_SELF_SERVICE_SIGNUP</td><td>37</td><td><p></p></td></tr>-+<tr><td>FEATURE_CUSTOM_INSTANCE_SYNC_TIME</td><td>38</td><td><p></p></td></tr>-+<tr><td>FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT</td><td>39</td><td><p></p></td></tr>-+<tr><td>FEATURE_RISK_ASSESSMENT</td><td>40</td><td><p></p></td></tr>-+<tr><td>FEATURE_APPROVAL_WORKFLOW</td><td>41</td><td><p></p></td></tr>-+<tr><td>FEATURE_AUDIT_LOG</td><td>42</td><td><p></p></td></tr>-+<tr><td>FEATURE_ENTERPRISE_SSO</td><td>43</td><td><p></p></td></tr>-+<tr><td>FEATURE_TWO_FA</td><td>44</td><td><p></p></td></tr>-+<tr><td>FEATURE_PASSWORD_RESTRICTIONS</td><td>45</td><td><p></p></td></tr>-+<tr><td>FEATURE_DISALLOW_PASSWORD_SIGNIN</td><td>46</td><td><p></p></td></tr>-+<tr><td>FEATURE_CUSTOM_ROLES</td><td>47</td><td><p></p></td></tr>-+<tr><td>FEATURE_REQUEST_ROLE_WORKFLOW</td><td>48</td><td><p></p></td></tr>-+<tr><td>FEATURE_JIT</td><td>49</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATA_MASKING</td><td>50</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATA_CLASSIFICATION</td><td>51</td><td><p></p></td></tr>-+<tr><td>FEATURE_SCIM</td><td>52</td><td><p></p></td></tr>-+<tr><td>FEATURE_DIRECTORY_SYNC</td><td>53</td><td><p></p></td></tr>-+<tr><td>FEATURE_TOKEN_DURATION_CONTROL</td><td>54</td><td><p></p></td></tr>-+<tr><td>FEATURE_EXTERNAL_SECRET_MANAGER</td><td>55</td><td><p></p></td></tr>-+<tr><td>FEATURE_USER_EMAIL_DOMAIN_RESTRICTION</td><td>56</td><td><p></p></td></tr>-+<tr><td>FEATURE_PROJECT_MANAGEMENT</td><td>57</td><td><p>Administration & Support</p></td></tr>-+<tr><td>FEATURE_ENVIRONMENT_MANAGEMENT</td><td>58</td><td><p></p></td></tr>-+<tr><td>FEATURE_IM_NOTIFICATIONS</td><td>59</td><td><p></p></td></tr>-+<tr><td>FEATURE_TERRAFORM_PROVIDER</td><td>60</td><td><p></p></td></tr>-+<tr><td>FEATURE_DATABASE_GROUPS</td><td>61</td><td><p></p></td></tr>-+<tr><td>FEATURE_ENVIRONMENT_TIERS</td><td>62</td><td><p></p></td></tr>-+<tr><td>FEATURE_DASHBOARD_ANNOUNCEMENT</td><td>63</td><td><p></p></td></tr>-+<tr><td>FEATURE_API_INTEGRATION_GUIDANCE</td><td>64</td><td><p></p></td></tr>-+<tr><td>FEATURE_CUSTOM_LOGO</td><td>65</td><td><p></p></td></tr>-+<tr><td>FEATURE_WATERMARK</td><td>66</td><td><p></p></td></tr>-+<tr><td>FEATURE_ROADMAP_PRIORITIZATION</td><td>67</td><td><p></p></td></tr>-+<tr><td>FEATURE_CUSTOM_MSA</td><td>68</td><td><p></p></td></tr>-+<tr><td>FEATURE_COMMUNITY_SUPPORT</td><td>69</td><td><p></p></td></tr>-+<tr><td>FEATURE_EMAIL_SUPPORT</td><td>70</td><td><p></p></td></tr>-+<tr><td>FEATURE_DEDICATED_SUPPORT_WITH_SLA</td><td>71</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.PlanType">PlanType</h3><p></p><table class="enum-table">@@ -32783,34 +32791,34 @@ If empty, the update was applied directly using the existing payment method. </p<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PLAN_TYPE_UNSPECIFIED</td><td>0</td><td><p>Unspecified plan type.</p></td></tr>-+<tr><td>FREE</td><td>1</td><td><p>Free plan with basic features and no cost.</p></td></tr>-+<tr><td>TEAM</td><td>2</td><td><p>Team plan with collaboration features for small to medium teams.</p></td></tr>-+<tr><td>ENTERPRISE</td><td>3</td><td><p>Enterprise plan with advanced features and dedicated support.</p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.PurchaseDiscount.Type">PurchaseDiscount.Type</h3><p></p><table class="enum-table">@@ -32818,34 +32826,34 @@ If empty, the update was applied directly using the existing payment method. </p<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PERCENTAGE_OFF</td><td>1</td><td><p></p></td></tr>-+<tr><td>FIXED_MONTH_OFF</td><td>2</td><td><p></p></td></tr>-+<tr><td>FIXED_PRICE_OFF</td><td>3</td><td><p></p></td></tr>-+</tbody></table>-+<h3 id="bytebase.v1.PurchasePlanAdditional.Type">PurchasePlanAdditional.Type</h3><p></p><table class="enum-table">@@ -32853,26 +32861,26 @@ If empty, the update was applied directly using the existing payment method. </p<tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>USER</td><td>1</td><td><p></p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SubscriptionService">SubscriptionService</h3><p>SubscriptionService manages enterprise subscriptions and licensing.</p><table class="enum-table">@@ -32880,7 +32888,7 @@ If empty, the update was applied directly using the existing payment method. </p<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetSubscription</td><td><a href="#bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</a></td>@@ -32889,21 +32897,21 @@ If empty, the update was applied directly using the existing payment method. </pIf there is no license, we will return a free plan subscription without expiration time.If there is expired license, we will return a free plan subscription with the expiration time of the expired license.</p></td></tr>-+<tr><td>ExportVCSProviderUsers</td><td><a href="#bytebase.v1.ExportVCSProviderUsersRequest">ExportVCSProviderUsersRequest</a></td><td><a href="#google.api.HttpBody">.google.api.HttpBody</a></td><td><p>Exports active VCS users as CSV.</p></td></tr>-+<tr><td>UploadLicense</td><td><a href="#bytebase.v1.UploadLicenseRequest">UploadLicenseRequest</a></td><td><a href="#bytebase.v1.Subscription">Subscription</a></td><td><p>Uploads an enterprise license (self-hosted only).</p></td></tr>-+<tr><td>CreatePurchase</td><td><a href="#bytebase.v1.CreatePurchaseRequest">CreatePurchaseRequest</a></td>@@ -32911,7 +32919,7 @@ If there is expired license, we will return a free plan subscription with the ex<td><p>CreatePurchase creates a new subscription purchase (SaaS only).Returns a Stripe Checkout URL for the user to complete payment.</p></td></tr>-+<tr><td>UpdatePurchase</td><td><a href="#bytebase.v1.UpdatePurchaseRequest">UpdatePurchaseRequest</a></td>@@ -32919,41 +32927,41 @@ Returns a Stripe Checkout URL for the user to complete payment.</p></td><td><p>UpdatePurchase updates an existing subscription (SaaS only).May return a Stripe Checkout URL if payment method change is needed.</p></td></tr>-+<tr><td>CancelPurchase</td><td><a href="#bytebase.v1.CancelPurchaseRequest">CancelPurchaseRequest</a></td><td><a href="#bytebase.v1.PurchaseResponse">PurchaseResponse</a></td><td><p>CancelPurchase cancels an active subscription (SaaS only).</p></td></tr>-+<tr><td>GetPaymentInfo</td><td><a href="#bytebase.v1.GetPaymentInfoRequest">GetPaymentInfoRequest</a></td><td><a href="#bytebase.v1.PaymentInfo">PaymentInfo</a></td><td><p>GetPaymentInfo returns payment details for the current subscription (SaaS only).</p></td></tr>-+<tr><td>VerifyCheckoutSession</td><td><a href="#bytebase.v1.VerifyCheckoutSessionRequest">VerifyCheckoutSessionRequest</a></td><td><a href="#bytebase.v1.VerifyCheckoutSessionResponse">VerifyCheckoutSessionResponse</a></td><td><p>VerifyCheckoutSession verifies a Stripe Checkout Session status (SaaS only).</p></td></tr>-+<tr><td>ListPurchasePlans</td><td><a href="#bytebase.v1.ListPurchasePlansRequest">ListPurchasePlansRequest</a></td><td><a href="#bytebase.v1.ListPurchasePlansResponse">ListPurchasePlansResponse</a></td><td><p>ListPurchasePlans returns available plans for self-service purchase.</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -32965,119 +32973,119 @@ May return a Stripe Checkout URL if payment method change is needed.</p></td></tr></thead><tbody>---+++<tr><td>GetSubscription</td><td>GET</td><td>/v1/subscription</td><td></td></tr>----++++<tr><td>ExportVCSProviderUsers</td><td>GET</td><td>/v1/subscription:vcsProviderUsersExport</td><td></td></tr>----++++<tr><td>UploadLicense</td><td>PATCH</td><td>/v1/subscription/license</td><td>*</td></tr>----++++<tr><td>CreatePurchase</td><td>POST</td><td>/v1/subscription:purchase</td><td>*</td></tr>----++++<tr><td>UpdatePurchase</td><td>POST</td><td>/v1/subscription:updatePurchase</td><td>*</td></tr>----++++<tr><td>CancelPurchase</td><td>POST</td><td>/v1/subscription:cancelPurchase</td><td>*</td></tr>----++++<tr><td>GetPaymentInfo</td><td>GET</td><td>/v1/subscription/paymentInfo</td><td></td></tr>----++++<tr><td>VerifyCheckoutSession</td><td>GET</td><td>/v1/subscription/checkoutSession/{session_id}</td><td></td></tr>----++++<tr><td>ListPurchasePlans</td><td>GET</td><td>/v1/subscription/plans</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/workload_identity_service.proto">v1/workload_identity_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.CreateWorkloadIdentityRequest">CreateWorkloadIdentityRequest</h3><p>Request message for creating a workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -33085,7 +33093,7 @@ May return a Stripe Checkout URL if payment method change is needed.</p></td><td><p>The parent resource where this workload identity will be created.Format: projects/{project} for project-level, workspaces/{id} for workspace-level. </p></td></tr>-+<tr><td>workload_identity_id</td><td><a href="#string">string</a></td>@@ -33094,31 +33102,31 @@ Format: projects/{project} for project-level, workspaces/{id} for workspace-leveof the workload identity's email in the format: {workload_identity_id}@workload.bytebase.comor {workload_identity_id}@{project-id}.workload.bytebase.com </p></td></tr>-+<tr><td>workload_identity</td><td><a href="#bytebase.v1.WorkloadIdentity">WorkloadIdentity</a></td><td></td><td><p>The workload identity to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteWorkloadIdentityRequest">DeleteWorkloadIdentityRequest</h3><p>Request message for deleting a workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33126,24 +33134,24 @@ or {workload_identity_id}@{project-id}.workload.bytebase.com </p></td><td><p>The name of the workload identity to delete.Format: workloadIdentities/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetWorkloadIdentityRequest">GetWorkloadIdentityRequest</h3><p>Request message for getting a workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33151,24 +33159,24 @@ Format: workloadIdentities/{email} </p></td><td><p>The name of the workload identity to retrieve.Format: workloadIdentities/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListWorkloadIdentitiesRequest">ListWorkloadIdentitiesRequest</h3><p>Request message for listing workload identities.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -33176,7 +33184,7 @@ Format: workloadIdentities/{email} </p></td><td><p>The parent resource.Format: projects/{project} for project-level, workspaces/{id} for workspace-level. </p></td></tr>-+<tr><td>page_size</td><td><a href="#int32">int32</a></td>@@ -33186,7 +33194,7 @@ this value.If unspecified, at most 10 workload identities will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>-+<tr><td>page_token</td><td><a href="#string">string</a></td>@@ -33197,14 +33205,14 @@ Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListWorkloadIdentities` must matchthe call that provided the page token. </p></td></tr>-+<tr><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td><td><p>Show deleted workload identities if specified. </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -33224,31 +33232,31 @@ state == "DELETED"email == "[email protected]"email.contains("ed") </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListWorkloadIdentitiesResponse">ListWorkloadIdentitiesResponse</h3><p>Response message for listing workload identities.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>workload_identities</td><td><a href="#bytebase.v1.WorkloadIdentity">WorkloadIdentity</a></td><td>repeated</td><td><p>The workload identities from the specified request. </p></td></tr>-+<tr><td>next_page_token</td><td><a href="#string">string</a></td>@@ -33256,24 +33264,24 @@ email.contains("ed") </p></td><td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UndeleteWorkloadIdentityRequest">UndeleteWorkloadIdentityRequest</h3><p>Request message for restoring a deleted workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33281,24 +33289,24 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>The name of the deleted workload identity.Format: workloadIdentities/{email} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateWorkloadIdentityRequest">UpdateWorkloadIdentityRequest</h3><p>Request message for updating a workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>workload_identity</td><td><a href="#bytebase.v1.WorkloadIdentity">WorkloadIdentity</a></td>@@ -33308,7 +33316,7 @@ Format: workloadIdentities/{email} </p></td>The workload identity's `name` field is used to identify the workload identity to update.Format: workloadIdentities/{email} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>@@ -33316,24 +33324,24 @@ Format: workloadIdentities/{email} </p></td><td><p>The list of fields to update.Supported fields: title, workload_identity_config </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorkloadIdentity">WorkloadIdentity</h3><p>WorkloadIdentity represents an external CI/CD workload identity.</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33341,14 +33349,14 @@ Supported fields: title, workload_identity_config </p></td><td><p>The name of the workload identity.Format: workloadIdentities/{email} </p></td></tr>-+<tr><td>state</td><td><a href="#bytebase.v1.State">State</a></td><td></td><td><p>The state of the workload identity. </p></td></tr>-+<tr><td>email</td><td><a href="#string">string</a></td>@@ -33357,82 +33365,82 @@ Format: workloadIdentities/{email} </p></td>For workspace-level: {name}@workload.bytebase.comFor project-level: {name}@{project-id}.workload.bytebase.com </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The display title of the workload identity. </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The timestamp when the workload identity was created. </p></td></tr>-+<tr><td>workload_identity_config</td><td><a href="#bytebase.v1.WorkloadIdentityConfig">WorkloadIdentityConfig</a></td><td></td><td><p>The workload identity configuration for OIDC token validation. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorkloadIdentityConfig">WorkloadIdentityConfig</h3><p>WorkloadIdentityConfig for API layer</p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>provider_type</td><td><a href="#bytebase.v1.WorkloadIdentityConfig.ProviderType">WorkloadIdentityConfig.ProviderType</a></td><td></td><td><p>Platform type (currently only GITHUB is supported) </p></td></tr>-+<tr><td>issuer_url</td><td><a href="#string">string</a></td><td></td><td><p>OIDC Issuer URL (auto-filled based on provider_type, can be overridden) </p></td></tr>-+<tr><td>allowed_audiences</td><td><a href="#string">string</a></td><td>repeated</td><td><p>Allowed audiences for token validation </p></td></tr>-+<tr><td>subject_pattern</td><td><a href="#string">string</a></td><td></td><td><p>Subject pattern to match (e.g., "repo:owner/repo:ref:refs/heads/main") </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.WorkloadIdentityConfig.ProviderType">WorkloadIdentityConfig.ProviderType</h3><p>ProviderType identifies the CI/CD platform.</p><table class="enum-table">@@ -33440,32 +33448,32 @@ For project-level: {name}@{project-id}.workload.bytebase.com </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>PROVIDER_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>GITHUB</td><td>1</td><td><p></p></td></tr>-+<tr><td>GITLAB</td><td>2</td><td><p></p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorkloadIdentityService">WorkloadIdentityService</h3><p>WorkloadIdentityService manages workload identities for external CI/CD integrations.</p><table class="enum-table">@@ -33473,7 +33481,7 @@ For project-level: {name}@{project-id}.workload.bytebase.com </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>CreateWorkloadIdentity</td><td><a href="#bytebase.v1.CreateWorkloadIdentityRequest">CreateWorkloadIdentityRequest</a></td>@@ -33482,7 +33490,7 @@ For project-level: {name}@{project-id}.workload.bytebase.com </p></td>For workspace-level: parent is workspaces/{id}, permission bb.workloadIdentities.create on workspace.For project-level: parent is projects/{project}, permission bb.workloadIdentities.create on project.</p></td></tr>-+<tr><td>GetWorkloadIdentity</td><td><a href="#bytebase.v1.GetWorkloadIdentityRequest">GetWorkloadIdentityRequest</a></td>@@ -33490,7 +33498,7 @@ For project-level: parent is projects/{project}, permission bb.workloadIdentitie<td><p>Gets a workload identity by name.Permissions required: bb.workloadIdentities.get</p></td></tr>-+<tr><td>ListWorkloadIdentities</td><td><a href="#bytebase.v1.ListWorkloadIdentitiesRequest">ListWorkloadIdentitiesRequest</a></td>@@ -33499,7 +33507,7 @@ Permissions required: bb.workloadIdentities.get</p></td>For workspace-level: parent is workspaces/{id}, permission bb.workloadIdentities.list on workspace.For project-level: parent is projects/{project}, permission bb.workloadIdentities.list on project.</p></td></tr>-+<tr><td>UpdateWorkloadIdentity</td><td><a href="#bytebase.v1.UpdateWorkloadIdentityRequest">UpdateWorkloadIdentityRequest</a></td>@@ -33507,7 +33515,7 @@ For project-level: parent is projects/{project}, permission bb.workloadIdentitie<td><p>Updates a workload identity.Permissions required: bb.workloadIdentities.update</p></td></tr>-+<tr><td>DeleteWorkloadIdentity</td><td><a href="#bytebase.v1.DeleteWorkloadIdentityRequest">DeleteWorkloadIdentityRequest</a></td>@@ -33515,7 +33523,7 @@ Permissions required: bb.workloadIdentities.update</p></td><td><p>Deletes a workload identity.Permissions required: bb.workloadIdentities.delete</p></td></tr>-+<tr><td>UndeleteWorkloadIdentity</td><td><a href="#bytebase.v1.UndeleteWorkloadIdentityRequest">UndeleteWorkloadIdentityRequest</a></td>@@ -33523,13 +33531,13 @@ Permissions required: bb.workloadIdentities.delete</p></td><td><p>Restores a deleted workload identity.Permissions required: bb.workloadIdentities.undelete</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -33541,151 +33549,151 @@ Permissions required: bb.workloadIdentities.undelete</p></td></tr></thead><tbody>---+++<tr><td>CreateWorkloadIdentity</td><td>POST</td><td>/v1/{parent=projects/*}/workloadIdentities</td><td>workload_identity</td></tr>-+<tr><td>CreateWorkloadIdentity</td><td>POST</td><td>/v1/{parent=workspaces/*}/workloadIdentities</td><td>workload_identity</td></tr>----++++<tr><td>GetWorkloadIdentity</td><td>GET</td><td>/v1/{name=workloadIdentities/*}</td><td></td></tr>----++++<tr><td>ListWorkloadIdentities</td><td>GET</td><td>/v1/{parent=projects/*}/workloadIdentities</td><td></td></tr>-+<tr><td>ListWorkloadIdentities</td><td>GET</td><td>/v1/{parent=workspaces/*}/workloadIdentities</td><td></td></tr>----++++<tr><td>UpdateWorkloadIdentity</td><td>PATCH</td><td>/v1/{workload_identity.name=workloadIdentities/*}</td><td>workload_identity</td></tr>----++++<tr><td>DeleteWorkloadIdentity</td><td>DELETE</td><td>/v1/{name=workloadIdentities/*}</td><td></td></tr>----++++<tr><td>UndeleteWorkloadIdentity</td><td>POST</td><td>/v1/{name=workloadIdentities/*}:undelete</td><td>*</td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/worksheet_service.proto">v1/worksheet_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.BatchUpdateWorksheetOrganizerRequest">BatchUpdateWorksheetOrganizerRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>requests</td><td><a href="#bytebase.v1.UpdateWorksheetOrganizerRequest">UpdateWorksheetOrganizerRequest</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.BatchUpdateWorksheetOrganizerResponse">BatchUpdateWorksheetOrganizerResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>worksheet_organizers</td><td><a href="#bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.CreateWorksheetRequest">CreateWorksheetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -33693,31 +33701,31 @@ Permissions required: bb.workloadIdentities.undelete</p></td><td><p>The parent resource where this worksheet will be created.Format: projects/{project} </p></td></tr>-+<tr><td>worksheet</td><td><a href="#bytebase.v1.Worksheet">Worksheet</a></td><td></td><td><p>The worksheet to create. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.DeleteWorksheetRequest">DeleteWorksheetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33725,24 +33733,24 @@ Format: projects/{project} </p></td><td><p>The name of the worksheet to delete.Format: projects/{project}/worksheets/{worksheet} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetWorksheetRequest">GetWorksheetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33750,24 +33758,24 @@ Format: projects/{project}/worksheets/{worksheet} </p></td><td><p>The name of the worksheet to retrieve.Format: projects/{project}/worksheets/{worksheet} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchWorksheetsRequest">SearchWorksheetsRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>parent</td><td><a href="#string">string</a></td>@@ -33775,7 +33783,7 @@ Format: projects/{project}/worksheets/{worksheet} </p></td><td><p>The parent resource of the worksheets.Format: projects/{project} </p></td></tr>-+<tr><td>filter</td><td><a href="#string">string</a></td>@@ -33796,48 +33804,48 @@ starred == falsevisibility in ["PRIVATE", "PROJECT_READ", "PROJECT_WRITE"]visibility == "PRIVATE" </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.SearchWorksheetsResponse">SearchWorksheetsResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>worksheets</td><td><a href="#bytebase.v1.Worksheet">Worksheet</a></td><td>repeated</td><td><p>The worksheets that matched the search criteria. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateWorksheetOrganizerRequest">UpdateWorksheetOrganizerRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>organizer</td><td><a href="#bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</a></td>@@ -33847,7 +33855,7 @@ visibility == "PRIVATE" </p></td>The organizer's `worksheet` field is used to identify the worksheet.Format: projects/{project}/worksheets/{worksheet} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>@@ -33857,7 +33865,7 @@ Fields are specified relative to the worksheet organizer.Only support update the following fields for now:- `starred` </p></td></tr>-+<tr><td>allow_missing</td><td><a href="#bool">bool</a></td>@@ -33865,24 +33873,24 @@ Only support update the following fields for now:<td><p>If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created.In this situation, `update_mask` is ignored. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateWorksheetRequest">UpdateWorksheetRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>worksheet</td><td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>@@ -33892,7 +33900,7 @@ In this situation, `update_mask` is ignored. </p></td>The worksheet's `name` field is used to identify the worksheet to update.Format: projects/{project}/worksheets/{worksheet} </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>@@ -33906,24 +33914,24 @@ Only support update the following fields for now:- `starred`- `visibility` </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Worksheet">Worksheet</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -33932,7 +33940,7 @@ Only support update the following fields for now:Canonical parent is project.Format: projects/{project}/worksheets/{worksheet} </p></td></tr>-+<tr><td>project</td><td><a href="#string">string</a></td>@@ -33940,7 +33948,7 @@ Format: projects/{project}/worksheets/{worksheet} </p></td><td><p>The project resource name.Format: projects/{project} </p></td></tr>-+<tr><td>database</td><td><a href="#string">string</a></td>@@ -33949,14 +33957,14 @@ Format: projects/{project} </p></td>Format: instances/{instance}/databases/{database}If the database parent doesn't exist, the database field is empty. </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p>The title of the worksheet. </p></td></tr>-+<tr><td>creator</td><td><a href="#string">string</a></td>@@ -33964,21 +33972,21 @@ If the database parent doesn't exist, the database field is empty. </p></td><td><p>The creator of the Worksheet.Format: users/{email} </p></td></tr>-+<tr><td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The create time of the worksheet. </p></td></tr>-+<tr><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p>The last update time of the worksheet. </p></td></tr>-+<tr><td>content</td><td><a href="#bytes">bytes</a></td>@@ -33987,52 +33995,52 @@ Format: users/{email} </p></td>By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you canuse GetWorksheet() request to retrieve the full content. </p></td></tr>-+<tr><td>content_size</td><td><a href="#int64">int64</a></td><td></td><td><p>content_size is the full size of the content, may not match the size of the `content` field. </p></td></tr>-+<tr><td>visibility</td><td><a href="#bytebase.v1.Worksheet.Visibility">Worksheet.Visibility</a></td><td></td><td><p> </p></td></tr>-+<tr><td>starred</td><td><a href="#bool">bool</a></td><td></td><td><p>starred indicates whether the worksheet is starred by the current authenticated user. </p></td></tr>-+<tr><td>folders</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>worksheet</td><td><a href="#string">string</a></td>@@ -34040,30 +34048,30 @@ use GetWorksheet() request to retrieve the full content. </p></td><td><p>The name of the worksheet.Format: projects/{project}/worksheets/{worksheet} </p></td></tr>-+<tr><td>starred</td><td><a href="#bool">bool</a></td><td></td><td><p>starred means if the worksheet is starred. </p></td></tr>-+<tr><td>folders</td><td><a href="#string">string</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>----++++<h3 id="bytebase.v1.Worksheet.Visibility">Worksheet.Visibility</h3><p></p><table class="enum-table">@@ -34071,38 +34079,38 @@ Format: projects/{project}/worksheets/{worksheet} </p></td><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-+<tr><td>VISIBILITY_UNSPECIFIED</td><td>0</td><td><p></p></td></tr>-+<tr><td>PROJECT_READ</td><td>1</td><td><p>Read access in project scope, worksheet OWNER/DBA and project OWNER can read/write, other project members can read.</p></td></tr>-+<tr><td>PROJECT_WRITE</td><td>2</td><td><p>Write access in project scope, worksheet OWNER/DBA and all members in the project can write the worksheet.</p></td></tr>-+<tr><td>PRIVATE</td><td>3</td><td><p>Private, only worksheet OWNER can read/write.</p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.WorksheetService">WorksheetService</h3><p>WorksheetService manages SQL worksheets for query development.</p><table class="enum-table">@@ -34110,7 +34118,7 @@ Format: projects/{project}/worksheets/{worksheet} </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>CreateWorksheet</td><td><a href="#bytebase.v1.CreateWorksheetRequest">CreateWorksheetRequest</a></td>@@ -34118,7 +34126,7 @@ Format: projects/{project}/worksheets/{worksheet} </p></td><td><p>Creates a personal worksheet used in SQL Editor. Any authenticated user can create their own worksheets.Permissions required: None (authenticated users only)</p></td></tr>-+<tr><td>GetWorksheet</td><td><a href="#bytebase.v1.GetWorksheetRequest">GetWorksheetRequest</a></td>@@ -34130,7 +34138,7 @@ The users can access this method if,- the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td></tr>-+<tr><td>SearchWorksheets</td><td><a href="#bytebase.v1.SearchWorksheetsRequest">SearchWorksheetsRequest</a></td>@@ -34140,7 +34148,7 @@ This is used for finding my worksheets or worksheets shared by other people.The sheet accessibility is the same as GetWorksheet().Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td></tr>-+<tr><td>UpdateWorksheet</td><td><a href="#bytebase.v1.UpdateWorksheetRequest">UpdateWorksheetRequest</a></td>@@ -34152,7 +34160,7 @@ The users can access this method if,- the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)</p></td></tr>-+<tr><td>UpdateWorksheetOrganizer</td><td><a href="#bytebase.v1.UpdateWorksheetOrganizerRequest">UpdateWorksheetOrganizerRequest</a></td>@@ -34161,7 +34169,7 @@ Permissions required: bb.worksheets.manage (or creator, or project member for PRThe access is the same as UpdateWorksheet method.Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td></tr>-+<tr><td>BatchUpdateWorksheetOrganizer</td><td><a href="#bytebase.v1.BatchUpdateWorksheetOrganizerRequest">BatchUpdateWorksheetOrganizerRequest</a></td>@@ -34170,7 +34178,7 @@ Permissions required: bb.worksheets.get (or creator, or project member for shareThe access is the same as UpdateWorksheet method.Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td></tr>-+<tr><td>DeleteWorksheet</td><td><a href="#bytebase.v1.DeleteWorksheetRequest">DeleteWorksheetRequest</a></td>@@ -34179,13 +34187,13 @@ Permissions required: bb.worksheets.get (or creator, or project member for shareThe access is the same as UpdateWorksheet method.Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -34197,123 +34205,123 @@ Permissions required: bb.worksheets.manage (or creator, or project member for PR</tr></thead><tbody>---+++<tr><td>CreateWorksheet</td><td>POST</td><td>/v1/{parent=projects/*}/worksheets</td><td>worksheet</td></tr>----++++<tr><td>GetWorksheet</td><td>GET</td><td>/v1/{name=projects/*/worksheets/*}</td><td></td></tr>----++++<tr><td>SearchWorksheets</td><td>POST</td><td>/v1/{parent=projects/*}/worksheets:search</td><td>*</td></tr>----++++<tr><td>UpdateWorksheet</td><td>PATCH</td><td>/v1/{worksheet.name=projects/*/worksheets/*}</td><td>worksheet</td></tr>----++++<tr><td>UpdateWorksheetOrganizer</td><td>PATCH</td><td>/v1/{organizer.worksheet=projects/*/worksheets/*}/organizer</td><td>organizer</td></tr>----++++<tr><td>BatchUpdateWorksheetOrganizer</td><td>PATCH</td><td>/v1/worksheets/organizer:batchUpdate</td><td>*</td></tr>----++++<tr><td>DeleteWorksheet</td><td>DELETE</td><td>/v1/{name=projects/*/worksheets/*}</td><td></td></tr>--++</tbody></table>----++++<div class="file-heading"><h2 id="v1/workspace_service.proto">v1/workspace_service.proto</h2><a href="#title">Top</a></div><p></p>-+<h3 id="bytebase.v1.DeleteWorkspaceRequest">DeleteWorkspaceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: workspaces/{workspace} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.GetWorkspaceRequest">GetWorkspaceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td>@@ -34321,144 +34329,144 @@ Permissions required: bb.worksheets.manage (or creator, or project member for PR<td><p>The workspace name, format: workspaces/{workspace}.Use "workspaces/-" to get the current/default workspace. </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.LeaveWorkspaceRequest">LeaveWorkspaceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: workspaces/{workspace} </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.ListWorkspacesRequest">ListWorkspacesRequest</h3><p></p>---+++<h3 id="bytebase.v1.ListWorkspacesResponse">ListWorkspacesResponse</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>workspaces</td><td><a href="#bytebase.v1.Workspace">Workspace</a></td><td>repeated</td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.UpdateWorkspaceRequest">UpdateWorkspaceRequest</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>workspace</td><td><a href="#bytebase.v1.Workspace">Workspace</a></td><td></td><td><p> </p></td></tr>-+<tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p> </p></td></tr>-+</tbody></table>---+++<h3 id="bytebase.v1.Workspace">Workspace</h3><p></p>-+<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+<tr><td>name</td><td><a href="#string">string</a></td><td></td><td><p>Format: workspaces/{workspace} </p></td></tr>-+<tr><td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>-+<tr><td>logo</td><td><a href="#string">string</a></td><td></td><td><p>The branding logo. </p></td></tr>-+</tbody></table>------++++++<h3 id="bytebase.v1.WorkspaceService">WorkspaceService</h3><p>WorkspaceService manages workspace-level operations and profile.</p><table class="enum-table">@@ -34466,7 +34474,7 @@ Use "workspaces/-" to get the current/default workspace. </p></td><tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody>-+<tr><td>GetWorkspace</td><td><a href="#bytebase.v1.GetWorkspaceRequest">GetWorkspaceRequest</a></td>@@ -34477,21 +34485,21 @@ Supports "workspaces/-" to resolve the current workspace:- Self-hosted unauthenticated: returns the single workspace- SaaS unauthenticated: returns minimal response</p></td></tr>-+<tr><td>ListWorkspaces</td><td><a href="#bytebase.v1.ListWorkspacesRequest">ListWorkspacesRequest</a></td><td><a href="#bytebase.v1.ListWorkspacesResponse">ListWorkspacesResponse</a></td><td><p>Lists all workspaces the current user is a member of.</p></td></tr>-+<tr><td>UpdateWorkspace</td><td><a href="#bytebase.v1.UpdateWorkspaceRequest">UpdateWorkspaceRequest</a></td><td><a href="#bytebase.v1.Workspace">Workspace</a></td><td><p>Updates a workspace. Currently only title can be updated.</p></td></tr>-+<tr><td>GetIamPolicy</td><td><a href="#bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</a></td>@@ -34499,7 +34507,7 @@ Supports "workspaces/-" to resolve the current workspace:<td><p>Retrieves IAM policy for the workspace.Permissions required: bb.workspaces.getIamPolicy</p></td></tr>-+<tr><td>DeleteWorkspace</td><td><a href="#bytebase.v1.DeleteWorkspaceRequest">DeleteWorkspaceRequest</a></td>@@ -34508,7 +34516,7 @@ Permissions required: bb.workspaces.getIamPolicy</p></td>soft-deletes the workspace so all associated data becomes inaccessible.Requires workspace admin permission.</p></td></tr>-+<tr><td>LeaveWorkspace</td><td><a href="#bytebase.v1.LeaveWorkspaceRequest">LeaveWorkspaceRequest</a></td>@@ -34517,7 +34525,7 @@ Requires workspace admin permission.</p></td>available workspace. Available to any workspace member. Fails if thecaller is the last workspace admin.</p></td></tr>-+<tr><td>SetIamPolicy</td><td><a href="#bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</a></td>@@ -34525,13 +34533,13 @@ caller is the last workspace admin.</p></td><td><p>Sets IAM policy for the workspace.Permissions required: bb.workspaces.setIamPolicy</p></td></tr>-+</tbody></table>---+++<h4>Methods with HTTP bindings</h4><table><thead>@@ -34543,82 +34551,82 @@ Permissions required: bb.workspaces.setIamPolicy</p></td></tr></thead><tbody>---+++<tr><td>GetWorkspace</td><td>GET</td><td>/v1/{name=workspaces/*}</td><td></td></tr>----++++<tr><td>ListWorkspaces</td><td>GET</td><td>/v1/workspaces</td><td></td></tr>----++++<tr><td>UpdateWorkspace</td><td>PATCH</td><td>/v1/{workspace.name=workspaces/*}</td><td>*</td></tr>----++++<tr><td>GetIamPolicy</td><td>GET</td><td>/v1/{resource=workspaces/*}:getIamPolicy</td><td></td></tr>----++++<tr><td>DeleteWorkspace</td><td>DELETE</td><td>/v1/{name=workspaces/*}</td><td></td></tr>----++++<tr><td>LeaveWorkspace</td><td>POST</td><td>/v1/{name=workspaces/*}:leave</td><td>*</td></tr>----++++<tr><td>SetIamPolicy</td><td>POST</td><td>/v1/{resource=workspaces/*}:setIamPolicy</td><td>*</td></tr>--++</tbody></table>---+++<h2 id="scalar-value-types">Scalar Value Types</h2><table class="scalar-value-types-table">@@ -34626,7 +34634,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><tr><td>.proto Type</td><td>Notes</td><td>C++</td><td>Java</td><td>Python</td><td>Go</td><td>C#</td><td>PHP</td><td>Ruby</td></tr></thead><tbody>-+<tr id="double"><td>double</td><td></td>@@ -34638,7 +34646,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>float</td><td>Float</td></tr>-+<tr id="float"><td>float</td><td></td>@@ -34650,7 +34658,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>float</td><td>Float</td></tr>-+<tr id="int32"><td>int32</td><td>Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.</td>@@ -34662,7 +34670,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="int64"><td>int64</td><td>Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.</td>@@ -34674,7 +34682,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer/string</td><td>Bignum</td></tr>-+<tr id="uint32"><td>uint32</td><td>Uses variable-length encoding.</td>@@ -34686,7 +34694,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="uint64"><td>uint64</td><td>Uses variable-length encoding.</td>@@ -34698,7 +34706,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer/string</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="sint32"><td>sint32</td><td>Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.</td>@@ -34710,7 +34718,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="sint64"><td>sint64</td><td>Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.</td>@@ -34722,7 +34730,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer/string</td><td>Bignum</td></tr>-+<tr id="fixed32"><td>fixed32</td><td>Always four bytes. More efficient than uint32 if values are often greater than 2^28.</td>@@ -34734,7 +34742,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="fixed64"><td>fixed64</td><td>Always eight bytes. More efficient than uint64 if values are often greater than 2^56.</td>@@ -34746,7 +34754,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer/string</td><td>Bignum</td></tr>-+<tr id="sfixed32"><td>sfixed32</td><td>Always four bytes.</td>@@ -34758,7 +34766,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer</td><td>Bignum or Fixnum (as required)</td></tr>-+<tr id="sfixed64"><td>sfixed64</td><td>Always eight bytes.</td>@@ -34770,7 +34778,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>integer/string</td><td>Bignum</td></tr>-+<tr id="bool"><td>bool</td><td></td>@@ -34782,7 +34790,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>boolean</td><td>TrueClass/FalseClass</td></tr>-+<tr id="string"><td>string</td><td>A string must always contain UTF-8 encoded or 7-bit ASCII text.</td>@@ -34794,7 +34802,7 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>string</td><td>String (UTF-8)</td></tr>-+<tr id="bytes"><td>bytes</td><td>May contain any arbitrary sequence of bytes.</td>@@ -34806,9 +34814,8 @@ Permissions required: bb.workspaces.setIamPolicy</p></td><td>string</td><td>String (ASCII-8BIT)</td></tr>-+</tbody></table></body></html>-diff --git a/proto/store/store/setting.proto b/proto/store/store/setting.protoindex 1b57161701..f09030b5ce 100644--- a/proto/store/store/setting.proto+++ b/proto/store/store/setting.proto@@ -80,7 +80,7 @@ message WorkspaceProfileSetting {// The setting of custom announcementAnnouncement announcement = 5;- // The max expiration duration for role grants and data access requests.+ // The max expiration duration for data access requests.google.protobuf.Duration maximum_request_expiration = 6;// The workspace domain, e.g., bytebase.com.@@ -157,6 +157,10 @@ message WorkspaceProfileSetting {// The enforced CUSTOM theme's full definition — present ONLY when// sql_editor_theme_id is a custom uuid. tokens is always complete.SQLEditorThemeSetting sql_editor_custom_theme = 24;++ // The max expiration duration for request role.+ // Deprecated: use just-in-time access request flows instead.+ google.protobuf.Duration maximum_role_expiration = 25;}message SQLEditorThemeSetting {diff --git a/proto/v1/v1/setting_service.proto b/proto/v1/v1/setting_service.protoindex ee0a997104..cd96f75d13 100644--- a/proto/v1/v1/setting_service.proto+++ b/proto/v1/v1/setting_service.proto@@ -199,7 +199,7 @@ message WorkspaceProfileSetting {// The setting of custom announcementAnnouncement announcement = 5;- // The max expiration duration for role grants and data access requests.+ // The max expiration duration for data access requests.google.protobuf.Duration maximum_request_expiration = 6;// The workspace domain, e.g., bytebase.com.@@ -276,6 +276,10 @@ message WorkspaceProfileSetting {// The enforced CUSTOM theme's full definition — present ONLY when// sql_editor_theme_id is a custom uuid. tokens is always complete.SQLEditorThemeSetting sql_editor_custom_theme = 24;++ // The max expiration duration for request role.+ // Deprecated: use just-in-time access request flows instead.+ google.protobuf.Duration maximum_role_expiration = 25;}message SQLEditorThemeSetting {