Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(proto): environment setting (#15753)
p0nyc2f71cb9f705
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.tsindex 1bde288138..818e03c73b 100644--- a/frontend/src/types/proto/store/setting.ts+++ b/frontend/src/types/proto/store/setting.ts@@ -679,6 +679,28 @@ export function aISetting_ProviderToNumber(object: AISetting_Provider): number {}}+export interface EnvironmentSetting {+ environments: EnvironmentSetting_Environment[];+}++export interface EnvironmentSetting_Environment {+ /** The display name of the environment. */+ title: string;+ /**+ * The resource id of the environment.+ * This value should be 4-63 characters, and valid characters+ * are /[a-z][0-9]-/.+ */+ id: string;+ tags: { [key: string]: string };+ color: string;+}++export interface EnvironmentSetting_Environment_TagsEntry {+ key: string;+ value: string;+}+function createBaseWorkspaceProfileSetting(): WorkspaceProfileSetting {return {externalUrl: "",@@ -4196,6 +4218,271 @@ export const AISetting: MessageFns<AISetting> = {},};+function createBaseEnvironmentSetting(): EnvironmentSetting {+ return { environments: [] };+}++export const EnvironmentSetting: MessageFns<EnvironmentSetting> = {+ encode(message: EnvironmentSetting, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.environments) {+ EnvironmentSetting_Environment.encode(v!, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): EnvironmentSetting {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseEnvironmentSetting();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.environments.push(EnvironmentSetting_Environment.decode(reader, reader.uint32()));+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): EnvironmentSetting {+ return {+ environments: globalThis.Array.isArray(object?.environments)+ ? object.environments.map((e: any) => EnvironmentSetting_Environment.fromJSON(e))+ : [],+ };+ },++ toJSON(message: EnvironmentSetting): unknown {+ const obj: any = {};+ if (message.environments?.length) {+ obj.environments = message.environments.map((e) => EnvironmentSetting_Environment.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<EnvironmentSetting>): EnvironmentSetting {+ return EnvironmentSetting.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<EnvironmentSetting>): EnvironmentSetting {+ const message = createBaseEnvironmentSetting();+ message.environments = object.environments?.map((e) => EnvironmentSetting_Environment.fromPartial(e)) || [];+ return message;+ },+};++function createBaseEnvironmentSetting_Environment(): EnvironmentSetting_Environment {+ return { title: "", id: "", tags: {}, color: "" };+}++export const EnvironmentSetting_Environment: MessageFns<EnvironmentSetting_Environment> = {+ encode(message: EnvironmentSetting_Environment, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.title !== "") {+ writer.uint32(10).string(message.title);+ }+ if (message.id !== "") {+ writer.uint32(18).string(message.id);+ }+ Object.entries(message.tags).forEach(([key, value]) => {+ EnvironmentSetting_Environment_TagsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();+ });+ if (message.color !== "") {+ writer.uint32(34).string(message.color);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): EnvironmentSetting_Environment {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseEnvironmentSetting_Environment();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.title = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.id = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ const entry3 = EnvironmentSetting_Environment_TagsEntry.decode(reader, reader.uint32());+ if (entry3.value !== undefined) {+ message.tags[entry3.key] = entry3.value;+ }+ continue;+ }+ case 4: {+ if (tag !== 34) {+ break;+ }++ message.color = reader.string();+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): EnvironmentSetting_Environment {+ return {+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ id: isSet(object.id) ? globalThis.String(object.id) : "",+ tags: isObject(object.tags)+ ? Object.entries(object.tags).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ color: isSet(object.color) ? globalThis.String(object.color) : "",+ };+ },++ toJSON(message: EnvironmentSetting_Environment): unknown {+ const obj: any = {};+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.id !== "") {+ obj.id = message.id;+ }+ if (message.tags) {+ const entries = Object.entries(message.tags);+ if (entries.length > 0) {+ obj.tags = {};+ entries.forEach(([k, v]) => {+ obj.tags[k] = v;+ });+ }+ }+ if (message.color !== "") {+ obj.color = message.color;+ }+ return obj;+ },++ create(base?: DeepPartial<EnvironmentSetting_Environment>): EnvironmentSetting_Environment {+ return EnvironmentSetting_Environment.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<EnvironmentSetting_Environment>): EnvironmentSetting_Environment {+ const message = createBaseEnvironmentSetting_Environment();+ message.title = object.title ?? "";+ message.id = object.id ?? "";+ message.tags = Object.entries(object.tags ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});+ message.color = object.color ?? "";+ return message;+ },+};++function createBaseEnvironmentSetting_Environment_TagsEntry(): EnvironmentSetting_Environment_TagsEntry {+ return { key: "", value: "" };+}++export const EnvironmentSetting_Environment_TagsEntry: MessageFns<EnvironmentSetting_Environment_TagsEntry> = {+ encode(message: EnvironmentSetting_Environment_TagsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): EnvironmentSetting_Environment_TagsEntry {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseEnvironmentSetting_Environment_TagsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): EnvironmentSetting_Environment_TagsEntry {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ };+ },++ toJSON(message: EnvironmentSetting_Environment_TagsEntry): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.value !== "") {+ obj.value = message.value;+ }+ return obj;+ },++ create(base?: DeepPartial<EnvironmentSetting_Environment_TagsEntry>): EnvironmentSetting_Environment_TagsEntry {+ return EnvironmentSetting_Environment_TagsEntry.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<EnvironmentSetting_Environment_TagsEntry>): EnvironmentSetting_Environment_TagsEntry {+ const message = createBaseEnvironmentSetting_Environment_TagsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";+ return message;+ },+};+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;export type DeepPartial<T> = T extends Builtin ? Tdiff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.tsindex 0402f099fc..76c615a232 100644--- a/frontend/src/types/proto/v1/setting_service.ts+++ b/frontend/src/types/proto/v1/setting_service.ts@@ -163,6 +163,7 @@ export interface Value {scimSetting?: SCIMSetting | undefined;passwordRestrictionSetting?: PasswordRestrictionSetting | undefined;aiSetting?: AISetting | undefined;+ environmentSetting?: EnvironmentSetting | undefined;}export interface SMTPMailDeliverySettingValue {@@ -788,6 +789,29 @@ export function aISetting_ProviderToNumber(object: AISetting_Provider): number {}}+/** TODO(p0ny): implement. */+export interface EnvironmentSetting {+ environments: EnvironmentSetting_Environment[];+}++export interface EnvironmentSetting_Environment {+ /** The display name of the environment. */+ title: string;+ /**+ * The resource id of the environment.+ * This value should be 4-63 characters, and valid characters+ * are /[a-z][0-9]-/.+ */+ id: string;+ tags: { [key: string]: string };+ color: string;+}++export interface EnvironmentSetting_Environment_TagsEntry {+ key: string;+ value: string;+}+function createBaseListSettingsRequest(): ListSettingsRequest {return { pageSize: 0, pageToken: "" };}@@ -1260,6 +1284,7 @@ function createBaseValue(): Value {scimSetting: undefined,passwordRestrictionSetting: undefined,aiSetting: undefined,+ environmentSetting: undefined,};}@@ -1307,6 +1332,9 @@ export const Value: MessageFns<Value> = {if (message.aiSetting !== undefined) {AISetting.encode(message.aiSetting, writer.uint32(130).fork()).join();}+ if (message.environmentSetting !== undefined) {+ EnvironmentSetting.encode(message.environmentSetting, writer.uint32(138).fork()).join();+ }return writer;},@@ -1429,6 +1457,14 @@ export const Value: MessageFns<Value> = {message.aiSetting = AISetting.decode(reader, reader.uint32());continue;}+ case 17: {+ if (tag !== 138) {+ break;+ }++ message.environmentSetting = EnvironmentSetting.decode(reader, reader.uint32());+ continue;+ }}if ((tag & 7) === 4 || tag === 0) {break;@@ -1474,6 +1510,9 @@ export const Value: MessageFns<Value> = {? PasswordRestrictionSetting.fromJSON(object.passwordRestrictionSetting): undefined,aiSetting: isSet(object.aiSetting) ? AISetting.fromJSON(object.aiSetting) : undefined,+ environmentSetting: isSet(object.environmentSetting)+ ? EnvironmentSetting.fromJSON(object.environmentSetting)+ : undefined,};},@@ -1521,6 +1560,9 @@ export const Value: MessageFns<Value> = {if (message.aiSetting !== undefined) {obj.aiSetting = AISetting.toJSON(message.aiSetting);}+ if (message.environmentSetting !== undefined) {+ obj.environmentSetting = EnvironmentSetting.toJSON(message.environmentSetting);+ }return obj;},@@ -1579,6 +1621,9 @@ export const Value: MessageFns<Value> = {message.aiSetting = (object.aiSetting !== undefined && object.aiSetting !== null)? AISetting.fromPartial(object.aiSetting): undefined;+ message.environmentSetting = (object.environmentSetting !== undefined && object.environmentSetting !== null)+ ? EnvironmentSetting.fromPartial(object.environmentSetting)+ : undefined;return message;},};@@ -5251,6 +5296,271 @@ export const AISetting: MessageFns<AISetting> = {},};+function createBaseEnvironmentSetting(): EnvironmentSetting {+ return { environments: [] };+}++export const EnvironmentSetting: MessageFns<EnvironmentSetting> = {+ encode(message: EnvironmentSetting, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.environments) {+ EnvironmentSetting_Environment.encode(v!, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): EnvironmentSetting {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseEnvironmentSetting();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.environments.push(EnvironmentSetting_Environment.decode(reader, reader.uint32()));+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): EnvironmentSetting {+ return {+ environments: globalThis.Array.isArray(object?.environments)+ ? object.environments.map((e: any) => EnvironmentSetting_Environment.fromJSON(e))+ : [],+ };+ },++ toJSON(message: EnvironmentSetting): unknown {+ const obj: any = {};+ if (message.environments?.length) {+ obj.environments = message.environments.map((e) => EnvironmentSetting_Environment.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<EnvironmentSetting>): EnvironmentSetting {+ return EnvironmentSetting.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<EnvironmentSetting>): EnvironmentSetting {+ const message = createBaseEnvironmentSetting();+ message.environments = object.environments?.map((e) => EnvironmentSetting_Environment.fromPartial(e)) || [];+ return message;+ },+};++function createBaseEnvironmentSetting_Environment(): EnvironmentSetting_Environment {+ return { title: "", id: "", tags: {}, color: "" };+}++export const EnvironmentSetting_Environment: MessageFns<EnvironmentSetting_Environment> = {+ encode(message: EnvironmentSetting_Environment, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.title !== "") {+ writer.uint32(10).string(message.title);+ }+ if (message.id !== "") {+ writer.uint32(18).string(message.id);+ }+ Object.entries(message.tags).forEach(([key, value]) => {+ EnvironmentSetting_Environment_TagsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();+ });+ if (message.color !== "") {+ writer.uint32(34).string(message.color);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): EnvironmentSetting_Environment {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseEnvironmentSetting_Environment();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.title = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.id = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ const entry3 = EnvironmentSetting_Environment_TagsEntry.decode(reader, reader.uint32());+ if (entry3.value !== undefined) {+ message.tags[entry3.key] = entry3.value;+ }+ continue;+ }+ case 4: {+ if (tag !== 34) {+ break;+ }++ message.color = reader.string();+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): EnvironmentSetting_Environment {+ return {+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ id: isSet(object.id) ? globalThis.String(object.id) : "",+ tags: isObject(object.tags)+ ? Object.entries(object.tags).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ color: isSet(object.color) ? globalThis.String(object.color) : "",+ };+ },++ toJSON(message: EnvironmentSetting_Environment): unknown {+ const obj: any = {};+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.id !== "") {+ obj.id = message.id;+ }+ if (message.tags) {+ const entries = Object.entries(message.tags);+ if (entries.length > 0) {+ obj.tags = {};+ entries.forEach(([k, v]) => {+ obj.tags[k] = v;+ });+ }+ }+ if (message.color !== "") {+ obj.color = message.color;+ }+ return obj;+ },++ create(base?: DeepPartial<EnvironmentSetting_Environment>): EnvironmentSetting_Environment {+ return EnvironmentSetting_Environment.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<EnvironmentSetting_Environment>): EnvironmentSetting_Environment {+ const message = createBaseEnvironmentSetting_Environment();+ message.title = object.title ?? "";+ message.id = object.id ?? "";+ message.tags = Object.entries(object.tags ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});+ message.color = object.color ?? "";+ return message;+ },+};++function createBaseEnvironmentSetting_Environment_TagsEntry(): EnvironmentSetting_Environment_TagsEntry {+ return { key: "", value: "" };+}++export const EnvironmentSetting_Environment_TagsEntry: MessageFns<EnvironmentSetting_Environment_TagsEntry> = {+ encode(message: EnvironmentSetting_Environment_TagsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): EnvironmentSetting_Environment_TagsEntry {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseEnvironmentSetting_Environment_TagsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): EnvironmentSetting_Environment_TagsEntry {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ };+ },++ toJSON(message: EnvironmentSetting_Environment_TagsEntry): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.value !== "") {+ obj.value = message.value;+ }+ return obj;+ },++ create(base?: DeepPartial<EnvironmentSetting_Environment_TagsEntry>): EnvironmentSetting_Environment_TagsEntry {+ return EnvironmentSetting_Environment_TagsEntry.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<EnvironmentSetting_Environment_TagsEntry>): EnvironmentSetting_Environment_TagsEntry {+ const message = createBaseEnvironmentSetting_Environment_TagsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";+ return message;+ },+};+export type SettingServiceDefinition = typeof SettingServiceDefinition;export const SettingServiceDefinition = {name: "SettingService",diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 61a7339b7d..e825801c7d 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -9467,6 +9467,32 @@ components:format: enumcolor:type: string+ EnvironmentSetting:+ type: object+ properties:+ environments:+ type: array+ items:+ $ref: '#/components/schemas/EnvironmentSetting_Environment'+ description: 'TODO(p0ny): implement.'+ EnvironmentSetting_Environment:+ type: object+ properties:+ title:+ type: string+ description: The display name of the environment.+ id:+ type: string+ description: |-+ The resource id of the environment.+ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ tags:+ type: object+ additionalProperties:+ type: string+ color:+ type: stringExportAuditLogsRequest:required:- parent@@ -13930,6 +13956,8 @@ components:$ref: '#/components/schemas/PasswordRestrictionSetting'aiSetting:$ref: '#/components/schemas/AISetting'+ environmentSetting:+ $ref: '#/components/schemas/EnvironmentSetting'description: The data in setting value.Webhook:required:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex bfb6145938..d71d8cc2be 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -267,6 +267,9 @@- [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-store-DataClassificationSetting-DataClassificationConfig-ClassificationEntry)- [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification)- [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-store-DataClassificationSetting-DataClassificationConfig-Level)+ - [EnvironmentSetting](#bytebase-store-EnvironmentSetting)+ - [EnvironmentSetting.Environment](#bytebase-store-EnvironmentSetting-Environment)+ - [EnvironmentSetting.Environment.TagsEntry](#bytebase-store-EnvironmentSetting-Environment-TagsEntry)- [MaximumSQLResultSizeSetting](#bytebase-store-MaximumSQLResultSizeSetting)- [PasswordRestrictionSetting](#bytebase-store-PasswordRestrictionSetting)- [SCIMSetting](#bytebase-store-SCIMSetting)@@ -4234,6 +4237,55 @@ RestrictIssueCreationForSQLReviewPolicy is the policy configuration for restrict+<a name="bytebase-store-EnvironmentSetting"></a>++### EnvironmentSetting++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| environments | [EnvironmentSetting.Environment](#bytebase-store-EnvironmentSetting-Environment) | repeated | |+++++++<a name="bytebase-store-EnvironmentSetting-Environment"></a>++### EnvironmentSetting.Environment++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| title | [string](#string) | | The display name of the environment. |+| id | [string](#string) | | The resource id of the environment. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| tags | [EnvironmentSetting.Environment.TagsEntry](#bytebase-store-EnvironmentSetting-Environment-TagsEntry) | repeated | |+| color | [string](#string) | | |+++++++<a name="bytebase-store-EnvironmentSetting-Environment-TagsEntry"></a>++### EnvironmentSetting.Environment.TagsEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |++++++<a name="bytebase-store-MaximumSQLResultSizeSetting"></a>### MaximumSQLResultSizeSettingdiff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 85cc451245..4b3774f843 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1259,6 +1259,18 @@<a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a></li>+ <li>+ <a href="#bytebase.store.EnvironmentSetting"><span class="badge">M</span>EnvironmentSetting</a>+ </li>++ <li>+ <a href="#bytebase.store.EnvironmentSetting.Environment"><span class="badge">M</span>EnvironmentSetting.Environment</a>+ </li>++ <li>+ <a href="#bytebase.store.EnvironmentSetting.Environment.TagsEntry"><span class="badge">M</span>EnvironmentSetting.Environment.TagsEntry</a>+ </li>+<li><a href="#bytebase.store.MaximumSQLResultSizeSetting"><span class="badge">M</span>MaximumSQLResultSizeSetting</a></li>@@ -10914,6 +10926,108 @@ and write back to the schema metadata. </p></td>+ <h3 id="bytebase.store.EnvironmentSetting">EnvironmentSetting</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>environments</td>+ <td><a href="#bytebase.store.EnvironmentSetting.Environment">EnvironmentSetting.Environment</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.EnvironmentSetting.Environment">EnvironmentSetting.Environment</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The display name of the environment. </p></td>+ </tr>++ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource id of the environment.+This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>++ <tr>+ <td>tags</td>+ <td><a href="#bytebase.store.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>color</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.store.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</h3><p></p>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex b1bdcee0ed..437f488e4a 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -241,6 +241,9 @@- [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry)- [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification)- [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level)+ - [EnvironmentSetting](#bytebase-v1-EnvironmentSetting)+ - [EnvironmentSetting.Environment](#bytebase-v1-EnvironmentSetting-Environment)+ - [EnvironmentSetting.Environment.TagsEntry](#bytebase-v1-EnvironmentSetting-Environment-TagsEntry)- [GetSettingRequest](#bytebase-v1-GetSettingRequest)- [GetSettingResponse](#bytebase-v1-GetSettingResponse)- [ListSettingsRequest](#bytebase-v1-ListSettingsRequest)@@ -4464,6 +4467,55 @@ ANY means approving any node will proceed.+<a name="bytebase-v1-EnvironmentSetting"></a>++### EnvironmentSetting+TODO(p0ny): implement.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| environments | [EnvironmentSetting.Environment](#bytebase-v1-EnvironmentSetting-Environment) | repeated | |+++++++<a name="bytebase-v1-EnvironmentSetting-Environment"></a>++### EnvironmentSetting.Environment++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| title | [string](#string) | | The display name of the environment. |+| id | [string](#string) | | The resource id of the environment. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| tags | [EnvironmentSetting.Environment.TagsEntry](#bytebase-v1-EnvironmentSetting-Environment-TagsEntry) | repeated | |+| color | [string](#string) | | |+++++++<a name="bytebase-v1-EnvironmentSetting-Environment-TagsEntry"></a>++### EnvironmentSetting.Environment.TagsEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |++++++<a name="bytebase-v1-GetSettingRequest"></a>### GetSettingRequest@@ -4767,6 +4819,7 @@ The data in setting value.| scim_setting | [SCIMSetting](#bytebase-v1-SCIMSetting) | | || password_restriction_setting | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | || ai_setting | [AISetting](#bytebase-v1-AISetting) | | |+| environment_setting | [EnvironmentSetting](#bytebase-v1-EnvironmentSetting) | | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 5c7775b041..b67bb5d71e 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1098,6 +1098,18 @@<a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a></li>+ <li>+ <a href="#bytebase.v1.EnvironmentSetting"><span class="badge">M</span>EnvironmentSetting</a>+ </li>++ <li>+ <a href="#bytebase.v1.EnvironmentSetting.Environment"><span class="badge">M</span>EnvironmentSetting.Environment</a>+ </li>++ <li>+ <a href="#bytebase.v1.EnvironmentSetting.Environment.TagsEntry"><span class="badge">M</span>EnvironmentSetting.Environment.TagsEntry</a>+ </li>+<li><a href="#bytebase.v1.GetSettingRequest"><span class="badge">M</span>GetSettingRequest</a></li>@@ -13113,6 +13125,108 @@ and write back to the schema metadata. </p></td>+ <h3 id="bytebase.v1.EnvironmentSetting">EnvironmentSetting</h3>+ <p>TODO(p0ny): implement.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>environments</td>+ <td><a href="#bytebase.v1.EnvironmentSetting.Environment">EnvironmentSetting.Environment</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.EnvironmentSetting.Environment">EnvironmentSetting.Environment</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The display name of the environment. </p></td>+ </tr>++ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource id of the environment.+This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>++ <tr>+ <td>tags</td>+ <td><a href="#bytebase.v1.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>color</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.EnvironmentSetting.Environment.TagsEntry">EnvironmentSetting.Environment.TagsEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.GetSettingRequest">GetSettingRequest</h3><p>The request message for getting a setting.</p>@@ -13880,6 +13994,13 @@ server would not persist the setting value if it is true. </p></td><td><p> </p></td></tr>+ <tr>+ <td>environment_setting</td>+ <td><a href="#bytebase.v1.EnvironmentSetting">EnvironmentSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+</tbody></table>diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.goindex 06fb190f38..4f12b80fe0 100644--- a/proto/generated-go/store/setting.pb.go+++ b/proto/generated-go/store/setting.pb.go@@ -1371,6 +1371,50 @@ func (x *AISetting) GetVersion() string {return ""}+type EnvironmentSetting struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Environments []*EnvironmentSetting_Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *EnvironmentSetting) Reset() {+ *x = EnvironmentSetting{}+ mi := &file_store_setting_proto_msgTypes[14]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *EnvironmentSetting) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*EnvironmentSetting) ProtoMessage() {}++func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {+ mi := &file_store_setting_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 EnvironmentSetting.ProtoReflect.Descriptor instead.+func (*EnvironmentSetting) Descriptor() ([]byte, []int) {+ return file_store_setting_proto_rawDescGZIP(), []int{14}+}++func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {+ if x != nil {+ return x.Environments+ }+ return nil+}+type WorkspaceApprovalSetting_Rule struct {state protoimpl.MessageState `protogen:"open.v1"`Expression *v1alpha1.Expr `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`@@ -1382,7 +1426,7 @@ type WorkspaceApprovalSetting_Rule struct {func (x *WorkspaceApprovalSetting_Rule) Reset() {*x = WorkspaceApprovalSetting_Rule{}- mi := &file_store_setting_proto_msgTypes[14]+ mi := &file_store_setting_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1394,7 +1438,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[14]+ mi := &file_store_setting_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1444,7 +1488,7 @@ type SchemaTemplateSetting_FieldTemplate struct {func (x *SchemaTemplateSetting_FieldTemplate) Reset() {*x = SchemaTemplateSetting_FieldTemplate{}- mi := &file_store_setting_proto_msgTypes[15]+ mi := &file_store_setting_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1456,7 +1500,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[15]+ mi := &file_store_setting_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1518,7 +1562,7 @@ type SchemaTemplateSetting_ColumnType struct {func (x *SchemaTemplateSetting_ColumnType) Reset() {*x = SchemaTemplateSetting_ColumnType{}- mi := &file_store_setting_proto_msgTypes[16]+ mi := &file_store_setting_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1530,7 +1574,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[16]+ mi := &file_store_setting_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1580,7 +1624,7 @@ type SchemaTemplateSetting_TableTemplate struct {func (x *SchemaTemplateSetting_TableTemplate) Reset() {*x = SchemaTemplateSetting_TableTemplate{}- mi := &file_store_setting_proto_msgTypes[17]+ mi := &file_store_setting_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1592,7 +1636,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[17]+ mi := &file_store_setting_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1665,7 +1709,7 @@ type DataClassificationSetting_DataClassificationConfig struct {func (x *DataClassificationSetting_DataClassificationConfig) Reset() {*x = DataClassificationSetting_DataClassificationConfig{}- mi := &file_store_setting_proto_msgTypes[18]+ mi := &file_store_setting_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1677,7 +1721,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[18]+ mi := &file_store_setting_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1739,7 +1783,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {*x = DataClassificationSetting_DataClassificationConfig_Level{}- mi := &file_store_setting_proto_msgTypes[19]+ mi := &file_store_setting_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1751,7 +1795,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[19]+ mi := &file_store_setting_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1801,7 +1845,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification strucfunc (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}- mi := &file_store_setting_proto_msgTypes[20]+ mi := &file_store_setting_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1813,7 +1857,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[20]+ mi := &file_store_setting_proto_msgTypes[21]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1872,7 +1916,7 @@ type SemanticTypeSetting_SemanticType struct {func (x *SemanticTypeSetting_SemanticType) Reset() {*x = SemanticTypeSetting_SemanticType{}- mi := &file_store_setting_proto_msgTypes[22]+ mi := &file_store_setting_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1884,7 +1928,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[22]+ mi := &file_store_setting_proto_msgTypes[23]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1939,7 +1983,7 @@ type Algorithm_FullMask struct {func (x *Algorithm_FullMask) Reset() {*x = Algorithm_FullMask{}- mi := &file_store_setting_proto_msgTypes[23]+ mi := &file_store_setting_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1951,7 +1995,7 @@ func (x *Algorithm_FullMask) String() string {func (*Algorithm_FullMask) ProtoMessage() {}func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[23]+ mi := &file_store_setting_proto_msgTypes[24]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1985,7 +2029,7 @@ type Algorithm_RangeMask struct {func (x *Algorithm_RangeMask) Reset() {*x = Algorithm_RangeMask{}- mi := &file_store_setting_proto_msgTypes[24]+ mi := &file_store_setting_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1997,7 +2041,7 @@ func (x *Algorithm_RangeMask) String() string {func (*Algorithm_RangeMask) ProtoMessage() {}func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[24]+ mi := &file_store_setting_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2030,7 +2074,7 @@ type Algorithm_MD5Mask struct {func (x *Algorithm_MD5Mask) Reset() {*x = Algorithm_MD5Mask{}- mi := &file_store_setting_proto_msgTypes[25]+ mi := &file_store_setting_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2042,7 +2086,7 @@ func (x *Algorithm_MD5Mask) String() string {func (*Algorithm_MD5Mask) ProtoMessage() {}func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[25]+ mi := &file_store_setting_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2077,7 +2121,7 @@ type Algorithm_InnerOuterMask struct {func (x *Algorithm_InnerOuterMask) Reset() {*x = Algorithm_InnerOuterMask{}- mi := &file_store_setting_proto_msgTypes[26]+ mi := &file_store_setting_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2089,7 +2133,7 @@ func (x *Algorithm_InnerOuterMask) String() string {func (*Algorithm_InnerOuterMask) ProtoMessage() {}func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[26]+ mi := &file_store_setting_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2147,7 +2191,7 @@ type Algorithm_RangeMask_Slice struct {func (x *Algorithm_RangeMask_Slice) Reset() {*x = Algorithm_RangeMask_Slice{}- mi := &file_store_setting_proto_msgTypes[27]+ mi := &file_store_setting_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2159,7 +2203,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[27]+ mi := &file_store_setting_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2206,7 +2250,7 @@ type AppIMSetting_Slack struct {func (x *AppIMSetting_Slack) Reset() {*x = AppIMSetting_Slack{}- mi := &file_store_setting_proto_msgTypes[28]+ mi := &file_store_setting_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2218,7 +2262,7 @@ func (x *AppIMSetting_Slack) String() string {func (*AppIMSetting_Slack) ProtoMessage() {}func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[28]+ mi := &file_store_setting_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2259,7 +2303,7 @@ type AppIMSetting_Feishu struct {func (x *AppIMSetting_Feishu) Reset() {*x = AppIMSetting_Feishu{}- mi := &file_store_setting_proto_msgTypes[29]+ mi := &file_store_setting_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2271,7 +2315,7 @@ func (x *AppIMSetting_Feishu) String() string {func (*AppIMSetting_Feishu) ProtoMessage() {}func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[29]+ mi := &file_store_setting_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2320,7 +2364,7 @@ type AppIMSetting_Wecom struct {func (x *AppIMSetting_Wecom) Reset() {*x = AppIMSetting_Wecom{}- mi := &file_store_setting_proto_msgTypes[30]+ mi := &file_store_setting_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2332,7 +2376,7 @@ func (x *AppIMSetting_Wecom) String() string {func (*AppIMSetting_Wecom) ProtoMessage() {}func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[30]+ mi := &file_store_setting_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2387,7 +2431,7 @@ type AppIMSetting_Lark struct {func (x *AppIMSetting_Lark) Reset() {*x = AppIMSetting_Lark{}- mi := &file_store_setting_proto_msgTypes[31]+ mi := &file_store_setting_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2399,7 +2443,7 @@ func (x *AppIMSetting_Lark) String() string {func (*AppIMSetting_Lark) ProtoMessage() {}func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[31]+ mi := &file_store_setting_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2448,7 +2492,7 @@ type AppIMSetting_DingTalk struct {func (x *AppIMSetting_DingTalk) Reset() {*x = AppIMSetting_DingTalk{}- mi := &file_store_setting_proto_msgTypes[32]+ mi := &file_store_setting_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2460,7 +2504,7 @@ func (x *AppIMSetting_DingTalk) String() string {func (*AppIMSetting_DingTalk) ProtoMessage() {}func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[32]+ mi := &file_store_setting_proto_msgTypes[33]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2504,6 +2548,78 @@ func (x *AppIMSetting_DingTalk) GetRobotCode() string {return ""}+type EnvironmentSetting_Environment struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The display name of the environment.+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ // The resource id of the environment.+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][0-9]-/.+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`+ Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *EnvironmentSetting_Environment) Reset() {+ *x = EnvironmentSetting_Environment{}+ mi := &file_store_setting_proto_msgTypes[34]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *EnvironmentSetting_Environment) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*EnvironmentSetting_Environment) ProtoMessage() {}++func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {+ mi := &file_store_setting_proto_msgTypes[34]+ 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 EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.+func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {+ return file_store_setting_proto_rawDescGZIP(), []int{14, 0}+}++func (x *EnvironmentSetting_Environment) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *EnvironmentSetting_Environment) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *EnvironmentSetting_Environment) GetTags() map[string]string {+ if x != nil {+ return x.Tags+ }+ return nil+}++func (x *EnvironmentSetting_Environment) GetColor() string {+ if x != nil {+ return x.Color+ }+ return ""+}+var File_store_setting_proto protoreflect.FileDescriptorconst file_store_setting_proto_rawDesc = "" +@@ -2704,7 +2820,17 @@ const file_store_setting_proto_rawDesc = "" +"\x06CLAUDE\x10\x02\x12\n" +"\n" +"\x06GEMINI\x10\x03\x12\x10\n" +- "\fAZURE_OPENAI\x10\x04*T\n" ++ "\fAZURE_OPENAI\x10\x04\"\xbb\x02\n" ++ "\x12EnvironmentSetting\x12R\n" ++ "\fenvironments\x18\x01 \x03(\v2..bytebase.store.EnvironmentSetting.EnvironmentR\fenvironments\x1a\xd0\x01\n" ++ "\vEnvironment\x12\x14\n" ++ "\x05title\x18\x01 \x01(\tR\x05title\x12\x0e\n" ++ "\x02id\x18\x02 \x01(\tR\x02id\x12L\n" ++ "\x04tags\x18\x03 \x03(\v28.bytebase.store.EnvironmentSetting.Environment.TagsEntryR\x04tags\x12\x14\n" ++ "\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*T\n" +"\x12DatabaseChangeMode\x12$\n" +" DATABASE_CHANGE_MODE_UNSPECIFIED\x10\x00\x12\f\n" +"\bPIPELINE\x10\x01\x12\n" +@@ -2724,103 +2850,108 @@ func file_store_setting_proto_rawDescGZIP() []byte {}var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 6)-var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 33)+var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 36)var file_store_setting_proto_goTypes = []any{- (DatabaseChangeMode)(0), // 0: bytebase.store.DatabaseChangeMode- (Announcement_AlertLevel)(0), // 1: bytebase.store.Announcement.AlertLevel- (SMTPMailDeliverySetting_Encryption)(0), // 2: bytebase.store.SMTPMailDeliverySetting.Encryption- (SMTPMailDeliverySetting_Authentication)(0), // 3: bytebase.store.SMTPMailDeliverySetting.Authentication- (Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.store.Algorithm.InnerOuterMask.MaskType- (AISetting_Provider)(0), // 5: bytebase.store.AISetting.Provider- (*WorkspaceProfileSetting)(nil), // 6: bytebase.store.WorkspaceProfileSetting- (*Announcement)(nil), // 7: bytebase.store.Announcement- (*AgentPluginSetting)(nil), // 8: bytebase.store.AgentPluginSetting- (*WorkspaceApprovalSetting)(nil), // 9: bytebase.store.WorkspaceApprovalSetting- (*SMTPMailDeliverySetting)(nil), // 10: bytebase.store.SMTPMailDeliverySetting- (*SchemaTemplateSetting)(nil), // 11: bytebase.store.SchemaTemplateSetting- (*DataClassificationSetting)(nil), // 12: bytebase.store.DataClassificationSetting- (*SemanticTypeSetting)(nil), // 13: bytebase.store.SemanticTypeSetting- (*Algorithm)(nil), // 14: bytebase.store.Algorithm- (*AppIMSetting)(nil), // 15: bytebase.store.AppIMSetting- (*MaximumSQLResultSizeSetting)(nil), // 16: bytebase.store.MaximumSQLResultSizeSetting- (*SCIMSetting)(nil), // 17: bytebase.store.SCIMSetting- (*PasswordRestrictionSetting)(nil), // 18: bytebase.store.PasswordRestrictionSetting- (*AISetting)(nil), // 19: bytebase.store.AISetting- (*WorkspaceApprovalSetting_Rule)(nil), // 20: bytebase.store.WorkspaceApprovalSetting.Rule- (*SchemaTemplateSetting_FieldTemplate)(nil), // 21: bytebase.store.SchemaTemplateSetting.FieldTemplate- (*SchemaTemplateSetting_ColumnType)(nil), // 22: bytebase.store.SchemaTemplateSetting.ColumnType- (*SchemaTemplateSetting_TableTemplate)(nil), // 23: bytebase.store.SchemaTemplateSetting.TableTemplate- (*DataClassificationSetting_DataClassificationConfig)(nil), // 24: bytebase.store.DataClassificationSetting.DataClassificationConfig- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 25: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification- nil, // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- (*SemanticTypeSetting_SemanticType)(nil), // 28: bytebase.store.SemanticTypeSetting.SemanticType- (*Algorithm_FullMask)(nil), // 29: bytebase.store.Algorithm.FullMask- (*Algorithm_RangeMask)(nil), // 30: bytebase.store.Algorithm.RangeMask- (*Algorithm_MD5Mask)(nil), // 31: bytebase.store.Algorithm.MD5Mask- (*Algorithm_InnerOuterMask)(nil), // 32: bytebase.store.Algorithm.InnerOuterMask- (*Algorithm_RangeMask_Slice)(nil), // 33: bytebase.store.Algorithm.RangeMask.Slice- (*AppIMSetting_Slack)(nil), // 34: bytebase.store.AppIMSetting.Slack- (*AppIMSetting_Feishu)(nil), // 35: bytebase.store.AppIMSetting.Feishu- (*AppIMSetting_Wecom)(nil), // 36: bytebase.store.AppIMSetting.Wecom- (*AppIMSetting_Lark)(nil), // 37: bytebase.store.AppIMSetting.Lark- (*AppIMSetting_DingTalk)(nil), // 38: bytebase.store.AppIMSetting.DingTalk- (*durationpb.Duration)(nil), // 39: google.protobuf.Duration- (*v1alpha1.Expr)(nil), // 40: google.api.expr.v1alpha1.Expr- (*ApprovalTemplate)(nil), // 41: bytebase.store.ApprovalTemplate- (*expr.Expr)(nil), // 42: google.type.Expr- (Engine)(0), // 43: bytebase.store.Engine- (*ColumnMetadata)(nil), // 44: bytebase.store.ColumnMetadata- (*ColumnCatalog)(nil), // 45: bytebase.store.ColumnCatalog- (*TableMetadata)(nil), // 46: bytebase.store.TableMetadata- (*TableCatalog)(nil), // 47: bytebase.store.TableCatalog+ (DatabaseChangeMode)(0), // 0: bytebase.store.DatabaseChangeMode+ (Announcement_AlertLevel)(0), // 1: bytebase.store.Announcement.AlertLevel+ (SMTPMailDeliverySetting_Encryption)(0), // 2: bytebase.store.SMTPMailDeliverySetting.Encryption+ (SMTPMailDeliverySetting_Authentication)(0), // 3: bytebase.store.SMTPMailDeliverySetting.Authentication+ (Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.store.Algorithm.InnerOuterMask.MaskType+ (AISetting_Provider)(0), // 5: bytebase.store.AISetting.Provider+ (*WorkspaceProfileSetting)(nil), // 6: bytebase.store.WorkspaceProfileSetting+ (*Announcement)(nil), // 7: bytebase.store.Announcement+ (*AgentPluginSetting)(nil), // 8: bytebase.store.AgentPluginSetting+ (*WorkspaceApprovalSetting)(nil), // 9: bytebase.store.WorkspaceApprovalSetting+ (*SMTPMailDeliverySetting)(nil), // 10: bytebase.store.SMTPMailDeliverySetting+ (*SchemaTemplateSetting)(nil), // 11: bytebase.store.SchemaTemplateSetting+ (*DataClassificationSetting)(nil), // 12: bytebase.store.DataClassificationSetting+ (*SemanticTypeSetting)(nil), // 13: bytebase.store.SemanticTypeSetting+ (*Algorithm)(nil), // 14: bytebase.store.Algorithm+ (*AppIMSetting)(nil), // 15: bytebase.store.AppIMSetting+ (*MaximumSQLResultSizeSetting)(nil), // 16: bytebase.store.MaximumSQLResultSizeSetting+ (*SCIMSetting)(nil), // 17: bytebase.store.SCIMSetting+ (*PasswordRestrictionSetting)(nil), // 18: bytebase.store.PasswordRestrictionSetting+ (*AISetting)(nil), // 19: bytebase.store.AISetting+ (*EnvironmentSetting)(nil), // 20: bytebase.store.EnvironmentSetting+ (*WorkspaceApprovalSetting_Rule)(nil), // 21: bytebase.store.WorkspaceApprovalSetting.Rule+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 22: bytebase.store.SchemaTemplateSetting.FieldTemplate+ (*SchemaTemplateSetting_ColumnType)(nil), // 23: bytebase.store.SchemaTemplateSetting.ColumnType+ (*SchemaTemplateSetting_TableTemplate)(nil), // 24: bytebase.store.SchemaTemplateSetting.TableTemplate+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 25: bytebase.store.DataClassificationSetting.DataClassificationConfig+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ nil, // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ (*SemanticTypeSetting_SemanticType)(nil), // 29: bytebase.store.SemanticTypeSetting.SemanticType+ (*Algorithm_FullMask)(nil), // 30: bytebase.store.Algorithm.FullMask+ (*Algorithm_RangeMask)(nil), // 31: bytebase.store.Algorithm.RangeMask+ (*Algorithm_MD5Mask)(nil), // 32: bytebase.store.Algorithm.MD5Mask+ (*Algorithm_InnerOuterMask)(nil), // 33: bytebase.store.Algorithm.InnerOuterMask+ (*Algorithm_RangeMask_Slice)(nil), // 34: bytebase.store.Algorithm.RangeMask.Slice+ (*AppIMSetting_Slack)(nil), // 35: bytebase.store.AppIMSetting.Slack+ (*AppIMSetting_Feishu)(nil), // 36: bytebase.store.AppIMSetting.Feishu+ (*AppIMSetting_Wecom)(nil), // 37: bytebase.store.AppIMSetting.Wecom+ (*AppIMSetting_Lark)(nil), // 38: bytebase.store.AppIMSetting.Lark+ (*AppIMSetting_DingTalk)(nil), // 39: bytebase.store.AppIMSetting.DingTalk+ (*EnvironmentSetting_Environment)(nil), // 40: bytebase.store.EnvironmentSetting.Environment+ nil, // 41: bytebase.store.EnvironmentSetting.Environment.TagsEntry+ (*durationpb.Duration)(nil), // 42: google.protobuf.Duration+ (*v1alpha1.Expr)(nil), // 43: google.api.expr.v1alpha1.Expr+ (*ApprovalTemplate)(nil), // 44: bytebase.store.ApprovalTemplate+ (*expr.Expr)(nil), // 45: google.type.Expr+ (Engine)(0), // 46: bytebase.store.Engine+ (*ColumnMetadata)(nil), // 47: bytebase.store.ColumnMetadata+ (*ColumnCatalog)(nil), // 48: bytebase.store.ColumnCatalog+ (*TableMetadata)(nil), // 49: bytebase.store.TableMetadata+ (*TableCatalog)(nil), // 50: bytebase.store.TableCatalog}var file_store_setting_proto_depIdxs = []int32{- 39, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration+ 42, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration7, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.Announcement- 39, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration+ 42, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration0, // 3: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.DatabaseChangeMode1, // 4: bytebase.store.Announcement.level:type_name -> bytebase.store.Announcement.AlertLevel- 20, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule+ 21, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule2, // 6: bytebase.store.SMTPMailDeliverySetting.encryption:type_name -> bytebase.store.SMTPMailDeliverySetting.Encryption3, // 7: bytebase.store.SMTPMailDeliverySetting.authentication:type_name -> bytebase.store.SMTPMailDeliverySetting.Authentication- 21, // 8: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate- 22, // 9: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType- 23, // 10: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate- 24, // 11: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig- 28, // 12: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType- 29, // 13: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask- 30, // 14: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask- 31, // 15: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask- 32, // 16: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask- 34, // 17: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack- 35, // 18: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu- 36, // 19: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom- 37, // 20: bytebase.store.AppIMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark- 38, // 21: bytebase.store.AppIMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk- 39, // 22: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration+ 22, // 8: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate+ 23, // 9: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType+ 24, // 10: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate+ 25, // 11: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig+ 29, // 12: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType+ 30, // 13: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask+ 31, // 14: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask+ 32, // 15: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask+ 33, // 16: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask+ 35, // 17: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack+ 36, // 18: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu+ 37, // 19: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom+ 38, // 20: bytebase.store.AppIMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark+ 39, // 21: bytebase.store.AppIMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk+ 42, // 22: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration5, // 23: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider- 40, // 24: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.Expr- 41, // 25: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate- 42, // 26: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 43, // 27: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine- 44, // 28: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata- 45, // 29: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog- 43, // 30: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine- 43, // 31: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine- 46, // 32: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata- 47, // 33: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog- 25, // 34: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level- 27, // 35: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- 26, // 36: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification- 14, // 37: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm- 33, // 38: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice- 4, // 39: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType- 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+ 40, // 24: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment+ 43, // 25: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.Expr+ 44, // 26: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate+ 45, // 27: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 46, // 28: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine+ 47, // 29: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata+ 48, // 30: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog+ 46, // 31: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine+ 46, // 32: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine+ 49, // 33: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata+ 50, // 34: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog+ 26, // 35: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ 28, // 36: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 27, // 37: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ 14, // 38: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm+ 34, // 39: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice+ 4, // 40: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType+ 41, // 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}func init() { file_store_setting_proto_init() }@@ -2837,14 +2968,14 @@ func file_store_setting_proto_init() {(*Algorithm_Md5Mask)(nil),(*Algorithm_InnerOuterMask_)(nil),}- file_store_setting_proto_msgTypes[20].OneofWrappers = []any{}+ file_store_setting_proto_msgTypes[21].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: 6,- NumMessages: 33,+ NumMessages: 36,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.goindex d9622eb18b..90f862a988 100644--- a/proto/generated-go/v1/setting_service.pb.go+++ b/proto/generated-go/v1/setting_service.pb.go@@ -704,6 +704,7 @@ type Value struct {// *Value_ScimSetting// *Value_PasswordRestrictionSetting// *Value_AiSetting+ // *Value_EnvironmentSettingValue isValue_Value `protobuf_oneof:"value"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache@@ -872,6 +873,15 @@ func (x *Value) GetAiSetting() *AISetting {return nil}+func (x *Value) GetEnvironmentSetting() *EnvironmentSetting {+ if x != nil {+ if x, ok := x.Value.(*Value_EnvironmentSetting); ok {+ return x.EnvironmentSetting+ }+ }+ return nil+}+type isValue_Value interface {isValue_Value()}@@ -933,6 +943,10 @@ type Value_AiSetting struct {AiSetting *AISetting `protobuf:"bytes,16,opt,name=ai_setting,json=aiSetting,proto3,oneof"`}+type Value_EnvironmentSetting struct {+ EnvironmentSetting *EnvironmentSetting `protobuf:"bytes,17,opt,name=environment_setting,json=environmentSetting,proto3,oneof"`+}+func (*Value_StringValue) isValue_Value() {}func (*Value_SmtpMailDeliverySettingValue) isValue_Value() {}@@ -961,6 +975,8 @@ func (*Value_PasswordRestrictionSetting) isValue_Value() {}func (*Value_AiSetting) isValue_Value() {}+func (*Value_EnvironmentSetting) isValue_Value() {}+type SMTPMailDeliverySettingValue struct {state protoimpl.MessageState `protogen:"open.v1"`// The SMTP server address.@@ -2084,6 +2100,51 @@ func (x *AISetting) GetVersion() string {return ""}+// TODO(p0ny): implement.+type EnvironmentSetting struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Environments []*EnvironmentSetting_Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *EnvironmentSetting) Reset() {+ *x = EnvironmentSetting{}+ mi := &file_v1_setting_service_proto_msgTypes[22]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *EnvironmentSetting) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*EnvironmentSetting) ProtoMessage() {}++func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {+ mi := &file_v1_setting_service_proto_msgTypes[22]+ 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 EnvironmentSetting.ProtoReflect.Descriptor instead.+func (*EnvironmentSetting) Descriptor() ([]byte, []int) {+ return file_v1_setting_service_proto_rawDescGZIP(), []int{22}+}++func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {+ if x != nil {+ return x.Environments+ }+ return nil+}+type AppIMSetting_Slack struct {state protoimpl.MessageState `protogen:"open.v1"`Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`@@ -2094,7 +2155,7 @@ type AppIMSetting_Slack struct {func (x *AppIMSetting_Slack) Reset() {*x = AppIMSetting_Slack{}- mi := &file_v1_setting_service_proto_msgTypes[22]+ mi := &file_v1_setting_service_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2106,7 +2167,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[22]+ mi := &file_v1_setting_service_proto_msgTypes[23]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2147,7 +2208,7 @@ type AppIMSetting_Feishu struct {func (x *AppIMSetting_Feishu) Reset() {*x = AppIMSetting_Feishu{}- mi := &file_v1_setting_service_proto_msgTypes[23]+ mi := &file_v1_setting_service_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2159,7 +2220,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[23]+ mi := &file_v1_setting_service_proto_msgTypes[24]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2208,7 +2269,7 @@ type AppIMSetting_Wecom struct {func (x *AppIMSetting_Wecom) Reset() {*x = AppIMSetting_Wecom{}- mi := &file_v1_setting_service_proto_msgTypes[24]+ mi := &file_v1_setting_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2220,7 +2281,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[24]+ mi := &file_v1_setting_service_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2275,7 +2336,7 @@ type AppIMSetting_Lark struct {func (x *AppIMSetting_Lark) Reset() {*x = AppIMSetting_Lark{}- mi := &file_v1_setting_service_proto_msgTypes[25]+ mi := &file_v1_setting_service_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2287,7 +2348,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[25]+ mi := &file_v1_setting_service_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2336,7 +2397,7 @@ type AppIMSetting_DingTalk struct {func (x *AppIMSetting_DingTalk) Reset() {*x = AppIMSetting_DingTalk{}- mi := &file_v1_setting_service_proto_msgTypes[26]+ mi := &file_v1_setting_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2348,7 +2409,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[26]+ mi := &file_v1_setting_service_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2402,7 +2463,7 @@ type WorkspaceApprovalSetting_Rule struct {func (x *WorkspaceApprovalSetting_Rule) Reset() {*x = WorkspaceApprovalSetting_Rule{}- mi := &file_v1_setting_service_proto_msgTypes[27]+ mi := &file_v1_setting_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2414,7 +2475,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[27]+ mi := &file_v1_setting_service_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2457,7 +2518,7 @@ type SchemaTemplateSetting_FieldTemplate struct {func (x *SchemaTemplateSetting_FieldTemplate) Reset() {*x = SchemaTemplateSetting_FieldTemplate{}- mi := &file_v1_setting_service_proto_msgTypes[28]+ mi := &file_v1_setting_service_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2469,7 +2530,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[28]+ mi := &file_v1_setting_service_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2531,7 +2592,7 @@ type SchemaTemplateSetting_ColumnType struct {func (x *SchemaTemplateSetting_ColumnType) Reset() {*x = SchemaTemplateSetting_ColumnType{}- mi := &file_v1_setting_service_proto_msgTypes[29]+ mi := &file_v1_setting_service_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2543,7 +2604,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[29]+ mi := &file_v1_setting_service_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2593,7 +2654,7 @@ type SchemaTemplateSetting_TableTemplate struct {func (x *SchemaTemplateSetting_TableTemplate) Reset() {*x = SchemaTemplateSetting_TableTemplate{}- mi := &file_v1_setting_service_proto_msgTypes[30]+ mi := &file_v1_setting_service_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2605,7 +2666,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[30]+ mi := &file_v1_setting_service_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2677,7 +2738,7 @@ type DataClassificationSetting_DataClassificationConfig struct {func (x *DataClassificationSetting_DataClassificationConfig) Reset() {*x = DataClassificationSetting_DataClassificationConfig{}- mi := &file_v1_setting_service_proto_msgTypes[31]+ mi := &file_v1_setting_service_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2689,7 +2750,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[31]+ mi := &file_v1_setting_service_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2751,7 +2812,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {*x = DataClassificationSetting_DataClassificationConfig_Level{}- mi := &file_v1_setting_service_proto_msgTypes[32]+ mi := &file_v1_setting_service_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2763,7 +2824,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[32]+ mi := &file_v1_setting_service_proto_msgTypes[33]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2813,7 +2874,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification strucfunc (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}- mi := &file_v1_setting_service_proto_msgTypes[33]+ mi := &file_v1_setting_service_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2825,7 +2886,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[33]+ mi := &file_v1_setting_service_proto_msgTypes[34]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2884,7 +2945,7 @@ type SemanticTypeSetting_SemanticType struct {func (x *SemanticTypeSetting_SemanticType) Reset() {*x = SemanticTypeSetting_SemanticType{}- mi := &file_v1_setting_service_proto_msgTypes[35]+ mi := &file_v1_setting_service_proto_msgTypes[36]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2896,7 +2957,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[35]+ mi := &file_v1_setting_service_proto_msgTypes[36]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2951,7 +3012,7 @@ type Algorithm_FullMask struct {func (x *Algorithm_FullMask) Reset() {*x = Algorithm_FullMask{}- mi := &file_v1_setting_service_proto_msgTypes[36]+ mi := &file_v1_setting_service_proto_msgTypes[37]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2963,7 +3024,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[36]+ mi := &file_v1_setting_service_proto_msgTypes[37]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2997,7 +3058,7 @@ type Algorithm_RangeMask struct {func (x *Algorithm_RangeMask) Reset() {*x = Algorithm_RangeMask{}- mi := &file_v1_setting_service_proto_msgTypes[37]+ mi := &file_v1_setting_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3009,7 +3070,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[37]+ mi := &file_v1_setting_service_proto_msgTypes[38]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3042,7 +3103,7 @@ type Algorithm_MD5Mask struct {func (x *Algorithm_MD5Mask) Reset() {*x = Algorithm_MD5Mask{}- mi := &file_v1_setting_service_proto_msgTypes[38]+ mi := &file_v1_setting_service_proto_msgTypes[39]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3054,7 +3115,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[38]+ mi := &file_v1_setting_service_proto_msgTypes[39]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3089,7 +3150,7 @@ type Algorithm_InnerOuterMask struct {func (x *Algorithm_InnerOuterMask) Reset() {*x = Algorithm_InnerOuterMask{}- mi := &file_v1_setting_service_proto_msgTypes[39]+ mi := &file_v1_setting_service_proto_msgTypes[40]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3101,7 +3162,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[39]+ mi := &file_v1_setting_service_proto_msgTypes[40]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3159,7 +3220,7 @@ type Algorithm_RangeMask_Slice struct {func (x *Algorithm_RangeMask_Slice) Reset() {*x = Algorithm_RangeMask_Slice{}- mi := &file_v1_setting_service_proto_msgTypes[40]+ mi := &file_v1_setting_service_proto_msgTypes[41]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3171,7 +3232,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[40]+ mi := &file_v1_setting_service_proto_msgTypes[41]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3208,6 +3269,78 @@ func (x *Algorithm_RangeMask_Slice) GetSubstitution() string {return ""}+type EnvironmentSetting_Environment struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // The display name of the environment.+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ // The resource id of the environment.+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][0-9]-/.+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`+ Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *EnvironmentSetting_Environment) Reset() {+ *x = EnvironmentSetting_Environment{}+ mi := &file_v1_setting_service_proto_msgTypes[42]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *EnvironmentSetting_Environment) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*EnvironmentSetting_Environment) ProtoMessage() {}++func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {+ mi := &file_v1_setting_service_proto_msgTypes[42]+ 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 EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.+func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {+ return file_v1_setting_service_proto_rawDescGZIP(), []int{22, 0}+}++func (x *EnvironmentSetting_Environment) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *EnvironmentSetting_Environment) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *EnvironmentSetting_Environment) GetTags() map[string]string {+ if x != nil {+ return x.Tags+ }+ return nil+}++func (x *EnvironmentSetting_Environment) GetColor() string {+ if x != nil {+ return x.Color+ }+ return ""+}+var File_v1_setting_service_proto protoreflect.FileDescriptorconst file_v1_setting_service_proto_rawDesc = "" +@@ -3234,8 +3367,7 @@ const file_v1_setting_service_proto_rawDesc = "" +"\aSetting\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +"\x05value\x18\x02 \x01(\v2\x12.bytebase.v1.ValueR\x05value:-\xeaA*\n" +- "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\xba\n" +- "\n" ++ "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\x8e\v\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" +@@ -3252,7 +3384,8 @@ const file_v1_setting_service_proto_rawDesc = "" +"\fscim_setting\x18\x0e \x01(\v2\x18.bytebase.v1.SCIMSettingH\x00R\vscimSetting\x12k\n" +"\x1cpassword_restriction_setting\x18\x0f \x01(\v2'.bytebase.v1.PasswordRestrictionSettingH\x00R\x1apasswordRestrictionSetting\x127\n" +"\n" +- "ai_setting\x18\x10 \x01(\v2\x16.bytebase.v1.AISettingH\x00R\taiSettingB\a\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" +@@ -3460,7 +3593,17 @@ const file_v1_setting_service_proto_rawDesc = "" +"\x06CLAUDE\x10\x02\x12\n" +"\n" +"\x06GEMINI\x10\x03\x12\x10\n" +- "\fAZURE_OPENAI\x10\x04*T\n" ++ "\fAZURE_OPENAI\x10\x04\"\xb5\x02\n" ++ "\x12EnvironmentSetting\x12O\n" ++ "\fenvironments\x18\x01 \x03(\v2+.bytebase.v1.EnvironmentSetting.EnvironmentR\fenvironments\x1a\xcd\x01\n" ++ "\vEnvironment\x12\x14\n" ++ "\x05title\x18\x01 \x01(\tR\x05title\x12\x0e\n" ++ "\x02id\x18\x02 \x01(\tR\x02id\x12I\n" ++ "\x04tags\x18\x03 \x03(\v25.bytebase.v1.EnvironmentSetting.Environment.TagsEntryR\x04tags\x12\x14\n" ++ "\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*T\n" +"\x12DatabaseChangeMode\x12$\n" +" DATABASE_CHANGE_MODE_UNSPECIFIED\x10\x00\x12\f\n" +"\bPIPELINE\x10\x01\x12\n" +@@ -3485,7 +3628,7 @@ func file_v1_setting_service_proto_rawDescGZIP() []byte {}var file_v1_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)-var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 41)+var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 44)var file_v1_setting_service_proto_goTypes = []any{(DatabaseChangeMode)(0), // 0: bytebase.v1.DatabaseChangeMode(SMTPMailDeliverySettingValue_Encryption)(0), // 1: bytebase.v1.SMTPMailDeliverySettingValue.Encryption@@ -3515,42 +3658,45 @@ var file_v1_setting_service_proto_goTypes = []any{(*SCIMSetting)(nil), // 25: bytebase.v1.SCIMSetting(*PasswordRestrictionSetting)(nil), // 26: bytebase.v1.PasswordRestrictionSetting(*AISetting)(nil), // 27: bytebase.v1.AISetting- (*AppIMSetting_Slack)(nil), // 28: bytebase.v1.AppIMSetting.Slack- (*AppIMSetting_Feishu)(nil), // 29: bytebase.v1.AppIMSetting.Feishu- (*AppIMSetting_Wecom)(nil), // 30: bytebase.v1.AppIMSetting.Wecom- (*AppIMSetting_Lark)(nil), // 31: bytebase.v1.AppIMSetting.Lark- (*AppIMSetting_DingTalk)(nil), // 32: bytebase.v1.AppIMSetting.DingTalk- (*WorkspaceApprovalSetting_Rule)(nil), // 33: bytebase.v1.WorkspaceApprovalSetting.Rule- (*SchemaTemplateSetting_FieldTemplate)(nil), // 34: bytebase.v1.SchemaTemplateSetting.FieldTemplate- (*SchemaTemplateSetting_ColumnType)(nil), // 35: bytebase.v1.SchemaTemplateSetting.ColumnType- (*SchemaTemplateSetting_TableTemplate)(nil), // 36: bytebase.v1.SchemaTemplateSetting.TableTemplate- (*DataClassificationSetting_DataClassificationConfig)(nil), // 37: bytebase.v1.DataClassificationSetting.DataClassificationConfig- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 38: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 39: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification- nil, // 40: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- (*SemanticTypeSetting_SemanticType)(nil), // 41: bytebase.v1.SemanticTypeSetting.SemanticType- (*Algorithm_FullMask)(nil), // 42: bytebase.v1.Algorithm.FullMask- (*Algorithm_RangeMask)(nil), // 43: bytebase.v1.Algorithm.RangeMask- (*Algorithm_MD5Mask)(nil), // 44: bytebase.v1.Algorithm.MD5Mask- (*Algorithm_InnerOuterMask)(nil), // 45: bytebase.v1.Algorithm.InnerOuterMask- (*Algorithm_RangeMask_Slice)(nil), // 46: bytebase.v1.Algorithm.RangeMask.Slice- (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask- (*durationpb.Duration)(nil), // 48: google.protobuf.Duration- (*timestamppb.Timestamp)(nil), // 49: google.protobuf.Timestamp- (PlanType)(0), // 50: bytebase.v1.PlanType- (*ApprovalTemplate)(nil), // 51: bytebase.v1.ApprovalTemplate- (*expr.Expr)(nil), // 52: google.type.Expr- (Engine)(0), // 53: bytebase.v1.Engine- (*ColumnMetadata)(nil), // 54: bytebase.v1.ColumnMetadata- (*ColumnCatalog)(nil), // 55: bytebase.v1.ColumnCatalog- (*TableMetadata)(nil), // 56: bytebase.v1.TableMetadata- (*TableCatalog)(nil), // 57: bytebase.v1.TableCatalog+ (*EnvironmentSetting)(nil), // 28: bytebase.v1.EnvironmentSetting+ (*AppIMSetting_Slack)(nil), // 29: bytebase.v1.AppIMSetting.Slack+ (*AppIMSetting_Feishu)(nil), // 30: bytebase.v1.AppIMSetting.Feishu+ (*AppIMSetting_Wecom)(nil), // 31: bytebase.v1.AppIMSetting.Wecom+ (*AppIMSetting_Lark)(nil), // 32: bytebase.v1.AppIMSetting.Lark+ (*AppIMSetting_DingTalk)(nil), // 33: bytebase.v1.AppIMSetting.DingTalk+ (*WorkspaceApprovalSetting_Rule)(nil), // 34: bytebase.v1.WorkspaceApprovalSetting.Rule+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 35: bytebase.v1.SchemaTemplateSetting.FieldTemplate+ (*SchemaTemplateSetting_ColumnType)(nil), // 36: bytebase.v1.SchemaTemplateSetting.ColumnType+ (*SchemaTemplateSetting_TableTemplate)(nil), // 37: bytebase.v1.SchemaTemplateSetting.TableTemplate+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 38: bytebase.v1.DataClassificationSetting.DataClassificationConfig+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 39: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 40: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ nil, // 41: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ (*SemanticTypeSetting_SemanticType)(nil), // 42: bytebase.v1.SemanticTypeSetting.SemanticType+ (*Algorithm_FullMask)(nil), // 43: bytebase.v1.Algorithm.FullMask+ (*Algorithm_RangeMask)(nil), // 44: bytebase.v1.Algorithm.RangeMask+ (*Algorithm_MD5Mask)(nil), // 45: bytebase.v1.Algorithm.MD5Mask+ (*Algorithm_InnerOuterMask)(nil), // 46: bytebase.v1.Algorithm.InnerOuterMask+ (*Algorithm_RangeMask_Slice)(nil), // 47: bytebase.v1.Algorithm.RangeMask.Slice+ (*EnvironmentSetting_Environment)(nil), // 48: bytebase.v1.EnvironmentSetting.Environment+ nil, // 49: bytebase.v1.EnvironmentSetting.Environment.TagsEntry+ (*fieldmaskpb.FieldMask)(nil), // 50: google.protobuf.FieldMask+ (*durationpb.Duration)(nil), // 51: google.protobuf.Duration+ (*timestamppb.Timestamp)(nil), // 52: google.protobuf.Timestamp+ (PlanType)(0), // 53: bytebase.v1.PlanType+ (*ApprovalTemplate)(nil), // 54: bytebase.v1.ApprovalTemplate+ (*expr.Expr)(nil), // 55: google.type.Expr+ (Engine)(0), // 56: bytebase.v1.Engine+ (*ColumnMetadata)(nil), // 57: bytebase.v1.ColumnMetadata+ (*ColumnCatalog)(nil), // 58: bytebase.v1.ColumnCatalog+ (*TableMetadata)(nil), // 59: bytebase.v1.TableMetadata+ (*TableCatalog)(nil), // 60: bytebase.v1.TableCatalog}var file_v1_setting_service_proto_depIdxs = []int32{11, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting11, // 1: bytebase.v1.GetSettingResponse.setting:type_name -> bytebase.v1.Setting11, // 2: bytebase.v1.UpdateSettingRequest.setting:type_name -> bytebase.v1.Setting- 47, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask+ 50, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask12, // 4: bytebase.v1.Setting.value:type_name -> bytebase.v1.Value13, // 5: bytebase.v1.Value.smtp_mail_delivery_setting_value:type_name -> bytebase.v1.SMTPMailDeliverySettingValue14, // 6: bytebase.v1.Value.app_im_setting_value:type_name -> bytebase.v1.AppIMSetting@@ -3565,59 +3711,62 @@ var file_v1_setting_service_proto_depIdxs = []int32{25, // 15: bytebase.v1.Value.scim_setting:type_name -> bytebase.v1.SCIMSetting26, // 16: bytebase.v1.Value.password_restriction_setting:type_name -> bytebase.v1.PasswordRestrictionSetting27, // 17: bytebase.v1.Value.ai_setting:type_name -> bytebase.v1.AISetting- 1, // 18: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption- 2, // 19: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication- 28, // 20: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack- 29, // 21: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu- 30, // 22: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom- 31, // 23: bytebase.v1.AppIMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark- 32, // 24: bytebase.v1.AppIMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk- 48, // 25: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration- 17, // 26: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement- 48, // 27: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration- 0, // 28: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode- 3, // 29: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel- 33, // 30: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule- 34, // 31: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate- 35, // 32: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType- 36, // 33: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate- 49, // 34: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp- 49, // 35: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp- 50, // 36: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType- 37, // 37: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig- 41, // 38: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType- 42, // 39: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask- 43, // 40: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask- 44, // 41: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask- 45, // 42: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask- 48, // 43: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration- 5, // 44: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider- 51, // 45: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate- 52, // 46: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 53, // 47: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine- 54, // 48: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata- 55, // 49: bytebase.v1.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.v1.ColumnCatalog- 53, // 50: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine- 53, // 51: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine- 56, // 52: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata- 57, // 53: bytebase.v1.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.v1.TableCatalog- 38, // 54: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level- 40, // 55: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry- 39, // 56: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification- 23, // 57: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm- 46, // 58: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice- 4, // 59: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType- 6, // 60: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest- 8, // 61: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest- 10, // 62: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest- 7, // 63: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse- 11, // 64: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting- 11, // 65: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting- 63, // [63:66] is the sub-list for method output_type- 60, // [60:63] is the sub-list for method input_type- 60, // [60:60] is the sub-list for extension type_name- 60, // [60:60] is the sub-list for extension extendee- 0, // [0:60] is the sub-list for field type_name+ 28, // 18: bytebase.v1.Value.environment_setting:type_name -> bytebase.v1.EnvironmentSetting+ 1, // 19: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption+ 2, // 20: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication+ 29, // 21: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack+ 30, // 22: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu+ 31, // 23: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom+ 32, // 24: bytebase.v1.AppIMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark+ 33, // 25: bytebase.v1.AppIMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk+ 51, // 26: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration+ 17, // 27: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement+ 51, // 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+ 3, // 30: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel+ 34, // 31: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule+ 35, // 32: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate+ 36, // 33: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType+ 37, // 34: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate+ 52, // 35: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp+ 52, // 36: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp+ 53, // 37: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType+ 38, // 38: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig+ 42, // 39: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType+ 43, // 40: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask+ 44, // 41: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask+ 45, // 42: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask+ 46, // 43: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask+ 51, // 44: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration+ 5, // 45: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider+ 48, // 46: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment+ 54, // 47: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate+ 55, // 48: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 56, // 49: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine+ 57, // 50: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata+ 58, // 51: bytebase.v1.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.v1.ColumnCatalog+ 56, // 52: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine+ 56, // 53: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine+ 59, // 54: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata+ 60, // 55: bytebase.v1.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.v1.TableCatalog+ 39, // 56: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ 41, // 57: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 40, // 58: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ 23, // 59: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm+ 47, // 60: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice+ 4, // 61: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType+ 49, // 62: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry+ 6, // 63: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest+ 8, // 64: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest+ 10, // 65: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest+ 7, // 66: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse+ 11, // 67: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting+ 11, // 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}func init() { file_v1_setting_service_proto_init() }@@ -3646,6 +3795,7 @@ func file_v1_setting_service_proto_init() {(*Value_ScimSetting)(nil),(*Value_PasswordRestrictionSetting)(nil),(*Value_AiSetting)(nil),+ (*Value_EnvironmentSetting)(nil),}file_v1_setting_service_proto_msgTypes[7].OneofWrappers = []any{}file_v1_setting_service_proto_msgTypes[17].OneofWrappers = []any{@@ -3654,14 +3804,14 @@ func file_v1_setting_service_proto_init() {(*Algorithm_Md5Mask)(nil),(*Algorithm_InnerOuterMask_)(nil),}- file_v1_setting_service_proto_msgTypes[33].OneofWrappers = []any{}+ file_v1_setting_service_proto_msgTypes[34].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: 6,- NumMessages: 41,+ NumMessages: 44,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/setting.proto b/proto/store/setting.protoindex 8b7f7cf56c..7507f11d1e 100644--- a/proto/store/setting.proto+++ b/proto/store/setting.proto@@ -349,3 +349,18 @@ message AISetting {string model = 5;string version = 6;}++message EnvironmentSetting {+ repeated Environment environments = 1;++ message Environment {+ // The display name of the environment.+ string title = 1;+ // The resource id of the environment.+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][0-9]-/.+ string id = 2;+ map<string, string> tags = 3;+ string color = 4;+ }+}diff --git a/proto/v1/setting_service.proto b/proto/v1/setting_service.protoindex 4318a049c4..00c85ee562 100644--- a/proto/v1/setting_service.proto+++ b/proto/v1/setting_service.proto@@ -135,6 +135,7 @@ message Value {SCIMSetting scim_setting = 14;PasswordRestrictionSetting password_restriction_setting = 15;AISetting ai_setting = 16;+ EnvironmentSetting environment_setting = 17;}}@@ -493,3 +494,19 @@ message AISetting {string model = 5;string version = 6;}++// TODO(p0ny): implement.+message EnvironmentSetting {+ repeated Environment environments = 1;++ message Environment {+ // The display name of the environment.+ string title = 1;+ // The resource id of the environment.+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][0-9]-/.+ string id = 2;+ map<string, string> tags = 3;+ string color = 4;+ }+}