Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: clean up unused proto (#16507)
Danny Xuc85329c11e39
diff --git a/backend/api/v1/mail_templates/testmail/statics/banner.png.REMOVED.git-id b/backend/api/v1/mail_templates/testmail/statics/banner.png.REMOVED.git-iddeleted file mode 100644index 574e847e0c..0000000000--- a/backend/api/v1/mail_templates/testmail/statics/banner.png.REMOVED.git-id+++ /dev/null@@ -1 +0,0 @@-3fbe36487ef992c82934dfb8d6c6757b9ce9a834\ No newline at end of filediff --git a/backend/api/v1/mail_templates/testmail/statics/logo-full.png b/backend/api/v1/mail_templates/testmail/statics/logo-full.pngdeleted file mode 100644index 5119274448..0000000000Binary files a/backend/api/v1/mail_templates/testmail/statics/logo-full.png and /dev/null differdiff --git a/backend/api/v1/mail_templates/testmail/template.html b/backend/api/v1/mail_templates/testmail/template.htmldeleted file mode 100644index 6f2c67c5d0..0000000000--- a/backend/api/v1/mail_templates/testmail/template.html+++ /dev/null@@ -1,32 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />-<html lang="en">-- <head data-id="__react-email-head"></head>- <div id="__react-email-preview" style="display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0">Reliable Database CI/CD for Developers.<div> </div>- </div>-- <body data-id="__react-email-body" style="background-color:#ffffff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif">- <table align="center" width="100%" data-id="__react-email-container" role="presentation" cellSpacing="0" cellPadding="0" border="0" style="max-width:37.5em;margin:0 auto;padding:20px 0 48px">- <tbody>- <tr style="width:100%">- <td><a href="https://www.bytebase.com"><img data-id="react-email-img" alt="Bytebase Logo" src="{{BYTEBASE_LOGO_URL}}" width="205" height="44" style="display:block;outline:none;border:none;text-decoration:none;margin:0 auto" /></a>- <h1 data-id="react-email-heading" style="font-size:32px;line-height:1.3;font-weight:700;text-align:center;letter-spacing:-1px">Your Bytebase mail server is ready to Go!</h1>- <p data-id="react-email-text" style="font-size:16px;line-height:26px;margin:16px 0">Hello,</p>- <p data-id="react-email-text" style="font-size:16px;line-height:26px;margin:16px 0">This is a test email from Bytebase to confirm that your mail server configuration is correct. If you have received this email, it means that your configuration was successful. Thank you for using Bytebase!</p>- <p data-id="react-email-text" style="font-size:16px;line-height:26px;margin:16px 0">Best regards,<br />The Bytebase Team</p>- <table align="center" width="100%" data-id="react-email-section" style="text-align:center" border="0" cellPadding="0" cellSpacing="0" role="presentation">- <tbody>- <tr>- <td><a href="{{BYTEBASE_CONSOLE_REDIRECT_URL}}" data-id="react-email-button" target="_blank" style="background-color:#4F46E5;border-radius:10px;color:#ffffff;font-size:16px;text-decoration:none;text-align:center;display:inline-block;line-height:100%;max-width:100%;padding:12px 12px"><span><!--[if mso]><i style="letter-spacing: 12px;mso-font-width:-100%;mso-text-raise:18" hidden> </i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:9px">Get started</span><span><!--[if mso]><i style="letter-spacing: 12px;mso-font-width:-100%" hidden> </i><![endif]--></span></a></td>- </tr>- </tbody>- </table>- <hr data-id="react-email-hr" style="width:100%;border:none;border-top:1px solid #eaeaea;border-color:#cccccc;margin:20px 0" /><img data-id="react-email-img" alt="Bytebase Banner" src="{{BYTEBASE_BANNER_URL}}" width="900" height="300" style="display:block;outline:none;border:none;text-decoration:none;margin:0 auto" />- </td>- </tr>- </tbody>- </table>- </body>--</html>\ No newline at end of filediff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex c3427da481..e6c3e48638 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -1,13 +1,10 @@package v1import (- "bytes""context"- "embed""fmt""log/slog""regexp"- "strings""time""github.com/google/go-cmp/cmp"@@ -24,7 +21,6 @@ import ("github.com/bytebase/bytebase/backend/component/config""github.com/bytebase/bytebase/backend/component/state""github.com/bytebase/bytebase/backend/enterprise"- "github.com/bytebase/bytebase/backend/plugin/mail""github.com/bytebase/bytebase/backend/plugin/schema""github.com/bytebase/bytebase/backend/plugin/webhook/dingtalk""github.com/bytebase/bytebase/backend/plugin/webhook/feishu"@@ -68,7 +64,6 @@ var whitelistSettings = []storepb.SettingName{storepb.SettingName_WATERMARK,storepb.SettingName_AI,storepb.SettingName_WORKSPACE_APPROVAL,- storepb.SettingName_WORKSPACE_MAIL_DELIVERY,storepb.SettingName_WORKSPACE_PROFILE,storepb.SettingName_WORKSPACE_EXTERNAL_APPROVAL,storepb.SettingName_SCHEMA_TEMPLATE,@@ -80,11 +75,6 @@ var whitelistSettings = []storepb.SettingName{storepb.SettingName_ENVIRONMENT,}-//go:embed mail_templates/testmail/template.html-//go:embed mail_templates/testmail/statics/logo-full.png-//go:embed mail_templates/testmail/statics/banner.png-var testEmailFs embed.FS-// ListSettings lists all settings.func (s *SettingService) ListSettings(ctx context.Context, _ *v1pb.ListSettingsRequest) (*v1pb.ListSettingsResponse, error) {settings, err := s.store.ListSettingV2(ctx, &store.FindSettingMessage{})@@ -316,58 +306,6 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Updatereturn nil, status.Errorf(codes.Internal, "failed to marshal setting for %s with error: %v", apiSettingName, err)}storeSettingValue = string(bytes)- case storepb.SettingName_WORKSPACE_MAIL_DELIVERY:- apiValue := request.Setting.Value.GetSmtpMailDeliverySettingValue()- // We will fill the password read from the store if it is not set.- if apiValue.Password == nil {- oldStoreSetting, err := s.store.GetSettingV2(ctx, apiSettingName)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get setting %q: %v", apiSettingName, err)- }- if oldStoreSetting == nil {- return nil, status.Errorf(codes.InvalidArgument, "should set the password for the first time")- }- oldValue := new(storepb.SMTPMailDeliverySetting)- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(oldStoreSetting.Value), oldValue); err != nil {- return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", err, apiSettingName)- }- apiValue.Password = &oldValue.Password- }- if request.ValidateOnly {- if err := s.sendTestEmail(ctx, apiValue); err != nil {- return nil, status.Errorf(codes.InvalidArgument, "failed to validate smtp setting: %v", err)- }- apiValue.Password = nil- return &v1pb.Setting{- Name: request.Setting.Name,- Value: &v1pb.Value{- Value: &v1pb.Value_SmtpMailDeliverySettingValue{- SmtpMailDeliverySettingValue: apiValue,- },- },- }, nil- }- password := ""- if apiValue.Password != nil {- password = *apiValue.Password- }- storeMailDeliveryValue := &storepb.SMTPMailDeliverySetting{- Server: apiValue.Server,- Port: apiValue.Port,- Encryption: convertToStorePbSMTPEncryptionType(apiValue.Encryption),- Authentication: convertToStorePbSMTPAuthType(apiValue.Authentication),- Username: apiValue.Username,- Password: password,- Ca: "",- Key: "",- Cert: "",- From: apiValue.From,- }- bytes, err := protojson.Marshal(storeMailDeliveryValue)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to marshal setting value for %s with error: %v", apiSettingName, err)- }- storeSettingValue = string(bytes)case storepb.SettingName_BRANDING_LOGO:if err := s.licenseService.IsFeatureEnabled(v1pb.PlanFeature_FEATURE_CUSTOM_LOGO); err != nil {return nil, status.Error(codes.PermissionDenied, err.Error())@@ -676,30 +614,6 @@ func convertProtoToProto(inputPB, outputPB protoreflect.ProtoMessage) error {func convertToSettingMessage(setting *store.SettingMessage) (*v1pb.Setting, error) {settingName := fmt.Sprintf("%s%s", common.SettingNamePrefix, convertStoreSettingNameToV1(setting.Name).String())switch setting.Name {- case storepb.SettingName_WORKSPACE_MAIL_DELIVERY:- storeValue := new(storepb.SMTPMailDeliverySetting)- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), storeValue); err != nil {- return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", setting.Name, err)- }- return stripSensitiveData(&v1pb.Setting{- Name: settingName,- Value: &v1pb.Value{- Value: &v1pb.Value_SmtpMailDeliverySettingValue{- SmtpMailDeliverySettingValue: &v1pb.SMTPMailDeliverySettingValue{- Server: storeValue.Server,- Port: storeValue.Port,- Encryption: convertToSMTPEncryptionType(storeValue.Encryption),- Authentication: convertToSMTPAuthType(storeValue.Authentication),- Ca: &storeValue.Ca,- Key: &storeValue.Key,- Cert: &storeValue.Cert,- Username: storeValue.Username,- Password: &storeValue.Password,- From: storeValue.From,- },- },- },- })case storepb.SettingName_APP_IM:storeValue := new(storepb.AppIMSetting)if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), storeValue); err != nil {@@ -1034,8 +948,6 @@ func convertStoreSettingNameToV1(storeName storepb.SettingName) v1pb.Setting_Setreturn v1pb.Setting_AIcase storepb.SettingName_PLUGIN_AGENT:return v1pb.Setting_PLUGIN_AGENT- case storepb.SettingName_WORKSPACE_MAIL_DELIVERY:- return v1pb.Setting_WORKSPACE_MAIL_DELIVERYcase storepb.SettingName_SCHEMA_TEMPLATE:return v1pb.Setting_SCHEMA_TEMPLATEcase storepb.SettingName_DATA_CLASSIFICATION:@@ -1082,8 +994,6 @@ func convertV1SettingNameToStore(v1Name v1pb.Setting_SettingName) storepb.Settinreturn storepb.SettingName_AIcase v1pb.Setting_PLUGIN_AGENT:return storepb.SettingName_PLUGIN_AGENT- case v1pb.Setting_WORKSPACE_MAIL_DELIVERY:- return storepb.SettingName_WORKSPACE_MAIL_DELIVERYcase v1pb.Setting_SCHEMA_TEMPLATE:return storepb.SettingName_SCHEMA_TEMPLATEcase v1pb.Setting_DATA_CLASSIFICATION:@@ -1121,175 +1031,6 @@ func validateApprovalTemplate(template *v1pb.ApprovalTemplate) error {return nil}-func (s *SettingService) sendTestEmail(ctx context.Context, value *v1pb.SMTPMailDeliverySettingValue) error {- if value.Password == nil {- return status.Errorf(codes.InvalidArgument, "password is required when sending test email")- }- if value.To == "" {- return status.Errorf(codes.InvalidArgument, "to is required when sending test email")- }- if value.From == "" {- return status.Errorf(codes.InvalidArgument, "from is required when sending test email")- }-- consoleRedirectURL := "www.bytebase.com"- setting, err := s.store.GetWorkspaceGeneralSetting(ctx)- if err != nil {- return status.Errorf(codes.Internal, "failed to get workspace profile setting: %v", err)- }- if setting.ExternalUrl != "" {- consoleRedirectURL = setting.ExternalUrl- }-- email := mail.NewEmailMsg()-- logoFull, err := testEmailFs.ReadFile("mail_templates/testmail/statics/logo-full.png")- if err != nil {- return status.Errorf(codes.Internal, "failed to read logo-full.png: %v", err)- }- banner, err := testEmailFs.ReadFile("mail_templates/testmail/statics/banner.png")- if err != nil {- return status.Errorf(codes.Internal, "failed to read banner.png: %v", err)- }- mailHTMLBody, err := testEmailFs.ReadFile("mail_templates/testmail/template.html")- if err != nil {- return status.Errorf(codes.Internal, "failed to read template.html: %v", err)- }- logoFullReader := bytes.NewReader(logoFull)- bannerReader := bytes.NewReader(banner)- logoFullFileName, err := email.Attach(logoFullReader, "logo-full.png", "image/png")- if err != nil {- return status.Errorf(codes.Internal, "failed to attach logo-full.png: %v", err)- }- bannerFileName, err := email.Attach(bannerReader, "banner.png", "image/png")- if err != nil {- return status.Errorf(codes.Internal, "failed to attach banner.png: %v", err)- }-- polishHTMLBody := prepareTestMailContent(string(mailHTMLBody), consoleRedirectURL, logoFullFileName, bannerFileName)- email.SetFrom(fmt.Sprintf("Bytebase <%s>", value.From)).AddTo(value.To).SetSubject("Bytebase mail server test").SetBody(polishHTMLBody)- client := mail.NewSMTPClient(value.Server, int(value.Port))- client.SetAuthType(convertToMailSMTPAuthType(value.Authentication)).- SetAuthCredentials(value.Username, *value.Password).- SetEncryptionType(convertToMailSMTPEncryptionType(value.Encryption))-- if err := client.SendMail(email); err != nil {- return status.Errorf(codes.Internal, "failed to send test email: %v", err)- }- return nil-}--func prepareTestMailContent(htmlTemplate, consoleRedirectURL, logoContentID, bannerContentID string) string {- testEmailContent := strings.ReplaceAll(htmlTemplate, "{{BYTEBASE_LOGO_URL}}", fmt.Sprintf("cid:%s", logoContentID))- testEmailContent = strings.ReplaceAll(testEmailContent, "{{BYTEBASE_BANNER_URL}}", fmt.Sprintf("cid:%s", bannerContentID))- testEmailContent = strings.ReplaceAll(testEmailContent, "{{BYTEBASE_CONSOLE_REDIRECT_URL}}", consoleRedirectURL)- return testEmailContent-}--func convertToMailSMTPAuthType(authType v1pb.SMTPMailDeliverySettingValue_Authentication) mail.SMTPAuthType {- switch authType {- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_NONE:- return mail.SMTPAuthTypeNone- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_PLAIN:- return mail.SMTPAuthTypePlain- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_LOGIN:- return mail.SMTPAuthTypeLogin- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_CRAM_MD5:- return mail.SMTPAuthTypeCRAMMD5- }- return mail.SMTPAuthTypeNone-}--func convertToStorePbSMTPAuthType(authType v1pb.SMTPMailDeliverySettingValue_Authentication) storepb.SMTPMailDeliverySetting_Authentication {- switch authType {- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_NONE:- return storepb.SMTPMailDeliverySetting_AUTHENTICATION_NONE- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_PLAIN:- return storepb.SMTPMailDeliverySetting_AUTHENTICATION_PLAIN- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_LOGIN:- return storepb.SMTPMailDeliverySetting_AUTHENTICATION_LOGIN- case v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_CRAM_MD5:- return storepb.SMTPMailDeliverySetting_AUTHENTICATION_CRAM_MD5- }- return storepb.SMTPMailDeliverySetting_AUTHENTICATION_NONE-}--func convertToSMTPAuthType(authType storepb.SMTPMailDeliverySetting_Authentication) v1pb.SMTPMailDeliverySettingValue_Authentication {- switch authType {- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_NONE:- return v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_NONE- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_PLAIN:- return v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_PLAIN- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_LOGIN:- return v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_LOGIN- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_CRAM_MD5:- return v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_CRAM_MD5- }- return v1pb.SMTPMailDeliverySettingValue_AUTHENTICATION_UNSPECIFIED-}--func convertToMailSMTPEncryptionType(encryptionType v1pb.SMTPMailDeliverySettingValue_Encryption) mail.SMTPEncryptionType {- switch encryptionType {- case v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_NONE:- return mail.SMTPEncryptionTypeNone- case v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_STARTTLS:- return mail.SMTPEncryptionTypeSTARTTLS- case v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_SSL_TLS:- return mail.SMTPEncryptionTypeSSLTLS- }- return mail.SMTPEncryptionTypeNone-}--func convertToStorePbSMTPEncryptionType(encryptionType v1pb.SMTPMailDeliverySettingValue_Encryption) storepb.SMTPMailDeliverySetting_Encryption {- switch encryptionType {- case v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_NONE:- return storepb.SMTPMailDeliverySetting_ENCRYPTION_NONE- case v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_STARTTLS:- return storepb.SMTPMailDeliverySetting_ENCRYPTION_STARTTLS- case v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_SSL_TLS:- return storepb.SMTPMailDeliverySetting_ENCRYPTION_SSL_TLS- }- return storepb.SMTPMailDeliverySetting_ENCRYPTION_NONE-}--func convertToSMTPEncryptionType(encryptionType storepb.SMTPMailDeliverySetting_Encryption) v1pb.SMTPMailDeliverySettingValue_Encryption {- switch encryptionType {- case storepb.SMTPMailDeliverySetting_ENCRYPTION_NONE:- return v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_NONE- case storepb.SMTPMailDeliverySetting_ENCRYPTION_STARTTLS:- return v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_STARTTLS- case storepb.SMTPMailDeliverySetting_ENCRYPTION_SSL_TLS:- return v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_SSL_TLS- }- return v1pb.SMTPMailDeliverySettingValue_ENCRYPTION_UNSPECIFIED-}--// stripSensitiveData strips the sensitive data like password from the setting.value.-func stripSensitiveData(setting *v1pb.Setting) (*v1pb.Setting, error) {- settingName, err := common.GetSettingName(setting.Name)- if err != nil {- return nil, err- }- apiSettingName, err := convertStringToSettingName(settingName)- if err != nil {- return nil, err- }- switch apiSettingName {- case storepb.SettingName_WORKSPACE_MAIL_DELIVERY:- mailDeliveryValue, ok := setting.Value.Value.(*v1pb.Value_SmtpMailDeliverySettingValue)- if !ok {- return nil, status.Errorf(codes.InvalidArgument, "invalid setting value type: %T", setting.Value.Value)- }- mailDeliveryValue.SmtpMailDeliverySettingValue.Password = nil- mailDeliveryValue.SmtpMailDeliverySettingValue.Ca = nil- mailDeliveryValue.SmtpMailDeliverySettingValue.Cert = nil- mailDeliveryValue.SmtpMailDeliverySettingValue.Key = nil- setting.Value.Value = mailDeliveryValue- default:- }- return setting, nil-}-func convertSchemaTemplateSetting(template *storepb.SchemaTemplateSetting) (*v1pb.SchemaTemplateSetting, error) {v1Setting := new(v1pb.SchemaTemplateSetting)for _, v := range template.ColumnTypes {diff --git a/backend/migrator/migration/3.7/0023##smtp_clean.sql b/backend/migrator/migration/3.7/0023##smtp_clean.sqlnew file mode 100644index 0000000000..cbb69fad5b--- /dev/null+++ b/backend/migrator/migration/3.7/0023##smtp_clean.sql@@ -0,0 +1 @@+DELETE FROM setting WHERE name = 'WORKSPACE_MAIL_DELIVERY';\ No newline at end of filediff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 1c7299a70a..e8d825c4fa 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -12,7 +12,7 @@ import (func TestLatestVersion(t *testing.T) {files, err := getSortedVersionedFiles()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.7.22"), *files[len(files)-1].version)+ require.Equal(t, semver.MustParse("3.7.23"), *files[len(files)-1].version)}func TestVersionUnique(t *testing.T) {diff --git a/backend/plugin/mail/login_auth.go b/backend/plugin/mail/login_auth.godeleted file mode 100644index a052a1b30a..0000000000--- a/backend/plugin/mail/login_auth.go+++ /dev/null@@ -1,34 +0,0 @@-package mail--import (- "errors"- "net/smtp"-)--type loginAuth struct {- username string- password string-}--// LoginAuth returns an Auth that implements the LOGIN authentication.-func LoginAuth(username, password string) smtp.Auth {- return &loginAuth{username, password}-}--func (*loginAuth) Start(*smtp.ServerInfo) (string, []byte, error) {- return "LOGIN", []byte{}, nil-}--func (la *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {- if more {- switch string(fromServer) {- case "Username:":- return []byte(la.username), nil- case "Password:":- return []byte(la.password), nil- default:- return nil, errors.New("unknown fromServer")- }- }- return nil, nil-}diff --git a/backend/plugin/mail/mail.go b/backend/plugin/mail/mail.godeleted file mode 100644index 497d19d5b8..0000000000--- a/backend/plugin/mail/mail.go+++ /dev/null@@ -1,230 +0,0 @@-// Package mail is a mail delivery plugin based on SMTP.-package mail--// Usage:-// email := NewEmailMsg().SetFrom("Bytebase <[email protected]>").AddTo("Customer <[email protected]>").SetSubject("Test Email Subject").SetBody(`-// <!DOCTYPE html>-// <html>-// <head>-// <title>HTML Test</title>-// </head>-// <body>-// <h1>This is a mail delivery test.</h1>-// </body>-// </html>-// `)-// fmt.Printf("email: %+v\n", email)-// client := NewSMTPClient("smtp.gmail.com", 587)-// client.SetAuthType(SMTPAuthTypePlain)-// client.SetAuthCredentials("[email protected]", "nqxxxxxxxxxxxxxx")-// client.SetEncryptionType(SMTPEncryptionTypeSTARTTLS)-// if err := client.SendMail(email); err != nil {-// t.Fatalf("SendMail failed: %v", err)-// }--import (- "crypto/tls"- "fmt"- "io"- "net/mail"- "net/smtp"-- "github.com/jordan-wright/email"- "github.com/pkg/errors"-)--// Email is the email to be sent.-type Email struct {- err error- from string- subject string-- e *email.Email-}--// NewEmailMsg returns a new email message.-func NewEmailMsg() *Email {- e := &Email{- e: email.NewEmail(),- }- return e-}--// SetFrom sets the from address of the SMTP client.-// Only accept the valid RFC 5322 address, e.g. "Bytebase <[email protected]>".-func (e *Email) SetFrom(from string) *Email {- if e.err != nil {- return e- }- if e.from != "" {- e.err = errors.New("From address already set")- return e- }-- parsedAddr, err := mail.ParseAddress(from)- if err != nil {- e.err = errors.Wrapf(err, "Invalid from address: %s", from)- }- e.from = parsedAddr.Address- e.e.From = parsedAddr.String()- return e-}--// AddTo adds the to address of the SMTP client.-// Only accept the valid RFC 5322 address, e.g. "Bytebase <[email protected]>".-func (e *Email) AddTo(to ...string) *Email {- if e.err != nil {- return e- }- var buf []*mail.Address- for _, toAddress := range to {- parsedAddr, err := mail.ParseAddress(toAddress)- if err != nil {- e.err = errors.Wrapf(err, "Invalid to address: %s", toAddress)- return e- }- buf = append(buf, parsedAddr)- }- for _, addr := range buf {- e.e.To = append(e.e.To, addr.String())- }- return e-}--// SetSubject sets the subject of the SMTP client.-func (e *Email) SetSubject(subject string) *Email {- if e.err != nil {- return e- }- if e.subject != "" {- e.err = errors.New("Subject already set")- return e- }- e.subject = subject- e.e.Subject = subject- return e-}--// SetBody sets the body of the SMTP client. It must be html formatted.-func (e *Email) SetBody(body string) *Email {- e.e.HTML = []byte(body)- return e-}--// The ContentType is the type of the content.-// https://cloud.google.com/appengine/docs/legacy/standard/php/mail/mail-with-headers-attachments.-type ContentType string--const (- // ContentTypeImagePNG is the content type of the file with png extension.- ContentTypeImagePNG ContentType = "image/png"-)--// Attach attaches the file to the email, and returns the filename of the attachment.-// Caller can use filename as content id to reference the attachment in the email body.-func (e *Email) Attach(reader io.Reader, filename string, contentType ContentType) (string, error) {- attachment, err := e.e.Attach(reader, filename, string(contentType))- if err != nil {- return "", err- }- return attachment.Filename, nil-}--// SMTPAuthType is the type of SMTP authentication.-type SMTPAuthType uint--const (- // SMTPAuthTypeNone is the NONE auth type of SMTP.- SMTPAuthTypeNone = iota- // SMTPAuthTypePlain is the PLAIN auth type of SMTP.- SMTPAuthTypePlain- // SMTPAuthTypeLogin is the LOGIN auth type of SMTP.- SMTPAuthTypeLogin- // SMTPAuthTypeCRAMMD5 is the CRAM-MD5 auth type of SMTP.- SMTPAuthTypeCRAMMD5-)--// SMTPEncryptionType is the type of SMTP encryption.-type SMTPEncryptionType uint--const (- // SMTPEncryptionTypeNone is the NONE encrypt type of SMTP.- SMTPEncryptionTypeNone = iota- // SMTPEncryptionTypeSSLTLS is the SSL/TLS encrypt type of SMTP.- SMTPEncryptionTypeSSLTLS- // SMTPEncryptionTypeSTARTTLS is the STARTTLS encrypt type of SMTP.- SMTPEncryptionTypeSTARTTLS-)--// SMTPClient is the client of SMTP.-type SMTPClient struct {- host string- port int- authType SMTPAuthType- username string- password string- encryptionType SMTPEncryptionType-}--// NewSMTPClient returns a new SMTP client.-func NewSMTPClient(host string, port int) *SMTPClient {- return &SMTPClient{- host: host,- port: port,- authType: SMTPAuthTypeNone,- username: "",- password: "",- encryptionType: SMTPEncryptionTypeNone,- }-}--// SendMail sends the email.-func (c *SMTPClient) SendMail(e *Email) error {- if e.err != nil {- return e.err- }-- switch c.encryptionType {- case SMTPEncryptionTypeNone:- return e.e.Send(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth())- case SMTPEncryptionTypeSSLTLS:- return e.e.SendWithTLS(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth(), &tls.Config{ServerName: c.host})- case SMTPEncryptionTypeSTARTTLS:- return e.e.SendWithStartTLS(fmt.Sprintf("%s:%d", c.host, c.port), c.getAuth(), &tls.Config{InsecureSkipVerify: true})- default:- return errors.Errorf("Unknown SMTP encryption type: %d", c.encryptionType)- }-}--// SetAuthType sets the auth type of the SMTP client.-func (c *SMTPClient) SetAuthType(authType SMTPAuthType) *SMTPClient {- c.authType = authType- return c-}--// SetAuthCredentials sets the auth credentials of the SMTP client.-func (c *SMTPClient) SetAuthCredentials(username, password string) *SMTPClient {- c.username = username- c.password = password- return c-}--func (c *SMTPClient) getAuth() smtp.Auth {- switch c.authType {- case SMTPAuthTypeNone:- return nil- case SMTPAuthTypePlain:- return smtp.PlainAuth("", c.username, c.password, c.host)- case SMTPAuthTypeLogin:- return LoginAuth(c.username, c.password)- case SMTPAuthTypeCRAMMD5:- return smtp.CRAMMD5Auth(c.username, c.password)- default:- return nil- }-}--// SetEncryptionType sets the encryption type of the SMTP client.-func (c *SMTPClient) SetEncryptionType(encryptionType SMTPEncryptionType) {- c.encryptionType = encryptionType-}diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex ef96786039..05a71edcb3 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -348,8 +348,7 @@"data-classification": "Data Classification","data-access": "Data Access","audit-log": "Audit Logs",- "custom-roles": "Custom Roles",- "mail-delivery": "Mail Delivery"+ "custom-roles": "Custom Roles"},"profile": {"email": "Email",@@ -708,22 +707,6 @@},"json-format-example": "JSON format example","view-example": "View example"- },- "mail-delivery": {- "description": "Configuring SMTP information will enable users to receive database reports via email, such as slow query weekly reports.",- "field": {- "smtp-server-host": "SMTP Server Host",- "smtp-server-port": "SMTP Server Port",- "from": "From",- "smtp-username": "SMTP Username",- "smtp-password": "SMTP Password",- "send-test-email-to": "Send Test Email To",- "send": "Send",- "authentication-method": "Authentication Method",- "encryption": "Encryption"- },- "updated-tip": "Successfully updated the mail delivery setting",- "tested-tip": "Send successfully, please check the inbox of {address}."}},"remind": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 31467d7ebe..d329b0f298 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -348,8 +348,7 @@"data-classification": "Clasificación de datos","data-access": "Acceso a datos","audit-log": "Registros de auditoría",- "custom-roles": "Roles personalizados",- "mail-delivery": "Entrega de Correo"+ "custom-roles": "Roles personalizados"},"profile": {"email": "Correo electrónico",@@ -708,22 +707,6 @@},"json-format-example": "Ejemplo de formato JSON","view-example": "Ver ejemplo"- },- "mail-delivery": {- "description": "Habilita la entrega de correo para recibir notificaciones por correo electrónico configurando la información del servidor SMTP.",- "field": {- "smtp-server-host": "Servidor SMTP",- "smtp-server-port": "Puerto del servidor SMTP",- "from": "De",- "smtp-username": "Usuario SMTP",- "smtp-password": "Contraseña SMTP",- "send-test-email-to": "Enviar correo de prueba a",- "send": "Enviar",- "authentication-method": "Método de Autenticación",- "encryption": "Encriptación"- },- "updated-tip": "Se ha actualizado correctamente la configuración de entrega de correo",- "tested-tip": "Envío realizado con éxito, por favor revise la bandeja de entrada de {address}."}},"remind": {diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 2520850e5b..dc92114abb 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -348,8 +348,7 @@"data-classification": "データ分類","data-access": "データアクセス","audit-log": "監査ログ",- "custom-roles": "カスタムロール",- "mail-delivery": "メール送信"+ "custom-roles": "カスタムロール"},"profile": {"email": "メールアドレス",@@ -708,22 +707,6 @@},"json-format-example": "JSON形式の例","view-example": "サンプルを見る"- },- "mail-delivery": {- "description": "電子メール情報を設定すると、ユーザーはスロー クエリの週次レポートなど、データベース関連のレポートを電子メールで受信できるようになります。",- "field": {- "smtp-server-host": "SMTPサーバーホスト",- "smtp-server-port": "SMTPサーバーポート",- "from": "送信者のアドレス",- "smtp-username": "SMTPユーザー名",- "smtp-password": "SMTPパスワード",- "send-test-email-to": "受信者テストアドレス",- "send": "送信",- "authentication-method": "識別方法",- "encryption": "暗号化"- },- "updated-tip": "メールトランスポート設定が正常に更新されました",- "tested-tip": "正常に送信されました。{address} の受信箱を確認してください。"}},"remind": {diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 4a3015a382..9e02474530 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -348,8 +348,7 @@"data-classification": "Phân loại dữ liệu","data-access": "Truy cập dữ liệu","audit-log": "Nhật ký kiểm tra",- "custom-roles": "Vai trò tùy chỉnh",- "mail-delivery": "Gửi thư"+ "custom-roles": "Vai trò tùy chỉnh"},"profile": {"email": "Email",@@ -708,22 +707,6 @@},"json-format-example": "Ví dụ định dạng JSON","view-example": "Xem ví dụ"- },- "mail-delivery": {- "description": "Định cấu hình thông tin SMTP sẽ cho phép người dùng nhận báo cáo cơ sở dữ liệu qua email, chẳng hạn như báo cáo truy vấn chậm hàng tuần.",- "field": {- "smtp-server-host": "Máy chủ SMTP",- "smtp-server-port": "Cổng máy chủ SMTP",- "from": "Từ",- "smtp-username": "Tên người dùng SMTP",- "smtp-password": "Mật khẩu SMTP",- "send-test-email-to": "Gửi email thử nghiệm đến",- "send": "Gửi",- "authentication-method": "Phương thức xác thực",- "encryption": "Mã hóa"- },- "updated-tip": "Đã cập nhật cài đặt gửi thư thành công",- "tested-tip": "Gửi thành công, vui lòng kiểm tra hộp thư đến của {address}."}},"remind": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex fac8046491..5c67a3f3df 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -348,8 +348,7 @@"data-classification": "数据分类","data-access": "数据访问","audit-log": "审计日志",- "custom-roles": "自定义角色",- "mail-delivery": "邮件发送"+ "custom-roles": "自定义角色"},"profile": {"email": "邮箱",@@ -708,22 +707,6 @@},"json-format-example": "JSON 格式样例","view-example": "查看样例"- },- "mail-delivery": {- "description": "配置邮件信息可以让用户接收到数据库相关报告的电子邮件,如慢查询周报。",- "field": {- "smtp-server-host": "SMTP 服务器主机",- "smtp-server-port": "SMTP 服务器端口",- "from": "发件人地址",- "smtp-username": "SMTP 用户名",- "smtp-password": "SMTP 密码",- "send-test-email-to": "收件人测试地址",- "send": "发送",- "authentication-method": "验证方式",- "encryption": "加密方式"- },- "updated-tip": "邮件传输配置更新成功",- "tested-tip": "发送成功,请检查 {address} 的收件箱。"}},"remind": {diff --git a/frontend/src/router/dashboard/workspace.ts b/frontend/src/router/dashboard/workspace.tsindex 7cea0e4085..12fde28070 100644--- a/frontend/src/router/dashboard/workspace.ts+++ b/frontend/src/router/dashboard/workspace.ts@@ -1,33 +1,32 @@-import { startCase } from "lodash-es";-import type { RouteRecordRaw } from "vue-router";import DummyRootView from "@/DummyRootView";import { t } from "@/plugins/i18n";+import { startCase } from "lodash-es";+import type { RouteRecordRaw } from "vue-router";import {- PROJECT_V1_ROUTE_DASHBOARD,- INSTANCE_ROUTE_DASHBOARD,+ DATABASE_ROUTE_DASHBOARD,ENVIRONMENT_V1_ROUTE_DASHBOARD,+ INSTANCE_ROUTE_DASHBOARD,+ PROJECT_V1_ROUTE_DASHBOARD,WORKSPACE_ROOT_MODULE,+ WORKSPACE_ROUTE_AUDIT_LOG,+ WORKSPACE_ROUTE_CUSTOM_APPROVAL,+ WORKSPACE_ROUTE_DATA_CLASSIFICATION,+ WORKSPACE_ROUTE_GLOBAL_MASKING,+ WORKSPACE_ROUTE_IM,WORKSPACE_ROUTE_LANDING,- WORKSPACE_ROUTE_USER_PROFILE,+ WORKSPACE_ROUTE_MEMBERS,+ WORKSPACE_ROUTE_RISKS,+ WORKSPACE_ROUTE_ROLES,+ WORKSPACE_ROUTE_SCHEMA_TEMPLATE,+ WORKSPACE_ROUTE_SEMANTIC_TYPES,WORKSPACE_ROUTE_SQL_REVIEW,WORKSPACE_ROUTE_SQL_REVIEW_CREATE,WORKSPACE_ROUTE_SQL_REVIEW_DETAIL,- WORKSPACE_ROUTE_SCHEMA_TEMPLATE,- WORKSPACE_ROUTE_CUSTOM_APPROVAL,- WORKSPACE_ROUTE_RISKS,- WORKSPACE_ROUTE_GLOBAL_MASKING,- WORKSPACE_ROUTE_SEMANTIC_TYPES,- WORKSPACE_ROUTE_DATA_CLASSIFICATION,- WORKSPACE_ROUTE_AUDIT_LOG,WORKSPACE_ROUTE_SSO,WORKSPACE_ROUTE_SSO_CREATE,WORKSPACE_ROUTE_SSO_DETAIL,- WORKSPACE_ROUTE_MAIL_DELIVERY,- WORKSPACE_ROUTE_USERS,- WORKSPACE_ROUTE_MEMBERS,- WORKSPACE_ROUTE_ROLES,- WORKSPACE_ROUTE_IM,- DATABASE_ROUTE_DASHBOARD,+ WORKSPACE_ROUTE_USER_PROFILE,+ WORKSPACE_ROUTE_USERS} from "./workspaceRoutes";const rootRoute: RouteRecordRaw = {@@ -302,15 +301,6 @@ const workspaceRoutes: RouteRecordRaw[] = [component: () => import("@/views/SettingWorkspaceAuditLog.vue"),props: true,},- {- path: "mail-delivery",- name: WORKSPACE_ROUTE_MAIL_DELIVERY,- meta: {- title: () => t("settings.sidebar.mail-delivery"),- requiredPermissionList: () => ["bb.settings.get", "bb.settings.set"],- },- component: () => import("@/views/SettingWorkspaceMailDelivery.vue"),- },{path: "users",name: WORKSPACE_ROUTE_USERS,diff --git a/frontend/src/router/dashboard/workspaceRoutes.ts b/frontend/src/router/dashboard/workspaceRoutes.tsindex 51fe9f840d..b025f297c6 100644--- a/frontend/src/router/dashboard/workspaceRoutes.ts+++ b/frontend/src/router/dashboard/workspaceRoutes.ts@@ -21,7 +21,6 @@ export const WORKSPACE_ROUTE_SEMANTIC_TYPES = "workspace.semantic-types";export const WORKSPACE_ROUTE_DATA_CLASSIFICATION ="workspace.data-classification";export const WORKSPACE_ROUTE_AUDIT_LOG = "workspace.audit-log";-export const WORKSPACE_ROUTE_MAIL_DELIVERY = "workspace.mail-delivery";export const WORKSPACE_ROUTE_USERS = "workspace.users";export const WORKSPACE_ROUTE_MEMBERS = "workspace.members";export const WORKSPACE_ROUTE_ROLES = "workspace.roles";diff --git a/frontend/src/store/modules/workspaceMailDeliverySetting.ts b/frontend/src/store/modules/workspaceMailDeliverySetting.tsdeleted file mode 100644index 55925027af..0000000000--- a/frontend/src/store/modules/workspaceMailDeliverySetting.ts+++ /dev/null@@ -1,73 +0,0 @@-import { defineStore } from "pinia";-import { ref } from "vue";-import { settingServiceClient } from "@/grpcweb";-import type {- SMTPMailDeliverySettingValue,- Setting,-} from "@/types/proto/v1/setting_service";-import { Setting_SettingName } from "@/types/proto/v1/setting_service";--const SETTING_NAME = `settings/${Setting_SettingName.WORKSPACE_MAIL_DELIVERY}`;--export const useWorkspaceMailDeliverySettingStore = defineStore(- "workspaceMailDeliverySetting",- () => {- const mailDeliverySetting = ref<SMTPMailDeliverySettingValue>();-- const setMailDeliverySetting = (setting: Setting) => {- const _mailDeliverySetting = setting.value!.smtpMailDeliverySettingValue;- if (_mailDeliverySetting) {- mailDeliverySetting.value = _mailDeliverySetting;- }- };-- const fetchMailDeliverySetting = async () => {- const setting = await settingServiceClient.getSetting(- {- name: SETTING_NAME,- },- {- silent: true,- }- );- setMailDeliverySetting(setting);- };-- const updateMailDeliverySetting = async (- value: SMTPMailDeliverySettingValue- ) => {- const setting = await settingServiceClient.updateSetting({- allowMissing: true,- setting: {- name: SETTING_NAME,- value: {- smtpMailDeliverySettingValue: value,- },- },- });- setMailDeliverySetting(setting);- };-- const validateMailDeliverySetting = async (- value: SMTPMailDeliverySettingValue- ) => {- await settingServiceClient.updateSetting({- allowMissing: true,- setting: {- name: SETTING_NAME,- value: {- smtpMailDeliverySettingValue: value,- },- },- validateOnly: true,- });- };-- return {- mailDeliverySetting,- fetchMailDeliverySetting,- updateMailDeliverySetting,- validateMailDeliverySetting,- };- }-);diff --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 3c8cc1c1df..51d35f9af8 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@@ -4,13 +4,12 @@import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";import type { Message } from "@bufbuild/protobuf";-import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";+import type { Duration, FieldMask } from "@bufbuild/protobuf/wkt";import type { ApprovalTemplate } from "./issue_service_pb";import type { Expr } from "../google/type/expr_pb";import type { Engine } from "./common_pb";import type { ColumnMetadata, TableMetadata } from "./database_service_pb";import type { ColumnCatalog, TableCatalog } from "./database_catalog_service_pb";-import type { PlanType } from "./subscription_service_pb";/*** Describes the file v1/setting_service.proto.@@ -247,11 +246,6 @@ export enum Setting_SettingName {*/PLUGIN_AGENT = 11,- /**- * @generated from enum value: WORKSPACE_MAIL_DELIVERY = 12;- */- WORKSPACE_MAIL_DELIVERY = 12,-/*** @generated from enum value: SCHEMA_TEMPLATE = 13;*/@@ -312,12 +306,6 @@ export declare type Value = Message<"bytebase.v1.Value"> & {*/value: string;case: "stringValue";- } | {- /**- * @generated from field: bytebase.v1.SMTPMailDeliverySettingValue smtp_mail_delivery_setting_value = 2;- */- value: SMTPMailDeliverySettingValue;- case: "smtpMailDeliverySettingValue";} | {/*** @generated from field: bytebase.v1.AppIMSetting app_im_setting_value = 3;@@ -342,12 +330,6 @@ export declare type Value = Message<"bytebase.v1.Value"> & {*/value: WorkspaceApprovalSetting;case: "workspaceApprovalSettingValue";- } | {- /**- * @generated from field: bytebase.v1.WorkspaceTrialSetting workspace_trial_setting_value = 7;- */- value: WorkspaceTrialSetting;- case: "workspaceTrialSettingValue";} | {/*** @generated from field: bytebase.v1.SchemaTemplateSetting schema_template_setting_value = 9;@@ -405,156 +387,6 @@ export declare type Value = Message<"bytebase.v1.Value"> & {*/export declare const ValueSchema: GenMessage<Value>;-/**- * @generated from message bytebase.v1.SMTPMailDeliverySettingValue- */-export declare type SMTPMailDeliverySettingValue = Message<"bytebase.v1.SMTPMailDeliverySettingValue"> & {- /**- * The SMTP server address.- *- * @generated from field: string server = 1;- */- server: string;-- /**- * The SMTP server port.- *- * @generated from field: int32 port = 2;- */- port: number;-- /**- * The SMTP server encryption.- *- * @generated from field: bytebase.v1.SMTPMailDeliverySettingValue.Encryption encryption = 3;- */- encryption: SMTPMailDeliverySettingValue_Encryption;-- /**- * The CA, KEY, and CERT for the SMTP server.- * Not used.- *- * @generated from field: optional string ca = 4;- */- ca?: string;-- /**- * @generated from field: optional string key = 5;- */- key?: string;-- /**- * @generated from field: optional string cert = 6;- */- cert?: string;-- /**- * @generated from field: bytebase.v1.SMTPMailDeliverySettingValue.Authentication authentication = 7;- */- authentication: SMTPMailDeliverySettingValue_Authentication;-- /**- * @generated from field: string username = 8;- */- username: string;-- /**- * If not specified, server will use the existed password.- *- * @generated from field: optional string password = 9;- */- password?: string;-- /**- * The sender email address.- *- * @generated from field: string from = 10;- */- from: string;-- /**- * The recipient email address, used with validate_only to send test email.- *- * @generated from field: string to = 11;- */- to: string;-};--/**- * Describes the message bytebase.v1.SMTPMailDeliverySettingValue.- * Use `create(SMTPMailDeliverySettingValueSchema)` to create a new message.- */-export declare const SMTPMailDeliverySettingValueSchema: GenMessage<SMTPMailDeliverySettingValue>;--/**- * We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.- *- * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption- */-export enum SMTPMailDeliverySettingValue_Encryption {- /**- * @generated from enum value: ENCRYPTION_UNSPECIFIED = 0;- */- UNSPECIFIED = 0,-- /**- * @generated from enum value: ENCRYPTION_NONE = 1;- */- NONE = 1,-- /**- * @generated from enum value: ENCRYPTION_STARTTLS = 2;- */- STARTTLS = 2,-- /**- * @generated from enum value: ENCRYPTION_SSL_TLS = 3;- */- SSL_TLS = 3,-}--/**- * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption.- */-export declare const SMTPMailDeliverySettingValue_EncryptionSchema: GenEnum<SMTPMailDeliverySettingValue_Encryption>;--/**- * We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.- *- * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication- */-export enum SMTPMailDeliverySettingValue_Authentication {- /**- * @generated from enum value: AUTHENTICATION_UNSPECIFIED = 0;- */- UNSPECIFIED = 0,-- /**- * @generated from enum value: AUTHENTICATION_NONE = 1;- */- NONE = 1,-- /**- * @generated from enum value: AUTHENTICATION_PLAIN = 2;- */- PLAIN = 2,-- /**- * @generated from enum value: AUTHENTICATION_LOGIN = 3;- */- LOGIN = 3,-- /**- * @generated from enum value: AUTHENTICATION_CRAM_MD5 = 4;- */- CRAM_MD5 = 4,-}--/**- * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication.- */-export declare const SMTPMailDeliverySettingValue_AuthenticationSchema: GenEnum<SMTPMailDeliverySettingValue_Authentication>;-/*** @generated from message bytebase.v1.AppIMSetting*/@@ -1074,47 +906,6 @@ export declare type SchemaTemplateSetting_TableTemplate = Message<"bytebase.v1.S*/export declare const SchemaTemplateSetting_TableTemplateSchema: GenMessage<SchemaTemplateSetting_TableTemplate>;-/**- * @generated from message bytebase.v1.WorkspaceTrialSetting- */-export declare type WorkspaceTrialSetting = Message<"bytebase.v1.WorkspaceTrialSetting"> & {- /**- * @generated from field: int32 instance_count = 1;- */- instanceCount: number;-- /**- * @generated from field: google.protobuf.Timestamp expire_time = 2;- */- expireTime?: Timestamp;-- /**- * @generated from field: google.protobuf.Timestamp issued_time = 3;- */- issuedTime?: Timestamp;-- /**- * @generated from field: string subject = 4;- */- subject: string;-- /**- * @generated from field: string org_name = 5;- */- orgName: string;-- /**- * @generated from field: bytebase.v1.PlanType plan = 6;- */- plan: PlanType;-};--/**- * Describes the message bytebase.v1.WorkspaceTrialSetting.- * Use `create(WorkspaceTrialSettingSchema)` to create a new message.- */-export declare const WorkspaceTrialSettingSchema: GenMessage<WorkspaceTrialSetting>;-/*** @generated from message bytebase.v1.DataClassificationSetting*/diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.js b/frontend/src/types/proto-es/v1/setting_service_pb.jsindex 1aeb7ea6ba..8b63d25bbc 100644--- a/frontend/src/types/proto-es/v1/setting_service_pb.js+++ b/frontend/src/types/proto-es/v1/setting_service_pb.js@@ -7,20 +7,19 @@ import { file_google_api_annotations } from "../google/api/annotations_pb";import { file_google_api_client } from "../google/api/client_pb";import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";import { file_google_api_resource } from "../google/api/resource_pb";-import { file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";+import { file_google_protobuf_duration, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";import { file_google_type_expr } from "../google/type/expr_pb";import { file_v1_annotation } from "./annotation_pb";import { file_v1_common } from "./common_pb";import { file_v1_database_catalog_service } from "./database_catalog_service_pb";import { file_v1_database_service } from "./database_service_pb";import { file_v1_issue_service } from "./issue_service_pb";-import { file_v1_subscription_service } from "./subscription_service_pb";/*** Describes the file v1/setting_service.proto.*/export const file_v1_setting_service = /*@__PURE__*/- fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjwKE0xpc3RTZXR0aW5nc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkiVwoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJAChFHZXRTZXR0aW5nUmVxdWVzdBIrCgRuYW1lGAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vU2V0dGluZyI7ChJHZXRTZXR0aW5nUmVzcG9uc2USJQoHc2V0dGluZxgBIAEoCzIULmJ5dGViYXNlLnYxLlNldHRpbmciogEKFFVwZGF0ZVNldHRpbmdSZXF1ZXN0EisKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nQgTiQQECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2simQQKB1NldHRpbmcSDAoEbmFtZRgBIAEoCRIhCgV2YWx1ZRgCIAEoCzISLmJ5dGViYXNlLnYxLlZhbHVlIq0DCgtTZXR0aW5nTmFtZRIcChhTRVRUSU5HX05BTUVfVU5TUEVDSUZJRUQQABIPCgtBVVRIX1NFQ1JFVBABEhEKDUJSQU5ESU5HX0xPR08QAhIQCgxXT1JLU1BBQ0VfSUQQAxIVChFXT1JLU1BBQ0VfUFJPRklMRRAEEhYKEldPUktTUEFDRV9BUFBST1ZBTBAFEh8KG1dPUktTUEFDRV9FWFRFUk5BTF9BUFBST1ZBTBAGEhYKEkVOVEVSUFJJU0VfTElDRU5TRRAHEgoKBkFQUF9JTRAIEg0KCVdBVEVSTUFSSxAJEgYKAkFJEAoSEAoMUExVR0lOX0FHRU5UEAsSGwoXV09SS1NQQUNFX01BSUxfREVMSVZFUlkQDBITCg9TQ0hFTUFfVEVNUExBVEUQDRIXChNEQVRBX0NMQVNTSUZJQ0FUSU9OEA4SEgoOU0VNQU5USUNfVFlQRVMQDxIZChVTUUxfUkVTVUxUX1NJWkVfTElNSVQQEBIICgRTQ0lNEBESGAoUUEFTU1dPUkRfUkVTVFJJQ1RJT04QEhIPCgtFTlZJUk9OTUVOVBATOi3qQSoKFGJ5dGViYXNlLmNvbS9TZXR0aW5nEhJzZXR0aW5ncy97c2V0dGluZ30iowgKBVZhbHVlEhYKDHN0cmluZ192YWx1ZRgBIAEoCUgAElUKIHNtdHBfbWFpbF9kZWxpdmVyeV9zZXR0aW5nX3ZhbHVlGAIgASgLMikuYnl0ZWJhc2UudjEuU01UUE1haWxEZWxpdmVyeVNldHRpbmdWYWx1ZUgAEjkKFGFwcF9pbV9zZXR0aW5nX3ZhbHVlGAMgASgLMhkuYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nSAASRQoaYWdlbnRfcGx1Z2luX3NldHRpbmdfdmFsdWUYBCABKAsyHy5ieXRlYmFzZS52MS5BZ2VudFBsdWdpblNldHRpbmdIABJPCh93b3Jrc3BhY2VfcHJvZmlsZV9zZXR0aW5nX3ZhbHVlGAUgASgLMiQuYnl0ZWJhc2UudjEuV29ya3NwYWNlUHJvZmlsZVNldHRpbmdIABJRCiB3b3Jrc3BhY2VfYXBwcm92YWxfc2V0dGluZ192YWx1ZRgGIAEoCzIlLmJ5dGViYXNlLnYxLldvcmtzcGFjZUFwcHJvdmFsU2V0dGluZ0gAEksKHXdvcmtzcGFjZV90cmlhbF9zZXR0aW5nX3ZhbHVlGAcgASgLMiIuYnl0ZWJhc2UudjEuV29ya3NwYWNlVHJpYWxTZXR0aW5nSAASSwodc2NoZW1hX3RlbXBsYXRlX3NldHRpbmdfdmFsdWUYCSABKAsyIi5ieXRlYmFzZS52MS5TY2hlbWFUZW1wbGF0ZVNldHRpbmdIABJTCiFkYXRhX2NsYXNzaWZpY2F0aW9uX3NldHRpbmdfdmFsdWUYCiABKAsyJi5ieXRlYmFzZS52MS5EYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nSAASRwobc2VtYW50aWNfdHlwZV9zZXR0aW5nX3ZhbHVlGAsgASgLMiAuYnl0ZWJhc2UudjEuU2VtYW50aWNUeXBlU2V0dGluZ0gAElMKH21heGltdW1fc3FsX3Jlc3VsdF9zaXplX3NldHRpbmcYDSABKAsyKC5ieXRlYmFzZS52MS5NYXhpbXVtU1FMUmVzdWx0U2l6ZVNldHRpbmdIABIwCgxzY2ltX3NldHRpbmcYDiABKAsyGC5ieXRlYmFzZS52MS5TQ0lNU2V0dGluZ0gAEk8KHHBhc3N3b3JkX3Jlc3RyaWN0aW9uX3NldHRpbmcYDyABKAsyJy5ieXRlYmFzZS52MS5QYXNzd29yZFJlc3RyaWN0aW9uU2V0dGluZ0gAEiwKCmFpX3NldHRpbmcYECABKAsyFi5ieXRlYmFzZS52MS5BSVNldHRpbmdIABI+ChNlbnZpcm9ubWVudF9zZXR0aW5nGBEgASgLMh8uYnl0ZWJhc2UudjEuRW52aXJvbm1lbnRTZXR0aW5nSABCBwoFdmFsdWUigwUKHFNNVFBNYWlsRGVsaXZlcnlTZXR0aW5nVmFsdWUSDgoGc2VydmVyGAEgASgJEgwKBHBvcnQYAiABKAUSSAoKZW5jcnlwdGlvbhgDIAEoDjI0LmJ5dGViYXNlLnYxLlNNVFBNYWlsRGVsaXZlcnlTZXR0aW5nVmFsdWUuRW5jcnlwdGlvbhIPCgJjYRgEIAEoCUgAiAEBEhAKA2tleRgFIAEoCUgBiAEBEhEKBGNlcnQYBiABKAlIAogBARJQCg5hdXRoZW50aWNhdGlvbhgHIAEoDjI4LmJ5dGViYXNlLnYxLlNNVFBNYWlsRGVsaXZlcnlTZXR0aW5nVmFsdWUuQXV0aGVudGljYXRpb24SEAoIdXNlcm5hbWUYCCABKAkSFQoIcGFzc3dvcmQYCSABKAlIA4gBARIMCgRmcm9tGAogASgJEgoKAnRvGAsgASgJIm4KCkVuY3J5cHRpb24SGgoWRU5DUllQVElPTl9VTlNQRUNJRklFRBAAEhMKD0VOQ1JZUFRJT05fTk9ORRABEhcKE0VOQ1JZUFRJT05fU1RBUlRUTFMQAhIWChJFTkNSWVBUSU9OX1NTTF9UTFMQAyKaAQoOQXV0aGVudGljYXRpb24SHgoaQVVUSEVOVElDQVRJT05fVU5TUEVDSUZJRUQQABIXChNBVVRIRU5USUNBVElPTl9OT05FEAESGAoUQVVUSEVOVElDQVRJT05fUExBSU4QAhIYChRBVVRIRU5USUNBVElPTl9MT0dJThADEhsKF0FVVEhFTlRJQ0FUSU9OX0NSQU1fTUQ1EARCBQoDX2NhQgYKBF9rZXlCBwoFX2NlcnRCCwoJX3Bhc3N3b3JkIpMFCgxBcHBJTVNldHRpbmcSLgoFc2xhY2sYASABKAsyHy5ieXRlYmFzZS52MS5BcHBJTVNldHRpbmcuU2xhY2sSMAoGZmVpc2h1GAIgASgLMiAuYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLkZlaXNodRIuCgV3ZWNvbRgDIAEoCzIfLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5XZWNvbRIsCgRsYXJrGAQgASgLMh4uYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLkxhcmsSNAoIZGluZ3RhbGsYBSABKAsyIi5ieXRlYmFzZS52MS5BcHBJTVNldHRpbmcuRGluZ1RhbGsaLQoFU2xhY2sSDwoHZW5hYmxlZBgBIAEoCBITCgV0b2tlbhgCIAEoCUIE4kEBBBpJCgZGZWlzaHUSDwoHZW5hYmxlZBgBIAEoCBIUCgZhcHBfaWQYAiABKAlCBOJBAQQSGAoKYXBwX3NlY3JldBgDIAEoCUIE4kEBBBpdCgVXZWNvbRIPCgdlbmFibGVkGAEgASgIEhUKB2NvcnBfaWQYAiABKAlCBOJBAQQSFgoIYWdlbnRfaWQYAyABKAlCBOJBAQQSFAoGc2VjcmV0GAQgASgJQgTiQQEEGkcKBExhcmsSDwoHZW5hYmxlZBgBIAEoCBIUCgZhcHBfaWQYAiABKAlCBOJBAQQSGAoKYXBwX3NlY3JldBgDIAEoCUIE4kEBBBprCghEaW5nVGFsaxIPCgdlbmFibGVkGAEgASgIEhcKCWNsaWVudF9pZBgCIAEoCUIE4kEBBBIbCg1jbGllbnRfc2VjcmV0GAMgASgJQgTiQQEEEhgKCnJvYm90X2NvZGUYBCABKAlCBOJBAQQiMAoSQWdlbnRQbHVnaW5TZXR0aW5nEgsKA3VybBgBIAEoCRINCgV0b2tlbhgCIAEoCSKqAwoXV29ya3NwYWNlUHJvZmlsZVNldHRpbmcSFAoMZXh0ZXJuYWxfdXJsGAEgASgJEhcKD2Rpc2FsbG93X3NpZ251cBgCIAEoCBITCgtyZXF1aXJlXzJmYRgDIAEoCBIYChBvdXRib3VuZF9pcF9saXN0GAQgAygJEjEKDnRva2VuX2R1cmF0aW9uGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEi8KDGFubm91bmNlbWVudBgHIAEoCzIZLmJ5dGViYXNlLnYxLkFubm91bmNlbWVudBI6ChdtYXhpbXVtX3JvbGVfZXhwaXJhdGlvbhgIIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIPCgdkb21haW5zGAkgAygJEh8KF2VuZm9yY2VfaWRlbnRpdHlfZG9tYWluGAogASgIEj0KFGRhdGFiYXNlX2NoYW5nZV9tb2RlGAsgASgOMh8uYnl0ZWJhc2UudjEuRGF0YWJhc2VDaGFuZ2VNb2RlEiAKGGRpc2FsbG93X3Bhc3N3b3JkX3NpZ25pbhgMIAEoCCLTAQoMQW5ub3VuY2VtZW50EjMKBWxldmVsGAEgASgOMiQuYnl0ZWJhc2UudjEuQW5ub3VuY2VtZW50LkFsZXJ0TGV2ZWwSDAoEdGV4dBgCIAEoCRIMCgRsaW5rGAMgASgJInIKCkFsZXJ0TGV2ZWwSGwoXQUxFUlRfTEVWRUxfVU5TUEVDSUZJRUQQABIUChBBTEVSVF9MRVZFTF9JTkZPEAESFwoTQUxFUlRfTEVWRUxfV0FSTklORxACEhgKFEFMRVJUX0xFVkVMX0NSSVRJQ0FMEAMitAEKGFdvcmtzcGFjZUFwcHJvdmFsU2V0dGluZxI5CgVydWxlcxgBIAMoCzIqLmJ5dGViYXNlLnYxLldvcmtzcGFjZUFwcHJvdmFsU2V0dGluZy5SdWxlGl0KBFJ1bGUSLwoIdGVtcGxhdGUYAiABKAsyHS5ieXRlYmFzZS52MS5BcHByb3ZhbFRlbXBsYXRlEiQKCWNvbmRpdGlvbhgDIAEoCzIRLmdvb2dsZS50eXBlLkV4cHIioAUKFVNjaGVtYVRlbXBsYXRlU2V0dGluZxJJCg9maWVsZF90ZW1wbGF0ZXMYASADKAsyMC5ieXRlYmFzZS52MS5TY2hlbWFUZW1wbGF0ZVNldHRpbmcuRmllbGRUZW1wbGF0ZRJDCgxjb2x1bW5fdHlwZXMYAiADKAsyLS5ieXRlYmFzZS52MS5TY2hlbWFUZW1wbGF0ZVNldHRpbmcuQ29sdW1uVHlwZRJJCg90YWJsZV90ZW1wbGF0ZXMYAyADKAsyMC5ieXRlYmFzZS52MS5TY2hlbWFUZW1wbGF0ZVNldHRpbmcuVGFibGVUZW1wbGF0ZRqsAQoNRmllbGRUZW1wbGF0ZRIKCgJpZBgBIAEoCRIjCgZlbmdpbmUYAiABKA4yEy5ieXRlYmFzZS52MS5FbmdpbmUSEAoIY2F0ZWdvcnkYAyABKAkSKwoGY29sdW1uGAQgASgLMhsuYnl0ZWJhc2UudjEuQ29sdW1uTWV0YWRhdGESKwoHY2F0YWxvZxgFIAEoCzIaLmJ5dGViYXNlLnYxLkNvbHVtbkNhdGFsb2caUQoKQ29sdW1uVHlwZRIjCgZlbmdpbmUYASABKA4yEy5ieXRlYmFzZS52MS5FbmdpbmUSDwoHZW5hYmxlZBgCIAEoCBINCgV0eXBlcxgDIAMoCRqpAQoNVGFibGVUZW1wbGF0ZRIKCgJpZBgBIAEoCRIjCgZlbmdpbmUYAiABKA4yEy5ieXRlYmFzZS52MS5FbmdpbmUSEAoIY2F0ZWdvcnkYAyABKAkSKQoFdGFibGUYBCABKAsyGi5ieXRlYmFzZS52MS5UYWJsZU1ldGFkYXRhEioKB2NhdGFsb2cYBSABKAsyGS5ieXRlYmFzZS52MS5UYWJsZUNhdGFsb2ci2QEKFVdvcmtzcGFjZVRyaWFsU2V0dGluZxIWCg5pbnN0YW5jZV9jb3VudBgBIAEoBRIvCgtleHBpcmVfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLaXNzdWVkX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg8KB3N1YmplY3QYBCABKAkSEAoIb3JnX25hbWUYBSABKAkSIwoEcGxhbhgGIAEoDjIVLmJ5dGViYXNlLnYxLlBsYW5UeXBlIrwFChlEYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nElAKB2NvbmZpZ3MYASADKAsyPy5ieXRlYmFzZS52MS5EYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nLkRhdGFDbGFzc2lmaWNhdGlvbkNvbmZpZxrMBAoYRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnEgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJElUKBmxldmVscxgDIAMoCzJFLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmcuRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnLkxldmVsEmsKDmNsYXNzaWZpY2F0aW9uGAQgAygLMlMuYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZy5EYXRhQ2xhc3NpZmljYXRpb25Db25maWcuQ2xhc3NpZmljYXRpb25FbnRyeRIiChpjbGFzc2lmaWNhdGlvbl9mcm9tX2NvbmZpZxgFIAEoCBo3CgVMZXZlbBIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRpoChJEYXRhQ2xhc3NpZmljYXRpb24SCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSFQoIbGV2ZWxfaWQYBCABKAlIAIgBAUILCglfbGV2ZWxfaWQaiQEKE0NsYXNzaWZpY2F0aW9uRW50cnkSCwoDa2V5GAEgASgJEmEKBXZhbHVlGAIgASgLMlIuYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZy5EYXRhQ2xhc3NpZmljYXRpb25Db25maWcuRGF0YUNsYXNzaWZpY2F0aW9uOgI4ASK+AQoTU2VtYW50aWNUeXBlU2V0dGluZxI8CgV0eXBlcxgBIAMoCzItLmJ5dGViYXNlLnYxLlNlbWFudGljVHlwZVNldHRpbmcuU2VtYW50aWNUeXBlGmkKDFNlbWFudGljVHlwZRIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIpCglhbGdvcml0aG0YBiABKAsyFi5ieXRlYmFzZS52MS5BbGdvcml0aG0i/wQKCUFsZ29yaXRobRI0CglmdWxsX21hc2sYBSABKAsyHy5ieXRlYmFzZS52MS5BbGdvcml0aG0uRnVsbE1hc2tIABI2CgpyYW5nZV9tYXNrGAYgASgLMiAuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLlJhbmdlTWFza0gAEjIKCG1kNV9tYXNrGAcgASgLMh4uYnl0ZWJhc2UudjEuQWxnb3JpdGhtLk1ENU1hc2tIABJBChBpbm5lcl9vdXRlcl9tYXNrGAggASgLMiUuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLklubmVyT3V0ZXJNYXNrSAAaIAoIRnVsbE1hc2sSFAoMc3Vic3RpdHV0aW9uGAEgASgJGn4KCVJhbmdlTWFzaxI2CgZzbGljZXMYASADKAsyJi5ieXRlYmFzZS52MS5BbGdvcml0aG0uUmFuZ2VNYXNrLlNsaWNlGjkKBVNsaWNlEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRIUCgxzdWJzdGl0dXRpb24YAyABKAkaFwoHTUQ1TWFzaxIMCgRzYWx0GAEgASgJGskBCg5Jbm5lck91dGVyTWFzaxISCgpwcmVmaXhfbGVuGAEgASgFEhIKCnN1ZmZpeF9sZW4YAiABKAUSPAoEdHlwZRgDIAEoDjIuLmJ5dGViYXNlLnYxLkFsZ29yaXRobS5Jbm5lck91dGVyTWFzay5NYXNrVHlwZRIUCgxzdWJzdGl0dXRpb24YBCABKAkiOwoITWFza1R5cGUSGQoVTUFTS19UWVBFX1VOU1BFQ0lGSUVEEAASCQoFSU5ORVIQARIJCgVPVVRFUhACQgYKBG1hc2siLAobTWF4aW11bVNRTFJlc3VsdFNpemVTZXR0aW5nEg0KBWxpbWl0GAEgASgDIhwKC1NDSU1TZXR0aW5nEg0KBXRva2VuGAEgASgJIosCChpQYXNzd29yZFJlc3RyaWN0aW9uU2V0dGluZxISCgptaW5fbGVuZ3RoGAEgASgFEhYKDnJlcXVpcmVfbnVtYmVyGAIgASgIEhYKDnJlcXVpcmVfbGV0dGVyGAMgASgIEiAKGHJlcXVpcmVfdXBwZXJjYXNlX2xldHRlchgEIAEoCBIhChlyZXF1aXJlX3NwZWNpYWxfY2hhcmFjdGVyGAUgASgIEi4KJnJlcXVpcmVfcmVzZXRfcGFzc3dvcmRfZm9yX2ZpcnN0X2xvZ2luGAYgASgIEjQKEXBhc3N3b3JkX3JvdGF0aW9uGAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIu8BCglBSVNldHRpbmcSDwoHZW5hYmxlZBgBIAEoCBIxCghwcm92aWRlchgCIAEoDjIfLmJ5dGViYXNlLnYxLkFJU2V0dGluZy5Qcm92aWRlchIQCghlbmRwb2ludBgDIAEoCRIPCgdhcGlfa2V5GAQgASgJEg0KBW1vZGVsGAUgASgJEg8KB3ZlcnNpb24YBiABKAkiWwoIUHJvdmlkZXISGAoUUFJPVklERVJfVU5TUEVDSUZJRUQQABILCgdPUEVOX0FJEAESCgoGQ0xBVURFEAISCgoGR0VNSU5JEAMSEAoMQVpVUkVfT1BFTkFJEAQilwIKEkVudmlyb25tZW50U2V0dGluZxJBCgxlbnZpcm9ubWVudHMYASADKAsyKy5ieXRlYmFzZS52MS5FbnZpcm9ubWVudFNldHRpbmcuRW52aXJvbm1lbnQavQEKC0Vudmlyb25tZW50EhIKBG5hbWUYASABKAlCBOJBAQMSCgoCaWQYAiABKAkSDQoFdGl0bGUYAyABKAkSQwoEdGFncxgEIAMoCzI1LmJ5dGViYXNlLnYxLkVudmlyb25tZW50U2V0dGluZy5FbnZpcm9ubWVudC5UYWdzRW50cnkSDQoFY29sb3IYBSABKAkaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEqVAoSRGF0YWJhc2VDaGFuZ2VNb2RlEiQKIERBVEFCQVNFX0NIQU5HRV9NT0RFX1VOU1BFQ0lGSUVEEAASDAoIUElQRUxJTkUQARIKCgZFRElUT1IQAjKuAwoOU2V0dGluZ1NlcnZpY2UShAEKDExpc3RTZXR0aW5ncxIgLmJ5dGViYXNlLnYxLkxpc3RTZXR0aW5nc1JlcXVlc3QaIS5ieXRlYmFzZS52MS5MaXN0U2V0dGluZ3NSZXNwb25zZSIv2kEAiuowEGJiLnNldHRpbmdzLmxpc3SQ6jABgtPkkwIOEgwvdjEvc2V0dGluZ3MSfwoKR2V0U2V0dGluZxIeLmJ5dGViYXNlLnYxLkdldFNldHRpbmdSZXF1ZXN0GhQuYnl0ZWJhc2UudjEuU2V0dGluZyI72kEEbmFtZYrqMA9iYi5zZXR0aW5ncy5nZXSQ6jABgtPkkwIXEhUvdjEve25hbWU9c2V0dGluZ3MvKn0SkwEKDVVwZGF0ZVNldHRpbmcSIS5ieXRlYmFzZS52MS5VcGRhdGVTZXR0aW5nUmVxdWVzdBoULmJ5dGViYXNlLnYxLlNldHRpbmciSYrqMA9iYi5zZXR0aW5ncy5zZXSQ6jABmOowAYLT5JMCKDoHc2V0dGluZzIdL3YxL3tzZXR0aW5nLm5hbWU9c2V0dGluZ3MvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [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_protobuf_timestamp, file_google_type_expr, file_v1_annotation, file_v1_common, file_v1_database_catalog_service, file_v1_database_service, file_v1_issue_service, file_v1_subscription_service]);+ fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjwKE0xpc3RTZXR0aW5nc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkiVwoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJAChFHZXRTZXR0aW5nUmVxdWVzdBIrCgRuYW1lGAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vU2V0dGluZyI7ChJHZXRTZXR0aW5nUmVzcG9uc2USJQoHc2V0dGluZxgBIAEoCzIULmJ5dGViYXNlLnYxLlNldHRpbmciogEKFFVwZGF0ZVNldHRpbmdSZXF1ZXN0EisKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nQgTiQQECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2si/AMKB1NldHRpbmcSDAoEbmFtZRgBIAEoCRIhCgV2YWx1ZRgCIAEoCzISLmJ5dGViYXNlLnYxLlZhbHVlIpADCgtTZXR0aW5nTmFtZRIcChhTRVRUSU5HX05BTUVfVU5TUEVDSUZJRUQQABIPCgtBVVRIX1NFQ1JFVBABEhEKDUJSQU5ESU5HX0xPR08QAhIQCgxXT1JLU1BBQ0VfSUQQAxIVChFXT1JLU1BBQ0VfUFJPRklMRRAEEhYKEldPUktTUEFDRV9BUFBST1ZBTBAFEh8KG1dPUktTUEFDRV9FWFRFUk5BTF9BUFBST1ZBTBAGEhYKEkVOVEVSUFJJU0VfTElDRU5TRRAHEgoKBkFQUF9JTRAIEg0KCVdBVEVSTUFSSxAJEgYKAkFJEAoSEAoMUExVR0lOX0FHRU5UEAsSEwoPU0NIRU1BX1RFTVBMQVRFEA0SFwoTREFUQV9DTEFTU0lGSUNBVElPThAOEhIKDlNFTUFOVElDX1RZUEVTEA8SGQoVU1FMX1JFU1VMVF9TSVpFX0xJTUlUEBASCAoEU0NJTRAREhgKFFBBU1NXT1JEX1JFU1RSSUNUSU9OEBISDwoLRU5WSVJPTk1FTlQQEzot6kEqChRieXRlYmFzZS5jb20vU2V0dGluZxISc2V0dGluZ3Mve3NldHRpbmd9Iv8GCgVWYWx1ZRIWCgxzdHJpbmdfdmFsdWUYASABKAlIABI5ChRhcHBfaW1fc2V0dGluZ192YWx1ZRgDIAEoCzIZLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZ0gAEkUKGmFnZW50X3BsdWdpbl9zZXR0aW5nX3ZhbHVlGAQgASgLMh8uYnl0ZWJhc2UudjEuQWdlbnRQbHVnaW5TZXR0aW5nSAASTwofd29ya3NwYWNlX3Byb2ZpbGVfc2V0dGluZ192YWx1ZRgFIAEoCzIkLmJ5dGViYXNlLnYxLldvcmtzcGFjZVByb2ZpbGVTZXR0aW5nSAASUQogd29ya3NwYWNlX2FwcHJvdmFsX3NldHRpbmdfdmFsdWUYBiABKAsyJS5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmdIABJLCh1zY2hlbWFfdGVtcGxhdGVfc2V0dGluZ192YWx1ZRgJIAEoCzIiLmJ5dGViYXNlLnYxLlNjaGVtYVRlbXBsYXRlU2V0dGluZ0gAElMKIWRhdGFfY2xhc3NpZmljYXRpb25fc2V0dGluZ192YWx1ZRgKIAEoCzImLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmdIABJHChtzZW1hbnRpY190eXBlX3NldHRpbmdfdmFsdWUYCyABKAsyIC5ieXRlYmFzZS52MS5TZW1hbnRpY1R5cGVTZXR0aW5nSAASUwofbWF4aW11bV9zcWxfcmVzdWx0X3NpemVfc2V0dGluZxgNIAEoCzIoLmJ5dGViYXNlLnYxLk1heGltdW1TUUxSZXN1bHRTaXplU2V0dGluZ0gAEjAKDHNjaW1fc2V0dGluZxgOIAEoCzIYLmJ5dGViYXNlLnYxLlNDSU1TZXR0aW5nSAASTwoccGFzc3dvcmRfcmVzdHJpY3Rpb25fc2V0dGluZxgPIAEoCzInLmJ5dGViYXNlLnYxLlBhc3N3b3JkUmVzdHJpY3Rpb25TZXR0aW5nSAASLAoKYWlfc2V0dGluZxgQIAEoCzIWLmJ5dGViYXNlLnYxLkFJU2V0dGluZ0gAEj4KE2Vudmlyb25tZW50X3NldHRpbmcYESABKAsyHy5ieXRlYmFzZS52MS5FbnZpcm9ubWVudFNldHRpbmdIAEIHCgV2YWx1ZSKTBQoMQXBwSU1TZXR0aW5nEi4KBXNsYWNrGAEgASgLMh8uYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLlNsYWNrEjAKBmZlaXNodRgCIAEoCzIgLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5GZWlzaHUSLgoFd2Vjb20YAyABKAsyHy5ieXRlYmFzZS52MS5BcHBJTVNldHRpbmcuV2Vjb20SLAoEbGFyaxgEIAEoCzIeLmJ5dGViYXNlLnYxLkFwcElNU2V0dGluZy5MYXJrEjQKCGRpbmd0YWxrGAUgASgLMiIuYnl0ZWJhc2UudjEuQXBwSU1TZXR0aW5nLkRpbmdUYWxrGi0KBVNsYWNrEg8KB2VuYWJsZWQYASABKAgSEwoFdG9rZW4YAiABKAlCBOJBAQQaSQoGRmVpc2h1Eg8KB2VuYWJsZWQYASABKAgSFAoGYXBwX2lkGAIgASgJQgTiQQEEEhgKCmFwcF9zZWNyZXQYAyABKAlCBOJBAQQaXQoFV2Vjb20SDwoHZW5hYmxlZBgBIAEoCBIVCgdjb3JwX2lkGAIgASgJQgTiQQEEEhYKCGFnZW50X2lkGAMgASgJQgTiQQEEEhQKBnNlY3JldBgEIAEoCUIE4kEBBBpHCgRMYXJrEg8KB2VuYWJsZWQYASABKAgSFAoGYXBwX2lkGAIgASgJQgTiQQEEEhgKCmFwcF9zZWNyZXQYAyABKAlCBOJBAQQaawoIRGluZ1RhbGsSDwoHZW5hYmxlZBgBIAEoCBIXCgljbGllbnRfaWQYAiABKAlCBOJBAQQSGwoNY2xpZW50X3NlY3JldBgDIAEoCUIE4kEBBBIYCgpyb2JvdF9jb2RlGAQgASgJQgTiQQEEIjAKEkFnZW50UGx1Z2luU2V0dGluZxILCgN1cmwYASABKAkSDQoFdG9rZW4YAiABKAkiqgMKF1dvcmtzcGFjZVByb2ZpbGVTZXR0aW5nEhQKDGV4dGVybmFsX3VybBgBIAEoCRIXCg9kaXNhbGxvd19zaWdudXAYAiABKAgSEwoLcmVxdWlyZV8yZmEYAyABKAgSGAoQb3V0Ym91bmRfaXBfbGlzdBgEIAMoCRIxCg50b2tlbl9kdXJhdGlvbhgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIvCgxhbm5vdW5jZW1lbnQYByABKAsyGS5ieXRlYmFzZS52MS5Bbm5vdW5jZW1lbnQSOgoXbWF4aW11bV9yb2xlX2V4cGlyYXRpb24YCCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SDwoHZG9tYWlucxgJIAMoCRIfChdlbmZvcmNlX2lkZW50aXR5X2RvbWFpbhgKIAEoCBI9ChRkYXRhYmFzZV9jaGFuZ2VfbW9kZRgLIAEoDjIfLmJ5dGViYXNlLnYxLkRhdGFiYXNlQ2hhbmdlTW9kZRIgChhkaXNhbGxvd19wYXNzd29yZF9zaWduaW4YDCABKAgi0wEKDEFubm91bmNlbWVudBIzCgVsZXZlbBgBIAEoDjIkLmJ5dGViYXNlLnYxLkFubm91bmNlbWVudC5BbGVydExldmVsEgwKBHRleHQYAiABKAkSDAoEbGluaxgDIAEoCSJyCgpBbGVydExldmVsEhsKF0FMRVJUX0xFVkVMX1VOU1BFQ0lGSUVEEAASFAoQQUxFUlRfTEVWRUxfSU5GTxABEhcKE0FMRVJUX0xFVkVMX1dBUk5JTkcQAhIYChRBTEVSVF9MRVZFTF9DUklUSUNBTBADIrQBChhXb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcSOQoFcnVsZXMYASADKAsyKi5ieXRlYmFzZS52MS5Xb3Jrc3BhY2VBcHByb3ZhbFNldHRpbmcuUnVsZRpdCgRSdWxlEi8KCHRlbXBsYXRlGAIgASgLMh0uYnl0ZWJhc2UudjEuQXBwcm92YWxUZW1wbGF0ZRIkCgljb25kaXRpb24YAyABKAsyES5nb29nbGUudHlwZS5FeHByIqAFChVTY2hlbWFUZW1wbGF0ZVNldHRpbmcSSQoPZmllbGRfdGVtcGxhdGVzGAEgAygLMjAuYnl0ZWJhc2UudjEuU2NoZW1hVGVtcGxhdGVTZXR0aW5nLkZpZWxkVGVtcGxhdGUSQwoMY29sdW1uX3R5cGVzGAIgAygLMi0uYnl0ZWJhc2UudjEuU2NoZW1hVGVtcGxhdGVTZXR0aW5nLkNvbHVtblR5cGUSSQoPdGFibGVfdGVtcGxhdGVzGAMgAygLMjAuYnl0ZWJhc2UudjEuU2NoZW1hVGVtcGxhdGVTZXR0aW5nLlRhYmxlVGVtcGxhdGUarAEKDUZpZWxkVGVtcGxhdGUSCgoCaWQYASABKAkSIwoGZW5naW5lGAIgASgOMhMuYnl0ZWJhc2UudjEuRW5naW5lEhAKCGNhdGVnb3J5GAMgASgJEisKBmNvbHVtbhgEIAEoCzIbLmJ5dGViYXNlLnYxLkNvbHVtbk1ldGFkYXRhEisKB2NhdGFsb2cYBSABKAsyGi5ieXRlYmFzZS52MS5Db2x1bW5DYXRhbG9nGlEKCkNvbHVtblR5cGUSIwoGZW5naW5lGAEgASgOMhMuYnl0ZWJhc2UudjEuRW5naW5lEg8KB2VuYWJsZWQYAiABKAgSDQoFdHlwZXMYAyADKAkaqQEKDVRhYmxlVGVtcGxhdGUSCgoCaWQYASABKAkSIwoGZW5naW5lGAIgASgOMhMuYnl0ZWJhc2UudjEuRW5naW5lEhAKCGNhdGVnb3J5GAMgASgJEikKBXRhYmxlGAQgASgLMhouYnl0ZWJhc2UudjEuVGFibGVNZXRhZGF0YRIqCgdjYXRhbG9nGAUgASgLMhkuYnl0ZWJhc2UudjEuVGFibGVDYXRhbG9nIrwFChlEYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nElAKB2NvbmZpZ3MYASADKAsyPy5ieXRlYmFzZS52MS5EYXRhQ2xhc3NpZmljYXRpb25TZXR0aW5nLkRhdGFDbGFzc2lmaWNhdGlvbkNvbmZpZxrMBAoYRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnEgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJElUKBmxldmVscxgDIAMoCzJFLmJ5dGViYXNlLnYxLkRhdGFDbGFzc2lmaWNhdGlvblNldHRpbmcuRGF0YUNsYXNzaWZpY2F0aW9uQ29uZmlnLkxldmVsEmsKDmNsYXNzaWZpY2F0aW9uGAQgAygLMlMuYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZy5EYXRhQ2xhc3NpZmljYXRpb25Db25maWcuQ2xhc3NpZmljYXRpb25FbnRyeRIiChpjbGFzc2lmaWNhdGlvbl9mcm9tX2NvbmZpZxgFIAEoCBo3CgVMZXZlbBIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRpoChJEYXRhQ2xhc3NpZmljYXRpb24SCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSFQoIbGV2ZWxfaWQYBCABKAlIAIgBAUILCglfbGV2ZWxfaWQaiQEKE0NsYXNzaWZpY2F0aW9uRW50cnkSCwoDa2V5GAEgASgJEmEKBXZhbHVlGAIgASgLMlIuYnl0ZWJhc2UudjEuRGF0YUNsYXNzaWZpY2F0aW9uU2V0dGluZy5EYXRhQ2xhc3NpZmljYXRpb25Db25maWcuRGF0YUNsYXNzaWZpY2F0aW9uOgI4ASK+AQoTU2VtYW50aWNUeXBlU2V0dGluZxI8CgV0eXBlcxgBIAMoCzItLmJ5dGViYXNlLnYxLlNlbWFudGljVHlwZVNldHRpbmcuU2VtYW50aWNUeXBlGmkKDFNlbWFudGljVHlwZRIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRIpCglhbGdvcml0aG0YBiABKAsyFi5ieXRlYmFzZS52MS5BbGdvcml0aG0i/wQKCUFsZ29yaXRobRI0CglmdWxsX21hc2sYBSABKAsyHy5ieXRlYmFzZS52MS5BbGdvcml0aG0uRnVsbE1hc2tIABI2CgpyYW5nZV9tYXNrGAYgASgLMiAuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLlJhbmdlTWFza0gAEjIKCG1kNV9tYXNrGAcgASgLMh4uYnl0ZWJhc2UudjEuQWxnb3JpdGhtLk1ENU1hc2tIABJBChBpbm5lcl9vdXRlcl9tYXNrGAggASgLMiUuYnl0ZWJhc2UudjEuQWxnb3JpdGhtLklubmVyT3V0ZXJNYXNrSAAaIAoIRnVsbE1hc2sSFAoMc3Vic3RpdHV0aW9uGAEgASgJGn4KCVJhbmdlTWFzaxI2CgZzbGljZXMYASADKAsyJi5ieXRlYmFzZS52MS5BbGdvcml0aG0uUmFuZ2VNYXNrLlNsaWNlGjkKBVNsaWNlEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRIUCgxzdWJzdGl0dXRpb24YAyABKAkaFwoHTUQ1TWFzaxIMCgRzYWx0GAEgASgJGskBCg5Jbm5lck91dGVyTWFzaxISCgpwcmVmaXhfbGVuGAEgASgFEhIKCnN1ZmZpeF9sZW4YAiABKAUSPAoEdHlwZRgDIAEoDjIuLmJ5dGViYXNlLnYxLkFsZ29yaXRobS5Jbm5lck91dGVyTWFzay5NYXNrVHlwZRIUCgxzdWJzdGl0dXRpb24YBCABKAkiOwoITWFza1R5cGUSGQoVTUFTS19UWVBFX1VOU1BFQ0lGSUVEEAASCQoFSU5ORVIQARIJCgVPVVRFUhACQgYKBG1hc2siLAobTWF4aW11bVNRTFJlc3VsdFNpemVTZXR0aW5nEg0KBWxpbWl0GAEgASgDIhwKC1NDSU1TZXR0aW5nEg0KBXRva2VuGAEgASgJIosCChpQYXNzd29yZFJlc3RyaWN0aW9uU2V0dGluZxISCgptaW5fbGVuZ3RoGAEgASgFEhYKDnJlcXVpcmVfbnVtYmVyGAIgASgIEhYKDnJlcXVpcmVfbGV0dGVyGAMgASgIEiAKGHJlcXVpcmVfdXBwZXJjYXNlX2xldHRlchgEIAEoCBIhChlyZXF1aXJlX3NwZWNpYWxfY2hhcmFjdGVyGAUgASgIEi4KJnJlcXVpcmVfcmVzZXRfcGFzc3dvcmRfZm9yX2ZpcnN0X2xvZ2luGAYgASgIEjQKEXBhc3N3b3JkX3JvdGF0aW9uGAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIu8BCglBSVNldHRpbmcSDwoHZW5hYmxlZBgBIAEoCBIxCghwcm92aWRlchgCIAEoDjIfLmJ5dGViYXNlLnYxLkFJU2V0dGluZy5Qcm92aWRlchIQCghlbmRwb2ludBgDIAEoCRIPCgdhcGlfa2V5GAQgASgJEg0KBW1vZGVsGAUgASgJEg8KB3ZlcnNpb24YBiABKAkiWwoIUHJvdmlkZXISGAoUUFJPVklERVJfVU5TUEVDSUZJRUQQABILCgdPUEVOX0FJEAESCgoGQ0xBVURFEAISCgoGR0VNSU5JEAMSEAoMQVpVUkVfT1BFTkFJEAQilwIKEkVudmlyb25tZW50U2V0dGluZxJBCgxlbnZpcm9ubWVudHMYASADKAsyKy5ieXRlYmFzZS52MS5FbnZpcm9ubWVudFNldHRpbmcuRW52aXJvbm1lbnQavQEKC0Vudmlyb25tZW50EhIKBG5hbWUYASABKAlCBOJBAQMSCgoCaWQYAiABKAkSDQoFdGl0bGUYAyABKAkSQwoEdGFncxgEIAMoCzI1LmJ5dGViYXNlLnYxLkVudmlyb25tZW50U2V0dGluZy5FbnZpcm9ubWVudC5UYWdzRW50cnkSDQoFY29sb3IYBSABKAkaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEqVAoSRGF0YWJhc2VDaGFuZ2VNb2RlEiQKIERBVEFCQVNFX0NIQU5HRV9NT0RFX1VOU1BFQ0lGSUVEEAASDAoIUElQRUxJTkUQARIKCgZFRElUT1IQAjKuAwoOU2V0dGluZ1NlcnZpY2UShAEKDExpc3RTZXR0aW5ncxIgLmJ5dGViYXNlLnYxLkxpc3RTZXR0aW5nc1JlcXVlc3QaIS5ieXRlYmFzZS52MS5MaXN0U2V0dGluZ3NSZXNwb25zZSIv2kEAiuowEGJiLnNldHRpbmdzLmxpc3SQ6jABgtPkkwIOEgwvdjEvc2V0dGluZ3MSfwoKR2V0U2V0dGluZxIeLmJ5dGViYXNlLnYxLkdldFNldHRpbmdSZXF1ZXN0GhQuYnl0ZWJhc2UudjEuU2V0dGluZyI72kEEbmFtZYrqMA9iYi5zZXR0aW5ncy5nZXSQ6jABgtPkkwIXEhUvdjEve25hbWU9c2V0dGluZ3MvKn0SkwEKDVVwZGF0ZVNldHRpbmcSIS5ieXRlYmFzZS52MS5VcGRhdGVTZXR0aW5nUmVxdWVzdBoULmJ5dGViYXNlLnYxLlNldHRpbmciSYrqMA9iYi5zZXR0aW5ncy5zZXSQ6jABmOowAYLT5JMCKDoHc2V0dGluZzIdL3YxL3tzZXR0aW5nLm5hbWU9c2V0dGluZ3MvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [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_expr, file_v1_annotation, file_v1_common, file_v1_database_catalog_service, file_v1_database_service, file_v1_issue_service]);/*** Describes the message bytebase.v1.ListSettingsRequest.@@ -83,109 +82,74 @@ export const Setting_SettingName = /*@__PURE__*/export const ValueSchema = /*@__PURE__*/messageDesc(file_v1_setting_service, 6);-/**- * Describes the message bytebase.v1.SMTPMailDeliverySettingValue.- * Use `create(SMTPMailDeliverySettingValueSchema)` to create a new message.- */-export const SMTPMailDeliverySettingValueSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 7);--/**- * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption.- */-export const SMTPMailDeliverySettingValue_EncryptionSchema = /*@__PURE__*/- enumDesc(file_v1_setting_service, 7, 0);--/**- * We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.- *- * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption- */-export const SMTPMailDeliverySettingValue_Encryption = /*@__PURE__*/- tsEnum(SMTPMailDeliverySettingValue_EncryptionSchema);--/**- * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication.- */-export const SMTPMailDeliverySettingValue_AuthenticationSchema = /*@__PURE__*/- enumDesc(file_v1_setting_service, 7, 1);--/**- * We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.- *- * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication- */-export const SMTPMailDeliverySettingValue_Authentication = /*@__PURE__*/- tsEnum(SMTPMailDeliverySettingValue_AuthenticationSchema);-/*** Describes the message bytebase.v1.AppIMSetting.* Use `create(AppIMSettingSchema)` to create a new message.*/export const AppIMSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 8);+ messageDesc(file_v1_setting_service, 7);/*** Describes the message bytebase.v1.AppIMSetting.Slack.* Use `create(AppIMSetting_SlackSchema)` to create a new message.*/export const AppIMSetting_SlackSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 8, 0);+ messageDesc(file_v1_setting_service, 7, 0);/*** Describes the message bytebase.v1.AppIMSetting.Feishu.* Use `create(AppIMSetting_FeishuSchema)` to create a new message.*/export const AppIMSetting_FeishuSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 8, 1);+ messageDesc(file_v1_setting_service, 7, 1);/*** Describes the message bytebase.v1.AppIMSetting.Wecom.* Use `create(AppIMSetting_WecomSchema)` to create a new message.*/export const AppIMSetting_WecomSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 8, 2);+ messageDesc(file_v1_setting_service, 7, 2);/*** Describes the message bytebase.v1.AppIMSetting.Lark.* Use `create(AppIMSetting_LarkSchema)` to create a new message.*/export const AppIMSetting_LarkSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 8, 3);+ messageDesc(file_v1_setting_service, 7, 3);/*** Describes the message bytebase.v1.AppIMSetting.DingTalk.* Use `create(AppIMSetting_DingTalkSchema)` to create a new message.*/export const AppIMSetting_DingTalkSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 8, 4);+ messageDesc(file_v1_setting_service, 7, 4);/*** Describes the message bytebase.v1.AgentPluginSetting.* Use `create(AgentPluginSettingSchema)` to create a new message.*/export const AgentPluginSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 9);+ messageDesc(file_v1_setting_service, 8);/*** Describes the message bytebase.v1.WorkspaceProfileSetting.* Use `create(WorkspaceProfileSettingSchema)` to create a new message.*/export const WorkspaceProfileSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 10);+ messageDesc(file_v1_setting_service, 9);/*** Describes the message bytebase.v1.Announcement.* Use `create(AnnouncementSchema)` to create a new message.*/export const AnnouncementSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 11);+ messageDesc(file_v1_setting_service, 10);/*** Describes the enum bytebase.v1.Announcement.AlertLevel.*/export const Announcement_AlertLevelSchema = /*@__PURE__*/- enumDesc(file_v1_setting_service, 11, 0);+ enumDesc(file_v1_setting_service, 10, 0);/*** We support three levels of AlertLevel: INFO, WARNING, and ERROR.@@ -200,139 +164,132 @@ export const Announcement_AlertLevel = /*@__PURE__*/* Use `create(WorkspaceApprovalSettingSchema)` to create a new message.*/export const WorkspaceApprovalSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 12);+ messageDesc(file_v1_setting_service, 11);/*** Describes the message bytebase.v1.WorkspaceApprovalSetting.Rule.* Use `create(WorkspaceApprovalSetting_RuleSchema)` to create a new message.*/export const WorkspaceApprovalSetting_RuleSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 12, 0);+ messageDesc(file_v1_setting_service, 11, 0);/*** Describes the message bytebase.v1.SchemaTemplateSetting.* Use `create(SchemaTemplateSettingSchema)` to create a new message.*/export const SchemaTemplateSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 13);+ messageDesc(file_v1_setting_service, 12);/*** Describes the message bytebase.v1.SchemaTemplateSetting.FieldTemplate.* Use `create(SchemaTemplateSetting_FieldTemplateSchema)` to create a new message.*/export const SchemaTemplateSetting_FieldTemplateSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 13, 0);+ messageDesc(file_v1_setting_service, 12, 0);/*** Describes the message bytebase.v1.SchemaTemplateSetting.ColumnType.* Use `create(SchemaTemplateSetting_ColumnTypeSchema)` to create a new message.*/export const SchemaTemplateSetting_ColumnTypeSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 13, 1);+ messageDesc(file_v1_setting_service, 12, 1);/*** Describes the message bytebase.v1.SchemaTemplateSetting.TableTemplate.* Use `create(SchemaTemplateSetting_TableTemplateSchema)` to create a new message.*/export const SchemaTemplateSetting_TableTemplateSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 13, 2);--/**- * Describes the message bytebase.v1.WorkspaceTrialSetting.- * Use `create(WorkspaceTrialSettingSchema)` to create a new message.- */-export const WorkspaceTrialSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 14);+ messageDesc(file_v1_setting_service, 12, 2);/*** Describes the message bytebase.v1.DataClassificationSetting.* Use `create(DataClassificationSettingSchema)` to create a new message.*/export const DataClassificationSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 15);+ messageDesc(file_v1_setting_service, 13);/*** Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.* Use `create(DataClassificationSetting_DataClassificationConfigSchema)` to create a new message.*/export const DataClassificationSetting_DataClassificationConfigSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 15, 0);+ messageDesc(file_v1_setting_service, 13, 0);/*** Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level.* Use `create(DataClassificationSetting_DataClassificationConfig_LevelSchema)` to create a new message.*/export const DataClassificationSetting_DataClassificationConfig_LevelSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 15, 0, 0);+ messageDesc(file_v1_setting_service, 13, 0, 0);/*** Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification.* Use `create(DataClassificationSetting_DataClassificationConfig_DataClassificationSchema)` to create a new message.*/export const DataClassificationSetting_DataClassificationConfig_DataClassificationSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 15, 0, 1);+ messageDesc(file_v1_setting_service, 13, 0, 1);/*** Describes the message bytebase.v1.SemanticTypeSetting.* Use `create(SemanticTypeSettingSchema)` to create a new message.*/export const SemanticTypeSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 16);+ messageDesc(file_v1_setting_service, 14);/*** Describes the message bytebase.v1.SemanticTypeSetting.SemanticType.* Use `create(SemanticTypeSetting_SemanticTypeSchema)` to create a new message.*/export const SemanticTypeSetting_SemanticTypeSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 16, 0);+ messageDesc(file_v1_setting_service, 14, 0);/*** Describes the message bytebase.v1.Algorithm.* Use `create(AlgorithmSchema)` to create a new message.*/export const AlgorithmSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 17);+ messageDesc(file_v1_setting_service, 15);/*** Describes the message bytebase.v1.Algorithm.FullMask.* Use `create(Algorithm_FullMaskSchema)` to create a new message.*/export const Algorithm_FullMaskSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 17, 0);+ messageDesc(file_v1_setting_service, 15, 0);/*** Describes the message bytebase.v1.Algorithm.RangeMask.* Use `create(Algorithm_RangeMaskSchema)` to create a new message.*/export const Algorithm_RangeMaskSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 17, 1);+ messageDesc(file_v1_setting_service, 15, 1);/*** Describes the message bytebase.v1.Algorithm.RangeMask.Slice.* Use `create(Algorithm_RangeMask_SliceSchema)` to create a new message.*/export const Algorithm_RangeMask_SliceSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 17, 1, 0);+ messageDesc(file_v1_setting_service, 15, 1, 0);/*** Describes the message bytebase.v1.Algorithm.MD5Mask.* Use `create(Algorithm_MD5MaskSchema)` to create a new message.*/export const Algorithm_MD5MaskSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 17, 2);+ messageDesc(file_v1_setting_service, 15, 2);/*** Describes the message bytebase.v1.Algorithm.InnerOuterMask.* Use `create(Algorithm_InnerOuterMaskSchema)` to create a new message.*/export const Algorithm_InnerOuterMaskSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 17, 3);+ messageDesc(file_v1_setting_service, 15, 3);/*** Describes the enum bytebase.v1.Algorithm.InnerOuterMask.MaskType.*/export const Algorithm_InnerOuterMask_MaskTypeSchema = /*@__PURE__*/- enumDesc(file_v1_setting_service, 17, 3, 0);+ enumDesc(file_v1_setting_service, 15, 3, 0);/*** @generated from enum bytebase.v1.Algorithm.InnerOuterMask.MaskType@@ -345,34 +302,34 @@ export const Algorithm_InnerOuterMask_MaskType = /*@__PURE__*/* Use `create(MaximumSQLResultSizeSettingSchema)` to create a new message.*/export const MaximumSQLResultSizeSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 18);+ messageDesc(file_v1_setting_service, 16);/*** Describes the message bytebase.v1.SCIMSetting.* Use `create(SCIMSettingSchema)` to create a new message.*/export const SCIMSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 19);+ messageDesc(file_v1_setting_service, 17);/*** Describes the message bytebase.v1.PasswordRestrictionSetting.* Use `create(PasswordRestrictionSettingSchema)` to create a new message.*/export const PasswordRestrictionSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 20);+ messageDesc(file_v1_setting_service, 18);/*** Describes the message bytebase.v1.AISetting.* Use `create(AISettingSchema)` to create a new message.*/export const AISettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 21);+ messageDesc(file_v1_setting_service, 19);/*** Describes the enum bytebase.v1.AISetting.Provider.*/export const AISetting_ProviderSchema = /*@__PURE__*/- enumDesc(file_v1_setting_service, 21, 0);+ enumDesc(file_v1_setting_service, 19, 0);/*** @generated from enum bytebase.v1.AISetting.Provider@@ -385,14 +342,14 @@ export const AISetting_Provider = /*@__PURE__*/* Use `create(EnvironmentSettingSchema)` to create a new message.*/export const EnvironmentSettingSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 22);+ messageDesc(file_v1_setting_service, 20);/*** Describes the message bytebase.v1.EnvironmentSetting.Environment.* Use `create(EnvironmentSetting_EnvironmentSchema)` to create a new message.*/export const EnvironmentSetting_EnvironmentSchema = /*@__PURE__*/- messageDesc(file_v1_setting_service, 22, 0);+ messageDesc(file_v1_setting_service, 20, 0);/*** Describes the enum bytebase.v1.DatabaseChangeMode.diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.tsindex d34c76c51a..6f24f69a4d 100644--- a/frontend/src/types/proto/v1/setting_service.ts+++ b/frontend/src/types/proto/v1/setting_service.ts@@ -9,13 +9,11 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";import Long from "long";import { Duration } from "../google/protobuf/duration";import { FieldMask } from "../google/protobuf/field_mask";-import { Timestamp } from "../google/protobuf/timestamp";import { Expr } from "../google/type/expr";import { Engine, engineFromJSON, engineToJSON, engineToNumber } from "./common";import { ColumnCatalog, TableCatalog } from "./database_catalog_service";import { ColumnMetadata, TableMetadata } from "./database_service";import { ApprovalTemplate } from "./issue_service";-import { PlanType, planTypeFromJSON, planTypeToJSON, planTypeToNumber } from "./subscription_service";export const protobufPackage = "bytebase.v1";@@ -159,7 +157,6 @@ export enum Setting_SettingName {WATERMARK = "WATERMARK",AI = "AI",PLUGIN_AGENT = "PLUGIN_AGENT",- WORKSPACE_MAIL_DELIVERY = "WORKSPACE_MAIL_DELIVERY",SCHEMA_TEMPLATE = "SCHEMA_TEMPLATE",DATA_CLASSIFICATION = "DATA_CLASSIFICATION",SEMANTIC_TYPES = "SEMANTIC_TYPES",@@ -208,9 +205,6 @@ export function setting_SettingNameFromJSON(object: any): Setting_SettingName {case 11:case "PLUGIN_AGENT":return Setting_SettingName.PLUGIN_AGENT;- case 12:- case "WORKSPACE_MAIL_DELIVERY":- return Setting_SettingName.WORKSPACE_MAIL_DELIVERY;case 13:case "SCHEMA_TEMPLATE":return Setting_SettingName.SCHEMA_TEMPLATE;@@ -265,8 +259,6 @@ export function setting_SettingNameToJSON(object: Setting_SettingName): string {return "AI";case Setting_SettingName.PLUGIN_AGENT:return "PLUGIN_AGENT";- case Setting_SettingName.WORKSPACE_MAIL_DELIVERY:- return "WORKSPACE_MAIL_DELIVERY";case Setting_SettingName.SCHEMA_TEMPLATE:return "SCHEMA_TEMPLATE";case Setting_SettingName.DATA_CLASSIFICATION:@@ -313,8 +305,6 @@ export function setting_SettingNameToNumber(object: Setting_SettingName): numberreturn 10;case Setting_SettingName.PLUGIN_AGENT:return 11;- case Setting_SettingName.WORKSPACE_MAIL_DELIVERY:- return 12;case Setting_SettingName.SCHEMA_TEMPLATE:return 13;case Setting_SettingName.DATA_CLASSIFICATION:@@ -339,12 +329,10 @@ export function setting_SettingNameToNumber(object: Setting_SettingName): numberexport interface Value {/** Defines this value as being a string value. */stringValue?: string | undefined;- smtpMailDeliverySettingValue?: SMTPMailDeliverySettingValue | undefined;appImSettingValue?: AppIMSetting | undefined;agentPluginSettingValue?: AgentPluginSetting | undefined;workspaceProfileSettingValue?: WorkspaceProfileSetting | undefined;workspaceApprovalSettingValue?: WorkspaceApprovalSetting | undefined;- workspaceTrialSettingValue?: WorkspaceTrialSetting | undefined;schemaTemplateSettingValue?: SchemaTemplateSetting | undefined;dataClassificationSettingValue?: DataClassificationSetting | undefined;semanticTypeSettingValue?: SemanticTypeSetting | undefined;@@ -355,172 +343,6 @@ export interface Value {environmentSetting?: EnvironmentSetting | undefined;}-export interface SMTPMailDeliverySettingValue {- /** The SMTP server address. */- server: string;- /** The SMTP server port. */- port: number;- /** The SMTP server encryption. */- encryption: SMTPMailDeliverySettingValue_Encryption;- /**- * The CA, KEY, and CERT for the SMTP server.- * Not used.- */- ca?: string | undefined;- key?: string | undefined;- cert?: string | undefined;- authentication: SMTPMailDeliverySettingValue_Authentication;- username: string;- /** If not specified, server will use the existed password. */- password?:- | string- | undefined;- /** The sender email address. */- from: string;- /** The recipient email address, used with validate_only to send test email. */- to: string;-}--/** We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS. */-export enum SMTPMailDeliverySettingValue_Encryption {- ENCRYPTION_UNSPECIFIED = "ENCRYPTION_UNSPECIFIED",- ENCRYPTION_NONE = "ENCRYPTION_NONE",- ENCRYPTION_STARTTLS = "ENCRYPTION_STARTTLS",- ENCRYPTION_SSL_TLS = "ENCRYPTION_SSL_TLS",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function sMTPMailDeliverySettingValue_EncryptionFromJSON(object: any): SMTPMailDeliverySettingValue_Encryption {- switch (object) {- case 0:- case "ENCRYPTION_UNSPECIFIED":- return SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED;- case 1:- case "ENCRYPTION_NONE":- return SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_NONE;- case 2:- case "ENCRYPTION_STARTTLS":- return SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_STARTTLS;- case 3:- case "ENCRYPTION_SSL_TLS":- return SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_SSL_TLS;- case -1:- case "UNRECOGNIZED":- default:- return SMTPMailDeliverySettingValue_Encryption.UNRECOGNIZED;- }-}--export function sMTPMailDeliverySettingValue_EncryptionToJSON(object: SMTPMailDeliverySettingValue_Encryption): string {- switch (object) {- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED:- return "ENCRYPTION_UNSPECIFIED";- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_NONE:- return "ENCRYPTION_NONE";- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_STARTTLS:- return "ENCRYPTION_STARTTLS";- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_SSL_TLS:- return "ENCRYPTION_SSL_TLS";- case SMTPMailDeliverySettingValue_Encryption.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export function sMTPMailDeliverySettingValue_EncryptionToNumber(- object: SMTPMailDeliverySettingValue_Encryption,-): number {- switch (object) {- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED:- return 0;- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_NONE:- return 1;- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_STARTTLS:- return 2;- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_SSL_TLS:- return 3;- case SMTPMailDeliverySettingValue_Encryption.UNRECOGNIZED:- default:- return -1;- }-}--/** We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5. */-export enum SMTPMailDeliverySettingValue_Authentication {- AUTHENTICATION_UNSPECIFIED = "AUTHENTICATION_UNSPECIFIED",- AUTHENTICATION_NONE = "AUTHENTICATION_NONE",- AUTHENTICATION_PLAIN = "AUTHENTICATION_PLAIN",- AUTHENTICATION_LOGIN = "AUTHENTICATION_LOGIN",- AUTHENTICATION_CRAM_MD5 = "AUTHENTICATION_CRAM_MD5",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function sMTPMailDeliverySettingValue_AuthenticationFromJSON(- object: any,-): SMTPMailDeliverySettingValue_Authentication {- switch (object) {- case 0:- case "AUTHENTICATION_UNSPECIFIED":- return SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED;- case 1:- case "AUTHENTICATION_NONE":- return SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE;- case 2:- case "AUTHENTICATION_PLAIN":- return SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN;- case 3:- case "AUTHENTICATION_LOGIN":- return SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_LOGIN;- case 4:- case "AUTHENTICATION_CRAM_MD5":- return SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_CRAM_MD5;- case -1:- case "UNRECOGNIZED":- default:- return SMTPMailDeliverySettingValue_Authentication.UNRECOGNIZED;- }-}--export function sMTPMailDeliverySettingValue_AuthenticationToJSON(- object: SMTPMailDeliverySettingValue_Authentication,-): string {- switch (object) {- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED:- return "AUTHENTICATION_UNSPECIFIED";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE:- return "AUTHENTICATION_NONE";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN:- return "AUTHENTICATION_PLAIN";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_LOGIN:- return "AUTHENTICATION_LOGIN";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_CRAM_MD5:- return "AUTHENTICATION_CRAM_MD5";- case SMTPMailDeliverySettingValue_Authentication.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export function sMTPMailDeliverySettingValue_AuthenticationToNumber(- object: SMTPMailDeliverySettingValue_Authentication,-): number {- switch (object) {- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED:- return 0;- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE:- return 1;- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN:- return 2;- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_LOGIN:- return 3;- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_CRAM_MD5:- return 4;- case SMTPMailDeliverySettingValue_Authentication.UNRECOGNIZED:- default:- return -1;- }-}-export interface AppIMSetting {slack: AppIMSetting_Slack | undefined;feishu: AppIMSetting_Feishu | undefined;@@ -719,15 +541,6 @@ export interface SchemaTemplateSetting_TableTemplate {catalog: TableCatalog | undefined;}-export interface WorkspaceTrialSetting {- instanceCount: number;- expireTime: Timestamp | undefined;- issuedTime: Timestamp | undefined;- subject: string;- orgName: string;- plan: PlanType;-}-export interface DataClassificationSetting {configs: DataClassificationSetting_DataClassificationConfig[];}@@ -1478,12 +1291,10 @@ export const Setting: MessageFns<Setting> = {function createBaseValue(): Value {return {stringValue: undefined,- smtpMailDeliverySettingValue: undefined,appImSettingValue: undefined,agentPluginSettingValue: undefined,workspaceProfileSettingValue: undefined,workspaceApprovalSettingValue: undefined,- workspaceTrialSettingValue: undefined,schemaTemplateSettingValue: undefined,dataClassificationSettingValue: undefined,semanticTypeSettingValue: undefined,@@ -1500,9 +1311,6 @@ export const Value: MessageFns<Value> = {if (message.stringValue !== undefined) {writer.uint32(10).string(message.stringValue);}- if (message.smtpMailDeliverySettingValue !== undefined) {- SMTPMailDeliverySettingValue.encode(message.smtpMailDeliverySettingValue, writer.uint32(18).fork()).join();- }if (message.appImSettingValue !== undefined) {AppIMSetting.encode(message.appImSettingValue, writer.uint32(26).fork()).join();}@@ -1515,9 +1323,6 @@ export const Value: MessageFns<Value> = {if (message.workspaceApprovalSettingValue !== undefined) {WorkspaceApprovalSetting.encode(message.workspaceApprovalSettingValue, writer.uint32(50).fork()).join();}- if (message.workspaceTrialSettingValue !== undefined) {- WorkspaceTrialSetting.encode(message.workspaceTrialSettingValue, writer.uint32(58).fork()).join();- }if (message.schemaTemplateSettingValue !== undefined) {SchemaTemplateSetting.encode(message.schemaTemplateSettingValue, writer.uint32(74).fork()).join();}@@ -1560,14 +1365,6 @@ export const Value: MessageFns<Value> = {message.stringValue = reader.string();continue;}- case 2: {- if (tag !== 18) {- break;- }-- message.smtpMailDeliverySettingValue = SMTPMailDeliverySettingValue.decode(reader, reader.uint32());- continue;- }case 3: {if (tag !== 26) {break;@@ -1600,14 +1397,6 @@ export const Value: MessageFns<Value> = {message.workspaceApprovalSettingValue = WorkspaceApprovalSetting.decode(reader, reader.uint32());continue;}- case 7: {- if (tag !== 58) {- break;- }-- message.workspaceTrialSettingValue = WorkspaceTrialSetting.decode(reader, reader.uint32());- continue;- }case 9: {if (tag !== 74) {break;@@ -1684,9 +1473,6 @@ export const Value: MessageFns<Value> = {fromJSON(object: any): Value {return {stringValue: isSet(object.stringValue) ? globalThis.String(object.stringValue) : undefined,- smtpMailDeliverySettingValue: isSet(object.smtpMailDeliverySettingValue)- ? SMTPMailDeliverySettingValue.fromJSON(object.smtpMailDeliverySettingValue)- : undefined,appImSettingValue: isSet(object.appImSettingValue) ? AppIMSetting.fromJSON(object.appImSettingValue) : undefined,agentPluginSettingValue: isSet(object.agentPluginSettingValue)? AgentPluginSetting.fromJSON(object.agentPluginSettingValue)@@ -1697,9 +1483,6 @@ export const Value: MessageFns<Value> = {workspaceApprovalSettingValue: isSet(object.workspaceApprovalSettingValue)? WorkspaceApprovalSetting.fromJSON(object.workspaceApprovalSettingValue): undefined,- workspaceTrialSettingValue: isSet(object.workspaceTrialSettingValue)- ? WorkspaceTrialSetting.fromJSON(object.workspaceTrialSettingValue)- : undefined,schemaTemplateSettingValue: isSet(object.schemaTemplateSettingValue)? SchemaTemplateSetting.fromJSON(object.schemaTemplateSettingValue): undefined,@@ -1728,9 +1511,6 @@ export const Value: MessageFns<Value> = {if (message.stringValue !== undefined) {obj.stringValue = message.stringValue;}- if (message.smtpMailDeliverySettingValue !== undefined) {- obj.smtpMailDeliverySettingValue = SMTPMailDeliverySettingValue.toJSON(message.smtpMailDeliverySettingValue);- }if (message.appImSettingValue !== undefined) {obj.appImSettingValue = AppIMSetting.toJSON(message.appImSettingValue);}@@ -1743,9 +1523,6 @@ export const Value: MessageFns<Value> = {if (message.workspaceApprovalSettingValue !== undefined) {obj.workspaceApprovalSettingValue = WorkspaceApprovalSetting.toJSON(message.workspaceApprovalSettingValue);}- if (message.workspaceTrialSettingValue !== undefined) {- obj.workspaceTrialSettingValue = WorkspaceTrialSetting.toJSON(message.workspaceTrialSettingValue);- }if (message.schemaTemplateSettingValue !== undefined) {obj.schemaTemplateSettingValue = SchemaTemplateSetting.toJSON(message.schemaTemplateSettingValue);}@@ -1779,10 +1556,6 @@ export const Value: MessageFns<Value> = {fromPartial(object: DeepPartial<Value>): Value {const message = createBaseValue();message.stringValue = object.stringValue ?? undefined;- message.smtpMailDeliverySettingValue =- (object.smtpMailDeliverySettingValue !== undefined && object.smtpMailDeliverySettingValue !== null)- ? SMTPMailDeliverySettingValue.fromPartial(object.smtpMailDeliverySettingValue)- : undefined;message.appImSettingValue = (object.appImSettingValue !== undefined && object.appImSettingValue !== null)? AppIMSetting.fromPartial(object.appImSettingValue): undefined;@@ -1798,10 +1571,6 @@ export const Value: MessageFns<Value> = {(object.workspaceApprovalSettingValue !== undefined && object.workspaceApprovalSettingValue !== null)? WorkspaceApprovalSetting.fromPartial(object.workspaceApprovalSettingValue): undefined;- message.workspaceTrialSettingValue =- (object.workspaceTrialSettingValue !== undefined && object.workspaceTrialSettingValue !== null)- ? WorkspaceTrialSetting.fromPartial(object.workspaceTrialSettingValue)- : undefined;message.schemaTemplateSettingValue =(object.schemaTemplateSettingValue !== undefined && object.schemaTemplateSettingValue !== null)? SchemaTemplateSetting.fromPartial(object.schemaTemplateSettingValue)@@ -1835,243 +1604,6 @@ export const Value: MessageFns<Value> = {},};-function createBaseSMTPMailDeliverySettingValue(): SMTPMailDeliverySettingValue {- return {- server: "",- port: 0,- encryption: SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED,- ca: undefined,- key: undefined,- cert: undefined,- authentication: SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED,- username: "",- password: undefined,- from: "",- to: "",- };-}--export const SMTPMailDeliverySettingValue: MessageFns<SMTPMailDeliverySettingValue> = {- encode(message: SMTPMailDeliverySettingValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.server !== "") {- writer.uint32(10).string(message.server);- }- if (message.port !== 0) {- writer.uint32(16).int32(message.port);- }- if (message.encryption !== SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED) {- writer.uint32(24).int32(sMTPMailDeliverySettingValue_EncryptionToNumber(message.encryption));- }- if (message.ca !== undefined) {- writer.uint32(34).string(message.ca);- }- if (message.key !== undefined) {- writer.uint32(42).string(message.key);- }- if (message.cert !== undefined) {- writer.uint32(50).string(message.cert);- }- if (message.authentication !== SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED) {- writer.uint32(56).int32(sMTPMailDeliverySettingValue_AuthenticationToNumber(message.authentication));- }- if (message.username !== "") {- writer.uint32(66).string(message.username);- }- if (message.password !== undefined) {- writer.uint32(74).string(message.password);- }- if (message.from !== "") {- writer.uint32(82).string(message.from);- }- if (message.to !== "") {- writer.uint32(90).string(message.to);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SMTPMailDeliverySettingValue {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSMTPMailDeliverySettingValue();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.server = reader.string();- continue;- }- case 2: {- if (tag !== 16) {- break;- }-- message.port = reader.int32();- continue;- }- case 3: {- if (tag !== 24) {- break;- }-- message.encryption = sMTPMailDeliverySettingValue_EncryptionFromJSON(reader.int32());- continue;- }- case 4: {- if (tag !== 34) {- break;- }-- message.ca = reader.string();- continue;- }- case 5: {- if (tag !== 42) {- break;- }-- message.key = reader.string();- continue;- }- case 6: {- if (tag !== 50) {- break;- }-- message.cert = reader.string();- continue;- }- case 7: {- if (tag !== 56) {- break;- }-- message.authentication = sMTPMailDeliverySettingValue_AuthenticationFromJSON(reader.int32());- continue;- }- case 8: {- if (tag !== 66) {- break;- }-- message.username = reader.string();- continue;- }- case 9: {- if (tag !== 74) {- break;- }-- message.password = reader.string();- continue;- }- case 10: {- if (tag !== 82) {- break;- }-- message.from = reader.string();- continue;- }- case 11: {- if (tag !== 90) {- break;- }-- message.to = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SMTPMailDeliverySettingValue {- return {- server: isSet(object.server) ? globalThis.String(object.server) : "",- port: isSet(object.port) ? globalThis.Number(object.port) : 0,- encryption: isSet(object.encryption)- ? sMTPMailDeliverySettingValue_EncryptionFromJSON(object.encryption)- : SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED,- ca: isSet(object.ca) ? globalThis.String(object.ca) : undefined,- key: isSet(object.key) ? globalThis.String(object.key) : undefined,- cert: isSet(object.cert) ? globalThis.String(object.cert) : undefined,- authentication: isSet(object.authentication)- ? sMTPMailDeliverySettingValue_AuthenticationFromJSON(object.authentication)- : SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED,- username: isSet(object.username) ? globalThis.String(object.username) : "",- password: isSet(object.password) ? globalThis.String(object.password) : undefined,- from: isSet(object.from) ? globalThis.String(object.from) : "",- to: isSet(object.to) ? globalThis.String(object.to) : "",- };- },-- toJSON(message: SMTPMailDeliverySettingValue): unknown {- const obj: any = {};- if (message.server !== "") {- obj.server = message.server;- }- if (message.port !== 0) {- obj.port = Math.round(message.port);- }- if (message.encryption !== SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED) {- obj.encryption = sMTPMailDeliverySettingValue_EncryptionToJSON(message.encryption);- }- if (message.ca !== undefined) {- obj.ca = message.ca;- }- if (message.key !== undefined) {- obj.key = message.key;- }- if (message.cert !== undefined) {- obj.cert = message.cert;- }- if (message.authentication !== SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED) {- obj.authentication = sMTPMailDeliverySettingValue_AuthenticationToJSON(message.authentication);- }- if (message.username !== "") {- obj.username = message.username;- }- if (message.password !== undefined) {- obj.password = message.password;- }- if (message.from !== "") {- obj.from = message.from;- }- if (message.to !== "") {- obj.to = message.to;- }- return obj;- },-- create(base?: DeepPartial<SMTPMailDeliverySettingValue>): SMTPMailDeliverySettingValue {- return SMTPMailDeliverySettingValue.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SMTPMailDeliverySettingValue>): SMTPMailDeliverySettingValue {- const message = createBaseSMTPMailDeliverySettingValue();- message.server = object.server ?? "";- message.port = object.port ?? 0;- message.encryption = object.encryption ?? SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_UNSPECIFIED;- message.ca = object.ca ?? undefined;- message.key = object.key ?? undefined;- message.cert = object.cert ?? undefined;- message.authentication = object.authentication ??- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_UNSPECIFIED;- message.username = object.username ?? "";- message.password = object.password ?? undefined;- message.from = object.from ?? "";- message.to = object.to ?? "";- return message;- },-};-function createBaseAppIMSetting(): AppIMSetting {return { slack: undefined, feishu: undefined, wecom: undefined, lark: undefined, dingtalk: undefined };}@@ -3691,157 +3223,6 @@ export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSetti},};-function createBaseWorkspaceTrialSetting(): WorkspaceTrialSetting {- return {- instanceCount: 0,- expireTime: undefined,- issuedTime: undefined,- subject: "",- orgName: "",- plan: PlanType.PLAN_TYPE_UNSPECIFIED,- };-}--export const WorkspaceTrialSetting: MessageFns<WorkspaceTrialSetting> = {- encode(message: WorkspaceTrialSetting, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.instanceCount !== 0) {- writer.uint32(8).int32(message.instanceCount);- }- if (message.expireTime !== undefined) {- Timestamp.encode(message.expireTime, writer.uint32(18).fork()).join();- }- if (message.issuedTime !== undefined) {- Timestamp.encode(message.issuedTime, writer.uint32(26).fork()).join();- }- if (message.subject !== "") {- writer.uint32(34).string(message.subject);- }- if (message.orgName !== "") {- writer.uint32(42).string(message.orgName);- }- if (message.plan !== PlanType.PLAN_TYPE_UNSPECIFIED) {- writer.uint32(48).int32(planTypeToNumber(message.plan));- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): WorkspaceTrialSetting {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseWorkspaceTrialSetting();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 8) {- break;- }-- message.instanceCount = reader.int32();- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.expireTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.issuedTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 4: {- if (tag !== 34) {- break;- }-- message.subject = reader.string();- continue;- }- case 5: {- if (tag !== 42) {- break;- }-- message.orgName = reader.string();- continue;- }- case 6: {- if (tag !== 48) {- break;- }-- message.plan = planTypeFromJSON(reader.int32());- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): WorkspaceTrialSetting {- return {- instanceCount: isSet(object.instanceCount) ? globalThis.Number(object.instanceCount) : 0,- expireTime: isSet(object.expireTime) ? fromJsonTimestamp(object.expireTime) : undefined,- issuedTime: isSet(object.issuedTime) ? fromJsonTimestamp(object.issuedTime) : undefined,- subject: isSet(object.subject) ? globalThis.String(object.subject) : "",- orgName: isSet(object.orgName) ? globalThis.String(object.orgName) : "",- plan: isSet(object.plan) ? planTypeFromJSON(object.plan) : PlanType.PLAN_TYPE_UNSPECIFIED,- };- },-- toJSON(message: WorkspaceTrialSetting): unknown {- const obj: any = {};- if (message.instanceCount !== 0) {- obj.instanceCount = Math.round(message.instanceCount);- }- if (message.expireTime !== undefined) {- obj.expireTime = fromTimestamp(message.expireTime).toISOString();- }- if (message.issuedTime !== undefined) {- obj.issuedTime = fromTimestamp(message.issuedTime).toISOString();- }- if (message.subject !== "") {- obj.subject = message.subject;- }- if (message.orgName !== "") {- obj.orgName = message.orgName;- }- if (message.plan !== PlanType.PLAN_TYPE_UNSPECIFIED) {- obj.plan = planTypeToJSON(message.plan);- }- return obj;- },-- create(base?: DeepPartial<WorkspaceTrialSetting>): WorkspaceTrialSetting {- return WorkspaceTrialSetting.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<WorkspaceTrialSetting>): WorkspaceTrialSetting {- const message = createBaseWorkspaceTrialSetting();- message.instanceCount = object.instanceCount ?? 0;- message.expireTime = (object.expireTime !== undefined && object.expireTime !== null)- ? Timestamp.fromPartial(object.expireTime)- : undefined;- message.issuedTime = (object.issuedTime !== undefined && object.issuedTime !== null)- ? Timestamp.fromPartial(object.issuedTime)- : undefined;- message.subject = object.subject ?? "";- message.orgName = object.orgName ?? "";- message.plan = object.plan ?? PlanType.PLAN_TYPE_UNSPECIFIED;- return message;- },-};-function createBaseDataClassificationSetting(): DataClassificationSetting {return { configs: [] };}@@ -5916,32 +5297,6 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;-function toTimestamp(date: Date): Timestamp {- const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));- const nanos = (date.getTime() % 1_000) * 1_000_000;- return { seconds, nanos };-}--function fromTimestamp(t: Timestamp): Date {- let millis = (t.seconds.toNumber() || 0) * 1_000;- millis += (t.nanos || 0) / 1_000_000;- return new globalThis.Date(millis);-}--function fromJsonTimestamp(o: any): Timestamp {- if (o instanceof globalThis.Date) {- return toTimestamp(o);- } else if (typeof o === "string") {- return toTimestamp(new globalThis.Date(o));- } else {- return Timestamp.fromJSON(o);- }-}--function numberToLong(number: number) {- return Long.fromNumber(number);-}-function isObject(value: any): boolean {return typeof value === "object" && value !== null;}diff --git a/frontend/src/utils/useDashboardSidebar.ts b/frontend/src/utils/useDashboardSidebar.tsindex 1320c923fd..cb454d71ac 100644--- a/frontend/src/utils/useDashboardSidebar.ts+++ b/frontend/src/utils/useDashboardSidebar.ts@@ -1,17 +1,3 @@-import {- LinkIcon,- HomeIcon,- DatabaseIcon,- WorkflowIcon,- GalleryHorizontalEndIcon,- LayersIcon,- SquareStackIcon,- ShieldCheck,- UsersIcon,- SettingsIcon,-} from "lucide-vue-next";-import { computed, h } from "vue";-import { useRoute } from "vue-router";import type { SidebarItem } from "@/components/v2/Sidebar/CommonSidebar.vue";import { getFlattenRoutes } from "@/components/v2/Sidebar/utils.ts";import { t } from "@/plugins/i18n";@@ -21,31 +7,44 @@ import {ENVIRONMENT_V1_ROUTE_DASHBOARD,INSTANCE_ROUTE_DASHBOARD,PROJECT_V1_ROUTE_DASHBOARD,- WORKSPACE_ROUTE_LANDING,- WORKSPACE_ROUTE_SQL_REVIEW,- WORKSPACE_ROUTE_SCHEMA_TEMPLATE,+ WORKSPACE_ROUTE_AUDIT_LOG,WORKSPACE_ROUTE_CUSTOM_APPROVAL,- WORKSPACE_ROUTE_RISKS,- WORKSPACE_ROUTE_GLOBAL_MASKING,- WORKSPACE_ROUTE_SEMANTIC_TYPES,WORKSPACE_ROUTE_DATA_CLASSIFICATION,- WORKSPACE_ROUTE_AUDIT_LOG,- WORKSPACE_ROUTE_SSO,- WORKSPACE_ROUTE_MAIL_DELIVERY,- WORKSPACE_ROUTE_USERS,+ WORKSPACE_ROUTE_GLOBAL_MASKING,+ WORKSPACE_ROUTE_IM,+ WORKSPACE_ROUTE_LANDING,WORKSPACE_ROUTE_MEMBERS,+ WORKSPACE_ROUTE_RISKS,WORKSPACE_ROUTE_ROLES,+ WORKSPACE_ROUTE_SCHEMA_TEMPLATE,+ WORKSPACE_ROUTE_SEMANTIC_TYPES,+ WORKSPACE_ROUTE_SQL_REVIEW,+ WORKSPACE_ROUTE_SSO,WORKSPACE_ROUTE_USER_PROFILE,- WORKSPACE_ROUTE_IM,+ WORKSPACE_ROUTE_USERS} from "@/router/dashboard/workspaceRoutes";import {+ SETTING_ROUTE_WORKSPACE_ARCHIVE,SETTING_ROUTE_WORKSPACE_GENERAL,SETTING_ROUTE_WORKSPACE_SUBSCRIPTION,- SETTING_ROUTE_WORKSPACE_ARCHIVE,} from "@/router/dashboard/workspaceSetting";import { useAppFeature, usePermissionStore } from "@/store";import { DatabaseChangeMode } from "@/types/proto/v1/setting_service";import { hasWorkspacePermissionV2 } from "@/utils";+import {+ DatabaseIcon,+ GalleryHorizontalEndIcon,+ HomeIcon,+ LayersIcon,+ LinkIcon,+ SettingsIcon,+ ShieldCheck,+ SquareStackIcon,+ UsersIcon,+ WorkflowIcon,+} from "lucide-vue-next";+import { computed, h } from "vue";+import { useRoute } from "vue-router";export interface DashboardSidebarItem extends SidebarItem {navigationId?: string;@@ -249,12 +248,6 @@ export const useDashboardSidebar = () => {name: WORKSPACE_ROUTE_IM,type: "route",},- {- title: t("settings.sidebar.mail-delivery"),- name: WORKSPACE_ROUTE_MAIL_DELIVERY,- type: "route",- hide: true, // TODO: show it until we have a mail delivery requirement.- },],},{diff --git a/frontend/src/views/SettingWorkspaceMailDelivery.vue b/frontend/src/views/SettingWorkspaceMailDelivery.vuedeleted file mode 100644index 247b493fd1..0000000000--- a/frontend/src/views/SettingWorkspaceMailDelivery.vue+++ /dev/null@@ -1,448 +0,0 @@-<template>- <FormLayout>- <template #body>- <div class="w-full space-y-4">- <div class="textinfolabel">- {{ $t("settings.mail-delivery.description") }}- <a- class="normal-link inline-flex items-center"- href="https://docs.bytebase.com/administration/mail-delivery?source=console"- target="__BLANK"- >- {{ $t("common.learn-more") }}- <heroicons-outline:external-link class="w-4 h-4 ml-1" />- </a>- </div>- <div class="w-full flex flex-col gap-y-6">- <!-- Host and Port -->- <div class="w-full flex flex-row gap-4">- <div class="min-w-max w-80">- <div class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.smtp-server-host") }}- <span class="text-red-600">*</span>- </div>- <NInput- v-model:value="state.mailDeliverySetting.server"- class="text-main w-full h-max mt-2"- :placeholder="'smtp.gmail.com'"- />- </div>- <div class="min-w-max w-48">- <div class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.smtp-server-port") }}- <span class="text-red-600">*</span>- </div>- <NInputNumber- id="port"- v-model:value="state.mailDeliverySetting.port"- :show-button="false"- :placeholder="'587'"- :required="true"- name="port"- class="text-main w-full h-max mt-2 rounded-md border-control-border focus:ring-control focus:border-control disabled:bg-gray-50"- />- </div>- </div>- <div class="w-full flex flex-row gap-4">- <div class="min-w-max w-80">- <div class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.from") }}- <span class="text-red-600">*</span>- </div>- <NInput- v-model:value="state.mailDeliverySetting.from"- class="text-main w-full h-max mt-2"- :placeholder="'[email protected]'"- />- </div>- </div>- <!-- Authentication Related -->- <div class="w-full gap-4">- <div class="min-w-max w-80">- <div class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.authentication-method") }}- </div>- <NSelect- class="mt-2"- :value="getSelectedAuthenticationTypeItem"- :options="authenticationTypeOptions"- :virtual-scroll="true"- :fallback-option="false"- @update:value="handleSelectAuthenticationType"- />- </div>- </div>- <!-- Not NONE Authentication-->- <template- v-if="- state.mailDeliverySetting.authentication !==- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE- "- >- <div class="w-full flex flex-row gap-4">- <div class="min-w-max w-80">- <div class="flex flex-row">- <label class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.smtp-username") }}- <span class="text-red-600">*</span>- </label>- </div>- <NInput- v-model:value="state.mailDeliverySetting.username"- class="text-main w-full h-max mt-2"- :placeholder="SYSTEM_BOT_EMAIL"- />- </div>- <div class="min-w-max w-80">- <div class="flex flex-row space-x-2">- <label class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.smtp-password") }}- <span class="text-red-600">*</span>- </label>- <NCheckbox- :label="$t('common.empty')"- :checked="state.useEmptyPassword"- @update:checked="handleToggleUseEmptyPassword"- />- </div>- <BBTextField- v-model:value="state.mailDeliverySetting.password"- class="text-main w-full h-max mt-2"- :disabled="state.useEmptyPassword"- :required="isCreating"- :placeholder="'PASSWORD - INPUT_ONLY'"- />- </div>- </div>- </template>- <!-- Encryption Related -->- <div class="w-full gap-4">- <div class="min-w-max w-80">- <div class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.encryption") }}- </div>- <NSelect- class="mt-2"- :value="getSelectedEncryptionTypeItem"- :options="encryptionTypeOptions"- :virtual-scroll="true"- :fallback-option="false"- @update:value="handleSelectEncryptionType"- />- </div>- </div>- <!-- Test Send Email To Someone -->- <div class="w-full gap-4 flex flex-row">- <div class="min-w-max w-160">- <div class="textlabel pl-1">- {{ $t("settings.mail-delivery.field.send-test-email-to") }}- </div>- <div- class="flex flex-row justify-start items-center mt-2 space-x-4"- >- <NInput- v-model:value="state.testMailTo"- class="text-main h-max w-80"- :placeholder="'[email protected]'"- />- <NButton- type="primary"- :disabled="- state.testMailTo === '' || state.isCreateOrUpdateLoading- "- :loading="state.isSendLoading"- @click.prevent="testMailDeliverySetting"- >- {{ $t("settings.mail-delivery.field.send") }}- </NButton>- <BBSpin v-if="state.isSendLoading" class="ml-2" />- </div>- </div>- </div>- </div>- </div>- </template>- <template #footer>- <div class="flex justify-end items-center">- <NButton- v-if="- !isCreating &&- !isEqual(state.mailDeliverySetting, state.originMailDeliverySetting)- "- @click="discardChanges"- >- {{ $t("common.discard-changes") }}- </NButton>- <NButton- type="primary"- :disabled="!allowMailDeliveryActionButton || state.isSendLoading"- :loading="state.isCreateOrUpdateLoading"- @click.prevent="updateMailDeliverySetting"- >- {{ mailDeliverySettingButtonText }}- </NButton>- </div>- </template>- </FormLayout>-</template>--<script lang="ts" setup>-import { cloneDeep, isEqual } from "lodash-es";-import type { SelectOption } from "naive-ui";-import { NButton, NCheckbox, NInput, NInputNumber, NSelect } from "naive-ui";-import type { ClientError } from "nice-grpc-web";-import { computed, onMounted, reactive } from "vue";-import { useI18n } from "vue-i18n";-import { BBSpin, BBTextField } from "@/bbkit";-import FormLayout from "@/components/v2/Form/FormLayout.vue";-import { pushNotification } from "@/store";-import { useWorkspaceMailDeliverySettingStore } from "@/store/modules/workspaceMailDeliverySetting";-import { SYSTEM_BOT_EMAIL } from "@/types";-import type { SMTPMailDeliverySettingValue } from "@/types/proto/v1/setting_service";-import {- SMTPMailDeliverySettingValue_Authentication,- SMTPMailDeliverySettingValue_Encryption,-} from "@/types/proto/v1/setting_service";--interface LocalState {- originMailDeliverySetting?: SMTPMailDeliverySettingValue;- mailDeliverySetting: SMTPMailDeliverySettingValue;- testMailTo: string;- isSendLoading: boolean;- isCreateOrUpdateLoading: boolean;- useEmptyPassword: boolean;-}--const props = defineProps<{- allowEdit: boolean;-}>();--const { t } = useI18n();--const defaultMailDeliverySetting = function (): SMTPMailDeliverySettingValue {- return {- server: "",- port: 587,- username: "",- password: undefined,- from: "",- authentication:- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN,- encryption: SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_STARTTLS,- to: "",- };-};--const state = reactive<LocalState>({- mailDeliverySetting: defaultMailDeliverySetting(),- testMailTo: "",- isSendLoading: false,- isCreateOrUpdateLoading: false,- useEmptyPassword: false,-});--const store = useWorkspaceMailDeliverySettingStore();--const isCreating = computed(- () => state.originMailDeliverySetting === undefined-);--const discardChanges = () => {- const setting = store.mailDeliverySetting;- state.originMailDeliverySetting = cloneDeep(setting);- if (state.originMailDeliverySetting) {- state.mailDeliverySetting = cloneDeep(state.originMailDeliverySetting!);- }-};--const mailDeliverySettingButtonText = computed(() => {- return isCreating.value ? t("common.create") : t("common.update");-});--const allowMailDeliveryActionButton = computed(() => {- if (!props.allowEdit) {- return false;- }- if (- !state.mailDeliverySetting.server ||- !state.mailDeliverySetting.port ||- !state.mailDeliverySetting.from- ) {- return false;- }-- if (- state.mailDeliverySetting.authentication !==- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE- ) {- if (!state.mailDeliverySetting.username) {- return false;- }- if (!state.useEmptyPassword && !state.mailDeliverySetting.password) {- return false;- }- }-- return true;-});--onMounted(async () => {- try {- await store.fetchMailDeliverySetting();- discardChanges();- } catch {- // nothing- }-});--const updateMailDeliverySetting = async () => {- state.isCreateOrUpdateLoading = true;- const mailDelivery = cloneDeep(state.mailDeliverySetting);- try {- const value = cloneDeep(mailDelivery);- await store.updateMailDeliverySetting(value);- } catch (error) {- state.isCreateOrUpdateLoading = false;- pushNotification({- module: "bytebase",- style: "CRITICAL",- title: `Request error occurred`,- description: (error as ClientError).details,- });- return;- }-- const currentValue = cloneDeep(store.mailDeliverySetting);- state.originMailDeliverySetting = cloneDeep(currentValue);- state.useEmptyPassword = false;- if (state.originMailDeliverySetting) {- state.mailDeliverySetting = cloneDeep(state.originMailDeliverySetting!);- }- state.isCreateOrUpdateLoading = false;- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("settings.mail-delivery.updated-tip"),- });-};--const testMailDeliverySetting = async () => {- state.isSendLoading = true;- const mailDelivery = cloneDeep(state.mailDeliverySetting);- mailDelivery.to = state.testMailTo;- try {- await store.validateMailDeliverySetting(mailDelivery);- } catch (error) {- state.isSendLoading = false;- pushNotification({- module: "bytebase",- style: "CRITICAL",- title: `Request error occurred`,- description: (error as ClientError).details,- });- return;- }- state.isSendLoading = false;- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("settings.mail-delivery.tested-tip", { address: mailDelivery.to }),- });-};--const handleSelectEncryptionType = (method: string) => {- switch (method) {- case "NONE":- state.mailDeliverySetting.encryption =- SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_NONE;- break;- case "SSL/TLS":- state.mailDeliverySetting.encryption =- SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_SSL_TLS;- break;- case "STARTTLS":- state.mailDeliverySetting.encryption =- SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_STARTTLS;- break;- default:- state.mailDeliverySetting.encryption =- SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_NONE;- break;- }-};--const encryptionTypeOptions = computed((): SelectOption[] => {- return ["NONE", "SSL/TLS", "STARTTLS"].map((item) => ({- value: item,- label: item,- }));-});--const authenticationTypeOptions = computed((): SelectOption[] => {- return ["NONE", "PLAIN", "LOGIN", "CRAM-MD5"].map((item) => ({- value: item,- label: item,- }));-});--const getSelectedEncryptionTypeItem = computed(() => {- switch (state.mailDeliverySetting.encryption) {- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_NONE:- return "NONE";- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_SSL_TLS:- return "SSL/TLS";- case SMTPMailDeliverySettingValue_Encryption.ENCRYPTION_STARTTLS:- return "STARTTLS";- default:- return "NONE";- }-});--const handleSelectAuthenticationType = (method: string) => {- switch (method) {- case "NONE":- state.mailDeliverySetting.authentication =- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE;- break;- case "PLAIN":- state.mailDeliverySetting.authentication =- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN;- break;- case "LOGIN":- state.mailDeliverySetting.authentication =- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_LOGIN;- break;- case "CRAM-MD5":- state.mailDeliverySetting.authentication =- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_CRAM_MD5;- break;- default:- state.mailDeliverySetting.authentication =- SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN;- break;- }-};-const getSelectedAuthenticationTypeItem = computed(() => {- switch (state.mailDeliverySetting.authentication) {- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE:- return "NONE";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_PLAIN:- return "PLAIN";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_LOGIN:- return "LOGIN";- case SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_CRAM_MD5:- return "CRAM-MD5";- default:- return "PLAIN";- }-});--const handleToggleUseEmptyPassword = (on: boolean) => {- state.useEmptyPassword = on;- if (on) {- state.mailDeliverySetting.password = "";- } else {- state.mailDeliverySetting.password = undefined;- }-};-</script>diff --git a/go.mod b/go.modindex f8350d9c70..c378782192 100644--- a/go.mod+++ b/go.mod@@ -66,7 +66,6 @@ require (github.com/jackc/pgconn v1.14.3github.com/jackc/pgtype v1.14.4github.com/jackc/pgx/v5 v5.7.5- github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatiblegithub.com/labstack/echo-contrib v0.17.4github.com/labstack/echo/v4 v4.13.4github.com/lestrrat-go/jwx/v2 v2.1.6diff --git a/go.sum b/go.sumindex 74dfc489e9..11510780bc 100644--- a/go.sum+++ b/go.sum@@ -1509,8 +1509,6 @@ github.com/jellydator/ttlcache/v3 v3.0.1/go.mod h1:WwTaEmcXQ3MTjOm4bsZoDFiCu/hMvgithub.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=github.com/jmoiron/sqlx v1.3.3/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ=github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=-github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible h1:jdpOPRN1zP63Td1hDQbZW73xKmzDvZHzVdNYxhnTMDA=-github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A=github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex d36faaf340..32e587e639 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -12424,54 +12424,6 @@ components:properties:token:type: string- SMTPMailDeliverySettingValue:- type: object- properties:- server:- type: string- description: The SMTP server address.- port:- type: integer- description: The SMTP server port.- format: int32- encryption:- enum:- - ENCRYPTION_UNSPECIFIED- - ENCRYPTION_NONE- - ENCRYPTION_STARTTLS- - ENCRYPTION_SSL_TLS- type: string- description: The SMTP server encryption.- format: enum- ca:- type: string- description: |-- The CA, KEY, and CERT for the SMTP server.- Not used.- key:- type: string- cert:- type: string- authentication:- enum:- - AUTHENTICATION_UNSPECIFIED- - AUTHENTICATION_NONE- - AUTHENTICATION_PLAIN- - AUTHENTICATION_LOGIN- - AUTHENTICATION_CRAM_MD5- type: string- format: enum- username:- type: string- password:- type: string- description: If not specified, server will use the existed password.- from:- type: string- description: The sender email address.- to:- type: string- description: The recipient email address, used with validate_only to send test email.SQLReviewRule:type: objectproperties:@@ -13950,8 +13902,6 @@ components:stringValue:type: stringdescription: Defines this value as being a string value.- smtpMailDeliverySettingValue:- $ref: '#/components/schemas/SMTPMailDeliverySettingValue'appImSettingValue:$ref: '#/components/schemas/AppIMSetting'agentPluginSettingValue:@@ -13960,8 +13910,6 @@ components:$ref: '#/components/schemas/WorkspaceProfileSetting'workspaceApprovalSettingValue:$ref: '#/components/schemas/WorkspaceApprovalSetting'- workspaceTrialSettingValue:- $ref: '#/components/schemas/WorkspaceTrialSetting'schemaTemplateSettingValue:$ref: '#/components/schemas/SchemaTemplateSetting'dataClassificationSettingValue:@@ -14187,30 +14135,6 @@ components:disallowPasswordSignin:type: booleandescription: Whether to disallow password signin. (Except workspace admins)- WorkspaceTrialSetting:- type: object- properties:- instanceCount:- type: integer- format: int32- expireTime:- type: string- format: date-time- issuedTime:- type: string- format: date-time- subject:- type: string- orgName:- type: string- plan:- enum:- - PLAN_TYPE_UNSPECIFIED- - FREE- - TEAM- - ENTERPRISE- type: string- format: enumtags:- name: ActuatorService- name: AuditLogServicediff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex d724f3b886..7ae068d607 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -271,7 +271,6 @@- [MaximumSQLResultSizeSetting](#bytebase-store-MaximumSQLResultSizeSetting)- [PasswordRestrictionSetting](#bytebase-store-PasswordRestrictionSetting)- [SCIMSetting](#bytebase-store-SCIMSetting)- - [SMTPMailDeliverySetting](#bytebase-store-SMTPMailDeliverySetting)- [SchemaTemplateSetting](#bytebase-store-SchemaTemplateSetting)- [SchemaTemplateSetting.ColumnType](#bytebase-store-SchemaTemplateSetting-ColumnType)- [SchemaTemplateSetting.FieldTemplate](#bytebase-store-SchemaTemplateSetting-FieldTemplate)@@ -286,8 +285,6 @@- [Algorithm.InnerOuterMask.MaskType](#bytebase-store-Algorithm-InnerOuterMask-MaskType)- [Announcement.AlertLevel](#bytebase-store-Announcement-AlertLevel)- [DatabaseChangeMode](#bytebase-store-DatabaseChangeMode)- - [SMTPMailDeliverySetting.Authentication](#bytebase-store-SMTPMailDeliverySetting-Authentication)- - [SMTPMailDeliverySetting.Encryption](#bytebase-store-SMTPMailDeliverySetting-Encryption)- [SettingName](#bytebase-store-SettingName)- [store/sheet.proto](#store_sheet-proto)@@ -4299,30 +4296,6 @@ RestrictIssueCreationForSQLReviewPolicy is the policy configuration for restrict-<a name="bytebase-store-SMTPMailDeliverySetting"></a>--### SMTPMailDeliverySetting----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| server | [string](#string) | | The SMTP server address. |-| port | [int32](#int32) | | The SMTP server port. |-| encryption | [SMTPMailDeliverySetting.Encryption](#bytebase-store-SMTPMailDeliverySetting-Encryption) | | The SMTP server encryption. |-| ca | [string](#string) | | The CA, KEY, and CERT for the SMTP server. |-| key | [string](#string) | | |-| cert | [string](#string) | | |-| authentication | [SMTPMailDeliverySetting.Authentication](#bytebase-store-SMTPMailDeliverySetting-Authentication) | | |-| username | [string](#string) | | |-| password | [string](#string) | | |-| from | [string](#string) | | The sender email address. |------<a name="bytebase-store-SchemaTemplateSetting"></a>### SchemaTemplateSetting@@ -4542,36 +4515,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.-<a name="bytebase-store-SMTPMailDeliverySetting-Authentication"></a>--### SMTPMailDeliverySetting.Authentication-We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and-CRAM-MD5.--| Name | Number | Description |-| ---- | ------ | ----------- |-| AUTHENTICATION_UNSPECIFIED | 0 | |-| AUTHENTICATION_NONE | 1 | |-| AUTHENTICATION_PLAIN | 2 | |-| AUTHENTICATION_LOGIN | 3 | |-| AUTHENTICATION_CRAM_MD5 | 4 | |----<a name="bytebase-store-SMTPMailDeliverySetting-Encryption"></a>--### SMTPMailDeliverySetting.Encryption-We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.--| Name | Number | Description |-| ---- | ------ | ----------- |-| ENCRYPTION_UNSPECIFIED | 0 | |-| ENCRYPTION_NONE | 1 | |-| ENCRYPTION_STARTTLS | 2 | |-| ENCRYPTION_SSL_TLS | 3 | |---<a name="bytebase-store-SettingName"></a>### SettingName@@ -4591,7 +4534,6 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.| WATERMARK | 9 | || AI | 10 | || PLUGIN_AGENT | 11 | |-| WORKSPACE_MAIL_DELIVERY | 12 | || SCHEMA_TEMPLATE | 13 | || DATA_CLASSIFICATION | 14 | || SEMANTIC_TYPES | 15 | |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex e6aa731955..aa253a10f2 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1268,10 +1268,6 @@<a href="#bytebase.store.SCIMSetting"><span class="badge">M</span>SCIMSetting</a></li>- <li>- <a href="#bytebase.store.SMTPMailDeliverySetting"><span class="badge">M</span>SMTPMailDeliverySetting</a>- </li>-<li><a href="#bytebase.store.SchemaTemplateSetting"><span class="badge">M</span>SchemaTemplateSetting</a></li>@@ -1325,14 +1321,6 @@<a href="#bytebase.store.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a></li>- <li>- <a href="#bytebase.store.SMTPMailDeliverySetting.Authentication"><span class="badge">E</span>SMTPMailDeliverySetting.Authentication</a>- </li>-- <li>- <a href="#bytebase.store.SMTPMailDeliverySetting.Encryption"><span class="badge">E</span>SMTPMailDeliverySetting.Encryption</a>- </li>-<li><a href="#bytebase.store.SettingName"><span class="badge">E</span>SettingName</a></li>@@ -11148,93 +11136,6 @@ The default value is 100MB, we will use the default value if the setting not exi- <h3 id="bytebase.store.SMTPMailDeliverySetting">SMTPMailDeliverySetting</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>server</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The SMTP server address. </p></td>- </tr>-- <tr>- <td>port</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The SMTP server port. </p></td>- </tr>-- <tr>- <td>encryption</td>- <td><a href="#bytebase.store.SMTPMailDeliverySetting.Encryption">SMTPMailDeliverySetting.Encryption</a></td>- <td></td>- <td><p>The SMTP server encryption. </p></td>- </tr>-- <tr>- <td>ca</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The CA, KEY, and CERT for the SMTP server. </p></td>- </tr>-- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>cert</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>authentication</td>- <td><a href="#bytebase.store.SMTPMailDeliverySetting.Authentication">SMTPMailDeliverySetting.Authentication</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>from</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The sender email address. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.SchemaTemplateSetting">SchemaTemplateSetting</h3><p></p>@@ -11777,82 +11678,6 @@ Default to this mode.</p></td></tbody></table>- <h3 id="bytebase.store.SMTPMailDeliverySetting.Authentication">SMTPMailDeliverySetting.Authentication</h3>- <p>We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and</p><p>CRAM-MD5.</p>- <table class="enum-table">- <thead>- <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>AUTHENTICATION_PLAIN</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>AUTHENTICATION_LOGIN</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>AUTHENTICATION_CRAM_MD5</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.store.SMTPMailDeliverySetting.Encryption">SMTPMailDeliverySetting.Encryption</h3>- <p>We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.</p>- <table class="enum-table">- <thead>- <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>ENCRYPTION_STARTTLS</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENCRYPTION_SSL_TLS</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-<h3 id="bytebase.store.SettingName">SettingName</h3><p></p><table class="enum-table">@@ -11933,12 +11758,6 @@ Default to this mode.</p></td><td><p></p></td></tr>- <tr>- <td>WORKSPACE_MAIL_DELIVERY</td>- <td>12</td>- <td><p></p></td>- </tr>-<tr><td>SCHEMA_TEMPLATE</td><td>13</td>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 3688e88afc..07802515de 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -205,18 +205,6 @@- [IssueService](#bytebase-v1-IssueService)-- [v1/subscription_service.proto](#v1_subscription_service-proto)- - [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest)- - [PlanConfig](#bytebase-v1-PlanConfig)- - [PlanLimitConfig](#bytebase-v1-PlanLimitConfig)- - [Subscription](#bytebase-v1-Subscription)- - [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest)-- - [PlanFeature](#bytebase-v1-PlanFeature)- - [PlanType](#bytebase-v1-PlanType)-- - [SubscriptionService](#bytebase-v1-SubscriptionService)-- [v1/setting_service.proto](#v1_setting_service-proto)- [AISetting](#bytebase-v1-AISetting)- [AgentPluginSetting](#bytebase-v1-AgentPluginSetting)@@ -248,7 +236,6 @@- [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting)- [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)- [SCIMSetting](#bytebase-v1-SCIMSetting)- - [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue)- [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting)- [SchemaTemplateSetting.ColumnType](#bytebase-v1-SchemaTemplateSetting-ColumnType)- [SchemaTemplateSetting.FieldTemplate](#bytebase-v1-SchemaTemplateSetting-FieldTemplate)@@ -261,14 +248,11 @@- [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting)- [WorkspaceApprovalSetting.Rule](#bytebase-v1-WorkspaceApprovalSetting-Rule)- [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting)- - [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting)- [AISetting.Provider](#bytebase-v1-AISetting-Provider)- [Algorithm.InnerOuterMask.MaskType](#bytebase-v1-Algorithm-InnerOuterMask-MaskType)- [Announcement.AlertLevel](#bytebase-v1-Announcement-AlertLevel)- [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode)- - [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication)- - [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption)- [Setting.SettingName](#bytebase-v1-Setting-SettingName)- [SettingService](#bytebase-v1-SettingService)@@ -682,6 +666,18 @@- [SheetService](#bytebase-v1-SheetService)+- [v1/subscription_service.proto](#v1_subscription_service-proto)+ - [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest)+ - [PlanConfig](#bytebase-v1-PlanConfig)+ - [PlanLimitConfig](#bytebase-v1-PlanLimitConfig)+ - [Subscription](#bytebase-v1-Subscription)+ - [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest)++ - [PlanFeature](#bytebase-v1-PlanFeature)+ - [PlanType](#bytebase-v1-PlanType)++ - [SubscriptionService](#bytebase-v1-SubscriptionService)+- [v1/worksheet_service.proto](#v1_worksheet_service-proto)- [CreateWorksheetRequest](#bytebase-v1-CreateWorksheetRequest)- [DeleteWorksheetRequest](#bytebase-v1-DeleteWorksheetRequest)@@ -3912,210 +3908,6 @@ ANY means approving any node will proceed.-<a name="v1_subscription_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## v1/subscription_service.proto----<a name="bytebase-v1-GetSubscriptionRequest"></a>--### GetSubscriptionRequest--------<a name="bytebase-v1-PlanConfig"></a>--### PlanConfig-PlanConfig represents the configuration for all plans loaded from plan.yaml---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| plans | [PlanLimitConfig](#bytebase-v1-PlanLimitConfig) | repeated | |-| instance_features | [PlanFeature](#bytebase-v1-PlanFeature) | repeated | |-------<a name="bytebase-v1-PlanLimitConfig"></a>--### PlanLimitConfig-PlanLimitConfig represents a single plan's configuration---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| type | [PlanType](#bytebase-v1-PlanType) | | |-| maximum_instance_count | [int32](#int32) | | |-| maximum_seat_count | [int32](#int32) | | |-| features | [PlanFeature](#bytebase-v1-PlanFeature) | repeated | |-------<a name="bytebase-v1-Subscription"></a>--### Subscription----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| seat_count | [int32](#int32) | | |-| instance_count | [int32](#int32) | | |-| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| plan | [PlanType](#bytebase-v1-PlanType) | | |-| trialing | [bool](#bool) | | |-| org_name | [string](#string) | | |-------<a name="bytebase-v1-UpdateSubscriptionRequest"></a>--### UpdateSubscriptionRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| license | [string](#string) | | |---------<a name="bytebase-v1-PlanFeature"></a>--### PlanFeature-PlanFeature represents the available features in Bytebase--| Name | Number | Description |-| ---- | ------ | ----------- |-| FEATURE_UNSPECIFIED | 0 | |-| FEATURE_DATABASE_CHANGE | 1 | Database Change Management |-| FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL | 2 | |-| FEATURE_DECLARATIVE_SCHEMA_MIGRATION | 3 | |-| FEATURE_COMPARE_AND_SYNC_SCHEMA | 4 | |-| FEATURE_ONLINE_SCHEMA_CHANGE | 5 | |-| FEATURE_PRE_DEPLOYMENT_SQL_REVIEW | 6 | |-| FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES | 7 | |-| FEATURE_ONE_CLICK_DATA_ROLLBACK | 8 | |-| FEATURE_MULTI_DATABASE_BATCH_CHANGES | 9 | |-| FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT | 10 | |-| FEATURE_SCHEDULED_ROLLOUT_TIME | 11 | |-| FEATURE_DATABASE_CHANGELOG | 12 | |-| FEATURE_SCHEMA_DRIFT_DETECTION | 13 | |-| FEATURE_CHANGELIST | 14 | |-| FEATURE_SCHEMA_TEMPLATE | 15 | |-| FEATURE_ROLLOUT_POLICY | 16 | |-| FEATURE_WEB_BASED_SQL_EDITOR | 17 | SQL Editor & Development |-| FEATURE_SQL_EDITOR_ADMIN_MODE | 18 | |-| FEATURE_NATURAL_LANGUAGE_TO_SQL | 19 | |-| FEATURE_AI_QUERY_EXPLANATION | 20 | |-| FEATURE_AI_QUERY_SUGGESTIONS | 21 | |-| FEATURE_AUTO_COMPLETE | 22 | |-| FEATURE_SCHEMA_DIAGRAM | 23 | |-| FEATURE_SCHEMA_EDITOR | 24 | |-| FEATURE_DATA_EXPORT | 25 | |-| FEATURE_QUERY_HISTORY | 26 | |-| FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS | 27 | |-| FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION | 28 | |-| FEATURE_BATCH_QUERY | 29 | |-| FEATURE_INSTANCE_READ_ONLY_CONNECTION | 30 | |-| FEATURE_QUERY_POLICY | 31 | |-| FEATURE_RESTRICT_COPYING_DATA | 32 | |-| FEATURE_IAM | 33 | Security & Compliance |-| FEATURE_INSTANCE_SSL_CONNECTION | 34 | |-| FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL | 35 | |-| FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION | 36 | |-| FEATURE_GOOGLE_AND_GITHUB_SSO | 37 | |-| FEATURE_USER_GROUPS | 38 | |-| FEATURE_DISALLOW_SELF_SERVICE_SIGNUP | 39 | |-| FEATURE_DATABASE_SECRET_VARIABLES | 40 | |-| FEATURE_QUERY_DATASOURCE_RESTRICTION | 41 | |-| FEATURE_CUSTOM_INSTANCE_SYNC_TIME | 42 | |-| FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT | 43 | |-| FEATURE_RISK_ASSESSMENT | 44 | |-| FEATURE_APPROVAL_WORKFLOW | 45 | |-| FEATURE_AUDIT_LOG | 46 | |-| FEATURE_ENTERPRISE_SSO | 47 | |-| FEATURE_TWO_FA | 48 | |-| FEATURE_PASSWORD_RESTRICTIONS | 49 | |-| FEATURE_DISALLOW_PASSWORD_SIGNIN | 50 | |-| FEATURE_CUSTOM_ROLES | 51 | |-| FEATURE_REQUEST_ROLE_WORKFLOW | 52 | |-| FEATURE_DATA_MASKING | 53 | |-| FEATURE_DATA_CLASSIFICATION | 54 | |-| FEATURE_SCIM | 55 | |-| FEATURE_DIRECTORY_SYNC | 56 | |-| FEATURE_SIGN_IN_FREQUENCY_CONTROL | 57 | |-| FEATURE_EXTERNAL_SECRET_MANAGER | 58 | |-| FEATURE_USER_EMAIL_DOMAIN_RESTRICTION | 59 | |-| FEATURE_ENVIRONMENT_MANAGEMENT | 60 | Administration & Support |-| FEATURE_IM_NOTIFICATIONS | 61 | |-| FEATURE_TERRAFORM_PROVIDER | 62 | |-| FEATURE_DATABASE_GROUPS | 63 | |-| FEATURE_ENVIRONMENT_TIERS | 64 | |-| FEATURE_DASHBOARD_ANNOUNCEMENT | 65 | |-| FEATURE_API_INTEGRATION_GUIDANCE | 66 | |-| FEATURE_CUSTOM_LOGO | 67 | |-| FEATURE_WATERMARK | 68 | |-| FEATURE_ROADMAP_PRIORITIZATION | 69 | |-| FEATURE_CUSTOM_MSA | 70 | |-| FEATURE_COMMUNITY_SUPPORT | 71 | |-| FEATURE_EMAIL_SUPPORT | 72 | |-| FEATURE_DEDICATED_SUPPORT_WITH_SLA | 73 | |----<a name="bytebase-v1-PlanType"></a>--### PlanType---| Name | Number | Description |-| ---- | ------ | ----------- |-| PLAN_TYPE_UNSPECIFIED | 0 | |-| FREE | 1 | |-| TEAM | 2 | |-| ENTERPRISE | 3 | |--------<a name="bytebase-v1-SubscriptionService"></a>--### SubscriptionService---| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetSubscription | [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | GetSubscription returns the current subscription. If 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. |-| UpdateSubscription | [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | |-----<a name="v1_setting_service-proto"></a><p align="right"><a href="#top">Top</a></p>@@ -4629,31 +4421,6 @@ When paginating, all other parameters provided to `ListSettings` must match the-<a name="bytebase-v1-SMTPMailDeliverySettingValue"></a>--### SMTPMailDeliverySettingValue----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| server | [string](#string) | | The SMTP server address. |-| port | [int32](#int32) | | The SMTP server port. |-| encryption | [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption) | | The SMTP server encryption. |-| ca | [string](#string) | optional | The CA, KEY, and CERT for the SMTP server. Not used. |-| key | [string](#string) | optional | |-| cert | [string](#string) | optional | |-| authentication | [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication) | | |-| username | [string](#string) | | |-| password | [string](#string) | optional | If not specified, server will use the existed password. |-| from | [string](#string) | | The sender email address. |-| to | [string](#string) | | The recipient email address, used with validate_only to send test email. |------<a name="bytebase-v1-SchemaTemplateSetting"></a>### SchemaTemplateSetting@@ -4804,12 +4571,10 @@ The data in setting value.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || string_value | [string](#string) | | Defines this value as being a string value. |-| smtp_mail_delivery_setting_value | [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue) | | || app_im_setting_value | [AppIMSetting](#bytebase-v1-AppIMSetting) | | || agent_plugin_setting_value | [AgentPluginSetting](#bytebase-v1-AgentPluginSetting) | | || workspace_profile_setting_value | [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting) | | || workspace_approval_setting_value | [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting) | | |-| workspace_trial_setting_value | [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting) | | || schema_template_setting_value | [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting) | | || data_classification_setting_value | [DataClassificationSetting](#bytebase-v1-DataClassificationSetting) | | || semantic_type_setting_value | [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting) | | |@@ -4883,26 +4648,6 @@ For examples: (source == "DML" && level == 200) || (source == &#--<a name="bytebase-v1-WorkspaceTrialSetting"></a>--### WorkspaceTrialSetting----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| instance_count | [int32](#int32) | | |-| expire_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| issued_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| subject | [string](#string) | | |-| org_name | [string](#string) | | |-| plan | [PlanType](#bytebase-v1-PlanType) | | |-----@@ -4961,35 +4706,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.-<a name="bytebase-v1-SMTPMailDeliverySettingValue-Authentication"></a>--### SMTPMailDeliverySettingValue.Authentication-We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.--| Name | Number | Description |-| ---- | ------ | ----------- |-| AUTHENTICATION_UNSPECIFIED | 0 | |-| AUTHENTICATION_NONE | 1 | |-| AUTHENTICATION_PLAIN | 2 | |-| AUTHENTICATION_LOGIN | 3 | |-| AUTHENTICATION_CRAM_MD5 | 4 | |----<a name="bytebase-v1-SMTPMailDeliverySettingValue-Encryption"></a>--### SMTPMailDeliverySettingValue.Encryption-We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.--| Name | Number | Description |-| ---- | ------ | ----------- |-| ENCRYPTION_UNSPECIFIED | 0 | |-| ENCRYPTION_NONE | 1 | |-| ENCRYPTION_STARTTLS | 2 | |-| ENCRYPTION_SSL_TLS | 3 | |---<a name="bytebase-v1-Setting-SettingName"></a>### Setting.SettingName@@ -5009,7 +4725,6 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.| WATERMARK | 9 | || AI | 10 | || PLUGIN_AGENT | 11 | |-| WORKSPACE_MAIL_DELIVERY | 12 | || SCHEMA_TEMPLATE | 13 | || DATA_CLASSIFICATION | 14 | || SEMANTIC_TYPES | 15 | |@@ -11002,6 +10717,210 @@ Type of the SheetPayload.+<a name="v1_subscription_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/subscription_service.proto++++<a name="bytebase-v1-GetSubscriptionRequest"></a>++### GetSubscriptionRequest++++++++<a name="bytebase-v1-PlanConfig"></a>++### PlanConfig+PlanConfig represents the configuration for all plans loaded from plan.yaml+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| plans | [PlanLimitConfig](#bytebase-v1-PlanLimitConfig) | repeated | |+| instance_features | [PlanFeature](#bytebase-v1-PlanFeature) | repeated | |+++++++<a name="bytebase-v1-PlanLimitConfig"></a>++### PlanLimitConfig+PlanLimitConfig represents a single plan's configuration+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| type | [PlanType](#bytebase-v1-PlanType) | | |+| maximum_instance_count | [int32](#int32) | | |+| maximum_seat_count | [int32](#int32) | | |+| features | [PlanFeature](#bytebase-v1-PlanFeature) | repeated | |+++++++<a name="bytebase-v1-Subscription"></a>++### Subscription++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| seat_count | [int32](#int32) | | |+| instance_count | [int32](#int32) | | |+| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| plan | [PlanType](#bytebase-v1-PlanType) | | |+| trialing | [bool](#bool) | | |+| org_name | [string](#string) | | |+++++++<a name="bytebase-v1-UpdateSubscriptionRequest"></a>++### UpdateSubscriptionRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| license | [string](#string) | | |+++++++++<a name="bytebase-v1-PlanFeature"></a>++### PlanFeature+PlanFeature represents the available features in Bytebase++| Name | Number | Description |+| ---- | ------ | ----------- |+| FEATURE_UNSPECIFIED | 0 | |+| FEATURE_DATABASE_CHANGE | 1 | Database Change Management |+| FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL | 2 | |+| FEATURE_DECLARATIVE_SCHEMA_MIGRATION | 3 | |+| FEATURE_COMPARE_AND_SYNC_SCHEMA | 4 | |+| FEATURE_ONLINE_SCHEMA_CHANGE | 5 | |+| FEATURE_PRE_DEPLOYMENT_SQL_REVIEW | 6 | |+| FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES | 7 | |+| FEATURE_ONE_CLICK_DATA_ROLLBACK | 8 | |+| FEATURE_MULTI_DATABASE_BATCH_CHANGES | 9 | |+| FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT | 10 | |+| FEATURE_SCHEDULED_ROLLOUT_TIME | 11 | |+| FEATURE_DATABASE_CHANGELOG | 12 | |+| FEATURE_SCHEMA_DRIFT_DETECTION | 13 | |+| FEATURE_CHANGELIST | 14 | |+| FEATURE_SCHEMA_TEMPLATE | 15 | |+| FEATURE_ROLLOUT_POLICY | 16 | |+| FEATURE_WEB_BASED_SQL_EDITOR | 17 | SQL Editor & Development |+| FEATURE_SQL_EDITOR_ADMIN_MODE | 18 | |+| FEATURE_NATURAL_LANGUAGE_TO_SQL | 19 | |+| FEATURE_AI_QUERY_EXPLANATION | 20 | |+| FEATURE_AI_QUERY_SUGGESTIONS | 21 | |+| FEATURE_AUTO_COMPLETE | 22 | |+| FEATURE_SCHEMA_DIAGRAM | 23 | |+| FEATURE_SCHEMA_EDITOR | 24 | |+| FEATURE_DATA_EXPORT | 25 | |+| FEATURE_QUERY_HISTORY | 26 | |+| FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS | 27 | |+| FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION | 28 | |+| FEATURE_BATCH_QUERY | 29 | |+| FEATURE_INSTANCE_READ_ONLY_CONNECTION | 30 | |+| FEATURE_QUERY_POLICY | 31 | |+| FEATURE_RESTRICT_COPYING_DATA | 32 | |+| FEATURE_IAM | 33 | Security & Compliance |+| FEATURE_INSTANCE_SSL_CONNECTION | 34 | |+| FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL | 35 | |+| FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION | 36 | |+| FEATURE_GOOGLE_AND_GITHUB_SSO | 37 | |+| FEATURE_USER_GROUPS | 38 | |+| FEATURE_DISALLOW_SELF_SERVICE_SIGNUP | 39 | |+| FEATURE_DATABASE_SECRET_VARIABLES | 40 | |+| FEATURE_QUERY_DATASOURCE_RESTRICTION | 41 | |+| FEATURE_CUSTOM_INSTANCE_SYNC_TIME | 42 | |+| FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT | 43 | |+| FEATURE_RISK_ASSESSMENT | 44 | |+| FEATURE_APPROVAL_WORKFLOW | 45 | |+| FEATURE_AUDIT_LOG | 46 | |+| FEATURE_ENTERPRISE_SSO | 47 | |+| FEATURE_TWO_FA | 48 | |+| FEATURE_PASSWORD_RESTRICTIONS | 49 | |+| FEATURE_DISALLOW_PASSWORD_SIGNIN | 50 | |+| FEATURE_CUSTOM_ROLES | 51 | |+| FEATURE_REQUEST_ROLE_WORKFLOW | 52 | |+| FEATURE_DATA_MASKING | 53 | |+| FEATURE_DATA_CLASSIFICATION | 54 | |+| FEATURE_SCIM | 55 | |+| FEATURE_DIRECTORY_SYNC | 56 | |+| FEATURE_SIGN_IN_FREQUENCY_CONTROL | 57 | |+| FEATURE_EXTERNAL_SECRET_MANAGER | 58 | |+| FEATURE_USER_EMAIL_DOMAIN_RESTRICTION | 59 | |+| FEATURE_ENVIRONMENT_MANAGEMENT | 60 | Administration & Support |+| FEATURE_IM_NOTIFICATIONS | 61 | |+| FEATURE_TERRAFORM_PROVIDER | 62 | |+| FEATURE_DATABASE_GROUPS | 63 | |+| FEATURE_ENVIRONMENT_TIERS | 64 | |+| FEATURE_DASHBOARD_ANNOUNCEMENT | 65 | |+| FEATURE_API_INTEGRATION_GUIDANCE | 66 | |+| FEATURE_CUSTOM_LOGO | 67 | |+| FEATURE_WATERMARK | 68 | |+| FEATURE_ROADMAP_PRIORITIZATION | 69 | |+| FEATURE_CUSTOM_MSA | 70 | |+| FEATURE_COMMUNITY_SUPPORT | 71 | |+| FEATURE_EMAIL_SUPPORT | 72 | |+| FEATURE_DEDICATED_SUPPORT_WITH_SLA | 73 | |++++<a name="bytebase-v1-PlanType"></a>++### PlanType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| PLAN_TYPE_UNSPECIFIED | 0 | |+| FREE | 1 | |+| TEAM | 2 | |+| ENTERPRISE | 3 | |++++++++<a name="bytebase-v1-SubscriptionService"></a>++### SubscriptionService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetSubscription | [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | GetSubscription returns the current subscription. If 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. |+| UpdateSubscription | [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | |+++++<a name="v1_worksheet_service-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex a22e80da9d..a36856dbe2 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -959,49 +959,6 @@</li>- <li>- <a href="#v1%2fsubscription_service.proto">v1/subscription_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.GetSubscriptionRequest"><span class="badge">M</span>GetSubscriptionRequest</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.Subscription"><span class="badge">M</span>Subscription</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateSubscriptionRequest"><span class="badge">M</span>UpdateSubscriptionRequest</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.SubscriptionService"><span class="badge">S</span>SubscriptionService</a>- </li>-- </ul>- </li>--<li><a href="#v1%2fsetting_service.proto">v1/setting_service.proto</a><ul>@@ -1126,10 +1083,6 @@<a href="#bytebase.v1.SCIMSetting"><span class="badge">M</span>SCIMSetting</a></li>- <li>- <a href="#bytebase.v1.SMTPMailDeliverySettingValue"><span class="badge">M</span>SMTPMailDeliverySettingValue</a>- </li>-<li><a href="#bytebase.v1.SchemaTemplateSetting"><span class="badge">M</span>SchemaTemplateSetting</a></li>@@ -1178,10 +1131,6 @@<a href="#bytebase.v1.WorkspaceProfileSetting"><span class="badge">M</span>WorkspaceProfileSetting</a></li>- <li>- <a href="#bytebase.v1.WorkspaceTrialSetting"><span class="badge">M</span>WorkspaceTrialSetting</a>- </li>-<li><a href="#bytebase.v1.AISetting.Provider"><span class="badge">E</span>AISetting.Provider</a>@@ -1199,14 +1148,6 @@<a href="#bytebase.v1.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a></li>- <li>- <a href="#bytebase.v1.SMTPMailDeliverySettingValue.Authentication"><span class="badge">E</span>SMTPMailDeliverySettingValue.Authentication</a>- </li>-- <li>- <a href="#bytebase.v1.SMTPMailDeliverySettingValue.Encryption"><span class="badge">E</span>SMTPMailDeliverySettingValue.Encryption</a>- </li>-<li><a href="#bytebase.v1.Setting.SettingName"><span class="badge">E</span>Setting.SettingName</a></li>@@ -2780,6 +2721,49 @@</li>+ <li>+ <a href="#v1%2fsubscription_service.proto">v1/subscription_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.GetSubscriptionRequest"><span class="badge">M</span>GetSubscriptionRequest</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.Subscription"><span class="badge">M</span>Subscription</a>+ </li>++ <li>+ <a href="#bytebase.v1.UpdateSubscriptionRequest"><span class="badge">M</span>UpdateSubscriptionRequest</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.SubscriptionService"><span class="badge">S</span>SubscriptionService</a>+ </li>++ </ul>+ </li>++<li><a href="#v1%2fworksheet_service.proto">v1/worksheet_service.proto</a><ul>@@ -11795,20 +11779,72 @@ The access is based on approval flow.</p></td><div class="file-heading">- <h2 id="v1/subscription_service.proto">v1/subscription_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/setting_service.proto">v1/setting_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</h3>+ <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.PlanConfig">PlanConfig</h3>- <p>PlanConfig represents the configuration for all plans loaded from plan.yaml</p>+ <h3 id="bytebase.v1.AgentPluginSetting">AgentPluginSetting</h3>+ <p></p><table class="field-table">@@ -11818,17 +11854,17 @@ The access is based on approval flow.</p></td><tbody><tr>- <td>plans</td>- <td><a href="#bytebase.v1.PlanLimitConfig">PlanLimitConfig</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The URL for the agent API. </p></td></tr><tr>- <td>instance_features</td>- <td><a href="#bytebase.v1.PlanFeature">PlanFeature</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The token for the agent. </p></td></tr></tbody>@@ -11838,8 +11874,8 @@ The access is based on approval flow.</p></td>- <h3 id="bytebase.v1.PlanLimitConfig">PlanLimitConfig</h3>- <p>PlanLimitConfig represents a single plan's configuration</p>+ <h3 id="bytebase.v1.Algorithm">Algorithm</h3>+ <p></p><table class="field-table">@@ -11849,30 +11885,30 @@ The access is based on approval flow.</p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td>full_mask</td>+ <td><a href="#bytebase.v1.Algorithm.FullMask">Algorithm.FullMask</a></td><td></td><td><p> </p></td></tr><tr>- <td>maximum_instance_count</td>- <td><a href="#int32">int32</a></td>+ <td>range_mask</td>+ <td><a href="#bytebase.v1.Algorithm.RangeMask">Algorithm.RangeMask</a></td><td></td><td><p> </p></td></tr><tr>- <td>maximum_seat_count</td>- <td><a href="#int32">int32</a></td>+ <td>md5_mask</td>+ <td><a href="#bytebase.v1.Algorithm.MD5Mask">Algorithm.MD5Mask</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>inner_outer_mask</td>+ <td><a href="#bytebase.v1.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</a></td>+ <td></td><td><p> </p></td></tr>@@ -11883,7 +11919,7 @@ The access is based on approval flow.</p></td>- <h3 id="bytebase.v1.Subscription">Subscription</h3>+ <h3 id="bytebase.v1.Algorithm.FullMask">Algorithm.FullMask</h3><p></p>@@ -11894,42 +11930,53 @@ The access is based on approval flow.</p></td><tbody><tr>- <td>seat_count</td>- <td><a href="#int32">int32</a></td>+ <td>substitution</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>substitution is the string used to replace the original value, the+max length of the string is 16 bytes. </p></td></tr>- <tr>- <td>instance_count</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </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>expires_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>prefix_len</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>plan</td>- <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td>suffix_len</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>trialing</td>- <td><a href="#bool">bool</a></td>+ <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>org_name</td>+ <td>substitution</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -11942,7 +11989,7 @@ The access is based on approval flow.</p></td>- <h3 id="bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</h3>+ <h3 id="bytebase.v1.Algorithm.MD5Mask">Algorithm.MD5Mask</h3><p></p>@@ -11953,10 +12000,10 @@ The access is based on approval flow.</p></td><tbody><tr>- <td>license</td>+ <td>salt</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td></tr></tbody>@@ -11966,807 +12013,8 @@ The access is based on approval flow.</p></td>--- <h3 id="bytebase.v1.PlanFeature">PlanFeature</h3>- <p>PlanFeature represents the available features in Bytebase</p>- <table class="enum-table">- <thead>- <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_CHANGELIST</td>- <td>14</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SCHEMA_TEMPLATE</td>- <td>15</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_ROLLOUT_POLICY</td>- <td>16</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_WEB_BASED_SQL_EDITOR</td>- <td>17</td>- <td><p>SQL Editor & Development</p></td>- </tr>-- <tr>- <td>FEATURE_SQL_EDITOR_ADMIN_MODE</td>- <td>18</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_NATURAL_LANGUAGE_TO_SQL</td>- <td>19</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_AI_QUERY_EXPLANATION</td>- <td>20</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_AI_QUERY_SUGGESTIONS</td>- <td>21</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_AUTO_COMPLETE</td>- <td>22</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SCHEMA_DIAGRAM</td>- <td>23</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SCHEMA_EDITOR</td>- <td>24</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DATA_EXPORT</td>- <td>25</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_QUERY_HISTORY</td>- <td>26</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS</td>- <td>27</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION</td>- <td>28</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_BATCH_QUERY</td>- <td>29</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_INSTANCE_READ_ONLY_CONNECTION</td>- <td>30</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_QUERY_POLICY</td>- <td>31</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_RESTRICT_COPYING_DATA</td>- <td>32</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_IAM</td>- <td>33</td>- <td><p>Security & Compliance</p></td>- </tr>-- <tr>- <td>FEATURE_INSTANCE_SSL_CONNECTION</td>- <td>34</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL</td>- <td>35</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION</td>- <td>36</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_GOOGLE_AND_GITHUB_SSO</td>- <td>37</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_USER_GROUPS</td>- <td>38</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DISALLOW_SELF_SERVICE_SIGNUP</td>- <td>39</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DATABASE_SECRET_VARIABLES</td>- <td>40</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_QUERY_DATASOURCE_RESTRICTION</td>- <td>41</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_CUSTOM_INSTANCE_SYNC_TIME</td>- <td>42</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT</td>- <td>43</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_RISK_ASSESSMENT</td>- <td>44</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_APPROVAL_WORKFLOW</td>- <td>45</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_AUDIT_LOG</td>- <td>46</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_ENTERPRISE_SSO</td>- <td>47</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_TWO_FA</td>- <td>48</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_PASSWORD_RESTRICTIONS</td>- <td>49</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DISALLOW_PASSWORD_SIGNIN</td>- <td>50</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_CUSTOM_ROLES</td>- <td>51</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_REQUEST_ROLE_WORKFLOW</td>- <td>52</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DATA_MASKING</td>- <td>53</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DATA_CLASSIFICATION</td>- <td>54</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SCIM</td>- <td>55</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DIRECTORY_SYNC</td>- <td>56</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_SIGN_IN_FREQUENCY_CONTROL</td>- <td>57</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_EXTERNAL_SECRET_MANAGER</td>- <td>58</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_USER_EMAIL_DOMAIN_RESTRICTION</td>- <td>59</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_ENVIRONMENT_MANAGEMENT</td>- <td>60</td>- <td><p>Administration & Support</p></td>- </tr>-- <tr>- <td>FEATURE_IM_NOTIFICATIONS</td>- <td>61</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_TERRAFORM_PROVIDER</td>- <td>62</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DATABASE_GROUPS</td>- <td>63</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_ENVIRONMENT_TIERS</td>- <td>64</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DASHBOARD_ANNOUNCEMENT</td>- <td>65</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_API_INTEGRATION_GUIDANCE</td>- <td>66</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_CUSTOM_LOGO</td>- <td>67</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_WATERMARK</td>- <td>68</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_ROADMAP_PRIORITIZATION</td>- <td>69</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_CUSTOM_MSA</td>- <td>70</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_COMMUNITY_SUPPORT</td>- <td>71</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_EMAIL_SUPPORT</td>- <td>72</td>- <td><p></p></td>- </tr>-- <tr>- <td>FEATURE_DEDICATED_SUPPORT_WITH_SLA</td>- <td>73</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PlanType">PlanType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>PLAN_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>FREE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>TEAM</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENTERPRISE</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SubscriptionService">SubscriptionService</h3>- <p></p>- <table class="enum-table">- <thead>- <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>- <td><a href="#bytebase.v1.Subscription">Subscription</a></td>- <td><p>GetSubscription returns the current subscription.-If 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>UpdateSubscription</td>- <td><a href="#bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</a></td>- <td><a href="#bytebase.v1.Subscription">Subscription</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>GetSubscription</td>- <td>GET</td>- <td>/v1/subscription</td>- <td></td>- </tr>----- <tr>- <td>UpdateSubscription</td>- <td>PATCH</td>- <td>/v1/subscription</td>- <td>license</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.AgentPluginSetting">AgentPluginSetting</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The URL for the agent API. </p></td>- </tr>-- <tr>- <td>token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The token for the agent. </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>- <td></td>- <td><p>substitution is the string used to replace the original value, the-max 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>+ <h3 id="bytebase.v1.Algorithm.RangeMask">Algorithm.RangeMask</h3>+ <p></p><table class="field-table">@@ -13655,101 +12903,6 @@ The default value is 100MB, we will use the default value if the setting not exi- <h3 id="bytebase.v1.SMTPMailDeliverySettingValue">SMTPMailDeliverySettingValue</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>server</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The SMTP server address. </p></td>- </tr>-- <tr>- <td>port</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The SMTP server port. </p></td>- </tr>-- <tr>- <td>encryption</td>- <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue.Encryption">SMTPMailDeliverySettingValue.Encryption</a></td>- <td></td>- <td><p>The SMTP server encryption. </p></td>- </tr>-- <tr>- <td>ca</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The CA, KEY, and CERT for the SMTP server.-Not used. </p></td>- </tr>-- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>cert</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>authentication</td>- <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue.Authentication">SMTPMailDeliverySettingValue.Authentication</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>optional</td>- <td><p>If not specified, server will use the existed password. </p></td>- </tr>-- <tr>- <td>from</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The sender email address. </p></td>- </tr>-- <tr>- <td>to</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The recipient email address, used with validate_only to send test email. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.SchemaTemplateSetting">SchemaTemplateSetting</h3><p></p>@@ -14096,13 +13249,6 @@ server would not persist the setting value if it is true. </p></td><td><p>Defines this value as being a string value. </p></td></tr>- <tr>- <td>smtp_mail_delivery_setting_value</td>- <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue">SMTPMailDeliverySettingValue</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>app_im_setting_value</td><td><a href="#bytebase.v1.AppIMSetting">AppIMSetting</a></td>@@ -14131,13 +13277,6 @@ server would not persist the setting value if it is true. </p></td><td><p> </p></td></tr>- <tr>- <td>workspace_trial_setting_value</td>- <td><a href="#bytebase.v1.WorkspaceTrialSetting">WorkspaceTrialSetting</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>schema_template_setting_value</td><td><a href="#bytebase.v1.SchemaTemplateSetting">SchemaTemplateSetting</a></td>@@ -14288,126 +13427,67 @@ For examples:<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>outbound_ip_list</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. </p></td>- </tr>-- <tr>- <td>token_duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The duration for token. </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_role_expiration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The max duration for role expired. </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>-- </tbody>- </table>------ <h3 id="bytebase.v1.WorkspaceTrialSetting">WorkspaceTrialSetting</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <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>instance_count</td>- <td><a href="#int32">int32</a></td>+ <td>outbound_ip_list</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. </p></td>+ </tr>++ <tr>+ <td>token_duration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p> </p></td>+ <td><p>The duration for token. </p></td></tr><tr>- <td>expire_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>announcement</td>+ <td><a href="#bytebase.v1.Announcement">Announcement</a></td><td></td>- <td><p> </p></td>+ <td><p>The setting of custom announcement </p></td></tr><tr>- <td>issued_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>maximum_role_expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p> </p></td>+ <td><p>The max duration for role expired. </p></td></tr><tr>- <td>subject</td>+ <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> </p></td>+ <td><p>Only user and group from the domains can be created and login. </p></td></tr><tr>- <td>org_name</td>- <td><a href="#string">string</a></td>+ <td>database_change_mode</td>+ <td><a href="#bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</a></td><td></td>- <td><p> </p></td>+ <td><p>The workspace database change mode. </p></td></tr><tr>- <td>plan</td>- <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td>disallow_password_signin</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Whether to disallow password signin. (Except workspace admins) </p></td></tr></tbody>@@ -14554,82 +13634,6 @@ Default to this mode.</p></td></tbody></table>- <h3 id="bytebase.v1.SMTPMailDeliverySettingValue.Authentication">SMTPMailDeliverySettingValue.Authentication</h3>- <p>We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.</p>- <table class="enum-table">- <thead>- <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>AUTHENTICATION_PLAIN</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>AUTHENTICATION_LOGIN</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>AUTHENTICATION_CRAM_MD5</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.SMTPMailDeliverySettingValue.Encryption">SMTPMailDeliverySettingValue.Encryption</h3>- <p>We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.</p>- <table class="enum-table">- <thead>- <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>ENCRYPTION_STARTTLS</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENCRYPTION_SSL_TLS</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-<h3 id="bytebase.v1.Setting.SettingName">Setting.SettingName</h3><p></p><table class="enum-table">@@ -14710,12 +13714,6 @@ Default to this mode.</p></td><td><p></p></td></tr>- <tr>- <td>WORKSPACE_MAIL_DELIVERY</td>- <td>12</td>- <td><p></p></td>- </tr>-<tr><td>SCHEMA_TEMPLATE</td><td>13</td>@@ -29589,9 +28587,203 @@ Format: instances/{instance}/databases/{database} </p></td>-+++ <h3 id="bytebase.v1.Task.Status">Task.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <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>NOT_STARTED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RUNNING</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SKIPPED</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Task.Type">Task.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <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>GENERAL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CREATE</td>+ <td>2</td>+ <td><p>use payload DatabaseCreate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE</td>+ <td>4</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_SDL</td>+ <td>5</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_GHOST</td>+ <td>9</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_UPDATE</td>+ <td>8</td>+ <td><p>use payload DatabaseDataUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_EXPORT</td>+ <td>12</td>+ <td><p>use payload DatabaseDataExport</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <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></p></td>+ </tr>++ <tr>+ <td>READY</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>EXPORTED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <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>RUNNING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.Task.Status">Task.Status</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</h3><p></p><table class="enum-table"><thead>@@ -29606,43 +28798,107 @@ Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>NOT_STARTED</td>+ <td>RUNNING_WAITING</td><td>1</td>+ <td><p>the task run is ready to be executed by the scheduler</p></td>+ </tr>++ <tr>+ <td>RUNNING_RUNNING</td>+ <td>2</td>+ <td><p>the task run is being executed by the scheduler</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <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>PENDING</td>+ <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>RUNNING</td>+ <td>ROLLBACK</td><td>3</td><td><p></p></td></tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>DONE</td>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SCHEMA_DUMP</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>COMMAND_EXECUTE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_SYNC</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TASK_RUN_STATUS_UPDATE</td><td>4</td><td><p></p></td></tr><tr>- <td>FAILED</td>+ <td>TRANSACTION_CONTROL</td><td>5</td><td><p></p></td></tr><tr>- <td>CANCELED</td>+ <td>PRIOR_BACKUP</td><td>6</td><td><p></p></td></tr><tr>- <td>SKIPPED</td>+ <td>RETRY_INFO</td><td>7</td><td><p></p></td></tr>@@ -29650,207 +28906,560 @@ Format: instances/{instance}/databases/{database} </p></td></tbody></table>- <h3 id="bytebase.v1.Task.Type">Task.Type</h3>+++++ <h3 id="bytebase.v1.RolloutService">RolloutService</h3><p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>GetRollout</td>+ <td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListRollouts</td>+ <td><a href="#bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</a></td>+ <td><a href="#bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateRollout</td>+ <td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td><p>CreateRollout can be called multiple times with the same rollout.plan but different stage_id to promote rollout stages.</p></td>+ </tr>++ <tr>+ <td>PreviewRollout</td>+ <td><a href="#bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListTaskRuns</td>+ <td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>+ <td><a href="#bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetTaskRun</td>+ <td><a href="#bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</a></td>+ <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetTaskRunLog</td>+ <td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>+ <td><a href="#bytebase.v1.TaskRunLog">TaskRunLog</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetTaskRunSession</td>+ <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>+ <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchRunTasks</td>+ <td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>+ <td><a href="#bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</a></td>+ <td><p>BatchRunTasks creates task runs for the specified tasks.+DataExport issue only allows the creator to run the task.+Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.+Follow role-based rollout policy for the environment.</p></td>+ </tr>++ <tr>+ <td>BatchSkipTasks</td>+ <td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>+ <td><a href="#bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</a></td>+ <td><p>BatchSkipTasks skips the specified tasks.+The access is the same as BatchRunTasks().</p></td>+ </tr>++ <tr>+ <td>BatchCancelTaskRuns</td>+ <td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>+ <td><a href="#bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</a></td>+ <td><p>BatchCancelTaskRuns cancels the specified task runs in batch.+The access is the same as BatchRunTasks().</p></td>+ </tr>++ <tr>+ <td>PreviewTaskRunRollback</td>+ <td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>+ <td><a href="#bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>++++ <tr>+ <td>GetRollout</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/rollouts/*}</td>+ <td></td></tr>+++<tr>- <td>GENERAL</td>- <td>1</td>- <td><p></p></td>+ <td>ListRollouts</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/rollouts</td>+ <td></td></tr>+++<tr>- <td>DATABASE_CREATE</td>- <td>2</td>- <td><p>use payload DatabaseCreate</p></td>+ <td>CreateRollout</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/rollouts</td>+ <td>rollout</td></tr>+++<tr>- <td>DATABASE_SCHEMA_UPDATE</td>- <td>4</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>+ <td>PreviewRollout</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:previewRollout</td>+ <td>*</td></tr>+++<tr>- <td>DATABASE_SCHEMA_UPDATE_SDL</td>- <td>5</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>+ <td>ListTaskRuns</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns</td>+ <td></td></tr>+++<tr>- <td>DATABASE_SCHEMA_UPDATE_GHOST</td>- <td>9</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>+ <td>GetTaskRun</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}</td>+ <td></td></tr>+++<tr>- <td>DATABASE_DATA_UPDATE</td>- <td>8</td>- <td><p>use payload DatabaseDataUpdate</p></td>+ <td>GetTaskRunLog</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/log</td>+ <td></td></tr>+++<tr>- <td>DATABASE_EXPORT</td>- <td>12</td>- <td><p>use payload DatabaseDataExport</p></td>+ <td>GetTaskRunSession</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>+ <td></td></tr>+- </tbody>- </table>-- <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+++ <tr>+ <td>BatchRunTasks</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun</td>+ <td>*</td>+ </tr>+++<tr>- <td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>BatchSkipTasks</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip</td>+ <td>*</td></tr>+++<tr>- <td>READY</td>- <td>1</td>- <td><p></p></td>+ <td>BatchCancelTaskRuns</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel</td>+ <td>*</td></tr>+++<tr>- <td>EXPORTED</td>- <td>2</td>- <td><p></p></td>+ <td>PreviewTaskRunRollback</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollback</td>+ <td>*</td></tr>+- </tbody>- </table>+ </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>+ <td></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>+ <td></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>+ <td></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.TaskRun.Status">TaskRun.Status</h3>+ <h3 id="bytebase.v1.Sheet">Sheet</h3><p></p>- <table class="enum-table">- <thead>- <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>RUNNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>5</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <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 sheet resource, generated by the server.+Canonical parent is project.+Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title of the sheet. </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The creator of the Sheet.+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 sheet. </p></td>+ </tr>++ <tr>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td>+ <td></td>+ <td><p>The content of the sheet.+By default, it will be cut off, if it doesn't match the `content_size`, you can+set 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>++ <tr>+ <td>payload</td>+ <td><a href="#bytebase.v1.SheetPayload">SheetPayload</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 SQL dialect. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</h3>+ <h3 id="bytebase.v1.SheetCommand">SheetCommand</h3><p></p>- <table class="enum-table">- <thead>- <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_WAITING</td>- <td>1</td>- <td><p>the task run is ready to be executed by the scheduler</p></td>- </tr>-- <tr>- <td>RUNNING_RUNNING</td>- <td>2</td>- <td><p>the task run is being executed by the scheduler</p></td>- </tr>-- </tbody>- </table>+++ <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> </p></td>+ </tr>++ <tr>+ <td>end</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3>+ <h3 id="bytebase.v1.SheetPayload">SheetPayload</h3><p></p>- <table class="enum-table">- <thead>- <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>+++ <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.SheetPayload.Type">SheetPayload.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>commands</td>+ <td><a href="#bytebase.v1.SheetCommand">SheetCommand</a></td>+ <td>repeated</td>+ <td><p>The start and end position of each command in the sheet statement. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</h3>+ <p></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="#bytebase.v1.Sheet">Sheet</a></td>+ <td></td>+ <td><p>The sheet to update.++The sheet's `name` field is used to identify the sheet to update.+Format: projects/{project}/sheets/{sheet} </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.+Fields are specified relative to the sheet.+(e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`)+Only support update the following fields for now:+- `title`+- `statement` </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3>- <p></p>+++ <h3 id="bytebase.v1.SheetPayload.Type">SheetPayload.Type</h3>+ <p>Type of the SheetPayload.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -29864,47 +29473,11 @@ Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>SCHEMA_DUMP</td>+ <td>SCHEMA_DESIGN</td><td>1</td><td><p></p></td></tr>- <tr>- <td>COMMAND_EXECUTE</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_SYNC</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>TASK_RUN_STATUS_UPDATE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>TRANSACTION_CONTROL</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>PRIOR_BACKUP</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>RETRY_INFO</td>- <td>7</td>- <td><p></p></td>- </tr>-</tbody></table>@@ -29912,7 +29485,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.RolloutService">RolloutService</h3>+ <h3 id="bytebase.v1.SheetService">SheetService</h3><p></p><table class="enum-table"><thead>@@ -29921,91 +29494,30 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>GetRollout</td>- <td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListRollouts</td>- <td><a href="#bytebase.v1.ListRolloutsRequest">ListRolloutsRequest</a></td>- <td><a href="#bytebase.v1.ListRolloutsResponse">ListRolloutsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateRollout</td>- <td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p>CreateRollout can be called multiple times with the same rollout.plan but different stage_id to promote rollout stages.</p></td>- </tr>-- <tr>- <td>PreviewRollout</td>- <td><a href="#bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListTaskRuns</td>- <td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>- <td><a href="#bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetTaskRun</td>- <td><a href="#bytebase.v1.GetTaskRunRequest">GetTaskRunRequest</a></td>- <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>+ <td>CreateSheet</td>+ <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td><p></p></td></tr><tr>- <td>GetTaskRunLog</td>- <td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>- <td><a href="#bytebase.v1.TaskRunLog">TaskRunLog</a></td>+ <td>BatchCreateSheets</td>+ <td><a href="#bytebase.v1.BatchCreateSheetsRequest">BatchCreateSheetsRequest</a></td>+ <td><a href="#bytebase.v1.BatchCreateSheetsResponse">BatchCreateSheetsResponse</a></td><td><p></p></td></tr><tr>- <td>GetTaskRunSession</td>- <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>- <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td>+ <td>GetSheet</td>+ <td><a href="#bytebase.v1.GetSheetRequest">GetSheetRequest</a></td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td><p></p></td></tr><tr>- <td>BatchRunTasks</td>- <td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>- <td><a href="#bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</a></td>- <td><p>BatchRunTasks creates task runs for the specified tasks.-DataExport issue only allows the creator to run the task.-Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.-Follow role-based rollout policy for the environment.</p></td>- </tr>-- <tr>- <td>BatchSkipTasks</td>- <td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>- <td><a href="#bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</a></td>- <td><p>BatchSkipTasks skips the specified tasks.-The access is the same as BatchRunTasks().</p></td>- </tr>-- <tr>- <td>BatchCancelTaskRuns</td>- <td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>- <td><a href="#bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</a></td>- <td><p>BatchCancelTaskRuns cancels the specified task runs in batch.-The access is the same as BatchRunTasks().</p></td>- </tr>-- <tr>- <td>PreviewTaskRunRollback</td>- <td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>- <td><a href="#bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</a></td>+ <td>UpdateSheet</td>+ <td><a href="#bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</a></td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td><td><p></p></td></tr>@@ -30030,39 +29542,19 @@ The access is the same as BatchRunTasks().</p></td><tr>- <td>GetRollout</td>- <td>GET</td>- <td>/v1/{name=projects/*/rollouts/*}</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>CreateSheet</td><td>POST</td>- <td>/v1/{parent=projects/*}/rollouts</td>- <td>rollout</td>+ <td>/v1/{parent=projects/*}/sheets</td>+ <td>sheet</td></tr><tr>- <td>PreviewRollout</td>+ <td>BatchCreateSheets</td><td>POST</td>- <td>/v1/{project=projects/*}:previewRollout</td>+ <td>/v1/{parent=projects/*}/sheets:batchCreate</td><td>*</td></tr>@@ -30070,39 +29562,9 @@ The access is the same as BatchRunTasks().</p></td><tr>- <td>ListTaskRuns</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns</td>- <td></td>- </tr>----- <tr>- <td>GetTaskRun</td>- <td>GET</td>- <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}</td>- <td></td>- </tr>----- <tr>- <td>GetTaskRunLog</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/log</td>- <td></td>- </tr>----- <tr>- <td>GetTaskRunSession</td>+ <td>GetSheet</td><td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>+ <td>/v1/{name=projects/*/sheets/*}</td><td></td></tr>@@ -30110,40 +29572,10 @@ The access is the same as BatchRunTasks().</p></td><tr>- <td>BatchRunTasks</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun</td>- <td>*</td>- </tr>----- <tr>- <td>BatchSkipTasks</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip</td>- <td>*</td>- </tr>----- <tr>- <td>BatchCancelTaskRuns</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel</td>- <td>*</td>- </tr>----- <tr>- <td>PreviewTaskRunRollback</td>- <td>POST</td>- <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollback</td>- <td>*</td>+ <td>UpdateSheet</td>+ <td>PATCH</td>+ <td>/v1/{sheet.name=projects/*/sheets/*}</td>+ <td>sheet</td></tr>@@ -30154,45 +29586,20 @@ The access is the same as BatchRunTasks().</p></td><div class="file-heading">- <h2 id="v1/sheet_service.proto">v1/sheet_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/subscription_service.proto">v1/subscription_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.BatchCreateSheetsRequest">BatchCreateSheetsRequest</h3>+ <h3 id="bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</h3><p></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>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>+ <h3 id="bytebase.v1.PlanConfig">PlanConfig</h3>+ <p>PlanConfig represents the configuration for all plans loaded from plan.yaml</p><table class="field-table">@@ -30202,8 +29609,15 @@ Format: projects/{project} </p></td><tbody><tr>- <td>sheets</td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <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>@@ -30215,8 +29629,8 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.CreateSheetRequest">CreateSheetRequest</h3>- <p></p>+ <h3 id="bytebase.v1.PlanLimitConfig">PlanLimitConfig</h3>+ <p>PlanLimitConfig represents a single plan's configuration</p><table class="field-table">@@ -30226,50 +29640,31 @@ Format: projects/{project} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td>- <td><p>The parent resource where this sheet will be created.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr><tr>- <td>sheet</td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <td>maximum_instance_count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The sheet to create. </p></td>+ <td><p> </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>+ <td>maximum_seat_count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The name of the sheet to retrieve.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p> </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>+ <td>features</td>+ <td><a href="#bytebase.v1.PlanFeature">PlanFeature</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -30279,7 +29674,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.Sheet">Sheet</h3>+ <h3 id="bytebase.v1.Subscription">Subscription</h3><p></p>@@ -30290,93 +29685,43 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the sheet resource, generated by the server.-Canonical parent is project.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>seat_count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The title of the sheet. </p></td>+ <td><p> </p></td></tr><tr>- <td>creator</td>- <td><a href="#string">string</a></td>+ <td>instance_count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The creator of the Sheet.-Format: users/{email} </p></td>+ <td><p> </p></td></tr><tr>- <td>create_time</td>+ <td>expires_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The create time of the sheet. </p></td>- </tr>-- <tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>- <td></td>- <td><p>The content of the sheet.-By default, it will be cut off, if it doesn't match the `content_size`, you can-set 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>-- <tr>- <td>payload</td>- <td><a href="#bytebase.v1.SheetPayload">SheetPayload</a></td>- <td></td><td><p> </p></td></tr><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td>plan</td>+ <td><a href="#bytebase.v1.PlanType">PlanType</a></td><td></td>- <td><p>The SQL dialect. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SheetCommand">SheetCommand</h3>- <p></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>trialing</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>end</td>- <td><a href="#int32">int32</a></td>+ <td>org_name</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -30388,7 +29733,7 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td- <h3 id="bytebase.v1.SheetPayload">SheetPayload</h3>+ <h3 id="bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</h3><p></p>@@ -30399,19 +29744,12 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td<tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.SheetPayload.Type">SheetPayload.Type</a></td>+ <td>license</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>commands</td>- <td><a href="#bytebase.v1.SheetCommand">SheetCommand</a></td>- <td>repeated</td>- <td><p>The start and end position of each command in the sheet statement. </p></td>- </tr>-</tbody></table>@@ -30419,49 +29757,465 @@ set the `raw` to true in GetSheet request to retrieve the full content. </p></td- <h3 id="bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</h3>+++ <h3 id="bytebase.v1.PlanFeature">PlanFeature</h3>+ <p>PlanFeature represents the available features in Bytebase</p>+ <table class="enum-table">+ <thead>+ <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_CHANGELIST</td>+ <td>14</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SCHEMA_TEMPLATE</td>+ <td>15</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_ROLLOUT_POLICY</td>+ <td>16</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_WEB_BASED_SQL_EDITOR</td>+ <td>17</td>+ <td><p>SQL Editor & Development</p></td>+ </tr>++ <tr>+ <td>FEATURE_SQL_EDITOR_ADMIN_MODE</td>+ <td>18</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_NATURAL_LANGUAGE_TO_SQL</td>+ <td>19</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_AI_QUERY_EXPLANATION</td>+ <td>20</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_AI_QUERY_SUGGESTIONS</td>+ <td>21</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_AUTO_COMPLETE</td>+ <td>22</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SCHEMA_DIAGRAM</td>+ <td>23</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SCHEMA_EDITOR</td>+ <td>24</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DATA_EXPORT</td>+ <td>25</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_QUERY_HISTORY</td>+ <td>26</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS</td>+ <td>27</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION</td>+ <td>28</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_BATCH_QUERY</td>+ <td>29</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_INSTANCE_READ_ONLY_CONNECTION</td>+ <td>30</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_QUERY_POLICY</td>+ <td>31</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_RESTRICT_COPYING_DATA</td>+ <td>32</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_IAM</td>+ <td>33</td>+ <td><p>Security & Compliance</p></td>+ </tr>++ <tr>+ <td>FEATURE_INSTANCE_SSL_CONNECTION</td>+ <td>34</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL</td>+ <td>35</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION</td>+ <td>36</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_GOOGLE_AND_GITHUB_SSO</td>+ <td>37</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_USER_GROUPS</td>+ <td>38</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DISALLOW_SELF_SERVICE_SIGNUP</td>+ <td>39</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DATABASE_SECRET_VARIABLES</td>+ <td>40</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_QUERY_DATASOURCE_RESTRICTION</td>+ <td>41</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_CUSTOM_INSTANCE_SYNC_TIME</td>+ <td>42</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT</td>+ <td>43</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_RISK_ASSESSMENT</td>+ <td>44</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_APPROVAL_WORKFLOW</td>+ <td>45</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_AUDIT_LOG</td>+ <td>46</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_ENTERPRISE_SSO</td>+ <td>47</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_TWO_FA</td>+ <td>48</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_PASSWORD_RESTRICTIONS</td>+ <td>49</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DISALLOW_PASSWORD_SIGNIN</td>+ <td>50</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_CUSTOM_ROLES</td>+ <td>51</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_REQUEST_ROLE_WORKFLOW</td>+ <td>52</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DATA_MASKING</td>+ <td>53</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DATA_CLASSIFICATION</td>+ <td>54</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SCIM</td>+ <td>55</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DIRECTORY_SYNC</td>+ <td>56</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_SIGN_IN_FREQUENCY_CONTROL</td>+ <td>57</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_EXTERNAL_SECRET_MANAGER</td>+ <td>58</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_USER_EMAIL_DOMAIN_RESTRICTION</td>+ <td>59</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_ENVIRONMENT_MANAGEMENT</td>+ <td>60</td>+ <td><p>Administration & Support</p></td>+ </tr>++ <tr>+ <td>FEATURE_IM_NOTIFICATIONS</td>+ <td>61</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_TERRAFORM_PROVIDER</td>+ <td>62</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DATABASE_GROUPS</td>+ <td>63</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_ENVIRONMENT_TIERS</td>+ <td>64</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DASHBOARD_ANNOUNCEMENT</td>+ <td>65</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_API_INTEGRATION_GUIDANCE</td>+ <td>66</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_CUSTOM_LOGO</td>+ <td>67</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_WATERMARK</td>+ <td>68</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_ROADMAP_PRIORITIZATION</td>+ <td>69</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_CUSTOM_MSA</td>+ <td>70</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_COMMUNITY_SUPPORT</td>+ <td>71</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_EMAIL_SUPPORT</td>+ <td>72</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FEATURE_DEDICATED_SUPPORT_WITH_SLA</td>+ <td>73</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.PlanType">PlanType</h3><p></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="#bytebase.v1.Sheet">Sheet</a></td>- <td></td>- <td><p>The sheet to update.--The sheet's `name` field is used to identify the sheet to update.-Format: projects/{project}/sheets/{sheet} </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.-Fields are specified relative to the sheet.-(e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`)-Only support update the following fields for now:-- `title`-- `statement` </p></td>- </tr>-- </tbody>- </table>-------- <h3 id="bytebase.v1.SheetPayload.Type">SheetPayload.Type</h3>- <p>Type of the SheetPayload.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -30469,17 +30223,29 @@ Only support update the following fields for now:<tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>PLAN_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>SCHEMA_DESIGN</td>+ <td>FREE</td><td>1</td><td><p></p></td></tr>+ <tr>+ <td>TEAM</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ENTERPRISE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>+</tbody></table>@@ -30487,7 +30253,7 @@ Only support update the following fields for now:- <h3 id="bytebase.v1.SheetService">SheetService</h3>+ <h3 id="bytebase.v1.SubscriptionService">SubscriptionService</h3><p></p><table class="enum-table"><thead>@@ -30496,30 +30262,18 @@ Only support update the following fields for now:<tbody><tr>- <td>CreateSheet</td>- <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchCreateSheets</td>- <td><a href="#bytebase.v1.BatchCreateSheetsRequest">BatchCreateSheetsRequest</a></td>- <td><a href="#bytebase.v1.BatchCreateSheetsResponse">BatchCreateSheetsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetSheet</td>- <td><a href="#bytebase.v1.GetSheetRequest">GetSheetRequest</a></td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>- <td><p></p></td>+ <td>GetSubscription</td>+ <td><a href="#bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</a></td>+ <td><a href="#bytebase.v1.Subscription">Subscription</a></td>+ <td><p>GetSubscription returns the current subscription.+If 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>UpdateSheet</td>- <td><a href="#bytebase.v1.UpdateSheetRequest">UpdateSheetRequest</a></td>- <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <td>UpdateSubscription</td>+ <td><a href="#bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</a></td>+ <td><a href="#bytebase.v1.Subscription">Subscription</a></td><td><p></p></td></tr>@@ -30544,29 +30298,9 @@ Only support update the following fields for now:<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>GetSubscription</td><td>GET</td>- <td>/v1/{name=projects/*/sheets/*}</td>+ <td>/v1/subscription</td><td></td></tr>@@ -30574,10 +30308,10 @@ Only support update the following fields for now:<tr>- <td>UpdateSheet</td>+ <td>UpdateSubscription</td><td>PATCH</td>- <td>/v1/{sheet.name=projects/*/sheets/*}</td>- <td>sheet</td>+ <td>/v1/subscription</td>+ <td>license</td></tr>diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.goindex b9ed3c806c..2127d2198e 100644--- a/proto/generated-go/store/setting.pb.go+++ b/proto/generated-go/store/setting.pb.go@@ -39,7 +39,6 @@ const (SettingName_WATERMARK SettingName = 9SettingName_AI SettingName = 10SettingName_PLUGIN_AGENT SettingName = 11- SettingName_WORKSPACE_MAIL_DELIVERY SettingName = 12SettingName_SCHEMA_TEMPLATE SettingName = 13SettingName_DATA_CLASSIFICATION SettingName = 14SettingName_SEMANTIC_TYPES SettingName = 15@@ -64,7 +63,6 @@ var (9: "WATERMARK",10: "AI",11: "PLUGIN_AGENT",- 12: "WORKSPACE_MAIL_DELIVERY",13: "SCHEMA_TEMPLATE",14: "DATA_CLASSIFICATION",15: "SEMANTIC_TYPES",@@ -86,7 +84,6 @@ var ("WATERMARK": 9,"AI": 10,"PLUGIN_AGENT": 11,- "WORKSPACE_MAIL_DELIVERY": 12,"SCHEMA_TEMPLATE": 13,"DATA_CLASSIFICATION": 14,"SEMANTIC_TYPES": 15,@@ -229,116 +226,6 @@ func (Announcement_AlertLevel) EnumDescriptor() ([]byte, []int) {return file_store_setting_proto_rawDescGZIP(), []int{1, 0}}-// We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.-type SMTPMailDeliverySetting_Encryption int32--const (- SMTPMailDeliverySetting_ENCRYPTION_UNSPECIFIED SMTPMailDeliverySetting_Encryption = 0- SMTPMailDeliverySetting_ENCRYPTION_NONE SMTPMailDeliverySetting_Encryption = 1- SMTPMailDeliverySetting_ENCRYPTION_STARTTLS SMTPMailDeliverySetting_Encryption = 2- SMTPMailDeliverySetting_ENCRYPTION_SSL_TLS SMTPMailDeliverySetting_Encryption = 3-)--// Enum value maps for SMTPMailDeliverySetting_Encryption.-var (- SMTPMailDeliverySetting_Encryption_name = map[int32]string{- 0: "ENCRYPTION_UNSPECIFIED",- 1: "ENCRYPTION_NONE",- 2: "ENCRYPTION_STARTTLS",- 3: "ENCRYPTION_SSL_TLS",- }- SMTPMailDeliverySetting_Encryption_value = map[string]int32{- "ENCRYPTION_UNSPECIFIED": 0,- "ENCRYPTION_NONE": 1,- "ENCRYPTION_STARTTLS": 2,- "ENCRYPTION_SSL_TLS": 3,- }-)--func (x SMTPMailDeliverySetting_Encryption) Enum() *SMTPMailDeliverySetting_Encryption {- p := new(SMTPMailDeliverySetting_Encryption)- *p = x- return p-}--func (x SMTPMailDeliverySetting_Encryption) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (SMTPMailDeliverySetting_Encryption) Descriptor() protoreflect.EnumDescriptor {- return file_store_setting_proto_enumTypes[3].Descriptor()-}--func (SMTPMailDeliverySetting_Encryption) Type() protoreflect.EnumType {- return &file_store_setting_proto_enumTypes[3]-}--func (x SMTPMailDeliverySetting_Encryption) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use SMTPMailDeliverySetting_Encryption.Descriptor instead.-func (SMTPMailDeliverySetting_Encryption) EnumDescriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{4, 0}-}--// We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and-// CRAM-MD5.-type SMTPMailDeliverySetting_Authentication int32--const (- SMTPMailDeliverySetting_AUTHENTICATION_UNSPECIFIED SMTPMailDeliverySetting_Authentication = 0- SMTPMailDeliverySetting_AUTHENTICATION_NONE SMTPMailDeliverySetting_Authentication = 1- SMTPMailDeliverySetting_AUTHENTICATION_PLAIN SMTPMailDeliverySetting_Authentication = 2- SMTPMailDeliverySetting_AUTHENTICATION_LOGIN SMTPMailDeliverySetting_Authentication = 3- SMTPMailDeliverySetting_AUTHENTICATION_CRAM_MD5 SMTPMailDeliverySetting_Authentication = 4-)--// Enum value maps for SMTPMailDeliverySetting_Authentication.-var (- SMTPMailDeliverySetting_Authentication_name = map[int32]string{- 0: "AUTHENTICATION_UNSPECIFIED",- 1: "AUTHENTICATION_NONE",- 2: "AUTHENTICATION_PLAIN",- 3: "AUTHENTICATION_LOGIN",- 4: "AUTHENTICATION_CRAM_MD5",- }- SMTPMailDeliverySetting_Authentication_value = map[string]int32{- "AUTHENTICATION_UNSPECIFIED": 0,- "AUTHENTICATION_NONE": 1,- "AUTHENTICATION_PLAIN": 2,- "AUTHENTICATION_LOGIN": 3,- "AUTHENTICATION_CRAM_MD5": 4,- }-)--func (x SMTPMailDeliverySetting_Authentication) Enum() *SMTPMailDeliverySetting_Authentication {- p := new(SMTPMailDeliverySetting_Authentication)- *p = x- return p-}--func (x SMTPMailDeliverySetting_Authentication) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (SMTPMailDeliverySetting_Authentication) Descriptor() protoreflect.EnumDescriptor {- return file_store_setting_proto_enumTypes[4].Descriptor()-}--func (SMTPMailDeliverySetting_Authentication) Type() protoreflect.EnumType {- return &file_store_setting_proto_enumTypes[4]-}--func (x SMTPMailDeliverySetting_Authentication) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use SMTPMailDeliverySetting_Authentication.Descriptor instead.-func (SMTPMailDeliverySetting_Authentication) EnumDescriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{4, 1}-}-type Algorithm_InnerOuterMask_MaskType int32const (@@ -372,11 +259,11 @@ func (x Algorithm_InnerOuterMask_MaskType) String() string {}func (Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {- return file_store_setting_proto_enumTypes[5].Descriptor()+ return file_store_setting_proto_enumTypes[3].Descriptor()}func (Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {- return &file_store_setting_proto_enumTypes[5]+ return &file_store_setting_proto_enumTypes[3]}func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {@@ -385,7 +272,7 @@ func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {// Deprecated: Use Algorithm_InnerOuterMask_MaskType.Descriptor instead.func (Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8, 3, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{7, 3, 0}}type AISetting_Provider int32@@ -427,11 +314,11 @@ func (x AISetting_Provider) String() string {}func (AISetting_Provider) Descriptor() protoreflect.EnumDescriptor {- return file_store_setting_proto_enumTypes[6].Descriptor()+ return file_store_setting_proto_enumTypes[4].Descriptor()}func (AISetting_Provider) Type() protoreflect.EnumType {- return &file_store_setting_proto_enumTypes[6]+ return &file_store_setting_proto_enumTypes[4]}func (x AISetting_Provider) Number() protoreflect.EnumNumber {@@ -440,7 +327,7 @@ func (x AISetting_Provider) Number() protoreflect.EnumNumber {// Deprecated: Use AISetting_Provider.Descriptor instead.func (AISetting_Provider) EnumDescriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{13, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{12, 0}}type WorkspaceProfileSetting struct {@@ -739,127 +626,6 @@ func (x *WorkspaceApprovalSetting) GetRules() []*WorkspaceApprovalSetting_Rule {return nil}-type SMTPMailDeliverySetting struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The SMTP server address.- Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`- // The SMTP server port.- Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`- // The SMTP server encryption.- Encryption SMTPMailDeliverySetting_Encryption `protobuf:"varint,3,opt,name=encryption,proto3,enum=bytebase.store.SMTPMailDeliverySetting_Encryption" json:"encryption,omitempty"`- // The CA, KEY, and CERT for the SMTP server.- Ca string `protobuf:"bytes,4,opt,name=ca,proto3" json:"ca,omitempty"`- Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`- Cert string `protobuf:"bytes,6,opt,name=cert,proto3" json:"cert,omitempty"`- Authentication SMTPMailDeliverySetting_Authentication `protobuf:"varint,7,opt,name=authentication,proto3,enum=bytebase.store.SMTPMailDeliverySetting_Authentication" json:"authentication,omitempty"`- Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"`- Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"`- // The sender email address.- From string `protobuf:"bytes,10,opt,name=from,proto3" json:"from,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SMTPMailDeliverySetting) Reset() {- *x = SMTPMailDeliverySetting{}- mi := &file_store_setting_proto_msgTypes[4]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SMTPMailDeliverySetting) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SMTPMailDeliverySetting) ProtoMessage() {}--func (x *SMTPMailDeliverySetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[4]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SMTPMailDeliverySetting.ProtoReflect.Descriptor instead.-func (*SMTPMailDeliverySetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{4}-}--func (x *SMTPMailDeliverySetting) GetServer() string {- if x != nil {- return x.Server- }- return ""-}--func (x *SMTPMailDeliverySetting) GetPort() int32 {- if x != nil {- return x.Port- }- return 0-}--func (x *SMTPMailDeliverySetting) GetEncryption() SMTPMailDeliverySetting_Encryption {- if x != nil {- return x.Encryption- }- return SMTPMailDeliverySetting_ENCRYPTION_UNSPECIFIED-}--func (x *SMTPMailDeliverySetting) GetCa() string {- if x != nil {- return x.Ca- }- return ""-}--func (x *SMTPMailDeliverySetting) GetKey() string {- if x != nil {- return x.Key- }- return ""-}--func (x *SMTPMailDeliverySetting) GetCert() string {- if x != nil {- return x.Cert- }- return ""-}--func (x *SMTPMailDeliverySetting) GetAuthentication() SMTPMailDeliverySetting_Authentication {- if x != nil {- return x.Authentication- }- return SMTPMailDeliverySetting_AUTHENTICATION_UNSPECIFIED-}--func (x *SMTPMailDeliverySetting) GetUsername() string {- if x != nil {- return x.Username- }- return ""-}--func (x *SMTPMailDeliverySetting) GetPassword() string {- if x != nil {- return x.Password- }- return ""-}--func (x *SMTPMailDeliverySetting) GetFrom() string {- if x != nil {- return x.From- }- return ""-}-type SchemaTemplateSetting struct {state protoimpl.MessageState `protogen:"open.v1"`FieldTemplates []*SchemaTemplateSetting_FieldTemplate `protobuf:"bytes,1,rep,name=field_templates,json=fieldTemplates,proto3" json:"field_templates,omitempty"`@@ -871,7 +637,7 @@ type SchemaTemplateSetting struct {func (x *SchemaTemplateSetting) Reset() {*x = SchemaTemplateSetting{}- mi := &file_store_setting_proto_msgTypes[5]+ mi := &file_store_setting_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -883,7 +649,7 @@ func (x *SchemaTemplateSetting) String() string {func (*SchemaTemplateSetting) ProtoMessage() {}func (x *SchemaTemplateSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[5]+ mi := &file_store_setting_proto_msgTypes[4]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -896,7 +662,7 @@ func (x *SchemaTemplateSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use SchemaTemplateSetting.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{5}+ return file_store_setting_proto_rawDescGZIP(), []int{4}}func (x *SchemaTemplateSetting) GetFieldTemplates() []*SchemaTemplateSetting_FieldTemplate {@@ -929,7 +695,7 @@ type DataClassificationSetting struct {func (x *DataClassificationSetting) Reset() {*x = DataClassificationSetting{}- mi := &file_store_setting_proto_msgTypes[6]+ mi := &file_store_setting_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -941,7 +707,7 @@ func (x *DataClassificationSetting) String() string {func (*DataClassificationSetting) ProtoMessage() {}func (x *DataClassificationSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[6]+ mi := &file_store_setting_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -954,7 +720,7 @@ func (x *DataClassificationSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use DataClassificationSetting.ProtoReflect.Descriptor instead.func (*DataClassificationSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{6}+ return file_store_setting_proto_rawDescGZIP(), []int{5}}func (x *DataClassificationSetting) GetConfigs() []*DataClassificationSetting_DataClassificationConfig {@@ -973,7 +739,7 @@ type SemanticTypeSetting struct {func (x *SemanticTypeSetting) Reset() {*x = SemanticTypeSetting{}- mi := &file_store_setting_proto_msgTypes[7]+ mi := &file_store_setting_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -985,7 +751,7 @@ func (x *SemanticTypeSetting) String() string {func (*SemanticTypeSetting) ProtoMessage() {}func (x *SemanticTypeSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[7]+ mi := &file_store_setting_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -998,7 +764,7 @@ func (x *SemanticTypeSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use SemanticTypeSetting.ProtoReflect.Descriptor instead.func (*SemanticTypeSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{7}+ return file_store_setting_proto_rawDescGZIP(), []int{6}}func (x *SemanticTypeSetting) GetTypes() []*SemanticTypeSetting_SemanticType {@@ -1023,7 +789,7 @@ type Algorithm struct {func (x *Algorithm) Reset() {*x = Algorithm{}- mi := &file_store_setting_proto_msgTypes[8]+ mi := &file_store_setting_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1035,7 +801,7 @@ func (x *Algorithm) String() string {func (*Algorithm) ProtoMessage() {}func (x *Algorithm) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[8]+ mi := &file_store_setting_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1048,7 +814,7 @@ func (x *Algorithm) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm.ProtoReflect.Descriptor instead.func (*Algorithm) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8}+ return file_store_setting_proto_rawDescGZIP(), []int{7}}func (x *Algorithm) GetMask() isAlgorithm_Mask {@@ -1135,7 +901,7 @@ type AppIMSetting struct {func (x *AppIMSetting) Reset() {*x = AppIMSetting{}- mi := &file_store_setting_proto_msgTypes[9]+ mi := &file_store_setting_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1147,7 +913,7 @@ func (x *AppIMSetting) String() string {func (*AppIMSetting) ProtoMessage() {}func (x *AppIMSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[9]+ mi := &file_store_setting_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1160,7 +926,7 @@ func (x *AppIMSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting.ProtoReflect.Descriptor instead.func (*AppIMSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{9}+ return file_store_setting_proto_rawDescGZIP(), []int{8}}func (x *AppIMSetting) GetSlack() *AppIMSetting_Slack {@@ -1209,7 +975,7 @@ type MaximumSQLResultSizeSetting struct {func (x *MaximumSQLResultSizeSetting) Reset() {*x = MaximumSQLResultSizeSetting{}- mi := &file_store_setting_proto_msgTypes[10]+ mi := &file_store_setting_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1221,7 +987,7 @@ func (x *MaximumSQLResultSizeSetting) String() string {func (*MaximumSQLResultSizeSetting) ProtoMessage() {}func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[10]+ mi := &file_store_setting_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1234,7 +1000,7 @@ func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use MaximumSQLResultSizeSetting.ProtoReflect.Descriptor instead.func (*MaximumSQLResultSizeSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{10}+ return file_store_setting_proto_rawDescGZIP(), []int{9}}func (x *MaximumSQLResultSizeSetting) GetLimit() int64 {@@ -1253,7 +1019,7 @@ type SCIMSetting struct {func (x *SCIMSetting) Reset() {*x = SCIMSetting{}- mi := &file_store_setting_proto_msgTypes[11]+ mi := &file_store_setting_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1265,7 +1031,7 @@ func (x *SCIMSetting) String() string {func (*SCIMSetting) ProtoMessage() {}func (x *SCIMSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[11]+ mi := &file_store_setting_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1278,7 +1044,7 @@ func (x *SCIMSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use SCIMSetting.ProtoReflect.Descriptor instead.func (*SCIMSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{11}+ return file_store_setting_proto_rawDescGZIP(), []int{10}}func (x *SCIMSetting) GetToken() string {@@ -1310,7 +1076,7 @@ type PasswordRestrictionSetting struct {func (x *PasswordRestrictionSetting) Reset() {*x = PasswordRestrictionSetting{}- mi := &file_store_setting_proto_msgTypes[12]+ mi := &file_store_setting_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1322,7 +1088,7 @@ func (x *PasswordRestrictionSetting) String() string {func (*PasswordRestrictionSetting) ProtoMessage() {}func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[12]+ mi := &file_store_setting_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1335,7 +1101,7 @@ func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{12}+ return file_store_setting_proto_rawDescGZIP(), []int{11}}func (x *PasswordRestrictionSetting) GetMinLength() int32 {@@ -1401,7 +1167,7 @@ type AISetting struct {func (x *AISetting) Reset() {*x = AISetting{}- mi := &file_store_setting_proto_msgTypes[13]+ mi := &file_store_setting_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1413,7 +1179,7 @@ func (x *AISetting) String() string {func (*AISetting) ProtoMessage() {}func (x *AISetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[13]+ mi := &file_store_setting_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1426,7 +1192,7 @@ func (x *AISetting) ProtoReflect() protoreflect.Message {// Deprecated: Use AISetting.ProtoReflect.Descriptor instead.func (*AISetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{13}+ return file_store_setting_proto_rawDescGZIP(), []int{12}}func (x *AISetting) GetEnabled() bool {@@ -1480,7 +1246,7 @@ type EnvironmentSetting struct {func (x *EnvironmentSetting) Reset() {*x = EnvironmentSetting{}- mi := &file_store_setting_proto_msgTypes[14]+ mi := &file_store_setting_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1492,7 +1258,7 @@ func (x *EnvironmentSetting) String() string {func (*EnvironmentSetting) ProtoMessage() {}func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[14]+ mi := &file_store_setting_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1505,7 +1271,7 @@ func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use EnvironmentSetting.ProtoReflect.Descriptor instead.func (*EnvironmentSetting) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{14}+ return file_store_setting_proto_rawDescGZIP(), []int{13}}func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {@@ -1526,7 +1292,7 @@ type WorkspaceApprovalSetting_Rule struct {func (x *WorkspaceApprovalSetting_Rule) Reset() {*x = WorkspaceApprovalSetting_Rule{}- mi := &file_store_setting_proto_msgTypes[15]+ mi := &file_store_setting_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1538,7 +1304,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[15]+ mi := &file_store_setting_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1588,7 +1354,7 @@ type SchemaTemplateSetting_FieldTemplate struct {func (x *SchemaTemplateSetting_FieldTemplate) Reset() {*x = SchemaTemplateSetting_FieldTemplate{}- mi := &file_store_setting_proto_msgTypes[16]+ mi := &file_store_setting_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1600,7 +1366,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[16]+ mi := &file_store_setting_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1613,7 +1379,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Messag// Deprecated: Use SchemaTemplateSetting_FieldTemplate.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting_FieldTemplate) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{5, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{4, 0}}func (x *SchemaTemplateSetting_FieldTemplate) GetId() string {@@ -1662,7 +1428,7 @@ type SchemaTemplateSetting_ColumnType struct {func (x *SchemaTemplateSetting_ColumnType) Reset() {*x = SchemaTemplateSetting_ColumnType{}- mi := &file_store_setting_proto_msgTypes[17]+ mi := &file_store_setting_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1674,7 +1440,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[17]+ mi := &file_store_setting_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1687,7 +1453,7 @@ func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {// Deprecated: Use SchemaTemplateSetting_ColumnType.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting_ColumnType) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{5, 1}+ return file_store_setting_proto_rawDescGZIP(), []int{4, 1}}func (x *SchemaTemplateSetting_ColumnType) GetEngine() Engine {@@ -1724,7 +1490,7 @@ type SchemaTemplateSetting_TableTemplate struct {func (x *SchemaTemplateSetting_TableTemplate) Reset() {*x = SchemaTemplateSetting_TableTemplate{}- mi := &file_store_setting_proto_msgTypes[18]+ mi := &file_store_setting_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1736,7 +1502,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[18]+ mi := &file_store_setting_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1749,7 +1515,7 @@ func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Messag// Deprecated: Use SchemaTemplateSetting_TableTemplate.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting_TableTemplate) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{5, 2}+ return file_store_setting_proto_rawDescGZIP(), []int{4, 2}}func (x *SchemaTemplateSetting_TableTemplate) GetId() string {@@ -1809,7 +1575,7 @@ type DataClassificationSetting_DataClassificationConfig struct {func (x *DataClassificationSetting_DataClassificationConfig) Reset() {*x = DataClassificationSetting_DataClassificationConfig{}- mi := &file_store_setting_proto_msgTypes[19]+ mi := &file_store_setting_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1821,7 +1587,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[19]+ mi := &file_store_setting_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1834,7 +1600,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() prot// Deprecated: Use DataClassificationSetting_DataClassificationConfig.ProtoReflect.Descriptor instead.func (*DataClassificationSetting_DataClassificationConfig) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{6, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{5, 0}}func (x *DataClassificationSetting_DataClassificationConfig) GetId() string {@@ -1883,7 +1649,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {*x = DataClassificationSetting_DataClassificationConfig_Level{}- mi := &file_store_setting_proto_msgTypes[20]+ mi := &file_store_setting_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1895,7 +1661,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() strifunc (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[20]+ mi := &file_store_setting_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1908,7 +1674,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect(// Deprecated: Use DataClassificationSetting_DataClassificationConfig_Level.ProtoReflect.Descriptor instead.func (*DataClassificationSetting_DataClassificationConfig_Level) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{6, 0, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{5, 0, 0}}func (x *DataClassificationSetting_DataClassificationConfig_Level) GetId() string {@@ -1945,7 +1711,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification strucfunc (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}- mi := &file_store_setting_proto_msgTypes[21]+ mi := &file_store_setting_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1957,7 +1723,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[21]+ mi := &file_store_setting_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1970,7 +1736,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)// Deprecated: Use DataClassificationSetting_DataClassificationConfig_DataClassification.ProtoReflect.Descriptor instead.func (*DataClassificationSetting_DataClassificationConfig_DataClassification) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{6, 0, 1}+ return file_store_setting_proto_rawDescGZIP(), []int{5, 0, 1}}func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetId() string {@@ -2016,7 +1782,7 @@ type SemanticTypeSetting_SemanticType struct {func (x *SemanticTypeSetting_SemanticType) Reset() {*x = SemanticTypeSetting_SemanticType{}- mi := &file_store_setting_proto_msgTypes[23]+ mi := &file_store_setting_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2028,7 +1794,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[23]+ mi := &file_store_setting_proto_msgTypes[22]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2041,7 +1807,7 @@ func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {// Deprecated: Use SemanticTypeSetting_SemanticType.ProtoReflect.Descriptor instead.func (*SemanticTypeSetting_SemanticType) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{7, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{6, 0}}func (x *SemanticTypeSetting_SemanticType) GetId() string {@@ -2083,7 +1849,7 @@ type Algorithm_FullMask struct {func (x *Algorithm_FullMask) Reset() {*x = Algorithm_FullMask{}- mi := &file_store_setting_proto_msgTypes[24]+ mi := &file_store_setting_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2095,7 +1861,7 @@ func (x *Algorithm_FullMask) String() string {func (*Algorithm_FullMask) ProtoMessage() {}func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[24]+ mi := &file_store_setting_proto_msgTypes[23]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2108,7 +1874,7 @@ func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_FullMask.ProtoReflect.Descriptor instead.func (*Algorithm_FullMask) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{7, 0}}func (x *Algorithm_FullMask) GetSubstitution() string {@@ -2129,7 +1895,7 @@ type Algorithm_RangeMask struct {func (x *Algorithm_RangeMask) Reset() {*x = Algorithm_RangeMask{}- mi := &file_store_setting_proto_msgTypes[25]+ mi := &file_store_setting_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2141,7 +1907,7 @@ func (x *Algorithm_RangeMask) String() string {func (*Algorithm_RangeMask) ProtoMessage() {}func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[25]+ mi := &file_store_setting_proto_msgTypes[24]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2154,7 +1920,7 @@ func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_RangeMask.ProtoReflect.Descriptor instead.func (*Algorithm_RangeMask) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8, 1}+ return file_store_setting_proto_rawDescGZIP(), []int{7, 1}}func (x *Algorithm_RangeMask) GetSlices() []*Algorithm_RangeMask_Slice {@@ -2174,7 +1940,7 @@ type Algorithm_MD5Mask struct {func (x *Algorithm_MD5Mask) Reset() {*x = Algorithm_MD5Mask{}- mi := &file_store_setting_proto_msgTypes[26]+ mi := &file_store_setting_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2186,7 +1952,7 @@ func (x *Algorithm_MD5Mask) String() string {func (*Algorithm_MD5Mask) ProtoMessage() {}func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[26]+ mi := &file_store_setting_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2199,7 +1965,7 @@ func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_MD5Mask.ProtoReflect.Descriptor instead.func (*Algorithm_MD5Mask) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8, 2}+ return file_store_setting_proto_rawDescGZIP(), []int{7, 2}}func (x *Algorithm_MD5Mask) GetSalt() string {@@ -2221,7 +1987,7 @@ type Algorithm_InnerOuterMask struct {func (x *Algorithm_InnerOuterMask) Reset() {*x = Algorithm_InnerOuterMask{}- mi := &file_store_setting_proto_msgTypes[27]+ mi := &file_store_setting_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2233,7 +1999,7 @@ func (x *Algorithm_InnerOuterMask) String() string {func (*Algorithm_InnerOuterMask) ProtoMessage() {}func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[27]+ mi := &file_store_setting_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2246,7 +2012,7 @@ func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.func (*Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8, 3}+ return file_store_setting_proto_rawDescGZIP(), []int{7, 3}}func (x *Algorithm_InnerOuterMask) GetPrefixLen() int32 {@@ -2291,7 +2057,7 @@ type Algorithm_RangeMask_Slice struct {func (x *Algorithm_RangeMask_Slice) Reset() {*x = Algorithm_RangeMask_Slice{}- mi := &file_store_setting_proto_msgTypes[28]+ mi := &file_store_setting_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2303,7 +2069,7 @@ func (x *Algorithm_RangeMask_Slice) String() string {func (*Algorithm_RangeMask_Slice) ProtoMessage() {}func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[28]+ mi := &file_store_setting_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2316,7 +2082,7 @@ func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.func (*Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{8, 1, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{7, 1, 0}}func (x *Algorithm_RangeMask_Slice) GetStart() int32 {@@ -2350,7 +2116,7 @@ type AppIMSetting_Slack struct {func (x *AppIMSetting_Slack) Reset() {*x = AppIMSetting_Slack{}- mi := &file_store_setting_proto_msgTypes[29]+ mi := &file_store_setting_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2362,7 +2128,7 @@ func (x *AppIMSetting_Slack) String() string {func (*AppIMSetting_Slack) ProtoMessage() {}func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[29]+ mi := &file_store_setting_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2375,7 +2141,7 @@ func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Slack.ProtoReflect.Descriptor instead.func (*AppIMSetting_Slack) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{9, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{8, 0}}func (x *AppIMSetting_Slack) GetEnabled() bool {@@ -2403,7 +2169,7 @@ type AppIMSetting_Feishu struct {func (x *AppIMSetting_Feishu) Reset() {*x = AppIMSetting_Feishu{}- mi := &file_store_setting_proto_msgTypes[30]+ mi := &file_store_setting_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2415,7 +2181,7 @@ func (x *AppIMSetting_Feishu) String() string {func (*AppIMSetting_Feishu) ProtoMessage() {}func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[30]+ mi := &file_store_setting_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2428,7 +2194,7 @@ func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Feishu.ProtoReflect.Descriptor instead.func (*AppIMSetting_Feishu) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{9, 1}+ return file_store_setting_proto_rawDescGZIP(), []int{8, 1}}func (x *AppIMSetting_Feishu) GetEnabled() bool {@@ -2464,7 +2230,7 @@ type AppIMSetting_Wecom struct {func (x *AppIMSetting_Wecom) Reset() {*x = AppIMSetting_Wecom{}- mi := &file_store_setting_proto_msgTypes[31]+ mi := &file_store_setting_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2476,7 +2242,7 @@ func (x *AppIMSetting_Wecom) String() string {func (*AppIMSetting_Wecom) ProtoMessage() {}func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[31]+ mi := &file_store_setting_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2489,7 +2255,7 @@ func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Wecom.ProtoReflect.Descriptor instead.func (*AppIMSetting_Wecom) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{9, 2}+ return file_store_setting_proto_rawDescGZIP(), []int{8, 2}}func (x *AppIMSetting_Wecom) GetEnabled() bool {@@ -2531,7 +2297,7 @@ type AppIMSetting_Lark struct {func (x *AppIMSetting_Lark) Reset() {*x = AppIMSetting_Lark{}- mi := &file_store_setting_proto_msgTypes[32]+ mi := &file_store_setting_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2543,7 +2309,7 @@ func (x *AppIMSetting_Lark) String() string {func (*AppIMSetting_Lark) ProtoMessage() {}func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[32]+ mi := &file_store_setting_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2556,7 +2322,7 @@ func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Lark.ProtoReflect.Descriptor instead.func (*AppIMSetting_Lark) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{9, 3}+ return file_store_setting_proto_rawDescGZIP(), []int{8, 3}}func (x *AppIMSetting_Lark) GetEnabled() bool {@@ -2592,7 +2358,7 @@ type AppIMSetting_DingTalk struct {func (x *AppIMSetting_DingTalk) Reset() {*x = AppIMSetting_DingTalk{}- mi := &file_store_setting_proto_msgTypes[33]+ mi := &file_store_setting_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2604,7 +2370,7 @@ func (x *AppIMSetting_DingTalk) String() string {func (*AppIMSetting_DingTalk) ProtoMessage() {}func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[33]+ mi := &file_store_setting_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2617,7 +2383,7 @@ func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_DingTalk.ProtoReflect.Descriptor instead.func (*AppIMSetting_DingTalk) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{9, 4}+ return file_store_setting_proto_rawDescGZIP(), []int{8, 4}}func (x *AppIMSetting_DingTalk) GetEnabled() bool {@@ -2664,7 +2430,7 @@ type EnvironmentSetting_Environment struct {func (x *EnvironmentSetting_Environment) Reset() {*x = EnvironmentSetting_Environment{}- mi := &file_store_setting_proto_msgTypes[34]+ mi := &file_store_setting_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2676,7 +2442,7 @@ func (x *EnvironmentSetting_Environment) String() string {func (*EnvironmentSetting_Environment) ProtoMessage() {}func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[34]+ mi := &file_store_setting_proto_msgTypes[33]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2689,7 +2455,7 @@ func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {// Deprecated: Use EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {- return file_store_setting_proto_rawDescGZIP(), []int{14, 0}+ return file_store_setting_proto_rawDescGZIP(), []int{13, 0}}func (x *EnvironmentSetting_Environment) GetId() string {@@ -2759,33 +2525,7 @@ const file_store_setting_proto_rawDesc = "" +"expression\x18\x01 \x01(\v2\x1e.google.api.expr.v1alpha1.ExprR\n" +"expression\x12<\n" +"\btemplate\x18\x02 \x01(\v2 .bytebase.store.ApprovalTemplateR\btemplate\x12/\n" +- "\tcondition\x18\x03 \x01(\v2\x11.google.type.ExprR\tcondition\"\x88\x05\n" +- "\x17SMTPMailDeliverySetting\x12\x16\n" +- "\x06server\x18\x01 \x01(\tR\x06server\x12\x12\n" +- "\x04port\x18\x02 \x01(\x05R\x04port\x12R\n" +- "\n" +- "encryption\x18\x03 \x01(\x0e22.bytebase.store.SMTPMailDeliverySetting.EncryptionR\n" +- "encryption\x12\x0e\n" +- "\x02ca\x18\x04 \x01(\tR\x02ca\x12\x10\n" +- "\x03key\x18\x05 \x01(\tR\x03key\x12\x12\n" +- "\x04cert\x18\x06 \x01(\tR\x04cert\x12^\n" +- "\x0eauthentication\x18\a \x01(\x0e26.bytebase.store.SMTPMailDeliverySetting.AuthenticationR\x0eauthentication\x12\x1a\n" +- "\busername\x18\b \x01(\tR\busername\x12\x1a\n" +- "\bpassword\x18\t \x01(\tR\bpassword\x12\x12\n" +- "\x04from\x18\n" +- " \x01(\tR\x04from\"n\n" +- "\n" +- "Encryption\x12\x1a\n" +- "\x16ENCRYPTION_UNSPECIFIED\x10\x00\x12\x13\n" +- "\x0fENCRYPTION_NONE\x10\x01\x12\x17\n" +- "\x13ENCRYPTION_STARTTLS\x10\x02\x12\x16\n" +- "\x12ENCRYPTION_SSL_TLS\x10\x03\"\x9a\x01\n" +- "\x0eAuthentication\x12\x1e\n" +- "\x1aAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x17\n" +- "\x13AUTHENTICATION_NONE\x10\x01\x12\x18\n" +- "\x14AUTHENTICATION_PLAIN\x10\x02\x12\x18\n" +- "\x14AUTHENTICATION_LOGIN\x10\x03\x12\x1b\n" +- "\x17AUTHENTICATION_CRAM_MD5\x10\x04\"\xd0\x06\n" ++ "\tcondition\x18\x03 \x01(\v2\x11.google.type.ExprR\tcondition\"\xd0\x06\n" +"\x15SchemaTemplateSetting\x12\\\n" +"\x0ffield_templates\x18\x01 \x03(\v23.bytebase.store.SchemaTemplateSetting.FieldTemplateR\x0efieldTemplates\x12S\n" +"\fcolumn_types\x18\x02 \x03(\v20.bytebase.store.SchemaTemplateSetting.ColumnTypeR\vcolumnTypes\x12\\\n" +@@ -2930,7 +2670,7 @@ const file_store_setting_proto_rawDesc = "" +"\x05color\x18\x04 \x01(\tR\x05color\x1a7\n" +"\tTagsEntry\x12\x10\n" +"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*\xad\x03\n" ++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*\x90\x03\n" +"\vSettingName\x12\x1c\n" +"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\x0f\n" +"\vAUTH_SECRET\x10\x01\x12\x11\n" +@@ -2945,8 +2685,7 @@ const file_store_setting_proto_rawDesc = "" +"\tWATERMARK\x10\t\x12\x06\n" +"\x02AI\x10\n" +"\x12\x10\n" +- "\fPLUGIN_AGENT\x10\v\x12\x1b\n" +- "\x17WORKSPACE_MAIL_DELIVERY\x10\f\x12\x13\n" ++ "\fPLUGIN_AGENT\x10\v\x12\x13\n" +"\x0fSCHEMA_TEMPLATE\x10\r\x12\x17\n" +"\x13DATA_CLASSIFICATION\x10\x0e\x12\x12\n" +"\x0eSEMANTIC_TYPES\x10\x0f\x12\x19\n" +@@ -2972,110 +2711,105 @@ func file_store_setting_proto_rawDescGZIP() []byte {return file_store_setting_proto_rawDescData}-var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 7)-var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 36)+var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 5)+var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 35)var file_store_setting_proto_goTypes = []any{(SettingName)(0), // 0: bytebase.store.SettingName(DatabaseChangeMode)(0), // 1: bytebase.store.DatabaseChangeMode(Announcement_AlertLevel)(0), // 2: bytebase.store.Announcement.AlertLevel- (SMTPMailDeliverySetting_Encryption)(0), // 3: bytebase.store.SMTPMailDeliverySetting.Encryption- (SMTPMailDeliverySetting_Authentication)(0), // 4: bytebase.store.SMTPMailDeliverySetting.Authentication- (Algorithm_InnerOuterMask_MaskType)(0), // 5: bytebase.store.Algorithm.InnerOuterMask.MaskType- (AISetting_Provider)(0), // 6: bytebase.store.AISetting.Provider- (*WorkspaceProfileSetting)(nil), // 7: bytebase.store.WorkspaceProfileSetting- (*Announcement)(nil), // 8: bytebase.store.Announcement- (*AgentPluginSetting)(nil), // 9: bytebase.store.AgentPluginSetting- (*WorkspaceApprovalSetting)(nil), // 10: bytebase.store.WorkspaceApprovalSetting- (*SMTPMailDeliverySetting)(nil), // 11: bytebase.store.SMTPMailDeliverySetting- (*SchemaTemplateSetting)(nil), // 12: bytebase.store.SchemaTemplateSetting- (*DataClassificationSetting)(nil), // 13: bytebase.store.DataClassificationSetting- (*SemanticTypeSetting)(nil), // 14: bytebase.store.SemanticTypeSetting- (*Algorithm)(nil), // 15: bytebase.store.Algorithm- (*AppIMSetting)(nil), // 16: bytebase.store.AppIMSetting- (*MaximumSQLResultSizeSetting)(nil), // 17: bytebase.store.MaximumSQLResultSizeSetting- (*SCIMSetting)(nil), // 18: bytebase.store.SCIMSetting- (*PasswordRestrictionSetting)(nil), // 19: bytebase.store.PasswordRestrictionSetting- (*AISetting)(nil), // 20: bytebase.store.AISetting- (*EnvironmentSetting)(nil), // 21: bytebase.store.EnvironmentSetting- (*WorkspaceApprovalSetting_Rule)(nil), // 22: bytebase.store.WorkspaceApprovalSetting.Rule- (*SchemaTemplateSetting_FieldTemplate)(nil), // 23: bytebase.store.SchemaTemplateSetting.FieldTemplate- (*SchemaTemplateSetting_ColumnType)(nil), // 24: bytebase.store.SchemaTemplateSetting.ColumnType- (*SchemaTemplateSetting_TableTemplate)(nil), // 25: bytebase.store.SchemaTemplateSetting.TableTemplate- (*DataClassificationSetting_DataClassificationConfig)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification- nil, // 29: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- (*SemanticTypeSetting_SemanticType)(nil), // 30: bytebase.store.SemanticTypeSetting.SemanticType- (*Algorithm_FullMask)(nil), // 31: bytebase.store.Algorithm.FullMask- (*Algorithm_RangeMask)(nil), // 32: bytebase.store.Algorithm.RangeMask- (*Algorithm_MD5Mask)(nil), // 33: bytebase.store.Algorithm.MD5Mask- (*Algorithm_InnerOuterMask)(nil), // 34: bytebase.store.Algorithm.InnerOuterMask- (*Algorithm_RangeMask_Slice)(nil), // 35: bytebase.store.Algorithm.RangeMask.Slice- (*AppIMSetting_Slack)(nil), // 36: bytebase.store.AppIMSetting.Slack- (*AppIMSetting_Feishu)(nil), // 37: bytebase.store.AppIMSetting.Feishu- (*AppIMSetting_Wecom)(nil), // 38: bytebase.store.AppIMSetting.Wecom- (*AppIMSetting_Lark)(nil), // 39: bytebase.store.AppIMSetting.Lark- (*AppIMSetting_DingTalk)(nil), // 40: bytebase.store.AppIMSetting.DingTalk- (*EnvironmentSetting_Environment)(nil), // 41: bytebase.store.EnvironmentSetting.Environment- nil, // 42: bytebase.store.EnvironmentSetting.Environment.TagsEntry- (*durationpb.Duration)(nil), // 43: google.protobuf.Duration- (*v1alpha1.Expr)(nil), // 44: google.api.expr.v1alpha1.Expr- (*ApprovalTemplate)(nil), // 45: bytebase.store.ApprovalTemplate- (*expr.Expr)(nil), // 46: google.type.Expr- (Engine)(0), // 47: bytebase.store.Engine- (*ColumnMetadata)(nil), // 48: bytebase.store.ColumnMetadata- (*ColumnCatalog)(nil), // 49: bytebase.store.ColumnCatalog- (*TableMetadata)(nil), // 50: bytebase.store.TableMetadata- (*TableCatalog)(nil), // 51: bytebase.store.TableCatalog+ (Algorithm_InnerOuterMask_MaskType)(0), // 3: bytebase.store.Algorithm.InnerOuterMask.MaskType+ (AISetting_Provider)(0), // 4: bytebase.store.AISetting.Provider+ (*WorkspaceProfileSetting)(nil), // 5: bytebase.store.WorkspaceProfileSetting+ (*Announcement)(nil), // 6: bytebase.store.Announcement+ (*AgentPluginSetting)(nil), // 7: bytebase.store.AgentPluginSetting+ (*WorkspaceApprovalSetting)(nil), // 8: bytebase.store.WorkspaceApprovalSetting+ (*SchemaTemplateSetting)(nil), // 9: bytebase.store.SchemaTemplateSetting+ (*DataClassificationSetting)(nil), // 10: bytebase.store.DataClassificationSetting+ (*SemanticTypeSetting)(nil), // 11: bytebase.store.SemanticTypeSetting+ (*Algorithm)(nil), // 12: bytebase.store.Algorithm+ (*AppIMSetting)(nil), // 13: bytebase.store.AppIMSetting+ (*MaximumSQLResultSizeSetting)(nil), // 14: bytebase.store.MaximumSQLResultSizeSetting+ (*SCIMSetting)(nil), // 15: bytebase.store.SCIMSetting+ (*PasswordRestrictionSetting)(nil), // 16: bytebase.store.PasswordRestrictionSetting+ (*AISetting)(nil), // 17: bytebase.store.AISetting+ (*EnvironmentSetting)(nil), // 18: bytebase.store.EnvironmentSetting+ (*WorkspaceApprovalSetting_Rule)(nil), // 19: bytebase.store.WorkspaceApprovalSetting.Rule+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 20: bytebase.store.SchemaTemplateSetting.FieldTemplate+ (*SchemaTemplateSetting_ColumnType)(nil), // 21: bytebase.store.SchemaTemplateSetting.ColumnType+ (*SchemaTemplateSetting_TableTemplate)(nil), // 22: bytebase.store.SchemaTemplateSetting.TableTemplate+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 23: bytebase.store.DataClassificationSetting.DataClassificationConfig+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 24: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 25: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ nil, // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ (*SemanticTypeSetting_SemanticType)(nil), // 27: bytebase.store.SemanticTypeSetting.SemanticType+ (*Algorithm_FullMask)(nil), // 28: bytebase.store.Algorithm.FullMask+ (*Algorithm_RangeMask)(nil), // 29: bytebase.store.Algorithm.RangeMask+ (*Algorithm_MD5Mask)(nil), // 30: bytebase.store.Algorithm.MD5Mask+ (*Algorithm_InnerOuterMask)(nil), // 31: bytebase.store.Algorithm.InnerOuterMask+ (*Algorithm_RangeMask_Slice)(nil), // 32: bytebase.store.Algorithm.RangeMask.Slice+ (*AppIMSetting_Slack)(nil), // 33: bytebase.store.AppIMSetting.Slack+ (*AppIMSetting_Feishu)(nil), // 34: bytebase.store.AppIMSetting.Feishu+ (*AppIMSetting_Wecom)(nil), // 35: bytebase.store.AppIMSetting.Wecom+ (*AppIMSetting_Lark)(nil), // 36: bytebase.store.AppIMSetting.Lark+ (*AppIMSetting_DingTalk)(nil), // 37: bytebase.store.AppIMSetting.DingTalk+ (*EnvironmentSetting_Environment)(nil), // 38: bytebase.store.EnvironmentSetting.Environment+ nil, // 39: bytebase.store.EnvironmentSetting.Environment.TagsEntry+ (*durationpb.Duration)(nil), // 40: google.protobuf.Duration+ (*v1alpha1.Expr)(nil), // 41: google.api.expr.v1alpha1.Expr+ (*ApprovalTemplate)(nil), // 42: bytebase.store.ApprovalTemplate+ (*expr.Expr)(nil), // 43: google.type.Expr+ (Engine)(0), // 44: bytebase.store.Engine+ (*ColumnMetadata)(nil), // 45: bytebase.store.ColumnMetadata+ (*ColumnCatalog)(nil), // 46: bytebase.store.ColumnCatalog+ (*TableMetadata)(nil), // 47: bytebase.store.TableMetadata+ (*TableCatalog)(nil), // 48: bytebase.store.TableCatalog}var file_store_setting_proto_depIdxs = []int32{- 43, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration- 8, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.Announcement- 43, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration+ 40, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration+ 6, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.Announcement+ 40, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration1, // 3: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.DatabaseChangeMode2, // 4: bytebase.store.Announcement.level:type_name -> bytebase.store.Announcement.AlertLevel- 22, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule- 3, // 6: bytebase.store.SMTPMailDeliverySetting.encryption:type_name -> bytebase.store.SMTPMailDeliverySetting.Encryption- 4, // 7: bytebase.store.SMTPMailDeliverySetting.authentication:type_name -> bytebase.store.SMTPMailDeliverySetting.Authentication- 23, // 8: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate- 24, // 9: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType- 25, // 10: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate- 26, // 11: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig- 30, // 12: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType- 31, // 13: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask- 32, // 14: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask- 33, // 15: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask- 34, // 16: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask- 36, // 17: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack- 37, // 18: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu- 38, // 19: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom- 39, // 20: bytebase.store.AppIMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark- 40, // 21: bytebase.store.AppIMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk- 43, // 22: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration- 6, // 23: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider- 41, // 24: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment- 44, // 25: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.Expr- 45, // 26: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate- 46, // 27: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 47, // 28: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine- 48, // 29: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata- 49, // 30: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog- 47, // 31: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine- 47, // 32: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine- 50, // 33: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata- 51, // 34: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog- 27, // 35: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level- 29, // 36: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- 28, // 37: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification- 15, // 38: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm- 35, // 39: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice- 5, // 40: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType- 42, // 41: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry- 42, // [42:42] is the sub-list for method output_type- 42, // [42:42] is the sub-list for method input_type- 42, // [42:42] is the sub-list for extension type_name- 42, // [42:42] is the sub-list for extension extendee- 0, // [0:42] is the sub-list for field type_name+ 19, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule+ 20, // 6: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate+ 21, // 7: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType+ 22, // 8: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate+ 23, // 9: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig+ 27, // 10: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType+ 28, // 11: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask+ 29, // 12: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask+ 30, // 13: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask+ 31, // 14: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask+ 33, // 15: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack+ 34, // 16: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu+ 35, // 17: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom+ 36, // 18: bytebase.store.AppIMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark+ 37, // 19: bytebase.store.AppIMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk+ 40, // 20: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration+ 4, // 21: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider+ 38, // 22: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment+ 41, // 23: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.Expr+ 42, // 24: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate+ 43, // 25: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 44, // 26: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine+ 45, // 27: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata+ 46, // 28: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog+ 44, // 29: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine+ 44, // 30: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine+ 47, // 31: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata+ 48, // 32: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog+ 24, // 33: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ 26, // 34: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 25, // 35: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ 12, // 36: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm+ 32, // 37: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice+ 3, // 38: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType+ 39, // 39: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry+ 40, // [40:40] is the sub-list for method output_type+ 40, // [40:40] is the sub-list for method input_type+ 40, // [40:40] is the sub-list for extension type_name+ 40, // [40:40] is the sub-list for extension extendee+ 0, // [0:40] is the sub-list for field type_name}func init() { file_store_setting_proto_init() }@@ -3086,20 +2820,20 @@ func file_store_setting_proto_init() {file_store_approval_proto_init()file_store_common_proto_init()file_store_database_proto_init()- file_store_setting_proto_msgTypes[8].OneofWrappers = []any{+ file_store_setting_proto_msgTypes[7].OneofWrappers = []any{(*Algorithm_FullMask_)(nil),(*Algorithm_RangeMask_)(nil),(*Algorithm_Md5Mask)(nil),(*Algorithm_InnerOuterMask_)(nil),}- file_store_setting_proto_msgTypes[21].OneofWrappers = []any{}+ file_store_setting_proto_msgTypes[20].OneofWrappers = []any{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_setting_proto_rawDesc), len(file_store_setting_proto_rawDesc)),- NumEnums: 7,- NumMessages: 36,+ NumEnums: 5,+ NumMessages: 35,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.goindex db7b05e751..5d791db34b 100644--- a/proto/generated-go/v1/setting_service.pb.go+++ b/proto/generated-go/v1/setting_service.pb.go@@ -13,7 +13,6 @@ import (protoimpl "google.golang.org/protobuf/runtime/protoimpl"durationpb "google.golang.org/protobuf/types/known/durationpb"fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"- timestamppb "google.golang.org/protobuf/types/known/timestamppb"reflect "reflect"sync "sync"unsafe "unsafe"@@ -93,7 +92,6 @@ const (Setting_WATERMARK Setting_SettingName = 9Setting_AI Setting_SettingName = 10Setting_PLUGIN_AGENT Setting_SettingName = 11- Setting_WORKSPACE_MAIL_DELIVERY Setting_SettingName = 12Setting_SCHEMA_TEMPLATE Setting_SettingName = 13Setting_DATA_CLASSIFICATION Setting_SettingName = 14Setting_SEMANTIC_TYPES Setting_SettingName = 15@@ -118,7 +116,6 @@ var (9: "WATERMARK",10: "AI",11: "PLUGIN_AGENT",- 12: "WORKSPACE_MAIL_DELIVERY",13: "SCHEMA_TEMPLATE",14: "DATA_CLASSIFICATION",15: "SEMANTIC_TYPES",@@ -140,7 +137,6 @@ var ("WATERMARK": 9,"AI": 10,"PLUGIN_AGENT": 11,- "WORKSPACE_MAIL_DELIVERY": 12,"SCHEMA_TEMPLATE": 13,"DATA_CLASSIFICATION": 14,"SEMANTIC_TYPES": 15,@@ -178,115 +174,6 @@ func (Setting_SettingName) EnumDescriptor() ([]byte, []int) {return file_v1_setting_service_proto_rawDescGZIP(), []int{5, 0}}-// We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.-type SMTPMailDeliverySettingValue_Encryption int32--const (- SMTPMailDeliverySettingValue_ENCRYPTION_UNSPECIFIED SMTPMailDeliverySettingValue_Encryption = 0- SMTPMailDeliverySettingValue_ENCRYPTION_NONE SMTPMailDeliverySettingValue_Encryption = 1- SMTPMailDeliverySettingValue_ENCRYPTION_STARTTLS SMTPMailDeliverySettingValue_Encryption = 2- SMTPMailDeliverySettingValue_ENCRYPTION_SSL_TLS SMTPMailDeliverySettingValue_Encryption = 3-)--// Enum value maps for SMTPMailDeliverySettingValue_Encryption.-var (- SMTPMailDeliverySettingValue_Encryption_name = map[int32]string{- 0: "ENCRYPTION_UNSPECIFIED",- 1: "ENCRYPTION_NONE",- 2: "ENCRYPTION_STARTTLS",- 3: "ENCRYPTION_SSL_TLS",- }- SMTPMailDeliverySettingValue_Encryption_value = map[string]int32{- "ENCRYPTION_UNSPECIFIED": 0,- "ENCRYPTION_NONE": 1,- "ENCRYPTION_STARTTLS": 2,- "ENCRYPTION_SSL_TLS": 3,- }-)--func (x SMTPMailDeliverySettingValue_Encryption) Enum() *SMTPMailDeliverySettingValue_Encryption {- p := new(SMTPMailDeliverySettingValue_Encryption)- *p = x- return p-}--func (x SMTPMailDeliverySettingValue_Encryption) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (SMTPMailDeliverySettingValue_Encryption) Descriptor() protoreflect.EnumDescriptor {- return file_v1_setting_service_proto_enumTypes[2].Descriptor()-}--func (SMTPMailDeliverySettingValue_Encryption) Type() protoreflect.EnumType {- return &file_v1_setting_service_proto_enumTypes[2]-}--func (x SMTPMailDeliverySettingValue_Encryption) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use SMTPMailDeliverySettingValue_Encryption.Descriptor instead.-func (SMTPMailDeliverySettingValue_Encryption) EnumDescriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 0}-}--// We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.-type SMTPMailDeliverySettingValue_Authentication int32--const (- SMTPMailDeliverySettingValue_AUTHENTICATION_UNSPECIFIED SMTPMailDeliverySettingValue_Authentication = 0- SMTPMailDeliverySettingValue_AUTHENTICATION_NONE SMTPMailDeliverySettingValue_Authentication = 1- SMTPMailDeliverySettingValue_AUTHENTICATION_PLAIN SMTPMailDeliverySettingValue_Authentication = 2- SMTPMailDeliverySettingValue_AUTHENTICATION_LOGIN SMTPMailDeliverySettingValue_Authentication = 3- SMTPMailDeliverySettingValue_AUTHENTICATION_CRAM_MD5 SMTPMailDeliverySettingValue_Authentication = 4-)--// Enum value maps for SMTPMailDeliverySettingValue_Authentication.-var (- SMTPMailDeliverySettingValue_Authentication_name = map[int32]string{- 0: "AUTHENTICATION_UNSPECIFIED",- 1: "AUTHENTICATION_NONE",- 2: "AUTHENTICATION_PLAIN",- 3: "AUTHENTICATION_LOGIN",- 4: "AUTHENTICATION_CRAM_MD5",- }- SMTPMailDeliverySettingValue_Authentication_value = map[string]int32{- "AUTHENTICATION_UNSPECIFIED": 0,- "AUTHENTICATION_NONE": 1,- "AUTHENTICATION_PLAIN": 2,- "AUTHENTICATION_LOGIN": 3,- "AUTHENTICATION_CRAM_MD5": 4,- }-)--func (x SMTPMailDeliverySettingValue_Authentication) Enum() *SMTPMailDeliverySettingValue_Authentication {- p := new(SMTPMailDeliverySettingValue_Authentication)- *p = x- return p-}--func (x SMTPMailDeliverySettingValue_Authentication) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (SMTPMailDeliverySettingValue_Authentication) Descriptor() protoreflect.EnumDescriptor {- return file_v1_setting_service_proto_enumTypes[3].Descriptor()-}--func (SMTPMailDeliverySettingValue_Authentication) Type() protoreflect.EnumType {- return &file_v1_setting_service_proto_enumTypes[3]-}--func (x SMTPMailDeliverySettingValue_Authentication) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use SMTPMailDeliverySettingValue_Authentication.Descriptor instead.-func (SMTPMailDeliverySettingValue_Authentication) EnumDescriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 1}-}-// We support three levels of AlertLevel: INFO, WARNING, and ERROR.type Announcement_AlertLevel int32@@ -324,11 +211,11 @@ func (x Announcement_AlertLevel) String() string {}func (Announcement_AlertLevel) Descriptor() protoreflect.EnumDescriptor {- return file_v1_setting_service_proto_enumTypes[4].Descriptor()+ return file_v1_setting_service_proto_enumTypes[2].Descriptor()}func (Announcement_AlertLevel) Type() protoreflect.EnumType {- return &file_v1_setting_service_proto_enumTypes[4]+ return &file_v1_setting_service_proto_enumTypes[2]}func (x Announcement_AlertLevel) Number() protoreflect.EnumNumber {@@ -337,7 +224,7 @@ func (x Announcement_AlertLevel) Number() protoreflect.EnumNumber {// Deprecated: Use Announcement_AlertLevel.Descriptor instead.func (Announcement_AlertLevel) EnumDescriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{11, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{10, 0}}type Algorithm_InnerOuterMask_MaskType int32@@ -373,11 +260,11 @@ func (x Algorithm_InnerOuterMask_MaskType) String() string {}func (Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {- return file_v1_setting_service_proto_enumTypes[5].Descriptor()+ return file_v1_setting_service_proto_enumTypes[3].Descriptor()}func (Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {- return &file_v1_setting_service_proto_enumTypes[5]+ return &file_v1_setting_service_proto_enumTypes[3]}func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {@@ -386,7 +273,7 @@ func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {// Deprecated: Use Algorithm_InnerOuterMask_MaskType.Descriptor instead.func (Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 3, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 3, 0}}type AISetting_Provider int32@@ -428,11 +315,11 @@ func (x AISetting_Provider) String() string {}func (AISetting_Provider) Descriptor() protoreflect.EnumDescriptor {- return file_v1_setting_service_proto_enumTypes[6].Descriptor()+ return file_v1_setting_service_proto_enumTypes[4].Descriptor()}func (AISetting_Provider) Type() protoreflect.EnumType {- return &file_v1_setting_service_proto_enumTypes[6]+ return &file_v1_setting_service_proto_enumTypes[4]}func (x AISetting_Provider) Number() protoreflect.EnumNumber {@@ -441,7 +328,7 @@ func (x AISetting_Provider) Number() protoreflect.EnumNumber {// Deprecated: Use AISetting_Provider.Descriptor instead.func (AISetting_Provider) EnumDescriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{21, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 0}}type ListSettingsRequest struct {@@ -791,12 +678,10 @@ type Value struct {// Types that are valid to be assigned to Value://// *Value_StringValue- // *Value_SmtpMailDeliverySettingValue// *Value_AppImSettingValue// *Value_AgentPluginSettingValue// *Value_WorkspaceProfileSettingValue// *Value_WorkspaceApprovalSettingValue- // *Value_WorkspaceTrialSettingValue// *Value_SchemaTemplateSettingValue// *Value_DataClassificationSettingValue// *Value_SemanticTypeSettingValue@@ -856,15 +741,6 @@ func (x *Value) GetStringValue() string {return ""}-func (x *Value) GetSmtpMailDeliverySettingValue() *SMTPMailDeliverySettingValue {- if x != nil {- if x, ok := x.Value.(*Value_SmtpMailDeliverySettingValue); ok {- return x.SmtpMailDeliverySettingValue- }- }- return nil-}-func (x *Value) GetAppImSettingValue() *AppIMSetting {if x != nil {if x, ok := x.Value.(*Value_AppImSettingValue); ok {@@ -901,15 +777,6 @@ func (x *Value) GetWorkspaceApprovalSettingValue() *WorkspaceApprovalSetting {return nil}-func (x *Value) GetWorkspaceTrialSettingValue() *WorkspaceTrialSetting {- if x != nil {- if x, ok := x.Value.(*Value_WorkspaceTrialSettingValue); ok {- return x.WorkspaceTrialSettingValue- }- }- return nil-}-func (x *Value) GetSchemaTemplateSettingValue() *SchemaTemplateSetting {if x != nil {if x, ok := x.Value.(*Value_SchemaTemplateSettingValue); ok {@@ -991,10 +858,6 @@ type Value_StringValue struct {StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`}-type Value_SmtpMailDeliverySettingValue struct {- SmtpMailDeliverySettingValue *SMTPMailDeliverySettingValue `protobuf:"bytes,2,opt,name=smtp_mail_delivery_setting_value,json=smtpMailDeliverySettingValue,proto3,oneof"`-}-type Value_AppImSettingValue struct {AppImSettingValue *AppIMSetting `protobuf:"bytes,3,opt,name=app_im_setting_value,json=appImSettingValue,proto3,oneof"`}@@ -1011,10 +874,6 @@ type Value_WorkspaceApprovalSettingValue struct {WorkspaceApprovalSettingValue *WorkspaceApprovalSetting `protobuf:"bytes,6,opt,name=workspace_approval_setting_value,json=workspaceApprovalSettingValue,proto3,oneof"`}-type Value_WorkspaceTrialSettingValue struct {- WorkspaceTrialSettingValue *WorkspaceTrialSetting `protobuf:"bytes,7,opt,name=workspace_trial_setting_value,json=workspaceTrialSettingValue,proto3,oneof"`-}-type Value_SchemaTemplateSettingValue struct {SchemaTemplateSettingValue *SchemaTemplateSetting `protobuf:"bytes,9,opt,name=schema_template_setting_value,json=schemaTemplateSettingValue,proto3,oneof"`}@@ -1049,8 +908,6 @@ type Value_EnvironmentSetting struct {func (*Value_StringValue) isValue_Value() {}-func (*Value_SmtpMailDeliverySettingValue) isValue_Value() {}-func (*Value_AppImSettingValue) isValue_Value() {}func (*Value_AgentPluginSettingValue) isValue_Value() {}@@ -1059,8 +916,6 @@ func (*Value_WorkspaceProfileSettingValue) isValue_Value() {}func (*Value_WorkspaceApprovalSettingValue) isValue_Value() {}-func (*Value_WorkspaceTrialSettingValue) isValue_Value() {}-func (*Value_SchemaTemplateSettingValue) isValue_Value() {}func (*Value_DataClassificationSettingValue) isValue_Value() {}@@ -1077,138 +932,6 @@ func (*Value_AiSetting) isValue_Value() {}func (*Value_EnvironmentSetting) isValue_Value() {}-type SMTPMailDeliverySettingValue struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The SMTP server address.- Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`- // The SMTP server port.- Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`- // The SMTP server encryption.- Encryption SMTPMailDeliverySettingValue_Encryption `protobuf:"varint,3,opt,name=encryption,proto3,enum=bytebase.v1.SMTPMailDeliverySettingValue_Encryption" json:"encryption,omitempty"`- // The CA, KEY, and CERT for the SMTP server.- // Not used.- Ca *string `protobuf:"bytes,4,opt,name=ca,proto3,oneof" json:"ca,omitempty"`- Key *string `protobuf:"bytes,5,opt,name=key,proto3,oneof" json:"key,omitempty"`- Cert *string `protobuf:"bytes,6,opt,name=cert,proto3,oneof" json:"cert,omitempty"`- Authentication SMTPMailDeliverySettingValue_Authentication `protobuf:"varint,7,opt,name=authentication,proto3,enum=bytebase.v1.SMTPMailDeliverySettingValue_Authentication" json:"authentication,omitempty"`- Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"`- // If not specified, server will use the existed password.- Password *string `protobuf:"bytes,9,opt,name=password,proto3,oneof" json:"password,omitempty"`- // The sender email address.- From string `protobuf:"bytes,10,opt,name=from,proto3" json:"from,omitempty"`- // The recipient email address, used with validate_only to send test email.- To string `protobuf:"bytes,11,opt,name=to,proto3" json:"to,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SMTPMailDeliverySettingValue) Reset() {- *x = SMTPMailDeliverySettingValue{}- mi := &file_v1_setting_service_proto_msgTypes[7]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SMTPMailDeliverySettingValue) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SMTPMailDeliverySettingValue) ProtoMessage() {}--func (x *SMTPMailDeliverySettingValue) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[7]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SMTPMailDeliverySettingValue.ProtoReflect.Descriptor instead.-func (*SMTPMailDeliverySettingValue) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{7}-}--func (x *SMTPMailDeliverySettingValue) GetServer() string {- if x != nil {- return x.Server- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetPort() int32 {- if x != nil {- return x.Port- }- return 0-}--func (x *SMTPMailDeliverySettingValue) GetEncryption() SMTPMailDeliverySettingValue_Encryption {- if x != nil {- return x.Encryption- }- return SMTPMailDeliverySettingValue_ENCRYPTION_UNSPECIFIED-}--func (x *SMTPMailDeliverySettingValue) GetCa() string {- if x != nil && x.Ca != nil {- return *x.Ca- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetKey() string {- if x != nil && x.Key != nil {- return *x.Key- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetCert() string {- if x != nil && x.Cert != nil {- return *x.Cert- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetAuthentication() SMTPMailDeliverySettingValue_Authentication {- if x != nil {- return x.Authentication- }- return SMTPMailDeliverySettingValue_AUTHENTICATION_UNSPECIFIED-}--func (x *SMTPMailDeliverySettingValue) GetUsername() string {- if x != nil {- return x.Username- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetPassword() string {- if x != nil && x.Password != nil {- return *x.Password- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetFrom() string {- if x != nil {- return x.From- }- return ""-}--func (x *SMTPMailDeliverySettingValue) GetTo() string {- if x != nil {- return x.To- }- return ""-}-type AppIMSetting struct {state protoimpl.MessageState `protogen:"open.v1"`Slack *AppIMSetting_Slack `protobuf:"bytes,1,opt,name=slack,proto3" json:"slack,omitempty"`@@ -1222,7 +945,7 @@ type AppIMSetting struct {func (x *AppIMSetting) Reset() {*x = AppIMSetting{}- mi := &file_v1_setting_service_proto_msgTypes[8]+ mi := &file_v1_setting_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1234,7 +957,7 @@ func (x *AppIMSetting) String() string {func (*AppIMSetting) ProtoMessage() {}func (x *AppIMSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[8]+ mi := &file_v1_setting_service_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1247,7 +970,7 @@ func (x *AppIMSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting.ProtoReflect.Descriptor instead.func (*AppIMSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{8}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{7}}func (x *AppIMSetting) GetSlack() *AppIMSetting_Slack {@@ -1297,7 +1020,7 @@ type AgentPluginSetting struct {func (x *AgentPluginSetting) Reset() {*x = AgentPluginSetting{}- mi := &file_v1_setting_service_proto_msgTypes[9]+ mi := &file_v1_setting_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1309,7 +1032,7 @@ func (x *AgentPluginSetting) String() string {func (*AgentPluginSetting) ProtoMessage() {}func (x *AgentPluginSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[9]+ mi := &file_v1_setting_service_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1322,7 +1045,7 @@ func (x *AgentPluginSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use AgentPluginSetting.ProtoReflect.Descriptor instead.func (*AgentPluginSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{9}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{8}}func (x *AgentPluginSetting) GetUrl() string {@@ -1369,7 +1092,7 @@ type WorkspaceProfileSetting struct {func (x *WorkspaceProfileSetting) Reset() {*x = WorkspaceProfileSetting{}- mi := &file_v1_setting_service_proto_msgTypes[10]+ mi := &file_v1_setting_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1381,7 +1104,7 @@ func (x *WorkspaceProfileSetting) String() string {func (*WorkspaceProfileSetting) ProtoMessage() {}func (x *WorkspaceProfileSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[10]+ mi := &file_v1_setting_service_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1394,7 +1117,7 @@ func (x *WorkspaceProfileSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use WorkspaceProfileSetting.ProtoReflect.Descriptor instead.func (*WorkspaceProfileSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{10}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{9}}func (x *WorkspaceProfileSetting) GetExternalUrl() string {@@ -1488,7 +1211,7 @@ type Announcement struct {func (x *Announcement) Reset() {*x = Announcement{}- mi := &file_v1_setting_service_proto_msgTypes[11]+ mi := &file_v1_setting_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1500,7 +1223,7 @@ func (x *Announcement) String() string {func (*Announcement) ProtoMessage() {}func (x *Announcement) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[11]+ mi := &file_v1_setting_service_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1513,7 +1236,7 @@ func (x *Announcement) ProtoReflect() protoreflect.Message {// Deprecated: Use Announcement.ProtoReflect.Descriptor instead.func (*Announcement) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{11}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{10}}func (x *Announcement) GetLevel() Announcement_AlertLevel {@@ -1546,7 +1269,7 @@ type WorkspaceApprovalSetting struct {func (x *WorkspaceApprovalSetting) Reset() {*x = WorkspaceApprovalSetting{}- mi := &file_v1_setting_service_proto_msgTypes[12]+ mi := &file_v1_setting_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1558,7 +1281,7 @@ func (x *WorkspaceApprovalSetting) String() string {func (*WorkspaceApprovalSetting) ProtoMessage() {}func (x *WorkspaceApprovalSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[12]+ mi := &file_v1_setting_service_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1571,7 +1294,7 @@ func (x *WorkspaceApprovalSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use WorkspaceApprovalSetting.ProtoReflect.Descriptor instead.func (*WorkspaceApprovalSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{12}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{11}}func (x *WorkspaceApprovalSetting) GetRules() []*WorkspaceApprovalSetting_Rule {@@ -1592,7 +1315,7 @@ type SchemaTemplateSetting struct {func (x *SchemaTemplateSetting) Reset() {*x = SchemaTemplateSetting{}- mi := &file_v1_setting_service_proto_msgTypes[13]+ mi := &file_v1_setting_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1604,7 +1327,7 @@ func (x *SchemaTemplateSetting) String() string {func (*SchemaTemplateSetting) ProtoMessage() {}func (x *SchemaTemplateSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[13]+ mi := &file_v1_setting_service_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1617,7 +1340,7 @@ func (x *SchemaTemplateSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use SchemaTemplateSetting.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{13}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{12}}func (x *SchemaTemplateSetting) GetFieldTemplates() []*SchemaTemplateSetting_FieldTemplate {@@ -1641,90 +1364,6 @@ func (x *SchemaTemplateSetting) GetTableTemplates() []*SchemaTemplateSetting_Tabreturn nil}-type WorkspaceTrialSetting struct {- state protoimpl.MessageState `protogen:"open.v1"`- InstanceCount int32 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`- ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`- IssuedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_time,json=issuedTime,proto3" json:"issued_time,omitempty"`- Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`- OrgName string `protobuf:"bytes,5,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"`- Plan PlanType `protobuf:"varint,6,opt,name=plan,proto3,enum=bytebase.v1.PlanType" json:"plan,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *WorkspaceTrialSetting) Reset() {- *x = WorkspaceTrialSetting{}- mi := &file_v1_setting_service_proto_msgTypes[14]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *WorkspaceTrialSetting) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*WorkspaceTrialSetting) ProtoMessage() {}--func (x *WorkspaceTrialSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[14]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use WorkspaceTrialSetting.ProtoReflect.Descriptor instead.-func (*WorkspaceTrialSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{14}-}--func (x *WorkspaceTrialSetting) GetInstanceCount() int32 {- if x != nil {- return x.InstanceCount- }- return 0-}--func (x *WorkspaceTrialSetting) GetExpireTime() *timestamppb.Timestamp {- if x != nil {- return x.ExpireTime- }- return nil-}--func (x *WorkspaceTrialSetting) GetIssuedTime() *timestamppb.Timestamp {- if x != nil {- return x.IssuedTime- }- return nil-}--func (x *WorkspaceTrialSetting) GetSubject() string {- if x != nil {- return x.Subject- }- return ""-}--func (x *WorkspaceTrialSetting) GetOrgName() string {- if x != nil {- return x.OrgName- }- return ""-}--func (x *WorkspaceTrialSetting) GetPlan() PlanType {- if x != nil {- return x.Plan- }- return PlanType_PLAN_TYPE_UNSPECIFIED-}-type DataClassificationSetting struct {state protoimpl.MessageState `protogen:"open.v1"`Configs []*DataClassificationSetting_DataClassificationConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`@@ -1734,7 +1373,7 @@ type DataClassificationSetting struct {func (x *DataClassificationSetting) Reset() {*x = DataClassificationSetting{}- mi := &file_v1_setting_service_proto_msgTypes[15]+ mi := &file_v1_setting_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1746,7 +1385,7 @@ func (x *DataClassificationSetting) String() string {func (*DataClassificationSetting) ProtoMessage() {}func (x *DataClassificationSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[15]+ mi := &file_v1_setting_service_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1759,7 +1398,7 @@ func (x *DataClassificationSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use DataClassificationSetting.ProtoReflect.Descriptor instead.func (*DataClassificationSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{15}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{13}}func (x *DataClassificationSetting) GetConfigs() []*DataClassificationSetting_DataClassificationConfig {@@ -1778,7 +1417,7 @@ type SemanticTypeSetting struct {func (x *SemanticTypeSetting) Reset() {*x = SemanticTypeSetting{}- mi := &file_v1_setting_service_proto_msgTypes[16]+ mi := &file_v1_setting_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1790,7 +1429,7 @@ func (x *SemanticTypeSetting) String() string {func (*SemanticTypeSetting) ProtoMessage() {}func (x *SemanticTypeSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[16]+ mi := &file_v1_setting_service_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1803,7 +1442,7 @@ func (x *SemanticTypeSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use SemanticTypeSetting.ProtoReflect.Descriptor instead.func (*SemanticTypeSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{16}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{14}}func (x *SemanticTypeSetting) GetTypes() []*SemanticTypeSetting_SemanticType {@@ -1828,7 +1467,7 @@ type Algorithm struct {func (x *Algorithm) Reset() {*x = Algorithm{}- mi := &file_v1_setting_service_proto_msgTypes[17]+ mi := &file_v1_setting_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1840,7 +1479,7 @@ func (x *Algorithm) String() string {func (*Algorithm) ProtoMessage() {}func (x *Algorithm) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[17]+ mi := &file_v1_setting_service_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1853,7 +1492,7 @@ func (x *Algorithm) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm.ProtoReflect.Descriptor instead.func (*Algorithm) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15}}func (x *Algorithm) GetMask() isAlgorithm_Mask {@@ -1938,7 +1577,7 @@ type MaximumSQLResultSizeSetting struct {func (x *MaximumSQLResultSizeSetting) Reset() {*x = MaximumSQLResultSizeSetting{}- mi := &file_v1_setting_service_proto_msgTypes[18]+ mi := &file_v1_setting_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1950,7 +1589,7 @@ func (x *MaximumSQLResultSizeSetting) String() string {func (*MaximumSQLResultSizeSetting) ProtoMessage() {}func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[18]+ mi := &file_v1_setting_service_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1963,7 +1602,7 @@ func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use MaximumSQLResultSizeSetting.ProtoReflect.Descriptor instead.func (*MaximumSQLResultSizeSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{18}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{16}}func (x *MaximumSQLResultSizeSetting) GetLimit() int64 {@@ -1982,7 +1621,7 @@ type SCIMSetting struct {func (x *SCIMSetting) Reset() {*x = SCIMSetting{}- mi := &file_v1_setting_service_proto_msgTypes[19]+ mi := &file_v1_setting_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1994,7 +1633,7 @@ func (x *SCIMSetting) String() string {func (*SCIMSetting) ProtoMessage() {}func (x *SCIMSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[19]+ mi := &file_v1_setting_service_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2007,7 +1646,7 @@ func (x *SCIMSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use SCIMSetting.ProtoReflect.Descriptor instead.func (*SCIMSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{19}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{17}}func (x *SCIMSetting) GetToken() string {@@ -2039,7 +1678,7 @@ type PasswordRestrictionSetting struct {func (x *PasswordRestrictionSetting) Reset() {*x = PasswordRestrictionSetting{}- mi := &file_v1_setting_service_proto_msgTypes[20]+ mi := &file_v1_setting_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2051,7 +1690,7 @@ func (x *PasswordRestrictionSetting) String() string {func (*PasswordRestrictionSetting) ProtoMessage() {}func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[20]+ mi := &file_v1_setting_service_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2064,7 +1703,7 @@ func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{20}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{18}}func (x *PasswordRestrictionSetting) GetMinLength() int32 {@@ -2130,7 +1769,7 @@ type AISetting struct {func (x *AISetting) Reset() {*x = AISetting{}- mi := &file_v1_setting_service_proto_msgTypes[21]+ mi := &file_v1_setting_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2142,7 +1781,7 @@ func (x *AISetting) String() string {func (*AISetting) ProtoMessage() {}func (x *AISetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[21]+ mi := &file_v1_setting_service_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2155,7 +1794,7 @@ func (x *AISetting) ProtoReflect() protoreflect.Message {// Deprecated: Use AISetting.ProtoReflect.Descriptor instead.func (*AISetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{21}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19}}func (x *AISetting) GetEnabled() bool {@@ -2209,7 +1848,7 @@ type EnvironmentSetting struct {func (x *EnvironmentSetting) Reset() {*x = EnvironmentSetting{}- mi := &file_v1_setting_service_proto_msgTypes[22]+ mi := &file_v1_setting_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2221,7 +1860,7 @@ func (x *EnvironmentSetting) String() string {func (*EnvironmentSetting) ProtoMessage() {}func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[22]+ mi := &file_v1_setting_service_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2234,7 +1873,7 @@ func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {// Deprecated: Use EnvironmentSetting.ProtoReflect.Descriptor instead.func (*EnvironmentSetting) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{22}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{20}}func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {@@ -2254,7 +1893,7 @@ type AppIMSetting_Slack struct {func (x *AppIMSetting_Slack) Reset() {*x = AppIMSetting_Slack{}- mi := &file_v1_setting_service_proto_msgTypes[23]+ mi := &file_v1_setting_service_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2266,7 +1905,7 @@ func (x *AppIMSetting_Slack) String() string {func (*AppIMSetting_Slack) ProtoMessage() {}func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[23]+ mi := &file_v1_setting_service_proto_msgTypes[21]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2279,7 +1918,7 @@ func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Slack.ProtoReflect.Descriptor instead.func (*AppIMSetting_Slack) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{8, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 0}}func (x *AppIMSetting_Slack) GetEnabled() bool {@@ -2307,7 +1946,7 @@ type AppIMSetting_Feishu struct {func (x *AppIMSetting_Feishu) Reset() {*x = AppIMSetting_Feishu{}- mi := &file_v1_setting_service_proto_msgTypes[24]+ mi := &file_v1_setting_service_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2319,7 +1958,7 @@ func (x *AppIMSetting_Feishu) String() string {func (*AppIMSetting_Feishu) ProtoMessage() {}func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[24]+ mi := &file_v1_setting_service_proto_msgTypes[22]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2332,7 +1971,7 @@ func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Feishu.ProtoReflect.Descriptor instead.func (*AppIMSetting_Feishu) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{8, 1}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 1}}func (x *AppIMSetting_Feishu) GetEnabled() bool {@@ -2368,7 +2007,7 @@ type AppIMSetting_Wecom struct {func (x *AppIMSetting_Wecom) Reset() {*x = AppIMSetting_Wecom{}- mi := &file_v1_setting_service_proto_msgTypes[25]+ mi := &file_v1_setting_service_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2380,7 +2019,7 @@ func (x *AppIMSetting_Wecom) String() string {func (*AppIMSetting_Wecom) ProtoMessage() {}func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[25]+ mi := &file_v1_setting_service_proto_msgTypes[23]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2393,7 +2032,7 @@ func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Wecom.ProtoReflect.Descriptor instead.func (*AppIMSetting_Wecom) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{8, 2}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 2}}func (x *AppIMSetting_Wecom) GetEnabled() bool {@@ -2435,7 +2074,7 @@ type AppIMSetting_Lark struct {func (x *AppIMSetting_Lark) Reset() {*x = AppIMSetting_Lark{}- mi := &file_v1_setting_service_proto_msgTypes[26]+ mi := &file_v1_setting_service_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2447,7 +2086,7 @@ func (x *AppIMSetting_Lark) String() string {func (*AppIMSetting_Lark) ProtoMessage() {}func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[26]+ mi := &file_v1_setting_service_proto_msgTypes[24]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2460,7 +2099,7 @@ func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_Lark.ProtoReflect.Descriptor instead.func (*AppIMSetting_Lark) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{8, 3}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 3}}func (x *AppIMSetting_Lark) GetEnabled() bool {@@ -2496,7 +2135,7 @@ type AppIMSetting_DingTalk struct {func (x *AppIMSetting_DingTalk) Reset() {*x = AppIMSetting_DingTalk{}- mi := &file_v1_setting_service_proto_msgTypes[27]+ mi := &file_v1_setting_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2508,7 +2147,7 @@ func (x *AppIMSetting_DingTalk) String() string {func (*AppIMSetting_DingTalk) ProtoMessage() {}func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[27]+ mi := &file_v1_setting_service_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2521,7 +2160,7 @@ func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {// Deprecated: Use AppIMSetting_DingTalk.ProtoReflect.Descriptor instead.func (*AppIMSetting_DingTalk) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{8, 4}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{7, 4}}func (x *AppIMSetting_DingTalk) GetEnabled() bool {@@ -2571,7 +2210,7 @@ type WorkspaceApprovalSetting_Rule struct {func (x *WorkspaceApprovalSetting_Rule) Reset() {*x = WorkspaceApprovalSetting_Rule{}- mi := &file_v1_setting_service_proto_msgTypes[28]+ mi := &file_v1_setting_service_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2583,7 +2222,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[28]+ mi := &file_v1_setting_service_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2596,7 +2235,7 @@ func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {// Deprecated: Use WorkspaceApprovalSetting_Rule.ProtoReflect.Descriptor instead.func (*WorkspaceApprovalSetting_Rule) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{12, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{11, 0}}func (x *WorkspaceApprovalSetting_Rule) GetTemplate() *ApprovalTemplate {@@ -2626,7 +2265,7 @@ type SchemaTemplateSetting_FieldTemplate struct {func (x *SchemaTemplateSetting_FieldTemplate) Reset() {*x = SchemaTemplateSetting_FieldTemplate{}- mi := &file_v1_setting_service_proto_msgTypes[29]+ mi := &file_v1_setting_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2638,7 +2277,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[29]+ mi := &file_v1_setting_service_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2651,7 +2290,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Messag// Deprecated: Use SchemaTemplateSetting_FieldTemplate.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting_FieldTemplate) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{13, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{12, 0}}func (x *SchemaTemplateSetting_FieldTemplate) GetId() string {@@ -2700,7 +2339,7 @@ type SchemaTemplateSetting_ColumnType struct {func (x *SchemaTemplateSetting_ColumnType) Reset() {*x = SchemaTemplateSetting_ColumnType{}- mi := &file_v1_setting_service_proto_msgTypes[30]+ mi := &file_v1_setting_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2712,7 +2351,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[30]+ mi := &file_v1_setting_service_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2725,7 +2364,7 @@ func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {// Deprecated: Use SchemaTemplateSetting_ColumnType.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting_ColumnType) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{13, 1}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{12, 1}}func (x *SchemaTemplateSetting_ColumnType) GetEngine() Engine {@@ -2762,7 +2401,7 @@ type SchemaTemplateSetting_TableTemplate struct {func (x *SchemaTemplateSetting_TableTemplate) Reset() {*x = SchemaTemplateSetting_TableTemplate{}- mi := &file_v1_setting_service_proto_msgTypes[31]+ mi := &file_v1_setting_service_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2774,7 +2413,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[31]+ mi := &file_v1_setting_service_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2787,7 +2426,7 @@ func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Messag// Deprecated: Use SchemaTemplateSetting_TableTemplate.ProtoReflect.Descriptor instead.func (*SchemaTemplateSetting_TableTemplate) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{13, 2}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{12, 2}}func (x *SchemaTemplateSetting_TableTemplate) GetId() string {@@ -2846,7 +2485,7 @@ type DataClassificationSetting_DataClassificationConfig struct {func (x *DataClassificationSetting_DataClassificationConfig) Reset() {*x = DataClassificationSetting_DataClassificationConfig{}- mi := &file_v1_setting_service_proto_msgTypes[32]+ mi := &file_v1_setting_service_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2858,7 +2497,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[32]+ mi := &file_v1_setting_service_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2871,7 +2510,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() prot// Deprecated: Use DataClassificationSetting_DataClassificationConfig.ProtoReflect.Descriptor instead.func (*DataClassificationSetting_DataClassificationConfig) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{13, 0}}func (x *DataClassificationSetting_DataClassificationConfig) GetId() string {@@ -2920,7 +2559,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {*x = DataClassificationSetting_DataClassificationConfig_Level{}- mi := &file_v1_setting_service_proto_msgTypes[33]+ mi := &file_v1_setting_service_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2932,7 +2571,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() strifunc (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[33]+ mi := &file_v1_setting_service_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2945,7 +2584,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect(// Deprecated: Use DataClassificationSetting_DataClassificationConfig_Level.ProtoReflect.Descriptor instead.func (*DataClassificationSetting_DataClassificationConfig_Level) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{13, 0, 0}}func (x *DataClassificationSetting_DataClassificationConfig_Level) GetId() string {@@ -2982,7 +2621,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification strucfunc (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}- mi := &file_v1_setting_service_proto_msgTypes[34]+ mi := &file_v1_setting_service_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2994,7 +2633,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[34]+ mi := &file_v1_setting_service_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3007,7 +2646,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)// Deprecated: Use DataClassificationSetting_DataClassificationConfig_DataClassification.ProtoReflect.Descriptor instead.func (*DataClassificationSetting_DataClassificationConfig_DataClassification) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0, 1}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{13, 0, 1}}func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetId() string {@@ -3053,7 +2692,7 @@ type SemanticTypeSetting_SemanticType struct {func (x *SemanticTypeSetting_SemanticType) Reset() {*x = SemanticTypeSetting_SemanticType{}- mi := &file_v1_setting_service_proto_msgTypes[36]+ mi := &file_v1_setting_service_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3065,7 +2704,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[36]+ mi := &file_v1_setting_service_proto_msgTypes[34]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3078,7 +2717,7 @@ func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {// Deprecated: Use SemanticTypeSetting_SemanticType.ProtoReflect.Descriptor instead.func (*SemanticTypeSetting_SemanticType) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{16, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{14, 0}}func (x *SemanticTypeSetting_SemanticType) GetId() string {@@ -3120,7 +2759,7 @@ type Algorithm_FullMask struct {func (x *Algorithm_FullMask) Reset() {*x = Algorithm_FullMask{}- mi := &file_v1_setting_service_proto_msgTypes[37]+ mi := &file_v1_setting_service_proto_msgTypes[35]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3132,7 +2771,7 @@ func (x *Algorithm_FullMask) String() string {func (*Algorithm_FullMask) ProtoMessage() {}func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[37]+ mi := &file_v1_setting_service_proto_msgTypes[35]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3145,7 +2784,7 @@ func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_FullMask.ProtoReflect.Descriptor instead.func (*Algorithm_FullMask) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0}}func (x *Algorithm_FullMask) GetSubstitution() string {@@ -3166,7 +2805,7 @@ type Algorithm_RangeMask struct {func (x *Algorithm_RangeMask) Reset() {*x = Algorithm_RangeMask{}- mi := &file_v1_setting_service_proto_msgTypes[38]+ mi := &file_v1_setting_service_proto_msgTypes[36]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3178,7 +2817,7 @@ func (x *Algorithm_RangeMask) String() string {func (*Algorithm_RangeMask) ProtoMessage() {}func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[38]+ mi := &file_v1_setting_service_proto_msgTypes[36]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3191,7 +2830,7 @@ func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_RangeMask.ProtoReflect.Descriptor instead.func (*Algorithm_RangeMask) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 1}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 1}}func (x *Algorithm_RangeMask) GetSlices() []*Algorithm_RangeMask_Slice {@@ -3211,7 +2850,7 @@ type Algorithm_MD5Mask struct {func (x *Algorithm_MD5Mask) Reset() {*x = Algorithm_MD5Mask{}- mi := &file_v1_setting_service_proto_msgTypes[39]+ mi := &file_v1_setting_service_proto_msgTypes[37]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3223,7 +2862,7 @@ func (x *Algorithm_MD5Mask) String() string {func (*Algorithm_MD5Mask) ProtoMessage() {}func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[39]+ mi := &file_v1_setting_service_proto_msgTypes[37]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3236,7 +2875,7 @@ func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_MD5Mask.ProtoReflect.Descriptor instead.func (*Algorithm_MD5Mask) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 2}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 2}}func (x *Algorithm_MD5Mask) GetSalt() string {@@ -3258,7 +2897,7 @@ type Algorithm_InnerOuterMask struct {func (x *Algorithm_InnerOuterMask) Reset() {*x = Algorithm_InnerOuterMask{}- mi := &file_v1_setting_service_proto_msgTypes[40]+ mi := &file_v1_setting_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3270,7 +2909,7 @@ func (x *Algorithm_InnerOuterMask) String() string {func (*Algorithm_InnerOuterMask) ProtoMessage() {}func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[40]+ mi := &file_v1_setting_service_proto_msgTypes[38]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3283,7 +2922,7 @@ func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.func (*Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 3}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 3}}func (x *Algorithm_InnerOuterMask) GetPrefixLen() int32 {@@ -3328,7 +2967,7 @@ type Algorithm_RangeMask_Slice struct {func (x *Algorithm_RangeMask_Slice) Reset() {*x = Algorithm_RangeMask_Slice{}- mi := &file_v1_setting_service_proto_msgTypes[41]+ mi := &file_v1_setting_service_proto_msgTypes[39]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3340,7 +2979,7 @@ func (x *Algorithm_RangeMask_Slice) String() string {func (*Algorithm_RangeMask_Slice) ProtoMessage() {}func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[41]+ mi := &file_v1_setting_service_proto_msgTypes[39]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3353,7 +2992,7 @@ func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {// Deprecated: Use Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.func (*Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 1, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 1, 0}}func (x *Algorithm_RangeMask_Slice) GetStart() int32 {@@ -3397,7 +3036,7 @@ type EnvironmentSetting_Environment struct {func (x *EnvironmentSetting_Environment) Reset() {*x = EnvironmentSetting_Environment{}- mi := &file_v1_setting_service_proto_msgTypes[42]+ mi := &file_v1_setting_service_proto_msgTypes[40]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3409,7 +3048,7 @@ func (x *EnvironmentSetting_Environment) String() string {func (*EnvironmentSetting_Environment) ProtoMessage() {}func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {- mi := &file_v1_setting_service_proto_msgTypes[42]+ mi := &file_v1_setting_service_proto_msgTypes[40]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3422,7 +3061,7 @@ func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {// Deprecated: Use EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {- return file_v1_setting_service_proto_rawDescGZIP(), []int{22, 0}+ return file_v1_setting_service_proto_rawDescGZIP(), []int{20, 0}}func (x *EnvironmentSetting_Environment) GetName() string {@@ -3464,7 +3103,7 @@ var File_v1_setting_service_proto protoreflect.FileDescriptorconst file_v1_setting_service_proto_rawDesc = "" +"\n" +- "\x18v1/setting_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/expr.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a!v1/database_catalog_service.proto\x1a\x19v1/database_service.proto\x1a\x16v1/issue_service.proto\x1a\x1dv1/subscription_service.proto\"Q\n" ++ "\x18v1/setting_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x16google/type/expr.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a!v1/database_catalog_service.proto\x1a\x19v1/database_service.proto\x1a\x16v1/issue_service.proto\"Q\n" +"\x13ListSettingsRequest\x12\x1b\n" +"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +"\n" +@@ -3482,10 +3121,10 @@ const file_v1_setting_service_proto_rawDesc = "" +"\rvalidate_only\x18\x02 \x01(\bR\fvalidateOnly\x12#\n" +"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\x12;\n" +"\vupdate_mask\x18\x04 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +- "updateMask\"\xa6\x04\n" ++ "updateMask\"\x89\x04\n" +"\aSetting\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +- "\x05value\x18\x02 \x01(\v2\x12.bytebase.v1.ValueR\x05value\"\xad\x03\n" ++ "\x05value\x18\x02 \x01(\v2\x12.bytebase.v1.ValueR\x05value\"\x90\x03\n" +"\vSettingName\x12\x1c\n" +"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\x0f\n" +"\vAUTH_SECRET\x10\x01\x12\x11\n" +@@ -3500,8 +3139,7 @@ const file_v1_setting_service_proto_rawDesc = "" +"\tWATERMARK\x10\t\x12\x06\n" +"\x02AI\x10\n" +"\x12\x10\n" +- "\fPLUGIN_AGENT\x10\v\x12\x1b\n" +- "\x17WORKSPACE_MAIL_DELIVERY\x10\f\x12\x13\n" ++ "\fPLUGIN_AGENT\x10\v\x12\x13\n" +"\x0fSCHEMA_TEMPLATE\x10\r\x12\x17\n" +"\x13DATA_CLASSIFICATION\x10\x0e\x12\x12\n" +"\x0eSEMANTIC_TYPES\x10\x0f\x12\x19\n" +@@ -3509,15 +3147,13 @@ const file_v1_setting_service_proto_rawDesc = "" +"\x04SCIM\x10\x11\x12\x18\n" +"\x14PASSWORD_RESTRICTION\x10\x12\x12\x0f\n" +"\vENVIRONMENT\x10\x13:-\xeaA*\n" +- "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\x8e\v\n" ++ "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\xb0\t\n" +"\x05Value\x12#\n" +- "\fstring_value\x18\x01 \x01(\tH\x00R\vstringValue\x12s\n" +- " smtp_mail_delivery_setting_value\x18\x02 \x01(\v2).bytebase.v1.SMTPMailDeliverySettingValueH\x00R\x1csmtpMailDeliverySettingValue\x12L\n" ++ "\fstring_value\x18\x01 \x01(\tH\x00R\vstringValue\x12L\n" +"\x14app_im_setting_value\x18\x03 \x01(\v2\x19.bytebase.v1.AppIMSettingH\x00R\x11appImSettingValue\x12^\n" +"\x1aagent_plugin_setting_value\x18\x04 \x01(\v2\x1f.bytebase.v1.AgentPluginSettingH\x00R\x17agentPluginSettingValue\x12m\n" +"\x1fworkspace_profile_setting_value\x18\x05 \x01(\v2$.bytebase.v1.WorkspaceProfileSettingH\x00R\x1cworkspaceProfileSettingValue\x12p\n" +" workspace_approval_setting_value\x18\x06 \x01(\v2%.bytebase.v1.WorkspaceApprovalSettingH\x00R\x1dworkspaceApprovalSettingValue\x12g\n" +- "\x1dworkspace_trial_setting_value\x18\a \x01(\v2\".bytebase.v1.WorkspaceTrialSettingH\x00R\x1aworkspaceTrialSettingValue\x12g\n" +"\x1dschema_template_setting_value\x18\t \x01(\v2\".bytebase.v1.SchemaTemplateSettingH\x00R\x1aschemaTemplateSettingValue\x12s\n" +"!data_classification_setting_value\x18\n" +" \x01(\v2&.bytebase.v1.DataClassificationSettingH\x00R\x1edataClassificationSettingValue\x12a\n" +@@ -3528,38 +3164,7 @@ const file_v1_setting_service_proto_rawDesc = "" +"\n" +"ai_setting\x18\x10 \x01(\v2\x16.bytebase.v1.AISettingH\x00R\taiSetting\x12R\n" +"\x13environment_setting\x18\x11 \x01(\v2\x1f.bytebase.v1.EnvironmentSettingH\x00R\x12environmentSettingB\a\n" +- "\x05value\"\xda\x05\n" +- "\x1cSMTPMailDeliverySettingValue\x12\x16\n" +- "\x06server\x18\x01 \x01(\tR\x06server\x12\x12\n" +- "\x04port\x18\x02 \x01(\x05R\x04port\x12T\n" +- "\n" +- "encryption\x18\x03 \x01(\x0e24.bytebase.v1.SMTPMailDeliverySettingValue.EncryptionR\n" +- "encryption\x12\x13\n" +- "\x02ca\x18\x04 \x01(\tH\x00R\x02ca\x88\x01\x01\x12\x15\n" +- "\x03key\x18\x05 \x01(\tH\x01R\x03key\x88\x01\x01\x12\x17\n" +- "\x04cert\x18\x06 \x01(\tH\x02R\x04cert\x88\x01\x01\x12`\n" +- "\x0eauthentication\x18\a \x01(\x0e28.bytebase.v1.SMTPMailDeliverySettingValue.AuthenticationR\x0eauthentication\x12\x1a\n" +- "\busername\x18\b \x01(\tR\busername\x12\x1f\n" +- "\bpassword\x18\t \x01(\tH\x03R\bpassword\x88\x01\x01\x12\x12\n" +- "\x04from\x18\n" +- " \x01(\tR\x04from\x12\x0e\n" +- "\x02to\x18\v \x01(\tR\x02to\"n\n" +- "\n" +- "Encryption\x12\x1a\n" +- "\x16ENCRYPTION_UNSPECIFIED\x10\x00\x12\x13\n" +- "\x0fENCRYPTION_NONE\x10\x01\x12\x17\n" +- "\x13ENCRYPTION_STARTTLS\x10\x02\x12\x16\n" +- "\x12ENCRYPTION_SSL_TLS\x10\x03\"\x9a\x01\n" +- "\x0eAuthentication\x12\x1e\n" +- "\x1aAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x17\n" +- "\x13AUTHENTICATION_NONE\x10\x01\x12\x18\n" +- "\x14AUTHENTICATION_PLAIN\x10\x02\x12\x18\n" +- "\x14AUTHENTICATION_LOGIN\x10\x03\x12\x1b\n" +- "\x17AUTHENTICATION_CRAM_MD5\x10\x04B\x05\n" +- "\x03_caB\x06\n" +- "\x04_keyB\a\n" +- "\x05_certB\v\n" +- "\t_password\"\xce\x06\n" ++ "\x05value\"\xce\x06\n" +"\fAppIMSetting\x125\n" +"\x05slack\x18\x01 \x01(\v2\x1f.bytebase.v1.AppIMSetting.SlackR\x05slack\x128\n" +"\x06feishu\x18\x02 \x01(\v2 .bytebase.v1.AppIMSetting.FeishuR\x06feishu\x125\n" +@@ -3642,16 +3247,7 @@ const file_v1_setting_service_proto_rawDesc = "" +"\x06engine\x18\x02 \x01(\x0e2\x13.bytebase.v1.EngineR\x06engine\x12\x1a\n" +"\bcategory\x18\x03 \x01(\tR\bcategory\x120\n" +"\x05table\x18\x04 \x01(\v2\x1a.bytebase.v1.TableMetadataR\x05table\x123\n" +- "\acatalog\x18\x05 \x01(\v2\x19.bytebase.v1.TableCatalogR\acatalog\"\x98\x02\n" +- "\x15WorkspaceTrialSetting\x12%\n" +- "\x0einstance_count\x18\x01 \x01(\x05R\rinstanceCount\x12;\n" +- "\vexpire_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" +- "expireTime\x12;\n" +- "\vissued_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" +- "issuedTime\x12\x18\n" +- "\asubject\x18\x04 \x01(\tR\asubject\x12\x19\n" +- "\borg_name\x18\x05 \x01(\tR\aorgName\x12)\n" +- "\x04plan\x18\x06 \x01(\x0e2\x15.bytebase.v1.PlanTypeR\x04plan\"\xc8\x06\n" ++ "\acatalog\x18\x05 \x01(\v2\x19.bytebase.v1.TableCatalogR\acatalog\"\xc8\x06\n" +"\x19DataClassificationSetting\x12Y\n" +"\aconfigs\x18\x01 \x03(\v2?.bytebase.v1.DataClassificationSetting.DataClassificationConfigR\aconfigs\x1a\xcf\x05\n" +"\x18DataClassificationConfig\x12\x0e\n" +@@ -3770,147 +3366,134 @@ func file_v1_setting_service_proto_rawDescGZIP() []byte {return file_v1_setting_service_proto_rawDescData}-var file_v1_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 7)-var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 44)+var file_v1_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)+var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 42)var file_v1_setting_service_proto_goTypes = []any{(DatabaseChangeMode)(0), // 0: bytebase.v1.DatabaseChangeMode(Setting_SettingName)(0), // 1: bytebase.v1.Setting.SettingName- (SMTPMailDeliverySettingValue_Encryption)(0), // 2: bytebase.v1.SMTPMailDeliverySettingValue.Encryption- (SMTPMailDeliverySettingValue_Authentication)(0), // 3: bytebase.v1.SMTPMailDeliverySettingValue.Authentication- (Announcement_AlertLevel)(0), // 4: bytebase.v1.Announcement.AlertLevel- (Algorithm_InnerOuterMask_MaskType)(0), // 5: bytebase.v1.Algorithm.InnerOuterMask.MaskType- (AISetting_Provider)(0), // 6: bytebase.v1.AISetting.Provider- (*ListSettingsRequest)(nil), // 7: bytebase.v1.ListSettingsRequest- (*ListSettingsResponse)(nil), // 8: bytebase.v1.ListSettingsResponse- (*GetSettingRequest)(nil), // 9: bytebase.v1.GetSettingRequest- (*GetSettingResponse)(nil), // 10: bytebase.v1.GetSettingResponse- (*UpdateSettingRequest)(nil), // 11: bytebase.v1.UpdateSettingRequest- (*Setting)(nil), // 12: bytebase.v1.Setting- (*Value)(nil), // 13: bytebase.v1.Value- (*SMTPMailDeliverySettingValue)(nil), // 14: bytebase.v1.SMTPMailDeliverySettingValue- (*AppIMSetting)(nil), // 15: bytebase.v1.AppIMSetting- (*AgentPluginSetting)(nil), // 16: bytebase.v1.AgentPluginSetting- (*WorkspaceProfileSetting)(nil), // 17: bytebase.v1.WorkspaceProfileSetting- (*Announcement)(nil), // 18: bytebase.v1.Announcement- (*WorkspaceApprovalSetting)(nil), // 19: bytebase.v1.WorkspaceApprovalSetting- (*SchemaTemplateSetting)(nil), // 20: bytebase.v1.SchemaTemplateSetting- (*WorkspaceTrialSetting)(nil), // 21: bytebase.v1.WorkspaceTrialSetting- (*DataClassificationSetting)(nil), // 22: bytebase.v1.DataClassificationSetting- (*SemanticTypeSetting)(nil), // 23: bytebase.v1.SemanticTypeSetting- (*Algorithm)(nil), // 24: bytebase.v1.Algorithm- (*MaximumSQLResultSizeSetting)(nil), // 25: bytebase.v1.MaximumSQLResultSizeSetting- (*SCIMSetting)(nil), // 26: bytebase.v1.SCIMSetting- (*PasswordRestrictionSetting)(nil), // 27: bytebase.v1.PasswordRestrictionSetting- (*AISetting)(nil), // 28: bytebase.v1.AISetting- (*EnvironmentSetting)(nil), // 29: bytebase.v1.EnvironmentSetting- (*AppIMSetting_Slack)(nil), // 30: bytebase.v1.AppIMSetting.Slack- (*AppIMSetting_Feishu)(nil), // 31: bytebase.v1.AppIMSetting.Feishu- (*AppIMSetting_Wecom)(nil), // 32: bytebase.v1.AppIMSetting.Wecom- (*AppIMSetting_Lark)(nil), // 33: bytebase.v1.AppIMSetting.Lark- (*AppIMSetting_DingTalk)(nil), // 34: bytebase.v1.AppIMSetting.DingTalk- (*WorkspaceApprovalSetting_Rule)(nil), // 35: bytebase.v1.WorkspaceApprovalSetting.Rule- (*SchemaTemplateSetting_FieldTemplate)(nil), // 36: bytebase.v1.SchemaTemplateSetting.FieldTemplate- (*SchemaTemplateSetting_ColumnType)(nil), // 37: bytebase.v1.SchemaTemplateSetting.ColumnType- (*SchemaTemplateSetting_TableTemplate)(nil), // 38: bytebase.v1.SchemaTemplateSetting.TableTemplate- (*DataClassificationSetting_DataClassificationConfig)(nil), // 39: bytebase.v1.DataClassificationSetting.DataClassificationConfig- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 40: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 41: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification- nil, // 42: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- (*SemanticTypeSetting_SemanticType)(nil), // 43: bytebase.v1.SemanticTypeSetting.SemanticType- (*Algorithm_FullMask)(nil), // 44: bytebase.v1.Algorithm.FullMask- (*Algorithm_RangeMask)(nil), // 45: bytebase.v1.Algorithm.RangeMask- (*Algorithm_MD5Mask)(nil), // 46: bytebase.v1.Algorithm.MD5Mask- (*Algorithm_InnerOuterMask)(nil), // 47: bytebase.v1.Algorithm.InnerOuterMask- (*Algorithm_RangeMask_Slice)(nil), // 48: bytebase.v1.Algorithm.RangeMask.Slice- (*EnvironmentSetting_Environment)(nil), // 49: bytebase.v1.EnvironmentSetting.Environment- nil, // 50: bytebase.v1.EnvironmentSetting.Environment.TagsEntry- (*fieldmaskpb.FieldMask)(nil), // 51: google.protobuf.FieldMask- (*durationpb.Duration)(nil), // 52: google.protobuf.Duration- (*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp- (PlanType)(0), // 54: bytebase.v1.PlanType- (*ApprovalTemplate)(nil), // 55: bytebase.v1.ApprovalTemplate- (*expr.Expr)(nil), // 56: google.type.Expr- (Engine)(0), // 57: bytebase.v1.Engine- (*ColumnMetadata)(nil), // 58: bytebase.v1.ColumnMetadata- (*ColumnCatalog)(nil), // 59: bytebase.v1.ColumnCatalog- (*TableMetadata)(nil), // 60: bytebase.v1.TableMetadata- (*TableCatalog)(nil), // 61: bytebase.v1.TableCatalog+ (Announcement_AlertLevel)(0), // 2: bytebase.v1.Announcement.AlertLevel+ (Algorithm_InnerOuterMask_MaskType)(0), // 3: bytebase.v1.Algorithm.InnerOuterMask.MaskType+ (AISetting_Provider)(0), // 4: bytebase.v1.AISetting.Provider+ (*ListSettingsRequest)(nil), // 5: bytebase.v1.ListSettingsRequest+ (*ListSettingsResponse)(nil), // 6: bytebase.v1.ListSettingsResponse+ (*GetSettingRequest)(nil), // 7: bytebase.v1.GetSettingRequest+ (*GetSettingResponse)(nil), // 8: bytebase.v1.GetSettingResponse+ (*UpdateSettingRequest)(nil), // 9: bytebase.v1.UpdateSettingRequest+ (*Setting)(nil), // 10: bytebase.v1.Setting+ (*Value)(nil), // 11: bytebase.v1.Value+ (*AppIMSetting)(nil), // 12: bytebase.v1.AppIMSetting+ (*AgentPluginSetting)(nil), // 13: bytebase.v1.AgentPluginSetting+ (*WorkspaceProfileSetting)(nil), // 14: bytebase.v1.WorkspaceProfileSetting+ (*Announcement)(nil), // 15: bytebase.v1.Announcement+ (*WorkspaceApprovalSetting)(nil), // 16: bytebase.v1.WorkspaceApprovalSetting+ (*SchemaTemplateSetting)(nil), // 17: bytebase.v1.SchemaTemplateSetting+ (*DataClassificationSetting)(nil), // 18: bytebase.v1.DataClassificationSetting+ (*SemanticTypeSetting)(nil), // 19: bytebase.v1.SemanticTypeSetting+ (*Algorithm)(nil), // 20: bytebase.v1.Algorithm+ (*MaximumSQLResultSizeSetting)(nil), // 21: bytebase.v1.MaximumSQLResultSizeSetting+ (*SCIMSetting)(nil), // 22: bytebase.v1.SCIMSetting+ (*PasswordRestrictionSetting)(nil), // 23: bytebase.v1.PasswordRestrictionSetting+ (*AISetting)(nil), // 24: bytebase.v1.AISetting+ (*EnvironmentSetting)(nil), // 25: bytebase.v1.EnvironmentSetting+ (*AppIMSetting_Slack)(nil), // 26: bytebase.v1.AppIMSetting.Slack+ (*AppIMSetting_Feishu)(nil), // 27: bytebase.v1.AppIMSetting.Feishu+ (*AppIMSetting_Wecom)(nil), // 28: bytebase.v1.AppIMSetting.Wecom+ (*AppIMSetting_Lark)(nil), // 29: bytebase.v1.AppIMSetting.Lark+ (*AppIMSetting_DingTalk)(nil), // 30: bytebase.v1.AppIMSetting.DingTalk+ (*WorkspaceApprovalSetting_Rule)(nil), // 31: bytebase.v1.WorkspaceApprovalSetting.Rule+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 32: bytebase.v1.SchemaTemplateSetting.FieldTemplate+ (*SchemaTemplateSetting_ColumnType)(nil), // 33: bytebase.v1.SchemaTemplateSetting.ColumnType+ (*SchemaTemplateSetting_TableTemplate)(nil), // 34: bytebase.v1.SchemaTemplateSetting.TableTemplate+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 35: bytebase.v1.DataClassificationSetting.DataClassificationConfig+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 36: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 37: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ nil, // 38: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ (*SemanticTypeSetting_SemanticType)(nil), // 39: bytebase.v1.SemanticTypeSetting.SemanticType+ (*Algorithm_FullMask)(nil), // 40: bytebase.v1.Algorithm.FullMask+ (*Algorithm_RangeMask)(nil), // 41: bytebase.v1.Algorithm.RangeMask+ (*Algorithm_MD5Mask)(nil), // 42: bytebase.v1.Algorithm.MD5Mask+ (*Algorithm_InnerOuterMask)(nil), // 43: bytebase.v1.Algorithm.InnerOuterMask+ (*Algorithm_RangeMask_Slice)(nil), // 44: bytebase.v1.Algorithm.RangeMask.Slice+ (*EnvironmentSetting_Environment)(nil), // 45: bytebase.v1.EnvironmentSetting.Environment+ nil, // 46: bytebase.v1.EnvironmentSetting.Environment.TagsEntry+ (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask+ (*durationpb.Duration)(nil), // 48: google.protobuf.Duration+ (*ApprovalTemplate)(nil), // 49: bytebase.v1.ApprovalTemplate+ (*expr.Expr)(nil), // 50: google.type.Expr+ (Engine)(0), // 51: bytebase.v1.Engine+ (*ColumnMetadata)(nil), // 52: bytebase.v1.ColumnMetadata+ (*ColumnCatalog)(nil), // 53: bytebase.v1.ColumnCatalog+ (*TableMetadata)(nil), // 54: bytebase.v1.TableMetadata+ (*TableCatalog)(nil), // 55: bytebase.v1.TableCatalog}var file_v1_setting_service_proto_depIdxs = []int32{- 12, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting- 12, // 1: bytebase.v1.GetSettingResponse.setting:type_name -> bytebase.v1.Setting- 12, // 2: bytebase.v1.UpdateSettingRequest.setting:type_name -> bytebase.v1.Setting- 51, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask- 13, // 4: bytebase.v1.Setting.value:type_name -> bytebase.v1.Value- 14, // 5: bytebase.v1.Value.smtp_mail_delivery_setting_value:type_name -> bytebase.v1.SMTPMailDeliverySettingValue- 15, // 6: bytebase.v1.Value.app_im_setting_value:type_name -> bytebase.v1.AppIMSetting- 16, // 7: bytebase.v1.Value.agent_plugin_setting_value:type_name -> bytebase.v1.AgentPluginSetting- 17, // 8: bytebase.v1.Value.workspace_profile_setting_value:type_name -> bytebase.v1.WorkspaceProfileSetting- 19, // 9: bytebase.v1.Value.workspace_approval_setting_value:type_name -> bytebase.v1.WorkspaceApprovalSetting- 21, // 10: bytebase.v1.Value.workspace_trial_setting_value:type_name -> bytebase.v1.WorkspaceTrialSetting- 20, // 11: bytebase.v1.Value.schema_template_setting_value:type_name -> bytebase.v1.SchemaTemplateSetting- 22, // 12: bytebase.v1.Value.data_classification_setting_value:type_name -> bytebase.v1.DataClassificationSetting- 23, // 13: bytebase.v1.Value.semantic_type_setting_value:type_name -> bytebase.v1.SemanticTypeSetting- 25, // 14: bytebase.v1.Value.maximum_sql_result_size_setting:type_name -> bytebase.v1.MaximumSQLResultSizeSetting- 26, // 15: bytebase.v1.Value.scim_setting:type_name -> bytebase.v1.SCIMSetting- 27, // 16: bytebase.v1.Value.password_restriction_setting:type_name -> bytebase.v1.PasswordRestrictionSetting- 28, // 17: bytebase.v1.Value.ai_setting:type_name -> bytebase.v1.AISetting- 29, // 18: bytebase.v1.Value.environment_setting:type_name -> bytebase.v1.EnvironmentSetting- 2, // 19: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption- 3, // 20: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication- 30, // 21: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack- 31, // 22: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu- 32, // 23: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom- 33, // 24: bytebase.v1.AppIMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark- 34, // 25: bytebase.v1.AppIMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk- 52, // 26: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration- 18, // 27: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement- 52, // 28: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration- 0, // 29: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode- 4, // 30: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel- 35, // 31: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule- 36, // 32: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate- 37, // 33: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType- 38, // 34: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate- 53, // 35: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp- 53, // 36: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp- 54, // 37: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType- 39, // 38: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig- 43, // 39: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType- 44, // 40: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask- 45, // 41: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask- 46, // 42: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask- 47, // 43: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask- 52, // 44: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration- 6, // 45: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider- 49, // 46: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment- 55, // 47: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate- 56, // 48: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 57, // 49: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine- 58, // 50: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata- 59, // 51: bytebase.v1.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.v1.ColumnCatalog- 57, // 52: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine- 57, // 53: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine- 60, // 54: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata- 61, // 55: bytebase.v1.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.v1.TableCatalog- 40, // 56: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level- 42, // 57: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- 41, // 58: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification- 24, // 59: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm- 48, // 60: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice- 5, // 61: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType- 50, // 62: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry- 7, // 63: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest- 9, // 64: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest- 11, // 65: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest- 8, // 66: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse- 12, // 67: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting- 12, // 68: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting- 66, // [66:69] is the sub-list for method output_type- 63, // [63:66] is the sub-list for method input_type- 63, // [63:63] is the sub-list for extension type_name- 63, // [63:63] is the sub-list for extension extendee- 0, // [0:63] is the sub-list for field type_name+ 10, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting+ 10, // 1: bytebase.v1.GetSettingResponse.setting:type_name -> bytebase.v1.Setting+ 10, // 2: bytebase.v1.UpdateSettingRequest.setting:type_name -> bytebase.v1.Setting+ 47, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask+ 11, // 4: bytebase.v1.Setting.value:type_name -> bytebase.v1.Value+ 12, // 5: bytebase.v1.Value.app_im_setting_value:type_name -> bytebase.v1.AppIMSetting+ 13, // 6: bytebase.v1.Value.agent_plugin_setting_value:type_name -> bytebase.v1.AgentPluginSetting+ 14, // 7: bytebase.v1.Value.workspace_profile_setting_value:type_name -> bytebase.v1.WorkspaceProfileSetting+ 16, // 8: bytebase.v1.Value.workspace_approval_setting_value:type_name -> bytebase.v1.WorkspaceApprovalSetting+ 17, // 9: bytebase.v1.Value.schema_template_setting_value:type_name -> bytebase.v1.SchemaTemplateSetting+ 18, // 10: bytebase.v1.Value.data_classification_setting_value:type_name -> bytebase.v1.DataClassificationSetting+ 19, // 11: bytebase.v1.Value.semantic_type_setting_value:type_name -> bytebase.v1.SemanticTypeSetting+ 21, // 12: bytebase.v1.Value.maximum_sql_result_size_setting:type_name -> bytebase.v1.MaximumSQLResultSizeSetting+ 22, // 13: bytebase.v1.Value.scim_setting:type_name -> bytebase.v1.SCIMSetting+ 23, // 14: bytebase.v1.Value.password_restriction_setting:type_name -> bytebase.v1.PasswordRestrictionSetting+ 24, // 15: bytebase.v1.Value.ai_setting:type_name -> bytebase.v1.AISetting+ 25, // 16: bytebase.v1.Value.environment_setting:type_name -> bytebase.v1.EnvironmentSetting+ 26, // 17: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack+ 27, // 18: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu+ 28, // 19: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom+ 29, // 20: bytebase.v1.AppIMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark+ 30, // 21: bytebase.v1.AppIMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk+ 48, // 22: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration+ 15, // 23: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement+ 48, // 24: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration+ 0, // 25: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode+ 2, // 26: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel+ 31, // 27: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule+ 32, // 28: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate+ 33, // 29: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType+ 34, // 30: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate+ 35, // 31: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig+ 39, // 32: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType+ 40, // 33: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask+ 41, // 34: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask+ 42, // 35: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask+ 43, // 36: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask+ 48, // 37: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration+ 4, // 38: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider+ 45, // 39: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment+ 49, // 40: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate+ 50, // 41: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 51, // 42: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine+ 52, // 43: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata+ 53, // 44: bytebase.v1.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.v1.ColumnCatalog+ 51, // 45: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine+ 51, // 46: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine+ 54, // 47: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata+ 55, // 48: bytebase.v1.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.v1.TableCatalog+ 36, // 49: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ 38, // 50: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 37, // 51: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ 20, // 52: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm+ 44, // 53: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice+ 3, // 54: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType+ 46, // 55: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry+ 5, // 56: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest+ 7, // 57: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest+ 9, // 58: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest+ 6, // 59: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse+ 10, // 60: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting+ 10, // 61: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting+ 59, // [59:62] is the sub-list for method output_type+ 56, // [56:59] is the sub-list for method input_type+ 56, // [56:56] is the sub-list for extension type_name+ 56, // [56:56] is the sub-list for extension extendee+ 0, // [0:56] is the sub-list for field type_name}func init() { file_v1_setting_service_proto_init() }@@ -3923,15 +3506,12 @@ func file_v1_setting_service_proto_init() {file_v1_database_catalog_service_proto_init()file_v1_database_service_proto_init()file_v1_issue_service_proto_init()- file_v1_subscription_service_proto_init()file_v1_setting_service_proto_msgTypes[6].OneofWrappers = []any{(*Value_StringValue)(nil),- (*Value_SmtpMailDeliverySettingValue)(nil),(*Value_AppImSettingValue)(nil),(*Value_AgentPluginSettingValue)(nil),(*Value_WorkspaceProfileSettingValue)(nil),(*Value_WorkspaceApprovalSettingValue)(nil),- (*Value_WorkspaceTrialSettingValue)(nil),(*Value_SchemaTemplateSettingValue)(nil),(*Value_DataClassificationSettingValue)(nil),(*Value_SemanticTypeSettingValue)(nil),@@ -3941,21 +3521,20 @@ func file_v1_setting_service_proto_init() {(*Value_AiSetting)(nil),(*Value_EnvironmentSetting)(nil),}- file_v1_setting_service_proto_msgTypes[7].OneofWrappers = []any{}- file_v1_setting_service_proto_msgTypes[17].OneofWrappers = []any{+ file_v1_setting_service_proto_msgTypes[15].OneofWrappers = []any{(*Algorithm_FullMask_)(nil),(*Algorithm_RangeMask_)(nil),(*Algorithm_Md5Mask)(nil),(*Algorithm_InnerOuterMask_)(nil),}- file_v1_setting_service_proto_msgTypes[34].OneofWrappers = []any{}+ file_v1_setting_service_proto_msgTypes[32].OneofWrappers = []any{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_setting_service_proto_rawDesc), len(file_v1_setting_service_proto_rawDesc)),- NumEnums: 7,- NumMessages: 44,+ NumEnums: 5,+ NumMessages: 42,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/store/setting.proto b/proto/store/store/setting.protoindex 6f4bad2c7a..45c7edd76c 100644--- a/proto/store/store/setting.proto+++ b/proto/store/store/setting.proto@@ -24,7 +24,6 @@ enum SettingName {WATERMARK = 9;AI = 10;PLUGIN_AGENT = 11;- WORKSPACE_MAIL_DELIVERY = 12;SCHEMA_TEMPLATE = 13;DATA_CLASSIFICATION = 14;SEMANTIC_TYPES = 15;@@ -105,46 +104,6 @@ message WorkspaceApprovalSetting {repeated Rule rules = 1;}-message SMTPMailDeliverySetting {- // The SMTP server address.- string server = 1;-- // The SMTP server port.- int32 port = 2;-- // We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.- enum Encryption {- ENCRYPTION_UNSPECIFIED = 0;- ENCRYPTION_NONE = 1;- ENCRYPTION_STARTTLS = 2;- ENCRYPTION_SSL_TLS = 3;- }-- // The SMTP server encryption.- Encryption encryption = 3;-- // The CA, KEY, and CERT for the SMTP server.- string ca = 4;- string key = 5;- string cert = 6;-- // We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and- // CRAM-MD5.- enum Authentication {- AUTHENTICATION_UNSPECIFIED = 0;- AUTHENTICATION_NONE = 1;- AUTHENTICATION_PLAIN = 2;- AUTHENTICATION_LOGIN = 3;- AUTHENTICATION_CRAM_MD5 = 4;- }- Authentication authentication = 7;- string username = 8;- string password = 9;-- // The sender email address.- string from = 10;-}-message SchemaTemplateSetting {message FieldTemplate {string id = 1;diff --git a/proto/v1/v1/setting_service.proto b/proto/v1/v1/setting_service.protoindex ca1a1c9993..b4315939ac 100644--- a/proto/v1/v1/setting_service.proto+++ b/proto/v1/v1/setting_service.proto@@ -8,14 +8,12 @@ import "google/api/field_behavior.proto";import "google/api/resource.proto";import "google/protobuf/duration.proto";import "google/protobuf/field_mask.proto";-import "google/protobuf/timestamp.proto";import "google/type/expr.proto";import "v1/annotation.proto";import "v1/common.proto";import "v1/database_catalog_service.proto";import "v1/database_service.proto";import "v1/issue_service.proto";-import "v1/subscription_service.proto";option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";@@ -119,7 +117,6 @@ message Setting {WATERMARK = 9;AI = 10;PLUGIN_AGENT = 11;- WORKSPACE_MAIL_DELIVERY = 12;SCHEMA_TEMPLATE = 13;DATA_CLASSIFICATION = 14;SEMANTIC_TYPES = 15;@@ -145,12 +142,10 @@ message Value {oneof value {// Defines this value as being a string value.string string_value = 1;- SMTPMailDeliverySettingValue smtp_mail_delivery_setting_value = 2;AppIMSetting app_im_setting_value = 3;AgentPluginSetting agent_plugin_setting_value = 4;WorkspaceProfileSetting workspace_profile_setting_value = 5;WorkspaceApprovalSetting workspace_approval_setting_value = 6;- WorkspaceTrialSetting workspace_trial_setting_value = 7;SchemaTemplateSetting schema_template_setting_value = 9;DataClassificationSetting data_classification_setting_value = 10;SemanticTypeSetting semantic_type_setting_value = 11;@@ -162,50 +157,6 @@ message Value {}}-message SMTPMailDeliverySettingValue {- // The SMTP server address.- string server = 1;-- // The SMTP server port.- int32 port = 2;-- // We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.- enum Encryption {- ENCRYPTION_UNSPECIFIED = 0;- ENCRYPTION_NONE = 1;- ENCRYPTION_STARTTLS = 2;- ENCRYPTION_SSL_TLS = 3;- }-- // The SMTP server encryption.- Encryption encryption = 3;-- // The CA, KEY, and CERT for the SMTP server.- // Not used.- optional string ca = 4;- optional string key = 5;- optional string cert = 6;-- // We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.- enum Authentication {- AUTHENTICATION_UNSPECIFIED = 0;- AUTHENTICATION_NONE = 1;- AUTHENTICATION_PLAIN = 2;- AUTHENTICATION_LOGIN = 3;- AUTHENTICATION_CRAM_MD5 = 4;- }- Authentication authentication = 7;- string username = 8;- // If not specified, server will use the existed password.- optional string password = 9;-- // The sender email address.- string from = 10;-- // The recipient email address, used with validate_only to send test email.- string to = 11;-}-message AppIMSetting {message Slack {bool enabled = 1;@@ -360,20 +311,6 @@ message SchemaTemplateSetting {repeated TableTemplate table_templates = 3;}-message WorkspaceTrialSetting {- int32 instance_count = 1;-- google.protobuf.Timestamp expire_time = 2;-- google.protobuf.Timestamp issued_time = 3;-- string subject = 4;-- string org_name = 5;-- PlanType plan = 6;-}-message DataClassificationSetting {message DataClassificationConfig {// id is the uuid for classification. Each project can chose one classification config.