Skip to content

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

refactor: should use common component (#19877)

ecmadao394598f898f9
diff --git a/frontend/src/plugins/agent/logic/tools/gen/openapi-index.ts b/frontend/src/plugins/agent/logic/tools/gen/openapi-index.ts
new file mode 100644
index 0000000000..7fbd98d9bf
--- /dev/null
+++ b/frontend/src/plugins/agent/logic/tools/gen/openapi-index.ts
@@ -0,0 +1,14141 @@
+// Auto-generated from openapi.yaml. DO NOT EDIT manually.
+// Run 'pnpm --dir frontend run generate:openapi-index' to regenerate.
+
+export interface EndpointInfo {
+ operationId: string;
+ path: string;
+ service: string;
+ method: string;
+ summary: string;
+ description: string;
+ requestSchemaRef: string;
+ responseSchemaRef: string;
+}
+
+export interface PropertyInfo {
+ name: string;
+ type: string;
+ description?: string;
+ required?: boolean;
+}
+
+export interface SchemaInfo {
+ type: "object" | "enum";
+ description: string;
+ properties?: PropertyInfo[];
+ values?: string[];
+}
+
+export const endpoints: EndpointInfo[] = [
+ {
+ operationId: "bytebase.v1.AIService.Chat",
+ path: "/bytebase.v1.AIService/Chat",
+ service: "AIService",
+ method: "Chat",
+ summary: "Chat",
+ description:
+ "Chat sends a conversation with tool definitions to the configured AI provider\n and returns the AI response.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.AIChatRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.AIChatResponse",
+ },
+ {
+ operationId: "bytebase.v1.AccessGrantService.ActivateAccessGrant",
+ path: "/bytebase.v1.AccessGrantService/ActivateAccessGrant",
+ service: "AccessGrantService",
+ method: "ActivateAccessGrant",
+ summary: "ActivateAccessGrant",
+ description: "Activates a pending access grant.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ActivateAccessGrantRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.AccessGrant",
+ },
+ {
+ operationId: "bytebase.v1.AccessGrantService.CreateAccessGrant",
+ path: "/bytebase.v1.AccessGrantService/CreateAccessGrant",
+ service: "AccessGrantService",
+ method: "CreateAccessGrant",
+ summary: "CreateAccessGrant",
+ description: "Creates an access grant.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateAccessGrantRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.AccessGrant",
+ },
+ {
+ operationId: "bytebase.v1.AccessGrantService.GetAccessGrant",
+ path: "/bytebase.v1.AccessGrantService/GetAccessGrant",
+ service: "AccessGrantService",
+ method: "GetAccessGrant",
+ summary: "GetAccessGrant",
+ description: "Gets an access grant by name.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetAccessGrantRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.AccessGrant",
+ },
+ {
+ operationId: "bytebase.v1.AccessGrantService.ListAccessGrants",
+ path: "/bytebase.v1.AccessGrantService/ListAccessGrants",
+ service: "AccessGrantService",
+ method: "ListAccessGrants",
+ summary: "ListAccessGrants",
+ description: "Lists access grants in a project.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListAccessGrantsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListAccessGrantsResponse",
+ },
+ {
+ operationId: "bytebase.v1.AccessGrantService.RevokeAccessGrant",
+ path: "/bytebase.v1.AccessGrantService/RevokeAccessGrant",
+ service: "AccessGrantService",
+ method: "RevokeAccessGrant",
+ summary: "RevokeAccessGrant",
+ description: "Revokes an active access grant.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.RevokeAccessGrantRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.AccessGrant",
+ },
+ {
+ operationId: "bytebase.v1.AccessGrantService.SearchMyAccessGrants",
+ path: "/bytebase.v1.AccessGrantService/SearchMyAccessGrants",
+ service: "AccessGrantService",
+ method: "SearchMyAccessGrants",
+ summary: "SearchMyAccessGrants",
+ description: "Searches access grants created by the caller.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchMyAccessGrantsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchMyAccessGrantsResponse",
+ },
+ {
+ operationId: "bytebase.v1.ActuatorService.DeleteCache",
+ path: "/bytebase.v1.ActuatorService/DeleteCache",
+ service: "ActuatorService",
+ method: "DeleteCache",
+ summary: "DeleteCache",
+ description:
+ "Clears the system cache to force data refresh.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteCacheRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.ActuatorService.GetActuatorInfo",
+ path: "/bytebase.v1.ActuatorService/GetActuatorInfo",
+ service: "ActuatorService",
+ method: "GetActuatorInfo",
+ summary: "GetActuatorInfo",
+ description:
+ "Gets system information and health status of the Bytebase instance.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetActuatorInfoRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ActuatorInfo",
+ },
+ {
+ operationId: "bytebase.v1.ActuatorService.GetWorkspaceActuatorInfo",
+ path: "/bytebase.v1.ActuatorService/GetWorkspaceActuatorInfo",
+ service: "ActuatorService",
+ method: "GetWorkspaceActuatorInfo",
+ summary: "GetWorkspaceActuatorInfo",
+ description:
+ "Gets workspace-scoped actuator info. Requires authentication.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetWorkspaceActuatorInfoRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ActuatorInfo",
+ },
+ {
+ operationId: "bytebase.v1.ActuatorService.SetupSample",
+ path: "/bytebase.v1.ActuatorService/SetupSample",
+ service: "ActuatorService",
+ method: "SetupSample",
+ summary: "SetupSample",
+ description:
+ "Sets up sample data for demonstration and testing purposes.\n Permissions required: bb.projects.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SetupSampleRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.AuditLogService.ExportAuditLogs",
+ path: "/bytebase.v1.AuditLogService/ExportAuditLogs",
+ service: "AuditLogService",
+ method: "ExportAuditLogs",
+ summary: "ExportAuditLogs",
+ description:
+ "Exports audit logs in a specified format for external analysis.\n Permissions required: bb.auditLogs.export",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ExportAuditLogsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ExportAuditLogsResponse",
+ },
+ {
+ operationId: "bytebase.v1.AuditLogService.SearchAuditLogs",
+ path: "/bytebase.v1.AuditLogService/SearchAuditLogs",
+ service: "AuditLogService",
+ method: "SearchAuditLogs",
+ summary: "SearchAuditLogs",
+ description:
+ "Searches audit logs with optional filtering and pagination.\n Permissions required: bb.auditLogs.search",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SearchAuditLogsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchAuditLogsResponse",
+ },
+ {
+ operationId: "bytebase.v1.AuthService.ExchangeToken",
+ path: "/bytebase.v1.AuthService/ExchangeToken",
+ service: "AuthService",
+ method: "ExchangeToken",
+ summary: "ExchangeToken",
+ description:
+ "Exchanges an external OIDC token for a Bytebase access token.\n Used by CI/CD pipelines with Workload Identity Federation.\n Permissions required: None (validates via OIDC token)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ExchangeTokenRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ExchangeTokenResponse",
+ },
+ {
+ operationId: "bytebase.v1.AuthService.Login",
+ path: "/bytebase.v1.AuthService/Login",
+ service: "AuthService",
+ method: "Login",
+ summary: "Login",
+ description:
+ "Authenticates a user and returns access tokens.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.LoginRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.LoginResponse",
+ },
+ {
+ operationId: "bytebase.v1.AuthService.Logout",
+ path: "/bytebase.v1.AuthService/Logout",
+ service: "AuthService",
+ method: "Logout",
+ summary: "Logout",
+ description:
+ "Logs out the current user session.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.LogoutRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.AuthService.Refresh",
+ path: "/bytebase.v1.AuthService/Refresh",
+ service: "AuthService",
+ method: "Refresh",
+ summary: "Refresh",
+ description:
+ "Refreshes the access token using the refresh token cookie.\n Permissions required: None (validates via refresh token cookie)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.RefreshRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.RefreshResponse",
+ },
+ {
+ operationId: "bytebase.v1.AuthService.Signup",
+ path: "/bytebase.v1.AuthService/Signup",
+ service: "AuthService",
+ method: "Signup",
+ summary: "Signup",
+ description:
+ "Registers a new user account. Creates a principal and assigns a workspace:\n - If the user's email was pre-invited to a workspace, joins that workspace.\n - Otherwise, creates a new workspace with the user as admin.\n Returns access tokens so the user is logged in immediately after signup.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SignupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.LoginResponse",
+ },
+ {
+ operationId: "bytebase.v1.AuthService.SwitchWorkspace",
+ path: "/bytebase.v1.AuthService/SwitchWorkspace",
+ service: "AuthService",
+ method: "SwitchWorkspace",
+ summary: "SwitchWorkspace",
+ description:
+ "Switches the current user's active workspace and issues new tokens.\n The user must be a member of the target workspace.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SwitchWorkspaceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.LoginResponse",
+ },
+ {
+ operationId: "bytebase.v1.CelService.BatchDeparse",
+ path: "/bytebase.v1.CelService/BatchDeparse",
+ service: "CelService",
+ method: "BatchDeparse",
+ summary: "BatchDeparse",
+ description:
+ "Converts multiple CEL AST representations back into expression strings.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.BatchDeparseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.BatchDeparseResponse",
+ },
+ {
+ operationId: "bytebase.v1.CelService.BatchParse",
+ path: "/bytebase.v1.CelService/BatchParse",
+ service: "CelService",
+ method: "BatchParse",
+ summary: "BatchParse",
+ description:
+ "Parses multiple CEL expression strings into AST representations.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.BatchParseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.BatchParseResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseCatalogService.GetDatabaseCatalog",
+ path: "/bytebase.v1.DatabaseCatalogService/GetDatabaseCatalog",
+ service: "DatabaseCatalogService",
+ method: "GetDatabaseCatalog",
+ summary: "GetDatabaseCatalog",
+ description:
+ "Gets the catalog metadata for a database.\n Permissions required: bb.databaseCatalogs.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetDatabaseCatalogRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseCatalog",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseCatalogService.UpdateDatabaseCatalog",
+ path: "/bytebase.v1.DatabaseCatalogService/UpdateDatabaseCatalog",
+ service: "DatabaseCatalogService",
+ method: "UpdateDatabaseCatalog",
+ summary: "UpdateDatabaseCatalog",
+ description:
+ "Updates catalog metadata such as classifications and labels.\n Permissions required: bb.databaseCatalogs.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateDatabaseCatalogRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseCatalog",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseGroupService.CreateDatabaseGroup",
+ path: "/bytebase.v1.DatabaseGroupService/CreateDatabaseGroup",
+ service: "DatabaseGroupService",
+ method: "CreateDatabaseGroup",
+ summary: "CreateDatabaseGroup",
+ description:
+ "Creates a new database group.\n Permissions required: bb.databaseGroups.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateDatabaseGroupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseGroup",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseGroupService.DeleteDatabaseGroup",
+ path: "/bytebase.v1.DatabaseGroupService/DeleteDatabaseGroup",
+ service: "DatabaseGroupService",
+ method: "DeleteDatabaseGroup",
+ summary: "DeleteDatabaseGroup",
+ description:
+ "Deletes a database group.\n Permissions required: bb.databaseGroups.delete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.DeleteDatabaseGroupRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseGroupService.GetDatabaseGroup",
+ path: "/bytebase.v1.DatabaseGroupService/GetDatabaseGroup",
+ service: "DatabaseGroupService",
+ method: "GetDatabaseGroup",
+ summary: "GetDatabaseGroup",
+ description:
+ "Gets a database group by name.\n Permissions required: bb.databaseGroups.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetDatabaseGroupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseGroup",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseGroupService.ListDatabaseGroups",
+ path: "/bytebase.v1.DatabaseGroupService/ListDatabaseGroups",
+ service: "DatabaseGroupService",
+ method: "ListDatabaseGroups",
+ summary: "ListDatabaseGroups",
+ description:
+ "Lists database groups in a project.\n Permissions required: bb.databaseGroups.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListDatabaseGroupsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListDatabaseGroupsResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseGroupService.UpdateDatabaseGroup",
+ path: "/bytebase.v1.DatabaseGroupService/UpdateDatabaseGroup",
+ service: "DatabaseGroupService",
+ method: "UpdateDatabaseGroup",
+ summary: "UpdateDatabaseGroup",
+ description:
+ "Updates a database group.\n Permissions required: bb.databaseGroups.update\n When allow_missing=true, also requires: bb.databaseGroups.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateDatabaseGroupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseGroup",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.BatchGetDatabases",
+ path: "/bytebase.v1.DatabaseService/BatchGetDatabases",
+ service: "DatabaseService",
+ method: "BatchGetDatabases",
+ summary: "BatchGetDatabases",
+ description:
+ "Retrieves multiple databases by their names.\n Permissions required: bb.databases.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchGetDatabasesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchGetDatabasesResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.BatchSyncDatabases",
+ path: "/bytebase.v1.DatabaseService/BatchSyncDatabases",
+ service: "DatabaseService",
+ method: "BatchSyncDatabases",
+ summary: "BatchSyncDatabases",
+ description:
+ "Synchronizes multiple databases in a single batch operation.\n Permissions required: bb.databases.sync",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchSyncDatabasesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchSyncDatabasesResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.BatchUpdateDatabases",
+ path: "/bytebase.v1.DatabaseService/BatchUpdateDatabases",
+ service: "DatabaseService",
+ method: "BatchUpdateDatabases",
+ summary: "BatchUpdateDatabases",
+ description:
+ "Updates multiple databases in a single batch operation.\n Permissions required: bb.databases.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateDatabasesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateDatabasesResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.DiffSchema",
+ path: "/bytebase.v1.DatabaseService/DiffSchema",
+ service: "DatabaseService",
+ method: "DiffSchema",
+ summary: "DiffSchema",
+ description:
+ "Compares and generates migration statements between two schemas.\n Permissions required: bb.databases.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DiffSchemaRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DiffSchemaResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.GetChangelog",
+ path: "/bytebase.v1.DatabaseService/GetChangelog",
+ service: "DatabaseService",
+ method: "GetChangelog",
+ summary: "GetChangelog",
+ description:
+ "Retrieves a specific changelog entry.\n Permissions required: bb.changelogs.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetChangelogRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Changelog",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.GetDatabase",
+ path: "/bytebase.v1.DatabaseService/GetDatabase",
+ service: "DatabaseService",
+ method: "GetDatabase",
+ summary: "GetDatabase",
+ description:
+ "Retrieves a database by name.\n Permissions required: bb.databases.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetDatabaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Database",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.GetDatabaseMetadata",
+ path: "/bytebase.v1.DatabaseService/GetDatabaseMetadata",
+ service: "DatabaseService",
+ method: "GetDatabaseMetadata",
+ summary: "GetDatabaseMetadata",
+ description:
+ "Retrieves database metadata including tables, columns, and indexes.\n Permissions required: bb.databases.getSchema",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetDatabaseMetadataRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseMetadata",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.GetDatabaseSDLSchema",
+ path: "/bytebase.v1.DatabaseService/GetDatabaseSDLSchema",
+ service: "DatabaseService",
+ method: "GetDatabaseSDLSchema",
+ summary: "GetDatabaseSDLSchema",
+ description:
+ "Retrieves database schema in SDL (Schema Definition Language) format.\n Permissions required: bb.databases.getSchema",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetDatabaseSDLSchemaRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseSDLSchema",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.GetDatabaseSchema",
+ path: "/bytebase.v1.DatabaseService/GetDatabaseSchema",
+ service: "DatabaseService",
+ method: "GetDatabaseSchema",
+ summary: "GetDatabaseSchema",
+ description:
+ "Retrieves database schema as DDL statements.\n Permissions required: bb.databases.getSchema",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetDatabaseSchemaRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DatabaseSchema",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.GetSchemaString",
+ path: "/bytebase.v1.DatabaseService/GetSchemaString",
+ service: "DatabaseService",
+ method: "GetSchemaString",
+ summary: "GetSchemaString",
+ description:
+ "Generates schema DDL for a database object.\n Permissions required: bb.databases.getSchema",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetSchemaStringRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.GetSchemaStringResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.ListChangelogs",
+ path: "/bytebase.v1.DatabaseService/ListChangelogs",
+ service: "DatabaseService",
+ method: "ListChangelogs",
+ summary: "ListChangelogs",
+ description:
+ "Lists migration history for a database.\n Permissions required: bb.changelogs.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListChangelogsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListChangelogsResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.ListDatabases",
+ path: "/bytebase.v1.DatabaseService/ListDatabases",
+ service: "DatabaseService",
+ method: "ListDatabases",
+ summary: "ListDatabases",
+ description:
+ "Lists databases in a project, instance, or workspace.\n Permissions required: bb.projects.get (for project parent), bb.databases.list (for workspace parent), or bb.instances.get (for instance parent)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListDatabasesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListDatabasesResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.SyncDatabase",
+ path: "/bytebase.v1.DatabaseService/SyncDatabase",
+ service: "DatabaseService",
+ method: "SyncDatabase",
+ summary: "SyncDatabase",
+ description:
+ "Synchronizes database schema from the instance.\n Permissions required: bb.databases.sync",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SyncDatabaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.SyncDatabaseResponse",
+ },
+ {
+ operationId: "bytebase.v1.DatabaseService.UpdateDatabase",
+ path: "/bytebase.v1.DatabaseService/UpdateDatabase",
+ service: "DatabaseService",
+ method: "UpdateDatabase",
+ summary: "UpdateDatabase",
+ description:
+ "Updates database properties such as labels and project assignment.\n Permissions required: bb.databases.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateDatabaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Database",
+ },
+ {
+ operationId: "bytebase.v1.GroupService.BatchGetGroups",
+ path: "/bytebase.v1.GroupService/BatchGetGroups",
+ service: "GroupService",
+ method: "BatchGetGroups",
+ summary: "BatchGetGroups",
+ description:
+ "Gets multiple groups in a single request.\n Group members or users with bb.groups.get permission can get the group.\n Permissions required: bb.groups.get OR caller is the group member",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.BatchGetGroupsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchGetGroupsResponse",
+ },
+ {
+ operationId: "bytebase.v1.GroupService.CreateGroup",
+ path: "/bytebase.v1.GroupService/CreateGroup",
+ service: "GroupService",
+ method: "CreateGroup",
+ summary: "CreateGroup",
+ description:
+ "Creates a new group.\n Permissions required: bb.groups.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateGroupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Group",
+ },
+ {
+ operationId: "bytebase.v1.GroupService.DeleteGroup",
+ path: "/bytebase.v1.GroupService/DeleteGroup",
+ service: "GroupService",
+ method: "DeleteGroup",
+ summary: "DeleteGroup",
+ description:
+ "Deletes a group. Group owners or users with bb.groups.delete permission can delete.\n Permissions required: bb.groups.delete OR caller is group owner",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteGroupRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.GroupService.GetGroup",
+ path: "/bytebase.v1.GroupService/GetGroup",
+ service: "GroupService",
+ method: "GetGroup",
+ summary: "GetGroup",
+ description:
+ "Gets a group by name.\n Group members or users with bb.groups.get permission can get the group.\n Permissions required: bb.groups.get OR caller is the group member",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetGroupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Group",
+ },
+ {
+ operationId: "bytebase.v1.GroupService.ListGroups",
+ path: "/bytebase.v1.GroupService/ListGroups",
+ service: "GroupService",
+ method: "ListGroups",
+ summary: "ListGroups",
+ description:
+ "Lists all groups in the workspace.\n Permissions required: bb.groups.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListGroupsRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListGroupsResponse",
+ },
+ {
+ operationId: "bytebase.v1.GroupService.UpdateGroup",
+ path: "/bytebase.v1.GroupService/UpdateGroup",
+ service: "GroupService",
+ method: "UpdateGroup",
+ summary: "UpdateGroup",
+ description:
+ "Updates a group. Group owners or users with bb.groups.update permission can update.\n Permissions required: bb.groups.update OR caller is group owner\n When allow_missing=true, also requires: bb.groups.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateGroupRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Group",
+ },
+ {
+ operationId: "bytebase.v1.IdentityProviderService.CreateIdentityProvider",
+ path: "/bytebase.v1.IdentityProviderService/CreateIdentityProvider",
+ service: "IdentityProviderService",
+ method: "CreateIdentityProvider",
+ summary: "CreateIdentityProvider",
+ description:
+ "Creates a new identity provider.\n Permissions required: bb.identityProviders.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateIdentityProviderRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IdentityProvider",
+ },
+ {
+ operationId: "bytebase.v1.IdentityProviderService.DeleteIdentityProvider",
+ path: "/bytebase.v1.IdentityProviderService/DeleteIdentityProvider",
+ service: "IdentityProviderService",
+ method: "DeleteIdentityProvider",
+ summary: "DeleteIdentityProvider",
+ description:
+ "Deletes an identity provider.\n Permissions required: bb.identityProviders.delete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.DeleteIdentityProviderRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.IdentityProviderService.GetIdentityProvider",
+ path: "/bytebase.v1.IdentityProviderService/GetIdentityProvider",
+ service: "IdentityProviderService",
+ method: "GetIdentityProvider",
+ summary: "GetIdentityProvider",
+ description:
+ "Gets an identity provider by name.\n Permissions required: bb.identityProviders.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetIdentityProviderRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IdentityProvider",
+ },
+ {
+ operationId: "bytebase.v1.IdentityProviderService.ListIdentityProviders",
+ path: "/bytebase.v1.IdentityProviderService/ListIdentityProviders",
+ service: "IdentityProviderService",
+ method: "ListIdentityProviders",
+ summary: "ListIdentityProviders",
+ description:
+ "Lists all configured identity providers (public endpoint for login page).\n Permissions required: None",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListIdentityProvidersRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListIdentityProvidersResponse",
+ },
+ {
+ operationId: "bytebase.v1.IdentityProviderService.TestIdentityProvider",
+ path: "/bytebase.v1.IdentityProviderService/TestIdentityProvider",
+ service: "IdentityProviderService",
+ method: "TestIdentityProvider",
+ summary: "TestIdentityProvider",
+ description:
+ "Tests the connection and configuration of an identity provider.\n Permissions required: bb.identityProviders.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.TestIdentityProviderRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.TestIdentityProviderResponse",
+ },
+ {
+ operationId: "bytebase.v1.IdentityProviderService.UpdateIdentityProvider",
+ path: "/bytebase.v1.IdentityProviderService/UpdateIdentityProvider",
+ service: "IdentityProviderService",
+ method: "UpdateIdentityProvider",
+ summary: "UpdateIdentityProvider",
+ description:
+ "Updates an identity provider.\n Permissions required: bb.identityProviders.update\n When allow_missing=true, also requires: bb.identityProviders.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateIdentityProviderRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IdentityProvider",
+ },
+ {
+ operationId: "bytebase.v1.InstanceRoleService.ListInstanceRoles",
+ path: "/bytebase.v1.InstanceRoleService/ListInstanceRoles",
+ service: "InstanceRoleService",
+ method: "ListInstanceRoles",
+ summary: "ListInstanceRoles",
+ description:
+ "Lists all database roles in an instance.\n Permissions required: bb.instanceRoles.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListInstanceRolesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListInstanceRolesResponse",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.AddDataSource",
+ path: "/bytebase.v1.InstanceService/AddDataSource",
+ service: "InstanceService",
+ method: "AddDataSource",
+ summary: "AddDataSource",
+ description:
+ "Adds a read-only data source to an instance.\n Permissions required: bb.instances.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.AddDataSourceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.BatchSyncInstances",
+ path: "/bytebase.v1.InstanceService/BatchSyncInstances",
+ service: "InstanceService",
+ method: "BatchSyncInstances",
+ summary: "BatchSyncInstances",
+ description:
+ "Syncs multiple instances in a single request.\n Permissions required: bb.instances.sync",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchSyncInstancesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchSyncInstancesResponse",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.BatchUpdateInstances",
+ path: "/bytebase.v1.InstanceService/BatchUpdateInstances",
+ service: "InstanceService",
+ method: "BatchUpdateInstances",
+ summary: "BatchUpdateInstances",
+ description:
+ "Updates multiple instances in a single request.\n Permissions required: bb.instances.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateInstancesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateInstancesResponse",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.CreateInstance",
+ path: "/bytebase.v1.InstanceService/CreateInstance",
+ service: "InstanceService",
+ method: "CreateInstance",
+ summary: "CreateInstance",
+ description:
+ "Creates a new database instance.\n Permissions required: bb.instances.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateInstanceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.DeleteInstance",
+ path: "/bytebase.v1.InstanceService/DeleteInstance",
+ service: "InstanceService",
+ method: "DeleteInstance",
+ summary: "DeleteInstance",
+ description:
+ "Deletes or soft-deletes a database instance.\n Permissions required: bb.instances.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteInstanceRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.GetInstance",
+ path: "/bytebase.v1.InstanceService/GetInstance",
+ service: "InstanceService",
+ method: "GetInstance",
+ summary: "GetInstance",
+ description:
+ "Gets a database instance by name.\n Permissions required: bb.instances.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetInstanceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.ListInstanceDatabase",
+ path: "/bytebase.v1.InstanceService/ListInstanceDatabase",
+ service: "InstanceService",
+ method: "ListInstanceDatabase",
+ summary: "ListInstanceDatabase",
+ description:
+ "Lists all databases within an instance without creating them.\n Permissions required: bb.instances.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListInstanceDatabaseRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListInstanceDatabaseResponse",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.ListInstances",
+ path: "/bytebase.v1.InstanceService/ListInstances",
+ service: "InstanceService",
+ method: "ListInstances",
+ summary: "ListInstances",
+ description:
+ "Lists all database instances.\n Permissions required: bb.instances.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListInstancesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListInstancesResponse",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.RemoveDataSource",
+ path: "/bytebase.v1.InstanceService/RemoveDataSource",
+ service: "InstanceService",
+ method: "RemoveDataSource",
+ summary: "RemoveDataSource",
+ description:
+ "Removes a read-only data source from an instance.\n Permissions required: bb.instances.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.RemoveDataSourceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.SyncInstance",
+ path: "/bytebase.v1.InstanceService/SyncInstance",
+ service: "InstanceService",
+ method: "SyncInstance",
+ summary: "SyncInstance",
+ description:
+ "Syncs database schemas and metadata from an instance.\n Permissions required: bb.instances.sync",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SyncInstanceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.SyncInstanceResponse",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.UndeleteInstance",
+ path: "/bytebase.v1.InstanceService/UndeleteInstance",
+ service: "InstanceService",
+ method: "UndeleteInstance",
+ summary: "UndeleteInstance",
+ description:
+ "Restores a soft-deleted database instance.\n Permissions required: bb.instances.undelete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UndeleteInstanceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.UpdateDataSource",
+ path: "/bytebase.v1.InstanceService/UpdateDataSource",
+ service: "InstanceService",
+ method: "UpdateDataSource",
+ summary: "UpdateDataSource",
+ description:
+ "Updates a data source configuration.\n Permissions required: bb.instances.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateDataSourceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.InstanceService.UpdateInstance",
+ path: "/bytebase.v1.InstanceService/UpdateInstance",
+ service: "InstanceService",
+ method: "UpdateInstance",
+ summary: "UpdateInstance",
+ description:
+ "Updates a database instance.\n Permissions required: bb.instances.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateInstanceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Instance",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.ApproveIssue",
+ path: "/bytebase.v1.IssueService/ApproveIssue",
+ service: "IssueService",
+ method: "ApproveIssue",
+ summary: "ApproveIssue",
+ description:
+ "Approves an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step.\n Permissions required: None (determined by approval flow)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ApproveIssueRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Issue",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.BatchUpdateIssuesStatus",
+ path: "/bytebase.v1.IssueService/BatchUpdateIssuesStatus",
+ service: "IssueService",
+ method: "BatchUpdateIssuesStatus",
+ summary: "BatchUpdateIssuesStatus",
+ description:
+ "Updates the status of multiple issues in a single operation.\n Permissions required: bb.issues.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateIssuesStatusRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateIssuesStatusResponse",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.CreateIssue",
+ path: "/bytebase.v1.IssueService/CreateIssue",
+ service: "IssueService",
+ method: "CreateIssue",
+ summary: "CreateIssue",
+ description:
+ "Creates a new issue for database changes or tasks.\n Permissions required: bb.issues.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateIssueRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Issue",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.CreateIssueComment",
+ path: "/bytebase.v1.IssueService/CreateIssueComment",
+ service: "IssueService",
+ method: "CreateIssueComment",
+ summary: "CreateIssueComment",
+ description:
+ "Adds a comment to an issue.\n Permissions required: bb.issueComments.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateIssueCommentRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IssueComment",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.GetIssue",
+ path: "/bytebase.v1.IssueService/GetIssue",
+ service: "IssueService",
+ method: "GetIssue",
+ summary: "GetIssue",
+ description:
+ "Retrieves an issue by name.\n Permissions required: bb.issues.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetIssueRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Issue",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.ListIssueComments",
+ path: "/bytebase.v1.IssueService/ListIssueComments",
+ service: "IssueService",
+ method: "ListIssueComments",
+ summary: "ListIssueComments",
+ description:
+ "Lists comments on an issue.\n Permissions required: bb.issueComments.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListIssueCommentsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListIssueCommentsResponse",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.ListIssues",
+ path: "/bytebase.v1.IssueService/ListIssues",
+ service: "IssueService",
+ method: "ListIssues",
+ summary: "ListIssues",
+ description:
+ "Lists issues in a project.\n Permissions required: bb.issues.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListIssuesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListIssuesResponse",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.RejectIssue",
+ path: "/bytebase.v1.IssueService/RejectIssue",
+ service: "IssueService",
+ method: "RejectIssue",
+ summary: "RejectIssue",
+ description:
+ "Rejects an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step.\n Permissions required: None (determined by approval flow)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.RejectIssueRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Issue",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.RequestIssue",
+ path: "/bytebase.v1.IssueService/RequestIssue",
+ service: "IssueService",
+ method: "RequestIssue",
+ summary: "RequestIssue",
+ description:
+ "Requests changes on an issue. Access determined by approval flow configuration - caller must be a designated approver for the current approval step.\n Permissions required: None (determined by approval flow)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.RequestIssueRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Issue",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.SearchIssues",
+ path: "/bytebase.v1.IssueService/SearchIssues",
+ service: "IssueService",
+ method: "SearchIssues",
+ summary: "SearchIssues",
+ description:
+ "Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.\n Permissions required: bb.issues.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SearchIssuesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.SearchIssuesResponse",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.UpdateIssue",
+ path: "/bytebase.v1.IssueService/UpdateIssue",
+ service: "IssueService",
+ method: "UpdateIssue",
+ summary: "UpdateIssue",
+ description:
+ "Updates an issue's properties such as title, description, or labels.\n Permissions required: bb.issues.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateIssueRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Issue",
+ },
+ {
+ operationId: "bytebase.v1.IssueService.UpdateIssueComment",
+ path: "/bytebase.v1.IssueService/UpdateIssueComment",
+ service: "IssueService",
+ method: "UpdateIssueComment",
+ summary: "UpdateIssueComment",
+ description:
+ "Updates an existing issue comment.\n Permissions required: bb.issueComments.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateIssueCommentRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IssueComment",
+ },
+ {
+ operationId: "bytebase.v1.OrgPolicyService.CreatePolicy",
+ path: "/bytebase.v1.OrgPolicyService/CreatePolicy",
+ service: "OrgPolicyService",
+ method: "CreatePolicy",
+ summary: "CreatePolicy",
+ description:
+ "Creates a new organizational policy.\n Permissions required: bb.policies.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreatePolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Policy",
+ },
+ {
+ operationId: "bytebase.v1.OrgPolicyService.DeletePolicy",
+ path: "/bytebase.v1.OrgPolicyService/DeletePolicy",
+ service: "OrgPolicyService",
+ method: "DeletePolicy",
+ summary: "DeletePolicy",
+ description:
+ "Deletes an organizational policy.\n Permissions required: bb.policies.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeletePolicyRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.OrgPolicyService.GetPolicy",
+ path: "/bytebase.v1.OrgPolicyService/GetPolicy",
+ service: "OrgPolicyService",
+ method: "GetPolicy",
+ summary: "GetPolicy",
+ description:
+ "Retrieves a policy by name.\n Permissions required: bb.policies.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetPolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Policy",
+ },
+ {
+ operationId: "bytebase.v1.OrgPolicyService.ListPolicies",
+ path: "/bytebase.v1.OrgPolicyService/ListPolicies",
+ service: "OrgPolicyService",
+ method: "ListPolicies",
+ summary: "ListPolicies",
+ description:
+ "Lists policies at a specified resource level.\n Permissions required: bb.policies.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListPoliciesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListPoliciesResponse",
+ },
+ {
+ operationId: "bytebase.v1.OrgPolicyService.UpdatePolicy",
+ path: "/bytebase.v1.OrgPolicyService/UpdatePolicy",
+ service: "OrgPolicyService",
+ method: "UpdatePolicy",
+ summary: "UpdatePolicy",
+ description:
+ "Updates an existing organizational policy.\n Permissions required: bb.policies.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdatePolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Policy",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.CancelPlanCheckRun",
+ path: "/bytebase.v1.PlanService/CancelPlanCheckRun",
+ service: "PlanService",
+ method: "CancelPlanCheckRun",
+ summary: "CancelPlanCheckRun",
+ description:
+ "Cancels the plan check run for a deployment plan.\n Permissions required: bb.planCheckRuns.run",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CancelPlanCheckRunRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.CancelPlanCheckRunResponse",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.CreatePlan",
+ path: "/bytebase.v1.PlanService/CreatePlan",
+ service: "PlanService",
+ method: "CreatePlan",
+ summary: "CreatePlan",
+ description:
+ "Creates a new deployment plan.\n Permissions required: bb.plans.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreatePlanRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Plan",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.GetPlan",
+ path: "/bytebase.v1.PlanService/GetPlan",
+ service: "PlanService",
+ method: "GetPlan",
+ summary: "GetPlan",
+ description:
+ "Retrieves a deployment plan by name.\n Permissions required: bb.plans.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetPlanRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Plan",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.GetPlanCheckRun",
+ path: "/bytebase.v1.PlanService/GetPlanCheckRun",
+ service: "PlanService",
+ method: "GetPlanCheckRun",
+ summary: "GetPlanCheckRun",
+ description:
+ "Gets the plan check run for a deployment plan.\n Permissions required: bb.planCheckRuns.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetPlanCheckRunRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.PlanCheckRun",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.ListPlans",
+ path: "/bytebase.v1.PlanService/ListPlans",
+ service: "PlanService",
+ method: "ListPlans",
+ summary: "ListPlans",
+ description:
+ "Lists deployment plans in a project.\n Permissions required: bb.plans.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListPlansRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListPlansResponse",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.RunPlanChecks",
+ path: "/bytebase.v1.PlanService/RunPlanChecks",
+ service: "PlanService",
+ method: "RunPlanChecks",
+ summary: "RunPlanChecks",
+ description:
+ "Executes validation checks on a deployment plan.\n Permissions required: bb.planCheckRuns.run",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.RunPlanChecksRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.RunPlanChecksResponse",
+ },
+ {
+ operationId: "bytebase.v1.PlanService.UpdatePlan",
+ path: "/bytebase.v1.PlanService/UpdatePlan",
+ service: "PlanService",
+ method: "UpdatePlan",
+ summary: "UpdatePlan",
+ description:
+ "UpdatePlan updates the plan.\n The plan creator and the user with bb.plans.update permission on the project can update the plan.\n Permissions required: bb.plans.update (or creator)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdatePlanRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Plan",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.AddWebhook",
+ path: "/bytebase.v1.ProjectService/AddWebhook",
+ service: "ProjectService",
+ method: "AddWebhook",
+ summary: "AddWebhook",
+ description:
+ "Adds a webhook to a project for notifications.\n Permissions required: bb.projects.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.AddWebhookRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.BatchDeleteProjects",
+ path: "/bytebase.v1.ProjectService/BatchDeleteProjects",
+ service: "ProjectService",
+ method: "BatchDeleteProjects",
+ summary: "BatchDeleteProjects",
+ description:
+ "Deletes multiple projects in a single operation.\n Permissions required: bb.projects.delete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchDeleteProjectsRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.BatchGetProjects",
+ path: "/bytebase.v1.ProjectService/BatchGetProjects",
+ service: "ProjectService",
+ method: "BatchGetProjects",
+ summary: "BatchGetProjects",
+ description:
+ "BatchGetProjects retrieves multiple projects by their names.\n Permissions required: bb.projects.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchGetProjectsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchGetProjectsResponse",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.CreateProject",
+ path: "/bytebase.v1.ProjectService/CreateProject",
+ service: "ProjectService",
+ method: "CreateProject",
+ summary: "CreateProject",
+ description:
+ "Creates a new project in the workspace.\n Permissions required: bb.projects.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateProjectRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.DeleteProject",
+ path: "/bytebase.v1.ProjectService/DeleteProject",
+ service: "ProjectService",
+ method: "DeleteProject",
+ summary: "DeleteProject",
+ description:
+ "Deletes (soft-delete or purge) a project.\n Permissions required: bb.projects.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteProjectRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.GetIamPolicy",
+ path: "/bytebase.v1.ProjectService/GetIamPolicy",
+ service: "ProjectService",
+ method: "GetIamPolicy",
+ summary: "GetIamPolicy",
+ description:
+ "Retrieves the IAM policy for a project.\n Permissions required: bb.projects.getIamPolicy",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetIamPolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IamPolicy",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.GetProject",
+ path: "/bytebase.v1.ProjectService/GetProject",
+ service: "ProjectService",
+ method: "GetProject",
+ summary: "GetProject",
+ description:
+ 'GetProject retrieves a project by name.\n Users with "bb.projects.get" permission on the workspace or the project owner can access this method.\n Permissions required: bb.projects.get',
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetProjectRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.ListProjects",
+ path: "/bytebase.v1.ProjectService/ListProjects",
+ service: "ProjectService",
+ method: "ListProjects",
+ summary: "ListProjects",
+ description:
+ "Lists all projects in the workspace with optional filtering.\n Permissions required: bb.projects.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListProjectsRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListProjectsResponse",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.RemoveWebhook",
+ path: "/bytebase.v1.ProjectService/RemoveWebhook",
+ service: "ProjectService",
+ method: "RemoveWebhook",
+ summary: "RemoveWebhook",
+ description:
+ "Removes a webhook from a project.\n Permissions required: bb.projects.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.RemoveWebhookRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.SearchProjects",
+ path: "/bytebase.v1.ProjectService/SearchProjects",
+ service: "ProjectService",
+ method: "SearchProjects",
+ summary: "SearchProjects",
+ description:
+ "Searches for projects with advanced filtering capabilities.\n Permissions required: bb.projects.get (or project-level bb.projects.get for specific projects)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SearchProjectsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchProjectsResponse",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.SetIamPolicy",
+ path: "/bytebase.v1.ProjectService/SetIamPolicy",
+ service: "ProjectService",
+ method: "SetIamPolicy",
+ summary: "SetIamPolicy",
+ description:
+ "Sets the IAM policy for a project.\n Permissions required: bb.projects.setIamPolicy",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SetIamPolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IamPolicy",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.TestWebhook",
+ path: "/bytebase.v1.ProjectService/TestWebhook",
+ service: "ProjectService",
+ method: "TestWebhook",
+ summary: "TestWebhook",
+ description:
+ "Tests a webhook by sending a test notification.\n Permissions required: bb.projects.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.TestWebhookRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.TestWebhookResponse",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.UndeleteProject",
+ path: "/bytebase.v1.ProjectService/UndeleteProject",
+ service: "ProjectService",
+ method: "UndeleteProject",
+ summary: "UndeleteProject",
+ description:
+ "Restores a soft-deleted project.\n Permissions required: bb.projects.undelete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UndeleteProjectRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.UpdateProject",
+ path: "/bytebase.v1.ProjectService/UpdateProject",
+ service: "ProjectService",
+ method: "UpdateProject",
+ summary: "UpdateProject",
+ description:
+ "Updates an existing project's properties.\n Permissions required: bb.projects.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateProjectRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ProjectService.UpdateWebhook",
+ path: "/bytebase.v1.ProjectService/UpdateWebhook",
+ service: "ProjectService",
+ method: "UpdateWebhook",
+ summary: "UpdateWebhook",
+ description:
+ "Updates an existing webhook configuration.\n Permissions required: bb.projects.update",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateWebhookRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Project",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.CheckRelease",
+ path: "/bytebase.v1.ReleaseService/CheckRelease",
+ service: "ReleaseService",
+ method: "CheckRelease",
+ summary: "CheckRelease",
+ description:
+ "Validates a release by dry-running checks on target databases.\n Permissions required: bb.releases.check",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CheckReleaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.CheckReleaseResponse",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.CreateRelease",
+ path: "/bytebase.v1.ReleaseService/CreateRelease",
+ service: "ReleaseService",
+ method: "CreateRelease",
+ summary: "CreateRelease",
+ description:
+ "Creates a new release with SQL files.\n Permissions required: bb.releases.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateReleaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Release",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.DeleteRelease",
+ path: "/bytebase.v1.ReleaseService/DeleteRelease",
+ service: "ReleaseService",
+ method: "DeleteRelease",
+ summary: "DeleteRelease",
+ description:
+ "Deletes a release.\n Permissions required: bb.releases.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteReleaseRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.GetRelease",
+ path: "/bytebase.v1.ReleaseService/GetRelease",
+ service: "ReleaseService",
+ method: "GetRelease",
+ summary: "GetRelease",
+ description:
+ "Retrieves a release by name.\n Permissions required: bb.releases.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetReleaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Release",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.ListReleaseCategories",
+ path: "/bytebase.v1.ReleaseService/ListReleaseCategories",
+ service: "ReleaseService",
+ method: "ListReleaseCategories",
+ summary: "ListReleaseCategories",
+ description:
+ "Lists all unique categories in a project.\n Permissions required: bb.releases.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListReleaseCategoriesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListReleaseCategoriesResponse",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.ListReleases",
+ path: "/bytebase.v1.ReleaseService/ListReleases",
+ service: "ReleaseService",
+ method: "ListReleases",
+ summary: "ListReleases",
+ description:
+ "Lists releases in a project.\n Permissions required: bb.releases.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListReleasesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListReleasesResponse",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.UndeleteRelease",
+ path: "/bytebase.v1.ReleaseService/UndeleteRelease",
+ service: "ReleaseService",
+ method: "UndeleteRelease",
+ summary: "UndeleteRelease",
+ description:
+ "Restores a deleted release.\n Permissions required: bb.releases.undelete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UndeleteReleaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Release",
+ },
+ {
+ operationId: "bytebase.v1.ReleaseService.UpdateRelease",
+ path: "/bytebase.v1.ReleaseService/UpdateRelease",
+ service: "ReleaseService",
+ method: "UpdateRelease",
+ summary: "UpdateRelease",
+ description:
+ "Updates an existing release.\n Permissions required: bb.releases.update\n When allow_missing=true, also requires: bb.releases.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateReleaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Release",
+ },
+ {
+ operationId: "bytebase.v1.ReviewConfigService.CreateReviewConfig",
+ path: "/bytebase.v1.ReviewConfigService/CreateReviewConfig",
+ service: "ReviewConfigService",
+ method: "CreateReviewConfig",
+ summary: "CreateReviewConfig",
+ description:
+ "Creates a new SQL review configuration.\n Permissions required: bb.reviewConfigs.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateReviewConfigRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ReviewConfig",
+ },
+ {
+ operationId: "bytebase.v1.ReviewConfigService.DeleteReviewConfig",
+ path: "/bytebase.v1.ReviewConfigService/DeleteReviewConfig",
+ service: "ReviewConfigService",
+ method: "DeleteReviewConfig",
+ summary: "DeleteReviewConfig",
+ description:
+ "Deletes a SQL review configuration.\n Permissions required: bb.reviewConfigs.delete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.DeleteReviewConfigRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.ReviewConfigService.GetReviewConfig",
+ path: "/bytebase.v1.ReviewConfigService/GetReviewConfig",
+ service: "ReviewConfigService",
+ method: "GetReviewConfig",
+ summary: "GetReviewConfig",
+ description:
+ "Retrieves a SQL review configuration by name.\n Permissions required: bb.reviewConfigs.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetReviewConfigRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ReviewConfig",
+ },
+ {
+ operationId: "bytebase.v1.ReviewConfigService.ListReviewConfigs",
+ path: "/bytebase.v1.ReviewConfigService/ListReviewConfigs",
+ service: "ReviewConfigService",
+ method: "ListReviewConfigs",
+ summary: "ListReviewConfigs",
+ description:
+ "Lists all SQL review configurations.\n Permissions required: bb.reviewConfigs.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListReviewConfigsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListReviewConfigsResponse",
+ },
+ {
+ operationId: "bytebase.v1.ReviewConfigService.UpdateReviewConfig",
+ path: "/bytebase.v1.ReviewConfigService/UpdateReviewConfig",
+ service: "ReviewConfigService",
+ method: "UpdateReviewConfig",
+ summary: "UpdateReviewConfig",
+ description:
+ "Updates a SQL review configuration.\n Permissions required: bb.reviewConfigs.update\n When allow_missing=true, also requires: bb.reviewConfigs.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateReviewConfigRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ReviewConfig",
+ },
+ {
+ operationId: "bytebase.v1.RevisionService.BatchCreateRevisions",
+ path: "/bytebase.v1.RevisionService/BatchCreateRevisions",
+ service: "RevisionService",
+ method: "BatchCreateRevisions",
+ summary: "BatchCreateRevisions",
+ description:
+ "Creates multiple schema revisions in a single operation.\n Permissions required: bb.revisions.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchCreateRevisionsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchCreateRevisionsResponse",
+ },
+ {
+ operationId: "bytebase.v1.RevisionService.DeleteRevision",
+ path: "/bytebase.v1.RevisionService/DeleteRevision",
+ service: "RevisionService",
+ method: "DeleteRevision",
+ summary: "DeleteRevision",
+ description:
+ "Deletes a schema revision.\n Permissions required: bb.revisions.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteRevisionRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.RevisionService.GetRevision",
+ path: "/bytebase.v1.RevisionService/GetRevision",
+ service: "RevisionService",
+ method: "GetRevision",
+ summary: "GetRevision",
+ description:
+ "Retrieves a schema revision by name.\n Permissions required: bb.revisions.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetRevisionRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Revision",
+ },
+ {
+ operationId: "bytebase.v1.RevisionService.ListRevisions",
+ path: "/bytebase.v1.RevisionService/ListRevisions",
+ service: "RevisionService",
+ method: "ListRevisions",
+ summary: "ListRevisions",
+ description:
+ "Lists schema revisions for a database.\n Permissions required: bb.revisions.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListRevisionsRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListRevisionsResponse",
+ },
+ {
+ operationId: "bytebase.v1.RoleService.CreateRole",
+ path: "/bytebase.v1.RoleService/CreateRole",
+ service: "RoleService",
+ method: "CreateRole",
+ summary: "CreateRole",
+ description:
+ "Creates a new custom role.\n Permissions required: bb.roles.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateRoleRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Role",
+ },
+ {
+ operationId: "bytebase.v1.RoleService.DeleteRole",
+ path: "/bytebase.v1.RoleService/DeleteRole",
+ service: "RoleService",
+ method: "DeleteRole",
+ summary: "DeleteRole",
+ description:
+ "Deletes a custom role.\n Permissions required: bb.roles.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteRoleRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.RoleService.GetRole",
+ path: "/bytebase.v1.RoleService/GetRole",
+ service: "RoleService",
+ method: "GetRole",
+ summary: "GetRole",
+ description:
+ "Retrieves a role by name.\n Permissions required: bb.roles.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetRoleRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Role",
+ },
+ {
+ operationId: "bytebase.v1.RoleService.ListRoles",
+ path: "/bytebase.v1.RoleService/ListRoles",
+ service: "RoleService",
+ method: "ListRoles",
+ summary: "ListRoles",
+ description:
+ "Lists roles in the workspace.\n Permissions required: bb.roles.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListRolesRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListRolesResponse",
+ },
+ {
+ operationId: "bytebase.v1.RoleService.UpdateRole",
+ path: "/bytebase.v1.RoleService/UpdateRole",
+ service: "RoleService",
+ method: "UpdateRole",
+ summary: "UpdateRole",
+ description:
+ "Updates a role's properties.\n Permissions required: bb.roles.update\n When allow_missing=true, also requires: bb.roles.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateRoleRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Role",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.BatchCancelTaskRuns",
+ path: "/bytebase.v1.RolloutService/BatchCancelTaskRuns",
+ service: "RolloutService",
+ method: "BatchCancelTaskRuns",
+ summary: "BatchCancelTaskRuns",
+ description:
+ "Cancels multiple running task executions.\n Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchCancelTaskRunsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchCancelTaskRunsResponse",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.BatchRunTasks",
+ path: "/bytebase.v1.RolloutService/BatchRunTasks",
+ service: "RolloutService",
+ method: "BatchRunTasks",
+ summary: "BatchRunTasks",
+ description:
+ "Executes multiple tasks in a rollout stage.\n Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.BatchRunTasksRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.BatchRunTasksResponse",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.BatchSkipTasks",
+ path: "/bytebase.v1.RolloutService/BatchSkipTasks",
+ service: "RolloutService",
+ method: "BatchSkipTasks",
+ summary: "BatchSkipTasks",
+ description:
+ "Skips multiple tasks in a rollout stage.\n Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.BatchSkipTasksRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchSkipTasksResponse",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.CreateRollout",
+ path: "/bytebase.v1.RolloutService/CreateRollout",
+ service: "RolloutService",
+ method: "CreateRollout",
+ summary: "CreateRollout",
+ description:
+ "Creates a new rollout for a plan.\n Permissions required: bb.rollouts.create (or issue creator for data export issues)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateRolloutRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Rollout",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.GetRollout",
+ path: "/bytebase.v1.RolloutService/GetRollout",
+ service: "RolloutService",
+ method: "GetRollout",
+ summary: "GetRollout",
+ description:
+ "Retrieves a rollout by its plan name.\n Permissions required: bb.rollouts.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetRolloutRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Rollout",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.GetTaskRun",
+ path: "/bytebase.v1.RolloutService/GetTaskRun",
+ service: "RolloutService",
+ method: "GetTaskRun",
+ summary: "GetTaskRun",
+ description:
+ "Retrieves a task run by name.\n Permissions required: bb.taskRuns.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetTaskRunRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.TaskRun",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.GetTaskRunLog",
+ path: "/bytebase.v1.RolloutService/GetTaskRunLog",
+ service: "RolloutService",
+ method: "GetTaskRunLog",
+ summary: "GetTaskRunLog",
+ description:
+ "Retrieves execution logs for a task run.\n Permissions required: bb.taskRuns.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetTaskRunLogRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.TaskRunLog",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.GetTaskRunSession",
+ path: "/bytebase.v1.RolloutService/GetTaskRunSession",
+ service: "RolloutService",
+ method: "GetTaskRunSession",
+ summary: "GetTaskRunSession",
+ description:
+ "Retrieves database session information for a running task.\n Permissions required: bb.taskRuns.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetTaskRunSessionRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.TaskRunSession",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.ListRollouts",
+ path: "/bytebase.v1.RolloutService/ListRollouts",
+ service: "RolloutService",
+ method: "ListRollouts",
+ summary: "ListRollouts",
+ description:
+ "Lists rollouts in a project.\n Permissions required: bb.rollouts.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListRolloutsRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListRolloutsResponse",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.ListTaskRuns",
+ path: "/bytebase.v1.RolloutService/ListTaskRuns",
+ service: "RolloutService",
+ method: "ListTaskRuns",
+ summary: "ListTaskRuns",
+ description:
+ "Lists task run executions for a task.\n Permissions required: bb.taskRuns.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListTaskRunsRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListTaskRunsResponse",
+ },
+ {
+ operationId: "bytebase.v1.RolloutService.PreviewTaskRunRollback",
+ path: "/bytebase.v1.RolloutService/PreviewTaskRunRollback",
+ service: "RolloutService",
+ method: "PreviewTaskRunRollback",
+ summary: "PreviewTaskRunRollback",
+ description:
+ "Generates rollback SQL for a completed task run.\n Permissions required: bb.taskRuns.list",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.PreviewTaskRunRollbackRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.PreviewTaskRunRollbackResponse",
+ },
+ {
+ operationId: "bytebase.v1.SQLService.AICompletion",
+ path: "/bytebase.v1.SQLService/AICompletion",
+ service: "SQLService",
+ method: "AICompletion",
+ summary: "AICompletion",
+ description:
+ "Provides AI-powered SQL completion and generation.\n Permissions required: None (authenticated users only, requires AI to be enabled)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.AICompletionRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.AICompletionResponse",
+ },
+ {
+ operationId: "bytebase.v1.SQLService.DiffMetadata",
+ path: "/bytebase.v1.SQLService/DiffMetadata",
+ service: "SQLService",
+ method: "DiffMetadata",
+ summary: "DiffMetadata",
+ description:
+ "Computes schema differences between two database metadata.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DiffMetadataRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.DiffMetadataResponse",
+ },
+ {
+ operationId: "bytebase.v1.SQLService.Export",
+ path: "/bytebase.v1.SQLService/Export",
+ service: "SQLService",
+ method: "Export",
+ summary: "Export",
+ description:
+ "Exports query results to a file format.\n Permissions required: bb.databases.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ExportRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ExportResponse",
+ },
+ {
+ operationId: "bytebase.v1.SQLService.Query",
+ path: "/bytebase.v1.SQLService/Query",
+ service: "SQLService",
+ method: "Query",
+ summary: "Query",
+ description:
+ "Executes a read-only SQL query against a database.\n Permissions required: bb.databases.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.QueryRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.QueryResponse",
+ },
+ {
+ operationId: "bytebase.v1.SQLService.SearchQueryHistories",
+ path: "/bytebase.v1.SQLService/SearchQueryHistories",
+ service: "SQLService",
+ method: "SearchQueryHistories",
+ summary: "SearchQueryHistories",
+ description:
+ "SearchQueryHistories searches query histories for the caller.\n Permissions required: None (only returns caller's own query histories)",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchQueryHistoriesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchQueryHistoriesResponse",
+ },
+ {
+ operationId: "bytebase.v1.ServiceAccountService.CreateServiceAccount",
+ path: "/bytebase.v1.ServiceAccountService/CreateServiceAccount",
+ service: "ServiceAccountService",
+ method: "CreateServiceAccount",
+ summary: "CreateServiceAccount",
+ description:
+ "Creates a new service account.\n For workspace-level: parent is workspaces/{id}, permission bb.serviceAccounts.create on workspace.\n For project-level: parent is projects/{project}, permission bb.serviceAccounts.create on project.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateServiceAccountRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ServiceAccount",
+ },
+ {
+ operationId: "bytebase.v1.ServiceAccountService.DeleteServiceAccount",
+ path: "/bytebase.v1.ServiceAccountService/DeleteServiceAccount",
+ service: "ServiceAccountService",
+ method: "DeleteServiceAccount",
+ summary: "DeleteServiceAccount",
+ description:
+ "Deletes a service account.\n Permissions required: bb.serviceAccounts.delete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.DeleteServiceAccountRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.ServiceAccountService.GetServiceAccount",
+ path: "/bytebase.v1.ServiceAccountService/GetServiceAccount",
+ service: "ServiceAccountService",
+ method: "GetServiceAccount",
+ summary: "GetServiceAccount",
+ description:
+ "Gets a service account by name.\n Permissions required: bb.serviceAccounts.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetServiceAccountRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ServiceAccount",
+ },
+ {
+ operationId: "bytebase.v1.ServiceAccountService.ListServiceAccounts",
+ path: "/bytebase.v1.ServiceAccountService/ListServiceAccounts",
+ service: "ServiceAccountService",
+ method: "ListServiceAccounts",
+ summary: "ListServiceAccounts",
+ description:
+ "Lists service accounts.\n For workspace-level: parent is workspaces/{id}, permission bb.serviceAccounts.list on workspace.\n For project-level: parent is projects/{project}, permission bb.serviceAccounts.list on project.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListServiceAccountsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListServiceAccountsResponse",
+ },
+ {
+ operationId: "bytebase.v1.ServiceAccountService.UndeleteServiceAccount",
+ path: "/bytebase.v1.ServiceAccountService/UndeleteServiceAccount",
+ service: "ServiceAccountService",
+ method: "UndeleteServiceAccount",
+ summary: "UndeleteServiceAccount",
+ description:
+ "Restores a deleted service account.\n Permissions required: bb.serviceAccounts.undelete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UndeleteServiceAccountRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ServiceAccount",
+ },
+ {
+ operationId: "bytebase.v1.ServiceAccountService.UpdateServiceAccount",
+ path: "/bytebase.v1.ServiceAccountService/UpdateServiceAccount",
+ service: "ServiceAccountService",
+ method: "UpdateServiceAccount",
+ summary: "UpdateServiceAccount",
+ description:
+ "Updates a service account.\n Permissions required: bb.serviceAccounts.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateServiceAccountRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ServiceAccount",
+ },
+ {
+ operationId: "bytebase.v1.SettingService.GetSetting",
+ path: "/bytebase.v1.SettingService/GetSetting",
+ service: "SettingService",
+ method: "GetSetting",
+ summary: "GetSetting",
+ description:
+ "Retrieves a workspace setting by name.\n Permissions required: bb.settings.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetSettingRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Setting",
+ },
+ {
+ operationId: "bytebase.v1.SettingService.ListSettings",
+ path: "/bytebase.v1.SettingService/ListSettings",
+ service: "SettingService",
+ method: "ListSettings",
+ summary: "ListSettings",
+ description:
+ "Lists all workspace settings.\n Permissions required: bb.settings.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListSettingsRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListSettingsResponse",
+ },
+ {
+ operationId: "bytebase.v1.SettingService.UpdateSetting",
+ path: "/bytebase.v1.SettingService/UpdateSetting",
+ service: "SettingService",
+ method: "UpdateSetting",
+ summary: "UpdateSetting",
+ description:
+ "Updates a workspace setting.\n Permissions required: bb.settings.set",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateSettingRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Setting",
+ },
+ {
+ operationId: "bytebase.v1.SheetService.BatchCreateSheets",
+ path: "/bytebase.v1.SheetService/BatchCreateSheets",
+ service: "SheetService",
+ method: "BatchCreateSheets",
+ summary: "BatchCreateSheets",
+ description:
+ "Creates multiple SQL sheets in a single operation.\n Permissions required: bb.sheets.create",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchCreateSheetsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchCreateSheetsResponse",
+ },
+ {
+ operationId: "bytebase.v1.SheetService.CreateSheet",
+ path: "/bytebase.v1.SheetService/CreateSheet",
+ service: "SheetService",
+ method: "CreateSheet",
+ summary: "CreateSheet",
+ description:
+ "Creates a new SQL sheet.\n Permissions required: bb.sheets.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateSheetRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Sheet",
+ },
+ {
+ operationId: "bytebase.v1.SheetService.GetSheet",
+ path: "/bytebase.v1.SheetService/GetSheet",
+ service: "SheetService",
+ method: "GetSheet",
+ summary: "GetSheet",
+ description:
+ "Retrieves a SQL sheet by name.\n Permissions required: bb.sheets.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetSheetRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Sheet",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.CancelPurchase",
+ path: "/bytebase.v1.SubscriptionService/CancelPurchase",
+ service: "SubscriptionService",
+ method: "CancelPurchase",
+ summary: "CancelPurchase",
+ description: "CancelPurchase cancels an active subscription (SaaS only).",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CancelPurchaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.PurchaseResponse",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.CreatePurchase",
+ path: "/bytebase.v1.SubscriptionService/CreatePurchase",
+ service: "SubscriptionService",
+ method: "CreatePurchase",
+ summary: "CreatePurchase",
+ description:
+ "CreatePurchase creates a new subscription purchase (SaaS only).\n Returns a Stripe Checkout URL for the user to complete payment.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreatePurchaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.PurchaseResponse",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.GetPaymentInfo",
+ path: "/bytebase.v1.SubscriptionService/GetPaymentInfo",
+ service: "SubscriptionService",
+ method: "GetPaymentInfo",
+ summary: "GetPaymentInfo",
+ description:
+ "GetPaymentInfo returns payment details for the current subscription (SaaS only).",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetPaymentInfoRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.PaymentInfo",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.GetSubscription",
+ path: "/bytebase.v1.SubscriptionService/GetSubscription",
+ service: "SubscriptionService",
+ method: "GetSubscription",
+ summary: "GetSubscription",
+ description:
+ "GetSubscription returns the current subscription.\n If there is no license, we will return a free plan subscription without expiration time.\n If there is expired license, we will return a free plan subscription with the expiration time of the expired license.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetSubscriptionRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Subscription",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.ListPurchasePlans",
+ path: "/bytebase.v1.SubscriptionService/ListPurchasePlans",
+ service: "SubscriptionService",
+ method: "ListPurchasePlans",
+ summary: "ListPurchasePlans",
+ description:
+ "ListPurchasePlans returns available plans for self-service purchase.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListPurchasePlansRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListPurchasePlansResponse",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.UpdatePurchase",
+ path: "/bytebase.v1.SubscriptionService/UpdatePurchase",
+ service: "SubscriptionService",
+ method: "UpdatePurchase",
+ summary: "UpdatePurchase",
+ description:
+ "UpdatePurchase updates an existing subscription (SaaS only).\n May return a Stripe Checkout URL if payment method change is needed.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdatePurchaseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.PurchaseResponse",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.UploadLicense",
+ path: "/bytebase.v1.SubscriptionService/UploadLicense",
+ service: "SubscriptionService",
+ method: "UploadLicense",
+ summary: "UploadLicense",
+ description: "Uploads an enterprise license (self-hosted only).",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UploadLicenseRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Subscription",
+ },
+ {
+ operationId: "bytebase.v1.SubscriptionService.VerifyCheckoutSession",
+ path: "/bytebase.v1.SubscriptionService/VerifyCheckoutSession",
+ service: "SubscriptionService",
+ method: "VerifyCheckoutSession",
+ summary: "VerifyCheckoutSession",
+ description:
+ "VerifyCheckoutSession verifies a Stripe Checkout Session status (SaaS only).",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.VerifyCheckoutSessionRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.VerifyCheckoutSessionResponse",
+ },
+ {
+ operationId: "bytebase.v1.UserService.BatchGetUsers",
+ path: "/bytebase.v1.UserService/BatchGetUsers",
+ service: "UserService",
+ method: "BatchGetUsers",
+ summary: "BatchGetUsers",
+ description:
+ "Get the users in batch.\n Any authenticated user can batch get users.\n Permissions required: bb.users.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.BatchGetUsersRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.BatchGetUsersResponse",
+ },
+ {
+ operationId: "bytebase.v1.UserService.CreateUser",
+ path: "/bytebase.v1.UserService/CreateUser",
+ service: "UserService",
+ method: "CreateUser",
+ summary: "CreateUser",
+ description:
+ "Creates a user in the caller's workspace (admin action, self-hosted only).\n In SaaS mode, admins should add users via workspace IAM policy instead.\n Permissions required: bb.users.create",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateUserRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.User",
+ },
+ {
+ operationId: "bytebase.v1.UserService.DeleteUser",
+ path: "/bytebase.v1.UserService/DeleteUser",
+ service: "UserService",
+ method: "DeleteUser",
+ summary: "DeleteUser",
+ description:
+ "Deletes a user. Requires bb.users.delete permission with additional validation: the last remaining workspace admin cannot be deleted.\n Permissions required: bb.users.delete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteUserRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.UserService.GetCurrentUser",
+ path: "/bytebase.v1.UserService/GetCurrentUser",
+ service: "UserService",
+ method: "GetCurrentUser",
+ summary: "GetCurrentUser",
+ description:
+ "Get the current authenticated user.\n Permissions required: None",
+ requestSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.User",
+ },
+ {
+ operationId: "bytebase.v1.UserService.GetUser",
+ path: "/bytebase.v1.UserService/GetUser",
+ service: "UserService",
+ method: "GetUser",
+ summary: "GetUser",
+ description:
+ "Get the user.\n Any authenticated user can get the user.\n Permissions required: bb.users.get",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetUserRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.User",
+ },
+ {
+ operationId: "bytebase.v1.UserService.ListUsers",
+ path: "/bytebase.v1.UserService/ListUsers",
+ service: "UserService",
+ method: "ListUsers",
+ summary: "ListUsers",
+ description:
+ "List all users.\n Any authenticated user can list users.\n Permissions required: bb.users.list",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListUsersRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.ListUsersResponse",
+ },
+ {
+ operationId: "bytebase.v1.UserService.UndeleteUser",
+ path: "/bytebase.v1.UserService/UndeleteUser",
+ service: "UserService",
+ method: "UndeleteUser",
+ summary: "UndeleteUser",
+ description:
+ "Restores a deleted user.\n Permissions required: bb.users.undelete",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UndeleteUserRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.User",
+ },
+ {
+ operationId: "bytebase.v1.UserService.UpdateEmail",
+ path: "/bytebase.v1.UserService/UpdateEmail",
+ service: "UserService",
+ method: "UpdateEmail",
+ summary: "UpdateEmail",
+ description:
+ "Updates a user's email address.\n Permissions required: bb.users.updateEmail",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateEmailRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.User",
+ },
+ {
+ operationId: "bytebase.v1.UserService.UpdateUser",
+ path: "/bytebase.v1.UserService/UpdateUser",
+ service: "UserService",
+ method: "UpdateUser",
+ summary: "UpdateUser",
+ description:
+ "Updates a user. Users can update their own profile, or users with bb.users.update permission can update any user.\n Note: Email updates are not supported through this API. Use UpdateEmail instead.\n Permissions required: bb.users.update (or self)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateUserRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.User",
+ },
+ {
+ operationId: "bytebase.v1.WorkloadIdentityService.CreateWorkloadIdentity",
+ path: "/bytebase.v1.WorkloadIdentityService/CreateWorkloadIdentity",
+ service: "WorkloadIdentityService",
+ method: "CreateWorkloadIdentity",
+ summary: "CreateWorkloadIdentity",
+ description:
+ "Creates a new workload identity.\n For workspace-level: parent is workspaces/{id}, permission bb.workloadIdentities.create on workspace.\n For project-level: parent is projects/{project}, permission bb.workloadIdentities.create on project.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.CreateWorkloadIdentityRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.WorkloadIdentity",
+ },
+ {
+ operationId: "bytebase.v1.WorkloadIdentityService.DeleteWorkloadIdentity",
+ path: "/bytebase.v1.WorkloadIdentityService/DeleteWorkloadIdentity",
+ service: "WorkloadIdentityService",
+ method: "DeleteWorkloadIdentity",
+ summary: "DeleteWorkloadIdentity",
+ description:
+ "Deletes a workload identity.\n Permissions required: bb.workloadIdentities.delete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.DeleteWorkloadIdentityRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.WorkloadIdentityService.GetWorkloadIdentity",
+ path: "/bytebase.v1.WorkloadIdentityService/GetWorkloadIdentity",
+ service: "WorkloadIdentityService",
+ method: "GetWorkloadIdentity",
+ summary: "GetWorkloadIdentity",
+ description:
+ "Gets a workload identity by name.\n Permissions required: bb.workloadIdentities.get",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.GetWorkloadIdentityRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.WorkloadIdentity",
+ },
+ {
+ operationId: "bytebase.v1.WorkloadIdentityService.ListWorkloadIdentities",
+ path: "/bytebase.v1.WorkloadIdentityService/ListWorkloadIdentities",
+ service: "WorkloadIdentityService",
+ method: "ListWorkloadIdentities",
+ summary: "ListWorkloadIdentities",
+ description:
+ "Lists workload identities.\n For workspace-level: parent is workspaces/{id}, permission bb.workloadIdentities.list on workspace.\n For project-level: parent is projects/{project}, permission bb.workloadIdentities.list on project.",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.ListWorkloadIdentitiesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListWorkloadIdentitiesResponse",
+ },
+ {
+ operationId: "bytebase.v1.WorkloadIdentityService.UndeleteWorkloadIdentity",
+ path: "/bytebase.v1.WorkloadIdentityService/UndeleteWorkloadIdentity",
+ service: "WorkloadIdentityService",
+ method: "UndeleteWorkloadIdentity",
+ summary: "UndeleteWorkloadIdentity",
+ description:
+ "Restores a deleted workload identity.\n Permissions required: bb.workloadIdentities.undelete",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UndeleteWorkloadIdentityRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.WorkloadIdentity",
+ },
+ {
+ operationId: "bytebase.v1.WorkloadIdentityService.UpdateWorkloadIdentity",
+ path: "/bytebase.v1.WorkloadIdentityService/UpdateWorkloadIdentity",
+ service: "WorkloadIdentityService",
+ method: "UpdateWorkloadIdentity",
+ summary: "UpdateWorkloadIdentity",
+ description:
+ "Updates a workload identity.\n Permissions required: bb.workloadIdentities.update",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateWorkloadIdentityRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.WorkloadIdentity",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.BatchUpdateWorksheetOrganizer",
+ path: "/bytebase.v1.WorksheetService/BatchUpdateWorksheetOrganizer",
+ service: "WorksheetService",
+ method: "BatchUpdateWorksheetOrganizer",
+ summary: "BatchUpdateWorksheetOrganizer",
+ description:
+ "Batch update the organizers of worksheets.\n The access is the same as UpdateWorksheet method.\n Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateWorksheetOrganizerRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.BatchUpdateWorksheetOrganizerResponse",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.CreateWorksheet",
+ path: "/bytebase.v1.WorksheetService/CreateWorksheet",
+ service: "WorksheetService",
+ method: "CreateWorksheet",
+ summary: "CreateWorksheet",
+ description:
+ "Creates a personal worksheet used in SQL Editor. Any authenticated user can create their own worksheets.\n Permissions required: None (authenticated users only)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.CreateWorksheetRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Worksheet",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.DeleteWorksheet",
+ path: "/bytebase.v1.WorksheetService/DeleteWorksheet",
+ service: "WorksheetService",
+ method: "DeleteWorksheet",
+ summary: "DeleteWorksheet",
+ description:
+ "Delete a worksheet.\n The access is the same as UpdateWorksheet method.\n Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.DeleteWorksheetRequest",
+ responseSchemaRef: "#/components/schemas/google.protobuf.Empty",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.GetWorksheet",
+ path: "/bytebase.v1.WorksheetService/GetWorksheet",
+ service: "WorksheetService",
+ method: "GetWorksheet",
+ summary: "GetWorksheet",
+ description:
+ "Get a worksheet by name.\n The users can access this method if,\n - they are the creator of the worksheet;\n - they have bb.worksheets.get permission on the workspace;\n - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.\n Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetWorksheetRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Worksheet",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.SearchWorksheets",
+ path: "/bytebase.v1.WorksheetService/SearchWorksheets",
+ service: "WorksheetService",
+ method: "SearchWorksheets",
+ summary: "SearchWorksheets",
+ description:
+ "Search for worksheets.\n This is used for finding my worksheets or worksheets shared by other people.\n The sheet accessibility is the same as GetWorksheet().\n Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchWorksheetsRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.SearchWorksheetsResponse",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.UpdateWorksheet",
+ path: "/bytebase.v1.WorksheetService/UpdateWorksheet",
+ service: "WorksheetService",
+ method: "UpdateWorksheet",
+ summary: "UpdateWorksheet",
+ description:
+ "Update a worksheet.\n The users can access this method if,\n - they are the creator of the worksheet;\n - they have bb.worksheets.manage permission on the workspace;\n - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.\n Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateWorksheetRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Worksheet",
+ },
+ {
+ operationId: "bytebase.v1.WorksheetService.UpdateWorksheetOrganizer",
+ path: "/bytebase.v1.WorksheetService/UpdateWorksheetOrganizer",
+ service: "WorksheetService",
+ method: "UpdateWorksheetOrganizer",
+ summary: "UpdateWorksheetOrganizer",
+ description:
+ "Update the organizer of a worksheet.\n The access is the same as UpdateWorksheet method.\n Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)",
+ requestSchemaRef:
+ "#/components/schemas/bytebase.v1.UpdateWorksheetOrganizerRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.WorksheetOrganizer",
+ },
+ {
+ operationId: "bytebase.v1.WorkspaceService.GetIamPolicy",
+ path: "/bytebase.v1.WorkspaceService/GetIamPolicy",
+ service: "WorkspaceService",
+ method: "GetIamPolicy",
+ summary: "GetIamPolicy",
+ description:
+ "Retrieves IAM policy for the workspace.\n Permissions required: bb.workspaces.getIamPolicy",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetIamPolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IamPolicy",
+ },
+ {
+ operationId: "bytebase.v1.WorkspaceService.GetWorkspace",
+ path: "/bytebase.v1.WorkspaceService/GetWorkspace",
+ service: "WorkspaceService",
+ method: "GetWorkspace",
+ summary: "GetWorkspace",
+ description:
+ 'Gets a workspace by name.\n Supports "workspaces/-" to resolve the current workspace:\n - Authenticated: uses the workspace from JWT context\n - Self-hosted unauthenticated: returns the single workspace\n - SaaS unauthenticated: returns minimal response',
+ requestSchemaRef: "#/components/schemas/bytebase.v1.GetWorkspaceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Workspace",
+ },
+ {
+ operationId: "bytebase.v1.WorkspaceService.ListWorkspaces",
+ path: "/bytebase.v1.WorkspaceService/ListWorkspaces",
+ service: "WorkspaceService",
+ method: "ListWorkspaces",
+ summary: "ListWorkspaces",
+ description: "Lists all workspaces the current user is a member of.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.ListWorkspacesRequest",
+ responseSchemaRef:
+ "#/components/schemas/bytebase.v1.ListWorkspacesResponse",
+ },
+ {
+ operationId: "bytebase.v1.WorkspaceService.SetIamPolicy",
+ path: "/bytebase.v1.WorkspaceService/SetIamPolicy",
+ service: "WorkspaceService",
+ method: "SetIamPolicy",
+ summary: "SetIamPolicy",
+ description:
+ "Sets IAM policy for the workspace.\n Permissions required: bb.workspaces.setIamPolicy",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.SetIamPolicyRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.IamPolicy",
+ },
+ {
+ operationId: "bytebase.v1.WorkspaceService.UpdateWorkspace",
+ path: "/bytebase.v1.WorkspaceService/UpdateWorkspace",
+ service: "WorkspaceService",
+ method: "UpdateWorkspace",
+ summary: "UpdateWorkspace",
+ description: "Updates a workspace. Currently only title can be updated.",
+ requestSchemaRef: "#/components/schemas/bytebase.v1.UpdateWorkspaceRequest",
+ responseSchemaRef: "#/components/schemas/bytebase.v1.Workspace",
+ },
+];
+
+export const schemas: Record<string, SchemaInfo> = {
+ "bytebase.v1.AIChatMessage": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ description:
+ "The text content of the message. Optional for assistant messages that only contain tool calls.",
+ },
+ {
+ name: "role",
+ type: "bytebase.v1.AIChatMessageRole",
+ description: "The role of the message sender.",
+ },
+ {
+ name: "toolCallId",
+ type: "string",
+ description:
+ "The ID of the tool call this message is responding to. Only present in tool messages.",
+ },
+ {
+ name: "toolCalls",
+ type: "array<bytebase.v1.AIChatToolCall>",
+ description:
+ "Tool calls made by the assistant. Only present in assistant messages.",
+ },
+ ],
+ description: "A single message in the conversation.",
+ },
+ "bytebase.v1.AIChatMessageRole": {
+ type: "enum",
+ values: [
+ "AI_CHAT_MESSAGE_ROLE_UNSPECIFIED",
+ "AI_CHAT_MESSAGE_ROLE_SYSTEM",
+ "AI_CHAT_MESSAGE_ROLE_USER",
+ "AI_CHAT_MESSAGE_ROLE_ASSISTANT",
+ "AI_CHAT_MESSAGE_ROLE_TOOL",
+ ],
+ description: "Role of a chat message.",
+ },
+ "bytebase.v1.AIChatRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "messages",
+ type: "array<bytebase.v1.AIChatMessage>",
+ description: "The conversation messages.",
+ },
+ {
+ name: "toolDefinitions",
+ type: "array<bytebase.v1.AIChatToolDefinition>",
+ description: "The tool definitions available to the AI.",
+ },
+ ],
+ description: "Request message for AIService.Chat.",
+ },
+ "bytebase.v1.AIChatResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ description:
+ "The text content of the AI response. Optional when the response only contains tool calls.",
+ },
+ {
+ name: "toolCalls",
+ type: "array<bytebase.v1.AIChatToolCall>",
+ description: "Tool calls the AI wants to make.",
+ },
+ {
+ name: "usage",
+ type: "object",
+ description: "Token usage for this provider call, when available.",
+ },
+ ],
+ description: "Response message for AIService.Chat.",
+ },
+ "bytebase.v1.AIChatToolCall": {
+ type: "object",
+ properties: [
+ {
+ name: "arguments",
+ type: "string",
+ description: "The JSON-encoded arguments to pass to the tool.",
+ },
+ {
+ name: "id",
+ type: "string",
+ description: "The unique ID of this tool call.",
+ },
+ {
+ name: "metadata",
+ type: "string",
+ description:
+ "Opaque provider-specific metadata (e.g., Gemini thought_signature).\n Frontend must echo this back unchanged when sending tool results.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the tool to call.",
+ },
+ ],
+ description: "A tool call made by the AI.",
+ },
+ "bytebase.v1.AIChatToolDefinition": {
+ type: "object",
+ properties: [
+ {
+ name: "description",
+ type: "string",
+ description: "A description of what the tool does.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the tool.",
+ },
+ {
+ name: "parametersSchema",
+ type: "string",
+ description: "The JSON Schema describing the tool's parameters.",
+ },
+ ],
+ description: "A tool definition that the AI can invoke.",
+ },
+ "bytebase.v1.AIChatUsage": {
+ type: "object",
+ properties: [
+ {
+ name: "totalTokens",
+ type: "integer",
+ description: "Total tokens used by the provider call.",
+ },
+ ],
+ description: "Token usage for a single AI provider call.",
+ },
+ "bytebase.v1.AICompletionRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "messages",
+ type: "array<bytebase.v1.AICompletionRequest.Message>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AICompletionRequest.Message": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ },
+ {
+ name: "role",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AICompletionResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "candidates",
+ type: "array<bytebase.v1.AICompletionResponse.Candidate>",
+ description:
+ "candidates is used for results with multiple choices and candidates. Used\n for OpenAI and Gemini.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AICompletionResponse.Candidate": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "bytebase.v1.AICompletionResponse.Candidate.Content",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AICompletionResponse.Candidate.Content": {
+ type: "object",
+ properties: [
+ {
+ name: "parts",
+ type: "array<bytebase.v1.AICompletionResponse.Candidate.Content.Part>",
+ description: "parts is used for a result content with multiple parts.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AICompletionResponse.Candidate.Content.Part": {
+ type: "object",
+ properties: [
+ {
+ name: "text",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AISetting": {
+ type: "object",
+ properties: [
+ {
+ name: "apiKey",
+ type: "string",
+ },
+ {
+ name: "enabled",
+ type: "boolean",
+ },
+ {
+ name: "endpoint",
+ type: "string",
+ },
+ {
+ name: "model",
+ type: "string",
+ },
+ {
+ name: "provider",
+ type: "bytebase.v1.AISetting.Provider",
+ },
+ {
+ name: "version",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AISetting.Provider": {
+ type: "enum",
+ values: [
+ "PROVIDER_UNSPECIFIED",
+ "OPEN_AI",
+ "CLAUDE",
+ "GEMINI",
+ "AZURE_OPENAI",
+ ],
+ description: "",
+ },
+ "bytebase.v1.AccessGrant": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "The creator of the access grant.\n Format: users/{email}",
+ },
+ {
+ name: "issue",
+ type: "string",
+ description:
+ "The issue associated with the access grant.\n Can be empty.\n Format: projects/{project}/issues/{issue}",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the access grant, generated by the server.\n Format: projects/{project}/accessGrants/{access_grant}\n The {access_grant} segment is a server-generated unique ID.",
+ },
+ {
+ name: "query",
+ type: "string",
+ description: "The query permission granted.",
+ },
+ {
+ name: "reason",
+ type: "string",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.AccessGrant.Status",
+ description:
+ "The status of the access grant.\n An ACTIVE grant with `expire_time` in the past is effectively expired\n and no longer authorizes access. Use `expire_time` to determine\n whether an ACTIVE grant has expired.",
+ },
+ {
+ name: "targets",
+ type: "array<string>",
+ description:
+ "The target databases for this access grant.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "unmask",
+ type: "boolean",
+ description: "Whether the grant allows unmasking sensitive data.",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AccessGrant.Status": {
+ type: "enum",
+ values: ["STATUS_UNSPECIFIED", "PENDING", "ACTIVE", "REVOKED"],
+ description: "The status of the access grant.",
+ },
+ "bytebase.v1.ActivateAccessGrantRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the access grant to activate.\n Format: projects/{project}/accessGrants/{access_grant}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Activity.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "ISSUE_CREATED",
+ "ISSUE_APPROVAL_REQUESTED",
+ "ISSUE_SENT_BACK",
+ "PIPELINE_FAILED",
+ "PIPELINE_COMPLETED",
+ "ISSUE_APPROVED",
+ ],
+ description: "Activity type enumeration.",
+ },
+ "bytebase.v1.ActuatorInfo": {
+ type: "object",
+ properties: [
+ {
+ name: "activatedInstanceCount",
+ type: "integer",
+ description: "The number of activated database instances.",
+ },
+ {
+ name: "activatedUserCount",
+ type: "integer",
+ description: "The number of activated users.",
+ },
+ {
+ name: "defaultProject",
+ type: "string",
+ description:
+ "The default project for unassigned databases.\n Format: projects/{id}",
+ },
+ {
+ name: "demo",
+ type: "boolean",
+ description: "Whether the Bytebase instance is running in demo mode.",
+ },
+ {
+ name: "docker",
+ type: "boolean",
+ description: "Whether the Bytebase instance is running in Docker.",
+ },
+ {
+ name: "enableSample",
+ type: "boolean",
+ description: "Whether sample data setup is enabled.",
+ },
+ {
+ name: "externalUrl",
+ type: "string",
+ description:
+ "The external URL where users or webhook callbacks access Bytebase.",
+ },
+ {
+ name: "externalUrlFromFlag",
+ type: "boolean",
+ description:
+ "Whether the external URL is set via command-line flag (and thus cannot be changed via UI).",
+ },
+ {
+ name: "gitCommit",
+ type: "string",
+ description: "The git commit hash of the build.",
+ },
+ {
+ name: "host",
+ type: "string",
+ description: "The host address of the Bytebase instance.",
+ },
+ {
+ name: "lastActiveTime",
+ type: "google.protobuf.Timestamp",
+ description:
+ "The last time any API call was made, refreshed on each request.",
+ },
+ {
+ name: "port",
+ type: "string",
+ description: "The port number of the Bytebase instance.",
+ },
+ {
+ name: "readonly",
+ type: "boolean",
+ description:
+ "Whether the Bytebase instance is running in read-only mode.",
+ },
+ {
+ name: "replicaCount",
+ type: "integer",
+ description:
+ "The number of active replicas (servers sharing the same database).",
+ },
+ {
+ name: "restriction",
+ type: "bytebase.v1.Restriction",
+ },
+ {
+ name: "saas",
+ type: "boolean",
+ description:
+ "Whether the Bytebase instance is running in SaaS mode where some features cannot be edited by users.",
+ },
+ {
+ name: "totalInstanceCount",
+ type: "integer",
+ description: "The total number of database instances.",
+ },
+ {
+ name: "unlicensedFeatures",
+ type: "array<string>",
+ description: "List of features that are not licensed.",
+ },
+ {
+ name: "version",
+ type: "string",
+ description: "The Bytebase server version.",
+ },
+ {
+ name: "workspace",
+ type: "string",
+ description:
+ "The unique identifier for the workspace.\n Format: workspaces/{id}",
+ },
+ ],
+ description:
+ "System information and configuration for the Bytebase instance.\n Actuator concept is similar to the Spring Boot Actuator.",
+ },
+ "bytebase.v1.AddDataSourceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "dataSource",
+ type: "bytebase.v1.DataSource",
+ description:
+ "Identified by data source ID.\n Only READ_ONLY data source can be added.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the instance to add a data source to.\n Format: instances/{instance}",
+ },
+ {
+ name: "validateOnly",
+ type: "boolean",
+ description: "Validate only also tests the data source connection.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AddWebhookRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "project",
+ type: "string",
+ description:
+ "The name of the project to add the webhook to.\n Format: projects/{project}",
+ },
+ {
+ name: "webhook",
+ type: "bytebase.v1.Webhook",
+ description: "The webhook to add.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AdminExecuteRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "container",
+ type: "string",
+ description:
+ "Container is the container name to execute the query against, used for\n CosmosDB only.",
+ },
+ {
+ name: "limit",
+ type: "integer",
+ description: "The maximum number of rows to return.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name is the instance name to execute the query against.\n Format: instances/{instance}/databases/{databaseName}",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description:
+ "The default schema to execute the statement. Equals to the current schema\n in Oracle and search path in Postgres.",
+ },
+ {
+ name: "statement",
+ type: "string",
+ description: "The SQL statement to execute.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AdminExecuteResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "results",
+ type: "array<bytebase.v1.QueryResult>",
+ description: "The query results.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Advice": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "integer",
+ description: "The advice code.",
+ },
+ {
+ name: "content",
+ type: "string",
+ description: "The advice content.",
+ },
+ {
+ name: "endPosition",
+ type: "bytebase.v1.Position",
+ },
+ {
+ name: "ruleType",
+ type: "bytebase.v1.Advice.RuleType",
+ description: "The type of linting rule that generated this advice.",
+ },
+ {
+ name: "startPosition",
+ type: "bytebase.v1.Position",
+ description:
+ "The start_position is inclusive and the end_position is exclusive.\n TODO: use range instead",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.Advice.Level",
+ description: "The advice level.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The advice title.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Advice.Level": {
+ type: "enum",
+ values: ["ADVICE_LEVEL_UNSPECIFIED", "SUCCESS", "WARNING", "ERROR"],
+ description: "Level represents the severity level of the advice.",
+ },
+ "bytebase.v1.Advice.RuleType": {
+ type: "enum",
+ values: ["RULE_TYPE_UNSPECIFIED", "PARSER_BASED", "AI_POWERED"],
+ description: "RuleType indicates the source of the linting rule.",
+ },
+ "bytebase.v1.Algorithm.FullMask": {
+ type: "object",
+ properties: [
+ {
+ name: "substitution",
+ type: "string",
+ description:
+ "substitution is the string used to replace the original value, the\n max length of the string is 16 bytes.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Algorithm.InnerOuterMask": {
+ type: "object",
+ properties: [
+ {
+ name: "prefixLen",
+ type: "integer",
+ },
+ {
+ name: "substitution",
+ type: "string",
+ },
+ {
+ name: "suffixLen",
+ type: "integer",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.Algorithm.InnerOuterMask.MaskType",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Algorithm.InnerOuterMask.MaskType": {
+ type: "enum",
+ values: ["MASK_TYPE_UNSPECIFIED", "INNER", "OUTER"],
+ description: "",
+ },
+ "bytebase.v1.Algorithm.MD5Mask": {
+ type: "object",
+ properties: [
+ {
+ name: "salt",
+ type: "string",
+ description:
+ "salt is the salt value to generate a different hash that with the word alone.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Algorithm.RangeMask": {
+ type: "object",
+ properties: [
+ {
+ name: "slices",
+ type: "array<bytebase.v1.Algorithm.RangeMask.Slice>",
+ description:
+ "We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.\n But frontend can be started with a single rule easily.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Algorithm.RangeMask.Slice": {
+ type: "object",
+ properties: [
+ {
+ name: "end",
+ type: "integer",
+ description:
+ "end is the end character index (exclusive) of the original value.\n Uses character indices (not byte offsets) for display-oriented masking.",
+ },
+ {
+ name: "start",
+ type: "integer",
+ description:
+ "start is the start character index (0-based) of the original value, should be less than end.\n Uses character indices (not byte offsets) for display-oriented masking.\n Example: For \"你好world\", character index 2 refers to 'w' (the 3rd character).",
+ },
+ {
+ name: "substitution",
+ type: "string",
+ description:
+ "substitution is the string used to replace the OriginalValue[start:end).",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Announcement": {
+ type: "object",
+ properties: [
+ {
+ name: "level",
+ type: "bytebase.v1.Announcement.AlertLevel",
+ description: "The alert level of announcement",
+ },
+ {
+ name: "link",
+ type: "string",
+ description:
+ "The optional link, user can follow the link to check extra details",
+ },
+ {
+ name: "text",
+ type: "string",
+ description: "The text of announcement",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Announcement.AlertLevel": {
+ type: "enum",
+ values: ["ALERT_LEVEL_UNSPECIFIED", "INFO", "WARNING", "CRITICAL"],
+ description:
+ "We support three levels of AlertLevel: INFO, WARNING, and ERROR.",
+ },
+ "bytebase.v1.AppIMSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "settings",
+ type: "array<bytebase.v1.AppIMSetting.IMSetting>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.DingTalk": {
+ type: "object",
+ properties: [
+ {
+ name: "clientId",
+ type: "string",
+ },
+ {
+ name: "clientSecret",
+ type: "string",
+ },
+ {
+ name: "robotCode",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.Feishu": {
+ type: "object",
+ properties: [
+ {
+ name: "appId",
+ type: "string",
+ },
+ {
+ name: "appSecret",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.IMSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "type",
+ type: "bytebase.v1.WebhookType",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.Lark": {
+ type: "object",
+ properties: [
+ {
+ name: "appId",
+ type: "string",
+ },
+ {
+ name: "appSecret",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.Slack": {
+ type: "object",
+ properties: [
+ {
+ name: "token",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.Teams": {
+ type: "object",
+ properties: [
+ {
+ name: "clientId",
+ type: "string",
+ description: "Azure AD application (client) ID.",
+ },
+ {
+ name: "clientSecret",
+ type: "string",
+ description: "Azure AD client secret.",
+ },
+ {
+ name: "tenantId",
+ type: "string",
+ description: "Azure AD tenant ID (Directory ID).",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AppIMSetting.Wecom": {
+ type: "object",
+ properties: [
+ {
+ name: "agentId",
+ type: "string",
+ },
+ {
+ name: "corpId",
+ type: "string",
+ },
+ {
+ name: "secret",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ApprovalFlow": {
+ type: "object",
+ properties: [
+ {
+ name: "roles",
+ type: "array<string>",
+ description: "The roles required for approval in order.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ApprovalTemplate": {
+ type: "object",
+ properties: [
+ {
+ name: "description",
+ type: "string",
+ description: "The description of the approval template.",
+ },
+ {
+ name: "flow",
+ type: "bytebase.v1.ApprovalFlow",
+ description: "The approval flow definition.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The title of the approval template.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ApproveIssueRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment explaining the approval decision.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the issue to add an approver.\n Format: projects/{project}/issues/{issue}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.AuditData": {
+ type: "object",
+ properties: [
+ {
+ name: "policyDelta",
+ type: "bytebase.v1.PolicyDelta",
+ description: "Changes to IAM policies.",
+ },
+ ],
+ description: "Additional audit data specific to certain operations.",
+ },
+ "bytebase.v1.AuditLog": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ description: "The timestamp when the audit log was created.",
+ },
+ {
+ name: "latency",
+ type: "google.protobuf.Duration",
+ description: "The duration of the operation.",
+ },
+ {
+ name: "method",
+ type: "string",
+ description:
+ "The method or action being audited.\n For example: /bytebase.v1.SQLService/Query or bb.project.repository.push",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the log.\n Formats:\n - projects/{project}/auditLogs/{uid}\n - workspaces/{workspace}/auditLogs/{uid}",
+ },
+ {
+ name: "request",
+ type: "string",
+ description: "The request payload in JSON format.",
+ },
+ {
+ name: "requestMetadata",
+ type: "bytebase.v1.RequestMetadata",
+ description: "Metadata about the request context.",
+ },
+ {
+ name: "resource",
+ type: "string",
+ description: "The resource associated with this audit log.",
+ },
+ {
+ name: "response",
+ type: "string",
+ description:
+ "The response payload in JSON format.\n Some fields may be omitted if they are too large or contain sensitive information.",
+ },
+ {
+ name: "serviceData",
+ type: "google.protobuf.Any",
+ description:
+ "Service-specific metadata about the request, response, and activities.",
+ },
+ {
+ name: "severity",
+ type: "bytebase.v1.AuditLog.Severity",
+ description: "The severity level of this audit log entry.",
+ },
+ {
+ name: "status",
+ type: "google.rpc.Status",
+ description: "The status of the operation.",
+ },
+ {
+ name: "user",
+ type: "string",
+ description:
+ "The user who performed the action.\n Format: users/{email}",
+ },
+ ],
+ description: "Audit log entry recording system activity or API call.",
+ },
+ "bytebase.v1.AuditLog.Severity": {
+ type: "enum",
+ values: [
+ "SEVERITY_UNSPECIFIED",
+ "DEBUG",
+ "INFO",
+ "NOTICE",
+ "WARNING",
+ "ERROR",
+ "CRITICAL",
+ "ALERT",
+ "EMERGENCY",
+ ],
+ description: "Severity level for audit log entries.",
+ },
+ "bytebase.v1.AuthMethod": {
+ type: "enum",
+ values: ["AUTH_METHOD_UNSPECIFIED", "IAM", "CUSTOM"],
+ description: "Authorization method for RPC calls.",
+ },
+ "bytebase.v1.BatchCancelTaskRunsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The task name for the taskRuns.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}\n Use `projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/-` to cancel task runs under the same stage.",
+ },
+ {
+ name: "taskRuns",
+ type: "array<string>",
+ description:
+ "The taskRuns to cancel.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchCreateRevisionsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource shared by all revisions being created.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "requests",
+ type: "array<bytebase.v1.CreateRevisionRequest>",
+ description:
+ "The request message specifying the revisions to create.\n A maximum of 100 revisions can be created in a batch.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchCreateRevisionsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "revisions",
+ type: "array<bytebase.v1.Revision>",
+ description: "The created revisions.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchCreateSheetsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where all sheets will be created.\n Format: projects/{project}",
+ },
+ {
+ name: "requests",
+ type: "array<bytebase.v1.CreateSheetRequest>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchCreateSheetsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "sheets",
+ type: "array<bytebase.v1.Sheet>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchDeleteProjectsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "names",
+ type: "array<string>",
+ description:
+ "The names of the projects to delete.\n Format: projects/{project}",
+ },
+ {
+ name: "purge",
+ type: "boolean",
+ description:
+ "If set to true, permanently purge the soft-deleted projects and all related resources.\n This operation is irreversible. Following AIP-165, this should only be used for\n administrative cleanup of old soft-deleted projects.\n All projects must already be soft-deleted for this to work.\n When purge=true, all databases will be moved to the default project before deletion.\n When purge=false (soft delete/archive), the projects and their databases/issues remain unchanged.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchDeparseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "expressions",
+ type: "array<google.api.expr.v1alpha1.Expr>",
+ description: "The CEL expression ASTs to deparse.",
+ },
+ ],
+ description: "Request message for batch deparsing CEL expressions.",
+ },
+ "bytebase.v1.BatchDeparseResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "expressions",
+ type: "array<string>",
+ description: "The deparsed CEL expressions as strings.",
+ },
+ ],
+ description: "Response message for batch deparsing CEL expressions.",
+ },
+ "bytebase.v1.BatchGetDatabasesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "names",
+ type: "array<string>",
+ description: "The list of database names to retrieve.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ 'The parent resource shared by all databases being retrieved.\n - projects/{project}: batch get databases in a project;\n - instances/{instances}: batch get databases in a instance;\n Use "-" as wildcard to batch get databases across parent.',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchGetDatabasesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "databases",
+ type: "array<bytebase.v1.Database>",
+ description: "The databases from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchGetGroupsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "names",
+ type: "array<string>",
+ description: "The group names to retrieve.\n Format: groups/{email}",
+ },
+ ],
+ description: "Request message for batch getting groups.",
+ },
+ "bytebase.v1.BatchGetGroupsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "groups",
+ type: "array<bytebase.v1.Group>",
+ description: "The groups from the specified request.",
+ },
+ ],
+ description: "Response message for batch getting groups.",
+ },
+ "bytebase.v1.BatchGetProjectsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "names",
+ type: "array<string>",
+ description:
+ "The names of projects to retrieve.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchGetProjectsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "projects",
+ type: "array<bytebase.v1.Project>",
+ description: "The projects from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchGetUsersRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "names",
+ type: "array<string>",
+ description: "The user names to retrieve.\n Format: users/{email}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchGetUsersResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "users",
+ type: "array<bytebase.v1.User>",
+ description: "The users from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchParseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "expressions",
+ type: "array<string>",
+ description: "The CEL expression strings to parse.",
+ },
+ ],
+ description: "Request message for batch parsing CEL expressions.",
+ },
+ "bytebase.v1.BatchParseResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "expressions",
+ type: "array<google.api.expr.v1alpha1.Expr>",
+ description: "The parsed CEL expressions as AST.",
+ },
+ ],
+ description: "Response message for batch parsing CEL expressions.",
+ },
+ "bytebase.v1.BatchRunTasksRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The stage name for the tasks.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}",
+ },
+ {
+ name: "runTime",
+ type: "object",
+ description: "The task run should run after run_time.",
+ },
+ {
+ name: "skipPriorBackup",
+ type: "boolean",
+ description:
+ "If true, skip prior backup for this run even if the task has prior backup enabled.",
+ },
+ {
+ name: "tasks",
+ type: "array<string>",
+ description:
+ "The tasks to run.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchSkipTasksRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The stage name for the tasks.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}",
+ },
+ {
+ name: "reason",
+ type: "string",
+ description: "The reason for skipping the tasks.",
+ },
+ {
+ name: "tasks",
+ type: "array<string>",
+ description:
+ "The tasks to skip.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchSyncDatabasesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "names",
+ type: "array<string>",
+ description: "The list of database names to sync.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource shared by all databases being updated.\n Format: instances/{instance}\n If the operation spans parents, a dash (-) may be accepted as a wildcard.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchSyncInstancesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "requests",
+ type: "array<bytebase.v1.SyncInstanceRequest>",
+ description:
+ "The request message specifying the instances to sync.\n A maximum of 1000 instances can be synced in a batch.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateDatabasesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource shared by all databases being updated.\n Format: instances/{instance}\n If the operation spans parents, a dash (-) may be accepted as a wildcard.\n We only support updating the project of databases for now.",
+ },
+ {
+ name: "requests",
+ type: "array<bytebase.v1.UpdateDatabaseRequest>",
+ description:
+ "The request message specifying the resources to update.\n A maximum of 1000 databases can be modified in a batch.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateDatabasesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "databases",
+ type: "array<bytebase.v1.Database>",
+ description: "Databases updated.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateInstancesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "requests",
+ type: "array<bytebase.v1.UpdateInstanceRequest>",
+ description: "The request message specifying the resources to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateInstancesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "instances",
+ type: "array<bytebase.v1.Instance>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateIssuesStatusRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "issues",
+ type: "array<string>",
+ description:
+ "The list of issues to update.\n Format: projects/{project}/issues/{issue}",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource shared by all issues being updated.\n Format: projects/{project}\n If the operation spans parents, a dash (-) may be accepted as a wildcard.\n We only support updating the status of databases for now.",
+ },
+ {
+ name: "reason",
+ type: "string",
+ description: "The reason for the status change.",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.IssueStatus",
+ description: "The new status.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateWorksheetOrganizerRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "requests",
+ type: "array<bytebase.v1.UpdateWorksheetOrganizerRequest>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BatchUpdateWorksheetOrganizerResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "worksheetOrganizers",
+ type: "array<bytebase.v1.WorksheetOrganizer>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.BillingInterval": {
+ type: "enum",
+ values: ["BILLING_INTERVAL_UNSPECIFIED", "MONTH", "YEAR"],
+ description: "",
+ },
+ "bytebase.v1.Binding": {
+ type: "object",
+ properties: [
+ {
+ name: "condition",
+ type: "google.type.Expr",
+ description:
+ 'The condition that is associated with this binding, only used in the project IAM policy.\n If the condition evaluates to true, then this binding applies to the current request.\n If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Support variables:\n resource.database: the database full name in "instances/{instance}/databases/{database}" format, used by the "roles/sqlEditorUser" and "roles/sqlEditorReadUser" roles, support "==" operator.\n resource.schema_name: the schema name, used by the "roles/sqlEditorUser" and "roles/sqlEditorReadUser" roles, support "==" operator.\n resource.table_name: the table name, used by the "roles/sqlEditorUser" and "roles/sqlEditorReadUser" roles, support "==" operator.\n resource.environment_id: the environment to allow the DDL/DML operation in the SQL Editor, only works for the role with bb.sql.ddl or bb.sql.dml permissions. Support "in" operator.\n request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")`.\n\n For example:\n resource.database == "instances/local-pg/databases/postgres" && resource.schema_name in ["public","another_schema"]\n resource.database == "instances/local-pg/databases/bytebase" && resource.schema_name == "public" && resource.table_name in ["audit_log"]\n resource.database == "instances/local-pg/databases/postgres" && resource.environment_id in ["test"]\n request.time < timestamp("2025-04-26T11:24:48.655Z")',
+ },
+ {
+ name: "members",
+ type: "array<string>",
+ description:
+ "Specifies the principals requesting access for a Bytebase resource.\n For users, the member should be: user:{email}\n For groups, the member should be: group:{email}\n For service accounts, the member should be: serviceAccount:{email}\n For workload identities, the member should be: workloadIdentity:{email}",
+ },
+ {
+ name: "parsedExpr",
+ type: "google.api.expr.v1alpha1.Expr",
+ description: "The parsed expression of the condition.",
+ },
+ {
+ name: "role",
+ type: "string",
+ description:
+ "The role that is assigned to the members.\n Format: roles/{role}",
+ },
+ ],
+ description:
+ "Binding associates members with a role and optional conditions.",
+ },
+ "bytebase.v1.BindingDelta": {
+ type: "object",
+ properties: [
+ {
+ name: "action",
+ type: "bytebase.v1.BindingDelta.Action",
+ description: "The action that was performed on a Binding.",
+ },
+ {
+ name: "condition",
+ type: "google.type.Expr",
+ description: "The condition that is associated with this binding.",
+ },
+ {
+ name: "member",
+ type: "string",
+ description: "Follows the same format of Binding.members.",
+ },
+ {
+ name: "role",
+ type: "string",
+ description:
+ "Role that is assigned to `members`.\n For example, `roles/projectOwner`.",
+ },
+ ],
+ description: "A single change to a binding.",
+ },
+ "bytebase.v1.BindingDelta.Action": {
+ type: "enum",
+ values: ["ACTION_UNSPECIFIED", "ADD", "REMOVE"],
+ description: "Type of action performed on a binding.",
+ },
+ "bytebase.v1.BoundingBox": {
+ type: "object",
+ properties: [
+ {
+ name: "xmax",
+ type: "number",
+ description: "Maximum X coordinate",
+ },
+ {
+ name: "xmin",
+ type: "number",
+ description: "Minimum X coordinate",
+ },
+ {
+ name: "ymax",
+ type: "number",
+ description: "Maximum Y coordinate",
+ },
+ {
+ name: "ymin",
+ type: "number",
+ description: "Minimum Y coordinate",
+ },
+ ],
+ description:
+ "BoundingBox defines the spatial bounds for GEOMETRY spatial indexes.",
+ },
+ "bytebase.v1.CancelPlanCheckRunRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the plan check run to cancel.\n Format: projects/{project}/plans/{plan}/planCheckRun",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Changelog": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: instances/{instance}/databases/{database}/changelogs/{changelog}",
+ },
+ {
+ name: "planTitle",
+ type: "string",
+ description:
+ "The title of the plan associated with this changelog's task run.\n This field is populated by deriving the plan from task_run for display purposes.",
+ },
+ {
+ name: "schema",
+ type: "string",
+ },
+ {
+ name: "schemaSize",
+ type: "integer",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.Changelog.Status",
+ },
+ {
+ name: "taskRun",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Changelog.Status": {
+ type: "enum",
+ values: ["STATUS_UNSPECIFIED", "PENDING", "DONE", "FAILED"],
+ description: "",
+ },
+ "bytebase.v1.ChangelogView": {
+ type: "enum",
+ values: [
+ "CHANGELOG_VIEW_UNSPECIFIED",
+ "CHANGELOG_VIEW_BASIC",
+ "CHANGELOG_VIEW_FULL",
+ ],
+ description: "",
+ },
+ "bytebase.v1.CheckConstraintMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "expression",
+ type: "string",
+ description: "The expression is the expression of a check constraint.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a check constraint.",
+ },
+ ],
+ description:
+ "CheckConstraintMetadata is the metadata for check constraints.",
+ },
+ "bytebase.v1.CheckReleaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "customRules",
+ type: "string",
+ description:
+ 'Custom linting rules in natural language for AI-powered validation.\n Each rule should be a clear statement describing the desired schema constraint.\n Example: "All tables must have a primary key"\n Example: "VARCHAR columns should specify a maximum length"',
+ },
+ {
+ name: "parent",
+ type: "string",
+ description: "Format: projects/{project}",
+ },
+ {
+ name: "release",
+ type: "bytebase.v1.Release",
+ description: "The release to check.",
+ },
+ {
+ name: "targets",
+ type: "array<string>",
+ description:
+ "The targets to dry-run the release.\n Can be database or databaseGroup.\n Format:\n projects/{project}/databaseGroups/{databaseGroup}\n instances/{instance}/databases/{database}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CheckReleaseResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "affectedRows",
+ type: "integer",
+ description: "The total affected rows across all checks.",
+ },
+ {
+ name: "results",
+ type: "array<bytebase.v1.CheckReleaseResponse.CheckResult>",
+ description: "The check results for each file and target combination.",
+ },
+ {
+ name: "riskLevel",
+ type: "bytebase.v1.RiskLevel",
+ description: "The aggregated risk level of the check.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CheckReleaseResponse.CheckResult": {
+ type: "object",
+ properties: [
+ {
+ name: "advices",
+ type: "array<bytebase.v1.Advice>",
+ description: "The list of advice for the file and the target.",
+ },
+ {
+ name: "affectedRows",
+ type: "integer",
+ description:
+ "The count of affected rows of the statement on the target.",
+ },
+ {
+ name: "file",
+ type: "string",
+ description: "The file path that is being checked.",
+ },
+ {
+ name: "riskLevel",
+ type: "bytebase.v1.RiskLevel",
+ description: "The risk level of the statement on the target.",
+ },
+ {
+ name: "target",
+ type: "string",
+ description:
+ "The target that the check is performed on.\n Should be a database. Format: instances/{instance}/databases/{database}",
+ },
+ ],
+ description: "Check result for a single release file on a target database.",
+ },
+ "bytebase.v1.ColumnCatalog": {
+ type: "object",
+ properties: [
+ {
+ name: "classification",
+ type: "string",
+ description: "The data classification level for this column.",
+ },
+ {
+ name: "labels",
+ type: "object",
+ description: "User-defined labels for this column.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The column name.",
+ },
+ {
+ name: "objectSchema",
+ type: "object",
+ description: "Object schema for complex column types like JSON.",
+ },
+ {
+ name: "semanticType",
+ type: "string",
+ description: "The semantic type describing the data purpose.",
+ },
+ ],
+ description: "Column metadata within a table.",
+ },
+ "bytebase.v1.ColumnCatalog.LabelsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ColumnMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "characterSet",
+ type: "string",
+ description: "The character_set is the character_set of a column.",
+ },
+ {
+ name: "collation",
+ type: "string",
+ description: "The collation is the collation of a column.",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of a column.",
+ },
+ {
+ name: "default",
+ type: "string",
+ description: "The default value of column.",
+ },
+ {
+ name: "defaultConstraintName",
+ type: "string",
+ description:
+ "The default_constraint_name is the name of the default constraint, MSSQL only.\n In MSSQL, default values are implemented as named constraints. When modifying or\n dropping a column's default value, you must reference the constraint by name.\n This field stores the actual constraint name from the database.\n\n Example: A column definition like:\n CREATE TABLE employees (\n status NVARCHAR(20) DEFAULT 'active'\n )\n\n Will create a constraint with an auto-generated name like 'DF__employees__statu__3B75D760'\n or a user-defined name if specified:\n ALTER TABLE employees ADD CONSTRAINT DF_employees_status DEFAULT 'active' FOR status\n\n To modify the default, you must first drop the existing constraint by name:\n ALTER TABLE employees DROP CONSTRAINT DF__employees__statu__3B75D760\n ALTER TABLE employees ADD CONSTRAINT DF_employees_status DEFAULT 'inactive' FOR status\n\n This field is populated when syncing from the database. When empty (e.g., when parsing\n from SQL files), the system cannot automatically drop the constraint.",
+ },
+ {
+ name: "defaultOnNull",
+ type: "boolean",
+ description:
+ "Oracle specific metadata.\n The default_on_null is the default on null of a column.",
+ },
+ {
+ name: "generation",
+ type: "bytebase.v1.GenerationMetadata",
+ description: "The generation is the generation of a column.",
+ },
+ {
+ name: "hasDefault",
+ type: "boolean",
+ },
+ {
+ name: "identityGeneration",
+ type: "bytebase.v1.ColumnMetadata.IdentityGeneration",
+ description:
+ "The identity_generation is for identity columns, PG only.",
+ },
+ {
+ name: "identityIncrement",
+ type: "integer",
+ description:
+ "The identity_increment is for identity columns, MSSQL only.",
+ },
+ {
+ name: "identitySeed",
+ type: "integer",
+ description: "The identity_seed is for identity columns, MSSQL only.",
+ },
+ {
+ name: "isIdentity",
+ type: "boolean",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a column.",
+ },
+ {
+ name: "nullable",
+ type: "boolean",
+ description: "The nullable is the nullable of a column.",
+ },
+ {
+ name: "onUpdate",
+ type: "string",
+ description:
+ "The on_update is the on update action of a column.\n For MySQL like databases, it's only supported for TIMESTAMP columns with\n CURRENT_TIMESTAMP as on update value.",
+ },
+ {
+ name: "position",
+ type: "integer",
+ description: "The position is the position in columns.",
+ },
+ {
+ name: "type",
+ type: "string",
+ description: "The type is the type of a column.",
+ },
+ ],
+ description: "ColumnMetadata is the metadata for columns.",
+ },
+ "bytebase.v1.ColumnMetadata.IdentityGeneration": {
+ type: "enum",
+ values: ["IDENTITY_GENERATION_UNSPECIFIED", "ALWAYS", "BY_DEFAULT"],
+ description: "",
+ },
+ "bytebase.v1.CreateAccessGrantRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "accessGrant",
+ type: "bytebase.v1.AccessGrant",
+ description: "The access grant to create.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent project for the access grant.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateDatabaseGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "databaseGroup",
+ type: "bytebase.v1.DatabaseGroup",
+ description: "The database group to create.",
+ },
+ {
+ name: "databaseGroupId",
+ type: "string",
+ description:
+ "The ID to use for the database group, which will become the final component of\n the database group's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /[a-z][0-9]-/.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where this database group will be created.\n Format: projects/{project}",
+ },
+ {
+ name: "validateOnly",
+ type: "boolean",
+ description:
+ "If set, validate the create request and preview the full database group response, but do not actually create it.",
+ },
+ ],
+ description: "Request message for creating a database group.",
+ },
+ "bytebase.v1.CreateGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "group",
+ type: "bytebase.v1.Group",
+ description: "The group to create.",
+ },
+ {
+ name: "groupEmail",
+ type: "string",
+ description:
+ "The email to use for the group, which will become the final component\n of the group's resource name.",
+ },
+ ],
+ description: "Request message for creating a group.",
+ },
+ "bytebase.v1.CreateIdentityProviderRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "identityProvider",
+ type: "bytebase.v1.IdentityProvider",
+ description: "The identity provider to create.",
+ },
+ {
+ name: "identityProviderId",
+ type: "string",
+ description:
+ "The ID to use for the identity provider, which will become the final component of\n the identity provider's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /[a-z][0-9]-/.",
+ },
+ {
+ name: "validateOnly",
+ type: "boolean",
+ description:
+ "If set to true, the request will be validated without actually creating the identity provider.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateInstanceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "instance",
+ type: "bytebase.v1.Instance",
+ description: "The instance to create.",
+ },
+ {
+ name: "instanceId",
+ type: "string",
+ description:
+ "The ID to use for the instance, which will become the final component of\n the instance's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /[a-z][0-9]-/.",
+ },
+ {
+ name: "validateOnly",
+ type: "boolean",
+ description: "Validate only also tests the data source connection.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateIssueCommentRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "issueComment",
+ type: "bytebase.v1.IssueComment",
+ description: "The comment to create.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The issue name\n Format: projects/{project}/issues/{issue}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateIssueRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "issue",
+ type: "bytebase.v1.Issue",
+ description: "The issue to create.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent, which owns this collection of issues.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreatePlanRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent project where this plan will be created.\n Format: projects/{project}",
+ },
+ {
+ name: "plan",
+ type: "bytebase.v1.Plan",
+ description: "The plan to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreatePolicyRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where this instance will be created.\n Workspace resource name: workspaces/{workspace-id}.\n Environment resource name: environments/environment-id.\n Instance resource name: instances/instance-id.\n Database resource name: instances/instance-id/databases/database-name.",
+ },
+ {
+ name: "policy",
+ type: "bytebase.v1.Policy",
+ description: "The policy to create.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.PolicyType",
+ description: "The type of policy to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateProjectRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "project",
+ type: "bytebase.v1.Project",
+ description: "The project to create.",
+ },
+ {
+ name: "projectId",
+ type: "string",
+ description:
+ "The ID to use for the project, which will become the final component of\n the project's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /[a-z][0-9]-/.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreatePurchaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "interval",
+ type: "bytebase.v1.BillingInterval",
+ },
+ {
+ name: "plan",
+ type: "bytebase.v1.PlanType",
+ },
+ {
+ name: "seats",
+ type: "integer",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateReleaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description: "Format: projects/{project}",
+ },
+ {
+ name: "release",
+ type: "bytebase.v1.Release",
+ description: "The release to create.",
+ },
+ {
+ name: "releaseIdTemplate",
+ type: "string",
+ description:
+ 'Template for release ID generation.\n Available variables: {date}, {time}, {timestamp}, {iteration}.\n Example: "release_{date}-RC{iteration}" generates "release_20260119-RC00".\n Default: "release_{date}-RC{iteration}".',
+ },
+ {
+ name: "releaseIdTimezone",
+ type: "string",
+ description:
+ 'Timezone for {date} and {time} variables in the template.\n Must be a valid IANA timezone (e.g., "UTC", "America/Los_Angeles").\n Default: "UTC".',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateReviewConfigRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "reviewConfig",
+ type: "bytebase.v1.ReviewConfig",
+ description: "The SQL review config to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateRevisionRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description: "Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "revision",
+ type: "bytebase.v1.Revision",
+ description: "The revision to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateRoleRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "role",
+ type: "bytebase.v1.Role",
+ description: "The role to create.",
+ },
+ {
+ name: "roleId",
+ type: "string",
+ description:
+ "The ID to use for the role, which will become the final component\n of the role's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /[a-z][A-Z][0-9]/.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateRolloutRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent plan for which this rollout will be created.\n Format: projects/{project}/plans/{plan}",
+ },
+ {
+ name: "target",
+ type: "string",
+ description:
+ 'Create the rollout only for the specified target.\n Format: environments/{environment}\n If unspecified, all stages are created.\n If set to "", no stages are created.',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateServiceAccountRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where this service account will be created.\n Format: projects/{project} for project-level, workspaces/{id} for workspace-level.",
+ },
+ {
+ name: "serviceAccount",
+ type: "bytebase.v1.ServiceAccount",
+ description: "The service account to create.",
+ },
+ {
+ name: "serviceAccountId",
+ type: "string",
+ description:
+ "The ID to use for the service account, which will become the final component\n of the service account's email in the format: {service_account_id}@service.bytebase.com\n or {service_account_id}@{project-id}.service.bytebase.com",
+ },
+ ],
+ description: "Request message for creating a service account.",
+ },
+ "bytebase.v1.CreateSheetRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where this sheet will be created.\n Format: projects/{project}",
+ },
+ {
+ name: "sheet",
+ type: "bytebase.v1.Sheet",
+ description: "The sheet to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateUserRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "user",
+ type: "bytebase.v1.User",
+ description: "The user to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.CreateWorkloadIdentityRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where this workload identity will be created.\n Format: projects/{project} for project-level, workspaces/{id} for workspace-level.",
+ },
+ {
+ name: "workloadIdentity",
+ type: "bytebase.v1.WorkloadIdentity",
+ description: "The workload identity to create.",
+ },
+ {
+ name: "workloadIdentityId",
+ type: "string",
+ description:
+ "The ID to use for the workload identity, which will become the final component\n of the workload identity's email in the format: {workload_identity_id}@workload.bytebase.com\n or {workload_identity_id}@{project-id}.workload.bytebase.com",
+ },
+ ],
+ description: "Request message for creating a workload identity.",
+ },
+ "bytebase.v1.CreateWorksheetRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource where this worksheet will be created.\n Format: projects/{project}",
+ },
+ {
+ name: "worksheet",
+ type: "bytebase.v1.Worksheet",
+ description: "The worksheet to create.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataClassificationSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "configs",
+ type: "array<bytebase.v1.DataClassificationSetting.DataClassificationConfig>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataClassificationSetting.DataClassificationConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "classification",
+ type: "object",
+ description:
+ "classification is the id - DataClassification map.\n The id should in [0-9]+-[0-9]+-[0-9]+ format.",
+ },
+ {
+ name: "id",
+ type: "string",
+ description:
+ "id is the uuid for classification. Each project can chose one classification config.",
+ },
+ {
+ name: "levels",
+ type: "array<bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level>",
+ description: "levels is user defined level list for classification.",
+ },
+ {
+ name: "title",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry":
+ {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification":
+ {
+ type: "object",
+ properties: [
+ {
+ name: "id",
+ type: "string",
+ description:
+ "id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.",
+ },
+ {
+ name: "level",
+ type: "integer",
+ description: "The sensitivity level. Maps to Level.level.",
+ },
+ {
+ name: "title",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level": {
+ type: "object",
+ properties: [
+ {
+ name: "level",
+ type: "integer",
+ description: "The numeric level for ordering. Higher = more sensitive.",
+ },
+ {
+ name: "title",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource": {
+ type: "object",
+ properties: [
+ {
+ name: "additionalAddresses",
+ type: "array<bytebase.v1.DataSource.Address>",
+ description: "additional_addresses is used for MongoDB replica set.",
+ },
+ {
+ name: "authenticationDatabase",
+ type: "string",
+ description:
+ "authentication_database is the database name to authenticate against, which stores the user credentials.",
+ },
+ {
+ name: "authenticationPrivateKey",
+ type: "string",
+ description:
+ "PKCS#8 private key in PEM format. If it's empty string, no private key is required.\n Used for authentication when connecting to the data source.",
+ },
+ {
+ name: "authenticationPrivateKeyPassphrase",
+ type: "string",
+ description:
+ "Passphrase for the encrypted PKCS#8 private key. Only used when the private key is encrypted.",
+ },
+ {
+ name: "authenticationType",
+ type: "bytebase.v1.DataSource.AuthenticationType",
+ },
+ {
+ name: "cluster",
+ type: "string",
+ description:
+ "Cluster is the cluster name for the data source. Used by CockroachDB.",
+ },
+ {
+ name: "database",
+ type: "string",
+ description: "The name of the database to connect to.",
+ },
+ {
+ name: "directConnection",
+ type: "boolean",
+ description:
+ "direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string.",
+ },
+ {
+ name: "externalSecret",
+ type: "bytebase.v1.DataSourceExternalSecret",
+ },
+ {
+ name: "extraConnectionParameters",
+ type: "object",
+ description:
+ "Extra connection parameters for the database connection.\n For PostgreSQL HA, this can be used to set target_session_attrs=read-write",
+ },
+ {
+ name: "host",
+ type: "string",
+ description: "The hostname or IP address of the database server.",
+ },
+ {
+ name: "id",
+ type: "string",
+ description: "The unique identifier for this data source.",
+ },
+ {
+ name: "masterName",
+ type: "string",
+ description:
+ "master_name is the master name used by connecting redis-master via redis sentinel.",
+ },
+ {
+ name: "masterPassword",
+ type: "string",
+ },
+ {
+ name: "masterUsername",
+ type: "string",
+ description:
+ "master_username and master_password are master credentials used by redis sentinel mode.",
+ },
+ {
+ name: "password",
+ type: "string",
+ description: "The password for database authentication.",
+ },
+ {
+ name: "port",
+ type: "string",
+ description: "The port number of the database server.",
+ },
+ {
+ name: "redisType",
+ type: "bytebase.v1.DataSource.RedisType",
+ },
+ {
+ name: "region",
+ type: "string",
+ description:
+ "region is the location of where the DB is, works for AWS RDS. For example, us-east-1.",
+ },
+ {
+ name: "replicaSet",
+ type: "string",
+ description: "replica_set is used for MongoDB replica set.",
+ },
+ {
+ name: "saslConfig",
+ type: "bytebase.v1.SASLConfig",
+ },
+ {
+ name: "serviceName",
+ type: "string",
+ },
+ {
+ name: "sid",
+ type: "string",
+ description: "sid and service_name are used for Oracle.",
+ },
+ {
+ name: "srv",
+ type: "boolean",
+ description:
+ "srv, authentication_database and replica_set are used for MongoDB.\n srv is a boolean flag that indicates whether the host is a DNS SRV record.",
+ },
+ {
+ name: "sshHost",
+ type: "string",
+ description:
+ "Connection over SSH.\n The hostname of the SSH server agent.\n Required.",
+ },
+ {
+ name: "sshPassword",
+ type: "string",
+ description:
+ "The password to login the server. If it's empty string, no password is required.",
+ },
+ {
+ name: "sshPort",
+ type: "string",
+ description:
+ "The port of the SSH server agent. It's 22 typically.\n Required.",
+ },
+ {
+ name: "sshPrivateKey",
+ type: "string",
+ description:
+ 'The private key to login the server. If it\'s empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK").',
+ },
+ {
+ name: "sshUser",
+ type: "string",
+ description: "The user to login the server.\n Required.",
+ },
+ {
+ name: "sslCa",
+ type: "string",
+ description: "The SSL certificate authority certificate.",
+ },
+ {
+ name: "sslCert",
+ type: "string",
+ description: "The SSL client certificate.",
+ },
+ {
+ name: "sslKey",
+ type: "string",
+ description: "The SSL client private key.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.DataSourceType",
+ description: "The type of data source (ADMIN or READ_ONLY).",
+ },
+ {
+ name: "username",
+ type: "string",
+ description: "The username for database authentication.",
+ },
+ {
+ name: "useSsl",
+ type: "boolean",
+ description:
+ "Use SSL to connect to the data source. By default, we use system default SSL configuration.",
+ },
+ {
+ name: "verifyTlsCertificate",
+ type: "boolean",
+ description:
+ "verify_tls_certificate enables TLS certificate verification for SSL connections.\n Default is false (no verification) for backward compatibility.\n Set to true for secure connections (recommended for production).\n Only set to false for development or when certificates cannot be properly\n validated (e.g., self-signed certs, VPN environments).",
+ },
+ {
+ name: "warehouseId",
+ type: "string",
+ description: "warehouse_id is used by Databricks.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.AWSCredential": {
+ type: "object",
+ properties: [
+ {
+ name: "accessKeyId",
+ type: "string",
+ },
+ {
+ name: "externalId",
+ type: "string",
+ description:
+ "Optional external ID for additional security when assuming role.\n See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html",
+ },
+ {
+ name: "roleArn",
+ type: "string",
+ description:
+ "ARN of IAM role to assume for cross-account access.\n See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html",
+ },
+ {
+ name: "secretAccessKey",
+ type: "string",
+ },
+ {
+ name: "sessionToken",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.Address": {
+ type: "object",
+ properties: [
+ {
+ name: "host",
+ type: "string",
+ },
+ {
+ name: "port",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.AuthenticationType": {
+ type: "enum",
+ values: [
+ "AUTHENTICATION_UNSPECIFIED",
+ "PASSWORD",
+ "GOOGLE_CLOUD_SQL_IAM",
+ "AWS_RDS_IAM",
+ "AZURE_IAM",
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.AzureCredential": {
+ type: "object",
+ properties: [
+ {
+ name: "clientId",
+ type: "string",
+ },
+ {
+ name: "clientSecret",
+ type: "string",
+ },
+ {
+ name: "tenantId",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.ExtraConnectionParametersEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.GCPCredential": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSource.RedisType": {
+ type: "enum",
+ values: ["REDIS_TYPE_UNSPECIFIED", "STANDALONE", "SENTINEL", "CLUSTER"],
+ description: "",
+ },
+ "bytebase.v1.DataSourceExternalSecret": {
+ type: "object",
+ properties: [
+ {
+ name: "authType",
+ type: "bytebase.v1.DataSourceExternalSecret.AuthType",
+ description:
+ "The authentication method for accessing the secret store.",
+ },
+ {
+ name: "engineName",
+ type: "string",
+ description: "engine name is the name for secret engine.",
+ },
+ {
+ name: "passwordKeyName",
+ type: "string",
+ description: "the key name for the password.",
+ },
+ {
+ name: "secretName",
+ type: "string",
+ description: "the secret name in the engine to store the password.",
+ },
+ {
+ name: "secretType",
+ type: "bytebase.v1.DataSourceExternalSecret.SecretType",
+ description: "The type of external secret store.",
+ },
+ {
+ name: "skipVaultTlsVerification",
+ type: "boolean",
+ description:
+ "TLS configuration for connecting to Vault server.\n These fields are separate from the database TLS configuration in DataSource.\n skip_vault_tls_verification disables TLS certificate verification for Vault connections.\n Default is false (verification enabled) for security.\n Only set to true for development or when certificates cannot be properly validated.",
+ },
+ {
+ name: "url",
+ type: "string",
+ description: "The URL of the external secret store.",
+ },
+ {
+ name: "vaultSslCa",
+ type: "string",
+ description: "CA certificate for Vault server verification.",
+ },
+ {
+ name: "vaultSslCert",
+ type: "string",
+ description:
+ "Client certificate for mutual TLS authentication with Vault.",
+ },
+ {
+ name: "vaultSslKey",
+ type: "string",
+ description:
+ "Client private key for mutual TLS authentication with Vault.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption": {
+ type: "object",
+ properties: [
+ {
+ name: "mountPath",
+ type: "string",
+ description: "The path where the approle auth method is mounted.",
+ },
+ {
+ name: "roleId",
+ type: "string",
+ description: "The role ID for Vault AppRole authentication.",
+ },
+ {
+ name: "secretId",
+ type: "string",
+ description: "the secret id for the role without ttl.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType",
+ description: "The type of secret for AppRole authentication.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType": {
+ type: "enum",
+ values: ["SECRET_TYPE_UNSPECIFIED", "PLAIN", "ENVIRONMENT"],
+ description: "",
+ },
+ "bytebase.v1.DataSourceExternalSecret.AuthType": {
+ type: "enum",
+ values: ["AUTH_TYPE_UNSPECIFIED", "TOKEN", "VAULT_APP_ROLE"],
+ description: "",
+ },
+ "bytebase.v1.DataSourceExternalSecret.SecretType": {
+ type: "enum",
+ values: [
+ "SECRET_TYPE_UNSPECIFIED",
+ "VAULT_KV_V2",
+ "AWS_SECRETS_MANAGER",
+ "GCP_SECRET_MANAGER",
+ "AZURE_KEY_VAULT",
+ ],
+ description: "",
+ },
+ "bytebase.v1.DataSourceType": {
+ type: "enum",
+ values: ["DATA_SOURCE_UNSPECIFIED", "ADMIN", "READ_ONLY"],
+ description: "",
+ },
+ "bytebase.v1.Database": {
+ type: "object",
+ properties: [
+ {
+ name: "backupAvailable",
+ type: "boolean",
+ description: "The database is available for DML prior backup.",
+ },
+ {
+ name: "effectiveEnvironment",
+ type: "string",
+ description:
+ "The effective environment based on environment tag above and environment\n tag on the instance. Inheritance follows\n https://cloud.google.com/resource-manager/docs/tags/tags-overview.",
+ },
+ {
+ name: "environment",
+ type: "string",
+ description:
+ "The environment resource.\n Format: environments/prod where prod is the environment resource ID.",
+ },
+ {
+ name: "instanceResource",
+ type: "bytebase.v1.InstanceResource",
+ description: "The instance resource.",
+ },
+ {
+ name: "labels",
+ type: "object",
+ description: "Labels will be used for deployment and policy control.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database.\n Format: instances/{instance}/databases/{database}\n {database} is the database name in the instance.",
+ },
+ {
+ name: "project",
+ type: "string",
+ description: "The project for a database.\n Format: projects/{project}",
+ },
+ {
+ name: "release",
+ type: "string",
+ description:
+ "The release that was last applied to this database.\n Format: projects/{project}/releases/{release_id}\n Example: projects/my-project/releases/release_20260115-RC00",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The existence of a database.",
+ },
+ {
+ name: "successfulSyncTime",
+ type: "google.protobuf.Timestamp",
+ description: "The latest synchronization time.",
+ },
+ {
+ name: "syncError",
+ type: "string",
+ description: "The error message if sync failed.",
+ },
+ {
+ name: "syncStatus",
+ type: "bytebase.v1.SyncStatus",
+ description: "The sync status of the database.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Database.LabelsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DatabaseCatalog": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database catalog.\n Format: instances/{instance}/databases/{database}/catalog",
+ },
+ {
+ name: "schemas",
+ type: "array<bytebase.v1.SchemaCatalog>",
+ description: "The schemas in the database.",
+ },
+ ],
+ description:
+ "Catalog metadata for a database including schemas, tables, and columns.",
+ },
+ "bytebase.v1.DatabaseChangeMode": {
+ type: "enum",
+ values: ["DATABASE_CHANGE_MODE_UNSPECIFIED", "PIPELINE", "EDITOR"],
+ description: "",
+ },
+ "bytebase.v1.DatabaseGroup": {
+ type: "object",
+ properties: [
+ {
+ name: "databaseExpr",
+ type: "google.type.Expr",
+ description:
+ 'The condition that is associated with this database group.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Support variables:\n resource.environment_id: the environment resource id. Support "==", "!=", "in [XX]", "!(in [xx])" operations.\n resource.instance_id: the instance resource id. Support "==", "!=", "in [XX]", "!(in [xx])", "contains", "matches", "startsWith", "endsWith" operations.\n resource.database_name: the database name. Support "==", "!=", "in [XX]", "!(in [xx])", "contains", "matches", "startsWith", "endsWith" operations.\n resource.database_labels: the database labels. Support map access operations.\n All variables should join with "&&" condition.\n\n For example:\n resource.environment_id == "test" && resource.database_name.startsWith("sample_")\n resource.database_labels["tenant"] == "tenant1"',
+ },
+ {
+ name: "matchedDatabases",
+ type: "array<bytebase.v1.DatabaseGroup.Database>",
+ description:
+ "The list of databases that match the database group condition.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database group.\n Format: projects/{project}/databaseGroups/{databaseGroup}",
+ },
+ {
+ name: "title",
+ type: "string",
+ description:
+ "The short name used in actual databases specified by users.",
+ },
+ ],
+ description: "A group of databases matched by expressions.",
+ },
+ "bytebase.v1.DatabaseGroup.Database": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The resource name of the database.\n Format: instances/{instance}/databases/{database}",
+ },
+ ],
+ description: "A database within a database group.",
+ },
+ "bytebase.v1.DatabaseGroupView": {
+ type: "enum",
+ values: [
+ "DATABASE_GROUP_VIEW_UNSPECIFIED",
+ "DATABASE_GROUP_VIEW_BASIC",
+ "DATABASE_GROUP_VIEW_FULL",
+ ],
+ description: "View options for database group responses.",
+ },
+ "bytebase.v1.DatabaseMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "characterSet",
+ type: "string",
+ description: "The character_set is the character set of a database.",
+ },
+ {
+ name: "collation",
+ type: "string",
+ description: "The collation is the collation of a database.",
+ },
+ {
+ name: "extensions",
+ type: "array<bytebase.v1.ExtensionMetadata>",
+ description: "The extensions is the list of extensions in a database.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The database metadata name.\n\n Format: instances/{instance}/databases/{database}/metadata",
+ },
+ {
+ name: "owner",
+ type: "string",
+ description: "The owner of the database.",
+ },
+ {
+ name: "schemas",
+ type: "array<bytebase.v1.SchemaMetadata>",
+ description: "The schemas is the list of schemas in a database.",
+ },
+ {
+ name: "searchPath",
+ type: "string",
+ description:
+ "The search_path is the search path of a PostgreSQL database.",
+ },
+ ],
+ description: "DatabaseMetadata is the metadata for databases.",
+ },
+ "bytebase.v1.DatabaseSDLSchema": {
+ type: "object",
+ properties: [
+ {
+ name: "contentType",
+ type: "string",
+ description:
+ 'The MIME type of the schema content.\n Indicates how the client should interpret the schema field.\n Examples:\n - "text/plain; charset=utf-8" for SINGLE_FILE format\n - "application/zip" for MULTI_FILE format',
+ },
+ {
+ name: "schema",
+ type: "string",
+ description:
+ "The SDL schema content.\n - For SINGLE_FILE format: contains the complete SDL schema as a text string.\n - For MULTI_FILE format: contains the ZIP archive as binary data.",
+ },
+ ],
+ description: "DatabaseSDLSchema contains the schema in SDL format.",
+ },
+ "bytebase.v1.DatabaseSchema": {
+ type: "object",
+ properties: [
+ {
+ name: "schema",
+ type: "string",
+ description: "The schema dump from database.",
+ },
+ ],
+ description: "DatabaseSchema is the metadata for databases.",
+ },
+ "bytebase.v1.DeleteDatabaseGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database group to delete.\n Format: projects/{project}/databaseGroups/{databaseGroup}",
+ },
+ ],
+ description: "Request message for deleting a database group.",
+ },
+ "bytebase.v1.DeleteGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the group to delete.\n Format: groups/{email}",
+ },
+ ],
+ description: "Request message for deleting a group.",
+ },
+ "bytebase.v1.DeleteIdentityProviderRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the identity provider to delete.\n Format: idps/{identity_provider}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteInstanceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "force",
+ type: "boolean",
+ description:
+ "If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the instance to delete.\n Format: instances/{instance}",
+ },
+ {
+ name: "purge",
+ type: "boolean",
+ description:
+ "If set to true, permanently purge the soft-deleted instance and all related resources.\n This operation is irreversible. Following AIP-165, this should only be used for\n administrative cleanup of old soft-deleted instances.\n The instance must already be soft-deleted for this to work.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeletePolicyRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The policy's `name` field is used to identify the instance to update.\n Format: {resource name}/policies/{policy type}\n Workspace resource name: workspaces/{workspace-id}.\n Environment resource name: environments/environment-id.\n Instance resource name: instances/instance-id.\n Database resource name: instances/instance-id/databases/database-name.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteProjectRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the project to delete.\n Format: projects/{project}",
+ },
+ {
+ name: "purge",
+ type: "boolean",
+ description:
+ "If set to true, permanently purge the soft-deleted project and all related resources.\n This operation is irreversible. Following AIP-165, this should only be used for\n administrative cleanup of old soft-deleted projects.\n The project must already be soft-deleted for this to work.\n When purge=true, all databases will be moved to the default project before deletion.\n When purge=false (soft delete/archive), the project and its databases/issues remain unchanged.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteReleaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the release to delete.\n Format: projects/{project}/releases/{release}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteReviewConfigRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the SQL review config to delete.\n Format: reviewConfigs/{reviewConfig}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteRevisionRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the revision to delete.\n Format: instances/{instance}/databases/{database}/revisions/{revision}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteRoleRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the role to delete.\n Format: roles/{role}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteServiceAccountRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the service account to delete.\n Format: serviceAccounts/{email}",
+ },
+ ],
+ description: "Request message for deleting a service account.",
+ },
+ "bytebase.v1.DeleteUserRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the user to delete.\n Format: users/{email}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DeleteWorkloadIdentityRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the workload identity to delete.\n Format: workloadIdentities/{email}",
+ },
+ ],
+ description: "Request message for deleting a workload identity.",
+ },
+ "bytebase.v1.DeleteWorksheetRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the worksheet to delete.\n Format: projects/{project}/worksheets/{worksheet}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DependencyColumn": {
+ type: "object",
+ properties: [
+ {
+ name: "column",
+ type: "string",
+ description: "The column is the name of a reference column.",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description: "The schema is the schema of a reference column.",
+ },
+ {
+ name: "table",
+ type: "string",
+ description: "The table is the table of a reference column.",
+ },
+ ],
+ description: "DependencyColumn is the metadata for dependency columns.",
+ },
+ "bytebase.v1.DependencyTable": {
+ type: "object",
+ properties: [
+ {
+ name: "schema",
+ type: "string",
+ description: "The schema is the schema of a reference table.",
+ },
+ {
+ name: "table",
+ type: "string",
+ description: "The table is the name of a reference table.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DiffMetadataRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "engine",
+ type: "bytebase.v1.Engine",
+ description: "The database engine of the schema.",
+ },
+ {
+ name: "sourceMetadata",
+ type: "bytebase.v1.DatabaseMetadata",
+ description: "The metadata of the source schema.",
+ },
+ {
+ name: "targetMetadata",
+ type: "bytebase.v1.DatabaseMetadata",
+ description: "The metadata of the target schema.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DiffMetadataResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "diff",
+ type: "string",
+ description: "The diff of the metadata.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DiffSchemaRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database or changelog.\n Format:\n database: instances/{instance}/databases/{database}\n changelog: instances/{instance}/databases/{database}/changelogs/{changelog}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DiffSchemaResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "diff",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.DimensionConstraint": {
+ type: "object",
+ properties: [
+ {
+ name: "dimension",
+ type: "string",
+ description: "Dimension name/type (X, Y, Z, M, etc.)",
+ },
+ {
+ name: "maxValue",
+ type: "number",
+ description: "Maximum value for this dimension",
+ },
+ {
+ name: "minValue",
+ type: "number",
+ description: "Minimum value for this dimension",
+ },
+ {
+ name: "tolerance",
+ type: "number",
+ description: "Tolerance for this dimension",
+ },
+ ],
+ description:
+ "DimensionConstraint defines constraints for a spatial dimension.",
+ },
+ "bytebase.v1.DimensionalConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "constraints",
+ type: "array<bytebase.v1.DimensionConstraint>",
+ description: "Coordinate system constraints",
+ },
+ {
+ name: "dataType",
+ type: "string",
+ description:
+ "Spatial data type (GEOMETRY, GEOGRAPHY, POINT, POLYGON, etc.)",
+ },
+ {
+ name: "dimensions",
+ type: "integer",
+ description: "Number of dimensions (2-4, default 2)",
+ },
+ {
+ name: "srid",
+ type: "integer",
+ description: "Spatial reference system identifier (SRID)",
+ },
+ ],
+ description:
+ "DimensionalConfig defines dimensional and constraint parameters for spatial indexes.",
+ },
+ "bytebase.v1.Engine": {
+ type: "enum",
+ values: [
+ "ENGINE_UNSPECIFIED",
+ "CLICKHOUSE",
+ "MYSQL",
+ "POSTGRES",
+ "SNOWFLAKE",
+ "SQLITE",
+ "TIDB",
+ "MONGODB",
+ "REDIS",
+ "ORACLE",
+ "SPANNER",
+ "MSSQL",
+ "REDSHIFT",
+ "MARIADB",
+ "OCEANBASE",
+ "STARROCKS",
+ "DORIS",
+ "HIVE",
+ "ELASTICSEARCH",
+ "BIGQUERY",
+ "DYNAMODB",
+ "DATABRICKS",
+ "COCKROACHDB",
+ "COSMOSDB",
+ "TRINO",
+ "CASSANDRA",
+ ],
+ description: "Database engine type.",
+ },
+ "bytebase.v1.EnumTypeMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment describing the enum type.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of a type.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ description:
+ "Whether to skip this enum type during schema dump operations.",
+ },
+ {
+ name: "values",
+ type: "array<string>",
+ description: "The enum values of a type.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.EnvironmentSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "environments",
+ type: "array<bytebase.v1.EnvironmentSetting.Environment>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.EnvironmentSetting.Environment": {
+ type: "object",
+ properties: [
+ {
+ name: "color",
+ type: "string",
+ },
+ {
+ name: "id",
+ type: "string",
+ description:
+ "The resource id of the environment.\n This value should be 4-63 characters, and valid characters\n are /[a-z][0-9]-/.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The resource name of the environment.\n Format: environments/{environment}.\n Output only.",
+ },
+ {
+ name: "tags",
+ type: "object",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display name of the environment.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.EnvironmentSetting.Environment.TagsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.EventMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "characterSetClient",
+ type: "string",
+ description: "The character set used by the client creating the event.",
+ },
+ {
+ name: "collationConnection",
+ type: "string",
+ description:
+ "The collation used for the connection when creating the event.",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of an event.",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The schedule of the event.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the event.",
+ },
+ {
+ name: "sqlMode",
+ type: "string",
+ description: "The SQL mode setting for the event.",
+ },
+ {
+ name: "timeZone",
+ type: "string",
+ description: "The time zone of the event.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ExchangeTokenRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "email",
+ type: "string",
+ description:
+ "Workload Identity email for identifying which identity to authenticate as.\n Format: {name}@workload.bytebase.com",
+ },
+ {
+ name: "token",
+ type: "string",
+ description: "External OIDC token (JWT) from CI/CD platform.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ExchangeTokenResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "accessToken",
+ type: "string",
+ description: "Bytebase access token.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ExportAuditLogsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ "The filter of the log. It should be a valid CEL expression.\n Check the filter field in the SearchAuditLogsRequest message.",
+ },
+ {
+ name: "format",
+ type: "bytebase.v1.ExportFormat",
+ description: "The export format.",
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of the log.\n Only support order by create_time. The default sorting order is ascending.\n For example:\n - order_by = "create_time asc"\n - order_by = "create_time desc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of logs to return.\n The service may return fewer than this value.\n If unspecified, at most 10 log entries will be returned.\n The maximum value is 5000; values above 5000 will be coerced to 5000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ExportAuditLogs` call.\n Provide this to retrieve the subsequent page.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ },
+ ],
+ description: "Request message for exporting audit logs.",
+ },
+ "bytebase.v1.ExportAuditLogsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ description: "The exported audit log content in the requested format.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token to retrieve next page of log entities.\n Pass this value in the page_token field in the subsequent call\n to retrieve the next page of log entities.",
+ },
+ ],
+ description: "Response message for exporting audit logs.",
+ },
+ "bytebase.v1.ExportFormat": {
+ type: "enum",
+ values: ["FORMAT_UNSPECIFIED", "CSV", "JSON", "SQL", "XLSX"],
+ description: "Data export format.",
+ },
+ "bytebase.v1.ExportRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "admin",
+ type: "boolean",
+ description:
+ "The admin is used for workspace owner and DBA for exporting data from SQL\n Editor Admin mode. The exported data is not masked.",
+ },
+ {
+ name: "dataSourceId",
+ type: "string",
+ description:
+ "The id of data source.\n If omitted, Export resolves the data source server-side by using the\n single read-only data source when exactly one exists, or the admin data\n source otherwise. It can also be set explicitly to export from the admin\n data source or a specific read-only data source.",
+ },
+ {
+ name: "format",
+ type: "bytebase.v1.ExportFormat",
+ description: "The export format.",
+ },
+ {
+ name: "limit",
+ type: "integer",
+ description: "The maximum number of rows to return.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name is the resource name to execute the export against.\n Format: instances/{instance}/databases/{database}\n Format: instances/{instance}\n Format: projects/{project}/plans/{plan}/rollout\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}",
+ },
+ {
+ name: "password",
+ type: "string",
+ description: "The zip password provide by users.",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description:
+ "The default schema to search objects. Equals to the current schema in\n Oracle and search path in Postgres.",
+ },
+ {
+ name: "statement",
+ type: "string",
+ description: "The SQL statement to execute.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ExportResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ description: "The export file content.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ExtensionMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "description",
+ type: "string",
+ description: "The description is the description of an extension.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of an extension.",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description:
+ "The schema is the extension that is installed to. But the extension usage\n is not limited to the schema.",
+ },
+ {
+ name: "version",
+ type: "string",
+ description: "The version is the version of an extension.",
+ },
+ ],
+ description: "ExtensionMetadata is the metadata for extensions.",
+ },
+ "bytebase.v1.ExternalTableMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "columns",
+ type: "array<bytebase.v1.ColumnMetadata>",
+ description:
+ "The columns is the ordered list of columns in a foreign table.",
+ },
+ {
+ name: "externalDatabaseName",
+ type: "string",
+ description:
+ "The external_database_name is the name of the external database.",
+ },
+ {
+ name: "externalServerName",
+ type: "string",
+ description:
+ "The external_server_name is the name of the external server.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a external table.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.FieldMapping": {
+ type: "object",
+ properties: [
+ {
+ name: "displayName",
+ type: "string",
+ description:
+ "DisplayName is the field name of display name in 3rd-party idp user info. Optional.",
+ },
+ {
+ name: "groups",
+ type: "string",
+ description:
+ "Groups is the field name of groups in 3rd-party idp user info. Optional.\n Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/",
+ },
+ {
+ name: "identifier",
+ type: "string",
+ description:
+ "Identifier is the field name of the unique identifier in 3rd-party idp user info. Required.",
+ },
+ {
+ name: "phone",
+ type: "string",
+ description:
+ "Phone is the field name of primary phone in 3rd-party idp user info. Optional.",
+ },
+ ],
+ description:
+ "FieldMapping saves the field names from user info API of identity provider.\n As we save all raw json string of user info response data into `principal.idp_user_info`,\n we can extract the relevant data based with `FieldMapping`.",
+ },
+ "bytebase.v1.ForeignKeyMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "columns",
+ type: "array<string>",
+ description:
+ "The columns are the ordered referencing columns of a foreign key.",
+ },
+ {
+ name: "matchType",
+ type: "string",
+ description:
+ "The match_type is the match type of a foreign key.\n The match_type is the PostgreSQL specific field.\n It's empty string for other databases.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a foreign key.",
+ },
+ {
+ name: "onDelete",
+ type: "string",
+ description: "The on_delete is the on delete action of a foreign key.",
+ },
+ {
+ name: "onUpdate",
+ type: "string",
+ description: "The on_update is the on update action of a foreign key.",
+ },
+ {
+ name: "referencedColumns",
+ type: "array<string>",
+ description:
+ "The referenced_columns are the ordered referenced columns of a foreign key.",
+ },
+ {
+ name: "referencedSchema",
+ type: "string",
+ description:
+ "The referenced_schema is the referenced schema name of a foreign key.\n It is an empty string for databases without such concept such as MySQL.",
+ },
+ {
+ name: "referencedTable",
+ type: "string",
+ description:
+ "The referenced_table is the referenced table name of a foreign key.",
+ },
+ ],
+ description: "ForeignKeyMetadata is the metadata for foreign keys.",
+ },
+ "bytebase.v1.FunctionMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "characterSetClient",
+ type: "string",
+ description: "MySQL specific metadata.",
+ },
+ {
+ name: "collationConnection",
+ type: "string",
+ },
+ {
+ name: "comment",
+ type: "string",
+ },
+ {
+ name: "databaseCollation",
+ type: "string",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition is the definition of a function.",
+ },
+ {
+ name: "dependencyTables",
+ type: "array<bytebase.v1.DependencyTable>",
+ description:
+ "The dependency_tables is the list of dependency tables of a function.\n For PostgreSQL, it's the list of tables that the function depends on the return type definition.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a function.",
+ },
+ {
+ name: "signature",
+ type: "string",
+ description:
+ "The signature is the name with the number and type of input arguments the\n function takes.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ },
+ {
+ name: "sqlMode",
+ type: "string",
+ },
+ ],
+ description: "FunctionMetadata is the metadata for functions.",
+ },
+ "bytebase.v1.GenerationMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "expression",
+ type: "string",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.GenerationMetadata.Type",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GenerationMetadata.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "VIRTUAL", "STORED"],
+ description: "",
+ },
+ "bytebase.v1.GetAccessGrantRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the access grant to retrieve.\n Format: projects/{project}/accessGrants/{access_grant}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetChangelogRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the changelog to retrieve.\n Format: instances/{instance}/databases/{database}/changelogs/{changelog}",
+ },
+ {
+ name: "view",
+ type: "bytebase.v1.ChangelogView",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetDatabaseCatalogRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database catalog to retrieve.\n Format: instances/{instance}/databases/{database}/catalog",
+ },
+ ],
+ description: "Request message for getting a database catalog.",
+ },
+ "bytebase.v1.GetDatabaseGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database group to retrieve.\n Format: projects/{project}/databaseGroups/{databaseGroup}",
+ },
+ {
+ name: "view",
+ type: "bytebase.v1.DatabaseGroupView",
+ description:
+ "The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC.",
+ },
+ ],
+ description: "Request message for getting a database group.",
+ },
+ "bytebase.v1.GetDatabaseMetadataRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter databases returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - schema: the schema name, support "==" operator.\n - table: the table name, support "==" and ".contains()" operator.\n\n For example:\n schema == "schema-a"\n table == "table-a"\n table.contains("table-a")\n schema == "schema-a" && table.contains("sample")\n The filter is used to search for tables containing "sample" in the schema "schemas/schema-a".\n The column masking level will only be returned when a table filter is used.',
+ },
+ {
+ name: "limit",
+ type: "integer",
+ description:
+ "Limit the response size of returned table metadata per schema.\n For example, if the database has 3 schemas, and each schema has 100 tables,\n if limit is 20, then only 20 tables will be returned for each schema, total 60 tables.\n Default 0, means no limit.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database to retrieve metadata.\n Format: instances/{instance}/databases/{database}/metadata",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetDatabaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database to retrieve.\n Format: instances/{instance}/databases/{database}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetDatabaseSDLSchemaRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "format",
+ type: "bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat",
+ description: "The format of the SDL schema output.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database to retrieve SDL schema.\n Format: instances/{instance}/databases/{database}/sdlSchema",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat": {
+ type: "enum",
+ values: ["SDL_FORMAT_UNSPECIFIED", "SINGLE_FILE", "MULTI_FILE"],
+ description: "SDLFormat specifies the output format for SDL schema.",
+ },
+ "bytebase.v1.GetDatabaseSchemaRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database to retrieve schema.\n Format: instances/{instance}/databases/{database}/schema",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the group to retrieve.\n Format: groups/{email}",
+ },
+ ],
+ description: "Request message for getting a group.",
+ },
+ "bytebase.v1.GetIamPolicyRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "resource",
+ type: "string",
+ description:
+ "The name of the resource to get the IAM policy.\n Format: projects/{project}\n Format: workspaces/{workspace}",
+ },
+ ],
+ description: "Request message for getting an IAM policy.",
+ },
+ "bytebase.v1.GetIdentityProviderRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the identity provider to retrieve.\n Format: idps/{idp}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetInstanceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the instance to retrieve.\n Format: instances/{instance}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetIssueRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "force",
+ type: "boolean",
+ description: "If set to true, bypass cache and fetch the latest data.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the issue to retrieve.\n Format: projects/{project}/issues/{issue}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetPlanCheckRunRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the plan check run to retrieve.\n Format: projects/{project}/plans/{plan}/planCheckRun",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetPlanRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the plan to retrieve.\n Format: projects/{project}/plans/{plan}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetPolicyRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the policy to retrieve.\n Format: {resource type}/{resource id}/policies/{policy type}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetProjectRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the project to retrieve.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetReleaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "Format: projects/{project}/releases/{release}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetReviewConfigRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the SQL review config to retrieve.\n Format: reviewConfigs/{reviewConfig}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetRevisionRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the revision.\n Format: instances/{instance}/databases/{database}/revisions/{revision}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetRoleRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the role to retrieve.\n Format: roles/{role}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetRolloutRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the rollout to retrieve.\n This is the rollout resource name, which is the plan name plus /rollout suffix.\n Format: projects/{project}/plans/{plan}/rollout",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetSchemaStringRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "metadata",
+ type: "bytebase.v1.DatabaseMetadata",
+ description:
+ "If use the metadata to generate the schema string, the type is OBJECT_TYPE_UNSPECIFIED.\n Also the schema and object are empty.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "object",
+ type: "string",
+ description: "It's empty for DATABASE and SCHEMA.",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description: "It's empty for DATABASE.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.GetSchemaStringRequest.ObjectType",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetSchemaStringRequest.ObjectType": {
+ type: "enum",
+ values: [
+ "OBJECT_TYPE_UNSPECIFIED",
+ "DATABASE",
+ "SCHEMA",
+ "TABLE",
+ "VIEW",
+ "MATERIALIZED_VIEW",
+ "FUNCTION",
+ "PROCEDURE",
+ "SEQUENCE",
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetSchemaStringResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "schemaString",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetServiceAccountRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the service account to retrieve.\n Format: serviceAccounts/{email}",
+ },
+ ],
+ description: "Request message for getting a service account.",
+ },
+ "bytebase.v1.GetSettingRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The resource name of the setting.",
+ },
+ ],
+ description: "The request message for getting a setting.",
+ },
+ "bytebase.v1.GetSettingResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "setting",
+ type: "bytebase.v1.Setting",
+ },
+ ],
+ description: "The response message for getting a setting.",
+ },
+ "bytebase.v1.GetSheetRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the sheet to retrieve.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ {
+ name: "raw",
+ type: "boolean",
+ description:
+ "By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetTaskRunLogRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetTaskRunRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetTaskRunSessionRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetUserRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the user to retrieve.\n Format: users/{email}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetWorkloadIdentityRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the workload identity to retrieve.\n Format: workloadIdentities/{email}",
+ },
+ ],
+ description: "Request message for getting a workload identity.",
+ },
+ "bytebase.v1.GetWorksheetRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the worksheet to retrieve.\n Format: projects/{project}/worksheets/{worksheet}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GetWorkspaceActuatorInfoRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The workspace name, format: workspaces/{workspace}.",
+ },
+ ],
+ description:
+ "Request message for getting workspace-scoped actuator information.",
+ },
+ "bytebase.v1.GetWorkspaceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ 'The workspace name, format: workspaces/{workspace}.\n Use "workspaces/-" to get the current/default workspace.',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.GridLevel": {
+ type: "object",
+ properties: [
+ {
+ name: "density",
+ type: "string",
+ description: "Grid density (LOW, MEDIUM, HIGH)",
+ },
+ {
+ name: "level",
+ type: "integer",
+ description: "Grid level number (1-4 for SQL Server)",
+ },
+ ],
+ description:
+ "GridLevel defines a tessellation grid level with its density.",
+ },
+ "bytebase.v1.Group": {
+ type: "object",
+ properties: [
+ {
+ name: "description",
+ type: "string",
+ description: "The description of the group.",
+ },
+ {
+ name: "email",
+ type: "string",
+ description: "The unique email for the group.",
+ },
+ {
+ name: "members",
+ type: "array<bytebase.v1.GroupMember>",
+ description: "The members of the group.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the group to retrieve.\n Format: groups/{group}, the group should be email or uuid.",
+ },
+ {
+ name: "source",
+ type: "string",
+ description:
+ "The source system where the group originated (e.g., Entra ID for SCIM sync).",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title of the group.",
+ },
+ ],
+ description: "A group of users within the workspace.",
+ },
+ "bytebase.v1.GroupMember": {
+ type: "object",
+ properties: [
+ {
+ name: "member",
+ type: "string",
+ description:
+ "Member is the principal who belong to this group.\n\n Format: users/[email protected]",
+ },
+ {
+ name: "role",
+ type: "bytebase.v1.GroupMember.Role",
+ description: "The member's role in the group.",
+ },
+ ],
+ description: "A member of a group with a role.",
+ },
+ "bytebase.v1.GroupMember.Role": {
+ type: "enum",
+ values: ["ROLE_UNSPECIFIED", "OWNER", "MEMBER"],
+ description: "The role of a group member.",
+ },
+ "bytebase.v1.IamPolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "bindings",
+ type: "array<bytebase.v1.Binding>",
+ description:
+ "Collection of binding.\n A binding binds one or more project members to a single project role.",
+ },
+ {
+ name: "etag",
+ type: "string",
+ description:
+ "The current etag of the policy.\n If an etag is provided and does not match the current etag of the policy,\n the call will be blocked and an ABORTED error will be returned.",
+ },
+ ],
+ description: "IAM policy that binds members to roles.",
+ },
+ "bytebase.v1.IdentityProvider": {
+ type: "object",
+ properties: [
+ {
+ name: "config",
+ type: "bytebase.v1.IdentityProviderConfig",
+ description: "The configuration details for the identity provider.",
+ },
+ {
+ name: "domain",
+ type: "string",
+ description:
+ "The domain for email matching when using this identity provider.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the identity provider.\n Format: idps/{idp}",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title of the identity provider.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.IdentityProviderType",
+ description: "The type of identity provider protocol.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.IdentityProviderType": {
+ type: "enum",
+ values: ["IDENTITY_PROVIDER_TYPE_UNSPECIFIED", "OAUTH2", "OIDC", "LDAP"],
+ description: "",
+ },
+ "bytebase.v1.IndexMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of an index.",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition of an index.",
+ },
+ {
+ name: "descending",
+ type: "array<boolean>",
+ description: "The descending is the ordered descending of an index.",
+ },
+ {
+ name: "expressions",
+ type: "array<string>",
+ description:
+ "The expressions are the ordered columns or expressions of an index.\n This could refer to a column or an expression.",
+ },
+ {
+ name: "granularity",
+ type: "integer",
+ description:
+ "The number of granules in the block. It's a ClickHouse specific field.",
+ },
+ {
+ name: "isConstraint",
+ type: "boolean",
+ description:
+ "It's a PostgreSQL specific field.\n The unique constraint and unique index are not the same thing in PostgreSQL.",
+ },
+ {
+ name: "keyLength",
+ type: "array<integer>",
+ description:
+ "The key_lengths are the ordered key lengths of an index.\n If the key length is not specified, it's -1.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of an index.",
+ },
+ {
+ name: "opclassDefaults",
+ type: "array<boolean>",
+ description:
+ "True if the operator class is the default. (PostgreSQL specific).",
+ },
+ {
+ name: "opclassNames",
+ type: "array<string>",
+ description:
+ "https://www.postgresql.org/docs/current/catalog-pg-opclass.html\n Name of the operator class for each column. (PostgreSQL specific).",
+ },
+ {
+ name: "parentIndexName",
+ type: "string",
+ description: "The index name of the parent index.",
+ },
+ {
+ name: "parentIndexSchema",
+ type: "string",
+ description: "The schema name of the parent index.",
+ },
+ {
+ name: "primary",
+ type: "boolean",
+ description: "The primary is whether the index is a primary key index.",
+ },
+ {
+ name: "spatialConfig",
+ type: "bytebase.v1.SpatialIndexConfig",
+ description:
+ "Spatial index configuration for spatial databases like SQL Server, PostgreSQL with PostGIS, etc.",
+ },
+ {
+ name: "type",
+ type: "string",
+ description: "The type is the type of an index.",
+ },
+ {
+ name: "unique",
+ type: "boolean",
+ description: "The unique is whether the index is unique.",
+ },
+ {
+ name: "visible",
+ type: "boolean",
+ description: "The visible is whether the index is visible.",
+ },
+ ],
+ description: "IndexMetadata is the metadata for indexes.",
+ },
+ "bytebase.v1.Instance": {
+ type: "object",
+ properties: [
+ {
+ name: "activation",
+ type: "boolean",
+ description: "Whether the instance is activated for use.",
+ },
+ {
+ name: "dataSources",
+ type: "array<bytebase.v1.DataSource>",
+ description:
+ "Data source configurations for connecting to the instance.",
+ },
+ {
+ name: "engine",
+ type: "bytebase.v1.Engine",
+ description: "The database engine type.",
+ },
+ {
+ name: "engineVersion",
+ type: "string",
+ description: "The version of the database engine.",
+ },
+ {
+ name: "environment",
+ type: "string",
+ description:
+ "The environment resource.\n Format: environments/prod where prod is the environment resource ID.",
+ },
+ {
+ name: "externalLink",
+ type: "string",
+ description: "External URL to the database instance console.",
+ },
+ {
+ name: "labels",
+ type: "object",
+ description:
+ 'Labels are key-value pairs that can be attached to the instance.\n For example, { "org_group": "infrastructure", "environment": "production" }',
+ },
+ {
+ name: "lastSyncTime",
+ type: "google.protobuf.Timestamp",
+ description: "The last time the instance was synced.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the instance.\n Format: instances/{instance}",
+ },
+ {
+ name: "roles",
+ type: "array<bytebase.v1.InstanceRole>",
+ description: "Database roles available in this instance.",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The lifecycle state of the instance.",
+ },
+ {
+ name: "syncDatabases",
+ type: "array<string>",
+ description:
+ "Enable sync for following databases.\n Default empty, means sync all schemas & databases.",
+ },
+ {
+ name: "syncInterval",
+ type: "google.protobuf.Duration",
+ description: "How often the instance is synced.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title of the instance.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Instance.LabelsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.InstanceResource": {
+ type: "object",
+ properties: [
+ {
+ name: "activation",
+ type: "boolean",
+ description: "Whether the instance is activated.",
+ },
+ {
+ name: "dataSources",
+ type: "array<bytebase.v1.DataSource>",
+ description: "Data source configurations for the instance.",
+ },
+ {
+ name: "engine",
+ type: "bytebase.v1.Engine",
+ description: "The database engine type.",
+ },
+ {
+ name: "engineVersion",
+ type: "string",
+ description: "The version of the database engine.",
+ },
+ {
+ name: "environment",
+ type: "string",
+ description:
+ "The environment resource.\n Format: environments/prod where prod is the environment resource ID.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the instance.\n Format: instances/{instance}",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title of the instance.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.InstanceRole": {
+ type: "object",
+ properties: [
+ {
+ name: "attribute",
+ type: "string",
+ description:
+ 'The role attribute.\n For PostgreSQL, it contains super_user, no_inherit, create_role, create_db, can_login, replication, and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html\n For MySQL, it\'s the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html',
+ },
+ {
+ name: "connectionLimit",
+ type: "integer",
+ description: "The connection count limit for this role.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the role.\n Format: instances/{instance}/roles/{role}\n The role name is the unique name for the role.",
+ },
+ {
+ name: "password",
+ type: "string",
+ description: "The role password.",
+ },
+ {
+ name: "roleName",
+ type: "string",
+ description: "The role name. It's unique within the instance.",
+ },
+ {
+ name: "validUntil",
+ type: "string",
+ description: "The expiration for the role's password.",
+ },
+ ],
+ description: "InstanceRole is the API message for instance role.",
+ },
+ "bytebase.v1.Issue": {
+ type: "object",
+ properties: [
+ {
+ name: "accessGrant",
+ type: "string",
+ description:
+ "The access grant associated with this issue.\n Format: projects/{project}/accessGrants/{access_grant}",
+ },
+ {
+ name: "approvalStatus",
+ type: "bytebase.v1.Issue.ApprovalStatus",
+ },
+ {
+ name: "approvalTemplate",
+ type: "bytebase.v1.ApprovalTemplate",
+ description: "The approval template for the issue.",
+ },
+ {
+ name: "approvers",
+ type: "array<bytebase.v1.Issue.Approver>",
+ },
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "Format: users/[email protected]",
+ },
+ {
+ name: "description",
+ type: "string",
+ description: "The description of the issue.",
+ },
+ {
+ name: "labels",
+ type: "array<string>",
+ description:
+ "Labels attached to the issue for categorization and filtering.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the issue.\n Format: projects/{project}/issues/{issue}",
+ },
+ {
+ name: "plan",
+ type: "string",
+ description:
+ "The plan associated with the issue.\n Can be empty.\n Format: projects/{project}/plans/{plan}",
+ },
+ {
+ name: "riskLevel",
+ type: "bytebase.v1.RiskLevel",
+ description: "The risk level of the issue.",
+ },
+ {
+ name: "roleGrant",
+ type: "bytebase.v1.RoleGrant",
+ description: "Used if the issue type is ROLE_GRANT.",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.IssueStatus",
+ description: "The status of the issue.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The title of the issue.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.Issue.Type",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Issue.ApprovalStatus": {
+ type: "enum",
+ values: [
+ "APPROVAL_STATUS_UNSPECIFIED",
+ "CHECKING",
+ "PENDING",
+ "APPROVED",
+ "REJECTED",
+ "SKIPPED",
+ ],
+ description: "The overall approval status for the issue.",
+ },
+ "bytebase.v1.Issue.Approver": {
+ type: "object",
+ properties: [
+ {
+ name: "principal",
+ type: "string",
+ description: "Format: users/[email protected]",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.Issue.Approver.Status",
+ description: "The new status.",
+ },
+ ],
+ description: "Approvers and their approval status for the issue.",
+ },
+ "bytebase.v1.Issue.Approver.Status": {
+ type: "enum",
+ values: ["STATUS_UNSPECIFIED", "PENDING", "APPROVED", "REJECTED"],
+ description: "The approval status of an approver.",
+ },
+ "bytebase.v1.Issue.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "DATABASE_CHANGE",
+ "ROLE_GRANT",
+ "DATABASE_EXPORT",
+ "ACCESS_GRANT",
+ ],
+ description: "The type of issue.",
+ },
+ "bytebase.v1.IssueComment": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The text content of the comment.",
+ },
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "Format: users/{email}",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid}",
+ },
+ {
+ name: "payload",
+ type: "string",
+ description: "TODO: use struct message instead.",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "A comment on an issue.",
+ },
+ "bytebase.v1.IssueComment.Approval": {
+ type: "object",
+ properties: [
+ {
+ name: "status",
+ type: "bytebase.v1.IssueComment.Approval.Status",
+ description: "The approval status.",
+ },
+ ],
+ description: "Approval event information.",
+ },
+ "bytebase.v1.IssueComment.Approval.Status": {
+ type: "enum",
+ values: ["STATUS_UNSPECIFIED", "PENDING", "APPROVED", "REJECTED"],
+ description: "Approval status values.",
+ },
+ "bytebase.v1.IssueComment.IssueUpdate": {
+ type: "object",
+ properties: [
+ {
+ name: "fromDescription",
+ type: "string",
+ },
+ {
+ name: "fromLabels",
+ type: "array<string>",
+ },
+ {
+ name: "fromStatus",
+ type: "object",
+ },
+ {
+ name: "fromTitle",
+ type: "string",
+ },
+ {
+ name: "toDescription",
+ type: "string",
+ },
+ {
+ name: "toLabels",
+ type: "array<string>",
+ },
+ {
+ name: "toStatus",
+ type: "object",
+ },
+ {
+ name: "toTitle",
+ type: "string",
+ },
+ ],
+ description: "Issue update event information.",
+ },
+ "bytebase.v1.IssueComment.PlanSpecUpdate": {
+ type: "object",
+ properties: [
+ {
+ name: "fromSheet",
+ type: "string",
+ description:
+ "The previous sheet.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ {
+ name: "spec",
+ type: "string",
+ description:
+ "The spec that was updated.\n Format: projects/{project}/plans/{plan}/specs/{spec}",
+ },
+ {
+ name: "toSheet",
+ type: "string",
+ description:
+ "The new sheet.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ ],
+ description:
+ "Plan spec update event information (tracks sheet changes to plan specs).",
+ },
+ "bytebase.v1.IssueStatus": {
+ type: "enum",
+ values: ["ISSUE_STATUS_UNSPECIFIED", "OPEN", "DONE", "CANCELED"],
+ description: "The status of an issue.",
+ },
+ "bytebase.v1.KerberosConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "instance",
+ type: "string",
+ description: "The instance component of the Kerberos principal.",
+ },
+ {
+ name: "kdcHost",
+ type: "string",
+ description: "The hostname of the Key Distribution Center (KDC).",
+ },
+ {
+ name: "kdcPort",
+ type: "string",
+ description: "The port of the Key Distribution Center (KDC).",
+ },
+ {
+ name: "kdcTransportProtocol",
+ type: "string",
+ description:
+ "The transport protocol for KDC communication (tcp or udp).",
+ },
+ {
+ name: "keytab",
+ type: "string",
+ description: "The keytab file contents for authentication.",
+ },
+ {
+ name: "primary",
+ type: "string",
+ description: "The primary component of the Kerberos principal.",
+ },
+ {
+ name: "realm",
+ type: "string",
+ description: "The Kerberos realm.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.LDAPIdentityProviderConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "baseDn",
+ type: "string",
+ description:
+ 'BaseDN is the base DN to search for users, e.g., "ou=users,dc=example,dc=com".',
+ },
+ {
+ name: "bindDn",
+ type: "string",
+ description:
+ "BindDN is the DN of the user to bind as a service account to perform\n search requests.",
+ },
+ {
+ name: "bindPassword",
+ type: "string",
+ description:
+ "BindPassword is the password of the user to bind as a service account.",
+ },
+ {
+ name: "fieldMapping",
+ type: "bytebase.v1.FieldMapping",
+ description:
+ "FieldMapping is the mapping of the user attributes returned by the LDAP\n server.",
+ },
+ {
+ name: "host",
+ type: "string",
+ description:
+ 'Host is the hostname or IP address of the LDAP server, e.g.,\n "ldap.example.com".',
+ },
+ {
+ name: "port",
+ type: "integer",
+ description:
+ "Port is the port number of the LDAP server, e.g., 389. When not set, the\n default port of the corresponding security protocol will be used, i.e. 389\n for StartTLS and 636 for LDAPS.",
+ },
+ {
+ name: "securityProtocol",
+ type: "bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol",
+ description:
+ "SecurityProtocol is the security protocol to be used for establishing\n connections with the LDAP server.",
+ },
+ {
+ name: "skipTlsVerify",
+ type: "boolean",
+ description:
+ "SkipTLSVerify controls whether to skip TLS certificate verification.",
+ },
+ {
+ name: "userFilter",
+ type: "string",
+ description:
+ 'UserFilter is the filter to search for users, e.g., "(uid=%s)".',
+ },
+ ],
+ description:
+ "LDAPIdentityProviderConfig is the structure for LDAP identity provider config.",
+ },
+ "bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol": {
+ type: "enum",
+ values: ["SECURITY_PROTOCOL_UNSPECIFIED", "START_TLS", "LDAPS"],
+ description: "",
+ },
+ "bytebase.v1.Label": {
+ type: "object",
+ properties: [
+ {
+ name: "color",
+ type: "string",
+ description: "The color code for the label (e.g., hex color).",
+ },
+ {
+ name: "group",
+ type: "string",
+ description: "The group this label belongs to.",
+ },
+ {
+ name: "value",
+ type: "string",
+ description: "The label value/name.",
+ },
+ ],
+ description: "A label for categorizing and organizing issues.",
+ },
+ "bytebase.v1.ListAccessGrantsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter expression using AIP-160 syntax.\n Supported fields:\n - name: the fullname in "projects/{project}/accessGrants/{access_grant}" format, support "==" operator.\n - creator: the creator name in "users/{email}" format, support "==" operator.\n - status: the access status, support "==" and "in" operator.\n - issue: the access issue fullname, support "==" operator.\n - expire_time: the access expire time in "2006-01-02T15:04:05Z07:00" format, support ">=", ">", "<=" and "<" operator.\n - create_time: the access creation time in "2006-01-02T15:04:05Z07:00" format, support ">=", ">", "<=" and "<" operator.\n - query: the access query, support "==" and ".contains(xx)" operator\n - target: the target database fullname, support "==" operator.\n\n Examples:\n - creator == "users/[email protected]"\n - status == "ACTIVE"\n - status in ["ACTIVE", "PENDING"]\n - creator == "users/[email protected]" && status == "ACTIVE"\n - issue == "projects/x/issues/123"\n - status == "ACTIVE" && expire_time > "2024-02-01T00:00:00Z"\n - target == "instances/sample/databases/employee"',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of access grants.\n Support creator, expire_time, create_time. The default sorting order is ascending.\n For example:\n - order_by = "creator"\n - order_by = "expire_time desc"\n - order_by = "expire_time asc, create_time desc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description: "The maximum number of access grants to return.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description: "A page token from a previous ListAccessGrants call.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent project of the access grants.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListAccessGrantsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "accessGrants",
+ type: "array<bytebase.v1.AccessGrant>",
+ description: "The access grants from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListChangelogsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter changelogs returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - status: the changelog status, support "==" operation. check Changelog.Status for available values.\n - create_time: the changelog create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.\n\n Example:\n status == "DONE"\n status == "FAILED" && type == "SDL"\n create_time >= "2024-01-01T00:00:00Z" && create_time <= "2024-01-02T00:00:00Z"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of changelogs to return. The service may return fewer\n than this value. If unspecified, at most 10 changelogs will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from the previous call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent of the changelogs.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "view",
+ type: "bytebase.v1.ChangelogView",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListChangelogsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "changelogs",
+ type: "array<bytebase.v1.Changelog>",
+ description: "The list of changelogs.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListDatabaseGroupsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource whose database groups are to be listed.\n Format: projects/{project}",
+ },
+ {
+ name: "view",
+ type: "bytebase.v1.DatabaseGroupView",
+ description:
+ "The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC.",
+ },
+ ],
+ description: "Request message for listing database groups.",
+ },
+ "bytebase.v1.ListDatabaseGroupsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "databaseGroups",
+ type: "array<bytebase.v1.DatabaseGroup>",
+ description: "The database groups from the specified request.",
+ },
+ ],
+ description: "Response message for listing database groups.",
+ },
+ "bytebase.v1.ListDatabasesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter databases returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - environment: the environment full name in "environments/{id}" format, support "==" operator.\n - name: the database name, support ".contains()" operator.\n - project: the project full name in "projects/{id}" format, support "==" operator.\n - instance: the instance full name in "instances/{id}" format, support "==" operator.\n - engine: the database engine, check Engine enum for values. Support "==", "in [xx]", "!(in [xx])" operator.\n - exclude_unassigned: should be "true" or "false", will not show unassigned databases if it\'s true, support "==" operator.\n - table: filter by the database table, support "==" and ".contains()" operator.\n - labels.{key}: the database label, support "==" and "in" operators.\n\n For example:\n environment == "environments/{environment resource id}"\n environment == "" (find databases which environment is not set)\n project == "projects/{project resource id}"\n instance == "instances/{instance resource id}"\n name.contains("database name")\n engine == "MYSQL"\n engine in ["MYSQL", "POSTGRES"]\n !(engine in ["MYSQL", "POSTGRES"])\n exclude_unassigned == true\n table == "sample"\n table.contains("sam")\n labels.environment == "production"\n labels.region == "asia"\n labels.region in ["asia", "europe"]\n\n You can combine filter conditions like:\n environment == "environments/prod" && name.contains("employee")',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of databases.\n Support name, project, instance. The default sorting order is ascending.\n For example:\n - order_by = "name" - order by name ascending\n - order_by = "name desc"\n - order_by = "name desc, project asc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of databases to return. The service may return fewer\n than this value.\n If unspecified, at most 10 databases will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListDatabases` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListDatabases` must\n match the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ '- projects/{project}: list databases in a project, require "bb.projects.get" permission.\n - workspaces/{id}: list databases in the workspace, require "bb.databases.list" permission.\n - instances/{instances}: list databases in a instance, require "bb.instances.get" permission',
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted database if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListDatabasesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "databases",
+ type: "array<bytebase.v1.Database>",
+ description: "The databases from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListGroupsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter groups returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - title: the group title, support "==" and ".contains()" operator.\n - email: the group email, support "==" and ".contains()" operator.\n - project: the project full name in "projects/{id}" format, support "==" operator.\n\n For example:\n title == "dba"\n email == "[email protected]"\n title.contains("dba")\n email.contains("dba")\n project == "projects/sample-project"\n You can combine filter conditions like:\n title.contains("dba") || email.contains("dba")',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of groups to return. The service may return fewer than\n this value.\n If unspecified, at most 10 groups will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListGroups` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListGroups` must match\n the call that provided the page token.",
+ },
+ ],
+ description: "Request message for listing groups.",
+ },
+ "bytebase.v1.ListGroupsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "groups",
+ type: "array<bytebase.v1.Group>",
+ description: "The groups from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "Response message for listing groups.",
+ },
+ "bytebase.v1.ListIdentityProvidersResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "identityProviders",
+ type: "array<bytebase.v1.IdentityProvider>",
+ description: "The identity providers from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListInstanceDatabaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "instance",
+ type: "object",
+ description:
+ "The target instance. We need to set this field if the target instance is not created yet.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the instance.\n Format: instances/{instance}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListInstanceDatabaseResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "databases",
+ type: "array<string>",
+ description: "All database name list in the instance.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListInstanceRolesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "Not used.\n The maximum number of roles to return. The service may return fewer than\n this value.\n If unspecified, at most 10 roles will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "Not used.\n A page token, received from a previous `ListInstanceRoles` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListInstanceRoles` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent, which owns this collection of roles.\n Format: instances/{instance}",
+ },
+ {
+ name: "refresh",
+ type: "boolean",
+ description: "Refresh will refresh and return the latest data.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListInstanceRolesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "roles",
+ type: "array<bytebase.v1.InstanceRole>",
+ description: "The roles from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListInstancesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter the instance.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filters:\n - name: the instance name, support "==" and ".contains()" operator.\n - resource_id: the instance id, support "==" and ".contains()" operator.\n - environment: the environment full name in "environments/{id}" format, support "==" operator.\n - state: the instance state, check State enum for values, support "==" operator.\n - engine: the instance engine, check Engine enum for values. Support "==", "in [xx]", "!(in [xx])" operator.\n - host: the instance host, support "==" and ".contains()" operator.\n - port: the instance port, support "==" and ".contains()" operator.\n - project: the project full name in "projects/{id}" format, support "==" operator.\n - labels.{key}: the instance label, support "==" and "in" operators.\n\n For example:\n name == "sample instance"\n name.contains("sample")\n resource_id == "sample-instance"\n resource_id.contains("sample")\n state == "DELETED"\n environment == "environments/test"\n environment == "" (find instances which environment is not set)\n engine == "MYSQL"\n engine in ["MYSQL", "POSTGRES"]\n !(engine in ["MYSQL", "POSTGRES"])\n host == "127.0.0.1"\n host.contains("127.0")\n port == "54321"\n port.contains("543")\n labels.org_group == "infrastructure"\n labels.environment in ["prod", "production"]\n project == "projects/sample-project"\n You can combine filter conditions like:\n name.contains("sample") && environment == "environments/test"\n host == "127.0.0.1" && port == "54321"',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of instances.\n Support title, environment. The default sorting order is ascending.\n For example:\n - order_by = "title"\n - order_by = "title desc"\n - order_by = "title desc, environment asc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of instances to return. The service may return fewer than\n this value.\n If unspecified, at most 10 instances will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListInstances` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListInstances` must match\n the call that provided the page token.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted instances if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListInstancesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "instances",
+ type: "array<bytebase.v1.Instance>",
+ description: "The instances from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListIssueCommentsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of issue comments to return. The service may return fewer than\n this value.\n If unspecified, at most 10 issue comments will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListIssueComments` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListIssueComments` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description: "Format: projects/{projects}/issues/{issue}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListIssueCommentsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "issueComments",
+ type: "array<bytebase.v1.IssueComment>",
+ description: "The issue comments from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListIssuesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter issues returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filters:\n - creator: issue creator full name in "users/{email or id}" format, support "==" operator.\n - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.\n - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.\n - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.\n - labels: the issue labels, support "==" and "in" operator.\n - risk_level: the issue risk level, support "in" operator, check the RiskLevel enum for the values.\n - approval_status: issue approval status, support "==" operator.\n - current_approver: the issue approver, should in "users/{email} format", support "==" operator.\n\n For example:\n creator == "users/[email protected]" && status in ["OPEN", "DONE"]\n status == "CANCELED" && type == "DATABASE_CHANGE"\n labels in ["label1", "label2"]\n risk_level in ["HIGH", "MODERATE"]\n create_time >= "2025-01-02T15:04:05Z07:00"',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of issues.\n Support:\n - create_time\n - update_time\n The default sorting order is ascending.\n For example:\n - order_by = "create_time desc"\n - order_by = "update_time asc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of issues to return. The service may return fewer than\n this value.\n If unspecified, at most 10 issues will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListIssues` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListIssues` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent, which owns this collection of issues.\n Format: projects/{project}",
+ },
+ {
+ name: "query",
+ type: "string",
+ description: "Query is the query statement.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListIssuesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "issues",
+ type: "array<bytebase.v1.Issue>",
+ description: "The issues from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListPlansRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter plans returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filters:\n - creator: the plan creator full name in "users/{email or id}" format, support "==" operator.\n - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.\n - has_rollout: whether the plan has rollout, support "==" operator, the value should be "true" or "false".\n - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".\n - title: the plan title, support "==" operator for exact match and ".contains()" operator for case-insensitive substring match.\n - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".\n - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".\n\n For example:\n creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"\n has_rollout == false && has_issue == true\n title == "My Plan"\n title.contains("database migration")\n spec_type == "change_database_config"\n state == "ACTIVE"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of plans to return. The service may return fewer than\n this value.\n If unspecified, at most 10 plans will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListPlans` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListPlans` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ 'The parent, which owns this collection of plans.\n Format: projects/{project}\n Use "projects/-" to list all plans from all projects.',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListPlansResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "plans",
+ type: "array<bytebase.v1.Plan>",
+ description: "The plans from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListPoliciesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent, which owns this collection of policies.\n Format: {resource type}/{resource id}",
+ },
+ {
+ name: "policyType",
+ type: "object",
+ description: "Filter by specific policy type.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted policies if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListPoliciesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "policies",
+ type: "array<bytebase.v1.Policy>",
+ description: "The policies from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListProjectsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter the project.\n Check filter for SearchProjectsRequest for details.\n Supports filtering by name, resource_id, state, and labels (e.g., labels.environment == "production").',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of projects.\n Support title. The default sorting order is ascending.\n For example:\n - order_by = "title"\n - order_by = "title desc"\n - order_by = "title asc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of projects to return. The service may return fewer than\n this value.\n If unspecified, at most 10 projects will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListProjects` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListProjects` must match\n the call that provided the page token.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted projects if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListProjectsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "projects",
+ type: "array<bytebase.v1.Project>",
+ description: "The projects from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListPurchasePlansResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "plans",
+ type: "array<bytebase.v1.PurchasePlan>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListReleaseCategoriesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description: "Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListReleaseCategoriesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "categories",
+ type: "array<string>",
+ description: "The unique category values in the project.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListReleasesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter releases returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filters:\n - category: release category, support "==" operator.\n\n For example:\n category == "webapp"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of releases to return. The service may return fewer than this value.\n If unspecified, at most 10 releases will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListReleases` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListReleases` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description: "Format: projects/{project}",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted releases if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListReleasesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "releases",
+ type: "array<bytebase.v1.Release>",
+ description: "The releases from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListReviewConfigsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "reviewConfigs",
+ type: "array<bytebase.v1.ReviewConfig>",
+ description: "The SQL review configs from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListRevisionsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of revisions to return. The service may return fewer\n than this value. If unspecified, at most 10 revisions will be returned. The\n maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListRevisions` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListRevisions` must\n match the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent of the revisions.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Whether to include deleted revisions in the results.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListRevisionsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "revisions",
+ type: "array<bytebase.v1.Revision>",
+ description: "The revisions from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListRolesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "roles",
+ type: "array<bytebase.v1.Role>",
+ description: "The roles from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListRolloutsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter rollouts returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filters:\n - update_time: rollout update time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.\n - task_type: the task type, support "in" operator, check the Task.Type enum for the values.\n\n For example:\n update_time >= "2025-01-02T15:04:05Z07:00"\n task_type in ["DATABASE_MIGRATE", "DATABASE_EXPORT"]',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of rollouts to return. The service may return fewer than\n this value.\n If unspecified, at most 10 rollouts will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListRollouts` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListRollouts` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ 'The parent, which owns this collection of rollouts.\n Format: projects/{project}\n Use "projects/-" to list all rollouts from all projects.',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListRolloutsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "rollouts",
+ type: "array<bytebase.v1.Rollout>",
+ description: "The rollouts from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListServiceAccountsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter service accounts returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - name: the service account name, support "==" and ".contains()" operator.\n - email: the service account email, support "==" and ".contains()" operator.\n - state: check State enum for values, support "==" operator.\n\n For example:\n name == "ed"\n name.contains("ed")\n state == "DELETED"\n email == "[email protected]"\n email.contains("ed")',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of service accounts to return. The service may return fewer than\n this value.\n If unspecified, at most 10 service accounts will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListServiceAccounts` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListServiceAccounts` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource.\n Format: projects/{project} for project-level, workspaces/{id} for workspace-level.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted service accounts if specified.",
+ },
+ ],
+ description: "Request message for listing service accounts.",
+ },
+ "bytebase.v1.ListServiceAccountsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "serviceAccounts",
+ type: "array<bytebase.v1.ServiceAccount>",
+ description: "The service accounts from the specified request.",
+ },
+ ],
+ description: "Response message for listing service accounts.",
+ },
+ "bytebase.v1.ListSettingsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "settings",
+ type: "array<bytebase.v1.Setting>",
+ description: "The settings from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListTaskRunsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "parent",
+ type: "string",
+ description:
+ 'The parent, which owns this collection of taskRuns.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}\n Use "projects/{project}/plans/{plan}/rollout/stages/-/tasks/-" to list all taskRuns from a rollout.',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListTaskRunsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "taskRuns",
+ type: "array<bytebase.v1.TaskRun>",
+ description: "The taskRuns from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListUsersRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter users returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - name: the user name, support "==" and ".contains()" operator.\n - email: the user email, support "==" and ".contains()" operator.\n - state: check State enum for values, support "==" operator.\n - project: the project full name in "projects/{id}" format, support "==" operator.\n\n For example:\n name == "ed"\n name.contains("ed")\n email == "[email protected]"\n email.contains("ed")\n state == "DELETED"\n project == "projects/sample-project"\n You can combine filter conditions like:\n name.contains("ed") && project == "projects/sample-project"\n (name == "ed" || email == "[email protected]") && project == "projects/sample-project"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of users to return. The service may return fewer than\n this value.\n If unspecified, at most 10 users will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListUsers` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListUsers` must match\n the call that provided the page token.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted users if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListUsersResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "users",
+ type: "array<bytebase.v1.User>",
+ description: "The users from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ListWorkloadIdentitiesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is used to filter workload identities returned in the list.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - name: the workload identity name, support "==" and ".contains()" operator.\n - email: the workload identity email, support "==" and ".contains()" operator.\n - state: check State enum for values, support "==" operator.\n\n For example:\n name == "ed"\n name.contains("ed")\n state == "DELETED"\n email == "[email protected]"\n email.contains("ed")',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of workload identities to return. The service may return fewer than\n this value.\n If unspecified, at most 10 workload identities will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListWorkloadIdentities` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `ListWorkloadIdentities` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource.\n Format: projects/{project} for project-level, workspaces/{id} for workspace-level.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted workload identities if specified.",
+ },
+ ],
+ description: "Request message for listing workload identities.",
+ },
+ "bytebase.v1.ListWorkloadIdentitiesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "workloadIdentities",
+ type: "array<bytebase.v1.WorkloadIdentity>",
+ description: "The workload identities from the specified request.",
+ },
+ ],
+ description: "Response message for listing workload identities.",
+ },
+ "bytebase.v1.ListWorkspacesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "workspaces",
+ type: "array<bytebase.v1.Workspace>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.LoginRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "email",
+ type: "string",
+ description: "User's email address.",
+ },
+ {
+ name: "idpContext",
+ type: "bytebase.v1.IdentityProviderContext",
+ description:
+ "The idp_context is used to get the user information from identity provider.",
+ },
+ {
+ name: "idpName",
+ type: "string",
+ description: "The name of the identity provider.\n Format: idps/{idp}",
+ },
+ {
+ name: "mfaTempToken",
+ type: "string",
+ description:
+ "The mfa_temp_token is used to verify the user's identity by MFA.",
+ },
+ {
+ name: "otpCode",
+ type: "string",
+ description:
+ "The otp_code is used to verify the user's identity by MFA.",
+ },
+ {
+ name: "password",
+ type: "string",
+ description: "User's password for authentication.",
+ },
+ {
+ name: "recoveryCode",
+ type: "string",
+ description:
+ "The recovery_code is used to recovery the user's identity with MFA.",
+ },
+ {
+ name: "web",
+ type: "boolean",
+ description:
+ "If true, sets access token and refresh token as HTTP-only cookies instead of\n returning the token in the response body. Use for browser-based clients.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.LoginResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "mfaTempToken",
+ type: "string",
+ description: "Temporary token for MFA verification.",
+ },
+ {
+ name: "requireResetPassword",
+ type: "boolean",
+ description: "Whether user must reset password before continuing.",
+ },
+ {
+ name: "token",
+ type: "string",
+ description:
+ "Access token for authenticated requests.\n Only returned when web=false. For web=true, the token is set as an HTTP-only cookie.",
+ },
+ {
+ name: "user",
+ type: "bytebase.v1.User",
+ description: "The user from the successful login.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.MaskingExemptionPolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "exemptions",
+ type: "array<bytebase.v1.MaskingExemptionPolicy.Exemption>",
+ },
+ ],
+ description:
+ "MaskingExemptionPolicy is the allowlist of users who can access sensitive data.",
+ },
+ "bytebase.v1.MaskingExemptionPolicy.Exemption": {
+ type: "object",
+ properties: [
+ {
+ name: "condition",
+ type: "google.type.Expr",
+ description:
+ 'The condition that is associated with this exception policy instance.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n If the condition is empty, means the user can access all databases without expiration.\n\n Support variables:\n resource.instance_id: the instance resource id. Only support "==" operation.\n resource.database_name: the database name. Only support "==" operation.\n resource.schema_name: the schema name. Only support "==" operation.\n resource.table_name: the table name. Only support "==" operation.\n resource.column_name: the column name. Only support "==" operation.\n request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")`\n All variables should join with "&&" condition.\n\n For example:\n resource.instance_id == "local" && resource.database_name == "employee" && request.time < timestamp("2025-04-30T11:10:39.000Z")\n resource.instance_id == "local" && resource.database_name == "employee"',
+ },
+ {
+ name: "members",
+ type: "array<string>",
+ description:
+ "Specifies the principals who are exempt from masking.\n For users, the member should be: user:{email}\n For groups, the member should be: group:{email}\n For service accounts, the member should be: serviceAccount:{email}\n For workload identities, the member should be: workloadIdentity:{email}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.MaskingReason": {
+ type: "object",
+ properties: [
+ {
+ name: "algorithm",
+ type: "string",
+ description: "The masking algorithm used.",
+ },
+ {
+ name: "classificationLevel",
+ type: "integer",
+ description: "The classification level that triggered masking.",
+ },
+ {
+ name: "context",
+ type: "string",
+ description:
+ 'Additional context (e.g., "Matched global rule: PII Protection").',
+ },
+ {
+ name: "maskingRuleId",
+ type: "string",
+ description: "The masking rule ID that matched (if applicable).",
+ },
+ {
+ name: "semanticTypeIcon",
+ type: "string",
+ description: "Icon associated with the semantic type (if any).",
+ },
+ {
+ name: "semanticTypeId",
+ type: "string",
+ description:
+ 'The semantic type that triggered masking (e.g., "SSN", "email", "phone").',
+ },
+ {
+ name: "semanticTypeTitle",
+ type: "string",
+ description: "Human-readable semantic type title.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.MaskingRulePolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "rules",
+ type: "array<bytebase.v1.MaskingRulePolicy.MaskingRule>",
+ description: "The list of masking rules.",
+ },
+ ],
+ description: "Policy for configuring data masking rules.",
+ },
+ "bytebase.v1.MaskingRulePolicy.MaskingRule": {
+ type: "object",
+ properties: [
+ {
+ name: "condition",
+ type: "google.type.Expr",
+ description:
+ 'The condition for the masking rule.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Support variables:\n resource.environment_id: the environment resource id.\n resource.project_id: the project resource id.\n resource.instance_id: the instance resource id.\n resource.database_name: the database name.\n resource.table_name: the table name.\n resource.column_name: the column name.\n resource.classification_level: the classification level (integer).\n\n Each variable support following operations:\n ==: the value equals the target.\n !=: the value not equals the target.\n in: the value matches one of the targets.\n !(in): the value not matches any of the targets.\n <, <=, >, >=: numeric comparison (classification_level only).\n\n For example:\n resource.environment_id == "test" && resource.project_id == "sample-project"\n resource.instance_id == "sample-instance" && resource.database_name == "employee" && resource.table_name in ["table1", "table2"]\n resource.environment_id != "test" || !(resource.project_id in ["poject1", "prject2"])\n resource.instance_id == "sample-instance" && (resource.database_name == "db1" || resource.database_name == "db2")',
+ },
+ {
+ name: "id",
+ type: "string",
+ description: "A unique identifier for the rule in UUID format.",
+ },
+ {
+ name: "semanticType",
+ type: "string",
+ description:
+ 'The semantic type of data to mask (e.g., "SSN", "EMAIL").',
+ },
+ ],
+ description: "A rule that defines when and how to mask data.",
+ },
+ "bytebase.v1.MaterializedViewMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of a materialized view.",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition is the definition of a materialized view.",
+ },
+ {
+ name: "dependencyColumns",
+ type: "array<bytebase.v1.DependencyColumn>",
+ description:
+ "The dependency_columns is the list of dependency columns of a materialized\n view.",
+ },
+ {
+ name: "indexes",
+ type: "array<bytebase.v1.IndexMetadata>",
+ description: "The indexes is the list of indexes in a table.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a materialized view.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ },
+ {
+ name: "triggers",
+ type: "array<bytebase.v1.TriggerMetadata>",
+ description: "The columns is the ordered list of columns in a table.",
+ },
+ ],
+ description:
+ "MaterializedViewMetadata is the metadata for materialized views.",
+ },
+ "bytebase.v1.OAuth2AuthStyle": {
+ type: "enum",
+ values: ["OAUTH2_AUTH_STYLE_UNSPECIFIED", "IN_PARAMS", "IN_HEADER"],
+ description: "",
+ },
+ "bytebase.v1.OAuth2IdentityProviderConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "authStyle",
+ type: "bytebase.v1.OAuth2AuthStyle",
+ description: "The authentication style for client credentials.",
+ },
+ {
+ name: "authUrl",
+ type: "string",
+ description: "The authorization endpoint URL for OAuth2 flow.",
+ },
+ {
+ name: "clientId",
+ type: "string",
+ description: "The OAuth2 client identifier.",
+ },
+ {
+ name: "clientSecret",
+ type: "string",
+ description: "The OAuth2 client secret for authentication.",
+ },
+ {
+ name: "fieldMapping",
+ type: "bytebase.v1.FieldMapping",
+ description:
+ "Mapping configuration for user attributes from OAuth2 response.",
+ },
+ {
+ name: "scopes",
+ type: "array<string>",
+ description: "The list of OAuth2 scopes to request.",
+ },
+ {
+ name: "skipTlsVerify",
+ type: "boolean",
+ description: "Whether to skip TLS certificate verification.",
+ },
+ {
+ name: "tokenUrl",
+ type: "string",
+ description:
+ "The token endpoint URL for exchanging authorization code.",
+ },
+ {
+ name: "userInfoUrl",
+ type: "string",
+ description: "The user information endpoint URL.",
+ },
+ ],
+ description:
+ "OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.",
+ },
+ "bytebase.v1.OAuth2IdentityProviderContext": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "string",
+ description: "Authorization code from OAuth2 provider.",
+ },
+ ],
+ description: "OAuth2 authentication context.",
+ },
+ "bytebase.v1.OAuth2IdentityProviderTestRequestContext": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "string",
+ description: "Authorize code from website.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.OIDCIdentityProviderConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "authEndpoint",
+ type: "string",
+ description:
+ "The authorization endpoint of the OIDC provider.\n Should be fetched from the well-known configuration file of the OIDC provider.",
+ },
+ {
+ name: "authStyle",
+ type: "bytebase.v1.OAuth2AuthStyle",
+ description: "The authentication style for client credentials.",
+ },
+ {
+ name: "clientId",
+ type: "string",
+ description: "The OIDC client identifier.",
+ },
+ {
+ name: "clientSecret",
+ type: "string",
+ description: "The OIDC client secret for authentication.",
+ },
+ {
+ name: "fieldMapping",
+ type: "bytebase.v1.FieldMapping",
+ description:
+ "Mapping configuration for user attributes from OIDC claims.",
+ },
+ {
+ name: "issuer",
+ type: "string",
+ description: "The OIDC issuer URL for the identity provider.",
+ },
+ {
+ name: "scopes",
+ type: "array<string>",
+ description:
+ "The scopes that the OIDC provider supports.\n Should be fetched from the well-known configuration file of the OIDC provider.",
+ },
+ {
+ name: "skipTlsVerify",
+ type: "boolean",
+ description: "Whether to skip TLS certificate verification.",
+ },
+ ],
+ description:
+ "OIDCIdentityProviderConfig is the structure for OIDC identity provider config.",
+ },
+ "bytebase.v1.OIDCIdentityProviderContext": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "string",
+ description: "Authorization code from OIDC provider.",
+ },
+ ],
+ description: "OpenID Connect authentication context.",
+ },
+ "bytebase.v1.OIDCIdentityProviderTestRequestContext": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "string",
+ description: "Authorize code from OIDC provider.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ObjectSchema": {
+ type: "object",
+ properties: [
+ {
+ name: "semanticType",
+ type: "string",
+ description: "The semantic type of this object.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.ObjectSchema.Type",
+ description: "The data type of this object.",
+ },
+ ],
+ description: "Schema definition for object-type columns.",
+ },
+ "bytebase.v1.ObjectSchema.ArrayKind": {
+ type: "object",
+ properties: [
+ {
+ name: "kind",
+ type: "bytebase.v1.ObjectSchema",
+ description: "The schema of array elements.",
+ },
+ ],
+ description: "Array type with element schema.",
+ },
+ "bytebase.v1.ObjectSchema.StructKind": {
+ type: "object",
+ properties: [
+ {
+ name: "properties",
+ type: "object",
+ description: "Properties of the struct.",
+ },
+ ],
+ description: "Structure type with named properties.",
+ },
+ "bytebase.v1.ObjectSchema.StructKind.PropertiesEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "bytebase.v1.ObjectSchema",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ObjectSchema.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "STRING",
+ "NUMBER",
+ "BOOLEAN",
+ "OBJECT",
+ "ARRAY",
+ ],
+ description: "Object schema data types.",
+ },
+ "bytebase.v1.PackageMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition is the definition of a package.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a package.",
+ },
+ ],
+ description: "PackageMetadata is the metadata for packages.",
+ },
+ "bytebase.v1.PaymentInfo": {
+ type: "object",
+ properties: [
+ {
+ name: "cancelAtPeriodEnd",
+ type: "boolean",
+ description:
+ "Whether the subscription is scheduled to cancel at the end of the current billing period.",
+ },
+ {
+ name: "currency",
+ type: "string",
+ },
+ {
+ name: "invoiceUrl",
+ type: "string",
+ description: "Stripe Billing Portal URL for invoice management.",
+ },
+ {
+ name: "periodEnd",
+ type: "string",
+ },
+ {
+ name: "periodStart",
+ type: "string",
+ },
+ {
+ name: "totalPrice",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PermissionDeniedDetail": {
+ type: "object",
+ properties: [
+ {
+ name: "method",
+ type: "string",
+ description: "The API method that was called.",
+ },
+ {
+ name: "requiredPermissions",
+ type: "array<string>",
+ description: "The permissions required but not granted to the user.",
+ },
+ {
+ name: "resources",
+ type: "array<string>",
+ description: "The resources the user was trying to access.",
+ },
+ ],
+ description:
+ "PermissionDeniedDetail provides structured information about permission failures.\n Used as error detail when returning CodePermissionDenied errors.",
+ },
+ "bytebase.v1.Plan": {
+ type: "object",
+ properties: [
+ {
+ name: "approvalStatus",
+ type: "bytebase.v1.Issue.ApprovalStatus",
+ description:
+ "The approval status of the linked issue.\n Unspecified when no linked issue exists.",
+ },
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "Format: users/[email protected]",
+ },
+ {
+ name: "description",
+ type: "string",
+ description: "The description of the plan.",
+ },
+ {
+ name: "hasRollout",
+ type: "boolean",
+ description: "Whether the plan has started the rollout.",
+ },
+ {
+ name: "issue",
+ type: "string",
+ description:
+ "The issue associated with the plan.\n Can be empty.\n Format: projects/{project}/issues/{issue}",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the plan.\n `plan` is a system generated ID.\n Format: projects/{project}/plans/{plan}",
+ },
+ {
+ name: "planCheckRunStatusCount",
+ type: "object",
+ description:
+ "The status count of the latest plan check runs.\n Keys are:\n - SUCCESS\n - WARNING\n - ERROR\n - RUNNING",
+ },
+ {
+ name: "rolloutStageSummaries",
+ type: "array<bytebase.v1.Plan.RolloutStageSummary>",
+ description:
+ "Per-stage rollout status summary.\n Ordered by environment deployment order. Empty when no rollout exists.",
+ },
+ {
+ name: "specs",
+ type: "array<bytebase.v1.Plan.Spec>",
+ description: "The deployment specs for the plan.",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The state of the plan.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The title of the plan.",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.ChangeDatabaseConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "enablePriorBackup",
+ type: "boolean",
+ description:
+ "If set, a backup of the modified data will be created automatically before any changes are applied.",
+ },
+ {
+ name: "release",
+ type: "string",
+ description:
+ "The resource name of the release.\n Format: projects/{project}/releases/{release}",
+ },
+ {
+ name: "sheet",
+ type: "string",
+ description:
+ "The resource name of the sheet.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ {
+ name: "targets",
+ type: "array<string>",
+ description:
+ "The list of targets.\n Multi-database format: [instances/{instance-id}/databases/{database-name}].\n Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.CreateDatabaseConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "characterSet",
+ type: "string",
+ description: "character_set is the character set of the database.",
+ },
+ {
+ name: "cluster",
+ type: "string",
+ description:
+ 'cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".',
+ },
+ {
+ name: "collation",
+ type: "string",
+ description: "collation is the collation of the database.",
+ },
+ {
+ name: "database",
+ type: "string",
+ description: "The name of the database to create.",
+ },
+ {
+ name: "environment",
+ type: "string",
+ description:
+ "The environment resource.\n Format: environments/prod where prod is the environment resource ID.",
+ },
+ {
+ name: "owner",
+ type: "string",
+ description:
+ 'owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".',
+ },
+ {
+ name: "table",
+ type: "string",
+ description:
+ "table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.\n For example, in MongoDB, it only creates the database when we first store data in that database.",
+ },
+ {
+ name: "target",
+ type: "string",
+ description:
+ "The resource name of the instance on which the database is created.\n Format: instances/{instance}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.ExportDataConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "format",
+ type: "bytebase.v1.ExportFormat",
+ description: "The format of the exported file.",
+ },
+ {
+ name: "password",
+ type: "string",
+ description:
+ "The zip password provide by users.\n Leave it empty if no needs to encrypt the zip file.",
+ },
+ {
+ name: "sheet",
+ type: "string",
+ description:
+ "The resource name of the sheet.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ {
+ name: "targets",
+ type: "array<string>",
+ description:
+ "The list of targets.\n Multi-database format: [instances/{instance-id}/databases/{database-name}].\n Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.PlanCheckRunStatusCountEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "integer",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.RolloutStageSummary": {
+ type: "object",
+ properties: [
+ {
+ name: "stage",
+ type: "string",
+ description:
+ "The stage resource name.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}",
+ },
+ {
+ name: "taskStatusCounts",
+ type: "array<bytebase.v1.Plan.TaskStatusCount>",
+ description: "Task status counts for this stage.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.Spec": {
+ type: "object",
+ properties: [
+ {
+ name: "id",
+ type: "string",
+ description: "A UUID4 string that uniquely identifies the Spec.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Plan.TaskStatusCount": {
+ type: "object",
+ properties: [
+ {
+ name: "count",
+ type: "integer",
+ description: "The number of tasks in the status.",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.Task.Status",
+ description: "The task status.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PlanCheckRun": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "error is set if the Status is FAILED.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "Format: projects/{project}/plans/{plan}/planCheckRun",
+ },
+ {
+ name: "results",
+ type: "array<bytebase.v1.PlanCheckRun.Result>",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.PlanCheckRun.Status",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PlanCheckRun.Result": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "integer",
+ },
+ {
+ name: "content",
+ type: "string",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.Advice.Level",
+ },
+ {
+ name: "target",
+ type: "string",
+ description:
+ "Target identification for consolidated results.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "title",
+ type: "string",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.PlanCheckRun.Result.Type",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PlanCheckRun.Result.SqlReviewReport": {
+ type: "object",
+ properties: [
+ {
+ name: "endPosition",
+ type: "bytebase.v1.Position",
+ },
+ {
+ name: "startPosition",
+ type: "bytebase.v1.Position",
+ description: "Position of the SQL statement.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PlanCheckRun.Result.SqlSummaryReport": {
+ type: "object",
+ properties: [
+ {
+ name: "affectedRows",
+ type: "integer",
+ },
+ {
+ name: "statementTypes",
+ type: "array<bytebase.v1.StatementType>",
+ description:
+ "statement_types are the types of statements that are found in the sql.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PlanCheckRun.Result.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "STATEMENT_ADVISE",
+ "STATEMENT_SUMMARY_REPORT",
+ "GHOST_SYNC",
+ ],
+ description: "",
+ },
+ "bytebase.v1.PlanCheckRun.Status": {
+ type: "enum",
+ values: ["STATUS_UNSPECIFIED", "RUNNING", "DONE", "FAILED", "CANCELED"],
+ description: "",
+ },
+ "bytebase.v1.PlanConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "instanceFeatures",
+ type: "array<bytebase.v1.PlanFeature>",
+ },
+ {
+ name: "plans",
+ type: "array<bytebase.v1.PlanLimitConfig>",
+ },
+ ],
+ description:
+ "PlanConfig represents the configuration for all plans loaded from plan.yaml",
+ },
+ "bytebase.v1.PlanFeature": {
+ type: "enum",
+ values: [
+ "FEATURE_UNSPECIFIED",
+ "FEATURE_DATABASE_CHANGE",
+ "FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL",
+ "FEATURE_DECLARATIVE_SCHEMA_MIGRATION",
+ "FEATURE_COMPARE_AND_SYNC_SCHEMA",
+ "FEATURE_ONLINE_SCHEMA_CHANGE",
+ "FEATURE_PRE_DEPLOYMENT_SQL_REVIEW",
+ "FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES",
+ "FEATURE_ONE_CLICK_DATA_ROLLBACK",
+ "FEATURE_MULTI_DATABASE_BATCH_CHANGES",
+ "FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT",
+ "FEATURE_SCHEDULED_ROLLOUT_TIME",
+ "FEATURE_DATABASE_CHANGELOG",
+ "FEATURE_SCHEMA_DRIFT_DETECTION",
+ "FEATURE_ROLLOUT_POLICY",
+ "FEATURE_WEB_BASED_SQL_EDITOR",
+ "FEATURE_SQL_EDITOR_ADMIN_MODE",
+ "FEATURE_NATURAL_LANGUAGE_TO_SQL",
+ "FEATURE_AI_QUERY_EXPLANATION",
+ "FEATURE_AI_QUERY_SUGGESTIONS",
+ "FEATURE_AUTO_COMPLETE",
+ "FEATURE_SCHEMA_DIAGRAM",
+ "FEATURE_SCHEMA_EDITOR",
+ "FEATURE_DATA_EXPORT",
+ "FEATURE_DATA_OFFLINE_EXPORT",
+ "FEATURE_QUERY_HISTORY",
+ "FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS",
+ "FEATURE_BATCH_QUERY",
+ "FEATURE_INSTANCE_READ_ONLY_CONNECTION",
+ "FEATURE_QUERY_POLICY",
+ "FEATURE_RESTRICT_COPYING_DATA",
+ "FEATURE_IAM",
+ "FEATURE_INSTANCE_SSL_CONNECTION",
+ "FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL",
+ "FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION",
+ "FEATURE_GOOGLE_AND_GITHUB_SSO",
+ "FEATURE_USER_GROUPS",
+ "FEATURE_DISALLOW_SELF_SERVICE_SIGNUP",
+ "FEATURE_CUSTOM_INSTANCE_SYNC_TIME",
+ "FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT",
+ "FEATURE_RISK_ASSESSMENT",
+ "FEATURE_APPROVAL_WORKFLOW",
+ "FEATURE_AUDIT_LOG",
+ "FEATURE_ENTERPRISE_SSO",
+ "FEATURE_TWO_FA",
+ "FEATURE_PASSWORD_RESTRICTIONS",
+ "FEATURE_DISALLOW_PASSWORD_SIGNIN",
+ "FEATURE_CUSTOM_ROLES",
+ "FEATURE_REQUEST_ROLE_WORKFLOW",
+ "FEATURE_JIT",
+ "FEATURE_DATA_MASKING",
+ "FEATURE_DATA_CLASSIFICATION",
+ "FEATURE_SCIM",
+ "FEATURE_DIRECTORY_SYNC",
+ "FEATURE_TOKEN_DURATION_CONTROL",
+ "FEATURE_EXTERNAL_SECRET_MANAGER",
+ "FEATURE_USER_EMAIL_DOMAIN_RESTRICTION",
+ "FEATURE_PROJECT_MANAGEMENT",
+ "FEATURE_ENVIRONMENT_MANAGEMENT",
+ "FEATURE_IM_NOTIFICATIONS",
+ "FEATURE_TERRAFORM_PROVIDER",
+ "FEATURE_DATABASE_GROUPS",
+ "FEATURE_ENVIRONMENT_TIERS",
+ "FEATURE_DASHBOARD_ANNOUNCEMENT",
+ "FEATURE_API_INTEGRATION_GUIDANCE",
+ "FEATURE_CUSTOM_LOGO",
+ "FEATURE_WATERMARK",
+ "FEATURE_ROADMAP_PRIORITIZATION",
+ "FEATURE_CUSTOM_MSA",
+ "FEATURE_COMMUNITY_SUPPORT",
+ "FEATURE_EMAIL_SUPPORT",
+ "FEATURE_DEDICATED_SUPPORT_WITH_SLA",
+ ],
+ description: "PlanFeature represents the available features in Bytebase",
+ },
+ "bytebase.v1.PlanLimitConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "features",
+ type: "array<bytebase.v1.PlanFeature>",
+ },
+ {
+ name: "maximumInstanceCount",
+ type: "integer",
+ },
+ {
+ name: "maximumSeatCount",
+ type: "integer",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.PlanType",
+ },
+ ],
+ description: "PlanLimitConfig represents a single plan's configuration",
+ },
+ "bytebase.v1.PlanType": {
+ type: "enum",
+ values: ["PLAN_TYPE_UNSPECIFIED", "FREE", "TEAM", "ENTERPRISE"],
+ description: "",
+ },
+ "bytebase.v1.Policy": {
+ type: "object",
+ properties: [
+ {
+ name: "enforce",
+ type: "boolean",
+ description: "Whether the policy is enforced.",
+ },
+ {
+ name: "inheritFromParent",
+ type: "boolean",
+ description: "Whether this policy inherits from its parent resource.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the policy.\n Format: {resource name}/policies/{policy type}\n Workspace resource name: workspaces/{workspace-id}.\n Environment resource name: environments/environment-id.\n Instance resource name: instances/instance-id.\n Database resource name: instances/instance-id/databases/database-name.",
+ },
+ {
+ name: "resourceType",
+ type: "bytebase.v1.PolicyResourceType",
+ description: "The resource type for the policy.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.PolicyType",
+ description: "The type of policy.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PolicyDelta": {
+ type: "object",
+ properties: [
+ {
+ name: "bindingDeltas",
+ type: "array<bytebase.v1.BindingDelta>",
+ description: "The delta for Bindings between two policies.",
+ },
+ ],
+ description: "Describes changes between two IAM policies.",
+ },
+ "bytebase.v1.PolicyResourceType": {
+ type: "enum",
+ values: [
+ "RESOURCE_TYPE_UNSPECIFIED",
+ "WORKSPACE",
+ "ENVIRONMENT",
+ "PROJECT",
+ ],
+ description: "The resource type that a policy can be attached to.",
+ },
+ "bytebase.v1.PolicyType": {
+ type: "enum",
+ values: [
+ "POLICY_TYPE_UNSPECIFIED",
+ "MASKING_RULE",
+ "MASKING_EXEMPTION",
+ "ROLLOUT_POLICY",
+ "TAG",
+ "DATA_QUERY",
+ ],
+ description: "The type of organizational policy.",
+ },
+ "bytebase.v1.Position": {
+ type: "object",
+ properties: [
+ {
+ name: "column",
+ type: "integer",
+ description:
+ "Column position in a text (one-based).\n Column is measured in Unicode code points (characters/runes), not bytes or grapheme clusters.\n First character of the line is column 1.\n A value of 0 indicates the column information is unknown.\n\n Examples:\n - \"SELECT * FROM t\" - column 8 is '*'\n - \"SELECT 你好 FROM t\" - column 8 is '你' (even though it's at byte offset 7)\n - \"SELECT 😀 FROM t\" - column 8 is '😀' (even though it's 4 bytes in UTF-8)",
+ },
+ {
+ name: "line",
+ type: "integer",
+ description:
+ "Line position in a text (one-based).\n First line of the text is line 1.\n A value of 0 indicates the line information is unknown.",
+ },
+ ],
+ description:
+ "Position in a text expressed as one-based line and one-based column.\n We use 1-based numbering to match the majority of industry standards:\n - Monaco Editor uses 1-based (https://microsoft.github.io/monaco-editor/typedoc/interfaces/IPosition.html)\n - GitHub Actions uses 1-based (https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message)\n - Most text editors display 1-based positions to users\n Note: LSP uses 0-based (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position),\n but we follow the canonical user-facing standards.\n\n Handling unknown positions:\n - If the entire position is unknown, leave this field as nil/undefined\n - If only line is known, set line and leave column as 0 (e.g., line=5, column=0)\n - If only column is known (rare), set column and leave line as 0\n Frontends should check for nil/undefined/zero values and handle them appropriately.",
+ },
+ "bytebase.v1.PreviewTaskRunRollbackRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PreviewTaskRunRollbackResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "statement",
+ type: "string",
+ description: "The rollback SQL statement that would undo the task run.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ProcedureMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "characterSetClient",
+ type: "string",
+ description: "MySQL specific metadata.",
+ },
+ {
+ name: "collationConnection",
+ type: "string",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of a procedure.",
+ },
+ {
+ name: "databaseCollation",
+ type: "string",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition is the definition of a procedure.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a procedure.",
+ },
+ {
+ name: "signature",
+ type: "string",
+ description:
+ "The signature is the name with the number and type of input arguments the\n procedure takes.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ },
+ {
+ name: "sqlMode",
+ type: "string",
+ },
+ ],
+ description: "ProcedureMetadata is the metadata for procedures.",
+ },
+ "bytebase.v1.Project": {
+ type: "object",
+ properties: [
+ {
+ name: "allowJustInTimeAccess",
+ type: "boolean",
+ description:
+ "Once enabled, users can request and use the just-in-time access in the SQL Editor.",
+ },
+ {
+ name: "allowRequestRole",
+ type: "boolean",
+ },
+ {
+ name: "allowSelfApproval",
+ type: "boolean",
+ description:
+ "Whether to allow issue creators to self-approve their own issues.",
+ },
+ {
+ name: "ciSamplingSize",
+ type: "integer",
+ description:
+ "The maximum number of database rows to sample during CI data validation.\n Without specification, sampling is disabled, resulting in full validation.",
+ },
+ {
+ name: "dataClassificationConfigId",
+ type: "string",
+ description:
+ "The data classification configuration ID for the project.",
+ },
+ {
+ name: "enforceIssueTitle",
+ type: "boolean",
+ description:
+ "Enforce issue title to be created by user instead of generated by Bytebase.",
+ },
+ {
+ name: "enforceSqlReview",
+ type: "boolean",
+ description:
+ "Whether to enforce SQL review checks to pass before issue creation.\n If enabled, issues cannot be created when SQL review finds errors.",
+ },
+ {
+ name: "executionRetryPolicy",
+ type: "bytebase.v1.Project.ExecutionRetryPolicy",
+ description: "Execution retry policy for task runs.",
+ },
+ {
+ name: "forceIssueLabels",
+ type: "boolean",
+ description: "Force issue labels to be used when creating an issue.",
+ },
+ {
+ name: "issueLabels",
+ type: "array<bytebase.v1.Label>",
+ description: "Labels available for tagging issues in this project.",
+ },
+ {
+ name: "labels",
+ type: "object",
+ description:
+ 'Labels are key-value pairs that can be attached to the project.\n For example, { "environment": "production", "team": "backend" }',
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the project.\n Format: projects/{project}",
+ },
+ {
+ name: "parallelTasksPerRollout",
+ type: "integer",
+ description:
+ "The maximum number of parallel tasks allowed during rollout execution.",
+ },
+ {
+ name: "postgresDatabaseTenantMode",
+ type: "boolean",
+ description:
+ 'Whether to enable database tenant mode for PostgreSQL.\n If enabled, issues will include "set role <db_owner>" statement.',
+ },
+ {
+ name: "requireIssueApproval",
+ type: "boolean",
+ description: "Whether to require issue approval before rollout.",
+ },
+ {
+ name: "requirePlanCheckNoError",
+ type: "boolean",
+ description:
+ "Whether to require plan check to have no error before rollout.",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The lifecycle state of the project.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description:
+ "The title or name of a project. It's not unique within the workspace.",
+ },
+ {
+ name: "webhooks",
+ type: "array<bytebase.v1.Webhook>",
+ description: "The list of webhooks configured for the project.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Project.ExecutionRetryPolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "maximumRetries",
+ type: "integer",
+ description: "The maximum number of retries for lock timeout errors.",
+ },
+ ],
+ description: "Execution retry policy configuration.",
+ },
+ "bytebase.v1.Project.LabelsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PurchaseBillingMethod": {
+ type: "object",
+ properties: [
+ {
+ name: "discount",
+ type: "bytebase.v1.PurchaseDiscount",
+ },
+ {
+ name: "interval",
+ type: "bytebase.v1.BillingInterval",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PurchaseDiscount": {
+ type: "object",
+ properties: [
+ {
+ name: "type",
+ type: "bytebase.v1.PurchaseDiscount.Type",
+ },
+ {
+ name: "value",
+ type: "integer",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PurchaseDiscount.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "PERCENTAGE_OFF",
+ "FIXED_MONTH_OFF",
+ "FIXED_PRICE_OFF",
+ ],
+ description: "",
+ },
+ "bytebase.v1.PurchasePlan": {
+ type: "object",
+ properties: [
+ {
+ name: "additionals",
+ type: "array<bytebase.v1.PurchasePlanAdditional>",
+ },
+ {
+ name: "billingMethods",
+ type: "array<bytebase.v1.PurchaseBillingMethod>",
+ },
+ {
+ name: "selfServicePurchase",
+ type: "boolean",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.PlanType",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PurchasePlanAdditional": {
+ type: "object",
+ properties: [
+ {
+ name: "freeCount",
+ type: "integer",
+ },
+ {
+ name: "maximumCount",
+ type: "integer",
+ description: "-1 means unlimited.",
+ },
+ {
+ name: "minimumCount",
+ type: "integer",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.PurchasePlanAdditional.Type",
+ },
+ {
+ name: "unitPrice",
+ type: "integer",
+ description: "Price in USD cents per month.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.PurchasePlanAdditional.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "USER"],
+ description: "",
+ },
+ "bytebase.v1.PurchaseResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "paymentUrl",
+ type: "string",
+ description:
+ "If set, redirect to this Stripe Checkout URL.\n If empty, the update was applied directly using the existing payment method.",
+ },
+ {
+ name: "sessionId",
+ type: "string",
+ description:
+ "Stripe Checkout Session ID. Used to verify the session after redirect.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryDataPolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "allowAdminDataSource",
+ type: "boolean",
+ description:
+ "workspace-level policy\n Allow using the admin data source to query in the SQL editor.\n If true, users can select the admin data source or read-only data source\n If false,\n 1. when read-only data source is configured, users're force to use the read-only data source\n 2. otherwise fallback to use the admin data source.",
+ },
+ {
+ name: "disableCopyData",
+ type: "boolean",
+ description:
+ "workspace-level policy\n Disable copying query results in the SQL editor.",
+ },
+ {
+ name: "disableExport",
+ type: "boolean",
+ description:
+ "workspace-level policy\n Disable data export in the SQL editor.",
+ },
+ {
+ name: "maximumResultRows",
+ type: "integer",
+ description:
+ "Support both project-level and workspace-level.\n The maximum number of rows to return in the SQL editor.\n The default value <= 0, means no limit.",
+ },
+ ],
+ description:
+ "QueryDataPolicy is the policy configuration for querying data in the SQL Editor.",
+ },
+ "bytebase.v1.QueryHistory": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ },
+ {
+ name: "database",
+ type: "string",
+ description:
+ "The database name to execute the query.\n Format: instances/{instance}/databases/{databaseName}",
+ },
+ {
+ name: "duration",
+ type: "google.protobuf.Duration",
+ },
+ {
+ name: "error",
+ type: "string",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name for the query history.\n Format: projects/{project}/queryHistories/{id}",
+ },
+ {
+ name: "statement",
+ type: "string",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.QueryHistory.Type",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryHistory.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "QUERY", "EXPORT"],
+ description: "",
+ },
+ "bytebase.v1.QueryOption": {
+ type: "object",
+ properties: [
+ {
+ name: "mssqlExplainFormat",
+ type: "bytebase.v1.QueryOption.MSSQLExplainFormat",
+ },
+ {
+ name: "redisRunCommandsOn",
+ type: "bytebase.v1.QueryOption.RedisRunCommandsOn",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryOption.MSSQLExplainFormat": {
+ type: "enum",
+ values: [
+ "MSSQL_EXPLAIN_FORMAT_UNSPECIFIED",
+ "MSSQL_EXPLAIN_FORMAT_ALL",
+ "MSSQL_EXPLAIN_FORMAT_XML",
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryOption.RedisRunCommandsOn": {
+ type: "enum",
+ values: ["REDIS_RUN_COMMANDS_ON_UNSPECIFIED", "SINGLE_NODE", "ALL_NODES"],
+ description: "",
+ },
+ "bytebase.v1.QueryRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "container",
+ type: "string",
+ description:
+ "Container is the container name to execute the query against, used for\n CosmosDB only.",
+ },
+ {
+ name: "dataSourceId",
+ type: "string",
+ description:
+ "The id of data source.\n If omitted, Query resolves the data source server-side by using the single\n read-only data source when exactly one exists, or the admin data source\n otherwise. It can also be set explicitly to query the admin data source or\n a specific read-only data source.",
+ },
+ {
+ name: "explain",
+ type: "boolean",
+ description: "Explain the statement.",
+ },
+ {
+ name: "limit",
+ type: "integer",
+ description: "The maximum number of rows to return.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name is the instance name to execute the query against.\n Format: instances/{instance}/databases/{databaseName}",
+ },
+ {
+ name: "queryOption",
+ type: "bytebase.v1.QueryOption",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description:
+ "The default schema to search objects. Equals to the current schema in\n Oracle and search path in Postgres.",
+ },
+ {
+ name: "statement",
+ type: "string",
+ description: "The SQL statement to execute.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "results",
+ type: "array<bytebase.v1.QueryResult>",
+ description: "The query results.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryResult": {
+ type: "object",
+ properties: [
+ {
+ name: "columnNames",
+ type: "array<string>",
+ description: "Column names of the query result.",
+ },
+ {
+ name: "columnTypeNames",
+ type: "array<string>",
+ description:
+ "Column types of the query result.\n The types come from the Golang SQL driver.",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "The error message if the query failed.",
+ },
+ {
+ name: "latency",
+ type: "google.protobuf.Duration",
+ description: "The time it takes to execute the query.",
+ },
+ {
+ name: "masked",
+ type: "array<bytebase.v1.MaskingReason>",
+ description:
+ "Masking reasons for each column (empty for non-masked columns).",
+ },
+ {
+ name: "messages",
+ type: "array<bytebase.v1.QueryResult.Message>",
+ description:
+ "Informational or debug messages returned by the database engine during query execution.\n Examples include PostgreSQL's RAISE NOTICE, MSSQL's PRINT, or Oracle's DBMS_OUTPUT.PUT_LINE.",
+ },
+ {
+ name: "rows",
+ type: "array<bytebase.v1.QueryRow>",
+ description: "Rows of the query result.",
+ },
+ {
+ name: "rowsCount",
+ type: "integer",
+ },
+ {
+ name: "statement",
+ type: "string",
+ description: "The query statement for the result.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryResult.CommandError": {
+ type: "object",
+ properties: [
+ {
+ name: "commandType",
+ type: "bytebase.v1.QueryResult.CommandError.Type",
+ description: "Disallowed command_type.",
+ },
+ ],
+ description:
+ "Permission denied with resource information or disallowed command_type.\n Either resources or command_type is available.",
+ },
+ "bytebase.v1.QueryResult.CommandError.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "DDL", "DML", "NON_READ_ONLY"],
+ description: "",
+ },
+ "bytebase.v1.QueryResult.Message": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ },
+ {
+ name: "level",
+ type: "bytebase.v1.QueryResult.Message.Level",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryResult.Message.Level": {
+ type: "enum",
+ values: [
+ "LEVEL_UNSPECIFIED",
+ "INFO",
+ "WARNING",
+ "DEBUG",
+ "LOG",
+ "NOTICE",
+ "EXCEPTION",
+ ],
+ description: "",
+ },
+ "bytebase.v1.QueryResult.PostgresError": {
+ type: "object",
+ properties: [
+ {
+ name: "code",
+ type: "string",
+ },
+ {
+ name: "columnName",
+ type: "string",
+ },
+ {
+ name: "constraintName",
+ type: "string",
+ },
+ {
+ name: "dataTypeName",
+ type: "string",
+ },
+ {
+ name: "detail",
+ type: "string",
+ },
+ {
+ name: "file",
+ type: "string",
+ },
+ {
+ name: "hint",
+ type: "string",
+ },
+ {
+ name: "internalPosition",
+ type: "integer",
+ },
+ {
+ name: "internalQuery",
+ type: "string",
+ },
+ {
+ name: "line",
+ type: "integer",
+ },
+ {
+ name: "message",
+ type: "string",
+ },
+ {
+ name: "position",
+ type: "integer",
+ },
+ {
+ name: "routine",
+ type: "string",
+ },
+ {
+ name: "schemaName",
+ type: "string",
+ },
+ {
+ name: "severity",
+ type: "string",
+ },
+ {
+ name: "tableName",
+ type: "string",
+ },
+ {
+ name: "where",
+ type: "string",
+ },
+ ],
+ description:
+ "refer https://www.postgresql.org/docs/11/protocol-error-fields.html\n for field description.",
+ },
+ "bytebase.v1.QueryResult.SyntaxError": {
+ type: "object",
+ properties: [
+ {
+ name: "startPosition",
+ type: "bytebase.v1.Position",
+ description: "Position information for highlighting in editor",
+ },
+ ],
+ description:
+ "Syntax error with position information for editor highlighting",
+ },
+ "bytebase.v1.QueryRow": {
+ type: "object",
+ properties: [
+ {
+ name: "values",
+ type: "array<bytebase.v1.RowValue>",
+ description: "Row values of the query result.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Range": {
+ type: "object",
+ properties: [
+ {
+ name: "end",
+ type: "integer",
+ description: "End index (exclusive).",
+ },
+ {
+ name: "start",
+ type: "integer",
+ description: "Start index (inclusive).",
+ },
+ ],
+ description:
+ "Range represents a span within a text or sequence.\n Whether the indices are byte offsets or character indices depends on the context.\n Check the documentation of the field using Range for specific semantics.",
+ },
+ "bytebase.v1.RejectIssueRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment explaining the rejection decision.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the issue to add a rejection.\n Format: projects/{project}/issues/{issue}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Release": {
+ type: "object",
+ properties: [
+ {
+ name: "category",
+ type: "string",
+ description:
+ 'Category extracted from release name (e.g., "webapp", "analytics").\n Set by Bytebase action during release creation.',
+ },
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "Format: users/[email protected]",
+ },
+ {
+ name: "files",
+ type: "array<bytebase.v1.Release.File>",
+ description: "The SQL files included in the release.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "Format: projects/{project}/releases/{release}",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The lifecycle state of the release.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.Release.Type",
+ description: "The type of schema change for all files in this release.",
+ },
+ {
+ name: "vcsSource",
+ type: "bytebase.v1.Release.VCSSource",
+ description: "The version control source of the release.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Release.File": {
+ type: "object",
+ properties: [
+ {
+ name: "path",
+ type: "string",
+ description:
+ "The path of the file. e.g., `2.2/V0001_create_table.sql`.",
+ },
+ {
+ name: "sheet",
+ type: "string",
+ description:
+ "For inputs, we must either use `sheet` or `statement`.\n For outputs, we always use `sheet`. `statement` is the preview of the sheet content.\n\n The sheet that holds the content.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ {
+ name: "sheetSha256",
+ type: "string",
+ description:
+ "The SHA256 hash value of the sheet content or the statement.",
+ },
+ {
+ name: "statement",
+ type: "string",
+ description: "The raw SQL statement content.",
+ },
+ {
+ name: "version",
+ type: "string",
+ description: "The version identifier for the file.",
+ },
+ ],
+ description: "A SQL file in a release.",
+ },
+ "bytebase.v1.Release.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "VERSIONED", "DECLARATIVE"],
+ description: "The type of schema change.",
+ },
+ "bytebase.v1.Release.VCSSource": {
+ type: "object",
+ properties: [
+ {
+ name: "url",
+ type: "string",
+ description: "The url link to the e.g., GitHub commit or pull request.",
+ },
+ {
+ name: "vcsType",
+ type: "bytebase.v1.VCSType",
+ description: "The type of VCS.",
+ },
+ ],
+ description: "Version control system source information.",
+ },
+ "bytebase.v1.RemoveDataSourceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "dataSource",
+ type: "bytebase.v1.DataSource",
+ description:
+ "Identified by data source ID.\n Only READ_ONLY data source can be removed.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the instance to remove a data source from.\n Format: instances/{instance}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RemoveWebhookRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "webhook",
+ type: "bytebase.v1.Webhook",
+ description: "The webhook to remove. Identified by its url.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RequestIssueRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment explaining the request.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the issue to request a issue.\n Format: projects/{project}/issues/{issue}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RequestMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "callerIp",
+ type: "string",
+ description: "The IP address of the request originator.",
+ },
+ {
+ name: "callerSuppliedUserAgent",
+ type: "string",
+ description:
+ "The user agent string provided by the caller.\n This is supplied by the client and is not authenticated.",
+ },
+ ],
+ description: "Metadata about the incoming request.",
+ },
+ "bytebase.v1.Restriction": {
+ type: "object",
+ properties: [
+ {
+ name: "disallowPasswordSignin",
+ type: "boolean",
+ description:
+ "Whether password-based signin is disabled (except for workspace admins).",
+ },
+ {
+ name: "disallowSignup",
+ type: "boolean",
+ description: "Whether self-service user signup is disabled.",
+ },
+ {
+ name: "passwordRestriction",
+ type: "bytebase.v1.WorkspaceProfileSetting.PasswordRestriction",
+ description: "Password complexity and restriction requirements.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ReviewConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "enabled",
+ type: "boolean",
+ description: "Whether the review configuration is enabled.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the SQL review config.\n Format: reviewConfigs/{reviewConfig}",
+ },
+ {
+ name: "resources",
+ type: "array<string>",
+ description:
+ "Resources using the config.\n Format: {resource}/{resource id}, e.g., environments/test.",
+ },
+ {
+ name: "rules",
+ type: "array<bytebase.v1.SQLReviewRule>",
+ description: "The SQL review rules to enforce.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The title of the review configuration.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Revision": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "deleter",
+ type: "string",
+ description: "Format: users/[email protected]\n Can be empty.",
+ },
+ {
+ name: "deleteTime",
+ type: "google.protobuf.Timestamp",
+ description: "Can be empty.",
+ },
+ {
+ name: "file",
+ type: "string",
+ description:
+ "Format: projects/{project}/releases/{release}/files/{id}\n Can be empty.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: instances/{instance}/databases/{database}/revisions/{revision}",
+ },
+ {
+ name: "release",
+ type: "string",
+ description:
+ "Format: projects/{project}/releases/{release}\n Can be empty.",
+ },
+ {
+ name: "sheet",
+ type: "string",
+ description:
+ "The sheet that holds the content.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ {
+ name: "sheetSha256",
+ type: "string",
+ description: "The SHA256 hash value of the sheet.",
+ },
+ {
+ name: "taskRun",
+ type: "string",
+ description:
+ "The task run associated with the revision.\n Can be empty.\n Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.Revision.Type",
+ description: "The type of the revision.",
+ },
+ {
+ name: "version",
+ type: "string",
+ description: "The schema version string for this revision.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Revision.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "VERSIONED", "DECLARATIVE"],
+ description: "The type of schema revision.",
+ },
+ "bytebase.v1.RevokeAccessGrantRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the access grant to revoke.\n Format: projects/{project}/accessGrants/{access_grant}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RiskLevel": {
+ type: "enum",
+ values: ["RISK_LEVEL_UNSPECIFIED", "LOW", "MODERATE", "HIGH"],
+ description: "RiskLevel is the risk level.",
+ },
+ "bytebase.v1.Role": {
+ type: "object",
+ properties: [
+ {
+ name: "description",
+ type: "string",
+ description: "Optional description of the role.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "Resource name. Format: roles/{role}",
+ },
+ {
+ name: "permissions",
+ type: "array<string>",
+ description: "List of permission identifiers granted by this role.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "Human-readable title.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.Role.Type",
+ description: "Role type indicating if it's built-in or custom.",
+ },
+ ],
+ description:
+ "Role defines a set of permissions that can be assigned to users.",
+ },
+ "bytebase.v1.Role.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "BUILT_IN", "CUSTOM"],
+ description: "",
+ },
+ "bytebase.v1.RoleGrant": {
+ type: "object",
+ properties: [
+ {
+ name: "condition",
+ type: "google.type.Expr",
+ description:
+ "The condition for the role. Same as the condition in IAM Binding message.",
+ },
+ {
+ name: "expiration",
+ type: "google.protobuf.Duration",
+ description: "The duration for which the grant is valid.",
+ },
+ {
+ name: "role",
+ type: "string",
+ description: "The requested role.\n Format: roles/EXPORTER.",
+ },
+ {
+ name: "user",
+ type: "string",
+ description: "The user to be granted.\n Format: users/{email}.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Rollout": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The resource name of the rollout.\n Format: projects/{project}/plans/{plan}/rollout",
+ },
+ {
+ name: "stages",
+ type: "array<bytebase.v1.Stage>",
+ description: "Stages and thus tasks of the rollout.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description:
+ "The title of the rollout, inherited from the associated plan.\n This field is output only and cannot be directly set.",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RolloutPolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "automatic",
+ type: "boolean",
+ description: "Whether rollout is automatic without manual approval.",
+ },
+ {
+ name: "roles",
+ type: "array<string>",
+ description: "The roles that can approve rollout execution.",
+ },
+ ],
+ description: "Rollout policy configuration.",
+ },
+ "bytebase.v1.RowValue.Timestamp": {
+ type: "object",
+ properties: [
+ {
+ name: "accuracy",
+ type: "integer",
+ description:
+ "The accuracy is the number of digits after the decimal point.",
+ },
+ {
+ name: "googleTimestamp",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RowValue.TimestampTZ": {
+ type: "object",
+ properties: [
+ {
+ name: "accuracy",
+ type: "integer",
+ },
+ {
+ name: "googleTimestamp",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "offset",
+ type: "integer",
+ description: "The offset is in seconds east of UTC",
+ },
+ {
+ name: "zone",
+ type: "string",
+ description:
+ 'Zone is the time zone abbreviations in timezone database such as "PDT",\n "PST". https://en.wikipedia.org/wiki/List_of_tz_database_time_zones We\n retrieve the time zone information from the timestamptz field in the\n database. A timestamp is in UTC or epoch time, and with zone info, we can\n convert it to a local time string. Zone and offset are returned by\n time.Time.Zone()',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.RunPlanChecksRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The plan to run plan checks.\n Format: projects/{project}/plans/{plan}",
+ },
+ {
+ name: "specId",
+ type: "string",
+ description:
+ "The UUID of the specific spec to run plan checks for.\n This should match the spec.id field in Plan.Spec.\n If not set, all specs in the plan will be used.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SQLReviewRule": {
+ type: "object",
+ properties: [
+ {
+ name: "engine",
+ type: "bytebase.v1.Engine",
+ description: "The database engine this rule applies to.",
+ },
+ {
+ name: "level",
+ type: "bytebase.v1.SQLReviewRule.Level",
+ description: "The severity level of the rule.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.SQLReviewRule.Type",
+ description: "The type of SQL review rule.",
+ },
+ ],
+ description:
+ "SQL review rule configuration. Check the SQL_REVIEW_RULES_DOCUMENTATION.md for details.",
+ },
+ "bytebase.v1.SQLReviewRule.CommentConventionRulePayload": {
+ type: "object",
+ properties: [
+ {
+ name: "maxLength",
+ type: "integer",
+ },
+ {
+ name: "required",
+ type: "boolean",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SQLReviewRule.Level": {
+ type: "enum",
+ values: ["LEVEL_UNSPECIFIED", "ERROR", "WARNING"],
+ description: "The severity level for SQL review rules.",
+ },
+ "bytebase.v1.SQLReviewRule.NamingCaseRulePayload": {
+ type: "object",
+ properties: [
+ {
+ name: "upper",
+ type: "boolean",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SQLReviewRule.NamingRulePayload": {
+ type: "object",
+ properties: [
+ {
+ name: "format",
+ type: "string",
+ },
+ {
+ name: "maxLength",
+ type: "integer",
+ },
+ ],
+ description: "Payload message types for SQL review rules",
+ },
+ "bytebase.v1.SQLReviewRule.NumberRulePayload": {
+ type: "object",
+ properties: [
+ {
+ name: "number",
+ type: "integer",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SQLReviewRule.StringArrayRulePayload": {
+ type: "object",
+ properties: [
+ {
+ name: "list",
+ type: "array<string>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SQLReviewRule.StringRulePayload": {
+ type: "object",
+ properties: [
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SQLReviewRule.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "ENGINE_MYSQL_USE_INNODB",
+ "NAMING_FULLY_QUALIFIED",
+ "NAMING_TABLE",
+ "NAMING_COLUMN",
+ "NAMING_INDEX_PK",
+ "NAMING_INDEX_UK",
+ "NAMING_INDEX_FK",
+ "NAMING_INDEX_IDX",
+ "NAMING_COLUMN_AUTO_INCREMENT",
+ "NAMING_TABLE_NO_KEYWORD",
+ "NAMING_IDENTIFIER_NO_KEYWORD",
+ "NAMING_IDENTIFIER_CASE",
+ "STATEMENT_SELECT_NO_SELECT_ALL",
+ "STATEMENT_WHERE_REQUIRE_SELECT",
+ "STATEMENT_WHERE_REQUIRE_UPDATE_DELETE",
+ "STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE",
+ "STATEMENT_DISALLOW_ON_DEL_CASCADE",
+ "STATEMENT_DISALLOW_RM_TBL_CASCADE",
+ "STATEMENT_DISALLOW_COMMIT",
+ "STATEMENT_DISALLOW_LIMIT",
+ "STATEMENT_DISALLOW_ORDER_BY",
+ "STATEMENT_MERGE_ALTER_TABLE",
+ "STATEMENT_INSERT_ROW_LIMIT",
+ "STATEMENT_INSERT_MUST_SPECIFY_COLUMN",
+ "STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND",
+ "STATEMENT_AFFECTED_ROW_LIMIT",
+ "STATEMENT_DML_DRY_RUN",
+ "STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT",
+ "STATEMENT_ADD_CHECK_NOT_VALID",
+ "STATEMENT_ADD_FOREIGN_KEY_NOT_VALID",
+ "STATEMENT_DISALLOW_ADD_NOT_NULL",
+ "STATEMENT_SELECT_FULL_TABLE_SCAN",
+ "STATEMENT_CREATE_SPECIFY_SCHEMA",
+ "STATEMENT_CHECK_SET_ROLE_VARIABLE",
+ "STATEMENT_DISALLOW_USING_FILESORT",
+ "STATEMENT_DISALLOW_USING_TEMPORARY",
+ "STATEMENT_WHERE_NO_EQUAL_NULL",
+ "STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS",
+ "STATEMENT_QUERY_MINIMUM_PLAN_LEVEL",
+ "STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT",
+ "STATEMENT_MAXIMUM_LIMIT_VALUE",
+ "STATEMENT_MAXIMUM_JOIN_TABLE_COUNT",
+ "STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION",
+ "STATEMENT_JOIN_STRICT_COLUMN_ATTRS",
+ "STATEMENT_NON_TRANSACTIONAL",
+ "STATEMENT_ADD_COLUMN_WITHOUT_POSITION",
+ "STATEMENT_DISALLOW_OFFLINE_DDL",
+ "STATEMENT_DISALLOW_CROSS_DB_QUERIES",
+ "STATEMENT_MAX_EXECUTION_TIME",
+ "STATEMENT_REQUIRE_ALGORITHM_OPTION",
+ "STATEMENT_REQUIRE_LOCK_OPTION",
+ "STATEMENT_OBJECT_OWNER_CHECK",
+ "TABLE_REQUIRE_PK",
+ "TABLE_NO_FOREIGN_KEY",
+ "TABLE_DROP_NAMING_CONVENTION",
+ "TABLE_COMMENT",
+ "TABLE_DISALLOW_PARTITION",
+ "TABLE_DISALLOW_TRIGGER",
+ "TABLE_NO_DUPLICATE_INDEX",
+ "TABLE_TEXT_FIELDS_TOTAL_LENGTH",
+ "TABLE_DISALLOW_SET_CHARSET",
+ "TABLE_DISALLOW_DDL",
+ "TABLE_DISALLOW_DML",
+ "TABLE_LIMIT_SIZE",
+ "TABLE_REQUIRE_CHARSET",
+ "TABLE_REQUIRE_COLLATION",
+ "COLUMN_REQUIRED",
+ "COLUMN_NO_NULL",
+ "COLUMN_DISALLOW_CHANGE_TYPE",
+ "COLUMN_SET_DEFAULT_FOR_NOT_NULL",
+ "COLUMN_DISALLOW_CHANGE",
+ "COLUMN_DISALLOW_CHANGING_ORDER",
+ "COLUMN_DISALLOW_DROP",
+ "COLUMN_DISALLOW_DROP_IN_INDEX",
+ "COLUMN_COMMENT",
+ "COLUMN_AUTO_INCREMENT_MUST_INTEGER",
+ "COLUMN_TYPE_DISALLOW_LIST",
+ "COLUMN_DISALLOW_SET_CHARSET",
+ "COLUMN_MAXIMUM_CHARACTER_LENGTH",
+ "COLUMN_MAXIMUM_VARCHAR_LENGTH",
+ "COLUMN_AUTO_INCREMENT_INITIAL_VALUE",
+ "COLUMN_AUTO_INCREMENT_MUST_UNSIGNED",
+ "COLUMN_CURRENT_TIME_COUNT_LIMIT",
+ "COLUMN_REQUIRE_DEFAULT",
+ "COLUMN_DEFAULT_DISALLOW_VOLATILE",
+ "COLUMN_ADD_NOT_NULL_REQUIRE_DEFAULT",
+ "COLUMN_REQUIRE_CHARSET",
+ "COLUMN_REQUIRE_COLLATION",
+ "SCHEMA_BACKWARD_COMPATIBILITY",
+ "DATABASE_DROP_EMPTY_DATABASE",
+ "INDEX_NO_DUPLICATE_COLUMN",
+ "INDEX_KEY_NUMBER_LIMIT",
+ "INDEX_PK_TYPE_LIMIT",
+ "INDEX_TYPE_NO_BLOB",
+ "INDEX_TOTAL_NUMBER_LIMIT",
+ "INDEX_PRIMARY_KEY_TYPE_ALLOWLIST",
+ "INDEX_CREATE_CONCURRENTLY",
+ "INDEX_TYPE_ALLOW_LIST",
+ "INDEX_NOT_REDUNDANT",
+ "SYSTEM_CHARSET_ALLOWLIST",
+ "SYSTEM_COLLATION_ALLOWLIST",
+ "SYSTEM_COMMENT_LENGTH",
+ "SYSTEM_PROCEDURE_DISALLOW_CREATE",
+ "SYSTEM_EVENT_DISALLOW_CREATE",
+ "SYSTEM_VIEW_DISALLOW_CREATE",
+ "SYSTEM_FUNCTION_DISALLOW_CREATE",
+ "SYSTEM_FUNCTION_DISALLOWED_LIST",
+ "ADVICE_ONLINE_MIGRATION",
+ "BUILTIN_PRIOR_BACKUP_CHECK",
+ "BUILTIN_WALK_THROUGH_CHECK",
+ ],
+ description: "",
+ },
+ "bytebase.v1.SchemaCatalog": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The schema name.",
+ },
+ {
+ name: "tables",
+ type: "array<bytebase.v1.TableCatalog>",
+ description: "The tables in the schema.",
+ },
+ ],
+ description: "Schema metadata within a database.",
+ },
+ "bytebase.v1.SchemaMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of a schema.",
+ },
+ {
+ name: "enumTypes",
+ type: "array<bytebase.v1.EnumTypeMetadata>",
+ description:
+ "The enum_types is the list of user-defined enum types in a schema.",
+ },
+ {
+ name: "events",
+ type: "array<bytebase.v1.EventMetadata>",
+ description: "The events is the list of scheduled events in a schema.",
+ },
+ {
+ name: "externalTables",
+ type: "array<bytebase.v1.ExternalTableMetadata>",
+ description:
+ "The external_tables is the list of external tables in a schema.",
+ },
+ {
+ name: "functions",
+ type: "array<bytebase.v1.FunctionMetadata>",
+ description: "The functions is the list of functions in a schema.",
+ },
+ {
+ name: "materializedViews",
+ type: "array<bytebase.v1.MaterializedViewMetadata>",
+ description:
+ "The materialized_views is the list of materialized views in a schema.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name is the schema name.\n It is an empty string for databases without such concept such as MySQL.",
+ },
+ {
+ name: "owner",
+ type: "string",
+ description: "The owner of the schema.",
+ },
+ {
+ name: "packages",
+ type: "array<bytebase.v1.PackageMetadata>",
+ description: "The packages is the list of packages in a schema.",
+ },
+ {
+ name: "procedures",
+ type: "array<bytebase.v1.ProcedureMetadata>",
+ description: "The procedures is the list of procedures in a schema.",
+ },
+ {
+ name: "sequences",
+ type: "array<bytebase.v1.SequenceMetadata>",
+ description:
+ "The sequences is the list of sequences in a schema, sorted by name.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ description:
+ "Whether to skip this schema during schema dump operations.",
+ },
+ {
+ name: "streams",
+ type: "array<bytebase.v1.StreamMetadata>",
+ description:
+ "The streams is the list of streams in a schema, currently, only used for\n Snowflake.",
+ },
+ {
+ name: "tables",
+ type: "array<bytebase.v1.TableMetadata>",
+ description: "The tables is the list of tables in a schema.",
+ },
+ {
+ name: "tasks",
+ type: "array<bytebase.v1.TaskMetadata>",
+ description:
+ "The routines is the list of routines in a schema, currently, only used for\n Snowflake.",
+ },
+ {
+ name: "views",
+ type: "array<bytebase.v1.ViewMetadata>",
+ description: "The views is the list of views in a schema.",
+ },
+ ],
+ description:
+ "SchemaMetadata is the metadata for schemas.\n This is the concept of schema in Postgres, but it's a no-op for MySQL.",
+ },
+ "bytebase.v1.SearchAuditLogsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'The filter of the log. It should be a valid CEL expression.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - method: the API name, can be found in the docs, should start with "/bytebase.v1." prefix. For example "/bytebase.v1.UserService/CreateUser". Support "==" operator.\n - severity: support "==" operator, check Severity enum in AuditLog message for values.\n - user: the actor, should in "users/{email}" format, support "==" operator.\n - create_time: support ">=" and "<=" operator.\n\n For example:\n - filter = "method == \'/bytebase.v1.SQLService/Query\'"\n - filter = "method == \'/bytebase.v1.SQLService/Query\' && severity == \'ERROR\'"\n - filter = "method == \'/bytebase.v1.SQLService/Query\' && severity == \'ERROR\' && user == \'users/[email protected]\'"\n - filter = "method == \'/bytebase.v1.SQLService/Query\' && severity == \'ERROR\' && create_time <= \'2021-01-01T00:00:00Z\' && create_time >= \'2020-01-01T00:00:00Z\'"',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of the log.\n Only support order by create_time. The default sorting order is ascending.\n For example:\n - order_by = "create_time asc"\n - order_by = "create_time desc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of logs to return.\n The service may return fewer than this value.\n If unspecified, at most 10 log entries will be returned.\n The maximum value is 5000; values above 5000 will be coerced to 5000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `SearchLogs` call.\n Provide this to retrieve the subsequent page.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ },
+ ],
+ description: "Request message for searching audit logs.",
+ },
+ "bytebase.v1.SearchAuditLogsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "auditLogs",
+ type: "array<bytebase.v1.AuditLog>",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token to retrieve next page of log entities.\n Pass this value in the page_token field in the subsequent call\n to retrieve the next page of log entities.",
+ },
+ ],
+ description: "Response message for searching audit logs.",
+ },
+ "bytebase.v1.SearchIssuesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ "Filter is used to filter issues returned in the list.\n Check the filter field in the ListIssuesRequest message.",
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of issues.\n Support:\n - create_time\n - update_time\n The default sorting order is ascending.\n For example:\n - order_by = "create_time desc"\n - order_by = "update_time asc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of issues to return. The service may return fewer than\n this value.\n If unspecified, at most 10 issues will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `SearchIssues` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `SearchIssues` must match\n the call that provided the page token.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ 'The parent, which owns this collection of issues.\n Format: projects/{project}\n Use "projects/-" to list all issues from all projects.',
+ },
+ {
+ name: "query",
+ type: "string",
+ description: "Query is the query statement.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchIssuesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "issues",
+ type: "array<bytebase.v1.Issue>",
+ description: "The issues from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchMyAccessGrantsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ "Check the filter field in the ListAccessGrantsRequest message.",
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ "Check the order_by field in the ListAccessGrantsRequest message.",
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description: "The maximum number of access grants to return.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description: "A page token from a previous SearchMyAccessGrants call.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent project to search in.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchMyAccessGrantsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "accessGrants",
+ type: "array<bytebase.v1.AccessGrant>",
+ description: "The access grants from the specified request.",
+ },
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchProjectsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter the project.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filters:\n - name: the project name, support "==" and ".contains()" operator.\n - resource_id: the project id, support "==" and ".contains()" operator.\n - exclude_default: if not include the default project, should be "true" or "false", support "==" operator.\n - state: check the State enum for the values, support "==" operator.\n - labels.{key}: the project label, support "==" and "in" operators.\n\n For example:\n name == "project name"\n name.contains("project name")\n resource_id == "project id"\n resource_id.contains("project id")\n exclude_default == true\n state == "DELETED"\n labels.environment == "production"\n labels.tier == "critical"\n labels.environment in ["staging", "prod"]\n You can combine filter conditions like:\n name == "project name" && resource_id.contains("project id")\n name.contains("project name") || resource_id == "project id"\n labels.environment == "production" && labels.tier == "critical"',
+ },
+ {
+ name: "orderBy",
+ type: "string",
+ description:
+ 'The order by of projects.\n Support title. The default sorting order is ascending.\n For example:\n - order_by = "title"\n - order_by = "title desc"\n - order_by = "title asc"',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of projects to return. The service may return fewer than\n this value.\n If unspecified, at most 10 projects will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `SearchProjects` call.\n Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters provided to `SearchProjects` must match\n the call that provided the page token.",
+ },
+ {
+ name: "showDeleted",
+ type: "boolean",
+ description: "Show deleted projects if specified.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchProjectsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token, which can be sent as `page_token` to retrieve the next page.\n If this field is omitted, there are no subsequent pages.",
+ },
+ {
+ name: "projects",
+ type: "array<bytebase.v1.Project>",
+ description: "The projects from the specified request.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchQueryHistoriesRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'Filter is the filter to apply on the search query history\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - project: the project full name in "projects/{id}" format, support "==" operator.\n - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.\n - instance: the instance full name in "instances/{id}" format, support "==" operator.\n - type: the type, should be "QUERY" or "EXPORT", support "==" operator.\n - statement: the SQL statement, support ".contains()" operator.\n\n For example:\n project == "projects/{project}"\n database == "instances/{instance}/databases/{database}"\n instance == "instances/{instance}"\n type == "QUERY"\n type == "EXPORT"\n statement.contains("select")\n type == "QUERY" && statement.contains("select")',
+ },
+ {
+ name: "pageSize",
+ type: "integer",
+ description:
+ "The maximum number of histories to return.\n The service may return fewer than this value.\n If unspecified, at most 10 history entries will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
+ },
+ {
+ name: "pageToken",
+ type: "string",
+ description:
+ "A page token, received from a previous `ListQueryHistory` call.\n Provide this to retrieve the subsequent page.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchQueryHistoriesResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "nextPageToken",
+ type: "string",
+ description:
+ "A token to retrieve next page of history.\n Pass this value in the page_token field in the subsequent call to\n `ListQueryHistory` method to retrieve the next page of history.",
+ },
+ {
+ name: "queryHistories",
+ type: "array<bytebase.v1.QueryHistory>",
+ description: "The list of history.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchWorksheetsRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "filter",
+ type: "string",
+ description:
+ 'To filter the search result.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n Supported filter:\n - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.\n - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.\n - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.\n\n For example:\n creator == "users/{email}"\n creator != "users/{email}"\n starred == true\n starred == false\n visibility in ["PRIVATE", "PROJECT_READ", "PROJECT_WRITE"]\n visibility == "PRIVATE"',
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The parent resource of the worksheets.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SearchWorksheetsResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "worksheets",
+ type: "array<bytebase.v1.Worksheet>",
+ description: "The worksheets that matched the search criteria.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SemanticTypeSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "types",
+ type: "array<bytebase.v1.SemanticTypeSetting.SemanticType>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SemanticTypeSetting.SemanticType": {
+ type: "object",
+ properties: [
+ {
+ name: "algorithm",
+ type: "bytebase.v1.Algorithm",
+ },
+ {
+ name: "description",
+ type: "string",
+ description: "the description of the semantic type, it can be empty.",
+ },
+ {
+ name: "icon",
+ type: "string",
+ description:
+ "icon is the icon for semantic type, it can be emoji or base64 encoded image.",
+ },
+ {
+ name: "id",
+ type: "string",
+ description: "id is the uuid for semantic type.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "the title of the semantic type, it should not be empty.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SequenceMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "cacheSize",
+ type: "string",
+ description: "Cache size of a sequence.",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment describing the sequence.",
+ },
+ {
+ name: "cycle",
+ type: "boolean",
+ description: "Cycle is whether the sequence cycles.",
+ },
+ {
+ name: "dataType",
+ type: "string",
+ description: "The data type of a sequence.",
+ },
+ {
+ name: "increment",
+ type: "string",
+ description: "Increment value of a sequence.",
+ },
+ {
+ name: "lastValue",
+ type: "string",
+ description: "Last value of a sequence.",
+ },
+ {
+ name: "maxValue",
+ type: "string",
+ description: "The maximum value of a sequence.",
+ },
+ {
+ name: "minValue",
+ type: "string",
+ description: "The minimum value of a sequence.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of a sequence.",
+ },
+ {
+ name: "ownerColumn",
+ type: "string",
+ description: "The owner column of the sequence.",
+ },
+ {
+ name: "ownerTable",
+ type: "string",
+ description: "The owner table of the sequence.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ description:
+ "Whether to skip this sequence during schema dump operations.",
+ },
+ {
+ name: "start",
+ type: "string",
+ description: "The start value of a sequence.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ServiceAccount": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ description: "The timestamp when the service account was created.",
+ },
+ {
+ name: "email",
+ type: "string",
+ description:
+ "The email of the service account.\n For workspace-level: {name}@service.bytebase.com\n For project-level: {name}@{project-id}.service.bytebase.com",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the service account.\n Format: serviceAccounts/{email}",
+ },
+ {
+ name: "serviceKey",
+ type: "string",
+ description:
+ "The service key for authentication. Only returned on creation or key rotation.",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The state of the service account.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title of the service account.",
+ },
+ ],
+ description: "ServiceAccount represents an API integration account.",
+ },
+ "bytebase.v1.SetIamPolicyRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "etag",
+ type: "string",
+ description: "The current etag of the policy.",
+ },
+ {
+ name: "policy",
+ type: "bytebase.v1.IamPolicy",
+ },
+ {
+ name: "resource",
+ type: "string",
+ description:
+ "The name of the resource to set the IAM policy.\n Format: projects/{project}\n Format: workspaces/{workspace}",
+ },
+ ],
+ description: "Request message for setting an IAM policy.",
+ },
+ "bytebase.v1.Setting": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ 'The resource name of the setting.\n Format: settings/{setting}\n Example: "settings/SEMANTIC_TYPES"',
+ },
+ {
+ name: "value",
+ type: "bytebase.v1.SettingValue",
+ description: "The configuration value of the setting.",
+ },
+ ],
+ description: "The schema of setting.",
+ },
+ "bytebase.v1.Setting.SettingName": {
+ type: "enum",
+ values: [
+ "SETTING_NAME_UNSPECIFIED",
+ "WORKSPACE_PROFILE",
+ "WORKSPACE_APPROVAL",
+ "APP_IM",
+ "AI",
+ "DATA_CLASSIFICATION",
+ "SEMANTIC_TYPES",
+ "ENVIRONMENT",
+ ],
+ description: "",
+ },
+ "bytebase.v1.Sheet": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ description:
+ "The content of the sheet.\n By default, it will be cut off, if it doesn't match the `content_size`, you can\n set the `raw` to true in GetSheet request to retrieve the full content.",
+ },
+ {
+ name: "contentSize",
+ type: "integer",
+ description:
+ "content_size is the full size of the content, may not match the size of the `content` field.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the sheet resource.\n Format: projects/{project}/sheets/{sheet}\n The sheet ID is generated by the server on creation and cannot be changed.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SignupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "email",
+ type: "string",
+ description: "The email for the new account.",
+ },
+ {
+ name: "password",
+ type: "string",
+ description: "The password for the new account.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display name of the user.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SpatialIndexConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "dimensional",
+ type: "bytebase.v1.DimensionalConfig",
+ description: "Dimensional configuration",
+ },
+ {
+ name: "method",
+ type: "string",
+ description:
+ 'Spatial indexing method (e.g., "SPATIAL", "R-TREE", "GIST")',
+ },
+ {
+ name: "storage",
+ type: "bytebase.v1.StorageConfig",
+ description: "Storage and performance configuration",
+ },
+ {
+ name: "tessellation",
+ type: "bytebase.v1.TessellationConfig",
+ description:
+ "Tessellation configuration for grid-based spatial indexes",
+ },
+ ],
+ description:
+ "SpatialIndexConfig defines the spatial index configuration for spatial databases.",
+ },
+ "bytebase.v1.Stage": {
+ type: "object",
+ properties: [
+ {
+ name: "environment",
+ type: "string",
+ description:
+ 'environment is the environment of the stage.\n Format: environments/{environment} for valid environments, or "environments/-" for stages without environment or with deleted environments.',
+ },
+ {
+ name: "id",
+ type: "string",
+ description:
+ 'id is the environment id of the stage.\n e.g., "prod".\n Use "-" when the stage has no environment or deleted environment.',
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ 'Format: projects/{project}/plans/{plan}/rollout/stages/{stage}\n Use "-" for {stage} when the stage has no environment or deleted environment.',
+ },
+ {
+ name: "tasks",
+ type: "array<bytebase.v1.Task>",
+ description: "The tasks within this stage.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.State": {
+ type: "enum",
+ values: ["STATE_UNSPECIFIED", "ACTIVE", "DELETED"],
+ description: "Resource lifecycle state.",
+ },
+ "bytebase.v1.StatementType": {
+ type: "enum",
+ values: [
+ "STATEMENT_TYPE_UNSPECIFIED",
+ "CREATE_DATABASE",
+ "CREATE_TABLE",
+ "CREATE_VIEW",
+ "CREATE_INDEX",
+ "CREATE_SEQUENCE",
+ "CREATE_SCHEMA",
+ "CREATE_FUNCTION",
+ "CREATE_TRIGGER",
+ "CREATE_PROCEDURE",
+ "CREATE_EVENT",
+ "CREATE_EXTENSION",
+ "CREATE_TYPE",
+ "DROP_DATABASE",
+ "DROP_TABLE",
+ "DROP_VIEW",
+ "DROP_INDEX",
+ "DROP_SEQUENCE",
+ "DROP_SCHEMA",
+ "DROP_FUNCTION",
+ "DROP_TRIGGER",
+ "DROP_PROCEDURE",
+ "DROP_EVENT",
+ "DROP_EXTENSION",
+ "DROP_TYPE",
+ "ALTER_DATABASE",
+ "ALTER_TABLE",
+ "ALTER_VIEW",
+ "ALTER_SEQUENCE",
+ "ALTER_EVENT",
+ "ALTER_TYPE",
+ "ALTER_INDEX",
+ "TRUNCATE",
+ "RENAME",
+ "RENAME_INDEX",
+ "RENAME_SCHEMA",
+ "RENAME_SEQUENCE",
+ "COMMENT",
+ "INSERT",
+ "UPDATE",
+ "DELETE",
+ ],
+ description: "StatementType represents the type of SQL statement.",
+ },
+ "bytebase.v1.StorageConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "allowPageLocks",
+ type: "boolean",
+ },
+ {
+ name: "allowRowLocks",
+ type: "boolean",
+ },
+ {
+ name: "buffering",
+ type: "string",
+ description: "Buffering mode for PostgreSQL (auto, on, off)",
+ },
+ {
+ name: "commitInterval",
+ type: "integer",
+ },
+ {
+ name: "dataCompression",
+ type: "string",
+ description: "NONE, ROW, PAGE",
+ },
+ {
+ name: "dropExisting",
+ type: "boolean",
+ },
+ {
+ name: "fillfactor",
+ type: "integer",
+ description: "Fill factor percentage (1-100)",
+ },
+ {
+ name: "maxdop",
+ type: "integer",
+ },
+ {
+ name: "online",
+ type: "boolean",
+ },
+ {
+ name: "padIndex",
+ type: "boolean",
+ description: "SQL Server specific parameters",
+ },
+ {
+ name: "sdoLevel",
+ type: "integer",
+ },
+ {
+ name: "sortInTempdb",
+ type: "string",
+ description: "ON, OFF",
+ },
+ {
+ name: "tablespace",
+ type: "string",
+ description: "Tablespace configuration for Oracle",
+ },
+ {
+ name: "workTablespace",
+ type: "string",
+ },
+ ],
+ description:
+ "StorageConfig defines storage and performance parameters for spatial indexes.",
+ },
+ "bytebase.v1.StreamMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment of the stream.",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition of the stream.",
+ },
+ {
+ name: "mode",
+ type: "bytebase.v1.StreamMetadata.Mode",
+ description: "The mode of the stream.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a stream.",
+ },
+ {
+ name: "owner",
+ type: "string",
+ description: "The owner of the stream.",
+ },
+ {
+ name: "stale",
+ type: "boolean",
+ description:
+ "Indicates whether the stream was last read before the `stale_after` time.",
+ },
+ {
+ name: "tableName",
+ type: "string",
+ description:
+ "The table_name is the name of the table/view that the stream is created on.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.StreamMetadata.Type",
+ description: "The type of the stream.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.StreamMetadata.Mode": {
+ type: "enum",
+ values: ["MODE_UNSPECIFIED", "DEFAULT", "APPEND_ONLY", "INSERT_ONLY"],
+ description: "",
+ },
+ "bytebase.v1.StreamMetadata.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "DELTA"],
+ description: "",
+ },
+ "bytebase.v1.Subscription": {
+ type: "object",
+ properties: [
+ {
+ name: "activeInstances",
+ type: "integer",
+ },
+ {
+ name: "etag",
+ type: "string",
+ description:
+ "Etag for optimistic concurrency on purchase updates. Only set in SaaS mode.",
+ },
+ {
+ name: "expiresTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "ha",
+ type: "boolean",
+ description:
+ "Whether high availability (multiple replicas) is enabled.",
+ },
+ {
+ name: "instances",
+ type: "integer",
+ },
+ {
+ name: "orgName",
+ type: "string",
+ },
+ {
+ name: "plan",
+ type: "bytebase.v1.PlanType",
+ },
+ {
+ name: "seats",
+ type: "integer",
+ },
+ {
+ name: "trialing",
+ type: "boolean",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SwitchWorkspaceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "mfaTempToken",
+ type: "string",
+ description:
+ "Temporary MFA token from a previous SwitchWorkspace call that returned mfa_temp_token.",
+ },
+ {
+ name: "otpCode",
+ type: "string",
+ description:
+ "OTP code for MFA verification. Required if the target workspace enforces MFA.",
+ },
+ {
+ name: "recoveryCode",
+ type: "string",
+ description:
+ "Recovery code for MFA verification (alternative to otp_code).",
+ },
+ {
+ name: "web",
+ type: "boolean",
+ description:
+ "If true, sets tokens as HTTP-only cookies (browser clients).",
+ },
+ {
+ name: "workspace",
+ type: "string",
+ description:
+ "The target workspace to switch to.\n Format: workspaces/{workspace}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SyncDatabaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the database to sync.\n Format: instances/{instance}/databases/{database}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SyncInstanceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "enableFullSync",
+ type: "boolean",
+ description:
+ "When full sync is enabled, all databases in the instance will be synchronized. Otherwise, only\n the instance metadata (such as the database list) and any newly discovered databases will be synced.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of instance.\n Format: instances/{instance}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SyncInstanceResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "databases",
+ type: "array<string>",
+ description: "All database name list in the instance.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.SyncStatus": {
+ type: "enum",
+ values: ["SYNC_STATUS_UNSPECIFIED", "OK", "FAILED"],
+ description: "SyncStatus is the status of the database sync operation.",
+ },
+ "bytebase.v1.TableCatalog": {
+ type: "object",
+ properties: [
+ {
+ name: "classification",
+ type: "string",
+ description: "The data classification level for this table.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The table name.",
+ },
+ ],
+ description: "Table metadata within a schema.",
+ },
+ "bytebase.v1.TableCatalog.Columns": {
+ type: "object",
+ properties: [
+ {
+ name: "columns",
+ type: "array<bytebase.v1.ColumnCatalog>",
+ description: "The columns in the table.",
+ },
+ ],
+ description: "Column list for regular tables.",
+ },
+ "bytebase.v1.TableMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "charset",
+ type: "string",
+ description: "The character set of table.",
+ },
+ {
+ name: "checkConstraints",
+ type: "array<bytebase.v1.CheckConstraintMetadata>",
+ description:
+ "The check_constraints is the list of check constraints in a table.",
+ },
+ {
+ name: "collation",
+ type: "string",
+ description: "The collation is the collation of a table.",
+ },
+ {
+ name: "columns",
+ type: "array<bytebase.v1.ColumnMetadata>",
+ description: "The columns is the ordered list of columns in a table.",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of a table.",
+ },
+ {
+ name: "createOptions",
+ type: "string",
+ description: "The create_options is the create option of a table.",
+ },
+ {
+ name: "dataFree",
+ type: "integer",
+ description:
+ "The data_free is the estimated free data size of a table.",
+ },
+ {
+ name: "dataSize",
+ type: "integer",
+ description: "The data_size is the estimated data size of a table.",
+ },
+ {
+ name: "engine",
+ type: "string",
+ description: "The engine is the engine of a table.",
+ },
+ {
+ name: "foreignKeys",
+ type: "array<bytebase.v1.ForeignKeyMetadata>",
+ description: "The foreign_keys is the list of foreign keys in a table.",
+ },
+ {
+ name: "indexes",
+ type: "array<bytebase.v1.IndexMetadata>",
+ description: "The indexes is the list of indexes in a table.",
+ },
+ {
+ name: "indexSize",
+ type: "integer",
+ description: "The index_size is the estimated index size of a table.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a table.",
+ },
+ {
+ name: "owner",
+ type: "string",
+ description: "The owner of the table.",
+ },
+ {
+ name: "partitions",
+ type: "array<bytebase.v1.TablePartitionMetadata>",
+ description: "The partitions is the list of partitions in a table.",
+ },
+ {
+ name: "primaryKeyType",
+ type: "string",
+ description:
+ "https://docs.pingcap.com/tidb/stable/clustered-indexes/#clustered-indexes\n CLUSTERED or NONCLUSTERED.",
+ },
+ {
+ name: "rowCount",
+ type: "integer",
+ description:
+ "The row_count is the estimated number of rows of a table.",
+ },
+ {
+ name: "shardingInfo",
+ type: "string",
+ description:
+ "https://docs.pingcap.com/tidb/stable/information-schema-tables/",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ description:
+ "Whether to skip this table during schema dump operations.",
+ },
+ {
+ name: "sortingKeys",
+ type: "array<string>",
+ description:
+ "The sorting_keys is a tuple of column names or arbitrary expressions. ClickHouse specific field.\n Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by",
+ },
+ {
+ name: "triggers",
+ type: "array<bytebase.v1.TriggerMetadata>",
+ description:
+ "The triggers is the list of triggers associated with the table.",
+ },
+ ],
+ description: "TableMetadata is the metadata for tables.",
+ },
+ "bytebase.v1.TablePartitionMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "checkConstraints",
+ type: "array<bytebase.v1.CheckConstraintMetadata>",
+ },
+ {
+ name: "expression",
+ type: "string",
+ description:
+ "The expression is the expression of a table partition.\n For PostgreSQL, the expression is the text of {FOR VALUES\n partition_bound_spec}, see\n https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL,\n the expression is the `expr` or `column_list` of the following syntax.\n PARTITION BY\n { [LINEAR] HASH(expr)\n | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)\n | RANGE{(expr) | COLUMNS(column_list)}\n | LIST{(expr) | COLUMNS(column_list)} }.",
+ },
+ {
+ name: "indexes",
+ type: "array<bytebase.v1.IndexMetadata>",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a table partition.",
+ },
+ {
+ name: "subpartitions",
+ type: "array<bytebase.v1.TablePartitionMetadata>",
+ description:
+ "The subpartitions is the list of subpartitions in a table partition.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.TablePartitionMetadata.Type",
+ description: "The type of a table partition.",
+ },
+ {
+ name: "useDefault",
+ type: "string",
+ description:
+ "The use_default is whether the users use the default partition, it stores\n the different value for different database engines. For MySQL, it's [INT]\n type, 0 means not use default partition, otherwise, it's equals to number\n in syntax [SUB]PARTITION {number}.",
+ },
+ {
+ name: "value",
+ type: "string",
+ description:
+ "The value is the value of a table partition.\n For MySQL, the value is for RANGE and LIST partition types,\n - For a RANGE partition, it contains the value set in the partition's\n VALUES LESS THAN clause, which can be either an integer or MAXVALUE.\n - For a LIST partition, this column contains the values defined in the\n partition's VALUES IN clause, which is a list of comma-separated integer\n values.\n - For others, it's an empty string.",
+ },
+ ],
+ description: "TablePartitionMetadata is the metadata for table partitions.",
+ },
+ "bytebase.v1.TablePartitionMetadata.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "RANGE",
+ "RANGE_COLUMNS",
+ "LIST",
+ "LIST_COLUMNS",
+ "HASH",
+ "LINEAR_HASH",
+ "KEY",
+ "LINEAR_KEY",
+ ],
+ description:
+ "Type is the type of a table partition, some database engines may not\n support all types. Only avilable for the following database engines now:\n MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY,\n LINEAR_KEY\n (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html) TiDB:\n RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY PostgreSQL: RANGE,\n LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)",
+ },
+ "bytebase.v1.TagPolicy": {
+ type: "object",
+ properties: [
+ {
+ name: "tags",
+ type: "object",
+ description:
+ 'tags is the key - value map for resources.\n for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}"',
+ },
+ ],
+ description: "Policy for tagging resources with metadata.",
+ },
+ "bytebase.v1.TagPolicy.TagsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Task": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}",
+ },
+ {
+ name: "runTime",
+ type: "object",
+ description:
+ "The run_time is the scheduled run time of latest task run.\n If there are no task runs or the task run is not scheduled, it will be empty.",
+ },
+ {
+ name: "skippedReason",
+ type: "string",
+ description: "The reason why the task was skipped.",
+ },
+ {
+ name: "specId",
+ type: "string",
+ description: "A UUID4 string that uniquely identifies the Spec.",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.Task.Status",
+ description: "Status is the status of the task.",
+ },
+ {
+ name: "target",
+ type: "string",
+ description:
+ "Format: instances/{instance} if the task is DatabaseCreate.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.Task.Type",
+ },
+ {
+ name: "updateTime",
+ type: "object",
+ description:
+ "The update_time is the update time of latest task run.\n If there are no task runs, it will be empty.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Task.DatabaseCreate": {
+ type: "object",
+ properties: [
+ {
+ name: "sheet",
+ type: "string",
+ description: "Format: projects/{project}/sheets/{sheet}",
+ },
+ ],
+ description: "Payload for creating a new database.",
+ },
+ "bytebase.v1.Task.DatabaseDataExport": {
+ type: "object",
+ properties: [
+ {
+ name: "sheet",
+ type: "string",
+ description:
+ "The resource name of the sheet.\n Format: projects/{project}/sheets/{sheet}",
+ },
+ ],
+ description: "Payload for exporting database data.",
+ },
+ "bytebase.v1.Task.Status": {
+ type: "enum",
+ values: [
+ "STATUS_UNSPECIFIED",
+ "NOT_STARTED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "FAILED",
+ "CANCELED",
+ "SKIPPED",
+ ],
+ description: "",
+ },
+ "bytebase.v1.Task.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "GENERAL",
+ "DATABASE_CREATE",
+ "DATABASE_MIGRATE",
+ "DATABASE_EXPORT",
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment of the task.",
+ },
+ {
+ name: "condition",
+ type: "string",
+ description: "The condition of the task.",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition of the task.",
+ },
+ {
+ name: "id",
+ type: "string",
+ description:
+ "The id is the snowflake-generated id of a task.\n Example: 01ad32a0-1bb6-5e93-0000-000000000001",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a task.",
+ },
+ {
+ name: "owner",
+ type: "string",
+ description: "The owner of the task.",
+ },
+ {
+ name: "predecessors",
+ type: "array<string>",
+ description: "The predecessor tasks of the task.",
+ },
+ {
+ name: "schedule",
+ type: "string",
+ description: "The schedule interval of the task.",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.TaskMetadata.State",
+ description: "The state of the task.",
+ },
+ {
+ name: "warehouse",
+ type: "string",
+ description: "The warehouse of the task.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskMetadata.State": {
+ type: "enum",
+ values: ["STATE_UNSPECIFIED", "STARTED", "SUSPENDED"],
+ description: "",
+ },
+ "bytebase.v1.TaskRun": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "Format: users/[email protected]",
+ },
+ {
+ name: "detail",
+ type: "string",
+ description:
+ "Below are the results of a task run.\n Detailed information about the task run result.",
+ },
+ {
+ name: "exportArchiveStatus",
+ type: "bytebase.v1.TaskRun.ExportArchiveStatus",
+ description: "The export archive status for data export tasks.",
+ },
+ {
+ name: "hasPriorBackup",
+ type: "boolean",
+ description:
+ "Indicates whether a prior backup was created for this task run.\n When true, rollback SQL can be generated via PreviewTaskRunRollback.\n Backup details are available in the task run logs.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}",
+ },
+ {
+ name: "runTime",
+ type: "object",
+ description:
+ "The task run should run after run_time.\n This can only be set when creating the task run calling BatchRunTasks.",
+ },
+ {
+ name: "schedulerInfo",
+ type: "bytebase.v1.TaskRun.SchedulerInfo",
+ description: "Scheduling information about the task run.",
+ },
+ {
+ name: "startTime",
+ type: "google.protobuf.Timestamp",
+ description: "The time when the task run started execution.",
+ },
+ {
+ name: "status",
+ type: "bytebase.v1.TaskRun.Status",
+ description: "The current execution status of the task run.",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskRun.ExportArchiveStatus": {
+ type: "enum",
+ values: ["EXPORT_ARCHIVE_STATUS_UNSPECIFIED", "READY", "EXPORTED"],
+ description: "",
+ },
+ "bytebase.v1.TaskRun.SchedulerInfo": {
+ type: "object",
+ properties: [
+ {
+ name: "reportTime",
+ type: "google.protobuf.Timestamp",
+ description: "The time when the scheduling info was reported.",
+ },
+ {
+ name: "waitingCause",
+ type: "bytebase.v1.TaskRun.SchedulerInfo.WaitingCause",
+ description: "The cause for the task run waiting.",
+ },
+ ],
+ description: "Information about task run scheduling.",
+ },
+ "bytebase.v1.TaskRun.Status": {
+ type: "enum",
+ values: [
+ "STATUS_UNSPECIFIED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "FAILED",
+ "CANCELED",
+ "AVAILABLE",
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskRunLog": {
+ type: "object",
+ properties: [
+ {
+ name: "entries",
+ type: "array<bytebase.v1.TaskRunLogEntry>",
+ description: "The log entries for this task run.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskRunLogEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "commandExecute",
+ type: "bytebase.v1.TaskRunLogEntry.CommandExecute",
+ description: "Command execution details (if type is COMMAND_EXECUTE).",
+ },
+ {
+ name: "computeDiff",
+ type: "bytebase.v1.TaskRunLogEntry.ComputeDiff",
+ description: "Compute diff details (if type is COMPUTE_DIFF).",
+ },
+ {
+ name: "databaseSync",
+ type: "bytebase.v1.TaskRunLogEntry.DatabaseSync",
+ description: "Database sync details (if type is DATABASE_SYNC).",
+ },
+ {
+ name: "logTime",
+ type: "google.protobuf.Timestamp",
+ description: "The time when the log was recorded.",
+ },
+ {
+ name: "priorBackup",
+ type: "bytebase.v1.TaskRunLogEntry.PriorBackup",
+ description: "Prior backup details (if type is PRIOR_BACKUP).",
+ },
+ {
+ name: "releaseFileExecute",
+ type: "bytebase.v1.TaskRunLogEntry.ReleaseFileExecute",
+ description:
+ "Release file execution details (if type is RELEASE_FILE_EXECUTE).",
+ },
+ {
+ name: "replicaId",
+ type: "string",
+ description: "The replica ID for this log entry.",
+ },
+ {
+ name: "retryInfo",
+ type: "bytebase.v1.TaskRunLogEntry.RetryInfo",
+ description: "Retry information details (if type is RETRY_INFO).",
+ },
+ {
+ name: "schemaDump",
+ type: "bytebase.v1.TaskRunLogEntry.SchemaDump",
+ description: "Schema dump details (if type is SCHEMA_DUMP).",
+ },
+ {
+ name: "transactionControl",
+ type: "bytebase.v1.TaskRunLogEntry.TransactionControl",
+ description:
+ "Transaction control details (if type is TRANSACTION_CONTROL).",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.TaskRunLogEntry.Type",
+ description: "The type of this log entry.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskRunLogEntry.CommandExecute": {
+ type: "object",
+ properties: [
+ {
+ name: "logTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the command was logged.",
+ },
+ {
+ name: "range",
+ type: "bytebase.v1.Range",
+ description:
+ 'The byte offset range of the executed command in the sheet.\n Uses byte offsets (not character indices) for efficient slicing of sheet content bytes.\n Example: For "SELECT 你好;" in a UTF-8 sheet, range [0, 13) represents all 13 bytes.',
+ },
+ {
+ name: "response",
+ type: "bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse",
+ description: "The response from executing the command.",
+ },
+ {
+ name: "statement",
+ type: "string",
+ description: "The executed statement.",
+ },
+ ],
+ description: "Command execution details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "affectedRows",
+ type: "integer",
+ description: "Total affected rows.",
+ },
+ {
+ name: "allAffectedRows",
+ type: "array<integer>",
+ description:
+ "`all_affected_rows` is the affected rows of each command.\n `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case.",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "Error message if command execution failed.",
+ },
+ {
+ name: "logTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the response was logged.",
+ },
+ ],
+ description: "Command execution response.",
+ },
+ "bytebase.v1.TaskRunLogEntry.ComputeDiff": {
+ type: "object",
+ properties: [
+ {
+ name: "endTime",
+ type: "google.protobuf.Timestamp",
+ description: "When diff computation ended.",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "Error message if computation failed.",
+ },
+ {
+ name: "startTime",
+ type: "google.protobuf.Timestamp",
+ description: "When diff computation started.",
+ },
+ ],
+ description: "Schema diff computation details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.DatabaseSync": {
+ type: "object",
+ properties: [
+ {
+ name: "endTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the database sync ended.",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "Error message if sync failed.",
+ },
+ {
+ name: "startTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the database sync started.",
+ },
+ ],
+ description: "Database synchronization details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.PriorBackup": {
+ type: "object",
+ properties: [
+ {
+ name: "endTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the backup ended.",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "Error message if the backup failed.",
+ },
+ {
+ name: "priorBackupDetail",
+ type: "bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail",
+ description: "The backup details.",
+ },
+ {
+ name: "startTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the backup started.",
+ },
+ ],
+ description: "Prior backup operation details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail": {
+ type: "object",
+ properties: [
+ {
+ name: "items",
+ type: "array<bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item>",
+ description: "The list of backed up tables.",
+ },
+ ],
+ description: "Prior backup detail for rollback purposes.",
+ },
+ "bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item": {
+ type: "object",
+ properties: [
+ {
+ name: "endPosition",
+ type: "bytebase.v1.Position",
+ description: "The end position in the SQL statement.",
+ },
+ {
+ name: "sourceTable",
+ type: "bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table",
+ description: "The original table information.",
+ },
+ {
+ name: "startPosition",
+ type: "bytebase.v1.Position",
+ description: "The start position in the SQL statement.",
+ },
+ {
+ name: "targetTable",
+ type: "bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table",
+ description: "The target backup table information.",
+ },
+ ],
+ description: "A single backup table mapping.",
+ },
+ "bytebase.v1.TaskRunLogEntry.PriorBackup.PriorBackupDetail.Item.Table": {
+ type: "object",
+ properties: [
+ {
+ name: "database",
+ type: "string",
+ description:
+ "The database information.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "schema",
+ type: "string",
+ description: "The schema name.",
+ },
+ {
+ name: "table",
+ type: "string",
+ description: "The table name.",
+ },
+ ],
+ description: "Table information.",
+ },
+ "bytebase.v1.TaskRunLogEntry.ReleaseFileExecute": {
+ type: "object",
+ properties: [
+ {
+ name: "filePath",
+ type: "string",
+ description:
+ 'The file path within the release (e.g., "2.2/V0001_create_table.sql").',
+ },
+ {
+ name: "version",
+ type: "string",
+ description: 'The version of the file being executed (e.g., "0001").',
+ },
+ ],
+ description: "Release file execution details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.RetryInfo": {
+ type: "object",
+ properties: [
+ {
+ name: "error",
+ type: "string",
+ description: "The error that triggered the retry.",
+ },
+ {
+ name: "maximumRetries",
+ type: "integer",
+ description: "Maximum number of retries allowed.",
+ },
+ {
+ name: "retryCount",
+ type: "integer",
+ description: "Current retry attempt number.",
+ },
+ ],
+ description: "Retry information for failed operations.",
+ },
+ "bytebase.v1.TaskRunLogEntry.SchemaDump": {
+ type: "object",
+ properties: [
+ {
+ name: "endTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the schema dump ended.",
+ },
+ {
+ name: "error",
+ type: "string",
+ description: "Error message if the schema dump failed.",
+ },
+ {
+ name: "startTime",
+ type: "google.protobuf.Timestamp",
+ description: "When the schema dump started.",
+ },
+ ],
+ description: "Schema dump operation details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.TransactionControl": {
+ type: "object",
+ properties: [
+ {
+ name: "error",
+ type: "string",
+ description: "Error message if the operation failed.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.TaskRunLogEntry.TransactionControl.Type",
+ description: "The type of transaction control.",
+ },
+ ],
+ description: "Transaction control operation details.",
+ },
+ "bytebase.v1.TaskRunLogEntry.TransactionControl.Type": {
+ type: "enum",
+ values: ["TYPE_UNSPECIFIED", "BEGIN", "COMMIT", "ROLLBACK"],
+ description: "Transaction control type.",
+ },
+ "bytebase.v1.TaskRunLogEntry.Type": {
+ type: "enum",
+ values: [
+ "TYPE_UNSPECIFIED",
+ "SCHEMA_DUMP",
+ "COMMAND_EXECUTE",
+ "DATABASE_SYNC",
+ "TRANSACTION_CONTROL",
+ "PRIOR_BACKUP",
+ "RETRY_INFO",
+ "COMPUTE_DIFF",
+ "RELEASE_FILE_EXECUTE",
+ ],
+ description: "The type of log entry.",
+ },
+ "bytebase.v1.TaskRunSession": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "Format: projects/{project}/plans/{plan}/rollout/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TaskRunSession.Postgres": {
+ type: "object",
+ properties: [
+ {
+ name: "blockedSessions",
+ type: "array<bytebase.v1.TaskRunSession.Postgres.Session>",
+ description: "`blocked_sessions` are blocked by `session`.",
+ },
+ {
+ name: "blockingSessions",
+ type: "array<bytebase.v1.TaskRunSession.Postgres.Session>",
+ description: "`blocking_sessions` block `session`.",
+ },
+ {
+ name: "session",
+ type: "bytebase.v1.TaskRunSession.Postgres.Session",
+ description:
+ "`session` is the session of the task run executing commands.",
+ },
+ ],
+ description: "PostgreSQL session information.",
+ },
+ "bytebase.v1.TaskRunSession.Postgres.Session": {
+ type: "object",
+ properties: [
+ {
+ name: "applicationName",
+ type: "string",
+ description: "Application name.",
+ },
+ {
+ name: "backendStart",
+ type: "google.protobuf.Timestamp",
+ description: "When the backend process started.",
+ },
+ {
+ name: "blockedByPids",
+ type: "array<string>",
+ description: "PIDs of sessions blocking this session.",
+ },
+ {
+ name: "clientAddr",
+ type: "string",
+ description: "Client IP address.",
+ },
+ {
+ name: "clientPort",
+ type: "string",
+ description: "Client port number.",
+ },
+ {
+ name: "datname",
+ type: "string",
+ description: "Database name.",
+ },
+ {
+ name: "pid",
+ type: "string",
+ description: "Process ID of the session.",
+ },
+ {
+ name: "query",
+ type: "string",
+ description: "Current query being executed.",
+ },
+ {
+ name: "queryStart",
+ type: "object",
+ description: "When the current query started.",
+ },
+ {
+ name: "state",
+ type: "string",
+ description: "Session state (active, idle, etc.).",
+ },
+ {
+ name: "usename",
+ type: "string",
+ description: "User name.",
+ },
+ {
+ name: "waitEvent",
+ type: "string",
+ description: "Specific wait event if session is waiting.",
+ },
+ {
+ name: "waitEventType",
+ type: "string",
+ description: "Wait event type if session is waiting.",
+ },
+ {
+ name: "xactStart",
+ type: "object",
+ description: "When the current transaction started.",
+ },
+ ],
+ description: "PostgreSQL session information read from `pg_stat_activity`.",
+ },
+ "bytebase.v1.TessellationConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "boundingBox",
+ type: "bytebase.v1.BoundingBox",
+ description:
+ "Bounding box for GEOMETRY tessellation (not used for GEOGRAPHY)",
+ },
+ {
+ name: "cellsPerObject",
+ type: "integer",
+ description: "Number of cells per object (1-8192 for SQL Server)",
+ },
+ {
+ name: "gridLevels",
+ type: "array<bytebase.v1.GridLevel>",
+ description: "Grid levels and densities for multi-level tessellation",
+ },
+ {
+ name: "scheme",
+ type: "string",
+ description:
+ 'Tessellation scheme (e.g., "GEOMETRY_GRID", "GEOGRAPHY_GRID", "GEOMETRY_AUTO_GRID")',
+ },
+ ],
+ description:
+ "TessellationConfig defines tessellation parameters for spatial indexes.",
+ },
+ "bytebase.v1.TestIdentityProviderRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "identityProvider",
+ type: "bytebase.v1.IdentityProvider",
+ description:
+ "The identity provider to test connection including uncreated.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TestIdentityProviderResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "claims",
+ type: "object",
+ description: "The map of claims returned by the identity provider.",
+ },
+ {
+ name: "userInfo",
+ type: "object",
+ description: "The matched user info from the claims.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TestIdentityProviderResponse.ClaimsEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TestIdentityProviderResponse.UserInfoEntry": {
+ type: "object",
+ properties: [
+ {
+ name: "key",
+ type: "string",
+ },
+ {
+ name: "value",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TestWebhookRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "project",
+ type: "string",
+ description:
+ "The name of the project which owns the webhook to test.\n Format: projects/{project}",
+ },
+ {
+ name: "webhook",
+ type: "bytebase.v1.Webhook",
+ description: "The webhook to test. Identified by its url.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TestWebhookResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "error",
+ type: "string",
+ description: "The result of the test, empty if the test is successful.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.TriggerMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "body",
+ type: "string",
+ description: "The body is the body of the trigger.",
+ },
+ {
+ name: "characterSetClient",
+ type: "string",
+ description:
+ "The character set used by the client creating the trigger.",
+ },
+ {
+ name: "collationConnection",
+ type: "string",
+ description:
+ "The collation used for the connection when creating the trigger.",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment describing the trigger.",
+ },
+ {
+ name: "event",
+ type: "string",
+ description:
+ "The event is the event of the trigger, such as INSERT, UPDATE, DELETE,\n TRUNCATE.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of the trigger.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ description:
+ "Whether to skip this trigger during schema dump operations.",
+ },
+ {
+ name: "sqlMode",
+ type: "string",
+ description: "The SQL mode setting for the trigger.",
+ },
+ {
+ name: "timing",
+ type: "string",
+ description:
+ "The timing is the timing of the trigger, such as BEFORE, AFTER.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UndeleteInstanceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the deleted instance.\n Format: instances/{instance}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UndeleteProjectRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the deleted project.\n Format: projects/{project}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UndeleteReleaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the deleted release.\n Format: projects/{project}/releases/{release}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UndeleteServiceAccountRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the deleted service account.\n Format: serviceAccounts/{email}",
+ },
+ ],
+ description: "Request message for restoring a deleted service account.",
+ },
+ "bytebase.v1.UndeleteUserRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the deleted user.\n Format: users/{email}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UndeleteWorkloadIdentityRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the deleted workload identity.\n Format: workloadIdentities/{email}",
+ },
+ ],
+ description: "Request message for restoring a deleted workload identity.",
+ },
+ "bytebase.v1.UpdateDataSourceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the data source is not found, a new data source will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "dataSource",
+ type: "bytebase.v1.DataSource",
+ description: "Identified by data source ID.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the instance to update a data source.\n Format: instances/{instance}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ {
+ name: "validateOnly",
+ type: "boolean",
+ description: "Validate only also tests the data source connection.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateDatabaseCatalogRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the database catalog is not found, a new database catalog will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "catalog",
+ type: "bytebase.v1.DatabaseCatalog",
+ description:
+ "The database catalog to update.\n\n The catalog's `name` field is used to identify the database catalog to update.\n Format: instances/{instance}/databases/{database}/catalog",
+ },
+ ],
+ description: "Request message for updating a database catalog.",
+ },
+ "bytebase.v1.UpdateDatabaseGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the database group is not found, a new database group will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "databaseGroup",
+ type: "bytebase.v1.DatabaseGroup",
+ description:
+ "The database group to update.\n\n The database group's `name` field is used to identify the database group to update.\n Format: projects/{project}/databaseGroups/{databaseGroup}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "Request message for updating a database group.",
+ },
+ "bytebase.v1.UpdateDatabaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the database is not found, a new database will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "database",
+ type: "bytebase.v1.Database",
+ description:
+ "The database to update.\n\n The database's `name` field is used to identify the database to update.\n Format: instances/{instance}/databases/{database}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateEmailRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "email",
+ type: "string",
+ description: "The new email address.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the user whose email to update.\n Format: users/{email}\n Note: This is the current (old) email address. The new email is specified in the 'email' field.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateGroupRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the group is not found, a new group will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "group",
+ type: "bytebase.v1.Group",
+ description:
+ "The group to update.\n\n The group's `name` field is used to identify the group to update.\n Format: groups/{email}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "Request message for updating a group.",
+ },
+ "bytebase.v1.UpdateIdentityProviderRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the identity provider is not found, a new identity provider will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "identityProvider",
+ type: "bytebase.v1.IdentityProvider",
+ description:
+ "The identity provider to update.\n\n The identity provider's `name` field is used to identify the identity provider to update.\n Format: idps/{identity_provider}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateInstanceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the instance is not found, a new instance will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "instance",
+ type: "bytebase.v1.Instance",
+ description:
+ "The instance to update.\n\n The instance's `name` field is used to identify the instance to update.\n Format: instances/{instance}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateIssueCommentRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the issue comment is not found, a new issue comment will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "issueComment",
+ type: "bytebase.v1.IssueComment",
+ description: "The comment to update.",
+ },
+ {
+ name: "parent",
+ type: "string",
+ description:
+ "The issue name\n Format: projects/{project}/issues/{issue}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateIssueRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the issue is not found, a new issue will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "issue",
+ type: "bytebase.v1.Issue",
+ description:
+ "The issue to update.\n\n The issue's `name` field is used to identify the issue to update.\n Format: projects/{project}/issues/{issue}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdatePlanRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the plan is not found, a new plan will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "plan",
+ type: "bytebase.v1.Plan",
+ description:
+ "The plan to update.\n\n The plan's `name` field is used to identify the plan to update.\n Format: projects/{project}/plans/{plan}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdatePolicyRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the policy is not found, a new policy will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "policy",
+ type: "bytebase.v1.Policy",
+ description:
+ "The policy to update.\n\n The policy's `name` field is used to identify the instance to update.\n Format: {resource name}/policies/{policy type}\n Workspace resource name: workspaces/{workspace-id}.\n Environment resource name: environments/environment-id.\n Instance resource name: instances/instance-id.\n Database resource name: instances/instance-id/databases/database-name.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateProjectRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the project is not found, a new project will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "project",
+ type: "bytebase.v1.Project",
+ description:
+ "The project to update.\n\n The project's `name` field is used to identify the project to update.\n Format: projects/{project}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdatePurchaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "etag",
+ type: "string",
+ },
+ {
+ name: "interval",
+ type: "bytebase.v1.BillingInterval",
+ },
+ {
+ name: "plan",
+ type: "bytebase.v1.PlanType",
+ },
+ {
+ name: "seats",
+ type: "integer",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateReleaseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "release",
+ type: "bytebase.v1.Release",
+ description: "The release to update.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to be updated.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateReviewConfigRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the config is not found, a new config will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "reviewConfig",
+ type: "bytebase.v1.ReviewConfig",
+ description:
+ "The SQL review config to update.\n\n The name field is used to identify the SQL review config to update.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateRoleRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the role is not found, a new role will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "role",
+ type: "bytebase.v1.Role",
+ description: "The role to update.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateServiceAccountRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "serviceAccount",
+ type: "bytebase.v1.ServiceAccount",
+ description:
+ "The service account to update.\n\n The service account's `name` field is used to identify the service account to update.\n Format: serviceAccounts/{email}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description:
+ "The list of fields to update.\n Supported fields: title, service_key (triggers key rotation)",
+ },
+ ],
+ description: "Request message for updating a service account.",
+ },
+ "bytebase.v1.UpdateSettingRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ },
+ {
+ name: "setting",
+ type: "bytebase.v1.Setting",
+ description: "The setting to update.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ },
+ {
+ name: "validateOnly",
+ type: "boolean",
+ description:
+ "validate_only is a flag to indicate whether to validate the setting value,\n server would not persist the setting value if it is true.",
+ },
+ ],
+ description: "The request message for updating or creating a setting.",
+ },
+ "bytebase.v1.UpdateUserRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the user is not found, a new user will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "otpCode",
+ type: "string",
+ description:
+ "The otp_code is used to verify the user's identity by MFA.",
+ },
+ {
+ name: "regenerateRecoveryCodes",
+ type: "boolean",
+ description:
+ "The regenerate_recovery_codes flag means to regenerate recovery codes for user.",
+ },
+ {
+ name: "regenerateTempMfaSecret",
+ type: "boolean",
+ description:
+ "The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user.\n This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ {
+ name: "user",
+ type: "bytebase.v1.User",
+ description:
+ "The user to update.\n\n The user's `name` field is used to identify the user to update.\n Format: users/{email}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateWebhookRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the webhook is not found, a new webhook will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description: "The list of fields to update.",
+ },
+ {
+ name: "webhook",
+ type: "bytebase.v1.Webhook",
+ description: "The webhook to modify.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateWorkloadIdentityRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description:
+ "The list of fields to update.\n Supported fields: title, workload_identity_config",
+ },
+ {
+ name: "workloadIdentity",
+ type: "bytebase.v1.WorkloadIdentity",
+ description:
+ "The workload identity to update.\n\n The workload identity's `name` field is used to identify the workload identity to update.\n Format: workloadIdentities/{email}",
+ },
+ ],
+ description: "Request message for updating a workload identity.",
+ },
+ "bytebase.v1.UpdateWorksheetOrganizerRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "allowMissing",
+ type: "boolean",
+ description:
+ "If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created.\n In this situation, `update_mask` is ignored.",
+ },
+ {
+ name: "organizer",
+ type: "bytebase.v1.WorksheetOrganizer",
+ description:
+ "The organizer to update.\n\n The organizer's `worksheet` field is used to identify the worksheet.\n Format: projects/{project}/worksheets/{worksheet}",
+ },
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description:
+ "The list of fields to be updated.\n Fields are specified relative to the worksheet organizer.\n Only support update the following fields for now:\n - `starred`",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateWorksheetRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ description:
+ "The list of fields to be updated.\n Fields are specified relative to the worksheet.\n (e.g., `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`)\n Only support update the following fields for now:\n - `title`\n - `statement`\n - `starred`\n - `visibility`",
+ },
+ {
+ name: "worksheet",
+ type: "bytebase.v1.Worksheet",
+ description:
+ "The worksheet to update.\n\n The worksheet's `name` field is used to identify the worksheet to update.\n Format: projects/{project}/worksheets/{worksheet}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UpdateWorkspaceRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "updateMask",
+ type: "google.protobuf.FieldMask",
+ },
+ {
+ name: "workspace",
+ type: "bytebase.v1.Workspace",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.UploadLicenseRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "license",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.User": {
+ type: "object",
+ properties: [
+ {
+ name: "email",
+ type: "string",
+ description:
+ "The email address of the user, used for login and notifications.",
+ },
+ {
+ name: "groups",
+ type: "array<string>",
+ description: "The groups for the user.\n Format: groups/{email}",
+ },
+ {
+ name: "mfaEnabled",
+ type: "boolean",
+ description: "The mfa_enabled flag means if the user has enabled MFA.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name of the user.\n Format: users/{email}",
+ },
+ {
+ name: "password",
+ type: "string",
+ description:
+ "The password for authentication. Only used during user creation or password updates.",
+ },
+ {
+ name: "phone",
+ type: "string",
+ description:
+ "Should be a valid E.164 compliant phone number.\n Could be empty.",
+ },
+ {
+ name: "profile",
+ type: "bytebase.v1.User.Profile",
+ description: "User profile metadata.",
+ },
+ {
+ name: "serviceKey",
+ type: "string",
+ description: "The service key for service account authentication.",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The lifecycle state of the user account.",
+ },
+ {
+ name: "tempOtpSecret",
+ type: "string",
+ description:
+ "Temporary OTP secret used during MFA setup and regeneration.",
+ },
+ {
+ name: "tempOtpSecretCreatedTime",
+ type: "google.protobuf.Timestamp",
+ description:
+ "Timestamp when temp_otp_secret was created. Used by frontend to show countdown timer.",
+ },
+ {
+ name: "tempRecoveryCodes",
+ type: "array<string>",
+ description:
+ "Temporary recovery codes used during MFA setup and regeneration.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title or full name of the user.",
+ },
+ {
+ name: "workspace",
+ type: "string",
+ description: "The current workspace.\n Format: workspaces/{id}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.User.Profile": {
+ type: "object",
+ properties: [
+ {
+ name: "lastChangePasswordTime",
+ type: "google.protobuf.Timestamp",
+ description: "The last time the user changed their password.",
+ },
+ {
+ name: "lastLoginTime",
+ type: "google.protobuf.Timestamp",
+ description: "The last time the user successfully logged in.",
+ },
+ {
+ name: "source",
+ type: "string",
+ description:
+ "source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.VCSType": {
+ type: "enum",
+ values: [
+ "VCS_TYPE_UNSPECIFIED",
+ "GITHUB",
+ "GITLAB",
+ "BITBUCKET",
+ "AZURE_DEVOPS",
+ ],
+ description: "Version control system type.",
+ },
+ "bytebase.v1.VerifyCheckoutSessionRequest": {
+ type: "object",
+ properties: [
+ {
+ name: "sessionId",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.VerifyCheckoutSessionResponse": {
+ type: "object",
+ properties: [
+ {
+ name: "status",
+ type: "string",
+ description:
+ 'Stripe Checkout Session status: "complete", "expired", or "open".',
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.ViewMetadata": {
+ type: "object",
+ properties: [
+ {
+ name: "columns",
+ type: "array<bytebase.v1.ColumnMetadata>",
+ description: "The columns is the ordered list of columns in a table.",
+ },
+ {
+ name: "comment",
+ type: "string",
+ description: "The comment is the comment of a view.",
+ },
+ {
+ name: "definition",
+ type: "string",
+ description: "The definition is the definition of a view.",
+ },
+ {
+ name: "dependencyColumns",
+ type: "array<bytebase.v1.DependencyColumn>",
+ description:
+ "The dependency_columns is the list of dependency columns of a view.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "The name is the name of a view.",
+ },
+ {
+ name: "skipDump",
+ type: "boolean",
+ },
+ {
+ name: "triggers",
+ type: "array<bytebase.v1.TriggerMetadata>",
+ description: "The triggers is the list of triggers in a view.",
+ },
+ ],
+ description: "ViewMetadata is the metadata for views.",
+ },
+ "bytebase.v1.Webhook": {
+ type: "object",
+ properties: [
+ {
+ name: "directMessage",
+ type: "boolean",
+ description:
+ "if direct_message is set, the notification is sent directly\n to the persons and url will be ignored.\n IM integration setting should be set for this function to work.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "name is the name of the webhook, generated by the server.\n format: projects/{project}/webhooks/{webhook}",
+ },
+ {
+ name: "notificationTypes",
+ type: "array<bytebase.v1.Activity.Type>",
+ description:
+ "notification_types is the list of activities types that the webhook is interested in.\n Bytebase will only send notifications to the webhook if the activity type is in the list.\n It should not be empty, and should be a subset of the following:\n - ISSUE_CREATED\n - ISSUE_APPROVAL_REQUESTED\n - ISSUE_SENT_BACK\n - ISSUE_APPROVED\n - PIPELINE_FAILED\n - PIPELINE_COMPLETED",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "title is the title of the webhook.",
+ },
+ {
+ name: "type",
+ type: "bytebase.v1.WebhookType",
+ description:
+ "Webhook integration type.\n type is the type of the webhook.",
+ },
+ {
+ name: "url",
+ type: "string",
+ description:
+ "url is the url of the webhook, should be unique within the project.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.WebhookType": {
+ type: "enum",
+ values: [
+ "WEBHOOK_TYPE_UNSPECIFIED",
+ "SLACK",
+ "DISCORD",
+ "TEAMS",
+ "DINGTALK",
+ "FEISHU",
+ "WECOM",
+ "LARK",
+ ],
+ description: "Webhook integration type.",
+ },
+ "bytebase.v1.WorkloadIdentity": {
+ type: "object",
+ properties: [
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ description: "The timestamp when the workload identity was created.",
+ },
+ {
+ name: "email",
+ type: "string",
+ description:
+ "The email of the workload identity.\n For workspace-level: {name}@workload.bytebase.com\n For project-level: {name}@{project-id}.workload.bytebase.com",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the workload identity.\n Format: workloadIdentities/{email}",
+ },
+ {
+ name: "state",
+ type: "bytebase.v1.State",
+ description: "The state of the workload identity.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The display title of the workload identity.",
+ },
+ {
+ name: "workloadIdentityConfig",
+ type: "bytebase.v1.WorkloadIdentityConfig",
+ description:
+ "The workload identity configuration for OIDC token validation.",
+ },
+ ],
+ description:
+ "WorkloadIdentity represents an external CI/CD workload identity.",
+ },
+ "bytebase.v1.WorkloadIdentityConfig": {
+ type: "object",
+ properties: [
+ {
+ name: "allowedAudiences",
+ type: "array<string>",
+ description: "Allowed audiences for token validation",
+ },
+ {
+ name: "issuerUrl",
+ type: "string",
+ description:
+ "OIDC Issuer URL (auto-filled based on provider_type, can be overridden)",
+ },
+ {
+ name: "providerType",
+ type: "bytebase.v1.WorkloadIdentityConfig.ProviderType",
+ description: "Platform type (currently only GITHUB is supported)",
+ },
+ {
+ name: "subjectPattern",
+ type: "string",
+ description:
+ 'Subject pattern to match (e.g., "repo:owner/repo:ref:refs/heads/main")',
+ },
+ ],
+ description: "WorkloadIdentityConfig for API layer",
+ },
+ "bytebase.v1.WorkloadIdentityConfig.ProviderType": {
+ type: "enum",
+ values: ["PROVIDER_TYPE_UNSPECIFIED", "GITHUB", "GITLAB"],
+ description: "ProviderType identifies the CI/CD platform.",
+ },
+ "bytebase.v1.Worksheet": {
+ type: "object",
+ properties: [
+ {
+ name: "content",
+ type: "string",
+ description:
+ "The content of the worksheet.\n By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can\n use GetWorksheet() request to retrieve the full content.",
+ },
+ {
+ name: "contentSize",
+ type: "integer",
+ description:
+ "content_size is the full size of the content, may not match the size of the `content` field.",
+ },
+ {
+ name: "createTime",
+ type: "google.protobuf.Timestamp",
+ description: "The create time of the worksheet.",
+ },
+ {
+ name: "creator",
+ type: "string",
+ description: "The creator of the Worksheet.\n Format: users/{email}",
+ },
+ {
+ name: "database",
+ type: "string",
+ description:
+ "The database resource name.\n Format: instances/{instance}/databases/{database}\n If the database parent doesn't exist, the database field is empty.",
+ },
+ {
+ name: "folders",
+ type: "array<string>",
+ },
+ {
+ name: "name",
+ type: "string",
+ description:
+ "The name of the worksheet resource, generated by the server.\n Canonical parent is project.\n Format: projects/{project}/worksheets/{worksheet}",
+ },
+ {
+ name: "project",
+ type: "string",
+ description: "The project resource name.\n Format: projects/{project}",
+ },
+ {
+ name: "starred",
+ type: "boolean",
+ description:
+ "starred indicates whether the worksheet is starred by the current authenticated user.",
+ },
+ {
+ name: "title",
+ type: "string",
+ description: "The title of the worksheet.",
+ },
+ {
+ name: "updateTime",
+ type: "google.protobuf.Timestamp",
+ description: "The last update time of the worksheet.",
+ },
+ {
+ name: "visibility",
+ type: "bytebase.v1.Worksheet.Visibility",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Worksheet.Visibility": {
+ type: "enum",
+ values: [
+ "VISIBILITY_UNSPECIFIED",
+ "PROJECT_READ",
+ "PROJECT_WRITE",
+ "PRIVATE",
+ ],
+ description: "",
+ },
+ "bytebase.v1.WorksheetOrganizer": {
+ type: "object",
+ properties: [
+ {
+ name: "folders",
+ type: "array<string>",
+ },
+ {
+ name: "starred",
+ type: "boolean",
+ description: "starred means if the worksheet is starred.",
+ },
+ {
+ name: "worksheet",
+ type: "string",
+ description:
+ "The name of the worksheet.\n Format: projects/{project}/worksheets/{worksheet}",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.Workspace": {
+ type: "object",
+ properties: [
+ {
+ name: "logo",
+ type: "string",
+ description: "The branding logo.",
+ },
+ {
+ name: "name",
+ type: "string",
+ description: "Format: workspaces/{workspace}",
+ },
+ {
+ name: "title",
+ type: "string",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.WorkspaceApprovalSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "rules",
+ type: "array<bytebase.v1.WorkspaceApprovalSetting.Rule>",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.WorkspaceApprovalSetting.Rule": {
+ type: "object",
+ properties: [
+ {
+ name: "condition",
+ type: "google.type.Expr",
+ description:
+ 'The condition that is associated with the rule.\n The syntax and semantics of CEL are documented at https://github.com/google/cel-spec\n\n The `source` field filters which rules apply. The `condition` field then evaluates with full context.\n\n All supported variables:\n statement.affected_rows: affected row count in the DDL/DML, support "==", "!=", "<", "<=", ">", ">=" operations.\n statement.table_rows: table row count number, support "==", "!=", "<", "<=", ">", ">=" operations.\n resource.environment_id: the environment resource id, support "==", "!=", "in [xx]", "!(in [xx])" operations.\n resource.project_id: the project resource id, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.\n resource.db_engine: the database engine type, support "==", "!=", "in [xx]", "!(in [xx])" operations. Check the Engine enum for values.\n statement.sql_type: the SQL type, support "==", "!=", "in [xx]", "!(in [xx])" operations.\n resource.database_name: the database name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.\n resource.schema_name: the schema name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.\n resource.table_name: the table name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.\n statement.text: the SQL statement, support "contains()", "matches()", "startsWith()", "endsWith()" operations.\n request.expiration_days: the role expiration days for the request, support "==", "!=", "<", "<=", ">", ">=" operations.\n request.role: the request role full name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.\n\n When source is CHANGE_DATABASE, support: statement.*, resource.* (excluding request.*)\n When source is CREATE_DATABASE, support: resource.environment_id, resource.project_id, resource.db_engine, resource.database_name\n When source is EXPORT_DATA, support: resource.environment_id, resource.project_id, resource.db_engine, resource.database_name, resource.schema_name, resource.table_name\n When source is REQUEST_ROLE, support: resource.project_id, request.expiration_days, request.role\n When source is REQUEST_ACCESS, support: resource.environment_id, resource.project_id, request.unmask\n\n For examples:\n resource.environment_id == "prod" && statement.affected_rows >= 100\n resource.table_name.matches("sensitive_.*") && resource.db_engine == "MYSQL"',
+ },
+ {
+ name: "source",
+ type: "bytebase.v1.WorkspaceApprovalSetting.Rule.Source",
+ },
+ {
+ name: "template",
+ type: "bytebase.v1.ApprovalTemplate",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.WorkspaceApprovalSetting.Rule.Source": {
+ type: "enum",
+ values: [
+ "SOURCE_UNSPECIFIED",
+ "CHANGE_DATABASE",
+ "CREATE_DATABASE",
+ "EXPORT_DATA",
+ "REQUEST_ROLE",
+ "REQUEST_ACCESS",
+ ],
+ description: "",
+ },
+ "bytebase.v1.WorkspaceProfileSetting": {
+ type: "object",
+ properties: [
+ {
+ name: "accessTokenDuration",
+ type: "google.protobuf.Duration",
+ description: "The duration for access token. Default is 1 hour.",
+ },
+ {
+ name: "announcement",
+ type: "bytebase.v1.Announcement",
+ description: "The setting of custom announcement",
+ },
+ {
+ name: "databaseChangeMode",
+ type: "bytebase.v1.DatabaseChangeMode",
+ description: "The workspace database change mode.",
+ },
+ {
+ name: "directorySyncToken",
+ type: "string",
+ description: "The token for directory sync authentication.",
+ },
+ {
+ name: "disallowPasswordSignin",
+ type: "boolean",
+ description:
+ "Whether to disallow password signin. (Except workspace admins)",
+ },
+ {
+ name: "disallowSignup",
+ type: "boolean",
+ description:
+ "Disallow self-service signup, users can only be invited by the owner.",
+ },
+ {
+ name: "domains",
+ type: "array<string>",
+ description: "The workspace domain, e.g., bytebase.com.",
+ },
+ {
+ name: "enableAuditLogStdout",
+ type: "boolean",
+ description:
+ "Whether to enable audit logging to stdout in structured JSON format.\n Requires TEAM or ENTERPRISE license.",
+ },
+ {
+ name: "enableDebug",
+ type: "boolean",
+ description: "Whether debug mode is enabled.",
+ },
+ {
+ name: "enableMetricCollection",
+ type: "boolean",
+ description: "Whether to enable metric collection for the workspace.",
+ },
+ {
+ name: "enforceIdentityDomain",
+ type: "boolean",
+ description:
+ "Only user and group from the domains can be created and login.",
+ },
+ {
+ name: "externalUrl",
+ type: "string",
+ description:
+ "The external URL is used for sso authentication callback.",
+ },
+ {
+ name: "inactiveSessionTimeout",
+ type: "google.protobuf.Duration",
+ description:
+ "The session expiration time if not activity detected for the user. Value <= 0 means no limit.",
+ },
+ {
+ name: "maximumRoleExpiration",
+ type: "google.protobuf.Duration",
+ description: "The max duration for role expired.",
+ },
+ {
+ name: "passwordRestriction",
+ type: "bytebase.v1.WorkspaceProfileSetting.PasswordRestriction",
+ description: "Password restriction settings.",
+ },
+ {
+ name: "queryTimeout",
+ type: "google.protobuf.Duration",
+ description:
+ "The query timeout duration for query and export, works for the SQL Editor and Export Center.",
+ },
+ {
+ name: "refreshTokenDuration",
+ type: "google.protobuf.Duration",
+ description: "The duration for refresh token. Default is 7 days.",
+ },
+ {
+ name: "require2fa",
+ type: "boolean",
+ description: "Require 2FA for all users.",
+ },
+ {
+ name: "sqlResultSize",
+ type: "integer",
+ description:
+ "The maximum result size limit in bytes for query and export, works for the SQL Editor and Export Center.\n The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0.",
+ },
+ {
+ name: "watermark",
+ type: "boolean",
+ description:
+ "Whether to display watermark on pages.\n Requires ENTERPRISE license.",
+ },
+ ],
+ description: "",
+ },
+ "bytebase.v1.WorkspaceProfileSetting.PasswordRestriction": {
+ type: "object",
+ properties: [
+ {
+ name: "minLength",
+ type: "integer",
+ description:
+ "min_length is the minimum length for password, should no less than 8.",
+ },
+ {
+ name: "passwordRotation",
+ type: "google.protobuf.Duration",
+ description:
+ "password_rotation requires users to reset their password after the duration.",
+ },
+ {
+ name: "requireLetter",
+ type: "boolean",
+ description:
+ "require_letter requires the password must contains at least one letter, regardless of upper case or lower case",
+ },
+ {
+ name: "requireNumber",
+ type: "boolean",
+ description:
+ "require_number requires the password must contains at least one number.",
+ },
+ {
+ name: "requireResetPasswordForFirstLogin",
+ type: "boolean",
+ description:
+ "require_reset_password_for_first_login requires users to reset their password after the 1st login.",
+ },
+ {
+ name: "requireSpecialCharacter",
+ type: "boolean",
+ description:
+ "require_special_character requires the password must contains at least one special character.",
+ },
+ {
+ name: "requireUppercaseLetter",
+ type: "boolean",
+ description:
+ "require_uppercase_letter requires the password must contains at least one upper case letter.",
+ },
+ ],
+ description: "",
+ },
+};
diff --git a/frontend/src/react/pages/settings/shared/AccountMultiSelect.tsx b/frontend/src/react/components/AccountMultiSelect.tsx
similarity index 97%
rename from frontend/src/react/pages/settings/shared/AccountMultiSelect.tsx
rename to frontend/src/react/components/AccountMultiSelect.tsx
index f81e642ddb..1462e51ecb 100644
--- a/frontend/src/react/pages/settings/shared/AccountMultiSelect.tsx
+++ b/frontend/src/react/components/AccountMultiSelect.tsx
@@ -1,14 +1,7 @@
-import {
- Check,
- ChevronDown,
- KeyRound,
- Search,
- Shield,
- Users,
- X,
-} from "lucide-react";
+import { Check, ChevronDown, KeyRound, Shield, Users, X } from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
+import { SearchInput } from "@/react/components/ui/search-input";
import { useClickOutside } from "@/react/hooks/useClickOutside";
import { useVueState } from "@/react/hooks/useVueState";
import { cn } from "@/react/lib/utils";
@@ -332,16 +325,13 @@ export function AccountMultiSelect({
{open && (
<div className="absolute z-50 mt-1 w-full bg-white border border-control-border rounded-sm shadow-lg max-h-72 overflow-auto flex flex-col">
{/* Search input */}
- <div className="flex items-center gap-x-2 px-3 py-2 border-b sticky top-0 bg-white">
- <Search className="h-4 w-4 text-control-light shrink-0" />
- <input
- ref={inputRef}
- className="flex-1 outline-hidden text-sm bg-transparent"
- value={search}
- onChange={(e) => setSearch(e.target.value)}
- placeholder={t("common.search-for-more")}
- />
- </div>
+ <SearchInput
+ ref={inputRef}
+ wrapperClassName="sticky top-0 bg-white m-2"
+ value={search}
+ onChange={(e) => setSearch(e.target.value)}
+ placeholder={t("common.search-for-more")}
+ />
<div className="overflow-auto">
{/* allUsers option */}
diff --git a/frontend/src/react/components/AuditLogTable.tsx b/frontend/src/react/components/AuditLogTable.tsx
index d3d77d1991..75fc88023e 100644
--- a/frontend/src/react/components/AuditLogTable.tsx
+++ b/frontend/src/react/components/AuditLogTable.tsx
@@ -23,13 +23,14 @@ import {
} from "@/react/components/AdvancedSearch";
import { FeatureAttention } from "@/react/components/FeatureAttention";
import { Button } from "@/react/components/ui/button";
+import { Input } from "@/react/components/ui/input";
+import { PagedTableFooter } from "@/react/hooks/usePagedData";
import {
getPageSizeOptions,
useSessionPageSize,
} from "@/react/hooks/useSessionPageSize";
import { useVueState } from "@/react/hooks/useVueState";
import { cn } from "@/react/lib/utils";
-import { PagedTableFooter } from "@/react/pages/settings/shared/usePagedData";
import { pushNotification, useSubscriptionV1Store } from "@/store";
import {
extractUserEmail,
@@ -317,10 +318,10 @@ function TimeRangePicker({
<label className="text-sm text-control-light whitespace-nowrap w-10">
{t("common.from")}
</label>
- <input
+ <Input
type="datetime-local"
step="1"
- className="flex-1 border border-control-border rounded-xs px-2 py-1 text-sm"
+ className="flex-1"
value={fromDatetime}
onChange={(e) => updateRange(e.target.value, toDatetime)}
/>
@@ -329,10 +330,10 @@ function TimeRangePicker({
<label className="text-sm text-control-light whitespace-nowrap w-10">
{t("common.to")}
</label>
- <input
+ <Input
type="datetime-local"
step="1"
- className="flex-1 border border-control-border rounded-xs px-2 py-1 text-sm"
+ className="flex-1"
value={toDatetime}
onChange={(e) => updateRange(fromDatetime, e.target.value)}
/>
diff --git a/frontend/src/react/components/CreateWorkloadIdentityDrawer.tsx b/frontend/src/react/components/CreateWorkloadIdentityDrawer.tsx
index 8f7387a08d..09fc88876f 100644
--- a/frontend/src/react/components/CreateWorkloadIdentityDrawer.tsx
+++ b/frontend/src/react/components/CreateWorkloadIdentityDrawer.tsx
@@ -3,11 +3,11 @@ import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
import { ChevronDown, ChevronUp, X } from "lucide-react";
import { useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
+import { RoleSelect } from "@/react/components/RoleSelect";
import { Button } from "@/react/components/ui/button";
import { Input } from "@/react/components/ui/input";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
import { useVueState } from "@/react/hooks/useVueState";
-import { RoleSelect } from "@/react/pages/settings/shared/RoleSelect";
import {
ensureWorkloadIdentityFullName,
pushNotification,
diff --git a/frontend/src/react/components/CustomApproval/ApprovalStepsTable.tsx b/frontend/src/react/components/CustomApproval/ApprovalStepsTable.tsx
index 4345eee709..a953f7b142 100644
--- a/frontend/src/react/components/CustomApproval/ApprovalStepsTable.tsx
+++ b/frontend/src/react/components/CustomApproval/ApprovalStepsTable.tsx
@@ -1,6 +1,6 @@
import { ArrowDown, ArrowUp, Plus, Trash2 } from "lucide-react";
import { useTranslation } from "react-i18next";
-import { RoleSelect } from "@/react/pages/settings/shared/RoleSelect";
+import { RoleSelect } from "@/react/components/RoleSelect";
import { PresetRoleType } from "@/types";
import { displayRoleTitle } from "@/utils";
import { Button } from "../ui/button";
diff --git a/frontend/src/react/components/DatabaseResourceSelector.tsx b/frontend/src/react/components/DatabaseResourceSelector.tsx
index 38623b7b09..f49c1e2a52 100644
--- a/frontend/src/react/components/DatabaseResourceSelector.tsx
+++ b/frontend/src/react/components/DatabaseResourceSelector.tsx
@@ -3,13 +3,13 @@ import {
ChevronRight,
Database as DatabaseIcon,
Layers,
- Search,
Table2,
X,
} from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";
+import { SearchInput } from "@/react/components/ui/search-input";
import { useDatabaseV1Store } from "@/store";
import { useDBSchemaV1Store } from "@/store/modules/v1/dbSchema";
import type { DatabaseResource } from "@/types";
@@ -388,14 +388,12 @@ export function DatabaseResourceSelector({
return (
<div className="border border-control-border rounded-sm overflow-hidden">
{/* Filter */}
- <div className="flex items-center gap-x-2 px-3 py-2 bg-gray-50 border-b border-control-border">
- <Search className="w-4 h-4 text-control-placeholder shrink-0" />
- <input
- type="text"
- className="flex-1 text-sm bg-transparent outline-none placeholder:text-control-placeholder"
+ <div className="bg-gray-50 border-b border-control-border px-2 py-1.5">
+ <SearchInput
placeholder={t("common.filter")}
value={filter}
onChange={(e) => setFilter(e.target.value)}
+ className="h-7"
/>
</div>
{/* Body */}
diff --git a/frontend/src/react/components/RoleSelect.tsx b/frontend/src/react/components/RoleSelect.tsx
new file mode 100644
index 0000000000..71997a418f
--- /dev/null
+++ b/frontend/src/react/components/RoleSelect.tsx
@@ -0,0 +1,116 @@
+import { useMemo } from "react";
+import { useTranslation } from "react-i18next";
+import { FeatureBadge } from "@/react/components/FeatureBadge";
+import { Combobox, type ComboboxGroup } from "@/react/components/ui/combobox";
+import { useVueState } from "@/react/hooks/useVueState";
+import { useRoleStore, useSubscriptionV1Store } from "@/store";
+import {
+ PRESET_PROJECT_ROLES,
+ PRESET_ROLES,
+ PRESET_WORKSPACE_ROLES,
+} from "@/types/iam";
+import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";
+import { displayRoleDescription, displayRoleTitle } from "@/utils";
+
+interface RoleSelectProps {
+ value: string[];
+ onChange: (roles: string[]) => void;
+ disabled?: boolean;
+ scope?: "project";
+ multiple?: boolean;
+ placeholder?: string;
+}
+
+export function RoleSelect({
+ value,
+ onChange,
+ disabled,
+ scope,
+ multiple = true,
+ placeholder,
+}: RoleSelectProps) {
+ const { t } = useTranslation();
+ const roleStore = useRoleStore();
+ const subscriptionStore = useSubscriptionV1Store();
+ const roleList = useVueState(() => [...roleStore.roleList]);
+ const hasCustomRoleFeature = useVueState(() =>
+ subscriptionStore.hasInstanceFeature(PlanFeature.FEATURE_CUSTOM_ROLES)
+ );
+
+ const groups: ComboboxGroup[] = useMemo(() => {
+ const isCustomRole = (name: string) => !PRESET_ROLES.includes(name);
+
+ const workspace = PRESET_WORKSPACE_ROLES.map((name) => ({
+ value: name,
+ label: displayRoleTitle(name),
+ description: displayRoleDescription(name),
+ }));
+
+ const project = PRESET_PROJECT_ROLES.map((name) => ({
+ value: name,
+ label: displayRoleTitle(name),
+ description: displayRoleDescription(name),
+ }));
+
+ const custom = roleList
+ .filter((r) => !PRESET_ROLES.includes(r.name))
+ .map((r) => ({
+ value: r.name,
+ label: displayRoleTitle(r.name),
+ description: displayRoleDescription(r.name),
+ disabled: !hasCustomRoleFeature,
+ render: () => (
+ <div className="flex items-center gap-x-1">
+ <span>{displayRoleTitle(r.name)}</span>
+ {isCustomRole(r.name) && !hasCustomRoleFeature && (
+ <FeatureBadge
+ feature={PlanFeature.FEATURE_CUSTOM_ROLES}
+ clickable={false}
+ />
+ )}
+ </div>
+ ),
+ }));
+
+ const result: ComboboxGroup[] = [];
+ if (scope !== "project" && workspace.length > 0)
+ result.push({
+ label: t("role.workspace-roles.self"),
+ options: workspace,
+ });
+ if (project.length > 0)
+ result.push({ label: t("role.project-roles.self"), options: project });
+ if (custom.length > 0)
+ result.push({ label: t("role.custom-roles.self"), options: custom });
+ return result;
+ }, [roleList, hasCustomRoleFeature, scope, t]);
+
+ const defaultPlaceholder = multiple
+ ? t("settings.members.select-role", { count: 2 })
+ : t("settings.members.assign-role");
+
+ if (multiple) {
+ return (
+ <Combobox
+ multiple
+ value={value}
+ onChange={onChange}
+ options={groups}
+ placeholder={placeholder || defaultPlaceholder}
+ disabled={disabled}
+ portal
+ />
+ );
+ }
+
+ return (
+ <Combobox
+ value={value[0] ?? ""}
+ onChange={(v) => onChange(v ? [v] : [])}
+ options={groups}
+ placeholder={placeholder || defaultPlaceholder}
+ disabled={disabled}
+ portal
+ />
+ );
+}
diff --git a/frontend/src/react/pages/settings/shared/UserAvatar.tsx b/frontend/src/react/components/UserAvatar.tsx
similarity index 100%
rename from frontend/src/react/pages/settings/shared/UserAvatar.tsx
rename to frontend/src/react/components/UserAvatar.tsx
diff --git a/frontend/src/react/components/database/CreateDatabaseDrawer.tsx b/frontend/src/react/components/database/CreateDatabaseDrawer.tsx
index 49ee19c3d6..34c0b6647f 100644
--- a/frontend/src/react/components/database/CreateDatabaseDrawer.tsx
+++ b/frontend/src/react/components/database/CreateDatabaseDrawer.tsx
@@ -7,6 +7,7 @@ import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";
import { InstanceSelect } from "@/react/components/InstanceSelect";
import { Button } from "@/react/components/ui/button";
import { Combobox } from "@/react/components/ui/combobox";
+import { Input } from "@/react/components/ui/input";
import { useClickOutside } from "@/react/hooks/useClickOutside";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
import { useVueState } from "@/react/hooks/useVueState";
@@ -436,15 +437,11 @@ export function CreateDatabaseDrawer({
{t("create-db.new-database-name")}{" "}
<span className="text-error">*</span>
</label>
- <input
- type="text"
+ <Input
value={databaseName}
onChange={(e) => setDatabaseName(e.target.value)}
placeholder={t("create-db.new-database-name")}
- className={cn(
- "w-full border rounded-xs px-3 py-2 text-sm",
- isReservedName ? "border-error" : "border-control-border"
- )}
+ className={cn(isReservedName && "border-error")}
/>
{isReservedName && (
<p className="mt-1 text-xs text-error">
@@ -459,11 +456,9 @@ export function CreateDatabaseDrawer({
{t("create-db.new-collection-name")}{" "}
<span className="text-error">*</span>
</label>
- <input
- type="text"
+ <Input
value={tableName}
onChange={(e) => setTableName(e.target.value)}
- className="w-full border border-gray-300 rounded-xs px-3 py-2 text-sm"
/>
</div>
)}
@@ -473,11 +468,9 @@ export function CreateDatabaseDrawer({
<label className="block text-sm font-medium mb-1">
{t("create-db.cluster")}
</label>
- <input
- type="text"
+ <Input
value={cluster}
onChange={(e) => setCluster(e.target.value)}
- className="w-full border border-gray-300 rounded-xs px-3 py-2 text-sm"
/>
</div>
)}
@@ -529,29 +522,25 @@ export function CreateDatabaseDrawer({
? t("db.encoding")
: t("db.character-set")}
</label>
- <input
- type="text"
+ <Input
value={characterSet}
onChange={(e) => setCharacterSet(e.target.value)}
placeholder={defaultCharsetOfEngineV1(
selectedInstance.engine
)}
- className="w-full border border-control-border rounded-xs px-3 py-2 text-sm"
/>
</div>
<div>
<label className="block text-sm font-medium mb-1">
{t("db.collation")}
</label>
- <input
- type="text"
+ <Input
value={collation}
onChange={(e) => setCollation(e.target.value)}
placeholder={
defaultCollationOfEngineV1(selectedInstance.engine) ||
t("common.default")
}
- className="w-full border border-control-border rounded-xs px-3 py-2 text-sm"
/>
</div>
</>
diff --git a/frontend/src/react/components/database/DatabaseTable.tsx b/frontend/src/react/components/database/DatabaseTable.tsx
index 490251a381..9bd11105da 100644
--- a/frontend/src/react/components/database/DatabaseTable.tsx
+++ b/frontend/src/react/components/database/DatabaseTable.tsx
@@ -4,13 +4,13 @@ import { useTranslation } from "react-i18next";
import { EngineIconPath } from "@/components/InstanceForm/constants";
import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";
import { LabelsDisplay } from "@/react/components/LabelsDisplay";
+import { PagedTableFooter } from "@/react/hooks/usePagedData";
import {
getPageSizeOptions,
useSessionPageSize,
} from "@/react/hooks/useSessionPageSize";
import { useVueState } from "@/react/hooks/useVueState";
import { cn } from "@/react/lib/utils";
-import { PagedTableFooter } from "@/react/pages/settings/shared/usePagedData";
import { router } from "@/router";
import { useActuatorV1Store, useDatabaseV1Store } from "@/store";
import type { DatabaseFilter } from "@/store/modules/v1/database";
diff --git a/frontend/src/react/components/database/LabelEditorDrawer.tsx b/frontend/src/react/components/database/LabelEditorDrawer.tsx
index 15a8628ac2..81bc2ea35f 100644
--- a/frontend/src/react/components/database/LabelEditorDrawer.tsx
+++ b/frontend/src/react/components/database/LabelEditorDrawer.tsx
@@ -2,6 +2,7 @@ import { Plus, X } from "lucide-react";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@/react/components/ui/button";
+import { Input } from "@/react/components/ui/input";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
import type { Database } from "@/types/proto-es/v1/database_service_pb";
@@ -88,20 +89,18 @@ export function LabelEditorDrawer({
</div>
)}
<div className="flex items-center gap-x-2 mb-4">
- <input
- type="text"
+ <Input
placeholder={t("common.key")}
value={newKey}
onChange={(e) => setNewKey(e.target.value)}
- className="flex-1 border border-control-border rounded-xs px-2 py-1 text-sm"
+ className="flex-1"
/>
<span className="text-control-placeholder">:</span>
- <input
- type="text"
+ <Input
placeholder={t("common.value")}
value={newValue}
onChange={(e) => setNewValue(e.target.value)}
- className="flex-1 border border-control-border rounded-xs px-2 py-1 text-sm"
+ className="flex-1"
onKeyDown={(e) => {
if (e.key === "Enter") addLabelToAll();
}}
diff --git a/frontend/src/react/components/database/TransferProjectDrawer.tsx b/frontend/src/react/components/database/TransferProjectDrawer.tsx
index 41ccc1394a..fdbe32fa79 100644
--- a/frontend/src/react/components/database/TransferProjectDrawer.tsx
+++ b/frontend/src/react/components/database/TransferProjectDrawer.tsx
@@ -3,6 +3,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { EngineIconPath } from "@/components/InstanceForm/constants";
import { Button } from "@/react/components/ui/button";
+import { Input } from "@/react/components/ui/input";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
import { useVueState } from "@/react/hooks/useVueState";
import { cn } from "@/react/lib/utils";
@@ -143,12 +144,11 @@ export function TransferProjectDrawer({
{mode === "project" && (
<div>
- <input
- type="text"
+ <Input
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
placeholder={t("common.filter-by-name")}
- className="w-full border border-control-border rounded-xs px-3 py-2 text-sm mb-2"
+ className="mb-2"
/>
<div className="border border-control-border rounded-sm max-h-64 overflow-y-auto">
{loadingProjects ? (
diff --git a/frontend/src/react/components/instance/CreateDataSourceExample.tsx b/frontend/src/react/components/instance/CreateDataSourceExample.tsx
index 8df2db7c64..6b1b7bfa76 100644
--- a/frontend/src/react/components/instance/CreateDataSourceExample.tsx
+++ b/frontend/src/react/components/instance/CreateDataSourceExample.tsx
@@ -380,7 +380,7 @@ function EngineSpecificDescription({
if (engine === Engine.POSTGRES) {
return (
<>
- <div className="my-2 rounded border border-yellow-400 bg-yellow-50 px-3 py-2 text-sm text-yellow-800">
+ <div className="my-2 rounded-xs border border-yellow-400 bg-yellow-50 px-3 py-2 text-sm text-yellow-800">
{t("instance.sentence.create-user-example.postgresql.warn")}
</div>
{authenticationType ===
diff --git a/frontend/src/react/components/instance/CredentialSourceForm.tsx b/frontend/src/react/components/instance/CredentialSourceForm.tsx
index 01e6f89591..e2bf0c6c43 100644
--- a/frontend/src/react/components/instance/CredentialSourceForm.tsx
+++ b/frontend/src/react/components/instance/CredentialSourceForm.tsx
@@ -475,7 +475,7 @@ function GcpCredentialField({
<Textarea
value={value}
placeholder={t("instance.type-or-paste-credentials-write-only")}
- className={`w-full h-24 whitespace-pre-wrap resize-none ${isDragOver ? "ring-2 ring-accent border-accent" : ""}`}
+ className={`w-full h-24 whitespace-pre-wrap resize-none ${isDragOver ? "border-accent" : ""}`}
onChange={(e) => onChange(e.target.value)}
onDragOver={handleDragOver}
onDragLeave={handleDragLeave}
diff --git a/frontend/src/react/components/instance/DataSourceForm.tsx b/frontend/src/react/components/instance/DataSourceForm.tsx
index 2988479b2a..e7414f7228 100644
--- a/frontend/src/react/components/instance/DataSourceForm.tsx
+++ b/frontend/src/react/components/instance/DataSourceForm.tsx
@@ -1444,7 +1444,7 @@ export function DataSourceForm({
<textarea
value={dataSource.authenticationPrivateKey ?? ""}
disabled={!allowEdit}
- className="w-full h-32 mt-2 whitespace-pre-wrap rounded-md border border-control-border p-2 text-sm font-mono"
+ className="w-full h-32 mt-2 whitespace-pre-wrap rounded-sm border border-control-border p-2 text-sm font-mono"
placeholder={`-----BEGIN PRIVATE KEY-----\nMIIEvQ...\n-----END PRIVATE KEY-----`}
onChange={(e) =>
update({ authenticationPrivateKey: e.target.value })
@@ -1689,7 +1689,7 @@ export function DataSourceForm({
</div>
{allowEdit && (
- <div className="flex mt-2 mb-2 gap-x-2 bg-gray-50 p-3 rounded-md">
+ <div className="flex mt-2 mb-2 gap-x-2 bg-gray-50 p-3 rounded-sm">
<Input
value={newParamKey}
className="w-full"
diff --git a/frontend/src/react/components/instance/DataSourceSection.tsx b/frontend/src/react/components/instance/DataSourceSection.tsx
index c1d1271f7d..ee7000734d 100644
--- a/frontend/src/react/components/instance/DataSourceSection.tsx
+++ b/frontend/src/react/components/instance/DataSourceSection.tsx
@@ -112,7 +112,7 @@ export function DataSourceSection({
return (
<>
{showROTips && (
- <div className="mt-2 rounded-md bg-yellow-50 border border-yellow-200 p-3 flex items-center justify-between">
+ <div className="mt-2 rounded-sm bg-yellow-50 border border-yellow-200 p-3 flex items-center justify-between">
<span className="text-sm text-yellow-800">
{t("data-source.no-read-only-data-source")}
</span>
diff --git a/frontend/src/react/components/instance/InfoPanel.tsx b/frontend/src/react/components/instance/InfoPanel.tsx
index f32ff876af..fd5397e171 100644
--- a/frontend/src/react/components/instance/InfoPanel.tsx
+++ b/frontend/src/react/components/instance/InfoPanel.tsx
@@ -100,7 +100,7 @@ function PanelHeader({
{title}
</h3>
<button
- className="text-control-light hover:text-main p-0.5 rounded"
+ className="text-control-light hover:text-main p-0.5 rounded-xs"
onClick={onClose}
>
<X className="w-4 h-4" />
@@ -177,7 +177,7 @@ function CopyButton({ content }: { content: string }) {
return (
<button
- className="p-0.5 rounded text-control-light hover:text-main"
+ className="p-0.5 rounded-xs text-control-light hover:text-main"
onClick={handleCopy}
>
{copied ? (
diff --git a/frontend/src/react/components/instance/InstanceActionDropdown.tsx b/frontend/src/react/components/instance/InstanceActionDropdown.tsx
index 4045bfd411..d64965967b 100644
--- a/frontend/src/react/components/instance/InstanceActionDropdown.tsx
+++ b/frontend/src/react/components/instance/InstanceActionDropdown.tsx
@@ -126,7 +126,7 @@ export function InstanceActionDropdown({
{open && (
<>
<div className="fixed inset-0 z-40" onClick={() => setOpen(false)} />
- <div className="absolute right-0 top-full mt-1 z-50 min-w-[120px] rounded-md border bg-white shadow-md py-1">
+ <div className="absolute right-0 top-full mt-1 z-50 min-w-[120px] rounded-sm border bg-white shadow-md py-1">
{options.map((opt) => (
<button
key={opt.key}
diff --git a/frontend/src/react/components/instance/InstanceFormBody.tsx b/frontend/src/react/components/instance/InstanceFormBody.tsx
index 9c3cd49b1f..2a74fd3634 100644
--- a/frontend/src/react/components/instance/InstanceFormBody.tsx
+++ b/frontend/src/react/components/instance/InstanceFormBody.tsx
@@ -231,7 +231,7 @@ function InstanceEngineRadioGrid({
<button
key={eng}
type="button"
- className={`flex items-center gap-x-2 rounded-md border px-3 py-2 text-sm text-left transition-colors ${
+ className={`flex items-center gap-x-2 rounded-sm border px-3 py-2 text-sm text-left transition-colors ${
eng === engine
? "border-accent bg-accent/5 ring-1 ring-accent"
: "border-control-border hover:border-accent/50 hover:bg-gray-50"
@@ -1705,10 +1705,10 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {
{isCreating && onOpenInfoPanel && hasHostInfo && (
<button
type="button"
- className="ml-1 text-accent hover:text-accent-hover text-sm"
+ className="ml-1 text-accent text-xs hover:underline"
onClick={() => openInfoPanel("host")}
>
- ?
+ ⓘ
</button>
)}
</>
@@ -1946,7 +1946,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {
/>
{actuatorStore.isSaaSMode && (
- <div className="mt-4 rounded-md border-none bg-blue-50 p-3">
+ <div className="mt-4 rounded-sm border-none bg-blue-50 p-3">
<a
href="https://docs.bytebase.com/get-started/cloud#prerequisites"
target="_blank"
diff --git a/frontend/src/react/components/instance/InstanceRoleTable.tsx b/frontend/src/react/components/instance/InstanceRoleTable.tsx
index a342964f76..9b36d94ab9 100644
--- a/frontend/src/react/components/instance/InstanceRoleTable.tsx
+++ b/frontend/src/react/components/instance/InstanceRoleTable.tsx
@@ -11,7 +11,7 @@ export function InstanceRoleTable({
const { t } = useTranslation();
return (
- <table className="w-full text-sm border border-block-border rounded-md">
+ <table className="w-full text-sm border border-block-border rounded-sm">
<thead>
<tr className="bg-gray-50 border-b border-block-border">
<th className="text-left px-4 py-2 w-[200px] font-medium">
diff --git a/frontend/src/react/components/instance/InstanceSyncButton.tsx b/frontend/src/react/components/instance/InstanceSyncButton.tsx
index d1dce84189..aee5ebbb8a 100644
--- a/frontend/src/react/components/instance/InstanceSyncButton.tsx
+++ b/frontend/src/react/components/instance/InstanceSyncButton.tsx
@@ -132,7 +132,7 @@ export function InstanceSyncButton({
{open && (
<>
<div className="fixed inset-0 z-40" onClick={() => setOpen(false)} />
- <div className="absolute left-0 top-full mt-1 z-50 min-w-[140px] rounded-md border bg-white shadow-md py-1">
+ <div className="absolute left-0 top-full mt-1 z-50 min-w-[140px] rounded-sm border bg-white shadow-md py-1">
<button
type="button"
className="w-full text-left px-3 py-1.5 text-sm hover:bg-gray-100"
diff --git a/frontend/src/react/components/instance/SslCertificateForm.tsx b/frontend/src/react/components/instance/SslCertificateForm.tsx
index 999a2dcf7b..1095e125cd 100644
--- a/frontend/src/react/components/instance/SslCertificateForm.tsx
+++ b/frontend/src/react/components/instance/SslCertificateForm.tsx
@@ -72,7 +72,7 @@ function DroppableTextarea({
onDragOver={handleDragOver}
disabled={disabled}
placeholder={placeholder}
- className="w-full h-24 whitespace-pre-wrap resize-none rounded border border-control-border bg-white px-3 py-2 text-sm focus:outline-hidden focus:ring-2 focus:ring-accent disabled:cursor-not-allowed disabled:opacity-50"
+ className="w-full h-24 whitespace-pre-wrap resize-none rounded-xs border border-control-border bg-white px-3 py-2 text-sm focus:outline-hidden focus:border-accent disabled:cursor-not-allowed disabled:opacity-50"
/>
);
}
diff --git a/frontend/src/react/components/sql-review/RuleComponents.tsx b/frontend/src/react/components/sql-review/RuleComponents.tsx
index 7760c1029b..291b9b1d54 100644
--- a/frontend/src/react/components/sql-review/RuleComponents.tsx
+++ b/frontend/src/react/components/sql-review/RuleComponents.tsx
@@ -197,9 +197,8 @@ export function RuleConfig({
)}
{config.payload.type === "NUMBER" && (
- <input
+ <Input
type="number"
- className="flex h-9 w-full rounded-xs border border-control-border bg-transparent px-3 py-1 text-sm text-main placeholder:text-control-placeholder focus:outline-hidden focus:ring-2 focus:ring-accent focus:border-accent disabled:cursor-not-allowed disabled:bg-control-bg disabled:opacity-50"
value={(payload[index] as number) ?? 0}
disabled={disabled}
placeholder={`${config.payload.default}`}
@@ -302,8 +301,8 @@ function StringArrayInput({
</span>
))}
{!disabled && (
- <input
- className="min-w-[20rem] flex-1 border border-control-border rounded-xs px-2 py-1 text-sm focus:outline-hidden focus:ring-2 focus:ring-accent"
+ <Input
+ className="min-w-[20rem] flex-1"
value={inputValue}
onChange={(e) => setInputValue(e.target.value)}
onKeyDown={handleKeyDown}
diff --git a/frontend/src/react/components/ui/combobox.tsx b/frontend/src/react/components/ui/combobox.tsx
index ad90018087..0ca0c7c87b 100644
--- a/frontend/src/react/components/ui/combobox.tsx
+++ b/frontend/src/react/components/ui/combobox.tsx
@@ -1,8 +1,8 @@
-import { Check, ChevronDown, Search, X } from "lucide-react";
+import { Check, ChevronDown, X } from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { useClickOutside } from "@/react/hooks/useClickOutside";
-import { useEscapeKey } from "@/react/hooks/useEscapeKey";
+import { createPortal } from "react-dom";
import { cn } from "@/react/lib/utils";
+import { SearchInput } from "./search-input";
export interface ComboboxOption {
value: string;
@@ -11,14 +11,34 @@ export interface ComboboxOption {
description?: string;
/** Custom render for the option row */
render?: () => React.ReactNode;
+ /** Whether this option is disabled (shown but not selectable) */
+ disabled?: boolean;
}
-interface ComboboxProps {
- value: string;
+export interface ComboboxGroup {
+ label: string;
options: ComboboxOption[];
- placeholder?: string;
+}
+
+// ---- Single-select props ----
+interface ComboboxSingleProps {
+ multiple?: false;
+ value: string;
onChange: (value: string) => void | Promise<void>;
- /** Custom render for the selected value in the trigger */
+}
+
+// ---- Multi-select props ----
+interface ComboboxMultiProps {
+ multiple: true;
+ value: string[];
+ onChange: (value: string[]) => void;
+}
+
+type ComboboxBaseProps = {
+ /** Flat options list OR grouped options. */
+ options: ComboboxOption[] | ComboboxGroup[];
+ placeholder?: string;
+ /** Custom render for the selected value in the trigger (single mode only) */
renderValue?: (option: ComboboxOption) => React.ReactNode;
/** Text shown when no options match the search */
noResultsText?: string;
@@ -26,29 +46,73 @@ interface ComboboxProps {
onSearch?: (query: string) => void;
className?: string;
disabled?: boolean;
+ /** Render dropdown via portal (use when inside overflow:hidden containers like modals) */
+ portal?: boolean;
+};
+
+type ComboboxProps = ComboboxBaseProps &
+ (ComboboxSingleProps | ComboboxMultiProps);
+
+function isGrouped(
+ options: ComboboxOption[] | ComboboxGroup[]
+): options is ComboboxGroup[] {
+ return options.length > 0 && "options" in options[0];
+}
+
+function flattenOptions(
+ options: ComboboxOption[] | ComboboxGroup[]
+): ComboboxOption[] {
+ if (isGrouped(options)) {
+ return options.flatMap((g) => g.options);
+ }
+ return options;
}
-export function Combobox({
- value,
- options,
- placeholder = "",
- onChange,
- renderValue,
- noResultsText,
- onSearch,
- className,
- disabled,
-}: ComboboxProps) {
+export function Combobox(props: ComboboxProps) {
+ const {
+ options,
+ placeholder = "",
+ renderValue,
+ noResultsText,
+ onSearch,
+ className,
+ disabled,
+ portal,
+ } = props;
+ const multiple = props.multiple === true;
+
const [open, setOpen] = useState(false);
const [search, setSearch] = useState("");
const containerRef = useRef<HTMLDivElement>(null);
+ const dropdownRef = useRef<HTMLDivElement>(null);
const inputRef = useRef<HTMLInputElement>(null);
+ const [dropdownStyle, setDropdownStyle] = useState<React.CSSProperties>({});
+
+ const allOptions = useMemo(() => flattenOptions(options), [options]);
- const selectedOption = useMemo(
- () => options.find((o) => o.value === value),
- [options, value]
+ const selectedValues: string[] = multiple
+ ? (props as ComboboxMultiProps).value
+ : (props as ComboboxSingleProps).value
+ ? [(props as ComboboxSingleProps).value]
+ : [];
+
+ const selectedOptions = useMemo(
+ () => allOptions.filter((o) => selectedValues.includes(o.value)),
+ [allOptions, selectedValues]
);
+ // Position dropdown for portal mode
+ useEffect(() => {
+ if (!open || !portal || !containerRef.current) return;
+ const rect = containerRef.current.getBoundingClientRect();
+ setDropdownStyle({
+ position: "fixed",
+ top: rect.bottom + 4,
+ left: rect.left,
+ width: rect.width,
+ });
+ }, [open, portal]);
+
// Debounced server-side search
useEffect(() => {
if (!onSearch || !open) return;
@@ -56,155 +120,275 @@ export function Combobox({
return () => clearTimeout(timer);
}, [search, onSearch, open]);
- const filtered = useMemo(() => {
- if (onSearch) return options; // server handles filtering
- if (!search) return options;
+ // Filter options
+ const filteredGroups: ComboboxGroup[] = useMemo(() => {
+ const groups = isGrouped(options)
+ ? options
+ : [{ label: "", options: options as ComboboxOption[] }];
+
+ if (onSearch || !search) return groups;
+
const q = search.toLowerCase();
- return options.filter(
- (o) =>
- o.label.toLowerCase().includes(q) ||
- (o.description?.toLowerCase().includes(q) ?? false) ||
- o.value.toLowerCase().includes(q)
- );
- }, [options, search]);
+ return groups
+ .map((g) => ({
+ ...g,
+ options: g.options.filter(
+ (o) =>
+ o.label.toLowerCase().includes(q) ||
+ (o.description?.toLowerCase().includes(q) ?? false) ||
+ o.value.toLowerCase().includes(q)
+ ),
+ }))
+ .filter((g) => g.options.length > 0);
+ }, [options, search, onSearch]);
+
+ // Click outside (handles both container and portal dropdown)
+ useEffect(() => {
+ if (!open) return;
+ const handler = (e: MouseEvent) => {
+ const target = e.target as Node;
+ if (containerRef.current?.contains(target)) return;
+ if (dropdownRef.current?.contains(target)) return;
+ setOpen(false);
+ setSearch("");
+ };
+ document.addEventListener("mousedown", handler);
+ return () => document.removeEventListener("mousedown", handler);
+ }, [open]);
- const closeDropdown = useCallback(() => {
- setOpen(false);
- setSearch("");
- }, []);
- useClickOutside(containerRef, open, closeDropdown);
- useEscapeKey(open, closeDropdown);
+ // Escape to close
+ useEffect(() => {
+ if (!open) return;
+ const handler = (e: KeyboardEvent) => {
+ if (e.key === "Escape") {
+ setOpen(false);
+ setSearch("");
+ }
+ };
+ document.addEventListener("keydown", handler);
+ return () => document.removeEventListener("keydown", handler);
+ }, [open]);
const handleSelect = useCallback(
(optionValue: string) => {
- onChange(optionValue);
- setOpen(false);
- setSearch("");
+ if (multiple) {
+ const multiOnChange = (props as ComboboxMultiProps).onChange;
+ const current = (props as ComboboxMultiProps).value;
+ if (current.includes(optionValue)) {
+ multiOnChange(current.filter((v) => v !== optionValue));
+ } else {
+ multiOnChange([...current, optionValue]);
+ }
+ } else {
+ (props as ComboboxSingleProps).onChange(optionValue);
+ setOpen(false);
+ setSearch("");
+ }
+ },
+ [multiple, props]
+ );
+
+ const handleRemoveChip = useCallback(
+ (optionValue: string, e: React.MouseEvent) => {
+ e.stopPropagation();
+ if (multiple) {
+ const multiOnChange = (props as ComboboxMultiProps).onChange;
+ const current = (props as ComboboxMultiProps).value;
+ multiOnChange(current.filter((v) => v !== optionValue));
+ }
},
- [onChange]
+ [multiple, props]
);
const handleClear = useCallback(
(e: React.MouseEvent) => {
e.stopPropagation();
- onChange("");
+ if (multiple) {
+ (props as ComboboxMultiProps).onChange([]);
+ } else {
+ (props as ComboboxSingleProps).onChange("");
+ }
setSearch("");
},
- [onChange]
+ [multiple, props]
+ );
+
+ const hasValue = selectedValues.length > 0;
+
+ // ---- Render trigger ----
+ const renderTrigger = () => {
+ if (multiple) {
+ return (
+ <>
+ {selectedOptions.map((opt) => (
+ <span
+ key={opt.value}
+ className="inline-flex items-center gap-x-1 rounded-xs bg-gray-100 px-1.5 py-0.5 text-xs"
+ >
+ {opt.label}
+ {!disabled && (
+ <button
+ type="button"
+ className="hover:text-error"
+ onClick={(e) => handleRemoveChip(opt.value, e)}
+ >
+ <X className="h-3 w-3" />
+ </button>
+ )}
+ </span>
+ ))}
+ {selectedValues.length === 0 && (
+ <span className="text-control-placeholder">{placeholder}</span>
+ )}
+ </>
+ );
+ }
+
+ const singleSelected = selectedOptions[0];
+ return (
+ <span
+ className={cn(
+ "truncate",
+ !singleSelected && "text-control-placeholder"
+ )}
+ >
+ {singleSelected
+ ? renderValue
+ ? renderValue(singleSelected)
+ : singleSelected.label
+ : placeholder}
+ </span>
+ );
+ };
+
+ // ---- Render option row ----
+ const renderOptionRow = (option: ComboboxOption) => {
+ const isSelected = selectedValues.includes(option.value);
+ return (
+ <button
+ key={option.value}
+ type="button"
+ disabled={option.disabled}
+ className={cn(
+ "w-full text-left px-3 py-1.5 text-sm flex items-center gap-x-2 transition-colors",
+ "hover:bg-gray-50",
+ isSelected && "bg-accent/5",
+ option.disabled && "opacity-50 cursor-not-allowed"
+ )}
+ onClick={() => !option.disabled && handleSelect(option.value)}
+ >
+ {multiple && (
+ <div
+ className={cn(
+ "h-4 w-4 rounded-xs border flex items-center justify-center shrink-0",
+ isSelected
+ ? "bg-accent border-accent text-white"
+ : "border-control-border"
+ )}
+ >
+ {isSelected && <Check className="h-3 w-3" />}
+ </div>
+ )}
+ <div className="flex flex-col min-w-0 flex-1">
+ {option.render ? (
+ option.render()
+ ) : (
+ <>
+ <span
+ className={cn(
+ "truncate",
+ !multiple && isSelected && "text-accent font-medium"
+ )}
+ >
+ {option.label}
+ </span>
+ {option.description && (
+ <span className="text-xs text-control-light truncate">
+ {option.description}
+ </span>
+ )}
+ </>
+ )}
+ </div>
+ {!multiple && isSelected && (
+ <Check className="w-4 h-4 text-accent shrink-0" />
+ )}
+ </button>
+ );
+ };
+
+ // ---- Render dropdown content ----
+ const dropdownContent = (
+ <div
+ ref={dropdownRef}
+ style={portal ? dropdownStyle : undefined}
+ className={cn(
+ "bg-white border border-control-border rounded-sm shadow-lg overflow-hidden",
+ portal ? "z-[999]" : "absolute z-50 mt-1 min-w-full w-max"
+ )}
+ >
+ <SearchInput
+ ref={inputRef}
+ value={search}
+ onChange={(e) => setSearch(e.target.value)}
+ wrapperClassName="m-2"
+ className="h-7"
+ />
+ <div className="max-h-60 overflow-y-auto">
+ {filteredGroups.every((g) => g.options.length === 0) ? (
+ <div className="px-3 py-6 text-sm text-control-placeholder text-center">
+ {noResultsText ?? "—"}
+ </div>
+ ) : (
+ filteredGroups.map((group) => (
+ <div key={group.label}>
+ {group.label && (
+ <div className="px-3 py-1.5 text-xs font-medium text-control-light uppercase tracking-wide bg-gray-50">
+ {group.label}
+ </div>
+ )}
+ {group.options.map(renderOptionRow)}
+ </div>
+ ))
+ )}
+ </div>
+ </div>
);
return (
<div ref={containerRef} className={cn("relative", className)}>
{/* Trigger */}
- <button
- type="button"
- disabled={disabled}
+ <div
className={cn(
- "w-full flex items-center justify-between gap-2 border border-gray-300 rounded-xs h-9 px-3 text-sm bg-white text-left transition-colors",
- "hover:border-gray-400",
- "disabled:opacity-50 disabled:pointer-events-none",
- open && "border-accent shadow-[0_0_0_1px_var(--color-accent)]"
+ "flex flex-wrap items-center gap-1 min-h-[2.25rem] w-full rounded-xs border border-control-border bg-white px-2 py-1 text-sm cursor-pointer",
+ disabled && "opacity-50 cursor-not-allowed",
+ open && "border-accent"
)}
onClick={() => {
if (!disabled) {
setOpen(!open);
- if (!open) {
- setTimeout(() => inputRef.current?.focus(), 0);
- }
}
}}
>
- <span className={cn("truncate", !selectedOption && "text-gray-400")}>
- {selectedOption
- ? renderValue
- ? renderValue(selectedOption)
- : selectedOption.label
- : placeholder}
- </span>
- <div className="flex items-center gap-1 shrink-0">
- {value && !disabled && (
+ {renderTrigger()}
+ <div className="flex items-center gap-1 shrink-0 ml-auto">
+ {hasValue && !disabled && (
<span
className="rounded-full p-0.5 hover:bg-gray-100 transition-colors"
onClick={handleClear}
>
- <X className="w-3 h-3 text-gray-400" />
+ <X className="w-3 h-3 text-control-light" />
</span>
)}
- <ChevronDown
- className={cn(
- "w-4 h-4 text-gray-400 transition-transform",
- open && "rotate-180"
- )}
- />
+ <ChevronDown className="w-4 h-4 text-control-light" />
</div>
- </button>
+ </div>
{/* Dropdown */}
- {open && (
- <div className="absolute z-50 mt-1 min-w-full w-max bg-white border border-gray-200 rounded-sm shadow-lg overflow-hidden">
- {/* Search */}
- <div className="flex items-center gap-2 px-3 py-2 border-b border-gray-100">
- <Search className="w-4 h-4 text-gray-400 shrink-0" />
- <input
- ref={inputRef}
- type="text"
- value={search}
- onChange={(e) => setSearch(e.target.value)}
- placeholder={placeholder}
- className="w-full text-sm outline-none bg-transparent placeholder:text-gray-400"
- />
- </div>
- {/* Options */}
- <div className="max-h-60 overflow-y-auto">
- {filtered.length === 0 ? (
- <div className="px-3 py-6 text-sm text-gray-400 text-center">
- {noResultsText ?? "—"}
- </div>
- ) : (
- filtered.map((option) => {
- const isSelected = option.value === value;
- return (
- <button
- key={option.value}
- type="button"
- className={cn(
- "w-full text-left px-3 py-2 text-sm flex items-center justify-between gap-2 transition-colors",
- "hover:bg-gray-50",
- isSelected && "bg-accent/5"
- )}
- onClick={() => handleSelect(option.value)}
- >
- <div className="flex flex-col min-w-0">
- {option.render ? (
- option.render()
- ) : (
- <>
- <span
- className={cn(
- "truncate",
- isSelected && "text-accent font-medium"
- )}
- >
- {option.label}
- </span>
- {option.description && (
- <span className="text-xs text-gray-400 truncate">
- {option.description}
- </span>
- )}
- </>
- )}
- </div>
- {isSelected && (
- <Check className="w-4 h-4 text-accent shrink-0" />
- )}
- </button>
- );
- })
- )}
- </div>
- </div>
- )}
+ {open &&
+ (portal
+ ? createPortal(dropdownContent, document.body)
+ : dropdownContent)}
</div>
);
}
diff --git a/frontend/src/react/components/ui/expiration-picker.tsx b/frontend/src/react/components/ui/expiration-picker.tsx
index 95f510bec9..9954e6eccf 100644
--- a/frontend/src/react/components/ui/expiration-picker.tsx
+++ b/frontend/src/react/components/ui/expiration-picker.tsx
@@ -1,5 +1,6 @@
import { X } from "lucide-react";
import { useTranslation } from "react-i18next";
+import { Input } from "@/react/components/ui/input";
/**
* ExpirationPicker — a datetime picker with inline clear button.
@@ -20,9 +21,9 @@ export function ExpirationPicker({
return (
<div className="flex items-center gap-x-2">
- <input
+ <Input
type="datetime-local"
- className="h-9 w-64 rounded-xs border border-control-border bg-transparent px-3 text-sm text-main focus:outline-none focus:ring-2 focus:ring-accent focus:border-accent"
+ className="w-64"
value={value ?? ""}
min={minDate}
onChange={(e) => onChange(e.target.value || undefined)}
diff --git a/frontend/src/react/components/ui/input.tsx b/frontend/src/react/components/ui/input.tsx
index bca90c1ade..326fa187a6 100644
--- a/frontend/src/react/components/ui/input.tsx
+++ b/frontend/src/react/components/ui/input.tsx
@@ -11,7 +11,7 @@ function Input({ className, ref, ...props }: InputProps) {
className={cn(
"flex h-9 w-full rounded-xs border border-control-border bg-transparent px-3 py-1 text-sm text-main transition-colors",
"placeholder:text-control-placeholder",
- "focus:outline-hidden focus:ring-2 focus:ring-accent focus:border-accent",
+ "focus:outline-hidden",
"disabled:cursor-not-allowed disabled:bg-control-bg disabled:opacity-50",
"read-only:cursor-default read-only:bg-control-bg read-only:focus:ring-0 read-only:focus:border-control-border",
className
diff --git a/frontend/src/react/components/ui/search-input.tsx b/frontend/src/react/components/ui/search-input.tsx
index 2520a518cc..9f04446e33 100644
--- a/frontend/src/react/components/ui/search-input.tsx
+++ b/frontend/src/react/components/ui/search-input.tsx
@@ -1,5 +1,7 @@
import { Search } from "lucide-react";
import type { ComponentProps } from "react";
+import { forwardRef } from "react";
+import { useTranslation } from "react-i18next";
import { cn } from "@/react/lib/utils";
import { Input } from "./input";
@@ -8,15 +10,22 @@ type SearchInputProps = Omit<ComponentProps<typeof Input>, "className"> & {
wrapperClassName?: string;
};
-export function SearchInput({
- className,
- wrapperClassName,
- ...props
-}: SearchInputProps) {
- return (
- <div className={cn("relative flex-1", wrapperClassName)}>
- <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-control-placeholder pointer-events-none" />
- <Input className={cn("h-9 text-sm pl-8", className)} {...props} />
- </div>
- );
-}
+export const SearchInput = forwardRef<HTMLInputElement, SearchInputProps>(
+ function SearchInput(
+ { className, wrapperClassName, placeholder, ...props },
+ ref
+ ) {
+ const { t } = useTranslation();
+ return (
+ <div className={cn("relative flex-1", wrapperClassName)}>
+ <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-control-placeholder pointer-events-none" />
+ <Input
+ ref={ref}
+ className={cn("h-9 text-sm pl-8", className)}
+ placeholder={placeholder ?? t("common.type-to-search")}
+ {...props}
+ />
+ </div>
+ );
+ }
+);
diff --git a/frontend/src/react/pages/settings/shared/usePagedData.tsx b/frontend/src/react/hooks/usePagedData.tsx
similarity index 100%
rename from frontend/src/react/pages/settings/shared/usePagedData.tsx
rename to frontend/src/react/hooks/usePagedData.tsx
diff --git a/frontend/src/react/locales/dynamic/en-US.json b/frontend/src/react/locales/dynamic/en-US.json
index f48c8a0188..4da442f4dd 100644
--- a/frontend/src/react/locales/dynamic/en-US.json
+++ b/frontend/src/react/locales/dynamic/en-US.json
@@ -344,5 +344,8 @@
}
}
}
+ },
+ "resource": {
+ "instance": "Instance"
}
}
diff --git a/frontend/src/react/locales/dynamic/es-ES.json b/frontend/src/react/locales/dynamic/es-ES.json
index 3009614966..78891bc995 100644
--- a/frontend/src/react/locales/dynamic/es-ES.json
+++ b/frontend/src/react/locales/dynamic/es-ES.json
@@ -344,5 +344,8 @@
}
}
}
+ },
+ "resource": {
+ "instance": "Instancia"
}
}
diff --git a/frontend/src/react/locales/dynamic/ja-JP.json b/frontend/src/react/locales/dynamic/ja-JP.json
index 897179dce3..458cb40273 100644
--- a/frontend/src/react/locales/dynamic/ja-JP.json
+++ b/frontend/src/react/locales/dynamic/ja-JP.json
@@ -344,5 +344,8 @@
}
}
}
+ },
+ "resource": {
+ "instance": "インスタンス"
}
}
diff --git a/frontend/src/react/locales/dynamic/vi-VN.json b/frontend/src/react/locales/dynamic/vi-VN.json
index 3726bfef9b..aedfe661ce 100644
--- a/frontend/src/react/locales/dynamic/vi-VN.json
+++ b/frontend/src/react/locales/dynamic/vi-VN.json
@@ -344,5 +344,8 @@
}
}
}
+ },
+ "resource": {
+ "instance": "Phiên bản"
}
}
diff --git a/frontend/src/react/locales/dynamic/zh-CN.json b/frontend/src/react/locales/dynamic/zh-CN.json
index 7e424817c3..e31ccb8957 100644
--- a/frontend/src/react/locales/dynamic/zh-CN.json
+++ b/frontend/src/react/locales/dynamic/zh-CN.json
@@ -344,5 +344,8 @@
}
}
}
+ },
+ "resource": {
+ "instance": "实例"
}
}
diff --git a/frontend/src/react/locales/en-US.json b/frontend/src/react/locales/en-US.json
index cedc6ae5bc..25c1886142 100644
--- a/frontend/src/react/locales/en-US.json
+++ b/frontend/src/react/locales/en-US.json
@@ -60,82 +60,146 @@
"self": "Condition"
}
},
+ "changelog": {
+ "select": "Schema version is recorded each time a schema change is applied via Bytebase",
+ "self": "Changelog"
+ },
"common": {
+ "activated": "Activated",
+ "active": "Active",
"add": "Add",
"add-permissions": "Add permissions",
"added": "Added",
"address": "Address",
"all": "All",
"archive": "Archive",
+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",
+ "archive-resource": "Archive {{type}}",
"archived": "Archived",
"back": "Back",
"cancel": "Cancel",
"cannot-undo-this-action": "You cannot undo this action",
+ "changelog": "Changelog",
+ "classification-level": "Classification Level",
"clear": "Clear",
"close": "Close",
+ "columns": "Columns",
"configure": "Configure",
"configure-now": "Configure now",
"confirm": "Confirm",
+ "confirm-and-add": "Confirm and add",
"confirm-and-update": "Confirm and update",
+ "confirm-archive": "Archive Resource?",
+ "confirm-delete": "Delete Resource?",
+ "confirm-to-revert": "Confirm to revert your editing?",
"copied": "Copied",
"copy": "Copy",
+ "copy-failed": "Copy failed",
"create": "Create",
"created": "Created",
+ "created-at": "Created",
+ "creator": "Creator",
+ "danger-zone": "Danger Zone",
+ "database": "Database",
+ "database-group": "Database Group",
+ "databases": "Databases",
+ "default": "Default",
"delete": "Delete",
"delete-resource": "Delete {{type}}",
+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
"deleted": "Deleted",
"description": "Description",
+ "deselect-all": "Deselect all",
+ "disable": "Disable",
"discard-changes": "Discard changes",
+ "download": "Download",
"edit": "Edit",
"email": "Email",
+ "email-ascii-only": "Email addresses only support ASCII characters (letters, numbers, and symbols like . _ - +).",
+ "empty": "Empty",
+ "enable": "Enable",
+ "enabled": "Enabled",
"environment": "Environment",
"environment-name": "Environment Name",
+ "environments": "Environments",
+ "expiration": "Expiration",
"export": "Export",
"failed": "Failed",
"file-selector": {
"size-limit": "File size should less than {{size}} MiB",
"type-limit": "Only support {{extension}} file"
},
+ "filter": "Filter",
"filter-by-name": "Filter by name",
"from": "From",
"general": "General",
"groups": "Groups",
+ "home": "Home",
"id": "ID",
"instance": "Instance",
+ "instances": "Instances",
"is-required": "is required",
+ "issues": "Issues",
+ "items": "items",
+ "key": "Key",
"labels": "Labels",
"learn-more": "Learn more",
"leave-without-saving": "Leave without saving?",
"load-more": "Load more",
"loading": "Loading",
+ "manage": "Manage",
+ "manually-select": "Manually select",
"members_one": "Member",
"members_other": "Members",
"missing-required-permission": "Missing required permissions {{permissions}}",
"n-items-selected": "{{n}} items selected",
+ "n-more": "+{{n}} more",
"name": "Name",
"next": "Next",
"no-data": "No data",
"ok": "OK",
"operations": "Operations",
+ "optional": "Optional",
+ "pending": "Pending",
"permissions": "Permissions",
+ "previous": "Previous",
"project": "Project",
+ "projects": "Projects",
+ "reason": "Reason",
+ "regenerate": "Regenerate",
+ "release": "Release",
"reorder": "Reorder",
"required-permission": "Required permissions",
"required-workspace-permission": "Following permissions are required to initialize the workspace UX",
+ "resource": "Resource",
+ "resources": "Resources",
"resource-not-found": "Resource not found",
"restore": "Restore",
"restored": "Restored",
"revert": "Revert",
+ "revoke": "Revoke",
+ "revoked": "Revoked",
"rows-per-page": "Rows per page",
"save": "Save",
+ "schema": "Schema",
+ "scope": "Scope",
"search": "Search",
+ "search-for-more": "Search for more",
+ "type-to-search": "Type to search",
"select": "Please Select",
"select-all": "Select all",
+ "selected": "selected",
"sensitive-placeholder": "Sensitive - write only",
+ "setting": "Setting",
+ "settings": "Settings",
"state": "State",
+ "statement": "Statement",
+ "status": "Status",
"system": "System",
+ "table": "Table",
"title": "Title",
"to": "To",
+ "total": "Total",
"total-n-items": "Total {{n}} items",
"type": "Type",
"unassigned": "Unassigned",
@@ -144,6 +208,7 @@
"updated": "Updated",
"upload": "Upload",
"users": "Users",
+ "value": "Value",
"view": "View",
"view-details": "View Details",
"warning": "Warning",
@@ -154,109 +219,21 @@
"sql": "SQL",
"untitled": "Untitled",
"you": "you",
- "copy-failed": "Copy failed",
+ "admin": "Admin",
+ "continue-anyway": "Continue anyway",
+ "creating": "Creating",
+ "custom": "Custom",
+ "detailed-guide": "detailed guide",
"dismiss": "Dismiss",
- "activated": "Activated",
- "active": "Active",
- "archive-description": "Mark \"{{name}}\" as archived and read-only.",
- "archive-resource": "Archive {{type}}",
- "changelog": "Changelog",
- "classification-level": "Classification Level",
- "columns": "Columns",
- "confirm-and-add": "Confirm and add",
- "confirm-archive": "Archive Resource?",
- "confirm-delete": "Delete Resource?",
- "confirm-to-revert": "Confirm to revert your editing?",
- "created-at": "Created",
- "creator": "Creator",
- "danger-zone": "Danger Zone",
- "database": "Database",
- "database-group": "Database Group",
- "databases": "Databases",
- "default": "Default",
- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
- "deselect-all": "Deselect all",
- "disable": "Disable",
- "download": "Download",
- "email-ascii-only": "Email addresses only support ASCII characters (letters, numbers, and symbols like . _ - +).",
- "empty": "Empty",
- "enable": "Enable",
- "enabled": "Enabled",
- "environments": "Environments",
- "expiration": "Expiration",
- "filter": "Filter",
- "home": "Home",
- "instances": "Instances",
- "issues": "Issues",
- "items": "items",
- "key": "Key",
- "manage": "Manage",
- "manually-select": "Manually select",
- "n-more": "+{{n}} more",
- "optional": "Optional",
- "pending": "Pending",
- "previous": "Previous",
- "projects": "Projects",
- "reason": "Reason",
- "regenerate": "Regenerate",
- "release": "Release",
- "resource": "Resource",
- "resources": "Resources",
- "revoke": "Revoke",
- "revoked": "Revoked",
- "schema": "Schema",
- "scope": "Scope",
- "search-for-more": "Search for more",
- "selected": "selected",
- "setting": "Setting",
- "settings": "Settings",
- "statement": "Statement",
- "status": "Status",
- "table": "Table",
- "total": "Total",
- "value": "Value"
+ "minutes": "Minutes",
+ "overview": "Overview",
+ "password": "Password",
+ "read-only": "Read-only",
+ "updating": "Updating",
+ "user": "User",
+ "username": "Username",
+ "write-only": "write only"
},
- "common.add": "Add",
- "common.admin": "Admin",
- "common.archive": "Archive",
- "common.archived": "Archived",
- "common.cancel": "Cancel",
- "common.cannot-undo-this-action": "You cannot undo this action",
- "common.confirm-and-update": "Confirm and update",
- "common.continue-anyway": "Continue anyway",
- "common.create": "Create",
- "common.creating": "Creating",
- "common.custom": "Custom",
- "common.database": "Database",
- "common.databases": "Databases",
- "common.default": "default",
- "common.delete": "Delete",
- "common.delete-resource": "Delete {{type}}",
- "common.deleted": "Deleted",
- "common.detailed-guide": "detailed guide",
- "common.edit": "Edit",
- "common.environment": "Environment",
- "common.key": "Key",
- "common.labels": "Labels",
- "common.learn-more": "Learn more",
- "common.loading": "Loading",
- "common.minutes": "Minutes",
- "common.no-data": "No data",
- "common.optional": "Optional",
- "common.overview": "Overview",
- "common.password": "Password",
- "common.project": "Project",
- "common.read-only": "Read-only",
- "common.restore": "Restore",
- "common.sensitive-placeholder": "Sensitive - write only",
- "common.unlimited": "Unlimited",
- "common.updated": "Updated",
- "common.updating": "Updating",
- "common.user": "User",
- "common.username": "Username",
- "common.value": "Value",
- "common.warning": "Warning",
- "common.write-only": "write only",
"create-db": {
"cluster": "Cluster",
"database-owner-name": "Database owner name",
@@ -332,56 +309,22 @@
},
"self": "Custom Approval"
},
- "data-source.additional-node-addresses": "Additional Node Addresses",
- "data-source.connection-string-schema": "Connection String Schema",
- "data-source.connection-type": "Connection Type",
- "data-source.delete-read-only-data-source": "Delete read-only data source",
- "data-source.direct-connection": "Direct Connection",
- "data-source.extra-params.description": "Additional parameters for database connection string",
- "data-source.extra-params.self": "Extra Parameters",
- "data-source.no-read-only-data-source": "No read-only data source",
- "data-source.private-key-passphrase": "Private Key Passphrase",
- "data-source.private-key-passphrase-placeholder": "Leave empty if your private key is not encrypted",
- "data-source.private-key-passphrase-tip": "Optional passphrase for encrypted private keys",
- "data-source.read-replica-host": "Read-replica Host",
- "data-source.read-replica-port": "Read-replica Port",
- "data-source.replica-set": "Replica Set",
- "data-source.snowflake-keypair-tip": "Key-pair authentication",
- "data-source.ssh-connection": "SSH Connection",
- "data-source.ssh-type.none": "None",
- "data-source.ssh-type.tunnel-and-private-key": "Tunnel + Private Key",
- "data-source.ssh.host": "Server",
- "data-source.ssh.password": "Password",
- "data-source.ssh.port": "Port",
- "data-source.ssh.private-key": "Private Key",
- "data-source.ssh.ssh-key": "SSH Key",
- "data-source.ssh.user": "User",
- "data-source.ssl-connection": "SSL Connection",
- "data-source.ssl.ca-cert": "CA Certificate",
- "data-source.ssl.client-cert": "Client Certificate",
- "data-source.ssl.client-key": "Client Key",
- "data-source.ssl.verify-certificate": "Verify TLS certificate",
- "data-source.ssl.verify-certificate-tooltip": "Enable TLS certificate verification for secure connections. Disable only for development or when certificates cannot be properly validated (e.g., self-signed certs, VPN environments). Warning: Disabling verification is insecure",
"database": {
+ "all": "All databases",
+ "change-database": "Change Database",
"classification": {
"description": "Define classification levels to apply consistent masking policies across columns and databases."
},
"edit-environment": "Edit Environment",
"edit-labels": "Edit Labels",
"engine": "Engine",
- "filter-database": "Filter database",
- "selected-n-databases": "{{n}} database(s) selected",
- "successfully-transferred-databases": "Successfully transferred databases",
- "sync-schema-button": "Sync Schema",
- "sync-status-failed": "Sync failed",
- "transfer-project": "Transfer Project",
- "unassign": "Unassign",
- "all": "All databases",
- "change-database": "Change Database",
"expression": "Expression",
+ "filter-database": "Filter database",
"mixed-label-values": "mixed values",
"mixed-label-values-warning": "Some of the selected resources have mixed values for the same key. Only edit these key-value pairs if you intend to change them.",
"select": "Select database",
+ "selected-n-databases": "{{n}} database(s) selected",
+ "successfully-transferred-databases": "Successfully transferred databases",
"sync-schema": {
"copy-schema": "Copy schema",
"description": "Bytebase supports synchronizing a schema to one or multiple target databases. (MySQL, PostgreSQL, Oracle, MSSQL, TiDB only)",
@@ -404,8 +347,13 @@
"title": "Sync Schema",
"with-diff": "With diff"
},
+ "sync-schema-button": "Sync Schema",
+ "sync-status-failed": "Sync failed",
+ "transfer-project": "Transfer Project",
+ "unassign": "Unassign",
"unassign-alert-description": "The selected databases will be removed from the project",
- "unassign-alert-title": "Unassign databases"
+ "unassign-alert-title": "Unassign databases",
+ "sync-complete-for-instance": "Sync complete for instance '{{0}}'"
},
"database-group": {
"condition": {
@@ -418,29 +366,23 @@
"select": "Select database group",
"unmatched-database": "Unmatched database"
},
- "database.engine": "Engine",
- "database.filter-database": "Filter database",
- "database.sync-complete-for-instance": "Sync complete for instance '{{0}}'",
"db": {
"character-set": "Character set",
"collation": "Collation",
"encoding": "Encoding",
"failed-to-sync-schema": "Failed to sync schema",
"start-to-sync-schema": "Start to sync schema",
- "successfully-synced-schema": "Successfully synced schema"
+ "successfully-synced-schema": "Successfully synced schema",
+ "n-databases-had-sync-errors": "{{0}} database(s) had sync errors",
+ "syncing-databases-for-instance": "Syncing databases for {{0}}..."
},
- "db.failed-to-sync-schema": "Failed to sync schema",
- "db.n-databases-had-sync-errors": "{{0}} database(s) had sync errors",
- "db.start-to-sync-schema": "Start to sync schema",
- "db.syncing-databases-for-instance": "Syncing databases for {{0}}...",
- "dynamic.resource.instance": "Instance ID",
"environment": {
"create": "Create Environment",
"delete": "Delete this environment",
"delete-description": "Delete environment will also remove it from related instances and databases. You cannot undo this action",
"reorder": "Reorder Environments",
- "successfully-updated-environment": "Successfully updated environment '{{name}}'.",
- "select": "Select environment"
+ "select": "Select environment",
+ "successfully-updated-environment": "Successfully updated environment '{{name}}'."
},
"error-page": {
"go-back-home": "Go back home",
@@ -449,9 +391,6 @@
"export-center": {
"data-export": "Data Export"
},
- "export-data": {
- "password-optional": "Encrypt with password (Optional)"
- },
"gitops": {
"checklist": {
"database-group-recommendation": "For databases sharing the same schema, a database group lets you migrate them together in one change. Define the group once and reuse it across migrations without picking individual databases every time.",
@@ -529,132 +468,179 @@
"sync-all-tip": "Database sync is asynchronous and might take a few seconds to minutes",
"sync-new": "Only sync new databases"
},
- "syncing": "Syncing ..."
+ "syncing": "Syncing ...",
+ "account-locator": "Account Locator",
+ "authentication-database": "Authentication Database",
+ "connection-info": "Connection info",
+ "connection-options": "Connection Options",
+ "create-gcp-credentials": "To create credentials, see",
+ "database-region": "Database Region",
+ "endpoint": "Endpoint",
+ "external-id": "External ID",
+ "external-id-description": "External ID for additional security when assuming role (optional)",
+ "external-id-placeholder": "optional-external-id",
+ "external-link": "External Link",
+ "external-secret-azure": {
+ "secret-name": "Secret name",
+ "vault-url": "Key Vault URL",
+ "secret-name-tips": "The name of the secret stored in Azure Key Vault.",
+ "vault-url-tips": "The Key Vault URL should be like \"https://myvault.vault.azure.net/\"."
+ },
+ "external-secret-gcp": {
+ "secret-name": "Secret full name",
+ "secret-name-tips": "The secret name should be like \"projects/project-id/secrets/secret-id\"."
+ },
+ "external-secret-vault": {
+ "vault-auth-type": {
+ "approle": {
+ "role-id": "Auth role id",
+ "secret-env-name": "Environment name",
+ "secret-id": "Auth secret id",
+ "secret-plain-text": "Plain text",
+ "self": "AppRole"
+ },
+ "token": {
+ "self": "Token"
+ },
+ "self": "Auth type"
+ },
+ "vault-secret-key": "Secret key",
+ "vault-secret-path": "Secret path",
+ "vault-secret-engine-name": "Secret engine name",
+ "vault-secret-engine-tips": "Only support KV v2 engine.",
+ "vault-tls-config": "Vault TLS Configuration (Optional)",
+ "vault-url": "Vault URL"
+ },
+ "external-secret": {
+ "key-name": "Secret key",
+ "secret-name": "Secret name"
+ },
+ "failed-to-connect-instance": "Failed to connect instance.",
+ "failed-to-connect-instance-localhost": "If you run Bytebase with Docker, please try \"host.docker.internal\" for the host address.",
+ "find-gcp-project-id": "To find GCP Project ID, see",
+ "find-gcp-project-id-and-instance-id": "To find GCP Project ID and instance ID, see",
+ "grants": "Grants",
+ "host-or-socket": "Host or Socket",
+ "iam-extension": {
+ "client-id": "Client ID",
+ "client-secret": "Client Secret",
+ "credential-source": "Credential Source",
+ "specific-credential": "Specific Credential",
+ "tenant-id": "Tenant ID",
+ "saas-default-credential-restriction": "Default credentials are not available in Bytebase Cloud for security. Please provide specific credentials."
+ },
+ "info-panel": {
+ "no-info": "No additional information available for this engine."
+ },
+ "instance-id": "Instance ID",
+ "instance-name": "Instance Name",
+ "no-extra-params-configured": "No extra connection parameters configured",
+ "no-params-yet-add-above": "No parameters configured yet. Add parameters using the form above.",
+ "no-password": "No password",
+ "parameter-name-placeholder": "Parameter name",
+ "parameter-value-placeholder": "Parameter value",
+ "password-type": {
+ "aws-iam": "AWS RDS IAM",
+ "azure-iam": "Azure IAM",
+ "google-iam": "Google Cloud SQL IAM",
+ "password": "Password",
+ "external-secret-aws": "AWS Secrets Manager",
+ "external-secret-azure": "Azure Key Vault",
+ "external-secret-gcp": "GCP Secret Manager",
+ "external-secret-vault": "Vault (KV v2)"
+ },
+ "password-write-only": "YOUR_DB_PWD - write only",
+ "port": "Port",
+ "project-id": "Project ID",
+ "role-arn": "Role ARN",
+ "role-arn-description": "IAM role to assume for cross-account access. Leave empty for same-account access.",
+ "role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
+ "scan-interval": {
+ "default-never": "Default (never)",
+ "description": "Bytebase periodically syncs instance schema and detects anomalies.",
+ "self": "Scan Interval",
+ "min-value": "Min value {{value}} minutes"
+ },
+ "section": {
+ "basic-info": "Basic Info",
+ "connection": "Connection"
+ },
+ "sentence": {
+ "console": {
+ "snowflake": "The external console URL managing this instance (e.g. AWS RDS console, your in-house DB instance console)"
+ },
+ "create-admin-user": "This is the connection user used by Bytebase to perform DDL and DML (non-SELECT) operations.",
+ "create-admin-user-non-sql": "This is the connection user used by Bytebase to perform write and admin operations.",
+ "create-readonly-user": "This is the connection used by Bytebase to perform read-only operations such as SELECT query.",
+ "create-readonly-user-non-sql": "This is the connection used by Bytebase to perform read-only operations.",
+ "create-user-example": {
+ "postgresql": {
+ "warn": "If the connecting instance is managed by the cloud provider, then SUPERUSER is not available and you should create the user via that provider's admin console. The created user will have provider specific semi-SUPERUSER privileges. You should grant Bytebase privileges with 'GRANT role_name TO bytebase;' for all existing roles, otherwise Bytebase may not access existing databases or tables.",
+ "template": "Below is an example to create user '{{user}}' with password {{password}} and grant the user with the needed privileges. If the connecting instance is self-hosted, then you can grant SUPERUSER."
+ },
+ "clickhouse": {
+ "sql-driven-workflow": "SQL-driven workflow",
+ "template": "Below is an example to create user '{{user}}' with password {{password}} and grant the user with the needed privileges. First you need to enable ClickHouse SQL-driven workflow {{link}} and then run the following query to create the user."
+ },
+ "mysql": {
+ "template": "Below is an example to create user {{user}}@% with password {{password}} and grant the user with the needed privileges."
+ },
+ "redis": {
+ "template": "Below is an example to create user {{user}} with password {{password}} and grant the user with the needed privileges."
+ },
+ "snowflake": {
+ "template": "Below is an example to create user '{{user}}' with password {{password}} for {{warehouse}} and grant the user with the needed privileges."
+ }
+ },
+ "firewall-info": "If you use inbound firewall rules for your database instance, please refer to Bytebase Cloud connection instruction.",
+ "host": {
+ "none-snowflake": "e.g. host.docker.internal {{'|'}} host ip {{'|'}} local socket"
+ },
+ "proxy": {
+ "snowflake": "For proxy server, append {{'@'}}PROXY_HOST and specify PROXY_PORT in the port"
+ },
+ "aws-rds": {
+ "mysql": {
+ "template": "Below is an example to create user {{user}}@% and grant the user with the needed privileges."
+ },
+ "postgresql": {
+ "template": "Below is an example to create user '{{user}}' and grant the user with the needed privileges."
+ }
+ },
+ "google-cloud-sql": {
+ "instance-name": "Instance Connection Name",
+ "instance-name-tips": "The instance connection name should like {{instance}}.",
+ "mysql": {
+ "template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@'%'. Grant this user with the needed privileges."
+ },
+ "postgresql": {
+ "template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@project-id.iam. Grant the user with the needed privileges."
+ }
+ }
+ },
+ "show-how-to-create": "Show how to create",
+ "snowflake-web-console": "Snowflake Web Console",
+ "successfully-connected-instance": "Successfully connected instance.",
+ "sync-databases": {
+ "add-database": "+ Add database, press enter to submit",
+ "description": "Only sync selected databases.",
+ "search-database": "Search database",
+ "self": "Sync Databases",
+ "sync-all": "Sync all databases"
+ },
+ "test-connection": "Test Connection",
+ "type-or-paste-credentials-write-only": "Type or paste CREDENTIALS - write only",
+ "unable-to-connect": "Bytebase is unable to connect the instance. We recommend you to review the connection info again. But it's OK to ignore this warning for now. You can still fix the connection info from the instance detail page after creation.\n\nError detail: {{0}}",
+ "users": "Users",
+ "your-snowflake-account-locator": "Your Snowflake account locator",
+ "testing-connection": "Testing Connection...",
+ "new-instance": "New Instance",
+ "no-environment": "This instance has not been bound to the environment",
+ "restore-instance-instance-name-to-normal-state": "Restore instance '{{0}}' to normal state?",
+ "successfully-created-instance-createdinstance-name": "Successfully created instance '{{0}}'.",
+ "successfully-updated-instance-instance-name": "Successfully updated instance '{{0}}'."
},
- "instance.account-locator": "Account Locator",
- "instance.archive-instance-instance-name": "Archive instance '{{0}}'?",
- "instance.archived-instances-will-not-be-displayed": "Archived instances will not be displayed.",
- "instance.authentication-database": "Authentication Database",
- "instance.connection-info": "Connection info",
- "instance.connection-options": "Connection Options",
- "instance.create-gcp-credentials": "To create credentials, see",
- "instance.database-region": "Database Region",
- "instance.endpoint": "Endpoint",
- "instance.external-id": "External ID",
- "instance.external-id-description": "External ID for additional security when assuming role (optional)",
- "instance.external-id-placeholder": "optional-external-id",
- "instance.external-link": "External Link",
- "instance.external-secret-azure.secret-name": "Secret name",
- "instance.external-secret-azure.secret-name-tips": "The name of the secret stored in Azure Key Vault.",
- "instance.external-secret-azure.vault-url": "Key Vault URL",
- "instance.external-secret-azure.vault-url-tips": "The Key Vault URL should be like \"https://myvault.vault.azure.net/\".",
- "instance.external-secret-gcp.secret-name": "Secret full name",
- "instance.external-secret-gcp.secret-name-tips": "The secret name should be like \"projects/project-id/secrets/secret-id\".",
- "instance.external-secret-vault.vault-auth-type.approle.role-id": "Auth role id",
- "instance.external-secret-vault.vault-auth-type.approle.secret-env-name": "Environment name",
- "instance.external-secret-vault.vault-auth-type.approle.secret-id": "Auth secret id",
- "instance.external-secret-vault.vault-auth-type.approle.secret-plain-text": "Plain text",
- "instance.external-secret-vault.vault-auth-type.approle.self": "AppRole",
- "instance.external-secret-vault.vault-auth-type.self": "Auth type",
- "instance.external-secret-vault.vault-auth-type.token.self": "Token",
- "instance.external-secret-vault.vault-secret-engine-name": "Secret engine name",
- "instance.external-secret-vault.vault-secret-engine-tips": "Only support KV v2 engine.",
- "instance.external-secret-vault.vault-secret-key": "Secret key",
- "instance.external-secret-vault.vault-secret-path": "Secret path",
- "instance.external-secret-vault.vault-tls-config": "Vault TLS Configuration (Optional)",
- "instance.external-secret-vault.vault-url": "Vault URL",
- "instance.external-secret.key-name": "Secret key",
- "instance.external-secret.secret-name": "Secret name",
- "instance.failed-to-connect-instance": "Failed to connect instance.",
- "instance.failed-to-connect-instance-localhost": "If you run Bytebase with Docker, please try \"host.docker.internal\" for the host address.",
- "instance.find-gcp-project-id": "To find GCP Project ID, see",
- "instance.find-gcp-project-id-and-instance-id": "To find GCP Project ID and instance ID, see",
- "instance.force-archive-description": "Force to archive. All databases will be unassigned.",
- "instance.grants": "Grants",
- "instance.host-or-socket": "Host or Socket",
- "instance.iam-extension.client-id": "Client ID",
- "instance.iam-extension.client-secret": "Client Secret",
- "instance.iam-extension.credential-source": "Credential Source",
- "instance.iam-extension.saas-default-credential-restriction": "Default credentials are not available in Bytebase Cloud for security. Please provide specific credentials.",
- "instance.iam-extension.specific-credential": "Specific Credential",
- "instance.iam-extension.tenant-id": "Tenant ID",
- "instance.info-panel.no-info": "No additional information available for this engine.",
- "instance.instance-id": "Instance ID",
- "instance.instance-name": "Instance Name",
- "instance.new-instance": "New Instance",
- "instance.no-environment": "This instance has not been bound to the environment",
- "instance.no-extra-params-configured": "No extra connection parameters configured",
- "instance.no-params-yet-add-above": "No parameters configured yet. Add parameters using the form above.",
- "instance.no-password": "No password",
- "instance.parameter-name-placeholder": "Parameter name",
- "instance.parameter-value-placeholder": "Parameter value",
- "instance.password-type.aws-iam": "AWS RDS IAM",
- "instance.password-type.azure-iam": "Azure IAM",
- "instance.password-type.external-secret-aws": "AWS Secrets Manager",
- "instance.password-type.external-secret-azure": "Azure Key Vault",
- "instance.password-type.external-secret-gcp": "GCP Secret Manager",
- "instance.password-type.external-secret-vault": "Vault (KV v2)",
- "instance.password-type.google-iam": "Google Cloud SQL IAM",
- "instance.password-type.password": "Password",
- "instance.password-write-only": "YOUR_DB_PWD - write only",
- "instance.port": "Port",
- "instance.project-id": "Project ID",
- "instance.restore-instance-instance-name-to-normal-state": "Restore instance '{{0}}' to normal state?",
- "instance.role-arn": "Role ARN",
- "instance.role-arn-description": "IAM role to assume for cross-account access. Leave empty for same-account access.",
- "instance.role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
- "instance.scan-interval.default-never": "Default (never)",
- "instance.scan-interval.description": "Bytebase periodically syncs instance schema and detects anomalies.",
- "instance.scan-interval.min-value": "Min value {{value}} minutes",
- "instance.scan-interval.self": "Scan Interval",
- "instance.section.basic-info": "Basic Info",
- "instance.section.connection": "Connection",
- "instance.sentence.aws-rds.mysql.template": "Below is an example to create user {{user}}@% and grant the user with the needed privileges.",
- "instance.sentence.aws-rds.postgresql.template": "Below is an example to create user '{{user}}' and grant the user with the needed privileges.",
- "instance.sentence.console.snowflake": "The external console URL managing this instance (e.g. AWS RDS console, your in-house DB instance console)",
- "instance.sentence.create-admin-user": "This is the connection user used by Bytebase to perform DDL and DML (non-SELECT) operations.",
- "instance.sentence.create-admin-user-non-sql": "This is the connection user used by Bytebase to perform write and admin operations.",
- "instance.sentence.create-readonly-user": "This is the connection used by Bytebase to perform read-only operations such as SELECT query.",
- "instance.sentence.create-readonly-user-non-sql": "This is the connection used by Bytebase to perform read-only operations.",
- "instance.sentence.create-user-example.clickhouse.sql-driven-workflow": "SQL-driven workflow",
- "instance.sentence.create-user-example.clickhouse.template": "Below is an example to create user '{{user}}' with password {{password}} and grant the user with the needed privileges. First you need to enable ClickHouse SQL-driven workflow {{link}} and then run the following query to create the user.",
- "instance.sentence.create-user-example.mysql.template": "Below is an example to create user {{user}}@% with password {{password}} and grant the user with the needed privileges.",
- "instance.sentence.create-user-example.postgresql.template": "Below is an example to create user '{{user}}' with password {{password}} and grant the user with the needed privileges. If the connecting instance is self-hosted, then you can grant SUPERUSER.",
- "instance.sentence.create-user-example.postgresql.warn": "If the connecting instance is managed by the cloud provider, then SUPERUSER is not available and you should create the user via that provider's admin console. The created user will have provider specific semi-SUPERUSER privileges. You should grant Bytebase privileges with 'GRANT role_name TO bytebase;' for all existing roles, otherwise Bytebase may not access existing databases or tables.",
- "instance.sentence.create-user-example.redis.template": "Below is an example to create user {{user}} with password {{password}} and grant the user with the needed privileges.",
- "instance.sentence.create-user-example.snowflake.template": "Below is an example to create user '{{user}}' with password {{password}} for {{warehouse}} and grant the user with the needed privileges.",
- "instance.sentence.firewall-info": "If you use inbound firewall rules for your database instance, please refer to Bytebase Cloud connection instruction.",
- "instance.sentence.google-cloud-sql.instance-name": "Instance Connection Name",
- "instance.sentence.google-cloud-sql.instance-name-tips": "The instance connection name should like {{instance}}.",
- "instance.sentence.google-cloud-sql.mysql.template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@'%'. Grant this user with the needed privileges.",
- "instance.sentence.google-cloud-sql.postgresql.template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@project-id.iam. Grant the user with the needed privileges.",
- "instance.sentence.host.none-snowflake": "e.g. host.docker.internal {'|'} host ip {'|'} local socket",
- "instance.sentence.proxy.snowflake": "For proxy server, append {'@'}PROXY_HOST and specify PROXY_PORT in the port",
- "instance.show-how-to-create": "Show how to create",
- "instance.snowflake-web-console": "Snowflake Web Console",
- "instance.successfully-archived-instance": "Successfully archived the instance '{{0}}'.",
- "instance.successfully-connected-instance": "Successfully connected instance.",
- "instance.successfully-created-instance-createdinstance-name": "Successfully created instance '{{0}}'.",
- "instance.successfully-restored-instance": "Successfully restored the instance '{{0}}'.",
- "instance.successfully-updated-instance-instance-name": "Successfully updated instance '{{0}}'.",
- "instance.sync-databases.add-database": "+ Add database, press enter to submit",
- "instance.sync-databases.description": "Only sync selected databases.",
- "instance.sync-databases.search-database": "Search database",
- "instance.sync-databases.self": "Sync Databases",
- "instance.sync-databases.sync-all": "Sync all databases",
- "instance.sync.self": "Sync instance",
- "instance.sync.sync-all": "Sync all databases",
- "instance.sync.sync-all-tip": "Database sync is asynchronous and might take a few seconds to minutes",
- "instance.sync.sync-new": "Only sync new databases",
- "instance.syncing": "Syncing ...",
- "instance.test-connection": "Test Connection",
- "instance.testing-connection": "Testing connection",
- "instance.type-or-paste-credentials-write-only": "Type or paste CREDENTIALS - write only",
- "instance.unable-to-connect": "Bytebase is unable to connect the instance. We recommend you to review the connection info again. But it's OK to ignore this warning for now. You can still fix the connection info from the instance detail page after creation.\n\nError detail: {{0}}",
- "instance.users": "Users",
- "instance.your-snowflake-account-locator": "Your Snowflake account locator",
"issue": {
- "labels": "Issue Labels",
"advanced-search": {
"filter": "Filter"
},
@@ -663,6 +649,7 @@
"limits": "Limits",
"options": "Options"
},
+ "labels": "Issue Labels",
"risk-level": {
"high": "High",
"moderate": "Moderate",
@@ -686,15 +673,12 @@
"error": {
"key-duplicated": "Duplicated keys",
"key-necessary": "Key is required",
- "max-value-length-exceeded": "Value's length cannot exceed {{length}} characters"
- }
+ "max-value-length-exceeded": "Value's length cannot exceed {{length}} characters",
+ "value-necessary": "Value is required"
+ },
+ "add-label": "Add label",
+ "empty-label-value": "Empty"
},
- "label.add-label": "Add label",
- "label.empty-label-value": "Empty",
- "label.error.key-duplicated": "Duplicated keys",
- "label.error.key-necessary": "Key is required",
- "label.error.max-value-length-exceeded": "Value's length cannot exceed {{length}} characters",
- "label.error.value-necessary": "Value is required",
"landing": {
"changelog-for-version": "Changelog for {{version}}",
"last-visit": "Last visit",
@@ -752,9 +736,6 @@
"success-prompt": "Successfully created project {{name}}."
},
"filter-projects": "Filter projects",
- "table": {
- "name": "Name"
- },
"masking-exemption": {
"all-levels": "All levels",
"expires-in-days_one": "Expires in {{days}} day",
@@ -851,6 +832,9 @@
"success-updated": "Project settings updated successfully.",
"update-failed": "Failed to update the project setting."
},
+ "table": {
+ "name": "Name"
+ },
"webhook": {
"activity-support-direct-message": "Support send direct messages to related users",
"add-a-webhook": "Add a webhook",
@@ -886,7 +870,6 @@
"new-project": "New Project",
"request-export-data": "Request Export"
},
- "quick-action.add-instance": "@:common.add @:common.instance",
"release": {
"releases": "Releases"
},
@@ -896,9 +879,9 @@
}
},
"resource": {
- "delete-warning-with-resources": "The \"{{name}}\" is used by following resources:",
+ "delete-warning": "The \"{{name}}\" will be deleted. This action cannot be undone.",
"delete-warning-retry": "Please remove it from these resources then retry again.",
- "delete-warning": "The \"{{name}}\" will be deleted. This action cannot be undone."
+ "delete-warning-with-resources": "The \"{{name}}\" is used by following resources:"
},
"resource-id": {
"cannot-be-changed-later": "It cannot be changed later.",
@@ -911,13 +894,6 @@
"pattern": "The {{resource}} ID can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number."
}
},
- "resource-id.cannot-be-changed-later": "It cannot be changed later.",
- "resource-id.description": "The {{resource}} ID is a unique identifier. You cannot change it after created.",
- "resource-id.self": "{{resource}} ID",
- "resource-id.validation.duplicated": "The {{resource}} ID already exists. Please choose another one.",
- "resource-id.validation.empty": "The {{resource}} ID cannot be empty",
- "resource-id.validation.overflow": "The {{resource}} ID is too long. It should have less than 64 characters.",
- "resource-id.validation.pattern": "The {{resource}} ID can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number.",
"role": {
"custom-roles": {
"self": "Custom roles"
@@ -940,13 +916,14 @@
"self": "Workspace roles"
}
},
+ "schema-editor": {
+ "raw-sql": "Raw SQL"
+ },
"schema-template": {
"classification": {
"search": "Search classification"
}
},
- "setting.label.key-placeholder": "Label key...",
- "setting.label.value-placeholder": "Label value...",
"settings": {
"general": {
"workspace": {
@@ -1165,8 +1142,13 @@
"reactivate-confirm-title": "Are you sure to reactivate"
},
"add-member": "Add member",
+ "add-service-account": "Add Service Account",
"add-user": "Add user",
+ "add-workload-identity": "Add Workload Identity",
+ "all-users": "All users",
+ "assign-role": "Assign role",
"cannot-revoke-self": "You cannot revoke yourself",
+ "copy-service-key": "Copy Service Key",
"entra-sync": {
"description": "Sync users and groups from Entra ID (formerly Azure AD) or Okta to your Bytebase instance.",
"endpoint": "Endpoint",
@@ -1196,7 +1178,11 @@
"update-group": "Update Group",
"workspace-domain-required": "Please set a workspace domain first."
},
+ "inactive-service-accounts": "Inactive service accounts",
"inactive-users": "Inactive users",
+ "inactive-workload-identities": "Inactive workload identities",
+ "reset-service-key": "Reset Service Key",
+ "reset-service-key-alert": "This action cannot be undone. The old key will stop working immediately. Are you sure you want to reset this service key?",
"revoke-access": "Revoke Access",
"revoke-access-alert": "Are you sure to revoke access?",
"revoke-allusers-alert": "Revoke \"All users\" will revoke related roles from all other users in your workspace. Are you sure to continue?",
@@ -1208,30 +1194,21 @@
"select-role_one": "Select role",
"select-role_other": "Select roles",
"service-account": "Service Account",
+ "service-accounts": "Service Accounts",
+ "service-key-copied": "Service Key copied to clipboard, please keep it in secret.",
"show-inactive": "Show inactive accounts",
"table": {
"account": "Account",
"groups": "Groups",
"roles": "Roles"
},
+ "update-service-account": "Update Service Account",
"update-user": "Update User",
+ "update-workload-identity": "Update Workload Identity",
"view-by-members": "View by members",
"view-by-roles": "View by roles",
- "workload-identity": "Workload Identity",
- "add-service-account": "Add Service Account",
- "add-workload-identity": "Add Workload Identity",
- "all-users": "All users",
- "assign-role": "Assign role",
- "copy-service-key": "Copy Service Key",
- "inactive-service-accounts": "Inactive service accounts",
- "inactive-workload-identities": "Inactive workload identities",
- "reset-service-key": "Reset Service Key",
- "reset-service-key-alert": "This action cannot be undone. The old key will stop working immediately. Are you sure you want to reset this service key?",
- "service-accounts": "Service Accounts",
- "service-key-copied": "Service Key copied to clipboard, please keep it in secret.",
- "update-service-account": "Update Service Account",
- "update-workload-identity": "Update Workload Identity",
"workload-identities": "Workload Identities",
+ "workload-identity": "Workload Identity",
"workload-identity-advanced": "Advanced Settings",
"workload-identity-all-branches-tags": "All branches and tags",
"workload-identity-allowed-branches-tags": "Allowed Branches/Tags",
@@ -1255,6 +1232,7 @@
"workload-identity-tag-hint": "Leave empty to allow all tags"
},
"profile": {
+ "email": "Email",
"password": "Password",
"password-confirm": "Password Confirm",
"password-confirm-placeholder": "Confirm new password",
@@ -1262,7 +1240,6 @@
"password-mismatch": "New password mismatch",
"phone": "Phone",
"phone-tips": "Be sure to include the country code +1xxxxxx",
- "email": "Email",
"role": "Role",
"subscription": "(Upgrade to enable role management)"
},
@@ -1329,10 +1306,12 @@
},
"re-order": "Re-order"
},
+ "never-expires": "Never expires",
"semantic-types": {
"add-from-template": "Add from template",
"label": "Columns having the same semantic type will use the same masking algorithms.",
"select": "Select semantic type",
+ "self": "Semantic Types",
"table": {
"delete": "Delete this semantic type?",
"description": "Description",
@@ -1344,29 +1323,27 @@
"description": "You can apply built-in semantic types from the template. Built-in template cannot be changed.",
"duplicate-warning": "Semantic type \"{{title}}\" already exists"
},
- "use-predefined-type": "Use Predefined Type",
- "self": "Semantic Types"
- },
- "never-expires": "Never expires"
+ "use-predefined-type": "Use Predefined Type"
+ }
},
"sidebar": {
"audit-log": "Audit Logs",
"custom-roles": "Custom Roles",
+ "data-access": "Data Access",
"data-classification": "Data Classification",
"general": "General",
"global-masking": "Global Masking",
+ "iam-and-admin": "IAM & Admin",
"im-integration": "IM",
+ "integration": "Integration",
"mcp": "MCP",
"members": "Members",
"members-and-groups": "Members & Groups",
+ "profile": "Profile",
+ "security-and-policy": "Security & Policy",
"sso": "SSO",
"subscription": "Subscription",
- "users-and-groups": "Users & Groups",
- "data-access": "Data Access",
- "iam-and-admin": "IAM & Admin",
- "integration": "Integration",
- "profile": "Profile",
- "security-and-policy": "Security & Policy"
+ "users-and-groups": "Users & Groups"
},
"sso": {
"create": "Create SSO",
@@ -1455,7 +1432,6 @@
}
},
"sql-editor": {
- "self": "SQL Editor",
"access-grants": "Access Grants",
"access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",
"activate-access": "Activate",
@@ -1464,11 +1440,10 @@
"grant-type-unmask": "Unmask",
"revoke-access": "Revoke",
"revoke-confirm": "Are you sure you want to revoke this access grant?",
+ "self": "SQL Editor",
"view-issue": "View Issue"
},
"sql-review": {
- "configure-policy": "Configure policy",
- "title": "SQL Review",
"add-or-remove-rules": "Add or remove rules",
"add-rules": "Add rules",
"attach-resource": {
@@ -1477,6 +1452,7 @@
"no-linked-resources": "No attached resources",
"self": "Attach to resources"
},
+ "configure-policy": "Configure policy",
"create": {
"basic-info": {
"display-name": "Display name",
@@ -1501,12 +1477,14 @@
"policy-removed": "Successfully removed the review policy.",
"policy-update-failed": "Failed to update the review policy.",
"policy-updated": "Successfully updated the review policy.",
- "review-policy": "Review policy"
+ "review-policy": "Review policy",
+ "title": "SQL Review"
},
"subscription": {
"contact-us": "Contact us",
"current": "Current plan",
"description": "You can upload your Bytebase license to unlock pro/enterprise features.",
+ "disabled-feature": "Disabled Feature",
"enterprise-free-trial": "{{days}}-day free Enterprise trial",
"expired": "expired",
"expires-at": "Expires at",
@@ -1516,7 +1494,8 @@
"license": "License",
"missing-license-attention": "You need to assign license to the instance to enable this feature.",
"used-and-total-license": "Assigned / Total Instance License",
- "used-and-total-user": "Active / Total User Limit"
+ "used-and-total-user": "Active / Total User Limit",
+ "n-license-remain": "{{n}} remaining"
},
"max-instance-count": "Max instance count",
"plan": {
@@ -1597,20 +1576,15 @@
"title": "User count limit",
"upgrade": "Upgrade to get more user quota."
}
- },
- "disabled-feature": "Disabled Feature"
+ }
},
- "subscription.instance-assignment.assign-license": "Assign License",
- "subscription.instance-assignment.n-license-remain": "{{n}} remaining",
- "subscription.usage.instance-count.runoutof": "You have run out of your {{total}} instance quota.",
- "subscription.usage.instance-count.title": "Instance count limit",
"two-factor": {
- "enabled": "2FA Enabled",
"description": "Two-factor authentication provides an extra layer of security for member accounts. When signing in, you will be required to enter the security code generated by your Authenticator App.",
"disable": {
"description": "You are about to disable two-factor authentication for your account. You will no longer be required to enter the security code generated by your Authenticator App when signing in.",
"self": "Disable Two-factor authentication"
},
+ "enabled": "2FA Enabled",
"messages": {
"2fa-disabled": "Two-factor authentication is disabled.",
"2fa-enabled": "Two-factor authentication is enabled.",
@@ -1652,67 +1626,109 @@
"self": "Your two-factor secret"
}
},
+ "export-data": {
+ "password-optional": "Encrypt with password (Optional)"
+ },
+ "data-source": {
+ "additional-node-addresses": "Additional Node Addresses",
+ "connection-string-schema": "Connection String Schema",
+ "connection-type": "Connection Type",
+ "delete-read-only-data-source": "Delete read-only data source",
+ "direct-connection": "Direct Connection",
+ "extra-params": {
+ "description": "Additional parameters for database connection string",
+ "self": "Extra Parameters"
+ },
+ "private-key-passphrase": "Private Key Passphrase",
+ "private-key-passphrase-tip": "Optional passphrase for encrypted private keys",
+ "read-replica-host": "Read-replica Host",
+ "read-replica-port": "Read-replica Port",
+ "replica-set": "Replica Set",
+ "snowflake-keypair-tip": "Key-pair authentication",
+ "ssh-connection": "SSH Connection",
+ "ssh-type": {
+ "none": "None",
+ "tunnel-and-private-key": "Tunnel + Private Key"
+ },
+ "ssh": {
+ "host": "Server",
+ "password": "Password",
+ "port": "Port",
+ "private-key": "Private Key",
+ "ssh-key": "SSH Key",
+ "user": "User"
+ },
+ "ssl-connection": "SSL Connection",
+ "ssl": {
+ "ca-cert": "CA Certificate",
+ "client-cert": "Client Certificate",
+ "client-key": "Client Key",
+ "verify-certificate": "Verify TLS certificate",
+ "verify-certificate-tooltip": "Enable TLS certificate verification for secure connections. Disable only for development or when certificates cannot be properly validated (e.g., self-signed certs, VPN environments). Warning: Disabling verification is insecure"
+ },
+ "no-read-only-data-source": "No read-only data source",
+ "private-key-passphrase-placeholder": "Leave empty if your private key is not encrypted"
+ },
+ "setting": {
+ "label": {
+ "key-placeholder": "Label key...",
+ "value-placeholder": "Label value..."
+ }
+ },
"agent": {
- "assistant-title": "Bytebase Assistant",
- "resize": "Resize",
- "minimize": "Minimize",
- "close": "Close",
- "input-placeholder": "Ask anything...",
- "send": "Send",
- "args": "Args:",
- "result": "Result:",
- "stop": "Stop",
- "interrupted": "Interrupted",
- "retry-last-chat-turn": "Retry last turn",
- "interrupted-retry-hint": "Retry reruns the interrupted turn with the current page state.",
- "new-chat": "New chat",
- "rename-chat-placeholder": "Enter a chat name",
- "archive-chat": "Archive",
- "unarchive-chat": "Unarchive",
- "delete-chat": "Delete",
"active-only-chats": "Active only",
+ "ai-not-configured": {
+ "configure": "Configure",
+ "contact-admin": "Contact your workspace admin to configure AI.",
+ "description": "AI is not configured for this workspace.",
+ "title": "AI Not Configured"
+ },
+ "archive-chat": "Archive chat",
+ "archive-chat-confirmation": "Are you sure you want to archive this chat?",
"archived-only-chats": "Archived only",
- "archive-chat-confirmation": "Archive this chat?",
- "delete-chat-confirmation": "Delete this chat?",
- "chat-list-label": "Chats",
- "chat-default-title": "New chat",
+ "args": "Args",
+ "assistant-title": "AI Assistant",
+ "cancel": "Cancel",
"chat-archived-label": "Archived",
- "chat-status-idle": "Idle",
- "chat-status-running": "Running",
- "chat-status-awaiting-user": "Awaiting input",
+ "chat-default-title": "New Chat",
+ "chat-list-label": "Chats",
+ "chat-status-awaiting-user": "Awaiting user",
"chat-status-error": "Error",
+ "chat-status-idle": "Idle",
"chat-status-interrupted": "Interrupted",
- "chat-total-tokens": "Tokens used: {{count}}",
- "reply": "Reply",
+ "chat-status-running": "Running",
+ "chat-total-tokens": "Total tokens",
+ "close": "Close",
"confirm": "Confirm",
- "cancel": "Cancel",
- "pending-input-hint": "Reply below to continue this chat.",
- "pending-confirm-hint": "Choose confirm or cancel to continue this chat.",
- "pending-choose-hint": "Choose an option to continue this chat.",
- "tool-ask-user": "Awaiting your response",
- "tool-ask-user-input": "Input requested",
- "tool-ask-user-confirm": "Confirmation requested",
- "tool-ask-user-choose": "Choice requested",
- "tool-response-submitted": "Response submitted",
- "tool-prompt": "Prompt:",
- "tool-default-value": "Default:",
- "tool-options": "Options:",
- "tool-answer": "Answer:",
- "tool-value": "Value:",
+ "delete-chat": "Delete chat",
+ "delete-chat-confirmation": "Are you sure you want to delete this chat? This action cannot be undone.",
+ "input-placeholder": "Ask AI anything...",
+ "interrupted": "Interrupted",
+ "interrupted-retry-hint": "The conversation was interrupted. You can retry or send a new message.",
+ "minimize": "Minimize",
+ "new-chat": "New Chat",
+ "pending-choose-hint": "Please select an option above",
+ "pending-confirm-hint": "Please confirm or cancel above",
+ "pending-input-hint": "Please provide input above",
+ "rename-chat-placeholder": "Enter chat name",
+ "reply": "Reply",
+ "resize": "Resize",
+ "result": "Result",
+ "retry-last-chat-turn": "Retry",
+ "send": "Send",
+ "stop": "Stop",
+ "tool-answer": "Answer",
+ "tool-ask-user": "Asking user",
+ "tool-ask-user-choose": "Choose an option",
+ "tool-ask-user-confirm": "Confirm action",
+ "tool-ask-user-input": "Provide input",
"tool-completed": "Completed",
- "tool-failed": "Completed with issues",
- "ai-not-configured": {
- "title": "AI Assistant isn’t configured for this workspace",
- "description": "To continue with the page agent, enable AI Assistant in workspace settings.",
- "configure": "Configure AI",
- "contact-admin": "Please contact your org administrator to configure AI Assistant."
- }
- },
- "changelog": {
- "select": "Schema version is recorded each time a schema change is applied via Bytebase",
- "self": "Changelog"
- },
- "schema-editor": {
- "raw-sql": "Raw SQL"
+ "tool-default-value": "Default",
+ "tool-failed": "Failed",
+ "tool-options": "Options",
+ "tool-prompt": "Prompt",
+ "tool-response-submitted": "Response submitted",
+ "tool-value": "Value",
+ "unarchive-chat": "Unarchive chat"
}
}
diff --git a/frontend/src/react/locales/es-ES.json b/frontend/src/react/locales/es-ES.json
index e366808c37..e4f2ee2b98 100644
--- a/frontend/src/react/locales/es-ES.json
+++ b/frontend/src/react/locales/es-ES.json
@@ -60,7 +60,13 @@
"self": "Condición"
}
},
+ "changelog": {
+ "select": "Schema version is recorded each time a schema change is applied via Bytebase",
+ "self": "Changelog"
+ },
"common": {
+ "activated": "Activado",
+ "active": "Activo",
"add": "Agregar",
"add-permissions": "Agregar permisos",
"added": "Agregado",
@@ -68,10 +74,14 @@
"all": "Todos",
"approved": "Aprobado",
"archive": "Archivo",
+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",
+ "archive-resource": "Archive {{type}}",
"archived": "Archivada",
"back": "Volver",
"cancel": "Cancelar",
"cannot-undo-this-action": "No se puede deshacer esta acción",
+ "changelog": "Changelog",
+ "classification-level": "Nivel de clasificación",
"clear": "Limpiar",
"close": "Cerrar",
"closed": "Cerrado",
@@ -79,48 +89,82 @@
"configure": "Configurar",
"configure-now": "Configurar ahora",
"confirm": "Confirmar",
+ "confirm-and-add": "Confirm and add",
"confirm-and-update": "Confirmar y actualizar",
+ "confirm-archive": "Archive Resource?",
+ "confirm-delete": "Delete Resource?",
+ "confirm-to-revert": "Confirm to revert your editing?",
"copied": "Copiado",
"copy": "Copiar",
+ "copy-failed": "Copy failed",
"create": "Crear",
"created": "Creado",
+ "created-at": "Creado",
+ "creator": "Creador",
+ "danger-zone": "Danger Zone",
+ "database": "Base de datos",
+ "database-group": "Grupo de bases de datos",
+ "databases": "Bases de datos",
+ "default": "Predeterminado",
"delete": "Eliminar",
"delete-resource": "Delete {{type}}",
+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
"deleted": "Eliminado",
"description": "Descripción",
+ "deselect-all": "Deselect all",
+ "disable": "Disable",
"discard-changes": "Descartar cambios",
+ "download": "Descargar",
"edit": "Editar",
"email": "Correo electrónico",
+ "email-ascii-only": "Las direcciones de correo solo admiten caracteres ASCII (letras, números y símbolos como . _ - +).",
+ "empty": "Empty",
+ "enable": "Habilitar",
+ "enabled": "Enabled",
"environment": "Entorno",
"environment-name": "Nombre del entorno",
+ "environments": "Entornos",
+ "expiration": "Expiration",
"export": "Exportar",
"failed": "Error",
"file-selector": {
"size-limit": "El tamaño del archivo debe ser menor que {{size}} MiB",
"type-limit": "Solo se admiten archivos {{extension}}"
},
+ "filter": "Filter",
"filter-by-name": "Filtrar por nombre",
"from": "Desde",
"general": "General",
"groups": "Grupos",
+ "home": "Inicio",
"id": "ID",
"instance": "Instancia",
+ "instances": "Instancias",
"is-required": "is required",
+ "issues": "Incidencias",
+ "items": "items",
+ "key": "Clave",
"labels": "Etiquetas",
"learn-more": "Aprender más",
"leave-without-saving": "¿Salir sin guardar?",
"load-more": "Cargar más",
"loading": "Cargando",
+ "manage": "Administrar",
+ "manually-select": "Manually select",
"members_one": "Miembro",
"members_other": "Miembros",
"missing-required-permission": "Faltan permisos requeridos {{permissions}}",
"n-items-selected": "{{n}} elementos seleccionados",
+ "n-more": "+{{n}} más",
"name": "Nombre",
"next": "Siguiente",
"no-data": "Sin datos",
"ok": "OK",
"operations": "Operaciones",
+ "optional": "Optional",
+ "pending": "Pendiente",
"permissions": "Permisos",
+ "previous": "Previous",
"project": "Proyecto",
"projects": "Proyectos",
"reason": "Reason",
@@ -130,23 +174,36 @@
"reorder": "Reordenar",
"required-permission": "Permisos necesarios",
"required-workspace-permission": "Se requieren los siguientes permisos para inicializar el espacio de trabajo UX",
+ "resource": "Resource",
+ "resources": "Recursos",
"resource-not-found": "Recurso no encontrado",
"restore": "Restaurar",
"restored": "Restored",
"revert": "Revertir",
+ "revoke": "Revocar",
+ "revoked": "Revocado",
"rows-per-page": "Filas por página",
"save": "Guardar",
+ "schema": "Esquema",
+ "scope": "Alcance",
"search": "Buscar",
+ "search-for-more": "Buscar más",
+ "type-to-search": "Escriba para buscar",
"select": "Seleccionar",
"select-all": "Seleccionar todo",
+ "selected": "selected",
"sensitive-placeholder": "Sensible - solo escritura",
"setting": "Configuración",
"settings": "Configuraciones",
"sql": "SQL",
"state": "Estado",
+ "statement": "Declaración",
+ "status": "Estado",
"system": "Sistema",
+ "table": "Tabla",
"title": "Título",
"to": "Hasta",
+ "total": "Total",
"total-n-items": "Total {{n}} elementos",
"type": "Tipo",
"unassigned": "No asignado",
@@ -156,107 +213,27 @@
"updated": "Actualizado",
"upload": "Subir",
"users": "Usuarios",
+ "value": "Valor",
"view": "Ver",
"view-details": "Ver Detalles",
"warning": "Advertencia",
+ "webhooks": "Webhooks",
"you": "tu",
- "copy-failed": "Copy failed",
+ "admin": "Admin",
+ "continue-anyway": "De todas maneras, continúe",
+ "creating": "Creando...",
+ "custom": "Personalizado",
+ "detailed-guide": "guía detallada",
"dismiss": "Descartar",
- "activated": "Activado",
- "active": "Activo",
- "archive-description": "Mark \"{{name}}\" as archived and read-only.",
- "archive-resource": "Archive {{type}}",
- "changelog": "Changelog",
- "classification-level": "Nivel de clasificación",
- "confirm-and-add": "Confirm and add",
- "confirm-archive": "Archive Resource?",
- "confirm-delete": "Delete Resource?",
- "confirm-to-revert": "Confirm to revert your editing?",
- "created-at": "Creado",
- "creator": "Creador",
- "danger-zone": "Danger Zone",
- "database": "Base de datos",
- "database-group": "Grupo de bases de datos",
- "databases": "Bases de datos",
- "default": "Predeterminado",
- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
- "deselect-all": "Deselect all",
- "disable": "Disable",
- "download": "Descargar",
- "email-ascii-only": "Las direcciones de correo solo admiten caracteres ASCII (letras, números y símbolos como . _ - +).",
- "empty": "Empty",
- "enable": "Habilitar",
- "enabled": "Enabled",
- "environments": "Entornos",
- "expiration": "Expiration",
- "filter": "Filter",
- "home": "Inicio",
- "instances": "Instancias",
- "issues": "Incidencias",
- "items": "items",
- "key": "Clave",
- "manage": "Administrar",
- "manually-select": "Manually select",
- "n-more": "+{{n}} más",
- "optional": "Optional",
- "pending": "Pendiente",
- "previous": "Previous",
- "resource": "Resource",
- "resources": "Recursos",
- "revoke": "Revocar",
- "revoked": "Revocado",
- "schema": "Esquema",
- "scope": "Alcance",
- "search-for-more": "Buscar más",
- "selected": "selected",
- "statement": "Declaración",
- "status": "Estado",
- "table": "Tabla",
- "total": "Total",
- "value": "Valor",
- "webhooks": "Webhooks"
+ "minutes": "Minutos",
+ "overview": "Resumen",
+ "password": "Contraseña",
+ "read-only": "Solo lectura",
+ "updating": "Actualizando...",
+ "user": "Usuario",
+ "username": "Nombre de usuario",
+ "write-only": "solo escritura"
},
- "common.add": "Agregar",
- "common.admin": "Admin",
- "common.archive": "Archivo",
- "common.archived": "Archivada",
- "common.cancel": "Cancelar",
- "common.cannot-undo-this-action": "No se puede deshacer esta acción",
- "common.confirm-and-update": "Confirmar y actualizar",
- "common.continue-anyway": "De todas maneras, continúe",
- "common.create": "Crear",
- "common.creating": "Creando...",
- "common.custom": "Personalizado",
- "common.database": "Base de datos",
- "common.databases": "Bases de datos",
- "common.default": "predeterminado",
- "common.delete": "Eliminar",
- "common.delete-resource": "Delete {{type}}",
- "common.deleted": "Eliminado",
- "common.detailed-guide": "guía detallada",
- "common.edit": "Editar",
- "common.environment": "Entorno",
- "common.key": "Clave",
- "common.labels": "Etiquetas",
- "common.learn-more": "Aprender más",
- "common.loading": "Cargando",
- "common.minutes": "Minutos",
- "common.no-data": "Sin datos",
- "common.optional": "Opcional",
- "common.overview": "Resumen",
- "common.password": "Contraseña",
- "common.project": "Proyecto",
- "common.read-only": "Solo lectura",
- "common.restore": "Restaurar",
- "common.sensitive-placeholder": "Sensible - solo escritura",
- "common.unlimited": "Ilimitado",
- "common.updated": "Actualizado",
- "common.updating": "Actualizando",
- "common.user": "Usuario",
- "common.username": "Nombre de usuario",
- "common.value": "Valor",
- "common.warning": "Advertencia",
- "common.write-only": "solo escritura",
"create-db": {
"cluster": "Clúster",
"database-owner-name": "Nombre del propietario de la base de datos",
@@ -332,56 +309,22 @@
},
"self": "Aprobación personalizada"
},
- "data-source.additional-node-addresses": "Direcciones de nodos adicionales",
- "data-source.connection-string-schema": "Esquema de cadena de conexión",
- "data-source.connection-type": "Tipo de conección",
- "data-source.delete-read-only-data-source": "Eliminar origen de datos de solo lectura",
- "data-source.direct-connection": "Direct Connection",
- "data-source.extra-params.description": "Parámetros adicionales para la cadena de conexión de la base de datos",
- "data-source.extra-params.self": "Parámetros adicionales",
- "data-source.no-read-only-data-source": "Sin fuente de datos de solo lectura",
- "data-source.private-key-passphrase": "Frase de contraseña de clave privada",
- "data-source.private-key-passphrase-placeholder": "Deje vacío si su clave privada no está cifrada",
- "data-source.private-key-passphrase-tip": "Frase de contraseña opcional para claves privadas cifradas",
- "data-source.read-replica-host": "Anfitrión de réplica de lectura",
- "data-source.read-replica-port": "Puerto de réplica de lectura",
- "data-source.replica-set": "Conjunto de réplicas",
- "data-source.snowflake-keypair-tip": "Autenticación de par de claves",
- "data-source.ssh-connection": "Conexión SSH",
- "data-source.ssh-type.none": "Ninguno",
- "data-source.ssh-type.tunnel-and-private-key": "Túnel + Clave Privada",
- "data-source.ssh.host": "Anfitrión",
- "data-source.ssh.password": "Contraseña",
- "data-source.ssh.port": "Puerto",
- "data-source.ssh.private-key": "Clave Privada",
- "data-source.ssh.ssh-key": "Clave del SSH",
- "data-source.ssh.user": "Nombre de usuario",
- "data-source.ssl-connection": "Conexión SSL",
- "data-source.ssl.ca-cert": "Certificado de CA",
- "data-source.ssl.client-cert": "Certificado del cliente",
- "data-source.ssl.client-key": "Clave del cliente",
- "data-source.ssl.verify-certificate": "Verificar certificado TLS",
- "data-source.ssl.verify-certificate-tooltip": "Habilitar la verificación del certificado TLS para conexiones seguras. Deshabilitar solo para desarrollo o cuando los certificados no se pueden validar correctamente (por ejemplo, certificados autofirmados, entornos VPN). Advertencia: Deshabilitar la verificación es inseguro",
"database": {
+ "all": "Todas las bases de datos",
+ "change-database": "Modificar base de datos",
"classification": {
"description": "Define classification levels to apply consistent masking policies across columns and databases."
},
"edit-environment": "Editar entorno",
"edit-labels": "Editar etiquetas",
"engine": "Motor",
- "filter-database": "Filtrar base de datos",
- "selected-n-databases": "{{n}} base(s) de datos seleccionada(s)",
- "successfully-transferred-databases": "Bases de datos transferidas exitosamente",
- "sync-schema-button": "Sincronizar esquema",
- "sync-status-failed": "Sincronización fallida",
- "transfer-project": "Transferir proyecto",
- "unassign": "Desasignar",
- "all": "Todas las bases de datos",
- "change-database": "Modificar base de datos",
"expression": "Expression",
+ "filter-database": "Filtrar base de datos",
"mixed-label-values": "valores mixtos",
"mixed-label-values-warning": "Algunos de los recursos seleccionados tienen valores mixtos para la misma clave. Solo edite estos pares clave-valor si tiene la intención de cambiarlos.",
"select": "Seleccionar base de datos",
+ "selected-n-databases": "{{n}} base(s) de datos seleccionada(s)",
+ "successfully-transferred-databases": "Bases de datos transferidas exitosamente",
"sync-schema": {
"copy-schema": "Copy schema",
"description": "Bytebase supports synchronizing a schema to one or multiple target databases. (MySQL, PostgreSQL, Oracle, MSSQL, TiDB only)",
@@ -404,8 +347,13 @@
"title": "Sincronizar esquema",
"with-diff": "With diff"
},
+ "sync-schema-button": "Sincronizar esquema",
+ "sync-status-failed": "Sincronización fallida",
+ "transfer-project": "Transferir proyecto",
+ "unassign": "Desasignar",
"unassign-alert-description": "Las bases de datos seleccionadas serán eliminadas del proyecto",
- "unassign-alert-title": "Desasignar bases de datos"
+ "unassign-alert-title": "Desasignar bases de datos",
+ "sync-complete-for-instance": "Sincronización completada para la instancia '{{0}}'"
},
"database-group": {
"condition": {
@@ -418,29 +366,23 @@
"select": "Select database group",
"unmatched-database": "Unmatched database"
},
- "database.engine": "Motor",
- "database.filter-database": "Filtrar base de datos",
- "database.sync-complete-for-instance": "Sincronización completada para la instancia '{{0}}'",
"db": {
"character-set": "Juego de caracteres",
"collation": "Colación",
"encoding": "Codificación",
"failed-to-sync-schema": "Error al sincronizar el esquema",
"start-to-sync-schema": "Comenzar a sincronizar el esquema",
- "successfully-synced-schema": "Esquema sincronizado exitosamente"
+ "successfully-synced-schema": "Esquema sincronizado exitosamente",
+ "n-databases-had-sync-errors": "{{0}} base(s) de datos tuvieron errores de sincronización",
+ "syncing-databases-for-instance": "Sincronizando bases de datos para {{0}}..."
},
- "db.failed-to-sync-schema": "No se pudo sincronizar el esquema",
- "db.n-databases-had-sync-errors": "{{0}} base(s) de datos tuvieron errores de sincronización",
- "db.start-to-sync-schema": "Comenzar a sincronizar el esquema",
- "db.syncing-databases-for-instance": "Sincronizando bases de datos para {{0}}...",
- "dynamic.resource.instance": "ID de instancia",
"environment": {
"create": "Crear entorno",
"delete": "Eliminar este entorno",
"delete-description": "Eliminar el entorno también lo eliminará de las instancias y bases de datos relacionadas. No se puede deshacer esta acción",
"reorder": "Reordenar entornos",
- "successfully-updated-environment": "entorno '{{name}}' actualizado exitosamente.",
- "select": "Seleccionar entorno"
+ "select": "Seleccionar entorno",
+ "successfully-updated-environment": "entorno '{{name}}' actualizado exitosamente."
},
"error-page": {
"go-back-home": "Volver al inicio",
@@ -529,132 +471,179 @@
"sync-all-tip": "La sincronización de la base de datos es asincrónica y puede tardar entre unos segundos y minutos.",
"sync-new": "Sincronizar únicamente bases de datos nuevas"
},
- "syncing": "Sincronizando..."
+ "syncing": "Sincronizando...",
+ "account-locator": "Localizadora de cuentas",
+ "authentication-database": "Base de datos de autenticación",
+ "connection-info": "Información de conexión",
+ "connection-options": "Opciones de conexión",
+ "create-gcp-credentials": "Para crear credenciales, consulte",
+ "database-region": "Región de la base de datos",
+ "endpoint": "Punto final",
+ "external-id": "ID externo",
+ "external-id-description": "ID externo para seguridad adicional al asumir el rol (opcional)",
+ "external-id-placeholder": "ID externo opcional",
+ "external-link": "Enlace externo",
+ "external-secret-azure": {
+ "secret-name": "Nombre del secreto",
+ "vault-url": "URL del Key Vault",
+ "secret-name-tips": "El nombre del secreto almacenado en Azure Key Vault.",
+ "vault-url-tips": "La URL del Key Vault debe ser similar a \"https://myvault.vault.azure.net/\"."
+ },
+ "external-secret-gcp": {
+ "secret-name": "nombre completo secreto",
+ "secret-name-tips": "El nombre secreto debería ser similar a \"projects/project-id/secrets/secret-id\"."
+ },
+ "external-secret-vault": {
+ "vault-auth-type": {
+ "approle": {
+ "role-id": "Auth role id",
+ "secret-env-name": "Nombre del entorno",
+ "secret-id": "Auth secret id",
+ "secret-plain-text": "Texto sin formato",
+ "self": "AppRole"
+ },
+ "token": {
+ "self": "Token"
+ },
+ "self": "Tipo de autenticación"
+ },
+ "vault-secret-key": "Secret key",
+ "vault-secret-path": "Secret path",
+ "vault-secret-engine-name": "Secret engine name",
+ "vault-secret-engine-tips": "Solo admite motor KV v2.",
+ "vault-tls-config": "Configuración TLS de Vault (opcional)",
+ "vault-url": "Vault URL"
+ },
+ "external-secret": {
+ "key-name": "Clave secreta",
+ "secret-name": "Nombre secreto"
+ },
+ "failed-to-connect-instance": "Error al conectar la instancia.",
+ "failed-to-connect-instance-localhost": "Si ejecuta Bytebase con Docker, intente \"host.docker.internal\" para la dirección del host.",
+ "find-gcp-project-id": "Para encontrar el ID del proyecto de GCP, consulta",
+ "find-gcp-project-id-and-instance-id": "Para encontrar el ID de proyecto y el ID de instancia de GCP, consulte",
+ "grants": "Concesiones",
+ "host-or-socket": "Host o Socket",
+ "iam-extension": {
+ "client-id": "Client ID",
+ "client-secret": "Client Secret",
+ "credential-source": "Credential Source",
+ "specific-credential": "Credencial específica",
+ "tenant-id": "Tenant ID",
+ "saas-default-credential-restriction": "Las credenciales predeterminadas no están disponibles en Bytebase Cloud por seguridad. Proporcione credenciales específicas."
+ },
+ "info-panel": {
+ "no-info": "No hay información adicional disponible para este motor."
+ },
+ "instance-id": "ID de la instancia",
+ "instance-name": "Nombre de la instancia",
+ "no-extra-params-configured": "No hay parámetros de conexión adicionales configurados",
+ "no-params-yet-add-above": "No hay parámetros configurados todavía. \nAgregue parámetros usando el formulario anterior.",
+ "no-password": "Sin contraseña",
+ "parameter-name-placeholder": "Nombre de parámetro",
+ "parameter-value-placeholder": "Valor de parámetro",
+ "password-type": {
+ "aws-iam": "AWS RDS IAM",
+ "azure-iam": "Azure IAM",
+ "google-iam": "Google Cloud SQL IAM",
+ "password": "Contraseña",
+ "external-secret-aws": "AWS Secrets Manager",
+ "external-secret-azure": "Azure Key Vault",
+ "external-secret-gcp": "GCP Secret Manager",
+ "external-secret-vault": "Vault (KV v2)"
+ },
+ "password-write-only": "SU_DB_PWD - solo escritura",
+ "port": "Puerto",
+ "project-id": "ID del proyecto",
+ "role-arn": "ARN del rol",
+ "role-arn-description": "Rol IAM para asumir en acceso entre cuentas. Dejar vacío para acceso en la misma cuenta.",
+ "role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
+ "scan-interval": {
+ "default-never": "Predeterminado (nunca)",
+ "description": "Bytebase sincroniza periódicamente el esquema de instancia y detecta anomalías.",
+ "self": "Intervalo de escaneo",
+ "min-value": "Valor mínimo {{value}} minutos"
+ },
+ "section": {
+ "basic-info": "Información básica",
+ "connection": "Conexión"
+ },
+ "sentence": {
+ "console": {
+ "snowflake": "La URL de la consola externa que administra esta instancia (por ejemplo, la consola de AWS RDS, la consola de la instancia de base de datos interna)"
+ },
+ "create-admin-user": "Este es el usuario de conexión utilizado por Bytebase para realizar operaciones DDL y DML (no SELECT).",
+ "create-admin-user-non-sql": "Este es el usuario de conexión utilizado por Bytebase para realizar operaciones de escritura y administración.",
+ "create-readonly-user": "Esta es la conexión utilizada por Bytebase para realizar operaciones de solo lectura como la consulta SELECT.",
+ "create-readonly-user-non-sql": "Esta es la conexión utilizada por Bytebase para realizar operaciones de solo lectura.",
+ "create-user-example": {
+ "postgresql": {
+ "warn": "Si la instancia de conexión es administrada por el proveedor de la nube, entonces SUPERUSER no está disponible y debes crear el usuario a través de la consola de administración del proveedor. El usuario creado tendrá privilegios semi-SUPERUSER específicos del proveedor. Debes otorgar privilegios de Bytebase con 'GRANT role_name TO bytebase;' para todos los roles existentes, de lo contrario Bytebase puede no tener acceso a las bases de datos o tablas existentes.",
+ "template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' con la contraseña {{password}} y otorgar al usuario los privilegios necesarios. Si la instancia de conexión está alojada por ti mismo, puedes otorgar SUPERUSER."
+ },
+ "clickhouse": {
+ "sql-driven-workflow": "Flujo de trabajo impulsado por SQL",
+ "template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' con la contraseña {{password}} y otorgar al usuario los privilegios necesarios. Primero debe habilitar el flujo de trabajo impulsado por SQL de ClickHouse {{link}} y luego ejecutar la siguiente consulta para crear el usuario."
+ },
+ "mysql": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario {{user}}@% con la contraseña {{password}} y otorgarle al usuario los privilegios necesarios."
+ },
+ "redis": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario {{user}} con la contraseña {{password}} y otorgar al usuario los privilegios necesarios."
+ },
+ "snowflake": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario 'bytebase' con la contraseña {{password}} para {{warehouse}} y otorgar al usuario los privilegios necesarios."
+ }
+ },
+ "firewall-info": "Si usa reglas de firewall entrante para su instancia de base de datos, consulte la instrucción de conexión de Bytebase Cloud.",
+ "host": {
+ "none-snowflake": "por ejemplo, host.docker.internal {{'|'}} host ip {{'|'}} local socket"
+ },
+ "proxy": {
+ "snowflake": "Para el servidor proxy, agregue {{'@'}}PROXY_HOST y especifique PROXY_PORT en el puerto"
+ },
+ "aws-rds": {
+ "mysql": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario {{user}}@% y otorgarle los privilegios necesarios."
+ },
+ "postgresql": {
+ "template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' y otorgarle los privilegios necesarios."
+ }
+ },
+ "google-cloud-sql": {
+ "instance-name": "Nombre de conexión de instancia",
+ "instance-name-tips": "El nombre de la conexión de la instancia debería ser {{instance}}.",
+ "mysql": {
+ "template": "Cree una cuenta de servicio llamada {{user}} y luego agréguela en su Google Cloud SQL como usuario de IAM {{user}}@'%'. Otorgue a este usuario los privilegios necesarios."
+ },
+ "postgresql": {
+ "template": "Cree una cuenta de servicio llamada {{user}} y luego agréguela en su Google Cloud SQL como usuario de IAM {{user}}@project-id.iam. Otorgue al usuario los privilegios necesarios."
+ }
+ }
+ },
+ "show-how-to-create": "Mostrar cómo crear",
+ "snowflake-web-console": "Consola web de Snowflake",
+ "successfully-connected-instance": "Instancia conectada correctamente.",
+ "sync-databases": {
+ "add-database": "+ Agregar base de datos, presione enter para enviar",
+ "description": "Sincronizar sólo bases de datos seleccionadas.",
+ "search-database": "Buscar en la base de datos",
+ "self": "Sincronizar bases de datos",
+ "sync-all": "Sincronizar todas las bases de datos"
+ },
+ "test-connection": "Probar conexión",
+ "type-or-paste-credentials-write-only": "Escriba o pegue las CREDENCIALES - solo escritura",
+ "unable-to-connect": "Bytebase no puede conectar la instancia. Le recomendamos que revise la información de conexión nuevamente. Pero está bien ignorar esta advertencia por ahora. Aún puede solucionar la información de conexión desde la página de detalles de la instancia después de la creación.\n\nDetalle del error: {{0}}",
+ "users": "Usuarios",
+ "your-snowflake-account-locator": "Su localizador de cuentas Snowflake",
+ "testing-connection": "Probando conexión...",
+ "new-instance": "Nueva instancia",
+ "no-environment": "Esta instancia no ha sido ligada al entorno.",
+ "restore-instance-instance-name-to-normal-state": "¿Restaurar la instancia '{{0}}' al estado normal?",
+ "successfully-created-instance-createdinstance-name": "Se ha creado correctamente la instancia '{{0}}'.",
+ "successfully-updated-instance-instance-name": "Se ha actualizado correctamente la instancia '{{0}}'."
},
- "instance.account-locator": "Localizadora de cuentas",
- "instance.archive-instance-instance-name": "¿Archivar la instancia '{{0}}'?",
- "instance.archived-instances-will-not-be-displayed": "Las instancias archivadas no se mostrarán.",
- "instance.authentication-database": "Base de datos de autenticación",
- "instance.connection-info": "Información de conexión",
- "instance.connection-options": "Opciones de conexión",
- "instance.create-gcp-credentials": "Para crear credenciales, consulte",
- "instance.database-region": "Región de la base de datos",
- "instance.endpoint": "Punto final",
- "instance.external-id": "ID externo",
- "instance.external-id-description": "ID externo para seguridad adicional al asumir el rol (opcional)",
- "instance.external-id-placeholder": "ID externo opcional",
- "instance.external-link": "Enlace externo",
- "instance.external-secret-azure.secret-name": "Nombre del secreto",
- "instance.external-secret-azure.secret-name-tips": "El nombre del secreto almacenado en Azure Key Vault.",
- "instance.external-secret-azure.vault-url": "URL del Key Vault",
- "instance.external-secret-azure.vault-url-tips": "La URL del Key Vault debe ser similar a \"https://myvault.vault.azure.net/\".",
- "instance.external-secret-gcp.secret-name": "nombre completo secreto",
- "instance.external-secret-gcp.secret-name-tips": "El nombre secreto debería ser similar a \"projects/project-id/secrets/secret-id\".",
- "instance.external-secret-vault.vault-auth-type.approle.role-id": "Auth role id",
- "instance.external-secret-vault.vault-auth-type.approle.secret-env-name": "Nombre del entorno",
- "instance.external-secret-vault.vault-auth-type.approle.secret-id": "Auth secret id",
- "instance.external-secret-vault.vault-auth-type.approle.secret-plain-text": "Texto sin formato",
- "instance.external-secret-vault.vault-auth-type.approle.self": "AppRole",
- "instance.external-secret-vault.vault-auth-type.self": "Tipo de autenticación",
- "instance.external-secret-vault.vault-auth-type.token.self": "Token",
- "instance.external-secret-vault.vault-secret-engine-name": "Secret engine name",
- "instance.external-secret-vault.vault-secret-engine-tips": "Solo admite motor KV v2.",
- "instance.external-secret-vault.vault-secret-key": "Secret key",
- "instance.external-secret-vault.vault-secret-path": "Secret path",
- "instance.external-secret-vault.vault-tls-config": "Configuración TLS de Vault (opcional)",
- "instance.external-secret-vault.vault-url": "Vault URL",
- "instance.external-secret.key-name": "Clave secreta",
- "instance.external-secret.secret-name": "Nombre secreto",
- "instance.failed-to-connect-instance": "Error al conectar la instancia.",
- "instance.failed-to-connect-instance-localhost": "Si ejecuta Bytebase con Docker, intente \"host.docker.internal\" para la dirección del host.",
- "instance.find-gcp-project-id": "Para encontrar el ID del proyecto de GCP, consulta",
- "instance.find-gcp-project-id-and-instance-id": "Para encontrar el ID de proyecto y el ID de instancia de GCP, consulte",
- "instance.force-archive-description": "Forzar a archivar. Todas las bases de datos quedarán desasignadas.",
- "instance.grants": "Concesiones",
- "instance.host-or-socket": "Host o Socket",
- "instance.iam-extension.client-id": "Client ID",
- "instance.iam-extension.client-secret": "Client Secret",
- "instance.iam-extension.credential-source": "Credential Source",
- "instance.iam-extension.saas-default-credential-restriction": "Las credenciales predeterminadas no están disponibles en Bytebase Cloud por seguridad. Proporcione credenciales específicas.",
- "instance.iam-extension.specific-credential": "Credencial específica",
- "instance.iam-extension.tenant-id": "Tenant ID",
- "instance.info-panel.no-info": "No hay información adicional disponible para este motor.",
- "instance.instance-id": "ID de la instancia",
- "instance.instance-name": "Nombre de la instancia",
- "instance.new-instance": "Nueva instancia",
- "instance.no-environment": "Esta instancia no ha sido ligada al entorno.",
- "instance.no-extra-params-configured": "No hay parámetros de conexión adicionales configurados",
- "instance.no-params-yet-add-above": "No hay parámetros configurados todavía. \nAgregue parámetros usando el formulario anterior.",
- "instance.no-password": "Sin contraseña",
- "instance.parameter-name-placeholder": "Nombre de parámetro",
- "instance.parameter-value-placeholder": "Valor de parámetro",
- "instance.password-type.aws-iam": "AWS RDS IAM",
- "instance.password-type.azure-iam": "Azure IAM",
- "instance.password-type.external-secret-aws": "AWS Secrets Manager",
- "instance.password-type.external-secret-azure": "Azure Key Vault",
- "instance.password-type.external-secret-gcp": "GCP Secret Manager",
- "instance.password-type.external-secret-vault": "Vault (KV v2)",
- "instance.password-type.google-iam": "Google Cloud SQL IAM",
- "instance.password-type.password": "Contraseña",
- "instance.password-write-only": "SU_DB_PWD - solo escritura",
- "instance.port": "Puerto",
- "instance.project-id": "ID del proyecto",
- "instance.restore-instance-instance-name-to-normal-state": "¿Restaurar la instancia '{{0}}' al estado normal?",
- "instance.role-arn": "ARN del rol",
- "instance.role-arn-description": "Rol IAM para asumir en acceso entre cuentas. Dejar vacío para acceso en la misma cuenta.",
- "instance.role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
- "instance.scan-interval.default-never": "Predeterminado (nunca)",
- "instance.scan-interval.description": "Bytebase sincroniza periódicamente el esquema de instancia y detecta anomalías.",
- "instance.scan-interval.min-value": "Valor mínimo {{value}} minutos",
- "instance.scan-interval.self": "Intervalo de escaneo",
- "instance.section.basic-info": "Información básica",
- "instance.section.connection": "Conexión",
- "instance.sentence.aws-rds.mysql.template": "A continuación se muestra un ejemplo para crear el usuario {{user}}@% y otorgarle los privilegios necesarios.",
- "instance.sentence.aws-rds.postgresql.template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' y otorgarle los privilegios necesarios.",
- "instance.sentence.console.snowflake": "La URL de la consola externa que administra esta instancia (por ejemplo, la consola de AWS RDS, la consola de la instancia de base de datos interna)",
- "instance.sentence.create-admin-user": "Este es el usuario de conexión utilizado por Bytebase para realizar operaciones DDL y DML (no SELECT).",
- "instance.sentence.create-admin-user-non-sql": "Este es el usuario de conexión utilizado por Bytebase para realizar operaciones de escritura y administración.",
- "instance.sentence.create-readonly-user": "Esta es la conexión utilizada por Bytebase para realizar operaciones de solo lectura como la consulta SELECT.",
- "instance.sentence.create-readonly-user-non-sql": "Esta es la conexión utilizada por Bytebase para realizar operaciones de solo lectura.",
- "instance.sentence.create-user-example.clickhouse.sql-driven-workflow": "Flujo de trabajo impulsado por SQL",
- "instance.sentence.create-user-example.clickhouse.template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' con la contraseña {{password}} y otorgar al usuario los privilegios necesarios. Primero debe habilitar el flujo de trabajo impulsado por SQL de ClickHouse {{link}} y luego ejecutar la siguiente consulta para crear el usuario.",
- "instance.sentence.create-user-example.mysql.template": "A continuación se muestra un ejemplo para crear el usuario {{user}}@% con la contraseña {{password}} y otorgarle al usuario los privilegios necesarios.",
- "instance.sentence.create-user-example.postgresql.template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' con la contraseña {{password}} y otorgar al usuario los privilegios necesarios. Si la instancia de conexión está alojada por ti mismo, puedes otorgar SUPERUSER.",
- "instance.sentence.create-user-example.postgresql.warn": "Si la instancia de conexión es administrada por el proveedor de la nube, entonces SUPERUSER no está disponible y debes crear el usuario a través de la consola de administración del proveedor. El usuario creado tendrá privilegios semi-SUPERUSER específicos del proveedor. Debes otorgar privilegios de Bytebase con 'GRANT role_name TO bytebase;' para todos los roles existentes, de lo contrario Bytebase puede no tener acceso a las bases de datos o tablas existentes.",
- "instance.sentence.create-user-example.redis.template": "A continuación se muestra un ejemplo para crear el usuario {{user}} con la contraseña {{password}} y otorgar al usuario los privilegios necesarios.",
- "instance.sentence.create-user-example.snowflake.template": "A continuación se muestra un ejemplo para crear el usuario 'bytebase' con la contraseña {{password}} para {{warehouse}} y otorgar al usuario los privilegios necesarios.",
- "instance.sentence.firewall-info": "Si usa reglas de firewall entrante para su instancia de base de datos, consulte la instrucción de conexión de Bytebase Cloud.",
- "instance.sentence.google-cloud-sql.instance-name": "Nombre de conexión de instancia",
- "instance.sentence.google-cloud-sql.instance-name-tips": "El nombre de la conexión de la instancia debería ser {{instance}}.",
- "instance.sentence.google-cloud-sql.mysql.template": "Cree una cuenta de servicio llamada {{user}} y luego agréguela en su Google Cloud SQL como usuario de IAM {{user}}@'%'. Otorgue a este usuario los privilegios necesarios.",
- "instance.sentence.google-cloud-sql.postgresql.template": "Cree una cuenta de servicio llamada {{user}} y luego agréguela en su Google Cloud SQL como usuario de IAM {{user}}@project-id.iam. Otorgue al usuario los privilegios necesarios.",
- "instance.sentence.host.none-snowflake": "por ejemplo, host.docker.internal {'|'} host ip {'|'} local socket",
- "instance.sentence.proxy.snowflake": "Para el servidor proxy, agregue {'@'}PROXY_HOST y especifique PROXY_PORT en el puerto",
- "instance.show-how-to-create": "Mostrar cómo crear",
- "instance.snowflake-web-console": "Consola web de Snowflake",
- "instance.successfully-archived-instance": "Se archivó exitosamente la instancia '{{0}}'.",
- "instance.successfully-connected-instance": "Instancia conectada correctamente.",
- "instance.successfully-created-instance-createdinstance-name": "Se ha creado correctamente la instancia '{{0}}'.",
- "instance.successfully-restored-instance": "Se restauró exitosamente la instancia '{{0}}'.",
- "instance.successfully-updated-instance-instance-name": "Se ha actualizado correctamente la instancia '{{0}}'.",
- "instance.sync-databases.add-database": "+ Agregar base de datos, presione enter para enviar",
- "instance.sync-databases.description": "Sincronizar sólo bases de datos seleccionadas.",
- "instance.sync-databases.search-database": "Buscar en la base de datos",
- "instance.sync-databases.self": "Sincronizar bases de datos",
- "instance.sync-databases.sync-all": "Sincronizar todas las bases de datos",
- "instance.sync.self": "Instancia de sincronización",
- "instance.sync.sync-all": "Sincronizar todas las bases de datos",
- "instance.sync.sync-all-tip": "La sincronización de la base de datos es asincrónica y puede tardar entre unos segundos y minutos.",
- "instance.sync.sync-new": "Sincronizar únicamente bases de datos nuevas",
- "instance.syncing": "Sincronizando...",
- "instance.test-connection": "Probar conexión",
- "instance.testing-connection": "Probando conexión",
- "instance.type-or-paste-credentials-write-only": "Escriba o pegue las CREDENCIALES - solo escritura",
- "instance.unable-to-connect": "Bytebase no puede conectar la instancia. Le recomendamos que revise la información de conexión nuevamente. Pero está bien ignorar esta advertencia por ahora. Aún puede solucionar la información de conexión desde la página de detalles de la instancia después de la creación.\n\nDetalle del error: {{0}}",
- "instance.users": "Usuarios",
- "instance.your-snowflake-account-locator": "Su localizador de cuentas Snowflake",
"issue": {
- "labels": "Etiquetas de problema",
"advanced-search": {
"filter": "Filtrar"
},
@@ -663,6 +652,7 @@
"limits": "Límites",
"options": "Opciones de exportación"
},
+ "labels": "Etiquetas de problema",
"risk-level": {
"high": "Alto",
"moderate": "Moderado",
@@ -686,15 +676,12 @@
"error": {
"key-duplicated": "Claves duplicadas",
"key-necessary": "Se requiere una clave",
- "max-value-length-exceeded": "La longitud del valor no puede exceder {{length}} caracteres"
- }
+ "max-value-length-exceeded": "La longitud del valor no puede exceder {{length}} caracteres",
+ "value-necessary": "Se requiere un valor"
+ },
+ "add-label": "Agregar etiqueta",
+ "empty-label-value": "Valor"
},
- "label.add-label": "Agregar etiqueta",
- "label.empty-label-value": "Valor",
- "label.error.key-duplicated": "Claves duplicadas",
- "label.error.key-necessary": "Se requiere una clave",
- "label.error.max-value-length-exceeded": "La longitud del valor no puede exceder {{longitud}} caracteres",
- "label.error.value-necessary": "Se requiere un valor",
"landing": {
"changelog-for-version": "Registro de cambios para {{version}}",
"last-visit": "Última visita",
@@ -752,9 +739,6 @@
"success-prompt": "Proyecto {{name}} creado exitosamente."
},
"filter-projects": "Filtrar proyectos",
- "table": {
- "name": "Nombre"
- },
"masking-exemption": {
"all-levels": "Todos los niveles",
"expires-in-days_one": "Expira en {{days}} día",
@@ -851,6 +835,9 @@
"success-updated": "La configuración del proyecto se actualizó correctamente.",
"update-failed": "No se pudo actualizar la configuración del proyecto."
},
+ "table": {
+ "name": "Nombre"
+ },
"webhook": {
"activity-support-direct-message": "Soporte para enviar mensajes directos a usuarios relacionados.",
"add-a-webhook": "Agregar un webhook",
@@ -886,7 +873,6 @@
"new-project": "Nuevo Proyecto",
"request-export-data": "Solicitar exportación"
},
- "quick-action.add-instance": "@:common.add @:common.instance",
"release": {
"releases": "Lanzamientos"
},
@@ -896,9 +882,9 @@
}
},
"resource": {
- "delete-warning-with-resources": "El \"{{name}}\" lo utilizan los siguientes recursos:",
+ "delete-warning": "Se eliminará el elemento \"{{name}}\". Esta acción no se puede deshacer.",
"delete-warning-retry": "Elimínelo de estos recursos y vuelva a intentarlo.",
- "delete-warning": "Se eliminará el elemento \"{{name}}\". Esta acción no se puede deshacer."
+ "delete-warning-with-resources": "El \"{{name}}\" lo utilizan los siguientes recursos:"
},
"resource-id": {
"cannot-be-changed-later": "No se puede cambiar posteriormente.",
@@ -911,13 +897,6 @@
"pattern": "La identificación {{recurso}} puede tener letras, dígitos o guiones minúsculas. Debe comenzar con una letra minúscula y terminar con una letra o número."
}
},
- "resource-id.cannot-be-changed-later": "No se puede cambiar posteriormente.",
- "resource-id.description": "El ID de {{resource}} es un identificador único. No se puede cambiar una vez creado.",
- "resource-id.self": "ID de {{resource}}",
- "resource-id.validation.duplicated": "El ID de {{resource}} ya existe. Por favor, elige otro.",
- "resource-id.validation.empty": "El ID {{resource}} no puede estar vacío",
- "resource-id.validation.overflow": "El ID de {{resource}} es demasiado largo. Debe tener menos de 64 caracteres.",
- "resource-id.validation.pattern": "La identificación {{recurso}} puede tener letras, dígitos o guiones minúsculas. Debe comenzar con una letra minúscula y terminar con una letra o número.",
"role": {
"custom-roles": {
"self": "Roles personalizados"
@@ -940,13 +919,14 @@
"self": "Roles de espacio de trabajo"
}
},
+ "schema-editor": {
+ "raw-sql": "Raw SQL"
+ },
"schema-template": {
"classification": {
"search": "Clasificación de búsqueda"
}
},
- "setting.label.key-placeholder": "Clave de etiqueta...",
- "setting.label.value-placeholder": "Valor de etiqueta...",
"settings": {
"general": {
"workspace": {
@@ -1165,8 +1145,13 @@
"reactivate-confirm-title": "¿Estás seguro de que deseas reactivar?"
},
"add-member": "Agregar miembro",
+ "add-service-account": "Añadir Cuenta de Servicio",
"add-user": "Agregar usuario",
+ "add-workload-identity": "Añadir Identidad de Carga de Trabajo",
+ "all-users": "Todos los usuarios",
+ "assign-role": "Assign role",
"cannot-revoke-self": "You cannot revoke yourself",
+ "copy-service-key": "Copiar Clave de Servicio",
"entra-sync": {
"description": "Sincronice usuarios y grupos de Entra ID (anteriormente Azure AD) u Okta con su instancia de Bytebase.",
"endpoint": "Punto final",
@@ -1196,7 +1181,11 @@
"update-group": "Grupo de actualización",
"workspace-domain-required": "Primero configure un dominio de espacio de trabajo."
},
+ "inactive-service-accounts": "Cuentas de servicio inactivas",
"inactive-users": "Usuarios inactivos",
+ "inactive-workload-identities": "Identidades de carga de trabajo inactivas",
+ "reset-service-key": "Restablecer Clave de Servicio",
+ "reset-service-key-alert": "Esta acción no se puede deshacer. La clave antigua dejará de funcionar de inmediato. ¿Está seguro de que desea restablecer esta clave de servicio?",
"revoke-access": "Revocar acceso",
"revoke-access-alert": "¿Está seguro de revocar el acceso?",
"revoke-allusers-alert": "Revocar \"Todos los usuarios\" revocará los roles relacionados de todos los demás usuarios de su espacio de trabajo. ¿Desea continuar?",
@@ -1208,30 +1197,21 @@
"select-role_one": "Seleccionar rol",
"select-role_other": "Seleccionar roles",
"service-account": "Cuenta de Servicio",
+ "service-accounts": "Cuentas de Servicio",
+ "service-key-copied": "Clave de Servicio copiada al portapapeles, por favor manténgala en secreto.",
"show-inactive": "Mostrar cuentas inactivas",
"table": {
"account": "Cuenta",
"groups": "Grupos",
"roles": "Roles"
},
+ "update-service-account": "Actualizar Cuenta de Servicio",
"update-user": "Actualizar usuario",
+ "update-workload-identity": "Actualizar Identidad de Carga de Trabajo",
"view-by-members": "Ver por miembros",
"view-by-roles": "Ver por roles",
- "workload-identity": "Workload Identity",
- "add-service-account": "Añadir Cuenta de Servicio",
- "add-workload-identity": "Añadir Identidad de Carga de Trabajo",
- "all-users": "Todos los usuarios",
- "assign-role": "Assign role",
- "copy-service-key": "Copiar Clave de Servicio",
- "inactive-service-accounts": "Cuentas de servicio inactivas",
- "inactive-workload-identities": "Identidades de carga de trabajo inactivas",
- "reset-service-key": "Restablecer Clave de Servicio",
- "reset-service-key-alert": "Esta acción no se puede deshacer. La clave antigua dejará de funcionar de inmediato. ¿Está seguro de que desea restablecer esta clave de servicio?",
- "service-accounts": "Cuentas de Servicio",
- "service-key-copied": "Clave de Servicio copiada al portapapeles, por favor manténgala en secreto.",
- "update-service-account": "Actualizar Cuenta de Servicio",
- "update-workload-identity": "Actualizar Identidad de Carga de Trabajo",
"workload-identities": "Identidades de Carga de Trabajo",
+ "workload-identity": "Workload Identity",
"workload-identity-advanced": "Advanced Settings",
"workload-identity-all-branches-tags": "All branches and tags",
"workload-identity-allowed-branches-tags": "Allowed Branches/Tags",
@@ -1255,6 +1235,7 @@
"workload-identity-tag-hint": "Leave empty to allow all tags"
},
"profile": {
+ "email": "Correo electrónico",
"password": "Contraseña",
"password-confirm": "Confirmar contraseña",
"password-confirm-placeholder": "Confirmar nueva contraseña",
@@ -1262,7 +1243,6 @@
"password-mismatch": "Nueva contraseña no coincide",
"phone": "Número de móvil",
"phone-tips": "Asegúrese de incluir el código del país +1xxxxxx",
- "email": "Correo electrónico",
"role": "Rol",
"subscription": "(Actualice para habilitar la gestión de roles)"
},
@@ -1329,10 +1309,12 @@
},
"re-order": "Reordenar"
},
+ "never-expires": "Nunca expira",
"semantic-types": {
"add-from-template": "Agregar desde plantilla",
"label": "Las columnas que tengan el mismo tipo semántico utilizarán los mismos algoritmos de enmascaramiento.",
"select": "Seleccionar tipo semántico",
+ "self": "Tipos Semánticos",
"table": {
"delete": "¿Eliminar este tipo semántico?",
"description": "Descripción",
@@ -1344,29 +1326,27 @@
"description": "Puede aplicar tipos semánticos integrados desde la plantilla. La plantilla integrada no se puede modificar.",
"duplicate-warning": "El tipo semántico \"{{title}}\" ya existe"
},
- "use-predefined-type": "Utiliza el Tipo Predefinido",
- "self": "Tipos Semánticos"
- },
- "never-expires": "Nunca expira"
+ "use-predefined-type": "Utiliza el Tipo Predefinido"
+ }
},
"sidebar": {
"audit-log": "Registros de auditoría",
"custom-roles": "Roles personalizados",
+ "data-access": "Acceso a datos",
"data-classification": "Clasificación de datos",
"general": "General",
"global-masking": "Enmascaramiento Global",
+ "iam-and-admin": "IAM y administración",
"im-integration": "Integración de IM",
+ "integration": "Integración",
"mcp": "MCP",
"members": "Miembros",
"members-and-groups": "Miembros y grupos",
+ "profile": "Perfil",
+ "security-and-policy": "Seguridad y Política",
"sso": "SSO",
"subscription": "Suscripción",
- "users-and-groups": "Usuarios y grupos",
- "data-access": "Acceso a datos",
- "iam-and-admin": "IAM y administración",
- "integration": "Integración",
- "profile": "Perfil",
- "security-and-policy": "Seguridad y Política"
+ "users-and-groups": "Usuarios y grupos"
},
"sso": {
"create": "Crear SSO",
@@ -1455,7 +1435,6 @@
}
},
"sql-editor": {
- "self": "Editor de SQL",
"access-grants": "Access Grants",
"access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",
"activate-access": "Activate",
@@ -1464,11 +1443,10 @@
"grant-type-unmask": "Unmask",
"revoke-access": "Revoke",
"revoke-confirm": "Are you sure you want to revoke this access grant?",
+ "self": "Editor de SQL",
"view-issue": "View Issue"
},
"sql-review": {
- "configure-policy": "Configure policy",
- "title": "SQL Review",
"add-or-remove-rules": "Add or remove rules",
"add-rules": "Add rules",
"attach-resource": {
@@ -1477,6 +1455,7 @@
"no-linked-resources": "No attached resources",
"self": "Attach to resources"
},
+ "configure-policy": "Configure policy",
"create": {
"basic-info": {
"display-name": "Display name",
@@ -1501,12 +1480,14 @@
"policy-removed": "Successfully removed the review policy.",
"policy-update-failed": "Failed to update the review policy.",
"policy-updated": "Successfully updated the review policy.",
- "review-policy": "Review policy"
+ "review-policy": "Review policy",
+ "title": "SQL Review"
},
"subscription": {
"contact-us": "Contáctenos",
"current": "Plan actual",
"description": "Puedes subir tu licencia Bytebase para desbloquear funciones de edición/empresa.",
+ "disabled-feature": "Función deshabilitada",
"enterprise-free-trial": "{{days}}-días de prueba gratuita para la empresa",
"expired": "expirado",
"expires-at": "Expira el",
@@ -1516,7 +1497,8 @@
"license": "Licencia",
"missing-license-attention": "Debe asignar una licencia a la instancia para habilitar esta función.",
"used-and-total-license": "Licencia asignada / total",
- "used-and-total-user": "Límite de usuarios activos/totales"
+ "used-and-total-user": "Límite de usuarios activos/totales",
+ "n-license-remain": "permanecer {{n}}"
},
"max-instance-count": "Recuento máximo de instancias",
"plan": {
@@ -1597,20 +1579,15 @@
"title": "Límite de conteo de usuarios",
"upgrade": "Actualizar para obtener más cuota de usuario."
}
- },
- "disabled-feature": "Función deshabilitada"
+ }
},
- "subscription.instance-assignment.assign-license": "Asignar licencia",
- "subscription.instance-assignment.n-license-remain": "permanecer {{n}}",
- "subscription.usage.instance-count.runoutof": "Te has quedado sin tu cuota de instancias {{total}}.",
- "subscription.usage.instance-count.title": "Límite de cantidad de instancias",
"two-factor": {
- "enabled": "2FA habilitado",
"description": "La autenticación de dos factores proporciona una capa adicional de seguridad para las cuentas de los miembros. Al iniciar sesión, se te pedirá que ingreses el código de seguridad generado por tu aplicación de autenticación.",
"disable": {
"description": "Está a punto de desactivar la autenticación de dos factores para su cuenta. Ya no se le pedirá que ingrese el código de seguridad generado por su aplicación de autenticación cuando inicie sesión.",
"self": "Desactivar la autenticación de dos factores"
},
+ "enabled": "2FA habilitado",
"messages": {
"2fa-disabled": "La autenticación de dos factores está desactivada.",
"2fa-enabled": "La autenticación de dos factores está activada.",
@@ -1652,67 +1629,106 @@
"self": "Su secreto de dos factores"
}
},
+ "data-source": {
+ "additional-node-addresses": "Direcciones de nodos adicionales",
+ "connection-string-schema": "Esquema de cadena de conexión",
+ "connection-type": "Tipo de conección",
+ "delete-read-only-data-source": "Eliminar origen de datos de solo lectura",
+ "direct-connection": "Direct Connection",
+ "extra-params": {
+ "description": "Parámetros adicionales para la cadena de conexión de la base de datos",
+ "self": "Parámetros adicionales"
+ },
+ "private-key-passphrase": "Frase de contraseña de clave privada",
+ "private-key-passphrase-tip": "Frase de contraseña opcional para claves privadas cifradas",
+ "read-replica-host": "Anfitrión de réplica de lectura",
+ "read-replica-port": "Puerto de réplica de lectura",
+ "replica-set": "Conjunto de réplicas",
+ "snowflake-keypair-tip": "Autenticación de par de claves",
+ "ssh-connection": "Conexión SSH",
+ "ssh-type": {
+ "none": "Ninguno",
+ "tunnel-and-private-key": "Túnel + Clave Privada"
+ },
+ "ssh": {
+ "host": "Anfitrión",
+ "password": "Contraseña",
+ "port": "Puerto",
+ "private-key": "Clave Privada",
+ "ssh-key": "Clave del SSH",
+ "user": "Nombre de usuario"
+ },
+ "ssl-connection": "Conexión SSL",
+ "ssl": {
+ "ca-cert": "Certificado de CA",
+ "client-cert": "Certificado del cliente",
+ "client-key": "Clave del cliente",
+ "verify-certificate": "Verificar certificado TLS",
+ "verify-certificate-tooltip": "Habilitar la verificación del certificado TLS para conexiones seguras. Deshabilitar solo para desarrollo o cuando los certificados no se pueden validar correctamente (por ejemplo, certificados autofirmados, entornos VPN). Advertencia: Deshabilitar la verificación es inseguro"
+ },
+ "no-read-only-data-source": "Sin fuente de datos de solo lectura",
+ "private-key-passphrase-placeholder": "Deje vacío si su clave privada no está cifrada"
+ },
+ "setting": {
+ "label": {
+ "key-placeholder": "Clave de etiqueta...",
+ "value-placeholder": "Valor de etiqueta..."
+ }
+ },
"agent": {
- "assistant-title": "Asistente de Bytebase",
- "resize": "Resize",
- "minimize": "Minimizar",
- "close": "Cerrar",
- "input-placeholder": "Pregunta lo que sea...",
- "send": "Enviar",
- "args": "Argumentos:",
- "result": "Resultado:",
- "stop": "Detener",
- "interrupted": "Interrumpido",
- "retry-last-chat-turn": "Reintentar el último turno",
- "interrupted-retry-hint": "Reintentar vuelve a ejecutar el turno interrumpido con el estado actual de la página.",
- "new-chat": "Nuevo chat",
- "rename-chat-placeholder": "Introduce un nombre para el chat",
- "archive-chat": "Archivar",
- "unarchive-chat": "Desarchivar",
- "delete-chat": "Eliminar",
- "active-only-chats": "Solo activas",
- "archived-only-chats": "Solo archivadas",
- "archive-chat-confirmation": "¿Archivar este chat?",
- "delete-chat-confirmation": "¿Eliminar este chat?",
- "chat-list-label": "Chats",
- "chat-default-title": "Nuevo chat",
+ "active-only-chats": "Solo activos",
+ "ai-not-configured": {
+ "configure": "Configurar",
+ "contact-admin": "Contacte al administrador de su espacio de trabajo para configurar la IA.",
+ "description": "La IA no está configurada para este espacio de trabajo.",
+ "title": "IA no configurada"
+ },
+ "archive-chat": "Archivar chat",
+ "archive-chat-confirmation": "¿Está seguro de que desea archivar este chat?",
+ "archived-only-chats": "Solo archivados",
+ "args": "Argumentos",
+ "assistant-title": "Asistente de IA",
+ "cancel": "Cancelar",
"chat-archived-label": "Archivado",
- "chat-status-idle": "Inactivo",
- "chat-status-running": "En ejecución",
- "chat-status-awaiting-user": "Esperando entrada",
+ "chat-default-title": "Nuevo chat",
+ "chat-list-label": "Chats",
+ "chat-status-awaiting-user": "Esperando usuario",
"chat-status-error": "Error",
+ "chat-status-idle": "Inactivo",
"chat-status-interrupted": "Interrumpido",
- "chat-total-tokens": "Tokens usados: {{count}}",
- "reply": "Responder",
+ "chat-status-running": "Ejecutando",
+ "chat-total-tokens": "Tokens totales",
+ "close": "Cerrar",
"confirm": "Confirmar",
- "cancel": "Cancelar",
- "pending-input-hint": "Responde abajo para continuar este chat.",
- "pending-confirm-hint": "Elige confirmar o cancelar para continuar este chat.",
- "pending-choose-hint": "Elige una opción para continuar este chat.",
- "tool-ask-user": "Esperando tu respuesta",
- "tool-ask-user-input": "Se requiere una entrada",
- "tool-ask-user-confirm": "Se requiere confirmación",
- "tool-ask-user-choose": "Se requiere una selección",
- "tool-response-submitted": "Respuesta enviada",
- "tool-prompt": "Pregunta:",
- "tool-default-value": "Valor predeterminado:",
- "tool-options": "Opciones:",
- "tool-answer": "Respuesta:",
- "tool-value": "Valor:",
+ "delete-chat": "Eliminar chat",
+ "delete-chat-confirmation": "¿Está seguro de que desea eliminar este chat? Esta acción no se puede deshacer.",
+ "input-placeholder": "Pregunta algo a la IA...",
+ "interrupted": "Interrumpido",
+ "interrupted-retry-hint": "La conversación fue interrumpida. Puede reintentar o enviar un nuevo mensaje.",
+ "minimize": "Minimizar",
+ "new-chat": "Nuevo chat",
+ "pending-choose-hint": "Seleccione una opción arriba",
+ "pending-confirm-hint": "Confirme o cancele arriba",
+ "pending-input-hint": "Proporcione la entrada arriba",
+ "rename-chat-placeholder": "Ingrese el nombre del chat",
+ "reply": "Responder",
+ "resize": "Redimensionar",
+ "result": "Resultado",
+ "retry-last-chat-turn": "Reintentar",
+ "send": "Enviar",
+ "stop": "Detener",
+ "tool-answer": "Respuesta",
+ "tool-ask-user": "Preguntando al usuario",
+ "tool-ask-user-choose": "Elija una opción",
+ "tool-ask-user-confirm": "Confirmar acción",
+ "tool-ask-user-input": "Proporcionar entrada",
"tool-completed": "Completado",
- "tool-failed": "Completado con problemas",
- "ai-not-configured": {
- "title": "El asistente de IA no está configurado para este espacio de trabajo",
- "description": "Para continuar con el agente de página, habilita el asistente de IA en la configuración del espacio de trabajo.",
- "configure": "Configurar IA",
- "contact-admin": "Ponte en contacto con el administrador de tu organización para configurar el asistente de IA."
- }
- },
- "changelog": {
- "select": "Schema version is recorded each time a schema change is applied via Bytebase",
- "self": "Changelog"
- },
- "schema-editor": {
- "raw-sql": "Raw SQL"
+ "tool-default-value": "Predeterminado",
+ "tool-failed": "Fallido",
+ "tool-options": "Opciones",
+ "tool-prompt": "Indicación",
+ "tool-response-submitted": "Respuesta enviada",
+ "tool-value": "Valor",
+ "unarchive-chat": "Desarchivar chat"
}
}
diff --git a/frontend/src/react/locales/ja-JP.json b/frontend/src/react/locales/ja-JP.json
index ca2041e31b..c7ae296b16 100644
--- a/frontend/src/react/locales/ja-JP.json
+++ b/frontend/src/react/locales/ja-JP.json
@@ -60,7 +60,13 @@
"self": "状態"
}
},
+ "changelog": {
+ "select": "Schema version is recorded each time a schema change is applied via Bytebase",
+ "self": "Changelog"
+ },
"common": {
+ "activated": "有効化しました",
+ "active": "アクティブ",
"add": "追加",
"add-permissions": "権限を追加",
"added": "作成した",
@@ -68,10 +74,14 @@
"all": "全て",
"approved": "承認済み",
"archive": "アーカイブ",
+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",
+ "archive-resource": "Archive {{type}}",
"archived": "アーカイブ済み",
"back": "戻る",
"cancel": "キャンセル",
"cannot-undo-this-action": "この操作は元に戻せません",
+ "changelog": "Changelog",
+ "classification-level": "分類レベル",
"clear": "クリア",
"close": "閉じる",
"closed": "閉まっている",
@@ -79,48 +89,82 @@
"configure": "設定",
"configure-now": "今すぐ設定する",
"confirm": "確認する",
+ "confirm-and-add": "Confirm and add",
"confirm-and-update": "確認して更新する",
+ "confirm-archive": "Archive Resource?",
+ "confirm-delete": "Delete Resource?",
+ "confirm-to-revert": "Confirm to revert your editing?",
"copied": "コピーされました",
"copy": "コピー",
+ "copy-failed": "Copy failed",
"create": "作成する",
"created": "作成済",
+ "created-at": "作成日時",
+ "creator": "作成者",
+ "danger-zone": "Danger Zone",
+ "database": "データベース",
+ "database-group": "データベースグループ",
+ "databases": "データベース",
+ "default": "デフォルト",
"delete": "消去",
"delete-resource": "Delete {{type}}",
+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
"deleted": "削除されました",
"description": "説明",
+ "deselect-all": "Deselect all",
+ "disable": "Disable",
"discard-changes": "変更をキャンセルする",
+ "download": "ダウンロード",
"edit": "編集",
"email": "メールアドレス",
+ "email-ascii-only": "メールアドレスは ASCII 文字のみ使用できます(英数字および . _ - + などの記号)。",
+ "empty": "Empty",
+ "enable": "オンにする",
+ "enabled": "Enabled",
"environment": "環境",
"environment-name": "環境名",
+ "environments": "環境",
+ "expiration": "Expiration",
"export": "エクスポート",
"failed": "失敗",
"file-selector": {
"size-limit": "ファイルサイズは {{size}} MiB 未満である必要があります",
"type-limit": "タイプ {{extension}} のファイルのみがサポートされます"
},
+ "filter": "Filter",
"filter-by-name": "名前でフィルタリングする",
"from": "開始",
"general": "全般",
"groups": "グループ",
+ "home": "ホームページ",
"id": "ID",
"instance": "インスタンス",
+ "instances": "インスタンス",
"is-required": "is required",
+ "issues": "イシュー",
+ "items": "items",
+ "key": "キー",
"labels": "ラベル",
"learn-more": "もっと詳しく知る",
"leave-without-saving": "変更を保存していませんか?",
"load-more": "もっと読み込む",
"loading": "読み込み中",
+ "manage": "管理",
+ "manually-select": "Manually select",
"members_one": "メンバー",
"members_other": "メンバー",
"missing-required-permission": "必要な権限がありません {{permissions}}",
"n-items-selected": "{{n}} 件選択済み",
+ "n-more": "+{{n}} もっと",
"name": "名前",
"next": "次のステップ",
"no-data": "データなし",
"ok": "わかりました",
"operations": "操作",
+ "optional": "Optional",
+ "pending": "保留中",
"permissions": "権限",
+ "previous": "Previous",
"project": "プロジェクト",
"projects": "プロジェクト",
"reason": "Reason",
@@ -130,23 +174,36 @@
"reorder": "並び替え",
"required-permission": "必要な権限",
"required-workspace-permission": "ワークスペース UX の初期化には以下の権限が必要です",
+ "resource": "Resource",
+ "resources": "リソース",
"resource-not-found": "リソースが見つかりません",
"restore": "復元する",
"restored": "Restored",
"revert": "元に戻す",
+ "revoke": "キャンセル",
+ "revoked": "取り消し済み",
"rows-per-page": "ページあたりの行数",
"save": "保存",
+ "schema": "スキーマ",
+ "scope": "スコープ",
"search": "検索",
+ "search-for-more": "さらに検索",
+ "type-to-search": "入力して検索",
"select": "選択してください",
"select-all": "すべて選択",
+ "selected": "selected",
"sensitive-placeholder": "機密データ - 書き込みのみ",
"setting": "設定",
"settings": "設定",
"sql": "SQL",
"state": "ステート",
+ "statement": "ステートメント",
+ "status": "ステータス",
"system": "システム",
+ "table": "テーブル",
"title": "タイトル",
"to": "終了",
+ "total": "Total",
"total-n-items": "合計 {{n}} 件",
"type": "タイプ",
"unassigned": "割り当てられていない",
@@ -156,107 +213,27 @@
"updated": "更新しました",
"upload": "アップロード",
"users": "ユーザー",
+ "value": "値",
"view": "表示",
"view-details": "詳細を表示",
"warning": "警告する",
+ "webhooks": "Webhook",
"you": "あなた",
- "copy-failed": "Copy failed",
+ "admin": "管理者",
+ "continue-anyway": "まだ続けたい",
+ "creating": "作成...",
+ "custom": "カスタマイズ",
+ "detailed-guide": "詳細ガイド",
"dismiss": "閉じる",
- "activated": "有効化しました",
- "active": "アクティブ",
- "archive-description": "Mark \"{{name}}\" as archived and read-only.",
- "archive-resource": "Archive {{type}}",
- "changelog": "Changelog",
- "classification-level": "分類レベル",
- "confirm-and-add": "Confirm and add",
- "confirm-archive": "Archive Resource?",
- "confirm-delete": "Delete Resource?",
- "confirm-to-revert": "Confirm to revert your editing?",
- "created-at": "作成日時",
- "creator": "作成者",
- "danger-zone": "Danger Zone",
- "database": "データベース",
- "database-group": "データベースグループ",
- "databases": "データベース",
- "default": "デフォルト",
- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
- "deselect-all": "Deselect all",
- "disable": "Disable",
- "download": "ダウンロード",
- "email-ascii-only": "メールアドレスは ASCII 文字のみ使用できます(英数字および . _ - + などの記号)。",
- "empty": "Empty",
- "enable": "オンにする",
- "enabled": "Enabled",
- "environments": "環境",
- "expiration": "Expiration",
- "filter": "Filter",
- "home": "ホームページ",
- "instances": "インスタンス",
- "issues": "イシュー",
- "items": "items",
- "key": "キー",
- "manage": "管理",
- "manually-select": "Manually select",
- "n-more": "+{{n}} もっと",
- "optional": "Optional",
- "pending": "保留中",
- "previous": "Previous",
- "resource": "Resource",
- "resources": "リソース",
- "revoke": "キャンセル",
- "revoked": "取り消し済み",
- "schema": "スキーマ",
- "scope": "スコープ",
- "search-for-more": "さらに検索",
- "selected": "selected",
- "statement": "ステートメント",
- "status": "ステータス",
- "table": "テーブル",
- "total": "Total",
- "value": "値",
- "webhooks": "Webhook"
+ "minutes": "分",
+ "overview": "概要",
+ "password": "パスワード",
+ "read-only": "読み取り専用",
+ "updating": "更新中...",
+ "user": "ユーザー",
+ "username": "ユーザー名",
+ "write-only": "書き込み専用"
},
- "common.add": "追加",
- "common.admin": "管理者",
- "common.archive": "アーカイブ",
- "common.archived": "アーカイブ済み",
- "common.cancel": "キャンセル",
- "common.cannot-undo-this-action": "この操作は元に戻せません",
- "common.confirm-and-update": "確認して更新する",
- "common.continue-anyway": "まだ続けたい",
- "common.create": "作成する",
- "common.creating": "作成...",
- "common.custom": "カスタマイズ",
- "common.database": "データベース",
- "common.databases": "データベース",
- "common.default": "デフォルト",
- "common.delete": "消去",
- "common.delete-resource": "Delete {{type}}",
- "common.deleted": "削除されました",
- "common.detailed-guide": "詳細ガイド",
- "common.edit": "編集",
- "common.environment": "環境",
- "common.key": "キー",
- "common.labels": "ラベル",
- "common.learn-more": "もっと詳しく知る",
- "common.loading": "読み込み中",
- "common.minutes": "分",
- "common.no-data": "データなし",
- "common.optional": "オプション",
- "common.overview": "概要",
- "common.password": "パスワード",
- "common.project": "プロジェクト",
- "common.read-only": "読み取り専用",
- "common.restore": "復元する",
- "common.sensitive-placeholder": "機密データ - 書き込みのみ",
- "common.unlimited": "無制限",
- "common.updated": "更新しました",
- "common.updating": "更新中",
- "common.user": "ユーザー",
- "common.username": "ユーザー名",
- "common.value": "値",
- "common.warning": "警告する",
- "common.write-only": "書き込み専用",
"create-db": {
"cluster": "集まる",
"database-owner-name": "データベース所有者",
@@ -332,56 +309,22 @@
},
"self": "カスタム承認"
},
- "data-source.additional-node-addresses": "追加のノードアドレス",
- "data-source.connection-string-schema": "接続文字列モード",
- "data-source.connection-type": "接続タイプ",
- "data-source.delete-read-only-data-source": "読み取り専用データソースを削除する",
- "data-source.direct-connection": "Direct Connection",
- "data-source.extra-params.description": "データベース接続文字列の追加パラメーター",
- "data-source.extra-params.self": "追加のパラメーター",
- "data-source.no-read-only-data-source": "読み取り専用データソースがありません",
- "data-source.private-key-passphrase": "秘密鍵のパスフレーズ",
- "data-source.private-key-passphrase-placeholder": "秘密鍵が暗号化されていない場合は空のままにしてください",
- "data-source.private-key-passphrase-tip": "暗号化された秘密鍵のオプションパスフレーズ",
- "data-source.read-replica-host": "リードレプリカホスト",
- "data-source.read-replica-port": "リードレプリカポート",
- "data-source.replica-set": "レプリカセット",
- "data-source.snowflake-keypair-tip": "キーペア認証",
- "data-source.ssh-connection": "SSH接続",
- "data-source.ssh-type.none": "なし",
- "data-source.ssh-type.tunnel-and-private-key": "トンネル + 秘密鍵",
- "data-source.ssh.host": "サーバ",
- "data-source.ssh.password": "パスワード",
- "data-source.ssh.port": "ポート",
- "data-source.ssh.private-key": "秘密鍵",
- "data-source.ssh.ssh-key": "SSHキー",
- "data-source.ssh.user": "ユーザー名",
- "data-source.ssl-connection": "SSL接続",
- "data-source.ssl.ca-cert": "CA証明書",
- "data-source.ssl.client-cert": "クライアント証明書",
- "data-source.ssl.client-key": "クライアントキー",
- "data-source.ssl.verify-certificate": "TLS証明書を検証",
- "data-source.ssl.verify-certificate-tooltip": "安全な接続のためにTLS証明書の検証を有効にします。開発環境や証明書が適切に検証できない場合(自己署名証明書、VPN環境など)にのみ無効にしてください。警告:検証を無効にすることは安全ではありません",
"database": {
+ "all": "すべてのデータベース",
+ "change-database": "データベースの変更",
"classification": {
"description": "Define classification levels to apply consistent masking policies across columns and databases."
},
"edit-environment": "環境の編集",
"edit-labels": "ラベルを編集",
"engine": "エンジン",
- "filter-database": "データベースをフィルター",
- "selected-n-databases": "{{n}} 個のデータベースが選択されました",
- "successfully-transferred-databases": "データベースの転送に成功しました",
- "sync-schema-button": "スキーマを同期",
- "sync-status-failed": "同期に失敗しました",
- "transfer-project": "プロジェクトの転送",
- "unassign": "割り当てを解除する",
- "all": "すべてのデータベース",
- "change-database": "データベースの変更",
"expression": "Expression",
+ "filter-database": "データベースをフィルター",
"mixed-label-values": "混合値",
"mixed-label-values-warning": "選択されたリソースの一部は、同じキーに対して異なる値を持っています。これらのキーと値のペアを変更する場合にのみ編集してください。",
"select": "データベースの選択",
+ "selected-n-databases": "{{n}} 個のデータベースが選択されました",
+ "successfully-transferred-databases": "データベースの転送に成功しました",
"sync-schema": {
"copy-schema": "Copy schema",
"description": "Bytebase supports synchronizing a schema to one or multiple target databases. (MySQL, PostgreSQL, Oracle, MSSQL, TiDB only)",
@@ -404,8 +347,13 @@
"title": "データベーステーブルの同期",
"with-diff": "With diff"
},
+ "sync-schema-button": "スキーマを同期",
+ "sync-status-failed": "同期に失敗しました",
+ "transfer-project": "プロジェクトの転送",
+ "unassign": "割り当てを解除する",
"unassign-alert-description": "選択したデータベースがプロジェクトから削除されます",
- "unassign-alert-title": "データベースの割り当てを解除する"
+ "unassign-alert-title": "データベースの割り当てを解除する",
+ "sync-complete-for-instance": "インスタンス '{{0}}' の同期が完了しました"
},
"database-group": {
"condition": {
@@ -418,29 +366,23 @@
"select": "Select database group",
"unmatched-database": "Unmatched database"
},
- "database.engine": "エンジン",
- "database.filter-database": "フィルターデータベース",
- "database.sync-complete-for-instance": "インスタンス '{{0}}' の同期が完了しました",
"db": {
"character-set": "文字セット",
"collation": "照合順序",
"encoding": "エンコーディング",
"failed-to-sync-schema": "スキーマの同期に失敗しました",
"start-to-sync-schema": "スキーマの同期を開始します",
- "successfully-synced-schema": "スキーマの同期に成功しました"
+ "successfully-synced-schema": "スキーマの同期に成功しました",
+ "n-databases-had-sync-errors": "{{0}} 個のデータベースで同期エラーが発生しました",
+ "syncing-databases-for-instance": "{{0}} のデータベースを同期中..."
},
- "db.failed-to-sync-schema": "スキーマの同期に失敗しました",
- "db.n-databases-had-sync-errors": "{{0}} 個のデータベースで同期エラーが発生しました",
- "db.start-to-sync-schema": "スキーマの同期を開始します",
- "db.syncing-databases-for-instance": "{{0}} のデータベースを同期中...",
- "dynamic.resource.instance": "インスタンス ID",
"environment": {
"create": "環境を作成する",
"delete": "この環境を削除します",
"delete-description": "環境を削除すると、関連するインスタンスとデータベースからも削除されます。この操作は元に戻せません",
"reorder": "環境の並べ替え",
- "successfully-updated-environment": "環境「{{name}}」は正常に更新されました",
- "select": "環境を選ぶ"
+ "select": "環境を選ぶ",
+ "successfully-updated-environment": "環境「{{name}}」は正常に更新されました"
},
"error-page": {
"go-back-home": "ホームページに戻る",
@@ -529,132 +471,179 @@
"sync-all-tip": "データベースの同期は非同期で、数秒から数分かかる場合があります。",
"sync-new": "新しいデータベースのみを同期する"
},
- "syncing": "同期中 ..."
+ "syncing": "同期中 ...",
+ "account-locator": "アカウントロケーター",
+ "authentication-database": "認証データベース",
+ "connection-info": "接続情報",
+ "connection-options": "接続オプション",
+ "create-gcp-credentials": "認証情報の作成方法については、を参照してください",
+ "database-region": "データベース領域",
+ "endpoint": "エンドポイント",
+ "external-id": "外部 ID",
+ "external-id-description": "ロールを引き受ける際の追加セキュリティ用の外部 ID(オプション)",
+ "external-id-placeholder": "オプションの外部 ID",
+ "external-link": "外部リンク",
+ "external-secret-azure": {
+ "secret-name": "シークレット名",
+ "vault-url": "Key Vault URL",
+ "secret-name-tips": "Azure Key Vault に保存されているシークレットの名前。",
+ "vault-url-tips": "Key Vault URL は「https://myvault.vault.azure.net/」のような形式である必要があります。"
+ },
+ "external-secret-gcp": {
+ "secret-name": "キーのフルパス",
+ "secret-name-tips": "キーへのフルパスは、「projects/project-id/secrets/secret-id」のようなものである必要があります。"
+ },
+ "external-secret-vault": {
+ "vault-auth-type": {
+ "approle": {
+ "role-id": "認証ロールID",
+ "secret-env-name": "環境変数名",
+ "secret-id": "認証シークレットID",
+ "secret-plain-text": "プレーンテキスト",
+ "self": "AppRole"
+ },
+ "token": {
+ "self": "トークン"
+ },
+ "self": "認証タイプ"
+ },
+ "vault-secret-key": "秘密鍵",
+ "vault-secret-path": "秘密の道",
+ "vault-secret-engine-name": "シークレットエンジン名",
+ "vault-secret-engine-tips": "KV v2 ストレージのみをサポートします",
+ "vault-tls-config": "Vault TLS 構成 (オプション)",
+ "vault-url": "ボールトの URL"
+ },
+ "external-secret": {
+ "key-name": "秘密鍵",
+ "secret-name": "秘密の名前"
+ },
+ "failed-to-connect-instance": "インスタンスへの接続に失敗しました。",
+ "failed-to-connect-instance-localhost": "Docker デプロイメントを使用している場合は、ホスト アドレスとして「host.docker.internal」を使用してみてください。",
+ "find-gcp-project-id": "GCP プロジェクト ID とインスタンス ID を表示するには、次を参照してください。",
+ "find-gcp-project-id-and-instance-id": "GCP プロジェクト ID の確認方法については、次を参照してください",
+ "grants": "権限",
+ "host-or-socket": "ホストまたはソケット",
+ "iam-extension": {
+ "client-id": "Client ID",
+ "client-secret": "Client Secret",
+ "credential-source": "Credential Source",
+ "specific-credential": "特定の資格情報",
+ "tenant-id": "Tenant ID",
+ "saas-default-credential-restriction": "セキュリティ上の理由により、Bytebase Cloud ではデフォルトの認証情報は使用できません。具体的な認証情報を入力してください。"
+ },
+ "info-panel": {
+ "no-info": "このエンジンの追加情報はありません。"
+ },
+ "instance-id": "インスタンスID",
+ "instance-name": "@:common.instance@:instance.name",
+ "no-extra-params-configured": "追加の接続パラメーターは構成されていません",
+ "no-params-yet-add-above": "まだ構成されていません。\n上記のフォームを使用してパラメーターを追加します。",
+ "no-password": "パスワードがありません",
+ "parameter-name-placeholder": "パラメーター名",
+ "parameter-value-placeholder": "パラメーター値",
+ "password-type": {
+ "aws-iam": "AWS RDS IAM",
+ "azure-iam": "Azure IAM",
+ "google-iam": "Google Cloud SQL IAM",
+ "password": "パスワード",
+ "external-secret-aws": "AWS シークレットマネージャー",
+ "external-secret-azure": "Azure Key Vault",
+ "external-secret-gcp": "GCP シークレット マネージャー",
+ "external-secret-vault": "ボールト (KV v2)"
+ },
+ "password-write-only": "YOUR_DB_PWD - 書き込み専用",
+ "port": "ポート",
+ "project-id": "プロジェクトID",
+ "role-arn": "ロール ARN",
+ "role-arn-description": "クロスアカウントアクセス用の IAM ロール。同一アカウントアクセスの場合は空のままにしてください。",
+ "role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
+ "scan-interval": {
+ "default-never": "デフォルト (なし)",
+ "description": "Bytebase は定期的にインスタンスのスキーマを同期し、異常検出を実行します。",
+ "self": "スキャン間隔",
+ "min-value": "最短 {{value}} 分"
+ },
+ "section": {
+ "basic-info": "基本情報",
+ "connection": "接続"
+ },
+ "sentence": {
+ "console": {
+ "snowflake": "この インスタンス を管理する外部コンソール URL (AWS RDS コンソール、データベース コンソールなど)"
+ },
+ "create-admin-user": "これは、データベースに接続し、DDL および DML (非 SELECT) 操作を実行するために Bytebase によって使用されるユーザーです。",
+ "create-admin-user-non-sql": "これは、データベースに接続し、書き込みおよび管理操作を実行するために Bytebase によって使用されるユーザーです。",
+ "create-readonly-user": "これは、データベースに接続し、SELECT などの読み取り専用操作を実行するために Bytebase によって使用されるユーザーです。",
+ "create-readonly-user-non-sql": "これは、データベースに接続して読み取り専用操作を実行するために Bytebase によって使用されるユーザーです。",
+ "create-user-example": {
+ "postgresql": {
+ "warn": "接続しているインスタンスがクラウド サービス プロバイダーによって管理されている場合、SUPERUSER は使用できないため、プロバイダーの管理者コンソールを通じてユーザーを作成する必要があります。作成したユーザーには、ベンダー固有の準 SUPERUSER 権限が与えられます。 「GRANT role_name TO bytebase;」ステートメントを使用して、すべてのロールに Bytebase 権限を付与する必要があります。そうしないと、Bytebase に既存のデータベースまたはテーブルを操作する権限がない可能性があり、操作が失敗します。",
+ "template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。接続しているインスタンスが自己ホスト型の場合は、SUPERUSER を付与できます。"
+ },
+ "clickhouse": {
+ "sql-driven-workflow": "SQLワークフロー",
+ "template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。次のコマンドを実行してユーザーを作成する前に、{{link}} を有効にする必要があります。"
+ },
+ "mysql": {
+ "template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。"
+ },
+ "redis": {
+ "template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。"
+ },
+ "snowflake": {
+ "template": "ユーザー {{user}}、パスワード {{password}}、ウェアハウス {{warehouse}} を作成し、必要な権限を付与する例は次のとおりです。"
+ }
+ },
+ "firewall-info": "データベースインスタンスにインバウンドファイアウォールルールを使用する場合は、ByteBase Cloud Connection命令を参照してください。",
+ "host": {
+ "none-snowflake": "たとえば、host.docker.internal {{'|'}} host ip {{'|'}} local socket"
+ },
+ "proxy": {
+ "snowflake": "プロキシ サーバーの場合は、{{'@'}}PROXY_HOST を追加し、ポートに PROXY_PORT を指定します。"
+ },
+ "aws-rds": {
+ "mysql": {
+ "template": "以下は、ユーザー {{user}}@% を作成し、そのユーザーに必要な権限を付与する例です。"
+ },
+ "postgresql": {
+ "template": "以下は、ユーザー '{{user}}' を作成し、そのユーザーに必要な権限を付与する例です。"
+ }
+ },
+ "google-cloud-sql": {
+ "instance-name": "インスタンス接続名",
+ "instance-name-tips": "インスタンス接続名は {{instance}} である必要があります。",
+ "mysql": {
+ "template": "{{user}} という名前のサービス アカウントを作成し、IAM ユーザー {{user}}@'%' として Google Cloud SQL に追加します。このユーザーに必要な権限を付与します。"
+ },
+ "postgresql": {
+ "template": "{{user}} という名前のサービス アカウントを作成し、IAM ユーザー {{user}}@project-id.iam として Google Cloud SQL に追加します。ユーザーに必要な権限を付与します。"
+ }
+ }
+ },
+ "show-how-to-create": "作成方法",
+ "snowflake-web-console": "スノーフレークウェブコンソール",
+ "successfully-connected-instance": "インスタンスに正常に接続されました。",
+ "sync-databases": {
+ "add-database": "+ データベースを追加し、Enterキーを押して送信します",
+ "description": "選択したデータベースのみを同期します。",
+ "search-database": "データベースを検索",
+ "self": "データベースを同期する",
+ "sync-all": "すべてのデータベースを同期する"
+ },
+ "test-connection": "テスト接続",
+ "type-or-paste-credentials-write-only": "資格情報を入力または貼り付けます - 書き込みのみ",
+ "unable-to-connect": "Bytebase はインスタンスに接続できません。接続情報を再度確認することをお勧めします。ただし、今のところこの警告は無視してかまいません。作成後もインスタンスの詳細ページで接続情報を修正できます。\n\nエラーの詳細:{{0}}",
+ "users": "ユーザー",
+ "your-snowflake-account-locator": "Snowflake アカウント ロケーター",
+ "testing-connection": "接続テスト中...",
+ "new-instance": "新しいインスタンス",
+ "no-environment": "このインスタンスは環境にバインドされていません",
+ "restore-instance-instance-name-to-normal-state": "インスタンス '{{0}}' を通常の状態に復元しますか?",
+ "successfully-created-instance-createdinstance-name": "インスタンス '{{0}}' が正常に作成されました。",
+ "successfully-updated-instance-instance-name": "インスタンス '{{0}}' が正常に更新されました。"
},
- "instance.account-locator": "アカウントロケーター",
- "instance.archive-instance-instance-name": "インスタンス '{{0}}' をアーカイブしますか?",
- "instance.archived-instances-will-not-be-displayed": "アーカイブされたインスタンスは表示されなくなります。",
- "instance.authentication-database": "認証データベース",
- "instance.connection-info": "接続情報",
- "instance.connection-options": "接続オプション",
- "instance.create-gcp-credentials": "認証情報の作成方法については、を参照してください",
- "instance.database-region": "データベース領域",
- "instance.endpoint": "エンドポイント",
- "instance.external-id": "外部 ID",
- "instance.external-id-description": "ロールを引き受ける際の追加セキュリティ用の外部 ID(オプション)",
- "instance.external-id-placeholder": "オプションの外部 ID",
- "instance.external-link": "外部リンク",
- "instance.external-secret-azure.secret-name": "シークレット名",
- "instance.external-secret-azure.secret-name-tips": "Azure Key Vault に保存されているシークレットの名前。",
- "instance.external-secret-azure.vault-url": "Key Vault URL",
- "instance.external-secret-azure.vault-url-tips": "Key Vault URL は「https://myvault.vault.azure.net/」のような形式である必要があります。",
- "instance.external-secret-gcp.secret-name": "キーのフルパス",
- "instance.external-secret-gcp.secret-name-tips": "キーへのフルパスは、「projects/project-id/secrets/secret-id」のようなものである必要があります。",
- "instance.external-secret-vault.vault-auth-type.approle.role-id": "認証ロールID",
- "instance.external-secret-vault.vault-auth-type.approle.secret-env-name": "環境変数名",
- "instance.external-secret-vault.vault-auth-type.approle.secret-id": "認証シークレットID",
- "instance.external-secret-vault.vault-auth-type.approle.secret-plain-text": "プレーンテキスト",
- "instance.external-secret-vault.vault-auth-type.approle.self": "AppRole",
- "instance.external-secret-vault.vault-auth-type.self": "認証タイプ",
- "instance.external-secret-vault.vault-auth-type.token.self": "トークン",
- "instance.external-secret-vault.vault-secret-engine-name": "シークレットエンジン名",
- "instance.external-secret-vault.vault-secret-engine-tips": "KV v2 ストレージのみをサポートします",
- "instance.external-secret-vault.vault-secret-key": "秘密鍵",
- "instance.external-secret-vault.vault-secret-path": "秘密の道",
- "instance.external-secret-vault.vault-tls-config": "Vault TLS 構成 (オプション)",
- "instance.external-secret-vault.vault-url": "ボールトの URL",
- "instance.external-secret.key-name": "秘密鍵",
- "instance.external-secret.secret-name": "秘密の名前",
- "instance.failed-to-connect-instance": "インスタンスへの接続に失敗しました。",
- "instance.failed-to-connect-instance-localhost": "Docker デプロイメントを使用している場合は、ホスト アドレスとして「host.docker.internal」を使用してみてください。",
- "instance.find-gcp-project-id": "GCP プロジェクト ID とインスタンス ID を表示するには、次を参照してください。",
- "instance.find-gcp-project-id-and-instance-id": "GCP プロジェクト ID の確認方法については、次を参照してください",
- "instance.force-archive-description": "アーカイブを強制します。すべてのデータベースの割り当てが解除されます。",
- "instance.grants": "権限",
- "instance.host-or-socket": "ホストまたはソケット",
- "instance.iam-extension.client-id": "Client ID",
- "instance.iam-extension.client-secret": "Client Secret",
- "instance.iam-extension.credential-source": "Credential Source",
- "instance.iam-extension.saas-default-credential-restriction": "セキュリティ上の理由により、Bytebase Cloud ではデフォルトの認証情報は使用できません。具体的な認証情報を入力してください。",
- "instance.iam-extension.specific-credential": "特定の資格情報",
- "instance.iam-extension.tenant-id": "Tenant ID",
- "instance.info-panel.no-info": "このエンジンの追加情報はありません。",
- "instance.instance-id": "インスタンスID",
- "instance.instance-name": "@:common.instance@:instance.name",
- "instance.new-instance": "新しいインスタンス",
- "instance.no-environment": "このインスタンスは環境にバインドされていません",
- "instance.no-extra-params-configured": "追加の接続パラメーターは構成されていません",
- "instance.no-params-yet-add-above": "まだ構成されていません。\n上記のフォームを使用してパラメーターを追加します。",
- "instance.no-password": "パスワードがありません",
- "instance.parameter-name-placeholder": "パラメーター名",
- "instance.parameter-value-placeholder": "パラメーター値",
- "instance.password-type.aws-iam": "AWS RDS IAM",
- "instance.password-type.azure-iam": "Azure IAM",
- "instance.password-type.external-secret-aws": "AWS シークレットマネージャー",
- "instance.password-type.external-secret-azure": "Azure Key Vault",
- "instance.password-type.external-secret-gcp": "GCP シークレット マネージャー",
- "instance.password-type.external-secret-vault": "ボールト (KV v2)",
- "instance.password-type.google-iam": "Google Cloud SQL IAM",
- "instance.password-type.password": "パスワード",
- "instance.password-write-only": "YOUR_DB_PWD - 書き込み専用",
- "instance.port": "ポート",
- "instance.project-id": "プロジェクトID",
- "instance.restore-instance-instance-name-to-normal-state": "インスタンス '{{0}}' を通常の状態に復元しますか?",
- "instance.role-arn": "ロール ARN",
- "instance.role-arn-description": "クロスアカウントアクセス用の IAM ロール。同一アカウントアクセスの場合は空のままにしてください。",
- "instance.role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
- "instance.scan-interval.default-never": "デフォルト (なし)",
- "instance.scan-interval.description": "Bytebase は定期的にインスタンスのスキーマを同期し、異常検出を実行します。",
- "instance.scan-interval.min-value": "最短 {{value}} 分",
- "instance.scan-interval.self": "スキャン間隔",
- "instance.section.basic-info": "基本情報",
- "instance.section.connection": "接続",
- "instance.sentence.aws-rds.mysql.template": "以下は、ユーザー {{user}}@% を作成し、そのユーザーに必要な権限を付与する例です。",
- "instance.sentence.aws-rds.postgresql.template": "以下は、ユーザー '{{user}}' を作成し、そのユーザーに必要な権限を付与する例です。",
- "instance.sentence.console.snowflake": "この インスタンス を管理する外部コンソール URL (AWS RDS コンソール、データベース コンソールなど)",
- "instance.sentence.create-admin-user": "これは、データベースに接続し、DDL および DML (非 SELECT) 操作を実行するために Bytebase によって使用されるユーザーです。",
- "instance.sentence.create-admin-user-non-sql": "これは、データベースに接続し、書き込みおよび管理操作を実行するために Bytebase によって使用されるユーザーです。",
- "instance.sentence.create-readonly-user": "これは、データベースに接続し、SELECT などの読み取り専用操作を実行するために Bytebase によって使用されるユーザーです。",
- "instance.sentence.create-readonly-user-non-sql": "これは、データベースに接続して読み取り専用操作を実行するために Bytebase によって使用されるユーザーです。",
- "instance.sentence.create-user-example.clickhouse.sql-driven-workflow": "SQLワークフロー",
- "instance.sentence.create-user-example.clickhouse.template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。次のコマンドを実行してユーザーを作成する前に、{{link}} を有効にする必要があります。",
- "instance.sentence.create-user-example.mysql.template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。",
- "instance.sentence.create-user-example.postgresql.template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。接続しているインスタンスが自己ホスト型の場合は、SUPERUSER を付与できます。",
- "instance.sentence.create-user-example.postgresql.warn": "接続しているインスタンスがクラウド サービス プロバイダーによって管理されている場合、SUPERUSER は使用できないため、プロバイダーの管理者コンソールを通じてユーザーを作成する必要があります。作成したユーザーには、ベンダー固有の準 SUPERUSER 権限が与えられます。 「GRANT role_name TO bytebase;」ステートメントを使用して、すべてのロールに Bytebase 権限を付与する必要があります。そうしないと、Bytebase に既存のデータベースまたはテーブルを操作する権限がない可能性があり、操作が失敗します。",
- "instance.sentence.create-user-example.redis.template": "ユーザー {{user}}、パスワード {{password}} を作成し、必要な権限を付与する例は次のとおりです。",
- "instance.sentence.create-user-example.snowflake.template": "ユーザー {{user}}、パスワード {{password}}、ウェアハウス {{warehouse}} を作成し、必要な権限を付与する例は次のとおりです。",
- "instance.sentence.firewall-info": "データベースインスタンスにインバウンドファイアウォールルールを使用する場合は、ByteBase Cloud Connection命令を参照してください。",
- "instance.sentence.google-cloud-sql.instance-name": "インスタンス接続名",
- "instance.sentence.google-cloud-sql.instance-name-tips": "インスタンス接続名は {{instance}} である必要があります。",
- "instance.sentence.google-cloud-sql.mysql.template": "{{user}} という名前のサービス アカウントを作成し、IAM ユーザー {{user}}@'%' として Google Cloud SQL に追加します。このユーザーに必要な権限を付与します。",
- "instance.sentence.google-cloud-sql.postgresql.template": "{{user}} という名前のサービス アカウントを作成し、IAM ユーザー {{user}}@project-id.iam として Google Cloud SQL に追加します。ユーザーに必要な権限を付与します。",
- "instance.sentence.host.none-snowflake": "たとえば、host.docker.internal {'|'} host ip {'|'} local socket",
- "instance.sentence.proxy.snowflake": "プロキシ サーバーの場合は、{'@'}PROXY_HOST を追加し、ポートに PROXY_PORT を指定します。",
- "instance.show-how-to-create": "作成方法",
- "instance.snowflake-web-console": "スノーフレークウェブコンソール",
- "instance.successfully-archived-instance": "インスタンス '{{0}}' を正常にアーカイブしました。",
- "instance.successfully-connected-instance": "インスタンスに正常に接続されました。",
- "instance.successfully-created-instance-createdinstance-name": "インスタンス '{{0}}' が正常に作成されました。",
- "instance.successfully-restored-instance": "インスタンス '{{0}}' を正常に復元しました。",
- "instance.successfully-updated-instance-instance-name": "インスタンス '{{0}}' が正常に更新されました。",
- "instance.sync-databases.add-database": "+ データベースを追加し、Enterキーを押して送信します",
- "instance.sync-databases.description": "選択したデータベースのみを同期します。",
- "instance.sync-databases.search-database": "データベースを検索",
- "instance.sync-databases.self": "データベースを同期する",
- "instance.sync-databases.sync-all": "すべてのデータベースを同期する",
- "instance.sync.self": "インスタンスの同期",
- "instance.sync.sync-all": "すべてのデータベースを同期する",
- "instance.sync.sync-all-tip": "データベースの同期は非同期で、数秒から数分かかる場合があります。",
- "instance.sync.sync-new": "新しいデータベースのみを同期する",
- "instance.syncing": "同期中 ...",
- "instance.test-connection": "テスト接続",
- "instance.testing-connection": "接続をテスト中",
- "instance.type-or-paste-credentials-write-only": "資格情報を入力または貼り付けます - 書き込みのみ",
- "instance.unable-to-connect": "Bytebase はインスタンスに接続できません。接続情報を再度確認することをお勧めします。ただし、今のところこの警告は無視してかまいません。作成後もインスタンスの詳細ページで接続情報を修正できます。\n\nエラーの詳細:{{0}}",
- "instance.users": "ユーザー",
- "instance.your-snowflake-account-locator": "Snowflake アカウント ロケーター",
"issue": {
- "labels": "イシューラベル",
"advanced-search": {
"filter": "フィルター"
},
@@ -663,6 +652,7 @@
"limits": "制限",
"options": "設定項目"
},
+ "labels": "イシューラベル",
"risk-level": {
"high": "高い",
"moderate": "適度",
@@ -686,15 +676,12 @@
"error": {
"key-duplicated": "キーが繰り返されました",
"key-necessary": "キーを指定する必要があります",
- "max-value-length-exceeded": "値は {{length}} 文字を超えることはできません"
- }
+ "max-value-length-exceeded": "値は {{length}} 文字を超えることはできません",
+ "value-necessary": "値を指定する必要があります"
+ },
+ "add-label": "タグ付けする",
+ "empty-label-value": "ヌル"
},
- "label.add-label": "タグ付けする",
- "label.empty-label-value": "ヌル",
- "label.error.key-duplicated": "キーが繰り返されました",
- "label.error.key-necessary": "キーを指定する必要があります",
- "label.error.max-value-length-exceeded": "値は {{length}} 文字を超えることはできません",
- "label.error.value-necessary": "値を指定する必要があります",
"landing": {
"changelog-for-version": "{{version}} の変更履歴",
"last-visit": "最終訪問",
@@ -752,9 +739,6 @@
"success-prompt": "{{name}} が正常に作成されました。"
},
"filter-projects": "プロジェクトをフィルタリング",
- "table": {
- "name": "名前"
- },
"masking-exemption": {
"all-levels": "全レベル",
"expires-in-days_one": "{{days}} 日後に期限切れ",
@@ -851,6 +835,9 @@
"success-updated": "プロジェクト設定が正常に更新されました",
"update-failed": "プロジェクト設定の更新に失敗しました。"
},
+ "table": {
+ "name": "名前"
+ },
"webhook": {
"activity-support-direct-message": "関連するユーザーへのプライベートメッセージ通知の送信のサポート",
"add-a-webhook": "Webhook を追加する",
@@ -886,7 +873,6 @@
"new-project": "作成するプロジェクト",
"request-export-data": "データ出力を申請する"
},
- "quick-action.add-instance": "@:common.instance@:common.add",
"release": {
"releases": "リリース"
},
@@ -896,9 +882,9 @@
}
},
"resource": {
- "delete-warning-with-resources": "「{{name}}」は次のリソースによって使用されます:",
+ "delete-warning": "「{{name}}」は削除されます。この操作は元に戻せません。",
"delete-warning-retry": "これらのリソースから削除して、もう一度お試しください。",
- "delete-warning": "「{{name}}」は削除されます。この操作は元に戻せません。"
+ "delete-warning-with-resources": "「{{name}}」は次のリソースによって使用されます:"
},
"resource-id": {
"cannot-be-changed-later": "作成後に変更することはできません。",
@@ -911,13 +897,6 @@
"pattern": "{{resource}} ID には、小文字、数字、またはハイフンを持つことができます。\n小文字から始めて、文字または番号で終わる必要があります。"
}
},
- "resource-id.cannot-be-changed-later": "作成後に変更することはできません。",
- "resource-id.description": "{{resource}} ID は一意の識別子です。作成後に変更することはできません。",
- "resource-id.self": "{{resource}} ID",
- "resource-id.validation.duplicated": "{{resource}} ID はすでに存在します。別のIDを使用してください。",
- "resource-id.validation.empty": "{{resource}} ID は空にできません",
- "resource-id.validation.overflow": "{{resource}} ID は 64 文字未満である必要があります。",
- "resource-id.validation.pattern": "{{resource}} ID には、小文字、数字、またはハイフンを持つことができます。\n小文字から始めて、文字または番号で終わる必要があります。",
"role": {
"custom-roles": {
"self": "カスタムロール"
@@ -940,13 +919,14 @@
"self": "ワークスペースのロール"
}
},
+ "schema-editor": {
+ "raw-sql": "Raw SQL"
+ },
"schema-template": {
"classification": {
"search": "カテゴリを検索する"
}
},
- "setting.label.key-placeholder": "タグキー...",
- "setting.label.value-placeholder": "タグ値…",
"settings": {
"general": {
"workspace": {
@@ -1165,8 +1145,13 @@
"reactivate-confirm-title": "[OK] を有効にします"
},
"add-member": "メンバーを追加",
+ "add-service-account": "サービスアカウントを追加",
"add-user": "ユーザーを追加",
+ "add-workload-identity": "ワークロードIDを追加",
+ "all-users": "すべてのユーザー",
+ "assign-role": "Assign role",
"cannot-revoke-self": "You cannot revoke yourself",
+ "copy-service-key": "サービスキーをコピーする",
"entra-sync": {
"description": "Entra ID (旧 Azure AD) または Okta のユーザーとグループを Bytebase インスタンスに同期します。",
"endpoint": "Endpoint",
@@ -1196,7 +1181,11 @@
"update-group": "更新グループ",
"workspace-domain-required": "まずワークスペースドメインを設定してください。"
},
+ "inactive-service-accounts": "非アクティブサービスアカウント",
"inactive-users": "非アクティブユーザー",
+ "inactive-workload-identities": "非アクティブワークロードID",
+ "reset-service-key": "サービスキーのリセット",
+ "reset-service-key-alert": "古いサービス キーはすぐにリセットされ、この操作は元に戻すことはできません。サービス キーをリセットしてもよろしいですか?",
"revoke-access": "アクセスを取り消す",
"revoke-access-alert": "アクセスを取り消してもよろしいですか?",
"revoke-allusers-alert": "「すべてのユーザー」を取り消すと、ワークスペース内の他のすべてのユーザーの関連ロールが取り消されます。続行しますか?",
@@ -1208,30 +1197,21 @@
"select-role_one": "ロールを選択",
"select-role_other": "ロールを選択",
"service-account": "サービスアカウント",
+ "service-accounts": "サービスアカウント",
+ "service-key-copied": "サービスキーはコピーされています。公開しないでください",
"show-inactive": "非アクティブなアカウントを表示",
"table": {
"account": "アカウント",
"groups": "グループ",
"roles": "ロール"
},
+ "update-service-account": "サービスアカウントを更新",
"update-user": "ユーザーを更新",
+ "update-workload-identity": "ワークロードIDを更新",
"view-by-members": "メンバー別に表示",
"view-by-roles": "ロールごとに表示",
- "workload-identity": "Workload Identity",
- "add-service-account": "サービスアカウントを追加",
- "add-workload-identity": "ワークロードIDを追加",
- "all-users": "すべてのユーザー",
- "assign-role": "Assign role",
- "copy-service-key": "サービスキーをコピーする",
- "inactive-service-accounts": "非アクティブサービスアカウント",
- "inactive-workload-identities": "非アクティブワークロードID",
- "reset-service-key": "サービスキーのリセット",
- "reset-service-key-alert": "古いサービス キーはすぐにリセットされ、この操作は元に戻すことはできません。サービス キーをリセットしてもよろしいですか?",
- "service-accounts": "サービスアカウント",
- "service-key-copied": "サービスキーはコピーされています。公開しないでください",
- "update-service-account": "サービスアカウントを更新",
- "update-workload-identity": "ワークロードIDを更新",
"workload-identities": "ワークロードID",
+ "workload-identity": "Workload Identity",
"workload-identity-advanced": "Advanced Settings",
"workload-identity-all-branches-tags": "All branches and tags",
"workload-identity-allowed-branches-tags": "Allowed Branches/Tags",
@@ -1255,6 +1235,7 @@
"workload-identity-tag-hint": "Leave empty to allow all tags"
},
"profile": {
+ "email": "メールアドレス",
"password": "パスワード",
"password-confirm": "パスワードの確認",
"password-confirm-placeholder": "新しいパスワードを確認します",
@@ -1262,7 +1243,6 @@
"password-mismatch": "新しいパスワードが一致しません",
"phone": "電話番号",
"phone-tips": "国コードを必ず含めてください +81xxxxxx",
- "email": "メールアドレス",
"role": "ロール",
"subscription": "(有料プランにアップグレードするとキャラクター管理が可能になります)"
},
@@ -1329,10 +1309,12 @@
},
"re-order": "並び替え"
},
+ "never-expires": "有効期限なし",
"semantic-types": {
"add-from-template": "テンプレートから追加",
"label": "同じセマンティック タイプの列は、同じマスキング アルゴリズムを使用します。",
"select": "セマンティックタイプの選択",
+ "self": "セマンティックタイプ",
"table": {
"delete": "このセマンティック タイプを削除しますか?",
"description": "説明",
@@ -1344,29 +1326,27 @@
"description": "テンプレートから組み込みのセマンティック タイプを適用できます。組み込みテンプレートは変更できません。",
"duplicate-warning": "セマンティック タイプ \"{{title}}\" は既に存在します"
},
- "use-predefined-type": "事前定義されたタイプを使用する",
- "self": "セマンティックタイプ"
- },
- "never-expires": "有効期限なし"
+ "use-predefined-type": "事前定義されたタイプを使用する"
+ }
},
"sidebar": {
"audit-log": "監査ログ",
"custom-roles": "カスタムロール",
+ "data-access": "データアクセス",
"data-classification": "データ分類",
"general": "全般",
"global-masking": "グローバルマスキング",
+ "iam-and-admin": "IAM と管理",
"im-integration": "IM",
+ "integration": "連携",
"mcp": "MCP",
"members": "メンバー",
"members-and-groups": "メンバーとグループ",
+ "profile": "プロフィール",
+ "security-and-policy": "セキュリティポリシー",
"sso": "SSO",
"subscription": "サブスクリプション",
- "users-and-groups": "ユーザーとグループ",
- "data-access": "データアクセス",
- "iam-and-admin": "IAM と管理",
- "integration": "連携",
- "profile": "プロフィール",
- "security-and-policy": "セキュリティポリシー"
+ "users-and-groups": "ユーザーとグループ"
},
"sso": {
"create": "SSOの作成",
@@ -1455,7 +1435,6 @@
}
},
"sql-editor": {
- "self": "SQLエディタ",
"access-grants": "Access Grants",
"access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",
"activate-access": "Activate",
@@ -1464,11 +1443,10 @@
"grant-type-unmask": "Unmask",
"revoke-access": "Revoke",
"revoke-confirm": "Are you sure you want to revoke this access grant?",
+ "self": "SQLエディタ",
"view-issue": "View Issue"
},
"sql-review": {
- "configure-policy": "Configure policy",
- "title": "SQL Review",
"add-or-remove-rules": "Add or remove rules",
"add-rules": "Add rules",
"attach-resource": {
@@ -1477,6 +1455,7 @@
"no-linked-resources": "No attached resources",
"self": "Attach to resources"
},
+ "configure-policy": "Configure policy",
"create": {
"basic-info": {
"display-name": "Display name",
@@ -1501,12 +1480,14 @@
"policy-removed": "Successfully removed the review policy.",
"policy-update-failed": "Failed to update the review policy.",
"policy-updated": "Successfully updated the review policy.",
- "review-policy": "Review policy"
+ "review-policy": "Review policy",
+ "title": "SQL Review"
},
"subscription": {
"contact-us": "お問い合わせ",
"current": "現在のプラン",
"description": "ここで購入した Bytebase ライセンスをアップロードして、プロフェッショナル/エンタープライズ機能のロックを解除できます。",
+ "disabled-feature": "無効な機能",
"enterprise-free-trial": "Enterprise の {{days}} 日間の無料トライアル",
"expired": "期限切れ",
"expires-at": "有効期限",
@@ -1516,7 +1497,8 @@
"license": "ライセンス",
"missing-license-attention": "この機能のロックを解除するには、インスタンスにライセンスを割り当ててください。",
"used-and-total-license": "割り当てられた/合計インスタンスライセンス",
- "used-and-total-user": "アクティブ/合計ユーザー制限"
+ "used-and-total-user": "アクティブ/合計ユーザー制限",
+ "n-license-remain": "残り {{n}}"
},
"max-instance-count": "最大インスタンス数",
"plan": {
@@ -1597,20 +1579,15 @@
"title": "ユーザー制限",
"upgrade": "アップグレード でユーザークォータをさらに取得します。"
}
- },
- "disabled-feature": "無効な機能"
+ }
},
- "subscription.instance-assignment.assign-license": "ライセンスの割り当て",
- "subscription.instance-assignment.n-license-remain": "残り {{n}}",
- "subscription.usage.instance-count.runoutof": "すべての {{total}} インスタンス クレジットが使用されました。",
- "subscription.usage.instance-count.title": "インスタンスの制限",
"two-factor": {
- "enabled": "二要素認証がオンになっています",
"description": "2 要素認証は、システム メンバーに追加のセキュリティ層を提供します。ログインするとき、ユーザーは認証アプリケーションによって生成されたセキュリティ コードを入力する必要があります。",
"disable": {
"description": "アカウントの 2 要素認証を無効にしようとしています。ログイン時に認証アプリによって生成されたセキュリティ コードを入力する必要がなくなりました。",
"self": "二要素認証を無効にする"
},
+ "enabled": "二要素認証がオンになっています",
"messages": {
"2fa-disabled": "二要素認証が正常に無効になりました",
"2fa-enabled": "二要素認証が正常にオンになりました",
@@ -1652,67 +1629,106 @@
"self": "二要素認証キー"
}
},
+ "data-source": {
+ "additional-node-addresses": "追加のノードアドレス",
+ "connection-string-schema": "接続文字列モード",
+ "connection-type": "接続タイプ",
+ "delete-read-only-data-source": "読み取り専用データソースを削除する",
+ "direct-connection": "Direct Connection",
+ "extra-params": {
+ "description": "データベース接続文字列の追加パラメーター",
+ "self": "追加のパラメーター"
+ },
+ "private-key-passphrase": "秘密鍵のパスフレーズ",
+ "private-key-passphrase-tip": "暗号化された秘密鍵のオプションパスフレーズ",
+ "read-replica-host": "リードレプリカホスト",
+ "read-replica-port": "リードレプリカポート",
+ "replica-set": "レプリカセット",
+ "snowflake-keypair-tip": "キーペア認証",
+ "ssh-connection": "SSH接続",
+ "ssh-type": {
+ "none": "なし",
+ "tunnel-and-private-key": "トンネル + 秘密鍵"
+ },
+ "ssh": {
+ "host": "サーバ",
+ "password": "パスワード",
+ "port": "ポート",
+ "private-key": "秘密鍵",
+ "ssh-key": "SSHキー",
+ "user": "ユーザー名"
+ },
+ "ssl-connection": "SSL接続",
+ "ssl": {
+ "ca-cert": "CA証明書",
+ "client-cert": "クライアント証明書",
+ "client-key": "クライアントキー",
+ "verify-certificate": "TLS証明書を検証",
+ "verify-certificate-tooltip": "安全な接続のためにTLS証明書の検証を有効にします。開発環境や証明書が適切に検証できない場合(自己署名証明書、VPN環境など)にのみ無効にしてください。警告:検証を無効にすることは安全ではありません"
+ },
+ "no-read-only-data-source": "読み取り専用データソースがありません",
+ "private-key-passphrase-placeholder": "秘密鍵が暗号化されていない場合は空のままにしてください"
+ },
+ "setting": {
+ "label": {
+ "key-placeholder": "タグキー...",
+ "value-placeholder": "タグ値…"
+ }
+ },
"agent": {
- "assistant-title": "Bytebase アシスタント",
- "resize": "Resize",
- "minimize": "最小化",
- "close": "閉じる",
- "input-placeholder": "何でも質問してください...",
- "send": "送信",
- "args": "引数:",
- "result": "結果:",
- "stop": "停止",
- "interrupted": "中断",
- "retry-last-chat-turn": "直前のターンを再試行",
- "interrupted-retry-hint": "再試行すると、現在のページ状態で中断されたターンをやり直します。",
- "new-chat": "新しいチャット",
- "rename-chat-placeholder": "チャット名を入力してください",
- "archive-chat": "アーカイブ",
- "unarchive-chat": "アーカイブ解除",
- "delete-chat": "削除",
"active-only-chats": "アクティブのみ",
- "archived-only-chats": "アーカイブのみ",
+ "ai-not-configured": {
+ "configure": "設定",
+ "contact-admin": "ワークスペース管理者に AI の設定を依頼してください。",
+ "description": "このワークスペースでは AI が設定されていません。",
+ "title": "AI 未設定"
+ },
+ "archive-chat": "チャットをアーカイブ",
"archive-chat-confirmation": "このチャットをアーカイブしますか?",
- "delete-chat-confirmation": "このチャットを削除しますか?",
- "chat-list-label": "チャット",
- "chat-default-title": "新しいチャット",
+ "archived-only-chats": "アーカイブ済みのみ",
+ "args": "引数",
+ "assistant-title": "AI アシスタント",
+ "cancel": "キャンセル",
"chat-archived-label": "アーカイブ済み",
- "chat-status-idle": "待機中",
- "chat-status-running": "実行中",
- "chat-status-awaiting-user": "入力待ち",
+ "chat-default-title": "新しいチャット",
+ "chat-list-label": "チャット",
+ "chat-status-awaiting-user": "ユーザー待ち",
"chat-status-error": "エラー",
+ "chat-status-idle": "アイドル",
"chat-status-interrupted": "中断",
- "chat-total-tokens": "使用済みトークン: {{count}}",
- "reply": "返信",
+ "chat-status-running": "実行中",
+ "chat-total-tokens": "合計トークン数",
+ "close": "閉じる",
"confirm": "確認",
- "cancel": "キャンセル",
- "pending-input-hint": "このチャットを続けるには、下に返信してください。",
- "pending-confirm-hint": "このチャットを続けるには、確認またはキャンセルを選択してください。",
- "pending-choose-hint": "このチャットを続けるには、選択肢を選んでください。",
- "tool-ask-user": "あなたの回答を待っています",
- "tool-ask-user-input": "入力が必要です",
- "tool-ask-user-confirm": "確認が必要です",
- "tool-ask-user-choose": "選択が必要です",
- "tool-response-submitted": "回答を送信しました",
- "tool-prompt": "質問:",
- "tool-default-value": "既定値:",
- "tool-options": "選択肢:",
- "tool-answer": "回答:",
- "tool-value": "値:",
+ "delete-chat": "チャットを削除",
+ "delete-chat-confirmation": "このチャットを削除しますか?この操作は元に戻せません。",
+ "input-placeholder": "AI に何でも聞いてください...",
+ "interrupted": "中断",
+ "interrupted-retry-hint": "会話が中断されました。再試行するか、新しいメッセージを送信できます。",
+ "minimize": "最小化",
+ "new-chat": "新しいチャット",
+ "pending-choose-hint": "上のオプションから選択してください",
+ "pending-confirm-hint": "上で確認またはキャンセルしてください",
+ "pending-input-hint": "上に入力してください",
+ "rename-chat-placeholder": "チャット名を入力",
+ "reply": "返信",
+ "resize": "リサイズ",
+ "result": "結果",
+ "retry-last-chat-turn": "再試行",
+ "send": "送信",
+ "stop": "停止",
+ "tool-answer": "回答",
+ "tool-ask-user": "ユーザーに質問中",
+ "tool-ask-user-choose": "オプションを選択",
+ "tool-ask-user-confirm": "操作を確認",
+ "tool-ask-user-input": "入力を提供",
"tool-completed": "完了",
- "tool-failed": "問題ありで完了",
- "ai-not-configured": {
- "title": "このワークスペースでは AI アシスタントが設定されていません",
- "description": "ページエージェントを続けるには、ワークスペース設定で AI アシスタントを有効にしてください。",
- "configure": "AI を設定",
- "contact-admin": "AI アシスタントを設定するには、組織の管理者に連絡してください。"
- }
- },
- "changelog": {
- "select": "Schema version is recorded each time a schema change is applied via Bytebase",
- "self": "Changelog"
- },
- "schema-editor": {
- "raw-sql": "Raw SQL"
+ "tool-default-value": "デフォルト",
+ "tool-failed": "失敗",
+ "tool-options": "オプション",
+ "tool-prompt": "プロンプト",
+ "tool-response-submitted": "回答が送信されました",
+ "tool-value": "値",
+ "unarchive-chat": "アーカイブ解除"
}
}
diff --git a/frontend/src/react/locales/vi-VN.json b/frontend/src/react/locales/vi-VN.json
index 53cce924cc..c109d9f756 100644
--- a/frontend/src/react/locales/vi-VN.json
+++ b/frontend/src/react/locales/vi-VN.json
@@ -60,7 +60,13 @@
"self": "Điều kiện"
}
},
+ "changelog": {
+ "select": "Schema version is recorded each time a schema change is applied via Bytebase",
+ "self": "Changelog"
+ },
"common": {
+ "activated": "Đã kích hoạt",
+ "active": "Hoạt động",
"add": "Thêm",
"add-permissions": "Thêm quyền",
"added": "Đã thêm",
@@ -68,10 +74,14 @@
"all": "Tất cả",
"approved": "Đã phê duyệt",
"archive": "Lưu trữ",
+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",
+ "archive-resource": "Archive {{type}}",
"archived": "Đã lưu trữ",
"back": "Quay lại",
"cancel": "Hủy",
"cannot-undo-this-action": "Bạn không thể hoàn tác hành động này.",
+ "changelog": "Changelog",
+ "classification-level": "Cấp phân loại",
"clear": "Xóa",
"close": "Đóng",
"closed": "Đã đóng",
@@ -79,48 +89,82 @@
"configure": "Cấu hình",
"configure-now": "Cấu hình ngay",
"confirm": "Xác nhận",
+ "confirm-and-add": "Confirm and add",
"confirm-and-update": "Xác nhận và Cập nhật",
+ "confirm-archive": "Archive Resource?",
+ "confirm-delete": "Delete Resource?",
+ "confirm-to-revert": "Confirm to revert your editing?",
"copied": "Đã sao chép",
"copy": "Sao chép",
+ "copy-failed": "Copy failed",
"create": "Tạo",
"created": "Đã tạo",
+ "created-at": "Thời gian tạo",
+ "creator": "Người tạo",
+ "danger-zone": "Danger Zone",
+ "database": "Cơ sở dữ liệu",
+ "database-group": "Nhóm cơ sở dữ liệu",
+ "databases": "Cơ sở dữ liệu",
+ "default": "Mặc định",
"delete": "Xóa",
"delete-resource": "Delete {{type}}",
+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
"deleted": "Đã xóa",
"description": "Mô tả",
+ "deselect-all": "Deselect all",
+ "disable": "Disable",
"discard-changes": "Hủy thay đổi",
+ "download": "Tải xuống",
"edit": "Chỉnh sửa",
"email": "Email",
+ "email-ascii-only": "Địa chỉ email chỉ hỗ trợ ký tự ASCII (chữ cái, số và ký hiệu như . _ - +).",
+ "empty": "Empty",
+ "enable": "Bật",
+ "enabled": "Enabled",
"environment": "Môi trường",
"environment-name": "Tên môi trường",
+ "environments": "Môi trường",
+ "expiration": "Expiration",
"export": "Xuất",
"failed": "Thất bại",
"file-selector": {
"size-limit": "Kích thước tệp phải nhỏ hơn {{size}} MiB",
"type-limit": "Chỉ hỗ trợ tệp {{extension}}"
},
+ "filter": "Filter",
"filter-by-name": "Lọc theo tên",
"from": "Từ",
"general": "Chung",
"groups": "Nhóm",
+ "home": "Trang chủ",
"id": "ID",
"instance": "Phiên bản",
+ "instances": "Phiên bản",
"is-required": "is required",
+ "issues": "Vấn đề",
+ "items": "items",
+ "key": "Khóa",
"labels": "Nhãn",
"learn-more": "Tìm hiểu thêm",
"leave-without-saving": "Thoát mà không lưu?",
"load-more": "Tải thêm",
"loading": "Đang tải",
+ "manage": "Quản lý",
+ "manually-select": "Manually select",
"members_one": "Thành viên",
"members_other": "Thành viên",
"missing-required-permission": "Thiếu quyền cần thiết {{permissions}}",
"n-items-selected": "Đã chọn {{n}} mục",
+ "n-more": "+{{n}} nữa",
"name": "Tên",
"next": "Tiếp theo",
"no-data": "Không có dữ liệu",
"ok": "OK",
"operations": "Các thao tác",
+ "optional": "Optional",
+ "pending": "Đang chờ",
"permissions": "Quyền",
+ "previous": "Previous",
"project": "Dự án",
"projects": "Dự án",
"reason": "Reason",
@@ -130,23 +174,36 @@
"reorder": "Sắp xếp lại",
"required-permission": "Quyền hạn cần thiết",
"required-workspace-permission": "Các quyền sau đây cần thiết để khởi tạo không gian làm việc UX",
+ "resource": "Resource",
+ "resources": "Tài nguyên",
"resource-not-found": "Không tìm thấy tài nguyên",
"restore": "Khôi phục",
"restored": "Restored",
"revert": "Hoàn tác",
+ "revoke": "Thu hồi",
+ "revoked": "Đã thu hồi",
"rows-per-page": "Số dòng mỗi trang",
"save": "Lưu",
+ "schema": "Schema",
+ "scope": "Phạm vi",
"search": "Tìm kiếm",
+ "search-for-more": "Tìm kiếm thêm",
+ "type-to-search": "Nhập để tìm kiếm",
"select": "Vui lòng chọn",
"select-all": "Chọn tất cả",
+ "selected": "selected",
"sensitive-placeholder": "Nhạy cảm - Chỉ ghi",
"setting": "Cài đặt",
"settings": "Cài đặt",
"sql": "SQL",
"state": "Trạng thái",
+ "statement": "Câu lệnh",
+ "status": "Trạng thái",
"system": "Hệ thống",
+ "table": "Bảng",
"title": "Tiêu đề",
"to": "Đến",
+ "total": "Total",
"total-n-items": "Tổng {{n}} mục",
"type": "Loại",
"unassigned": "Chưa gán",
@@ -156,107 +213,27 @@
"updated": "Đã cập nhật",
"upload": "Tải lên",
"users": "Người dùng",
+ "value": "Giá trị",
"view": "Xem",
"view-details": "Xem Chi tiết",
"warning": "Cảnh báo",
+ "webhooks": "Webhooks",
"you": "bạn",
- "copy-failed": "Copy failed",
+ "admin": "Quản trị viên",
+ "continue-anyway": "Tiếp tục",
+ "creating": "Đang tạo...",
+ "custom": "Tùy chỉnh",
+ "detailed-guide": "Hướng dẫn chi tiết",
"dismiss": "Loại bỏ",
- "activated": "Đã kích hoạt",
- "active": "Hoạt động",
- "archive-description": "Mark \"{{name}}\" as archived and read-only.",
- "archive-resource": "Archive {{type}}",
- "changelog": "Changelog",
- "classification-level": "Cấp phân loại",
- "confirm-and-add": "Confirm and add",
- "confirm-archive": "Archive Resource?",
- "confirm-delete": "Delete Resource?",
- "confirm-to-revert": "Confirm to revert your editing?",
- "created-at": "Thời gian tạo",
- "creator": "Người tạo",
- "danger-zone": "Danger Zone",
- "database": "Cơ sở dữ liệu",
- "database-group": "Nhóm cơ sở dữ liệu",
- "databases": "Cơ sở dữ liệu",
- "default": "Mặc định",
- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",
- "deselect-all": "Deselect all",
- "disable": "Disable",
- "download": "Tải xuống",
- "email-ascii-only": "Địa chỉ email chỉ hỗ trợ ký tự ASCII (chữ cái, số và ký hiệu như . _ - +).",
- "empty": "Empty",
- "enable": "Bật",
- "enabled": "Enabled",
- "environments": "Môi trường",
- "expiration": "Expiration",
- "filter": "Filter",
- "home": "Trang chủ",
- "instances": "Phiên bản",
- "issues": "Vấn đề",
- "items": "items",
- "key": "Khóa",
- "manage": "Quản lý",
- "manually-select": "Manually select",
- "n-more": "+{{n}} nữa",
- "optional": "Optional",
- "pending": "Đang chờ",
- "previous": "Previous",
- "resource": "Resource",
- "resources": "Tài nguyên",
- "revoke": "Thu hồi",
- "revoked": "Đã thu hồi",
- "schema": "Schema",
- "scope": "Phạm vi",
- "search-for-more": "Tìm kiếm thêm",
- "selected": "selected",
- "statement": "Câu lệnh",
- "status": "Trạng thái",
- "table": "Bảng",
- "total": "Total",
- "value": "Giá trị",
- "webhooks": "Webhooks"
+ "minutes": "Phút",
+ "overview": "Tổng quan",
+ "password": "Mật khẩu",
+ "read-only": "Chỉ đọc",
+ "updating": "Đang cập nhật...",
+ "user": "Người dùng",
+ "username": "Tên người dùng",
+ "write-only": "chỉ ghi"
},
- "common.add": "Thêm",
- "common.admin": "Quản trị viên",
- "common.archive": "Lưu trữ",
- "common.archived": "Đã lưu trữ",
- "common.cancel": "Hủy",
- "common.cannot-undo-this-action": "Bạn không thể hoàn tác hành động này.",
- "common.confirm-and-update": "Xác nhận và Cập nhật",
- "common.continue-anyway": "Tiếp tục",
- "common.create": "Tạo",
- "common.creating": "Đang tạo...",
- "common.custom": "Tùy chỉnh",
- "common.database": "Cơ sở dữ liệu",
- "common.databases": "Cơ sở dữ liệu",
- "common.default": "Mặc định",
- "common.delete": "Xóa",
- "common.delete-resource": "Delete {{type}}",
- "common.deleted": "Đã xóa",
- "common.detailed-guide": "Hướng dẫn chi tiết",
- "common.edit": "Chỉnh sửa",
- "common.environment": "Môi trường",
- "common.key": "Khóa",
- "common.labels": "Nhãn",
- "common.learn-more": "Tìm hiểu thêm",
- "common.loading": "Đang tải",
- "common.minutes": "Phút",
- "common.no-data": "Không có dữ liệu",
- "common.optional": "Tùy chọn",
- "common.overview": "Tổng quan",
- "common.password": "Mật khẩu",
- "common.project": "Dự án",
- "common.read-only": "Chỉ đọc",
- "common.restore": "Khôi phục",
- "common.sensitive-placeholder": "Nhạy cảm - Chỉ ghi",
- "common.unlimited": "Không giới hạn",
- "common.updated": "Đã cập nhật",
- "common.updating": "Đang cập nhật",
- "common.user": "Người dùng",
- "common.username": "Tên người dùng",
- "common.value": "Giá trị",
- "common.warning": "Cảnh báo",
- "common.write-only": "chỉ ghi",
"create-db": {
"cluster": "Cụm",
"database-owner-name": "Tên chủ sở hữu cơ sở dữ liệu",
@@ -332,56 +309,22 @@
},
"self": "Phê duyệt tùy chỉnh"
},
- "data-source.additional-node-addresses": "Địa chỉ nút bổ sung",
- "data-source.connection-string-schema": "Lược đồ chuỗi kết nối",
- "data-source.connection-type": "Loại kết nối",
- "data-source.delete-read-only-data-source": "Xóa nguồn dữ liệu chỉ đọc",
- "data-source.direct-connection": "Kết nối trực tiếp",
- "data-source.extra-params.description": "Các tham số bổ sung cho chuỗi kết nối cơ sở dữ liệu",
- "data-source.extra-params.self": "Thông số bổ sung",
- "data-source.no-read-only-data-source": "Không có nguồn dữ liệu chỉ đọc",
- "data-source.private-key-passphrase": "Mật khẩu khóa riêng",
- "data-source.private-key-passphrase-placeholder": "Để trống nếu khóa riêng của bạn không được mã hóa",
- "data-source.private-key-passphrase-tip": "Mật khẩu tùy chọn cho khóa riêng được mã hóa",
- "data-source.read-replica-host": "Máy chủ bản sao đọc",
- "data-source.read-replica-port": "Cổng bản sao đọc",
- "data-source.replica-set": "Bộ bản sao",
- "data-source.snowflake-keypair-tip": "Xác thực cặp khóa",
- "data-source.ssh-connection": "Kết nối SSH",
- "data-source.ssh-type.none": "Không có",
- "data-source.ssh-type.tunnel-and-private-key": "Đường hầm + Khóa riêng",
- "data-source.ssh.host": "Máy chủ",
- "data-source.ssh.password": "Mật khẩu",
- "data-source.ssh.port": "Cổng",
- "data-source.ssh.private-key": "Khóa riêng",
- "data-source.ssh.ssh-key": "Khóa SSH",
- "data-source.ssh.user": "Người dùng",
- "data-source.ssl-connection": "Kết nối SSL",
- "data-source.ssl.ca-cert": "Chứng chỉ CA",
- "data-source.ssl.client-cert": "Chứng chỉ máy khách",
- "data-source.ssl.client-key": "Khóa máy khách",
- "data-source.ssl.verify-certificate": "Xác minh chứng chỉ TLS",
- "data-source.ssl.verify-certificate-tooltip": "Bật xác minh chứng chỉ TLS để kết nối an toàn. Chỉ tắt cho môi trường phát triển hoặc khi không thể xác thực chứng chỉ đúng cách (ví dụ: chứng chỉ tự ký, môi trường VPN). Cảnh báo: Tắt xác minh là không an toàn",
"database": {
+ "all": "Tất cả cơ sở dữ liệu",
+ "change-database": "Thay đổi cơ sở dữ liệu",
"classification": {
"description": "Define classification levels to apply consistent masking policies across columns and databases."
},
"edit-environment": "Chỉnh sửa Môi trường",
"edit-labels": "Chỉnh sửa nhãn",
"engine": "Engine",
- "filter-database": "Lọc cơ sở dữ liệu",
- "selected-n-databases": "Đã chọn {{n}} cơ sở dữ liệu",
- "successfully-transferred-databases": "Chuyển cơ sở dữ liệu thành công",
- "sync-schema-button": "Đồng bộ lược đồ",
- "sync-status-failed": "Đồng bộ thất bại",
- "transfer-project": "Chuyển dự án",
- "unassign": "Hủy gán",
- "all": "Tất cả cơ sở dữ liệu",
- "change-database": "Thay đổi cơ sở dữ liệu",
"expression": "Expression",
+ "filter-database": "Lọc cơ sở dữ liệu",
"mixed-label-values": "giá trị hỗn hợp",
"mixed-label-values-warning": "Một số tài nguyên đã chọn có các giá trị khác nhau cho cùng một khóa. Chỉ chỉnh sửa các cặp khóa-giá trị này nếu bạn muốn thay đổi chúng.",
"select": "Chọn cơ sở dữ liệu",
+ "selected-n-databases": "Đã chọn {{n}} cơ sở dữ liệu",
+ "successfully-transferred-databases": "Chuyển cơ sở dữ liệu thành công",
"sync-schema": {
"copy-schema": "Copy schema",
"description": "Bytebase supports synchronizing a schema to one or multiple target databases. (MySQL, PostgreSQL, Oracle, MSSQL, TiDB only)",
@@ -404,8 +347,13 @@
"title": "Đồng bộ lược đồ",
"with-diff": "With diff"
},
+ "sync-schema-button": "Đồng bộ lược đồ",
+ "sync-status-failed": "Đồng bộ thất bại",
+ "transfer-project": "Chuyển dự án",
+ "unassign": "Hủy gán",
"unassign-alert-description": "Các cơ sở dữ liệu đã chọn sẽ bị xóa khỏi dự án",
- "unassign-alert-title": "Hủy gán cơ sở dữ liệu"
+ "unassign-alert-title": "Hủy gán cơ sở dữ liệu",
+ "sync-complete-for-instance": "Đồng bộ hoàn tất cho instance '{{0}}'"
},
"database-group": {
"condition": {
@@ -418,29 +366,23 @@
"select": "Select database group",
"unmatched-database": "Unmatched database"
},
- "database.engine": "Engine",
- "database.filter-database": "Lọc cơ sở dữ liệu",
- "database.sync-complete-for-instance": "Đồng bộ hoàn tất cho instance '{{0}}'",
"db": {
"character-set": "Bộ ký tự",
"collation": "Đối chiếu",
"encoding": "Mã hóa",
"failed-to-sync-schema": "Đồng bộ hóa lược đồ thất bại",
"start-to-sync-schema": "Bắt đầu đồng bộ hóa lược đồ",
- "successfully-synced-schema": "Đồng bộ hóa lược đồ thành công"
+ "successfully-synced-schema": "Đồng bộ hóa lược đồ thành công",
+ "n-databases-had-sync-errors": "{{0}} cơ sở dữ liệu gặp lỗi đồng bộ",
+ "syncing-databases-for-instance": "Đang đồng bộ hóa cơ sở dữ liệu cho {{0}}..."
},
- "db.failed-to-sync-schema": "Không đồng bộ hóa được lược đồ",
- "db.n-databases-had-sync-errors": "{{0}} cơ sở dữ liệu gặp lỗi đồng bộ",
- "db.start-to-sync-schema": "Bắt đầu đồng bộ hóa lược đồ",
- "db.syncing-databases-for-instance": "Đang đồng bộ hóa cơ sở dữ liệu cho {{0}}...",
- "dynamic.resource.instance": "ID phiên bản",
"environment": {
"create": "Tạo môi trường",
"delete": "Xóa môi trường này",
"delete-description": "Xóa môi trường cũng sẽ xóa nó khỏi các phiên bản và cơ sở dữ liệu liên quan. Bạn không thể hoàn tác hành động này.",
"reorder": "Sắp xếp lại môi trường",
- "successfully-updated-environment": "Đã cập nhật thành công môi trường '{{name}}'.",
- "select": "Chọn môi trường"
+ "select": "Chọn môi trường",
+ "successfully-updated-environment": "Đã cập nhật thành công môi trường '{{name}}'."
},
"error-page": {
"go-back-home": "Về trang chủ",
@@ -529,132 +471,179 @@
"sync-all-tip": "Đồng bộ cơ sở dữ liệu không đồng bộ và có thể mất vài giây đến vài phút",
"sync-new": "Chỉ đồng bộ cơ sở dữ liệu mới"
},
- "syncing": "Đang đồng bộ hóa ..."
+ "syncing": "Đang đồng bộ hóa ...",
+ "account-locator": "Định vị tài khoản",
+ "authentication-database": "Cơ sở dữ liệu xác thực",
+ "connection-info": "Thông tin kết nối",
+ "connection-options": "Tùy chọn kết nối",
+ "create-gcp-credentials": "Để tạo thông tin xác thực, xem",
+ "database-region": "Khu vực cơ sở dữ liệu",
+ "endpoint": "Điểm cuối",
+ "external-id": "ID bên ngoài",
+ "external-id-description": "ID bên ngoài để bảo mật bổ sung khi đảm nhận vai trò (tùy chọn)",
+ "external-id-placeholder": "ID bên ngoài tùy chọn",
+ "external-link": "Liên kết ngoài",
+ "external-secret-azure": {
+ "secret-name": "Tên bí mật",
+ "vault-url": "URL Key Vault",
+ "secret-name-tips": "Tên của bí mật được lưu trữ trong Azure Key Vault.",
+ "vault-url-tips": "URL Key Vault phải giống như \"https://myvault.vault.azure.net/\"."
+ },
+ "external-secret-gcp": {
+ "secret-name": "Tên đầy đủ bí mật",
+ "secret-name-tips": "Tên bí mật phải giống như \"projects/project-id/secrets/secret-id\"."
+ },
+ "external-secret-vault": {
+ "vault-auth-type": {
+ "approle": {
+ "role-id": "ID vai trò xác thực",
+ "secret-env-name": "Tên môi trường",
+ "secret-id": "ID bí mật xác thực",
+ "secret-plain-text": "Văn bản thuần",
+ "self": "AppRole"
+ },
+ "token": {
+ "self": "Mã thông báo"
+ },
+ "self": "Loại xác thực"
+ },
+ "vault-secret-key": "Khóa bí mật",
+ "vault-secret-path": "Đường dẫn bí mật",
+ "vault-secret-engine-name": "Tên công cụ bí mật",
+ "vault-secret-engine-tips": "Chỉ hỗ trợ công cụ KV v2.",
+ "vault-tls-config": "Cấu hình Vault TLS (Tùy chọn)",
+ "vault-url": "URL Vault"
+ },
+ "external-secret": {
+ "key-name": "Khóa bí mật",
+ "secret-name": "Tên bí mật"
+ },
+ "failed-to-connect-instance": "Không kết nối được với phiên bản.",
+ "failed-to-connect-instance-localhost": "Nếu bạn chạy Bytebase bằng Docker, vui lòng thử \"host.docker.internal\" cho địa chỉ máy chủ.",
+ "find-gcp-project-id": "Để tìm ID dự án GCP, xem",
+ "find-gcp-project-id-and-instance-id": "Để tìm ID dự án GCP và ID phiên bản, xem",
+ "grants": "Quyền",
+ "host-or-socket": "Máy chủ hoặc Socket",
+ "iam-extension": {
+ "client-id": "Client ID",
+ "client-secret": "Client Secret",
+ "credential-source": "Credential Source",
+ "specific-credential": "Chứng chỉ cụ thể",
+ "tenant-id": "Tenant ID",
+ "saas-default-credential-restriction": "Thông tin xác thực mặc định không khả dụng trong Bytebase Cloud vì lý do bảo mật. Vui lòng cung cấp thông tin xác thực cụ thể."
+ },
+ "info-panel": {
+ "no-info": "Không có thông tin bổ sung cho engine này."
+ },
+ "instance-id": "ID phiên bản",
+ "instance-name": "Tên phiên bản",
+ "no-extra-params-configured": "Không có thông số kết nối bổ sung được cấu hình",
+ "no-params-yet-add-above": "Chưa có thông số nào được cấu hình. \nThêm tham số bằng cách sử dụng biểu mẫu trên.",
+ "no-password": "Không có mật khẩu",
+ "parameter-name-placeholder": "Tên tham số",
+ "parameter-value-placeholder": "Giá trị tham số",
+ "password-type": {
+ "aws-iam": "AWS RDS IAM",
+ "azure-iam": "Azure IAM",
+ "google-iam": "Google Cloud SQL IAM",
+ "password": "Mật khẩu",
+ "external-secret-aws": "AWS Secrets Manager",
+ "external-secret-azure": "Azure Key Vault",
+ "external-secret-gcp": "GCP Secret Manager",
+ "external-secret-vault": "Vault (KV v2)"
+ },
+ "password-write-only": "YOUR_DB_PWD - chỉ ghi",
+ "port": "Cổng",
+ "project-id": "ID dự án",
+ "role-arn": "ARN vai trò",
+ "role-arn-description": "Vai trò IAM để đảm nhận cho truy cập xuyên tài khoản. Để trống cho truy cập cùng tài khoản.",
+ "role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
+ "scan-interval": {
+ "default-never": "Mặc định (không bao giờ)",
+ "description": "Bytebase định kỳ đồng bộ lược đồ phiên bản và phát hiện bất thường.",
+ "self": "Khoảng thời gian quét",
+ "min-value": "Giá trị nhỏ nhất {{value}} phút"
+ },
+ "section": {
+ "basic-info": "Thông tin cơ bản",
+ "connection": "Kết nối"
+ },
+ "sentence": {
+ "console": {
+ "snowflake": "URL bảng điều khiển bên ngoài quản lý phiên bản này (ví dụ: bảng điều khiển AWS RDS, bảng điều khiển phiên bản cơ sở dữ liệu nội bộ của bạn)"
+ },
+ "create-admin-user": "Đây là người dùng kết nối được Bytebase sử dụng để thực hiện các hoạt động DDL và DML (không phải SELECT).",
+ "create-admin-user-non-sql": "Đây là người dùng kết nối được Bytebase sử dụng để thực hiện các hoạt động ghi và quản trị.",
+ "create-readonly-user": "Đây là kết nối được Bytebase sử dụng để thực hiện các hoạt động chỉ đọc như truy vấn SELECT.",
+ "create-readonly-user-non-sql": "Đây là kết nối được Bytebase sử dụng để thực hiện các hoạt động chỉ đọc.",
+ "create-user-example": {
+ "postgresql": {
+ "warn": "Nếu phiên bản kết nối được quản lý bởi nhà cung cấp đám mây, thì SUPERUSER không khả dụng và bạn nên tạo người dùng thông qua bảng điều khiển quản trị của nhà cung cấp đó. Người dùng đã tạo sẽ có các đặc quyền bán SUPERUSER cụ thể của nhà cung cấp. Bạn nên cấp các đặc quyền Bytebase với 'GRANT role_name TO bytebase;' cho tất cả các vai trò hiện có, nếu không Bytebase có thể không truy cập được các cơ sở dữ liệu hoặc bảng hiện có.",
+ "template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết. Nếu phiên bản kết nối được tự lưu trữ, thì bạn có thể cấp SUPERUSER."
+ },
+ "clickhouse": {
+ "sql-driven-workflow": "Quy trình công việc dựa trên SQL",
+ "template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết. Đầu tiên, bạn cần bật {{link}} quy trình công việc dựa trên SQL và sau đó chạy truy vấn sau để tạo người dùng."
+ },
+ "mysql": {
+ "template": "Dưới đây là ví dụ để tạo người dùng {{user}}@% với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết."
+ },
+ "redis": {
+ "template": "Dưới đây là ví dụ để tạo người dùng {{user}} với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết."
+ },
+ "snowflake": {
+ "template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} cho {{warehouse}} và cấp cho người dùng các đặc quyền cần thiết."
+ }
+ },
+ "firewall-info": "Nếu bạn sử dụng các quy tắc tường lửa gửi đến cho thể hiện cơ sở dữ liệu của mình, vui lòng tham khảo Hướng dẫn kết nối đám mây Bytebase.",
+ "host": {
+ "none-snowflake": "ví dụ: host.docker.internal {{'|'}} địa chỉ IP máy chủ {{'|'}} local socket"
+ },
+ "proxy": {
+ "snowflake": "Đối với máy chủ proxy, thêm {{'@'}}PROXY_HOST và chỉ định PROXY_PORT trong cổng"
+ },
+ "aws-rds": {
+ "mysql": {
+ "template": "Dưới đây là ví dụ để tạo người dùng {{user}}@% và cấp cho người dùng các đặc quyền cần thiết."
+ },
+ "postgresql": {
+ "template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' và cấp cho người dùng các đặc quyền cần thiết."
+ }
+ },
+ "google-cloud-sql": {
+ "instance-name": "Tên kết nối phiên bản",
+ "instance-name-tips": "Tên kết nối phiên bản phải giống như {{instance}}.",
+ "mysql": {
+ "template": "Tạo một tài khoản dịch vụ có tên {{user}}, sau đó thêm nó vào Google Cloud SQL của bạn với tư cách là người dùng IAM {{user}}@'%'. Cấp cho người dùng này các đặc quyền cần thiết."
+ },
+ "postgresql": {
+ "template": "Tạo một tài khoản dịch vụ có tên {{user}}, sau đó thêm nó vào Google Cloud SQL của bạn với tư cách là người dùng IAM {{user}}@project-id.iam. Cấp cho người dùng các đặc quyền cần thiết."
+ }
+ }
+ },
+ "show-how-to-create": "Hiển thị cách tạo",
+ "snowflake-web-console": "Bảng điều khiển web Snowflake",
+ "successfully-connected-instance": "Đã kết nối thành công với phiên bản.",
+ "sync-databases": {
+ "add-database": "+ Thêm cơ sở dữ liệu, nhấn enter để gửi",
+ "description": "Chỉ đồng bộ các cơ sở dữ liệu đã chọn.",
+ "search-database": "Tìm kiếm cơ sở dữ liệu",
+ "self": "Đồng bộ cơ sở dữ liệu",
+ "sync-all": "Đồng bộ tất cả cơ sở dữ liệu"
+ },
+ "test-connection": "Kiểm tra kết nối",
+ "type-or-paste-credentials-write-only": "Nhập hoặc dán THÔNG TIN XÁC THỰC - chỉ ghi",
+ "unable-to-connect": "Bytebase không thể kết nối với phiên bản. Chúng tôi khuyên bạn nên xem xét lại thông tin kết nối. Nhưng bạn có thể bỏ qua cảnh báo này ngay bây giờ. Bạn vẫn có thể sửa thông tin kết nối từ trang chi tiết phiên bản sau khi tạo.\n\nChi tiết lỗi: {{0}}",
+ "users": "Người dùng",
+ "your-snowflake-account-locator": "Định vị tài khoản Snowflake của bạn",
+ "testing-connection": "Đang kiểm tra kết nối...",
+ "new-instance": "Phiên bản mới",
+ "no-environment": "Trường hợp này không bị ràng buộc với môi trường",
+ "restore-instance-instance-name-to-normal-state": "Khôi phục phiên bản '{{0}}' về trạng thái bình thường?",
+ "successfully-created-instance-createdinstance-name": "Đã tạo thành công phiên bản '{{0}}'.",
+ "successfully-updated-instance-instance-name": "Đã cập nhật thành công phiên bản '{{0}}'."
},
- "instance.account-locator": "Định vị tài khoản",
- "instance.archive-instance-instance-name": "Lưu trữ phiên bản '{{0}}'?",
- "instance.archived-instances-will-not-be-displayed": "Các phiên bản đã lưu trữ sẽ không được hiển thị.",
- "instance.authentication-database": "Cơ sở dữ liệu xác thực",
- "instance.connection-info": "Thông tin kết nối",
- "instance.connection-options": "Tùy chọn kết nối",
- "instance.create-gcp-credentials": "Để tạo thông tin xác thực, xem",
- "instance.database-region": "Khu vực cơ sở dữ liệu",
- "instance.endpoint": "Điểm cuối",
- "instance.external-id": "ID bên ngoài",
- "instance.external-id-description": "ID bên ngoài để bảo mật bổ sung khi đảm nhận vai trò (tùy chọn)",
- "instance.external-id-placeholder": "ID bên ngoài tùy chọn",
- "instance.external-link": "Liên kết ngoài",
- "instance.external-secret-azure.secret-name": "Tên bí mật",
- "instance.external-secret-azure.secret-name-tips": "Tên của bí mật được lưu trữ trong Azure Key Vault.",
- "instance.external-secret-azure.vault-url": "URL Key Vault",
- "instance.external-secret-azure.vault-url-tips": "URL Key Vault phải giống như \"https://myvault.vault.azure.net/\".",
- "instance.external-secret-gcp.secret-name": "Tên đầy đủ bí mật",
- "instance.external-secret-gcp.secret-name-tips": "Tên bí mật phải giống như \"projects/project-id/secrets/secret-id\".",
- "instance.external-secret-vault.vault-auth-type.approle.role-id": "ID vai trò xác thực",
- "instance.external-secret-vault.vault-auth-type.approle.secret-env-name": "Tên môi trường",
- "instance.external-secret-vault.vault-auth-type.approle.secret-id": "ID bí mật xác thực",
- "instance.external-secret-vault.vault-auth-type.approle.secret-plain-text": "Văn bản thuần",
- "instance.external-secret-vault.vault-auth-type.approle.self": "AppRole",
- "instance.external-secret-vault.vault-auth-type.self": "Loại xác thực",
- "instance.external-secret-vault.vault-auth-type.token.self": "Mã thông báo",
- "instance.external-secret-vault.vault-secret-engine-name": "Tên công cụ bí mật",
- "instance.external-secret-vault.vault-secret-engine-tips": "Chỉ hỗ trợ công cụ KV v2.",
- "instance.external-secret-vault.vault-secret-key": "Khóa bí mật",
- "instance.external-secret-vault.vault-secret-path": "Đường dẫn bí mật",
- "instance.external-secret-vault.vault-tls-config": "Cấu hình Vault TLS (Tùy chọn)",
- "instance.external-secret-vault.vault-url": "URL Vault",
- "instance.external-secret.key-name": "Khóa bí mật",
- "instance.external-secret.secret-name": "Tên bí mật",
- "instance.failed-to-connect-instance": "Không kết nối được với phiên bản.",
- "instance.failed-to-connect-instance-localhost": "Nếu bạn chạy Bytebase bằng Docker, vui lòng thử \"host.docker.internal\" cho địa chỉ máy chủ.",
- "instance.find-gcp-project-id": "Để tìm ID dự án GCP, xem",
- "instance.find-gcp-project-id-and-instance-id": "Để tìm ID dự án GCP và ID phiên bản, xem",
- "instance.force-archive-description": "Buộc lưu trữ. Tất cả cơ sở dữ liệu sẽ bị hủy gán.",
- "instance.grants": "Quyền",
- "instance.host-or-socket": "Máy chủ hoặc Socket",
- "instance.iam-extension.client-id": "Client ID",
- "instance.iam-extension.client-secret": "Client Secret",
- "instance.iam-extension.credential-source": "Credential Source",
- "instance.iam-extension.saas-default-credential-restriction": "Thông tin xác thực mặc định không khả dụng trong Bytebase Cloud vì lý do bảo mật. Vui lòng cung cấp thông tin xác thực cụ thể.",
- "instance.iam-extension.specific-credential": "Chứng chỉ cụ thể",
- "instance.iam-extension.tenant-id": "Tenant ID",
- "instance.info-panel.no-info": "Không có thông tin bổ sung cho engine này.",
- "instance.instance-id": "ID phiên bản",
- "instance.instance-name": "Tên phiên bản",
- "instance.new-instance": "Phiên bản mới",
- "instance.no-environment": "Trường hợp này không bị ràng buộc với môi trường",
- "instance.no-extra-params-configured": "Không có thông số kết nối bổ sung được cấu hình",
- "instance.no-params-yet-add-above": "Chưa có thông số nào được cấu hình. \nThêm tham số bằng cách sử dụng biểu mẫu trên.",
- "instance.no-password": "Không có mật khẩu",
- "instance.parameter-name-placeholder": "Tên tham số",
- "instance.parameter-value-placeholder": "Giá trị tham số",
- "instance.password-type.aws-iam": "AWS RDS IAM",
- "instance.password-type.azure-iam": "Azure IAM",
- "instance.password-type.external-secret-aws": "AWS Secrets Manager",
- "instance.password-type.external-secret-azure": "Azure Key Vault",
- "instance.password-type.external-secret-gcp": "GCP Secret Manager",
- "instance.password-type.external-secret-vault": "Vault (KV v2)",
- "instance.password-type.google-iam": "Google Cloud SQL IAM",
- "instance.password-type.password": "Mật khẩu",
- "instance.password-write-only": "YOUR_DB_PWD - chỉ ghi",
- "instance.port": "Cổng",
- "instance.project-id": "ID dự án",
- "instance.restore-instance-instance-name-to-normal-state": "Khôi phục phiên bản '{{0}}' về trạng thái bình thường?",
- "instance.role-arn": "ARN vai trò",
- "instance.role-arn-description": "Vai trò IAM để đảm nhận cho truy cập xuyên tài khoản. Để trống cho truy cập cùng tài khoản.",
- "instance.role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
- "instance.scan-interval.default-never": "Mặc định (không bao giờ)",
- "instance.scan-interval.description": "Bytebase định kỳ đồng bộ lược đồ phiên bản và phát hiện bất thường.",
- "instance.scan-interval.min-value": "Giá trị nhỏ nhất {{value}} phút",
- "instance.scan-interval.self": "Khoảng thời gian quét",
- "instance.section.basic-info": "Thông tin cơ bản",
- "instance.section.connection": "Kết nối",
- "instance.sentence.aws-rds.mysql.template": "Dưới đây là ví dụ để tạo người dùng {{user}}@% và cấp cho người dùng các đặc quyền cần thiết.",
- "instance.sentence.aws-rds.postgresql.template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' và cấp cho người dùng các đặc quyền cần thiết.",
- "instance.sentence.console.snowflake": "URL bảng điều khiển bên ngoài quản lý phiên bản này (ví dụ: bảng điều khiển AWS RDS, bảng điều khiển phiên bản cơ sở dữ liệu nội bộ của bạn)",
- "instance.sentence.create-admin-user": "Đây là người dùng kết nối được Bytebase sử dụng để thực hiện các hoạt động DDL và DML (không phải SELECT).",
- "instance.sentence.create-admin-user-non-sql": "Đây là người dùng kết nối được Bytebase sử dụng để thực hiện các hoạt động ghi và quản trị.",
- "instance.sentence.create-readonly-user": "Đây là kết nối được Bytebase sử dụng để thực hiện các hoạt động chỉ đọc như truy vấn SELECT.",
- "instance.sentence.create-readonly-user-non-sql": "Đây là kết nối được Bytebase sử dụng để thực hiện các hoạt động chỉ đọc.",
- "instance.sentence.create-user-example.clickhouse.sql-driven-workflow": "Quy trình công việc dựa trên SQL",
- "instance.sentence.create-user-example.clickhouse.template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết. Đầu tiên, bạn cần bật {{link}} quy trình công việc dựa trên SQL và sau đó chạy truy vấn sau để tạo người dùng.",
- "instance.sentence.create-user-example.mysql.template": "Dưới đây là ví dụ để tạo người dùng {{user}}@% với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết.",
- "instance.sentence.create-user-example.postgresql.template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết. Nếu phiên bản kết nối được tự lưu trữ, thì bạn có thể cấp SUPERUSER.",
- "instance.sentence.create-user-example.postgresql.warn": "Nếu phiên bản kết nối được quản lý bởi nhà cung cấp đám mây, thì SUPERUSER không khả dụng và bạn nên tạo người dùng thông qua bảng điều khiển quản trị của nhà cung cấp đó. Người dùng đã tạo sẽ có các đặc quyền bán SUPERUSER cụ thể của nhà cung cấp. Bạn nên cấp các đặc quyền Bytebase với 'GRANT role_name TO bytebase;' cho tất cả các vai trò hiện có, nếu không Bytebase có thể không truy cập được các cơ sở dữ liệu hoặc bảng hiện có.",
- "instance.sentence.create-user-example.redis.template": "Dưới đây là ví dụ để tạo người dùng {{user}} với mật khẩu {{password}} và cấp cho người dùng các đặc quyền cần thiết.",
- "instance.sentence.create-user-example.snowflake.template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} cho {{warehouse}} và cấp cho người dùng các đặc quyền cần thiết.",
- "instance.sentence.firewall-info": "Nếu bạn sử dụng các quy tắc tường lửa gửi đến cho thể hiện cơ sở dữ liệu của mình, vui lòng tham khảo Hướng dẫn kết nối đám mây Bytebase.",
- "instance.sentence.google-cloud-sql.instance-name": "Tên kết nối phiên bản",
- "instance.sentence.google-cloud-sql.instance-name-tips": "Tên kết nối phiên bản phải giống như {{instance}}.",
- "instance.sentence.google-cloud-sql.mysql.template": "Tạo một tài khoản dịch vụ có tên {{user}}, sau đó thêm nó vào Google Cloud SQL của bạn với tư cách là người dùng IAM {{user}}@'%'. Cấp cho người dùng này các đặc quyền cần thiết.",
- "instance.sentence.google-cloud-sql.postgresql.template": "Tạo một tài khoản dịch vụ có tên {{user}}, sau đó thêm nó vào Google Cloud SQL của bạn với tư cách là người dùng IAM {{user}}@project-id.iam. Cấp cho người dùng các đặc quyền cần thiết.",
- "instance.sentence.host.none-snowflake": "ví dụ: host.docker.internal {'|'} địa chỉ IP máy chủ {'|'} local socket",
- "instance.sentence.proxy.snowflake": "Đối với máy chủ proxy, thêm {'@'}PROXY_HOST và chỉ định PROXY_PORT trong cổng",
- "instance.show-how-to-create": "Hiển thị cách tạo",
- "instance.snowflake-web-console": "Bảng điều khiển web Snowflake",
- "instance.successfully-archived-instance": "Đã lưu trữ thành công phiên bản '{{0}}'.",
- "instance.successfully-connected-instance": "Đã kết nối thành công với phiên bản.",
- "instance.successfully-created-instance-createdinstance-name": "Đã tạo thành công phiên bản '{{0}}'.",
- "instance.successfully-restored-instance": "Đã khôi phục thành công trường hợp '{{0}}'.",
- "instance.successfully-updated-instance-instance-name": "Đã cập nhật thành công phiên bản '{{0}}'.",
- "instance.sync-databases.add-database": "+ Thêm cơ sở dữ liệu, nhấn enter để gửi",
- "instance.sync-databases.description": "Chỉ đồng bộ các cơ sở dữ liệu đã chọn.",
- "instance.sync-databases.search-database": "Tìm kiếm cơ sở dữ liệu",
- "instance.sync-databases.self": "Đồng bộ cơ sở dữ liệu",
- "instance.sync-databases.sync-all": "Đồng bộ tất cả cơ sở dữ liệu",
- "instance.sync.self": "Đồng bộ phiên bản",
- "instance.sync.sync-all": "Đồng bộ tất cả cơ sở dữ liệu",
- "instance.sync.sync-all-tip": "Đồng bộ cơ sở dữ liệu không đồng bộ và có thể mất vài giây đến vài phút",
- "instance.sync.sync-new": "Chỉ đồng bộ cơ sở dữ liệu mới",
- "instance.syncing": "Đang đồng bộ hóa ...",
- "instance.test-connection": "Kiểm tra kết nối",
- "instance.testing-connection": "Đang kiểm tra kết nối",
- "instance.type-or-paste-credentials-write-only": "Nhập hoặc dán THÔNG TIN XÁC THỰC - chỉ ghi",
- "instance.unable-to-connect": "Bytebase không thể kết nối với phiên bản. Chúng tôi khuyên bạn nên xem xét lại thông tin kết nối. Nhưng bạn có thể bỏ qua cảnh báo này ngay bây giờ. Bạn vẫn có thể sửa thông tin kết nối từ trang chi tiết phiên bản sau khi tạo.\n\nChi tiết lỗi: {{0}}",
- "instance.users": "Người dùng",
- "instance.your-snowflake-account-locator": "Định vị tài khoản Snowflake của bạn",
"issue": {
- "labels": "Nhãn vấn đề",
"advanced-search": {
"filter": "Bộ lọc"
},
@@ -663,6 +652,7 @@
"limits": "Giới hạn",
"options": "Tùy chọn"
},
+ "labels": "Nhãn vấn đề",
"risk-level": {
"high": "Cao",
"moderate": "Trung bình",
@@ -686,15 +676,12 @@
"error": {
"key-duplicated": "Khóa trùng lặp",
"key-necessary": "Khóa là bắt buộc",
- "max-value-length-exceeded": "Độ dài giá trị không được vượt quá {{length}} ký tự"
- }
+ "max-value-length-exceeded": "Độ dài giá trị không được vượt quá {{length}} ký tự",
+ "value-necessary": "Giá trị là bắt buộc"
+ },
+ "add-label": "Thêm nhãn",
+ "empty-label-value": "Trống"
},
- "label.add-label": "Thêm nhãn",
- "label.empty-label-value": "Trống",
- "label.error.key-duplicated": "Khóa trùng lặp",
- "label.error.key-necessary": "Khóa là bắt buộc",
- "label.error.max-value-length-exceeded": "Độ dài giá trị không được vượt quá {{length}} ký tự",
- "label.error.value-necessary": "Giá trị là bắt buộc",
"landing": {
"changelog-for-version": "Nhật ký thay đổi cho phiên bản {{version}}",
"last-visit": "Lần truy cập cuối",
@@ -752,9 +739,6 @@
"success-prompt": "Đã tạo thành công dự án {{name}}."
},
"filter-projects": "Lọc dự án",
- "table": {
- "name": "Tên"
- },
"masking-exemption": {
"all-levels": "Tất cả các cấp",
"expires-in-days_one": "Hết hạn sau {{days}} ngày",
@@ -851,6 +835,9 @@
"success-updated": "Đã cập nhật thành công cài đặt dự án.",
"update-failed": "Không cập nhật được cài đặt dự án."
},
+ "table": {
+ "name": "Tên"
+ },
"webhook": {
"activity-support-direct-message": "Hỗ trợ gửi tin nhắn trực tiếp đến người dùng liên quan",
"add-a-webhook": "Thêm một webhook",
@@ -886,7 +873,6 @@
"new-project": "Mới Dự án",
"request-export-data": "Yêu cầu Xuất"
},
- "quick-action.add-instance": "@:common.add @:common.instance",
"release": {
"releases": "Bản phát hành"
},
@@ -896,9 +882,9 @@
}
},
"resource": {
- "delete-warning-with-resources": "\"{{name}}\" được sử dụng bởi các tài nguyên sau:",
+ "delete-warning": "\"{{name}}\" sẽ bị xóa. Hành động này không thể hoàn tác.",
"delete-warning-retry": "Vui lòng xóa nó khỏi các tài nguyên này rồi thử lại.",
- "delete-warning": "\"{{name}}\" sẽ bị xóa. Hành động này không thể hoàn tác."
+ "delete-warning-with-resources": "\"{{name}}\" được sử dụng bởi các tài nguyên sau:"
},
"resource-id": {
"cannot-be-changed-later": "Nó không thể được thay đổi sau này.",
@@ -911,13 +897,6 @@
"pattern": "ID {{resource}} có thể có chữ thường, chữ số hoặc dấu gạch nối. \nNó phải bắt đầu với một chữ cái viết thường và kết thúc bằng một chữ cái hoặc số."
}
},
- "resource-id.cannot-be-changed-later": "Nó không thể được thay đổi sau này.",
- "resource-id.description": "ID {{resource}} là một mã định danh duy nhất. Bạn không thể thay đổi nó sau khi tạo.",
- "resource-id.self": "ID {{resource}}",
- "resource-id.validation.duplicated": "ID {{resource}} đã tồn tại. Vui lòng chọn một ID khác.",
- "resource-id.validation.empty": "ID {{resource}} không được để trống",
- "resource-id.validation.overflow": "ID {{resource}} quá dài. Nó phải có ít hơn 64 ký tự.",
- "resource-id.validation.pattern": "ID {{resource}} có thể có chữ thường, chữ số hoặc dấu gạch nối. \nNó phải bắt đầu với một chữ cái viết thường và kết thúc bằng một chữ cái hoặc số.",
"role": {
"custom-roles": {
"self": "Vai trò tùy chỉnh"
@@ -940,13 +919,14 @@
"self": "Vai trò không gian làm việc"
}
},
+ "schema-editor": {
+ "raw-sql": "Raw SQL"
+ },
"schema-template": {
"classification": {
"search": "Tìm kiếm phân loại"
}
},
- "setting.label.key-placeholder": "Khóa nhãn...",
- "setting.label.value-placeholder": "Giá trị nhãn...",
"settings": {
"general": {
"workspace": {
@@ -1165,8 +1145,13 @@
"reactivate-confirm-title": "Bạn có chắc muốn kích hoạt lại?"
},
"add-member": "Thêm thành viên",
+ "add-service-account": "Thêm tài khoản dịch vụ",
"add-user": "Thêm người dùng",
+ "add-workload-identity": "Thêm danh tính Workload",
+ "all-users": "Tất cả người dùng",
+ "assign-role": "Assign role",
"cannot-revoke-self": "You cannot revoke yourself",
+ "copy-service-key": "Sao chép Khóa Dịch vụ",
"entra-sync": {
"description": "Đồng bộ người dùng và nhóm từ Entra ID (trước đây là Azure AD) hoặc Okta sang phiên bản Bytebase của bạn.",
"endpoint": "Điểm cuối",
@@ -1196,7 +1181,11 @@
"update-group": "Cập nhật nhóm",
"workspace-domain-required": "Vui lòng thiết lập tên miền không gian làm việc trước."
},
+ "inactive-service-accounts": "Tài khoản dịch vụ không hoạt động",
"inactive-users": "Người dùng không hoạt động",
+ "inactive-workload-identities": "Danh tính Workload không hoạt động",
+ "reset-service-key": "Đặt lại Khóa Dịch vụ",
+ "reset-service-key-alert": "Hành động này không thể hoàn tác. Khóa cũ sẽ ngừng hoạt động ngay lập tức. Bạn có chắc chắn muốn đặt lại khóa dịch vụ này?",
"revoke-access": "Thu hồi Quyền truy cập",
"revoke-access-alert": "Bạn có chắc muốn thu hồi quyền truy cập?",
"revoke-allusers-alert": "Thu hồi \"Tất cả người dùng\" sẽ thu hồi các vai trò liên quan từ tất cả người dùng khác trong không gian làm việc của bạn. Bạn có chắc chắn muốn tiếp tục không?",
@@ -1208,30 +1197,21 @@
"select-role_one": "Chọn vai trò",
"select-role_other": "Chọn vai trò",
"service-account": "Tài khoản dịch vụ",
+ "service-accounts": "Tài khoản dịch vụ",
+ "service-key-copied": "Khóa Dịch vụ đã được sao chép vào khay nhớ tạm, vui lòng giữ bí mật.",
"show-inactive": "Hiển thị tài khoản không hoạt động",
"table": {
"account": "Tài khoản",
"groups": "Nhóm",
"roles": "Vai trò"
},
+ "update-service-account": "Cập nhật tài khoản dịch vụ",
"update-user": "Cập nhật người dùng",
+ "update-workload-identity": "Cập nhật danh tính Workload",
"view-by-members": "Xem theo thành viên",
"view-by-roles": "Xem theo vai trò",
- "workload-identity": "Workload Identity",
- "add-service-account": "Thêm tài khoản dịch vụ",
- "add-workload-identity": "Thêm danh tính Workload",
- "all-users": "Tất cả người dùng",
- "assign-role": "Assign role",
- "copy-service-key": "Sao chép Khóa Dịch vụ",
- "inactive-service-accounts": "Tài khoản dịch vụ không hoạt động",
- "inactive-workload-identities": "Danh tính Workload không hoạt động",
- "reset-service-key": "Đặt lại Khóa Dịch vụ",
- "reset-service-key-alert": "Hành động này không thể hoàn tác. Khóa cũ sẽ ngừng hoạt động ngay lập tức. Bạn có chắc chắn muốn đặt lại khóa dịch vụ này?",
- "service-accounts": "Tài khoản dịch vụ",
- "service-key-copied": "Khóa Dịch vụ đã được sao chép vào khay nhớ tạm, vui lòng giữ bí mật.",
- "update-service-account": "Cập nhật tài khoản dịch vụ",
- "update-workload-identity": "Cập nhật danh tính Workload",
"workload-identities": "Danh tính Workload",
+ "workload-identity": "Workload Identity",
"workload-identity-advanced": "Advanced Settings",
"workload-identity-all-branches-tags": "All branches and tags",
"workload-identity-allowed-branches-tags": "Allowed Branches/Tags",
@@ -1255,6 +1235,7 @@
"workload-identity-tag-hint": "Leave empty to allow all tags"
},
"profile": {
+ "email": "Email",
"password": "Mật khẩu",
"password-confirm": "Xác nhận mật khẩu",
"password-confirm-placeholder": "Xác nhận mật khẩu mới",
@@ -1262,7 +1243,6 @@
"password-mismatch": "Mật khẩu mới không khớp",
"phone": "Điện thoại",
"phone-tips": "Nhớ bao gồm mã quốc gia +1xxxxxx",
- "email": "Email",
"role": "Vai trò",
"subscription": "(Nâng cấp để kích hoạt quản lý vai trò)"
},
@@ -1329,10 +1309,12 @@
},
"re-order": "Sắp xếp lại"
},
+ "never-expires": "Không bao giờ hết hạn",
"semantic-types": {
"add-from-template": "Thêm từ mẫu",
"label": "Các cột có cùng loại ngữ nghĩa sẽ sử dụng cùng một thuật toán che.",
"select": "Chọn loại ngữ nghĩa",
+ "self": "Loại ngữ nghĩa",
"table": {
"delete": "Xóa loại ngữ nghĩa này?",
"description": "Mô tả",
@@ -1344,29 +1326,27 @@
"description": "Bạn có thể áp dụng các loại ngữ nghĩa tích hợp từ mẫu. Mẫu tích hợp không thể thay đổi.",
"duplicate-warning": "Loại ngữ nghĩa \"{{title}}\" đã tồn tại"
},
- "use-predefined-type": "Sử dụng Loại định nghĩa trước",
- "self": "Loại ngữ nghĩa"
- },
- "never-expires": "Không bao giờ hết hạn"
+ "use-predefined-type": "Sử dụng Loại định nghĩa trước"
+ }
},
"sidebar": {
"audit-log": "Nhật ký kiểm tra",
"custom-roles": "Vai trò tùy chỉnh",
+ "data-access": "Truy cập dữ liệu",
"data-classification": "Phân loại dữ liệu",
"general": "Chung",
"global-masking": "Che giấu toàn cục",
+ "iam-and-admin": "IAM & Quản trị",
"im-integration": "Tích hợp",
+ "integration": "Tích hợp",
"mcp": "MCP",
"members": "Thành viên",
"members-and-groups": "Thành viên & Nhóm",
+ "profile": "Hồ sơ",
+ "security-and-policy": "Bảo mật & Chính sách",
"sso": "SSO",
"subscription": "Gói đăng ký",
- "users-and-groups": "Người dùng & Nhóm",
- "data-access": "Truy cập dữ liệu",
- "iam-and-admin": "IAM & Quản trị",
- "integration": "Tích hợp",
- "profile": "Hồ sơ",
- "security-and-policy": "Bảo mật & Chính sách"
+ "users-and-groups": "Người dùng & Nhóm"
},
"sso": {
"create": "Tạo SSO",
@@ -1455,7 +1435,6 @@
}
},
"sql-editor": {
- "self": "Trình soạn thảo SQL",
"access-grants": "Access Grants",
"access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",
"activate-access": "Activate",
@@ -1464,11 +1443,10 @@
"grant-type-unmask": "Unmask",
"revoke-access": "Revoke",
"revoke-confirm": "Are you sure you want to revoke this access grant?",
+ "self": "Trình soạn thảo SQL",
"view-issue": "View Issue"
},
"sql-review": {
- "configure-policy": "Configure policy",
- "title": "SQL Review",
"add-or-remove-rules": "Add or remove rules",
"add-rules": "Add rules",
"attach-resource": {
@@ -1477,6 +1455,7 @@
"no-linked-resources": "No attached resources",
"self": "Attach to resources"
},
+ "configure-policy": "Configure policy",
"create": {
"basic-info": {
"display-name": "Display name",
@@ -1501,12 +1480,14 @@
"policy-removed": "Successfully removed the review policy.",
"policy-update-failed": "Failed to update the review policy.",
"policy-updated": "Successfully updated the review policy.",
- "review-policy": "Review policy"
+ "review-policy": "Review policy",
+ "title": "SQL Review"
},
"subscription": {
"contact-us": "Liên hệ chúng tôi",
"current": "Gói hiện tại",
"description": "Bạn có thể tải lên giấy phép Bytebase của mình để mở khóa các tính năng chuyên nghiệp/doanh nghiệp.",
+ "disabled-feature": "Tính năng bị vô hiệu hóa",
"enterprise-free-trial": "Dùng thử Doanh nghiệp miễn phí {{days}} ngày",
"expired": "đã hết hạn",
"expires-at": "Hết hạn vào",
@@ -1516,7 +1497,8 @@
"license": "Giấy phép",
"missing-license-attention": "Bạn cần gán giấy phép cho phiên bản để bật tính năng này.",
"used-and-total-license": "Giấy phép phiên bản đã gán / Tổng số",
- "used-and-total-user": "Giới hạn người dùng đang hoạt động / Tổng số"
+ "used-and-total-user": "Giới hạn người dùng đang hoạt động / Tổng số",
+ "n-license-remain": "còn lại {{n}}"
},
"max-instance-count": "Số lượng phiên bản tối đa",
"plan": {
@@ -1597,20 +1579,15 @@
"title": "Giới hạn số lượng người dùng",
"upgrade": "Nâng cấp để có thêm hạn ngạch người dùng."
}
- },
- "disabled-feature": "Tính năng bị vô hiệu hóa"
+ }
},
- "subscription.instance-assignment.assign-license": "Gán giấy phép",
- "subscription.instance-assignment.n-license-remain": "còn lại {{n}}",
- "subscription.usage.instance-count.runoutof": "Bạn đã hết hạn ngạch {{total}} phiên bản của mình.",
- "subscription.usage.instance-count.title": "Giới hạn số lượng phiên bản",
"two-factor": {
- "enabled": "Đã bật 2FA",
"description": "Xác thực hai yếu tố cung cấp một lớp bảo mật bổ sung cho các tài khoản thành viên. Khi đăng nhập, bạn sẽ được yêu cầu nhập mã bảo mật do Ứng dụng xác thực của bạn tạo.",
"disable": {
"description": "Bạn sắp tắt xác thực hai yếu tố cho tài khoản của mình. Bạn sẽ không còn phải nhập mã bảo mật do Ứng dụng xác thực của bạn tạo khi đăng nhập.",
"self": "Tắt xác thực hai yếu tố"
},
+ "enabled": "Đã bật 2FA",
"messages": {
"2fa-disabled": "Xác thực hai yếu tố bị tắt.",
"2fa-enabled": "Xác thực hai yếu tố được bật.",
@@ -1652,67 +1629,106 @@
"self": "Bí mật hai yếu tố của bạn"
}
},
+ "data-source": {
+ "additional-node-addresses": "Địa chỉ nút bổ sung",
+ "connection-string-schema": "Lược đồ chuỗi kết nối",
+ "connection-type": "Loại kết nối",
+ "delete-read-only-data-source": "Xóa nguồn dữ liệu chỉ đọc",
+ "direct-connection": "Kết nối trực tiếp",
+ "extra-params": {
+ "description": "Các tham số bổ sung cho chuỗi kết nối cơ sở dữ liệu",
+ "self": "Thông số bổ sung"
+ },
+ "private-key-passphrase": "Mật khẩu khóa riêng",
+ "private-key-passphrase-tip": "Mật khẩu tùy chọn cho khóa riêng được mã hóa",
+ "read-replica-host": "Máy chủ bản sao đọc",
+ "read-replica-port": "Cổng bản sao đọc",
+ "replica-set": "Bộ bản sao",
+ "snowflake-keypair-tip": "Xác thực cặp khóa",
+ "ssh-connection": "Kết nối SSH",
+ "ssh-type": {
+ "none": "Không có",
+ "tunnel-and-private-key": "Đường hầm + Khóa riêng"
+ },
+ "ssh": {
+ "host": "Máy chủ",
+ "password": "Mật khẩu",
+ "port": "Cổng",
+ "private-key": "Khóa riêng",
+ "ssh-key": "Khóa SSH",
+ "user": "Người dùng"
+ },
+ "ssl-connection": "Kết nối SSL",
+ "ssl": {
+ "ca-cert": "Chứng chỉ CA",
+ "client-cert": "Chứng chỉ máy khách",
+ "client-key": "Khóa máy khách",
+ "verify-certificate": "Xác minh chứng chỉ TLS",
+ "verify-certificate-tooltip": "Bật xác minh chứng chỉ TLS để kết nối an toàn. Chỉ tắt cho môi trường phát triển hoặc khi không thể xác thực chứng chỉ đúng cách (ví dụ: chứng chỉ tự ký, môi trường VPN). Cảnh báo: Tắt xác minh là không an toàn"
+ },
+ "no-read-only-data-source": "Không có nguồn dữ liệu chỉ đọc",
+ "private-key-passphrase-placeholder": "Để trống nếu khóa riêng của bạn không được mã hóa"
+ },
+ "setting": {
+ "label": {
+ "key-placeholder": "Khóa nhãn...",
+ "value-placeholder": "Giá trị nhãn..."
+ }
+ },
"agent": {
- "assistant-title": "Trợ lý Bytebase",
- "resize": "Resize",
- "minimize": "Thu nhỏ",
- "close": "Đóng",
- "input-placeholder": "Hỏi bất cứ điều gì...",
- "send": "Gửi",
- "args": "Tham số:",
- "result": "Kết quả:",
- "stop": "Dừng",
- "interrupted": "Bị gián đoạn",
- "retry-last-chat-turn": "Thử lại lượt trước",
- "interrupted-retry-hint": "Thử lại sẽ chạy lại lượt bị gián đoạn với trạng thái trang hiện tại.",
- "new-chat": "Chat mới",
- "rename-chat-placeholder": "Nhập tên chat",
- "archive-chat": "Lưu trữ",
- "unarchive-chat": "Bỏ lưu trữ",
- "delete-chat": "Xóa",
"active-only-chats": "Chỉ hoạt động",
- "archived-only-chats": "Chỉ lưu trữ",
- "archive-chat-confirmation": "Lưu trữ chat này?",
- "delete-chat-confirmation": "Xóa chat này?",
- "chat-list-label": "Các chat",
- "chat-default-title": "Chat mới",
+ "ai-not-configured": {
+ "configure": "Cấu hình",
+ "contact-admin": "Liên hệ quản trị viên không gian làm việc để cấu hình AI.",
+ "description": "AI chưa được cấu hình cho không gian làm việc này.",
+ "title": "AI chưa được cấu hình"
+ },
+ "archive-chat": "Lưu trữ cuộc trò chuyện",
+ "archive-chat-confirmation": "Bạn có chắc chắn muốn lưu trữ cuộc trò chuyện này?",
+ "archived-only-chats": "Chỉ đã lưu trữ",
+ "args": "Tham số",
+ "assistant-title": "Trợ lý AI",
+ "cancel": "Hủy",
"chat-archived-label": "Đã lưu trữ",
- "chat-status-idle": "Rảnh",
- "chat-status-running": "Đang chạy",
- "chat-status-awaiting-user": "Đang chờ nhập",
+ "chat-default-title": "Cuộc trò chuyện mới",
+ "chat-list-label": "Cuộc trò chuyện",
+ "chat-status-awaiting-user": "Đang chờ người dùng",
"chat-status-error": "Lỗi",
+ "chat-status-idle": "Rảnh",
"chat-status-interrupted": "Bị gián đoạn",
- "chat-total-tokens": "Token đã dùng: {{count}}",
- "reply": "Trả lời",
+ "chat-status-running": "Đang chạy",
+ "chat-total-tokens": "Tổng số token",
+ "close": "Đóng",
"confirm": "Xác nhận",
- "cancel": "Hủy",
- "pending-input-hint": "Hãy trả lời bên dưới để tiếp tục chat này.",
- "pending-confirm-hint": "Chọn xác nhận hoặc hủy để tiếp tục chat này.",
- "pending-choose-hint": "Chọn một tùy chọn để tiếp tục chat này.",
- "tool-ask-user": "Đang chờ phản hồi của bạn",
- "tool-ask-user-input": "Cần nhập dữ liệu",
- "tool-ask-user-confirm": "Cần xác nhận",
- "tool-ask-user-choose": "Cần lựa chọn",
- "tool-response-submitted": "Đã gửi phản hồi",
- "tool-prompt": "Câu hỏi:",
- "tool-default-value": "Giá trị mặc định:",
- "tool-options": "Tùy chọn:",
- "tool-answer": "Câu trả lời:",
- "tool-value": "Giá trị:",
- "tool-completed": "Hoàn tất",
- "tool-failed": "Hoàn tất kèm vấn đề",
- "ai-not-configured": {
- "title": "Trợ lý AI chưa được cấu hình cho workspace này",
- "description": "Để tiếp tục với page agent, hãy bật Trợ lý AI trong cài đặt workspace.",
- "configure": "Cấu hình AI",
- "contact-admin": "Vui lòng liên hệ quản trị viên của tổ chức để cấu hình Trợ lý AI."
- }
- },
- "changelog": {
- "select": "Schema version is recorded each time a schema change is applied via Bytebase",
- "self": "Changelog"
- },
- "schema-editor": {
- "raw-sql": "Raw SQL"
+ "delete-chat": "Xóa cuộc trò chuyện",
+ "delete-chat-confirmation": "Bạn có chắc chắn muốn xóa cuộc trò chuyện này? Hành động này không thể hoàn tác.",
+ "input-placeholder": "Hỏi AI bất cứ điều gì...",
+ "interrupted": "Bị gián đoạn",
+ "interrupted-retry-hint": "Cuộc trò chuyện đã bị gián đoạn. Bạn có thể thử lại hoặc gửi tin nhắn mới.",
+ "minimize": "Thu nhỏ",
+ "new-chat": "Cuộc trò chuyện mới",
+ "pending-choose-hint": "Vui lòng chọn một tùy chọn ở trên",
+ "pending-confirm-hint": "Vui lòng xác nhận hoặc hủy ở trên",
+ "pending-input-hint": "Vui lòng cung cấp đầu vào ở trên",
+ "rename-chat-placeholder": "Nhập tên cuộc trò chuyện",
+ "reply": "Trả lời",
+ "resize": "Thay đổi kích thước",
+ "result": "Kết quả",
+ "retry-last-chat-turn": "Thử lại",
+ "send": "Gửi",
+ "stop": "Dừng",
+ "tool-answer": "Câu trả lời",
+ "tool-ask-user": "Đang hỏi người dùng",
+ "tool-ask-user-choose": "Chọn một tùy chọn",
+ "tool-ask-user-confirm": "Xác nhận hành động",
+ "tool-ask-user-input": "Cung cấp đầu vào",
+ "tool-completed": "Đã hoàn thành",
+ "tool-default-value": "Mặc định",
+ "tool-failed": "Thất bại",
+ "tool-options": "Tùy chọn",
+ "tool-prompt": "Lời nhắc",
+ "tool-response-submitted": "Phản hồi đã được gửi",
+ "tool-value": "Giá trị",
+ "unarchive-chat": "Bỏ lưu trữ"
}
}
diff --git a/frontend/src/react/locales/zh-CN.json b/frontend/src/react/locales/zh-CN.json
index 9b16cda04d..fd926cecf5 100644
--- a/frontend/src/react/locales/zh-CN.json
+++ b/frontend/src/react/locales/zh-CN.json
@@ -60,7 +60,13 @@
"self": "条件"
}
},
+ "changelog": {
+ "select": "Schema 版本是在每次通过 Bytebase 执行 Schema 变更后被记录下来的",
+ "self": "变更历史"
+ },
"common": {
+ "activated": "已激活",
+ "active": "开启",
"add": "添加",
"add-permissions": "添加权限",
"added": "已创建",
@@ -68,10 +74,14 @@
"all": "全部",
"approved": "已批准",
"archive": "归档",
+ "archive-description": "将「{{name}}」标记为已归档且只读。",
+ "archive-resource": "归档{{type}}",
"archived": "已归档",
"back": "返回",
"cancel": "取消",
"cannot-undo-this-action": "这个操作无法撤销",
+ "changelog": "变更历史",
+ "classification-level": "分类等级",
"clear": "清除",
"close": "关闭",
"closed": "已关闭",
@@ -79,48 +89,82 @@
"configure": "配置",
"configure-now": "现在配置",
"confirm": "确认",
+ "confirm-and-add": "确认并添加",
"confirm-and-update": "确认并更新",
+ "confirm-archive": "确定归档资源?",
+ "confirm-delete": "确定删除资源?",
+ "confirm-to-revert": "确定撤销编辑?",
"copied": "已拷贝",
"copy": "拷贝",
+ "copy-failed": "Copy failed",
"create": "创建",
"created": "已创建",
+ "created-at": "创建于",
+ "creator": "创建人",
+ "danger-zone": "危险区域",
+ "database": "数据库",
+ "database-group": "数据库分组",
+ "databases": "数据库",
+ "default": "默认",
"delete": "删除",
"delete-resource": "删除{{type}}",
+ "delete-resource-description": "删除「{{name}}」后将无法恢复,请确认。",
"deleted": "已删除",
"description": "描述",
+ "deselect-all": "Deselect all",
+ "disable": "禁用",
"discard-changes": "取消修改",
+ "download": "下载",
"edit": "编辑",
"email": "邮箱",
+ "email-ascii-only": "邮箱地址仅支持 ASCII 字符(英文字母、数字及 . _ - + 等符号)。",
+ "empty": "Empty",
+ "enable": "开启",
+ "enabled": "开启",
"environment": "环境",
"environment-name": "环境名",
+ "environments": "环境",
+ "expiration": "Expiration",
"export": "导出",
"failed": "失败",
"file-selector": {
"size-limit": "文件大小需小于 {{size}} MiB",
"type-limit": "仅支持 {{extension}} 类型的文件"
},
+ "filter": "Filter",
"filter-by-name": "按名称过滤",
"from": "从",
"general": "通用",
"groups": "分组",
+ "home": "主页",
"id": "ID",
"instance": "实例",
+ "instances": "实例",
"is-required": "is required",
+ "issues": "工单",
+ "items": "items",
+ "key": "键",
"labels": "标签",
"learn-more": "了解更多",
"leave-without-saving": "不保存变动?",
"load-more": "加载更多",
"loading": "加载中",
+ "manage": "管理",
+ "manually-select": "Manually select",
"members_one": "成员",
"members_other": "成员",
"missing-required-permission": "缺少必需的权限 {{permissions}}",
"n-items-selected": "已选 {{n}} 项",
+ "n-more": "+{{n}} 更多",
"name": "名称",
"next": "下一步",
"no-data": "无数据",
"ok": "OK",
"operations": "操作",
+ "optional": "Optional",
+ "pending": "待审批",
"permissions": "权限",
+ "previous": "上一步",
"project": "项目",
"projects": "项目",
"reason": "Reason",
@@ -130,23 +174,36 @@
"reorder": "排序",
"required-permission": "所需权限",
"required-workspace-permission": "初始化工作空间 UX 需要以下权限",
+ "resource": "资源",
+ "resources": "资源",
"resource-not-found": "未找到请求的资源",
"restore": "恢复",
"restored": "已恢复",
"revert": "恢复",
+ "revoke": "撤销",
+ "revoked": "已撤销",
"rows-per-page": "每页行数",
"save": "保存",
+ "schema": "模式",
+ "scope": "范围",
"search": "搜索",
+ "search-for-more": "搜索更多",
+ "type-to-search": "输入以搜索",
"select": "请选择",
"select-all": "全选",
+ "selected": "selected",
"sensitive-placeholder": "敏感数据 - 仅写入",
"setting": "设置",
"settings": "设置",
"sql": "SQL",
"state": "状态",
+ "statement": "语句",
+ "status": "状态",
"system": "系统",
+ "table": "表",
"title": "标题",
"to": "到",
+ "total": "Total",
"total-n-items": "共 {{n}} 项",
"type": "类型",
"unassigned": "未分配",
@@ -156,107 +213,27 @@
"updated": "已更新",
"upload": "上传",
"users": "用户",
+ "value": "值",
"view": "查看",
"view-details": "查看详情",
"warning": "警告",
+ "webhooks": "Webhook",
"you": "您",
- "copy-failed": "Copy failed",
+ "admin": "管理员",
+ "continue-anyway": "仍要继续",
+ "creating": "创建中...",
+ "custom": "自定义",
+ "detailed-guide": "详细指南",
"dismiss": "关闭",
- "activated": "已激活",
- "active": "开启",
- "archive-description": "将「{{name}}」标记为已归档且只读。",
- "archive-resource": "归档{{type}}",
- "changelog": "变更历史",
- "classification-level": "分类等级",
- "confirm-and-add": "确认并添加",
- "confirm-archive": "确定归档资源?",
- "confirm-delete": "确定删除资源?",
- "confirm-to-revert": "确定撤销编辑?",
- "created-at": "创建于",
- "creator": "创建人",
- "danger-zone": "危险区域",
- "database": "数据库",
- "database-group": "数据库分组",
- "databases": "数据库",
- "default": "默认",
- "delete-resource-description": "删除「{{name}}」后将无法恢复,请确认。",
- "deselect-all": "Deselect all",
- "disable": "禁用",
- "download": "下载",
- "email-ascii-only": "邮箱地址仅支持 ASCII 字符(英文字母、数字及 . _ - + 等符号)。",
- "empty": "Empty",
- "enable": "开启",
- "enabled": "开启",
- "environments": "环境",
- "expiration": "Expiration",
- "filter": "Filter",
- "home": "主页",
- "instances": "实例",
- "issues": "工单",
- "items": "items",
- "key": "键",
- "manage": "管理",
- "manually-select": "Manually select",
- "n-more": "+{{n}} 更多",
- "optional": "Optional",
- "pending": "待审批",
- "previous": "上一步",
- "resource": "资源",
- "resources": "资源",
- "revoke": "撤销",
- "revoked": "已撤销",
- "schema": "模式",
- "scope": "范围",
- "search-for-more": "搜索更多",
- "selected": "selected",
- "statement": "语句",
- "status": "状态",
- "table": "表",
- "total": "Total",
- "value": "值",
- "webhooks": "Webhook"
+ "minutes": "分钟",
+ "overview": "概览",
+ "password": "密码",
+ "read-only": "只读",
+ "updating": "更新中...",
+ "user": "用户",
+ "username": "用户名",
+ "write-only": "仅写入"
},
- "common.add": "添加",
- "common.admin": "管理员",
- "common.archive": "归档",
- "common.archived": "已归档",
- "common.cancel": "取消",
- "common.cannot-undo-this-action": "这个操作无法撤销",
- "common.confirm-and-update": "确认并更新",
- "common.continue-anyway": "仍要继续",
- "common.create": "创建",
- "common.creating": "创建中...",
- "common.custom": "自定义",
- "common.database": "数据库",
- "common.databases": "数据库",
- "common.default": "默认",
- "common.delete": "删除",
- "common.delete-resource": "删除{{type}}",
- "common.deleted": "已删除",
- "common.detailed-guide": "详细指南",
- "common.edit": "编辑",
- "common.environment": "环境",
- "common.key": "键",
- "common.labels": "标签",
- "common.learn-more": "了解更多",
- "common.loading": "加载中",
- "common.minutes": "分钟",
- "common.no-data": "无数据",
- "common.optional": "可选",
- "common.overview": "概览",
- "common.password": "密码",
- "common.project": "项目",
- "common.read-only": "只读",
- "common.restore": "恢复",
- "common.sensitive-placeholder": "敏感数据 - 仅写入",
- "common.unlimited": "无限制",
- "common.updated": "已更新",
- "common.updating": "更新中",
- "common.user": "用户",
- "common.username": "用户名",
- "common.value": "值",
- "common.warning": "警告",
- "common.write-only": "仅写入",
"create-db": {
"cluster": "集群",
"database-owner-name": "数据库所有者",
@@ -332,56 +309,22 @@
},
"self": "自定义审批"
},
- "data-source.additional-node-addresses": "附加节点地址",
- "data-source.connection-string-schema": "连接串模式",
- "data-source.connection-type": "连接类型",
- "data-source.delete-read-only-data-source": "删除只读数据源",
- "data-source.direct-connection": "Direct Connection",
- "data-source.extra-params.description": "数据库连接字符串的其他参数",
- "data-source.extra-params.self": "额外的参数",
- "data-source.no-read-only-data-source": "没有只读数据源",
- "data-source.private-key-passphrase": "私钥密码",
- "data-source.private-key-passphrase-placeholder": "如果私钥未加密,请留空",
- "data-source.private-key-passphrase-tip": "加密私钥的可选密码",
- "data-source.read-replica-host": "只读副本 Host",
- "data-source.read-replica-port": "只读副本端口",
- "data-source.replica-set": "副本集",
- "data-source.snowflake-keypair-tip": "密钥对认证",
- "data-source.ssh-connection": "SSH 连接",
- "data-source.ssh-type.none": "不使用",
- "data-source.ssh-type.tunnel-and-private-key": "隧道 + 私钥",
- "data-source.ssh.host": "服务器",
- "data-source.ssh.password": "密码",
- "data-source.ssh.port": "端口",
- "data-source.ssh.private-key": "私钥",
- "data-source.ssh.ssh-key": "SSH 密钥",
- "data-source.ssh.user": "用户名",
- "data-source.ssl-connection": "SSL 连接",
- "data-source.ssl.ca-cert": "CA 证书",
- "data-source.ssl.client-cert": "客户端证书",
- "data-source.ssl.client-key": "客户端密钥",
- "data-source.ssl.verify-certificate": "验证 TLS 证书",
- "data-source.ssl.verify-certificate-tooltip": "启用 TLS 证书验证以确保安全连接。仅在开发环境或证书无法正确验证的情况下禁用(例如自签名证书、VPN 环境)。警告:禁用验证是不安全的",
"database": {
+ "all": "所有数据库",
+ "change-database": "变更数据库",
"classification": {
"description": "定义分类分级,跨列和数据库统一应用脱敏策略。"
},
"edit-environment": "编辑环境",
"edit-labels": "编辑标签",
"engine": "引擎",
- "filter-database": "筛选数据库",
- "selected-n-databases": "已选择 {{n}} 个数据库",
- "successfully-transferred-databases": "成功转移数据库",
- "sync-schema-button": "同步 Schema",
- "sync-status-failed": "同步失败",
- "transfer-project": "转移项目",
- "unassign": "取消分配",
- "all": "所有数据库",
- "change-database": "变更数据库",
"expression": "Expression",
+ "filter-database": "筛选数据库",
"mixed-label-values": "混合值",
"mixed-label-values-warning": "部分标签拥有不同的值,编辑标签将会批量应用。仅在您打算更改时再编辑这些键值对。",
"select": "选择数据库",
+ "selected-n-databases": "已选择 {{n}} 个数据库",
+ "successfully-transferred-databases": "成功转移数据库",
"sync-schema": {
"copy-schema": "粘贴 Schema 文本",
"description": "Bytebase 支持将一个指定的 Schema 同步到一个或多个目标数据库。(支持 MySQL, PostgreSQL, Oracle, MSSQL 以及 TiDB)",
@@ -404,8 +347,13 @@
"title": "库表同步",
"with-diff": "有差异"
},
+ "sync-schema-button": "同步 Schema",
+ "sync-status-failed": "同步失败",
+ "transfer-project": "转移项目",
+ "unassign": "取消分配",
"unassign-alert-description": "选定的数据库将从项目中移除",
- "unassign-alert-title": "取消分配数据库"
+ "unassign-alert-title": "取消分配数据库",
+ "sync-complete-for-instance": "实例 '{{0}}' 同步完成"
},
"database-group": {
"condition": {
@@ -418,29 +366,23 @@
"select": "Select database group",
"unmatched-database": "Unmatched database"
},
- "database.engine": "引擎",
- "database.filter-database": "过滤数据库",
- "database.sync-complete-for-instance": "实例 '{{0}}' 同步完成",
"db": {
"character-set": "字符集",
"collation": "排序规则",
"encoding": "编码",
"failed-to-sync-schema": "同步 schema 失败",
"start-to-sync-schema": "开始同步 schema",
- "successfully-synced-schema": "成功同步 schema"
+ "successfully-synced-schema": "成功同步 schema",
+ "n-databases-had-sync-errors": "{{0}} 个数据库同步出错",
+ "syncing-databases-for-instance": "正在同步 {{0}} 的数据库..."
},
- "db.failed-to-sync-schema": "同步 schema 失败",
- "db.n-databases-had-sync-errors": "{{0}} 个数据库同步出错",
- "db.start-to-sync-schema": "开始同步 schema",
- "db.syncing-databases-for-instance": "正在同步 {{0}} 的数据库...",
- "dynamic.resource.instance": "实例 ID",
"environment": {
"create": "创建环境",
"delete": "删除此环境",
"delete-description": "删除环境也会将其从相关实例和数据库中删除。这个操作无法撤销",
"reorder": "重新排序环境",
- "successfully-updated-environment": "环境'{{name}}'更新成功",
- "select": "选择环境"
+ "select": "选择环境",
+ "successfully-updated-environment": "环境'{{name}}'更新成功"
},
"error-page": {
"go-back-home": "回到主页",
@@ -529,132 +471,179 @@
"sync-all-tip": "数据库同步是异步的,可能需要几秒到几分钟",
"sync-new": "仅同步新数据库"
},
- "syncing": "同步中 ..."
+ "syncing": "同步中 ...",
+ "account-locator": "账户定位符",
+ "authentication-database": "认证数据库",
+ "connection-info": "连接信息",
+ "connection-options": "连接选项",
+ "create-gcp-credentials": "创建凭据的方法见",
+ "database-region": "数据库区域",
+ "endpoint": "端点",
+ "external-id": "外部 ID",
+ "external-id-description": "承担角色时用于额外安全性的外部 ID(可选)",
+ "external-id-placeholder": "可选的外部 ID",
+ "external-link": "外部链接",
+ "external-secret-azure": {
+ "secret-name": "密钥名称",
+ "vault-url": "Key Vault URL",
+ "secret-name-tips": "存储在 Azure Key Vault 中的密钥名称。",
+ "vault-url-tips": "Key Vault URL 应类似于 \"https://myvault.vault.azure.net/\""
+ },
+ "external-secret-gcp": {
+ "secret-name": "密钥完整路径",
+ "secret-name-tips": "密钥完整路径应类似于 \"projects/project-id/secrets/secret-id\""
+ },
+ "external-secret-vault": {
+ "vault-auth-type": {
+ "approle": {
+ "role-id": "Auth role id",
+ "secret-env-name": "环境变量名",
+ "secret-id": "Auth secret id",
+ "secret-plain-text": "明文",
+ "self": "AppRole"
+ },
+ "token": {
+ "self": "Token"
+ },
+ "self": "认证方式"
+ },
+ "vault-secret-key": "Secret key",
+ "vault-secret-path": "Secret path",
+ "vault-secret-engine-name": "Secret engine name",
+ "vault-secret-engine-tips": "仅支持 KV v2 储存",
+ "vault-tls-config": "Vault TLS 配置(可选)",
+ "vault-url": "Vault URL"
+ },
+ "external-secret": {
+ "key-name": "Secret key",
+ "secret-name": "Secret name"
+ },
+ "failed-to-connect-instance": "连接到实例失败。",
+ "failed-to-connect-instance-localhost": "如果您使用的 Docker 部署,请尝试使用 \"host.docker.internal\" 作为 Host 地址。",
+ "find-gcp-project-id": "查看 GCP 项目 ID 的方法见",
+ "find-gcp-project-id-and-instance-id": "查看 GCP 项目 ID 与实例 ID 的方法见",
+ "grants": "权限",
+ "host-or-socket": "Host 或 Socket",
+ "iam-extension": {
+ "client-id": "Client ID",
+ "client-secret": "Client Secret",
+ "credential-source": "凭证来源",
+ "specific-credential": "指定凭证",
+ "tenant-id": "Tenant ID",
+ "saas-default-credential-restriction": "出于安全考虑,Bytebase Cloud 不支持使用默认凭证。请提供具体凭证。"
+ },
+ "info-panel": {
+ "no-info": "暂无该引擎的额外信息。"
+ },
+ "instance-id": "实例 ID",
+ "instance-name": "实例名称",
+ "no-extra-params-configured": "没有配置的额外连接参数",
+ "no-params-yet-add-above": "尚未配置参数。\n使用上面的形式添加参数。",
+ "no-password": "无密码",
+ "parameter-name-placeholder": "参数名称",
+ "parameter-value-placeholder": "参数值",
+ "password-type": {
+ "aws-iam": "AWS RDS IAM",
+ "azure-iam": "Azure IAM",
+ "google-iam": "Google Cloud SQL IAM",
+ "password": "密码",
+ "external-secret-aws": "AWS Secrets Manager",
+ "external-secret-azure": "Azure Key Vault",
+ "external-secret-gcp": "GCP Secret Manager",
+ "external-secret-vault": "Vault (KV v2)"
+ },
+ "password-write-only": "YOUR_DB_PWD - 仅写入",
+ "port": "端口",
+ "project-id": "项目 ID",
+ "role-arn": "角色 ARN",
+ "role-arn-description": "用于跨账户访问的 IAM 角色。同账户访问请留空。",
+ "role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
+ "scan-interval": {
+ "default-never": "默认(永不)",
+ "description": "Bytebase 会定期同步实例的 schema 以及进行异常检测。",
+ "self": "扫描间隔",
+ "min-value": "最小值 {{value}} 分钟"
+ },
+ "section": {
+ "basic-info": "基本信息",
+ "connection": "连接"
+ },
+ "sentence": {
+ "console": {
+ "snowflake": "\b管理该实例的外部控制台 URL(如 AWS RDS 控制台,您的数据库控制台)"
+ },
+ "create-admin-user": "这是 Bytebase 用于连接数据库,执行 DDL 和 DML (非 SELECT) 操作的用户。",
+ "create-admin-user-non-sql": "这是 Bytebase 用于连接数据库,执行写和管理操作的用户。",
+ "create-readonly-user": "这是 Bytebase 用于连接数据库,执行诸如 SELECT 的只读操作的用户。",
+ "create-readonly-user-non-sql": "这是 Bytebase 用于连接数据库,执行只读操作的用户。",
+ "create-user-example": {
+ "postgresql": {
+ "warn": "如果您将要连接到的实例是由云服务供应商管理的话,那么 SUPERUSER 是不可用的,您需要通过供应商的管理员控制台来创建用户。您所创建的用户会拥有供应商特定的 semi-SUPERUSER 的权限。 您应该对所有 role 用 'GRANT role_name TO bytebase;' 语句赋予 Bytebase 权限,否则 Bytebase 可能没有权限操作已有的数据库或者表导致操作失败。",
+ "template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。如果您将要连接到的实例是自己托管的,那么您可以 grant SUPERUSER。"
+ },
+ "clickhouse": {
+ "sql-driven-workflow": "SQL 工作流",
+ "template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。您需要首先启用 {{link}},才能执行以下创建用户的命令。"
+ },
+ "mysql": {
+ "template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。"
+ },
+ "redis": {
+ "template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。"
+ },
+ "snowflake": {
+ "template": "创建用户 {{user}},密码 {{password}},warehouse 为{{warehouse}},并授予必要权限的例子如下。"
+ }
+ },
+ "firewall-info": "如果您为数据库实例使用入站防火墙规则,请参阅 ByteBase Cloud Connection 文档。",
+ "host": {
+ "none-snowflake": "例如 host.docker.internal {{'|'}} ip {{'|'}} local socket"
+ },
+ "proxy": {
+ "snowflake": "对于代理服务器,加上 {{'@'}}PROXY_HOST,并在端口里指定 PROXY_PORT"
+ },
+ "aws-rds": {
+ "mysql": {
+ "template": "下面是创建用户 {{user}}@% 并授予该用户所需权限的示例。"
+ },
+ "postgresql": {
+ "template": "下面是创建用户\"{{user}}\"并授予该用户所需权限的示例。"
+ }
+ },
+ "google-cloud-sql": {
+ "instance-name": "实例连接名称",
+ "instance-name-tips": "实例连接名称应为 {{instance}}。",
+ "mysql": {
+ "template": "创建一个名为 {{user}} 的服务帐户,然后将其作为 IAM 用户 {{user}}@'%' 添加到您的 Google Cloud SQL 中。授予此用户所需的权限。"
+ },
+ "postgresql": {
+ "template": "创建一个名为 {{user}} 的服务帐户,然后将其作为 IAM 用户 {{user}}@project-id.iam 添加到您的 Google Cloud SQL 中。授予用户所需的权限。"
+ }
+ }
+ },
+ "show-how-to-create": "如何创建",
+ "snowflake-web-console": "Snowflake Web 控制台",
+ "successfully-connected-instance": "成功连接到实例。",
+ "sync-databases": {
+ "add-database": "+ 添加数据库,按回车键提交",
+ "description": "仅同步选定的数据库。",
+ "search-database": "搜索数据库",
+ "self": "同步数据库",
+ "sync-all": "同步所有数据库"
+ },
+ "test-connection": "测试连接",
+ "type-or-paste-credentials-write-only": "输入或粘贴 CREDENTIALS - 仅写入",
+ "unable-to-connect": "Bytebase 无法连接到实例。我们推荐您再检查一遍连接信息。但也可以暂时忽略此警告。您在创建后仍能在实例详细页里修复连接信息。\n\n错误详情:{{0}}",
+ "users": "用户",
+ "your-snowflake-account-locator": "您的 Snowflake 账户定位符",
+ "testing-connection": "测试连接中...",
+ "new-instance": "新实例",
+ "no-environment": "此实例尚未绑定到环境",
+ "restore-instance-instance-name-to-normal-state": "恢复实例'{{0}}'到正常状态?",
+ "successfully-created-instance-createdinstance-name": "成功创建实例'{{0}}'。",
+ "successfully-updated-instance-instance-name": "成功更新实例'{{0}}'。"
},
- "instance.account-locator": "账户定位符",
- "instance.archive-instance-instance-name": "归档实例'{{0}}'?",
- "instance.archived-instances-will-not-be-displayed": "不再会显示已归档实例。",
- "instance.authentication-database": "认证数据库",
- "instance.connection-info": "连接信息",
- "instance.connection-options": "连接选项",
- "instance.create-gcp-credentials": "创建凭据的方法见",
- "instance.database-region": "数据库区域",
- "instance.endpoint": "端点",
- "instance.external-id": "外部 ID",
- "instance.external-id-description": "承担角色时用于额外安全性的外部 ID(可选)",
- "instance.external-id-placeholder": "可选的外部 ID",
- "instance.external-link": "外部链接",
- "instance.external-secret-azure.secret-name": "密钥名称",
- "instance.external-secret-azure.secret-name-tips": "存储在 Azure Key Vault 中的密钥名称。",
- "instance.external-secret-azure.vault-url": "Key Vault URL",
- "instance.external-secret-azure.vault-url-tips": "Key Vault URL 应类似于 \"https://myvault.vault.azure.net/\"",
- "instance.external-secret-gcp.secret-name": "密钥完整路径",
- "instance.external-secret-gcp.secret-name-tips": "密钥完整路径应类似于 \"projects/project-id/secrets/secret-id\"",
- "instance.external-secret-vault.vault-auth-type.approle.role-id": "Auth role id",
- "instance.external-secret-vault.vault-auth-type.approle.secret-env-name": "环境变量名",
- "instance.external-secret-vault.vault-auth-type.approle.secret-id": "Auth secret id",
- "instance.external-secret-vault.vault-auth-type.approle.secret-plain-text": "明文",
- "instance.external-secret-vault.vault-auth-type.approle.self": "AppRole",
- "instance.external-secret-vault.vault-auth-type.self": "认证方式",
- "instance.external-secret-vault.vault-auth-type.token.self": "Token",
- "instance.external-secret-vault.vault-secret-engine-name": "Secret engine name",
- "instance.external-secret-vault.vault-secret-engine-tips": "仅支持 KV v2 储存",
- "instance.external-secret-vault.vault-secret-key": "Secret key",
- "instance.external-secret-vault.vault-secret-path": "Secret path",
- "instance.external-secret-vault.vault-tls-config": "Vault TLS 配置(可选)",
- "instance.external-secret-vault.vault-url": "Vault URL",
- "instance.external-secret.key-name": "Secret key",
- "instance.external-secret.secret-name": "Secret name",
- "instance.failed-to-connect-instance": "连接到实例失败。",
- "instance.failed-to-connect-instance-localhost": "如果您使用的 Docker 部署,请尝试使用 \"host.docker.internal\" 作为 Host 地址。",
- "instance.find-gcp-project-id": "查看 GCP 项目 ID 的方法见",
- "instance.find-gcp-project-id-and-instance-id": "查看 GCP 项目 ID 与实例 ID 的方法见",
- "instance.force-archive-description": "强制归档。所有数据库均将被取消分配。",
- "instance.grants": "权限",
- "instance.host-or-socket": "Host 或 Socket",
- "instance.iam-extension.client-id": "Client ID",
- "instance.iam-extension.client-secret": "Client Secret",
- "instance.iam-extension.credential-source": "凭证来源",
- "instance.iam-extension.saas-default-credential-restriction": "出于安全考虑,Bytebase Cloud 不支持使用默认凭证。请提供具体凭证。",
- "instance.iam-extension.specific-credential": "指定凭证",
- "instance.iam-extension.tenant-id": "Tenant ID",
- "instance.info-panel.no-info": "暂无该引擎的额外信息。",
- "instance.instance-id": "实例 ID",
- "instance.instance-name": "实例名称",
- "instance.new-instance": "新实例",
- "instance.no-environment": "此实例尚未绑定到环境",
- "instance.no-extra-params-configured": "没有配置的额外连接参数",
- "instance.no-params-yet-add-above": "尚未配置参数。\n使用上面的形式添加参数。",
- "instance.no-password": "无密码",
- "instance.parameter-name-placeholder": "参数名称",
- "instance.parameter-value-placeholder": "参数值",
- "instance.password-type.aws-iam": "AWS RDS IAM",
- "instance.password-type.azure-iam": "Azure IAM",
- "instance.password-type.external-secret-aws": "AWS Secrets Manager",
- "instance.password-type.external-secret-azure": "Azure Key Vault",
- "instance.password-type.external-secret-gcp": "GCP Secret Manager",
- "instance.password-type.external-secret-vault": "Vault (KV v2)",
- "instance.password-type.google-iam": "Google Cloud SQL IAM",
- "instance.password-type.password": "密码",
- "instance.password-write-only": "YOUR_DB_PWD - 仅写入",
- "instance.port": "端口",
- "instance.project-id": "项目 ID",
- "instance.restore-instance-instance-name-to-normal-state": "恢复实例'{{0}}'到正常状态?",
- "instance.role-arn": "角色 ARN",
- "instance.role-arn-description": "用于跨账户访问的 IAM 角色。同账户访问请留空。",
- "instance.role-arn-placeholder": "arn:aws:iam::123456789012:role/CrossAccountRole",
- "instance.scan-interval.default-never": "默认(永不)",
- "instance.scan-interval.description": "Bytebase 会定期同步实例的 schema 以及进行异常检测。",
- "instance.scan-interval.min-value": "最小值 {{value}} 分钟",
- "instance.scan-interval.self": "扫描间隔",
- "instance.section.basic-info": "基本信息",
- "instance.section.connection": "连接",
- "instance.sentence.aws-rds.mysql.template": "下面是创建用户 {{user}}@% 并授予该用户所需权限的示例。",
- "instance.sentence.aws-rds.postgresql.template": "下面是创建用户“{{user}}”并授予该用户所需权限的示例。",
- "instance.sentence.console.snowflake": "\b管理该实例的外部控制台 URL(如 AWS RDS 控制台,您的数据库控制台)",
- "instance.sentence.create-admin-user": "这是 Bytebase 用于连接数据库,执行 DDL 和 DML (非 SELECT) 操作的用户。",
- "instance.sentence.create-admin-user-non-sql": "这是 Bytebase 用于连接数据库,执行写和管理操作的用户。",
- "instance.sentence.create-readonly-user": "这是 Bytebase 用于连接数据库,执行诸如 SELECT 的只读操作的用户。",
- "instance.sentence.create-readonly-user-non-sql": "这是 Bytebase 用于连接数据库,执行只读操作的用户。",
- "instance.sentence.create-user-example.clickhouse.sql-driven-workflow": "SQL 工作流",
- "instance.sentence.create-user-example.clickhouse.template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。您需要首先启用 {{link}},才能执行以下创建用户的命令。",
- "instance.sentence.create-user-example.mysql.template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。",
- "instance.sentence.create-user-example.postgresql.template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。如果您将要连接到的实例是自己托管的,那么您可以 grant SUPERUSER。",
- "instance.sentence.create-user-example.postgresql.warn": "如果您将要连接到的实例是由云服务供应商管理的话,那么 SUPERUSER 是不可用的,您需要通过供应商的管理员控制台来创建用户。您所创建的用户会拥有供应商特定的 semi-SUPERUSER 的权限。 您应该对所有 role 用 'GRANT role_name TO bytebase;' 语句赋予 Bytebase 权限,否则 Bytebase 可能没有权限操作已有的数据库或者表导致操作失败。",
- "instance.sentence.create-user-example.redis.template": "创建用户 {{user}},密码 {{password}},并授予必要权限的例子如下。",
- "instance.sentence.create-user-example.snowflake.template": "创建用户 {{user}},密码 {{password}},warehouse 为{{warehouse}},并授予必要权限的例子如下。",
- "instance.sentence.firewall-info": "如果您为数据库实例使用入站防火墙规则,请参阅 ByteBase Cloud Connection 文档。",
- "instance.sentence.google-cloud-sql.instance-name": "实例连接名称",
- "instance.sentence.google-cloud-sql.instance-name-tips": "实例连接名称应为 {{instance}}。",
- "instance.sentence.google-cloud-sql.mysql.template": "创建一个名为 {{user}} 的服务帐户,然后将其作为 IAM 用户 {{user}}@'%' 添加到您的 Google Cloud SQL 中。授予此用户所需的权限。",
- "instance.sentence.google-cloud-sql.postgresql.template": "创建一个名为 {{user}} 的服务帐户,然后将其作为 IAM 用户 {{user}}@project-id.iam 添加到您的 Google Cloud SQL 中。授予用户所需的权限。",
- "instance.sentence.host.none-snowflake": "例如 host.docker.internal {'|'} ip {'|'} local socket",
- "instance.sentence.proxy.snowflake": "对于代理服务器,加上 {'@'}PROXY_HOST,并在端口里指定 PROXY_PORT",
- "instance.show-how-to-create": "如何创建",
- "instance.snowflake-web-console": "Snowflake Web 控制台",
- "instance.successfully-archived-instance": "成功归档实例'{{0}}'。",
- "instance.successfully-connected-instance": "成功连接到实例。",
- "instance.successfully-created-instance-createdinstance-name": "成功创建实例'{{0}}'。",
- "instance.successfully-restored-instance": "已成功恢复实例“{{0}}”。",
- "instance.successfully-updated-instance-instance-name": "成功更新实例'{{0}}'。",
- "instance.sync-databases.add-database": "+ 添加数据库,按回车键提交",
- "instance.sync-databases.description": "仅同步选定的数据库。",
- "instance.sync-databases.search-database": "搜索数据库",
- "instance.sync-databases.self": "同步数据库",
- "instance.sync-databases.sync-all": "同步所有数据库",
- "instance.sync.self": "同步实例",
- "instance.sync.sync-all": "同步所有数据库",
- "instance.sync.sync-all-tip": "数据库同步是异步的,可能需要几秒到几分钟",
- "instance.sync.sync-new": "仅同步新数据库",
- "instance.syncing": "同步中 ...",
- "instance.test-connection": "测试连接",
- "instance.testing-connection": "测试连接中",
- "instance.type-or-paste-credentials-write-only": "输入或粘贴 CREDENTIALS - 仅写入",
- "instance.unable-to-connect": "Bytebase 无法连接到实例。我们推荐您再检查一遍连接信息。但也可以暂时忽略此警告。您在创建后仍能在实例详细页里修复连接信息。\n\n错误详情:{{0}}",
- "instance.users": "用户",
- "instance.your-snowflake-account-locator": "您的 Snowflake 账户定位符",
"issue": {
- "labels": "工单标签",
"advanced-search": {
"filter": "过滤"
},
@@ -663,6 +652,7 @@
"limits": "限制",
"options": "配置项"
},
+ "labels": "工单标签",
"risk-level": {
"high": "高风险",
"moderate": "中风险",
@@ -686,15 +676,12 @@
"error": {
"key-duplicated": "Key 重复了",
"key-necessary": "需要指定 Key",
- "max-value-length-exceeded": "值的长度不能超过 {{length}} 字符"
- }
+ "max-value-length-exceeded": "值的长度不能超过 {{length}} 字符",
+ "value-necessary": "需要指定值"
+ },
+ "add-label": "添加标签",
+ "empty-label-value": "空"
},
- "label.add-label": "添加标签",
- "label.empty-label-value": "空",
- "label.error.key-duplicated": "Key 重复了",
- "label.error.key-necessary": "需要指定 Key",
- "label.error.max-value-length-exceeded": "值的长度不能超过 {{length}} 字符",
- "label.error.value-necessary": "需要指定值",
"landing": {
"changelog-for-version": "{{version}} 的更新日志",
"last-visit": "上次访问",
@@ -752,9 +739,6 @@
"success-prompt": "成功创建 {{name}}."
},
"filter-projects": "过滤项目",
- "table": {
- "name": "名称"
- },
"masking-exemption": {
"all-levels": "所有等级",
"expires-in-days_one": "{{days}} 天后到期",
@@ -851,6 +835,9 @@
"success-updated": "项目设置更新成功",
"update-failed": "无法更新项目设置。"
},
+ "table": {
+ "name": "名称"
+ },
"webhook": {
"activity-support-direct-message": "支持向相关用户发送私信通知",
"add-a-webhook": "添加 webhook",
@@ -886,7 +873,6 @@
"new-project": "创建项目",
"request-export-data": "申请导出数据"
},
- "quick-action.add-instance": "@:common.add@:common.instance",
"release": {
"releases": "发布包"
},
@@ -896,9 +882,9 @@
}
},
"resource": {
- "delete-warning-with-resources": "以下资源使用了“{{name}}”:",
+ "delete-warning": "“{{name}}”将被删除。此操作无法撤消。",
"delete-warning-retry": "请将其从这些资源中删除,然后重试。",
- "delete-warning": "“{{name}}”将被删除。此操作无法撤消。"
+ "delete-warning-with-resources": "以下资源使用了“{{name}}”:"
},
"resource-id": {
"cannot-be-changed-later": "创建之后无法修改。",
@@ -911,13 +897,6 @@
"pattern": "{{resource}} ID 可以具有小写字母,数字或连字符。\n它必须从小写字母开始,并以字母或数字结尾。"
}
},
- "resource-id.cannot-be-changed-later": "创建之后无法修改。",
- "resource-id.description": "{{resource}} ID 是一个唯一的标识符。创建之后无法修改。",
- "resource-id.self": "{{resource}} ID",
- "resource-id.validation.duplicated": "{{resource}} ID 已存在。请使用其他 ID。",
- "resource-id.validation.empty": "{{resource}} ID 不能为空",
- "resource-id.validation.overflow": "{{resource}} ID 应该少于 64 个字符。",
- "resource-id.validation.pattern": "{{resource}} ID 可以具有小写字母,数字或连字符。\n它必须从小写字母开始,并以字母或数字结尾。",
"role": {
"custom-roles": {
"self": "自定义角色"
@@ -940,13 +919,14 @@
"self": "工作空间角色"
}
},
+ "schema-editor": {
+ "raw-sql": "SQL 语句"
+ },
"schema-template": {
"classification": {
"search": "搜索分类"
}
},
- "setting.label.key-placeholder": "标签 key...",
- "setting.label.value-placeholder": "标签值…",
"settings": {
"general": {
"workspace": {
@@ -1165,8 +1145,13 @@
"reactivate-confirm-title": "确定启用"
},
"add-member": "添加成员",
+ "add-service-account": "添加服务账号",
"add-user": "添加用户",
+ "add-workload-identity": "添加工作负载身份",
+ "all-users": "全部用户",
+ "assign-role": "Assign role",
"cannot-revoke-self": "You cannot revoke yourself",
+ "copy-service-key": "复制 Service Key",
"entra-sync": {
"description": "将 Entra ID(前 Azure AD)或 Okta 中的用户和组同步到您的 Bytebase 实例。",
"endpoint": "Endpoint",
@@ -1196,7 +1181,11 @@
"update-group": "更新组",
"workspace-domain-required": "请先设置工作空间的域名。"
},
+ "inactive-service-accounts": "未激活服务账号",
"inactive-users": "未激活用户",
+ "inactive-workload-identities": "未激活工作负载身份",
+ "reset-service-key": "重置 Service Key",
+ "reset-service-key-alert": "旧 Service Key 将立即被重置,该操作不可逆。确定要重置 Service Key 吗?",
"revoke-access": "撤销访问权限",
"revoke-access-alert": "您确定要撤销访问权限吗?",
"revoke-allusers-alert": "撤销“全部用户”将撤销您工作区中所有其他用户的相关角色。您确定要继续吗?",
@@ -1208,30 +1197,21 @@
"select-role_one": "选择角色",
"select-role_other": "选择角色",
"service-account": "服务账号",
+ "service-accounts": "服务账号",
+ "service-key-copied": "Service Key 已复制,请勿泄漏",
"show-inactive": "显示已停用账户",
"table": {
"account": "账户",
"groups": "群组",
"roles": "角色"
},
+ "update-service-account": "更新服务账号",
"update-user": "更新用户",
+ "update-workload-identity": "更新工作负载身份",
"view-by-members": "按成员查看",
"view-by-roles": "按角色查看",
- "workload-identity": "工作负载标识",
- "add-service-account": "添加服务账号",
- "add-workload-identity": "添加工作负载身份",
- "all-users": "全部用户",
- "assign-role": "Assign role",
- "copy-service-key": "复制 Service Key",
- "inactive-service-accounts": "未激活服务账号",
- "inactive-workload-identities": "未激活工作负载身份",
- "reset-service-key": "重置 Service Key",
- "reset-service-key-alert": "旧 Service Key 将立即被重置,该操作不可逆。确定要重置 Service Key 吗?",
- "service-accounts": "服务账号",
- "service-key-copied": "Service Key 已复制,请勿泄漏",
- "update-service-account": "更新服务账号",
- "update-workload-identity": "更新工作负载身份",
"workload-identities": "工作负载身份",
+ "workload-identity": "工作负载标识",
"workload-identity-advanced": "高级设置",
"workload-identity-all-branches-tags": "所有分支和标签",
"workload-identity-allowed-branches-tags": "允许的分支/标签",
@@ -1255,6 +1235,7 @@
"workload-identity-tag-hint": "留空则允许所有标签"
},
"profile": {
+ "email": "邮箱",
"password": "密码",
"password-confirm": "确认密码",
"password-confirm-placeholder": "确认新密码",
@@ -1262,7 +1243,6 @@
"password-mismatch": "新密码不匹配",
"phone": "手机号",
"phone-tips": "请包含国家代码前缀 +86xxxxxx",
- "email": "邮箱",
"role": "角色",
"subscription": "(升级到付费方案来解锁角色管理)"
},
@@ -1329,10 +1309,12 @@
},
"re-order": "排序"
},
+ "never-expires": "无过期时间",
"semantic-types": {
"add-from-template": "从模板添加",
"label": "具有相同语义类型的列会使用相同的脱敏算法。",
"select": "选择语义类型",
+ "self": "语义类型",
"table": {
"delete": "删除这个语义类型?",
"description": "描述",
@@ -1344,29 +1326,27 @@
"description": "您可以从模板中应用内置语义类型。内置模板无法更改。",
"duplicate-warning": "语义类型“{{title}}”已存在"
},
- "use-predefined-type": "使用预定义类型",
- "self": "语义类型"
- },
- "never-expires": "无过期时间"
+ "use-predefined-type": "使用预定义类型"
+ }
},
"sidebar": {
"audit-log": "审计日志",
"custom-roles": "自定义角色",
+ "data-access": "数据访问",
"data-classification": "数据分类",
"general": "通用",
"global-masking": "全局数据脱敏",
+ "iam-and-admin": "IAM & 管理",
"im-integration": "IM",
+ "integration": "集成",
"mcp": "MCP",
"members": "成员",
"members-and-groups": "成员和群组",
+ "profile": "个人信息",
+ "security-and-policy": "安全 & 策略",
"sso": "SSO",
"subscription": "订阅",
- "users-and-groups": "用户和群组",
- "data-access": "数据访问",
- "iam-and-admin": "IAM & 管理",
- "integration": "集成",
- "profile": "个人信息",
- "security-and-policy": "安全 & 策略"
+ "users-and-groups": "用户和群组"
},
"sso": {
"create": "创建 SSO",
@@ -1455,7 +1435,6 @@
}
},
"sql-editor": {
- "self": "SQL 编辑器",
"access-grants": "访问授权",
"access-grants-redirect-hint": "前往 {link} 查看和管理您自己的访问授权。",
"activate-access": "激活",
@@ -1464,11 +1443,10 @@
"grant-type-unmask": "脱敏豁免",
"revoke-access": "撤销",
"revoke-confirm": "确定要撤销此访问授权吗?",
+ "self": "SQL 编辑器",
"view-issue": "查看工单"
},
"sql-review": {
- "configure-policy": "配置审核策略",
- "title": "SQL 审核策略",
"add-or-remove-rules": "添加或删除规则",
"add-rules": "添加规则",
"attach-resource": {
@@ -1477,6 +1455,7 @@
"no-linked-resources": "没有绑定的资源",
"self": "绑定到资源"
},
+ "configure-policy": "配置审核策略",
"create": {
"basic-info": {
"display-name": "名称",
@@ -1501,12 +1480,14 @@
"policy-removed": "审核策略已删除",
"policy-update-failed": "审核策略更新失败",
"policy-updated": "审核策略已更新",
- "review-policy": "审核策略"
+ "review-policy": "审核策略",
+ "title": "SQL 审核策略"
},
"subscription": {
"contact-us": "联系我们",
"current": "当前版本",
"description": "您可以在这里上传您购买的 Bytebase 证书来解锁专业版/企业版功能。",
+ "disabled-feature": "禁用功能",
"enterprise-free-trial": "企业版 {{days}} 天免费试用",
"expired": "已过期",
"expires-at": "过期时间",
@@ -1516,7 +1497,8 @@
"license": "证书",
"missing-license-attention": "请给实例分配证书以解锁该功能。",
"used-and-total-license": "已分配 / 总实例证书",
- "used-and-total-user": "活跃/总用户限制"
+ "used-and-total-user": "活跃/总用户限制",
+ "n-license-remain": "剩余 {{n}} 个"
},
"max-instance-count": "最多实例数",
"plan": {
@@ -1597,20 +1579,15 @@
"title": "用户数量限制",
"upgrade": "升级来获取更多用户额度。"
}
- },
- "disabled-feature": "禁用功能"
+ }
},
- "subscription.instance-assignment.assign-license": "分配证书",
- "subscription.instance-assignment.n-license-remain": "剩余 {{n}} 个",
- "subscription.usage.instance-count.runoutof": "已用尽全部 {{total}} 个实例额度。",
- "subscription.usage.instance-count.title": "实例数量限制",
"two-factor": {
- "enabled": "双重认证已开启",
"description": "双重认证为系统成员提供了一个额外的安全层。在登录时,用户需要输入由认证器应用程序生成的安全代码。",
"disable": {
"description": "您即将禁用您账户的双重认证。您在登录时将不再需要输入由您的 Authenticator 应用程序生成的安全代码。",
"self": "禁用双重认证"
},
+ "enabled": "双重认证已开启",
"messages": {
"2fa-disabled": "双重认证禁用成功",
"2fa-enabled": "双重认证开启成功",
@@ -1652,67 +1629,106 @@
"self": "双重认证密钥"
}
},
+ "data-source": {
+ "additional-node-addresses": "附加节点地址",
+ "connection-string-schema": "连接串模式",
+ "connection-type": "连接类型",
+ "delete-read-only-data-source": "删除只读数据源",
+ "direct-connection": "Direct Connection",
+ "extra-params": {
+ "description": "数据库连接字符串的其他参数",
+ "self": "额外的参数"
+ },
+ "private-key-passphrase": "私钥密码",
+ "private-key-passphrase-tip": "加密私钥的可选密码",
+ "read-replica-host": "只读副本 Host",
+ "read-replica-port": "只读副本端口",
+ "replica-set": "副本集",
+ "snowflake-keypair-tip": "密钥对认证",
+ "ssh-connection": "SSH 连接",
+ "ssh-type": {
+ "none": "不使用",
+ "tunnel-and-private-key": "隧道 + 私钥"
+ },
+ "ssh": {
+ "host": "服务器",
+ "password": "密码",
+ "port": "端口",
+ "private-key": "私钥",
+ "ssh-key": "SSH 密钥",
+ "user": "用户名"
+ },
+ "ssl-connection": "SSL 连接",
+ "ssl": {
+ "ca-cert": "CA 证书",
+ "client-cert": "客户端证书",
+ "client-key": "客户端密钥",
+ "verify-certificate": "验证 TLS 证书",
+ "verify-certificate-tooltip": "启用 TLS 证书验证以确保安全连接。仅在开发环境或证书无法正确验证的情况下禁用(例如自签名证书、VPN 环境)。警告:禁用验证是不安全的"
+ },
+ "no-read-only-data-source": "没有只读数据源",
+ "private-key-passphrase-placeholder": "如果私钥未加密,请留空"
+ },
+ "setting": {
+ "label": {
+ "key-placeholder": "标签 key...",
+ "value-placeholder": "标签值…"
+ }
+ },
"agent": {
- "assistant-title": "Bytebase 助手",
- "resize": "调整大小",
- "minimize": "最小化",
- "close": "关闭",
- "input-placeholder": "输入任何问题...",
- "send": "发送",
- "args": "参数:",
- "result": "结果:",
- "stop": "停止",
- "interrupted": "已中断",
- "retry-last-chat-turn": "重试上一轮",
- "interrupted-retry-hint": "重试会基于当前页面状态重新运行已中断的这一轮。",
- "new-chat": "新聊天",
- "rename-chat-placeholder": "输入聊天名称",
- "archive-chat": "归档",
- "unarchive-chat": "取消归档",
- "delete-chat": "删除",
- "active-only-chats": "仅显示活跃",
- "archived-only-chats": "仅显示已归档",
- "archive-chat-confirmation": "要归档这个聊天吗?",
- "delete-chat-confirmation": "要删除这个聊天吗?",
- "chat-list-label": "聊天",
- "chat-default-title": "新聊天",
+ "active-only-chats": "仅活跃",
+ "ai-not-configured": {
+ "configure": "配置",
+ "contact-admin": "请联系工作区管理员配置 AI。",
+ "description": "此工作区尚未配置 AI。",
+ "title": "AI 未配置"
+ },
+ "archive-chat": "归档对话",
+ "archive-chat-confirmation": "确定要归档此对话吗?",
+ "archived-only-chats": "仅已归档",
+ "args": "参数",
+ "assistant-title": "AI 助手",
+ "cancel": "取消",
"chat-archived-label": "已归档",
- "chat-status-idle": "空闲",
- "chat-status-running": "运行中",
- "chat-status-awaiting-user": "等待输入",
+ "chat-default-title": "新对话",
+ "chat-list-label": "对话列表",
+ "chat-status-awaiting-user": "等待用户",
"chat-status-error": "错误",
+ "chat-status-idle": "空闲",
"chat-status-interrupted": "已中断",
- "chat-total-tokens": "已用令牌:{{count}}",
- "reply": "回复",
+ "chat-status-running": "运行中",
+ "chat-total-tokens": "总 token 数",
+ "close": "关闭",
"confirm": "确认",
- "cancel": "取消",
- "pending-input-hint": "请在下方回复以继续当前聊天。",
- "pending-confirm-hint": "请选择确认或取消以继续当前聊天。",
- "pending-choose-hint": "请选择一个选项以继续当前聊天。",
- "tool-ask-user": "等待你的回复",
- "tool-ask-user-input": "需要输入",
- "tool-ask-user-confirm": "需要确认",
- "tool-ask-user-choose": "需要选择",
- "tool-response-submitted": "已提交回复",
- "tool-prompt": "提示:",
- "tool-default-value": "默认值:",
- "tool-options": "选项:",
- "tool-answer": "回答:",
- "tool-value": "值:",
+ "delete-chat": "删除对话",
+ "delete-chat-confirmation": "确定要删除此对话吗?此操作无法撤销。",
+ "input-placeholder": "向 AI 提问...",
+ "interrupted": "已中断",
+ "interrupted-retry-hint": "对话已中断。您可以重试或发送新消息。",
+ "minimize": "最小化",
+ "new-chat": "新对话",
+ "pending-choose-hint": "请在上方选择一个选项",
+ "pending-confirm-hint": "请在上方确认或取消",
+ "pending-input-hint": "请在上方提供输入",
+ "rename-chat-placeholder": "输入对话名称",
+ "reply": "回复",
+ "resize": "调整大小",
+ "result": "结果",
+ "retry-last-chat-turn": "重试",
+ "send": "发送",
+ "stop": "停止",
+ "tool-answer": "回答",
+ "tool-ask-user": "询问用户",
+ "tool-ask-user-choose": "选择一个选项",
+ "tool-ask-user-confirm": "确认操作",
+ "tool-ask-user-input": "提供输入",
"tool-completed": "已完成",
- "tool-failed": "已完成,但存在问题",
- "ai-not-configured": {
- "title": "此工作空间尚未配置 AI 助手",
- "description": "要继续使用页面助手,请先在工作空间设置中启用 AI 助手。",
- "configure": "配置 AI",
- "contact-admin": "请联系你的组织管理员来配置 AI 助手。"
- }
- },
- "changelog": {
- "select": "Schema 版本是在每次通过 Bytebase 执行 Schema 变更后被记录下来的",
- "self": "变更历史"
- },
- "schema-editor": {
- "raw-sql": "SQL 语句"
+ "tool-default-value": "默认",
+ "tool-failed": "失败",
+ "tool-options": "选项",
+ "tool-prompt": "提示",
+ "tool-response-submitted": "已提交回复",
+ "tool-value": "值",
+ "unarchive-chat": "取消归档"
}
}
diff --git a/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx b/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx
index eccf1295e7..69df57c549 100644
--- a/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx
+++ b/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx
@@ -19,11 +19,8 @@ import {
} from "@/react/components/ui/dialog";
import { Input } from "@/react/components/ui/input";
import { Tooltip } from "@/react/components/ui/tooltip";
+import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
-import {
- PagedTableFooter,
- usePagedData,
-} from "@/react/pages/settings/shared/usePagedData";
import { router } from "@/router";
import {
featureToRef,
diff --git a/frontend/src/react/pages/project/ProjectExportCenterPage.tsx b/frontend/src/react/pages/project/ProjectExportCenterPage.tsx
index 44a367b6df..a79fc91183 100644
--- a/frontend/src/react/pages/project/ProjectExportCenterPage.tsx
+++ b/frontend/src/react/pages/project/ProjectExportCenterPage.tsx
@@ -9,11 +9,8 @@ import {
} from "@/react/components/AdvancedSearch";
import { Button } from "@/react/components/ui/button";
import { Tooltip } from "@/react/components/ui/tooltip";
+import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
-import {
- PagedTableFooter,
- usePagedData,
-} from "@/react/pages/settings/shared/usePagedData";
import { router } from "@/router";
import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutes";
import { useIssueV1Store, useProjectV1Store, useUserStore } from "@/store";
diff --git a/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx b/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx
index 5562b213cc..e1e57b4674 100644
--- a/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx
+++ b/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx
@@ -14,6 +14,7 @@ import {
validateSimpleExpr,
wrapAsGroup,
} from "@/plugins/cel";
+import { AccountMultiSelect } from "@/react/components/AccountMultiSelect";
import { DatabaseResourceSelector } from "@/react/components/DatabaseResourceSelector";
import { ExprEditor } from "@/react/components/ExprEditor";
import { FeatureAttention } from "@/react/components/FeatureAttention";
@@ -28,7 +29,6 @@ import { ExpirationPicker } from "@/react/components/ui/expiration-picker";
import { Input } from "@/react/components/ui/input";
import { Tooltip } from "@/react/components/ui/tooltip";
import { useVueState } from "@/react/hooks/useVueState";
-import { AccountMultiSelect } from "@/react/pages/settings/shared/AccountMultiSelect";
import { router } from "@/router";
import {
hasFeature,
diff --git a/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx b/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx
index 264b0ccdca..9e5861a7c1 100644
--- a/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx
+++ b/frontend/src/react/pages/project/ProjectSyncSchemaPage.tsx
@@ -28,6 +28,7 @@ import {
DialogContent,
DialogTitle,
} from "@/react/components/ui/dialog";
+import { SearchInput } from "@/react/components/ui/search-input";
import { useClickOutside } from "@/react/hooks/useClickOutside";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
import { useVueState } from "@/react/hooks/useVueState";
@@ -2039,9 +2040,7 @@ function TargetDatabasesSelectPanel({
{/* Search */}
<div className="px-6 pt-4">
- <input
- type="text"
- className="w-full border border-gray-300 rounded-xs h-9 px-3 text-sm"
+ <SearchInput
placeholder={t("database.filter-database")}
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
diff --git a/frontend/src/react/pages/project/export-center/DataExportPrepDrawer.tsx b/frontend/src/react/pages/project/export-center/DataExportPrepDrawer.tsx
index 8607ce7acc..d320385e3b 100644
--- a/frontend/src/react/pages/project/export-center/DataExportPrepDrawer.tsx
+++ b/frontend/src/react/pages/project/export-center/DataExportPrepDrawer.tsx
@@ -12,6 +12,8 @@ import { v4 as uuidv4 } from "uuid";
import { EngineIconPath } from "@/components/InstanceForm/constants";
import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";
import { Button } from "@/react/components/ui/button";
+import { Input } from "@/react/components/ui/input";
+import { SearchInput } from "@/react/components/ui/search-input";
import { Switch } from "@/react/components/ui/switch";
import { useClickOutside } from "@/react/hooks/useClickOutside";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
@@ -366,8 +368,7 @@ export function DataExportPrepDrawer({
<span className="text-error"> *</span>
)}
</label>
- <input
- className="w-full border border-control-border rounded-sm px-3 py-2 text-sm focus:outline-none focus:border-accent"
+ <Input
value={title}
placeholder={t("common.title")}
onChange={(e) => {
@@ -902,9 +903,7 @@ function DatabaseSelector({
return (
<div className="flex flex-col gap-y-2">
- <input
- type="text"
- className="w-full border border-control-border rounded-sm px-3 py-2 text-sm focus:outline-none focus:border-accent"
+ <SearchInput
placeholder={t("database.filter-database")}
value={query}
onChange={(e) => setQuery(e.target.value)}
diff --git a/frontend/src/react/pages/settings/GroupsPage.tsx b/frontend/src/react/pages/settings/GroupsPage.tsx
index 528fa669ca..a85033ba60 100644
--- a/frontend/src/react/pages/settings/GroupsPage.tsx
+++ b/frontend/src/react/pages/settings/GroupsPage.tsx
@@ -21,6 +21,7 @@ import { Input } from "@/react/components/ui/input";
import { SearchInput } from "@/react/components/ui/search-input";
import { Tooltip } from "@/react/components/ui/tooltip";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
+import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import { router } from "@/router";
import { SETTING_ROUTE_WORKSPACE_GENERAL } from "@/router/dashboard/workspaceSetting";
@@ -45,7 +46,6 @@ import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";
import type { User } from "@/types/proto-es/v1/user_service_pb";
import { hasWorkspacePermissionV2, isValidEmail } from "@/utils";
import { AADSyncDrawer } from "./shared/AADSyncDrawer";
-import { PagedTableFooter, usePagedData } from "./shared/usePagedData";
// ============================================================
// Helpers
diff --git a/frontend/src/react/pages/settings/InstanceDetailPage.tsx b/frontend/src/react/pages/settings/InstanceDetailPage.tsx
index f617a7c175..33ca7803d8 100644
--- a/frontend/src/react/pages/settings/InstanceDetailPage.tsx
+++ b/frontend/src/react/pages/settings/InstanceDetailPage.tsx
@@ -139,14 +139,14 @@ export function InstanceDetailPage({ instanceId }: { instanceId: string }) {
<div className="pt-4 flex flex-col gap-y-2 px-6">
{/* Archive banner */}
{instance.state === State.DELETED && (
- <div className="bg-gray-700 text-white text-center py-2 rounded-md text-sm font-medium">
+ <div className="bg-gray-700 text-white text-center py-2 rounded-sm text-sm font-medium">
{t("common.archived")}
</div>
)}
{/* No environment warning */}
{!instance.environment && (
- <div className="w-full mb-4 rounded-md bg-yellow-50 border border-yellow-200 p-3 text-sm text-yellow-800">
+ <div className="w-full mb-4 rounded-sm bg-yellow-50 border border-yellow-200 p-3 text-sm text-yellow-800">
{t("instance.no-environment")}
</div>
)}
diff --git a/frontend/src/react/pages/settings/InstancesPage.tsx b/frontend/src/react/pages/settings/InstancesPage.tsx
index 5f576f1ef7..f110cca2e5 100644
--- a/frontend/src/react/pages/settings/InstancesPage.tsx
+++ b/frontend/src/react/pages/settings/InstancesPage.tsx
@@ -23,6 +23,7 @@ import {
import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";
import { PermissionGuard } from "@/react/components/PermissionGuard";
import { Button } from "@/react/components/ui/button";
+import { PagedTableFooter } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import { cn } from "@/react/lib/utils";
import { router } from "@/router";
@@ -61,7 +62,6 @@ import {
hostPortOfInstanceV1,
supportedEngineV1List,
} from "@/utils";
-import { PagedTableFooter } from "./shared/usePagedData";
// ============================================================
// Pagination helpers
diff --git a/frontend/src/react/pages/settings/MembersPage.tsx b/frontend/src/react/pages/settings/MembersPage.tsx
index 9f4d897031..ae00282aeb 100644
--- a/frontend/src/react/pages/settings/MembersPage.tsx
+++ b/frontend/src/react/pages/settings/MembersPage.tsx
@@ -25,8 +25,11 @@ import {
roleHasDatabaseLimitation,
roleHasEnvironmentLimitation,
} from "@/components/ProjectMember/utils";
+import { AccountMultiSelect } from "@/react/components/AccountMultiSelect";
import { DatabaseResourceSelector as DatabaseResourceSelectorComponent } from "@/react/components/DatabaseResourceSelector";
import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";
+import { RoleSelect } from "@/react/components/RoleSelect";
+import { UserAvatar } from "@/react/components/UserAvatar";
import {
Alert,
AlertDescription,
@@ -79,9 +82,6 @@ import {
convertFromExpr,
stringifyConditionExpression,
} from "@/utils/issue/cel";
-import { AccountMultiSelect } from "./shared/AccountMultiSelect";
-import { RoleSelect } from "./shared/RoleSelect";
-import { UserAvatar } from "./shared/UserAvatar";
const EMPTY_ROLE_SET = new Set<string>();
diff --git a/frontend/src/react/pages/settings/ProjectsPage.tsx b/frontend/src/react/pages/settings/ProjectsPage.tsx
index a7a7130bcf..372bfa3ad1 100644
--- a/frontend/src/react/pages/settings/ProjectsPage.tsx
+++ b/frontend/src/react/pages/settings/ProjectsPage.tsx
@@ -24,6 +24,7 @@ import {
} from "@/react/components/ResourceIdField";
import { Button } from "@/react/components/ui/button";
import { Input } from "@/react/components/ui/input";
+import { PagedTableFooter } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import { cn } from "@/react/lib/utils";
import { router } from "@/router";
@@ -45,7 +46,6 @@ import {
hasProjectPermissionV2,
hasWorkspacePermissionV2,
} from "@/utils";
-import { PagedTableFooter } from "./shared/usePagedData";
// ============================================================
// Escape key stack for overlays
diff --git a/frontend/src/react/pages/settings/RolesPage.tsx b/frontend/src/react/pages/settings/RolesPage.tsx
index e0e81ff380..b8e4cd5ffc 100644
--- a/frontend/src/react/pages/settings/RolesPage.tsx
+++ b/frontend/src/react/pages/settings/RolesPage.tsx
@@ -11,6 +11,7 @@ import {
ResourceIdField,
type ResourceIdFieldRef,
} from "@/react/components/ResourceIdField";
+import { RoleSelect } from "@/react/components/RoleSelect";
import {
Alert,
AlertDescription,
@@ -45,7 +46,6 @@ import {
isCustomRole,
} from "@/utils";
import { extractGrpcErrorMessage, getErrorCode } from "@/utils/connect";
-import { RoleSelect } from "./shared/RoleSelect";
// Escape key stack: only the topmost overlay handles Escape.
const escapeStack: (() => void)[] = [];
diff --git a/frontend/src/react/pages/settings/ServiceAccountsPage.tsx b/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
index 1fe86685e5..d9ad7a5e24 100644
--- a/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
+++ b/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
@@ -3,10 +3,14 @@ import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
import { Copy, KeyRound, Pencil, Plus, Trash2, Undo2, X } from "lucide-react";
import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
+import { RoleSelect } from "@/react/components/RoleSelect";
+import { UserAvatar } from "@/react/components/UserAvatar";
import { Badge } from "@/react/components/ui/badge";
import { Button } from "@/react/components/ui/button";
+import { Input } from "@/react/components/ui/input";
import { Tooltip } from "@/react/components/ui/tooltip";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
+import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import {
ensureServiceAccountFullName,
@@ -31,9 +35,6 @@ import type { Project } from "@/types/proto-es/v1/project_service_pb";
import type { ServiceAccount } from "@/types/proto-es/v1/service_account_service_pb";
import type { User } from "@/types/proto-es/v1/user_service_pb";
import { hasProjectPermissionV2, hasWorkspacePermissionV2 } from "@/utils";
-import { RoleSelect } from "./shared/RoleSelect";
-import { UserAvatar } from "./shared/UserAvatar";
-import { PagedTableFooter, usePagedData } from "./shared/usePagedData";
// ============================================================
// ServiceAccountTable
@@ -519,14 +520,12 @@ function CreateServiceAccountDrawer({
<label className="block text-sm font-medium text-control">
{t("common.name")}
</label>
- <input
- type="text"
+ <Input
autoComplete="off"
value={title}
onChange={(e) => setTitle(e.target.value)}
placeholder="Foo"
maxLength={200}
- className="flex h-9 w-full rounded-xs border border-control-border bg-transparent px-3 py-1 text-sm outline-hidden placeholder:text-control-placeholder focus:ring-2 focus:ring-accent focus:border-accent"
/>
</div>
@@ -537,22 +536,17 @@ function CreateServiceAccountDrawer({
<span className="ml-0.5 text-error">*</span>
</label>
{isEditMode ? (
- <input
- type="text"
- value={serviceAccount?.email ?? ""}
- disabled
- className="flex h-9 w-full rounded-xs border border-control-border bg-gray-50 px-3 py-1 text-sm opacity-60 cursor-not-allowed"
- />
+ <Input value={serviceAccount?.email ?? ""} disabled />
) : (
- <div className="flex items-center border border-control-border rounded-xs overflow-hidden focus-within:ring-2 focus-within:ring-accent focus-within:border-accent">
+ <div className="px-1 flex items-center border border-control-border rounded-xs overflow-hidden focus-within:border-accent">
<input
type="text"
autoComplete="off"
value={emailPrefix}
onChange={(e) => setEmailPrefix(e.target.value)}
- className="flex-1 h-9 px-3 py-1 text-sm outline-hidden bg-transparent"
+ className="flex-1 h-9 px-3 py-1 text-sm bg-transparent border-none outline-none ring-0 shadow-none focus:border-none focus:outline-none focus:ring-0 focus:shadow-none"
/>
- <span className="px-2 py-1 text-sm text-control-light bg-control-bg border-l border-control-border whitespace-nowrap">
+ <span className="px-2 py-1 text-sm text-control-light bg-control-bg whitespace-nowrap">
@{emailSuffix}
</span>
</div>
diff --git a/frontend/src/react/pages/settings/UsersPage.tsx b/frontend/src/react/pages/settings/UsersPage.tsx
index 964da0ba59..eb54532493 100644
--- a/frontend/src/react/pages/settings/UsersPage.tsx
+++ b/frontend/src/react/pages/settings/UsersPage.tsx
@@ -17,12 +17,15 @@ import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { ComponentPermissionGuard } from "@/react/components/ComponentPermissionGuard";
import { FeatureBadge } from "@/react/components/FeatureBadge";
+import { RoleSelect } from "@/react/components/RoleSelect";
+import { UserAvatar } from "@/react/components/UserAvatar";
import { Badge } from "@/react/components/ui/badge";
import { Button } from "@/react/components/ui/button";
import { Input } from "@/react/components/ui/input";
import { SearchInput } from "@/react/components/ui/search-input";
import { Tooltip } from "@/react/components/ui/tooltip";
import { useEscapeKey } from "@/react/hooks/useEscapeKey";
+import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import { router } from "@/router";
import {
@@ -58,9 +61,6 @@ import {
} from "@/types/proto-es/v1/user_service_pb";
import { hasWorkspacePermissionV2 } from "@/utils";
import { AADSyncDrawer } from "./shared/AADSyncDrawer";
-import { RoleSelect } from "./shared/RoleSelect";
-import { UserAvatar } from "./shared/UserAvatar";
-import { PagedTableFooter, usePagedData } from "./shared/usePagedData";
// ============================================================
// UserTable
diff --git a/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx b/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx
index 9d29a0124b..cc86208212 100644
--- a/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx
+++ b/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx
@@ -2,8 +2,10 @@ import { Pencil, Plus, Trash2, Undo2 } from "lucide-react";
import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import { CreateWorkloadIdentityDrawer } from "@/react/components/CreateWorkloadIdentityDrawer";
+import { UserAvatar } from "@/react/components/UserAvatar";
import { Button } from "@/react/components/ui/button";
import { Tooltip } from "@/react/components/ui/tooltip";
+import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import {
ensureWorkloadIdentityFullName,
@@ -21,8 +23,6 @@ import type { Project } from "@/types/proto-es/v1/project_service_pb";
import type { User } from "@/types/proto-es/v1/user_service_pb";
import type { WorkloadIdentity } from "@/types/proto-es/v1/workload_identity_service_pb";
import { hasProjectPermissionV2, hasWorkspacePermissionV2 } from "@/utils";
-import { UserAvatar } from "./shared/UserAvatar";
-import { PagedTableFooter, usePagedData } from "./shared/usePagedData";
// ============================================================
// WorkloadIdentityTable
@@ -311,9 +311,9 @@ export function WorkloadIdentitiesPage({ projectId }: { projectId?: string }) {
};
return (
- <div className="w-full overflow-x-hidden flex flex-col py-4">
+ <div className="w-full px-4 overflow-x-hidden flex flex-col pt-2 pb-4">
{/* Header */}
- <div className="flex justify-between items-center px-4 pb-2">
+ <div className="flex items-center justify-between mb-4">
<p className="text-lg font-medium leading-7 text-main">
{t("settings.members.workload-identities")}
</p>
@@ -334,7 +334,7 @@ export function WorkloadIdentitiesPage({ projectId }: { projectId?: string }) {
</Button>
</div>
- <div className="flex flex-col gap-y-4 px-4">
+ <div className="flex flex-col gap-y-4">
{activeData.isLoading && activeData.dataList.length === 0 ? (
<div className="flex items-center justify-center h-32">
<div className="animate-spin h-6 w-6 border-2 border-accent border-t-transparent rounded-full" />
diff --git a/frontend/src/react/pages/settings/general/AccountSection.tsx b/frontend/src/react/pages/settings/general/AccountSection.tsx
index 3559b7ed14..db99024b7a 100644
--- a/frontend/src/react/pages/settings/general/AccountSection.tsx
+++ b/frontend/src/react/pages/settings/general/AccountSection.tsx
@@ -17,6 +17,7 @@ import {
PermissionGuard,
usePermissionCheck,
} from "@/react/components/PermissionGuard";
+import { Input } from "@/react/components/ui/input";
import { useVueState } from "@/react/hooks/useVueState";
import {
useActuatorV1Store,
@@ -415,9 +416,9 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
</p>
<div className="flex flex-col gap-y-3">
<div className="flex items-center">
- <input
+ <Input
type="number"
- className="w-24 mr-2 rounded-xs border border-control-border px-2 py-1 text-sm"
+ className="w-24 mr-2"
value={passwordState.minLength || DEFAULT_MIN_LENGTH}
min={DEFAULT_MIN_LENGTH}
disabled={disabled || !hasPasswordFeature}
@@ -543,9 +544,9 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
).split("{day}")[0]
}
{passwordState.passwordRotation ? (
- <input
+ <Input
type="number"
- className="w-24 mx-2 rounded-xs border border-control-border px-2 py-1 text-sm"
+ className="w-24 mx-2"
value={passwordRotationDays}
min={1}
disabled={disabled || !hasPasswordFeature}
@@ -673,9 +674,9 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
)}
</p>
<div className="mt-3 flex flex-row justify-start items-center gap-x-4">
- <input
+ <Input
type="number"
- className="w-24 rounded-xs border border-control-border px-2 py-1 text-sm"
+ className="w-24"
value={tokenState.accessTokenDuration}
min={1}
max={tokenState.accessTokenTimeFormat === "MINUTES" ? 59 : 23}
@@ -747,9 +748,9 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
)}
</p>
<div className="mt-3 flex flex-row justify-start items-center gap-x-4">
- <input
+ <Input
type="number"
- className="w-24 rounded-xs border border-control-border px-2 py-1 text-sm"
+ className="w-24"
value={tokenState.refreshTokenDuration}
min={1}
max={
@@ -831,9 +832,9 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
</span>
</p>
<div className="mt-3 flex flex-row justify-start items-center gap-x-4">
- <input
+ <Input
type="number"
- className="w-24 rounded-xs border border-control-border px-2 py-1 text-sm"
+ className="w-24"
value={tokenState.inactiveTimeout}
min={-1}
disabled={disabled || !hasSecureTokenFeature}
diff --git a/frontend/src/react/pages/settings/general/SecuritySection.tsx b/frontend/src/react/pages/settings/general/SecuritySection.tsx
index 6b4d7eb389..94014def4d 100644
--- a/frontend/src/react/pages/settings/general/SecuritySection.tsx
+++ b/frontend/src/react/pages/settings/general/SecuritySection.tsx
@@ -16,6 +16,7 @@ import {
PermissionGuard,
usePermissionCheck,
} from "@/react/components/PermissionGuard";
+import { Input } from "@/react/components/ui/input";
import { useVueState } from "@/react/hooks/useVueState";
import { useSubscriptionV1Store } from "@/store";
import { useSettingV1Store } from "@/store/modules/v1/setting";
@@ -255,9 +256,9 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(
<div className="mt-3 w-full flex flex-row">
<div className="flex items-center gap-4">
<div className="relative w-60">
- <input
+ <Input
type="number"
- className="w-full rounded-xs border border-control-border px-3 py-1.5 pr-14 text-sm disabled:opacity-50"
+ className="pr-14"
value={state.inputValue}
min={1}
step={1}
@@ -316,6 +317,18 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(
<div className="w-full flex flex-col gap-2 mt-2">
{/* Domain tags + input */}
<div className="flex flex-wrap items-center gap-2">
+ <Input
+ type="text"
+ className="min-w-[20rem]"
+ placeholder={t(
+ "settings.general.workspace.domain-restriction.domain-input-placeholder"
+ )}
+ value={domainInput}
+ disabled={!canEdit}
+ onChange={(e) => setDomainInput(e.target.value)}
+ onKeyDown={handleDomainKeyDown}
+ onBlur={addDomain}
+ />
{state.domains.map((domain, index) => (
<span
key={index}
@@ -332,18 +345,6 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(
</button>
</span>
))}
- <input
- type="text"
- className="min-w-[20rem] rounded-xs border border-control-border px-3 py-1.5 text-sm disabled:opacity-50"
- placeholder={t(
- "settings.general.workspace.domain-restriction.domain-input-placeholder"
- )}
- value={domainInput}
- disabled={!canEdit}
- onChange={(e) => setDomainInput(e.target.value)}
- onKeyDown={handleDomainKeyDown}
- onBlur={addDomain}
- />
</div>
{/* Enforce restriction checkbox */}
diff --git a/frontend/src/react/pages/settings/profile/ProfilePage.tsx b/frontend/src/react/pages/settings/profile/ProfilePage.tsx
index b66e692110..bd020dad3b 100644
--- a/frontend/src/react/pages/settings/profile/ProfilePage.tsx
+++ b/frontend/src/react/pages/settings/profile/ProfilePage.tsx
@@ -7,6 +7,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { t as vueT } from "@/plugins/i18n";
import { FeatureBadge } from "@/react/components/FeatureBadge";
+import { getAvatarColor, getInitials } from "@/react/components/UserAvatar";
import { Button } from "@/react/components/ui/button";
import {
Dialog,
@@ -17,10 +18,6 @@ import {
import { Input } from "@/react/components/ui/input";
import { useClickOutside } from "@/react/hooks/useClickOutside";
import { useVueState } from "@/react/hooks/useVueState";
-import {
- getAvatarColor,
- getInitials,
-} from "@/react/pages/settings/shared/UserAvatar";
import { RegenerateRecoveryCodesView } from "@/react/pages/settings/two-factor/RegenerateRecoveryCodesView";
import { router } from "@/router";
import {
diff --git a/frontend/src/react/pages/settings/shared/RoleSelect.tsx b/frontend/src/react/pages/settings/shared/RoleSelect.tsx
deleted file mode 100644
index 069fdfaee1..0000000000
--- a/frontend/src/react/pages/settings/shared/RoleSelect.tsx
+++ /dev/null
@@ -1,279 +0,0 @@
-import { Check, ChevronDown, Search, X } from "lucide-react";
-import { useEffect, useMemo, useRef, useState } from "react";
-import { createPortal } from "react-dom";
-import { useTranslation } from "react-i18next";
-import { FeatureBadge } from "@/react/components/FeatureBadge";
-import { useVueState } from "@/react/hooks/useVueState";
-import { cn } from "@/react/lib/utils";
-import { useRoleStore, useSubscriptionV1Store } from "@/store";
-import {
- PRESET_PROJECT_ROLES,
- PRESET_ROLES,
- PRESET_WORKSPACE_ROLES,
-} from "@/types/iam";
-import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";
-import { displayRoleDescription, displayRoleTitle } from "@/utils";
-
-interface RoleSelectProps {
- /** Selected role(s). For single mode pass a single-element array. */
- value: string[];
- onChange: (roles: string[]) => void;
- disabled?: boolean;
- /** Restrict to project roles only. */
- scope?: "project";
- /** Single-select mode: selecting a role replaces the previous selection and closes the dropdown. */
- multiple?: boolean;
- placeholder?: string;
-}
-
-export function RoleSelect({
- value,
- onChange,
- disabled,
- scope,
- multiple = true,
- placeholder,
-}: RoleSelectProps) {
- const { t } = useTranslation();
- const roleStore = useRoleStore();
- const subscriptionStore = useSubscriptionV1Store();
- const roleList = useVueState(() => [...roleStore.roleList]);
- const hasCustomRoleFeature = useVueState(() =>
- subscriptionStore.hasInstanceFeature(PlanFeature.FEATURE_CUSTOM_ROLES)
- );
- const [open, setOpen] = useState(false);
- const [search, setSearch] = useState("");
- const containerRef = useRef<HTMLDivElement>(null);
- const dropdownRef = useRef<HTMLDivElement>(null);
- const inputRef = useRef<HTMLInputElement>(null);
- const [dropdownStyle, setDropdownStyle] = useState<React.CSSProperties>({});
-
- const defaultPlaceholder = multiple
- ? t("settings.members.select-role", { count: 2 })
- : t("settings.members.assign-role");
-
- // Calculate dropdown position relative to viewport (for portal rendering)
- useEffect(() => {
- if (!open || !containerRef.current) return;
- const rect = containerRef.current.getBoundingClientRect();
- setDropdownStyle({
- position: "fixed",
- top: rect.bottom + 4,
- left: rect.left,
- width: rect.width,
- });
- }, [open]);
-
- // Click outside: close if click is outside both trigger and portal dropdown
- useEffect(() => {
- if (!open) return;
- const handler = (e: MouseEvent) => {
- const target = e.target as Node;
- if (containerRef.current?.contains(target)) return;
- if (dropdownRef.current?.contains(target)) return;
- setOpen(false);
- setSearch("");
- };
- document.addEventListener("mousedown", handler);
- return () => document.removeEventListener("mousedown", handler);
- }, [open]);
-
- const groups = useMemo(() => {
- const kw = search.toLowerCase();
- const matchRole = (name: string) =>
- !kw || displayRoleTitle(name).toLowerCase().includes(kw);
-
- const workspace = PRESET_WORKSPACE_ROLES.filter(matchRole);
- const project = PRESET_PROJECT_ROLES.filter(matchRole);
- const custom = roleList
- .filter((r) => !PRESET_ROLES.includes(r.name))
- .map((r) => r.name)
- .filter(matchRole);
-
- const result: { label: string; roles: string[] }[] = [];
- if (scope !== "project" && workspace.length > 0)
- result.push({
- label: t("role.workspace-roles.self"),
- roles: workspace,
- });
- if (project.length > 0)
- result.push({ label: t("role.project-roles.self"), roles: project });
- if (custom.length > 0)
- result.push({ label: t("role.custom-roles.self"), roles: custom });
- return result;
- }, [roleList, search, scope, t]);
-
- const isCustomRole = (name: string) => !PRESET_ROLES.includes(name);
-
- const selectRole = (roleName: string) => {
- if (disabled) return;
- if (isCustomRole(roleName) && !hasCustomRoleFeature) return;
-
- if (multiple) {
- if (value.includes(roleName)) {
- onChange(value.filter((r) => r !== roleName));
- } else {
- onChange([...value, roleName]);
- }
- } else {
- onChange([roleName]);
- setOpen(false);
- setSearch("");
- }
- };
-
- const remove = (roleName: string) => {
- if (disabled) return;
- onChange(value.filter((r) => r !== roleName));
- };
-
- const displayValue = multiple
- ? null
- : value.length > 0
- ? displayRoleTitle(value[0])
- : null;
-
- return (
- <div ref={containerRef} className="relative">
- {/* Trigger */}
- <div
- className={cn(
- "flex flex-wrap items-center gap-1 min-h-[2.25rem] w-full rounded-xs border border-control-border bg-transparent px-2 py-1 text-sm cursor-pointer",
- disabled && "opacity-50 cursor-not-allowed",
- open && "border-accent"
- )}
- onClick={() => {
- if (!disabled) {
- setOpen(!open);
- requestAnimationFrame(() => inputRef.current?.focus());
- }
- }}
- >
- {/* Multi: show chips */}
- {multiple &&
- value.map((roleName) => (
- <span
- key={roleName}
- className="inline-flex items-center gap-x-1 rounded-xs bg-gray-100 px-1.5 py-0.5 text-xs"
- >
- {displayRoleTitle(roleName)}
- {!disabled && (
- <button
- type="button"
- className="hover:text-error"
- onClick={(e) => {
- e.stopPropagation();
- remove(roleName);
- }}
- >
- <X className="h-3 w-3" />
- </button>
- )}
- </span>
- ))}
- {/* Single: show selected label */}
- {!multiple && (
- <span
- className={cn(
- "flex-1",
- !displayValue && "text-control-placeholder"
- )}
- >
- {displayValue || placeholder || defaultPlaceholder}
- </span>
- )}
- {/* Multi placeholder */}
- {multiple && value.length === 0 && (
- <span className="text-control-placeholder">
- {placeholder || defaultPlaceholder}
- </span>
- )}
- <ChevronDown className="ml-auto h-4 w-4 shrink-0 text-control-light" />
- </div>
-
- {/* Dropdown (portal to escape overflow containers) */}
- {open &&
- createPortal(
- <div
- ref={dropdownRef}
- style={dropdownStyle}
- className="z-[999] bg-white border border-control-border rounded-sm shadow-lg max-h-72 flex flex-col"
- >
- {/* Search input inside dropdown */}
- <div className="flex items-center gap-x-2 px-3 py-2 border-b sticky top-0 bg-white shrink-0">
- <Search className="h-4 w-4 text-control-light shrink-0" />
- <input
- ref={inputRef}
- className="flex-1 outline-hidden border-none shadow-none text-sm bg-transparent"
- value={search}
- onChange={(e) => setSearch(e.target.value)}
- placeholder={t("common.filter")}
- />
- </div>
-
- <div className="overflow-auto">
- {groups.length === 0 && (
- <div className="px-3 py-2 text-sm text-control-light">
- {t("common.no-data")}
- </div>
- )}
- {groups.map((group) => (
- <div key={group.label}>
- <div className="px-3 py-1.5 text-xs font-medium text-control-light uppercase tracking-wide bg-gray-50">
- {group.label}
- </div>
- {group.roles.map((roleName) => {
- const selected = value.includes(roleName);
- const isCustom = isCustomRole(roleName);
- const blocked = isCustom && !hasCustomRoleFeature;
- return (
- <div
- key={roleName}
- className={cn(
- "flex items-center gap-x-2 px-3 py-1.5 text-sm hover:bg-gray-50",
- selected && "bg-accent/5",
- blocked
- ? "opacity-50 cursor-not-allowed"
- : "cursor-pointer"
- )}
- onClick={() => selectRole(roleName)}
- >
- <div
- className={cn(
- "h-4 w-4 border flex items-center justify-center shrink-0",
- multiple ? "rounded-xs" : "rounded-full",
- selected
- ? "bg-accent border-accent text-white"
- : "border-control-border"
- )}
- >
- {selected && <Check className="h-3 w-3" />}
- </div>
- <div className="flex flex-col">
- <div className="flex items-center gap-x-1">
- <span>{displayRoleTitle(roleName)}</span>
- {blocked && (
- <FeatureBadge
- feature={PlanFeature.FEATURE_CUSTOM_ROLES}
- clickable={false}
- />
- )}
- </div>
- {displayRoleDescription(roleName) && (
- <span className="text-xs text-control-light">
- {displayRoleDescription(roleName)}
- </span>
- )}
- </div>
- </div>
- );
- })}
- </div>
- ))}
- </div>
- </div>,
- document.body
- )}
- </div>
- );
-}
diff --git a/frontend/src/react/plugins/agent/components/AgentChat.tsx b/frontend/src/react/plugins/agent/components/AgentChat.tsx
index 8eb7f0fa3d..2efb3a9448 100644
--- a/frontend/src/react/plugins/agent/components/AgentChat.tsx
+++ b/frontend/src/react/plugins/agent/components/AgentChat.tsx
@@ -112,7 +112,7 @@ export function AgentChat({ className }: AgentChatProps) {
<p className="my-1 first:mt-0 last:mb-0">{children}</p>
),
pre: ({ children }) => (
- <pre className="my-1 overflow-x-auto rounded bg-gray-100 p-2 text-xs">
+ <pre className="my-1 overflow-x-auto rounded-xs bg-gray-100 p-2 text-xs">
{children}
</pre>
),
diff --git a/frontend/src/react/plugins/agent/components/AgentInput.tsx b/frontend/src/react/plugins/agent/components/AgentInput.tsx
index 0eeff0f601..1cbbf61ba9 100644
--- a/frontend/src/react/plugins/agent/components/AgentInput.tsx
+++ b/frontend/src/react/plugins/agent/components/AgentInput.tsx
@@ -600,7 +600,7 @@ export function AgentInput() {
<div className="border-t p-3">
{/* Pending ask banner */}
{currentPendingAsk && (
- <div className="mb-3 rounded-md bg-amber-50 px-3 py-2 text-xs text-amber-700">
+ <div className="mb-3 rounded-xs bg-amber-50 px-3 py-2 text-xs text-amber-700">
<div className="font-medium">{currentPendingAsk.prompt}</div>
<div className="mt-1">
{currentPendingAsk.kind === "confirm"
@@ -614,19 +614,19 @@ export function AgentInput() {
{/* Interrupted banner */}
{isInterrupted && (
- <div className="mb-3 rounded-md bg-red-50 px-3 py-2 text-xs text-red-700">
+ <div className="mb-3 rounded-xs bg-red-50 px-3 py-2 text-xs text-red-700">
<div className="font-medium">{t("agent.interrupted")}</div>
<div className="mt-1">{t("agent.interrupted-retry-hint")}</div>
<div className="mt-2 flex flex-wrap gap-x-2 gap-y-2">
<button
- className="rounded-md bg-red-500 px-3 py-2 text-sm text-white hover:bg-red-600 disabled:opacity-50"
+ className="rounded-xs bg-red-500 px-3 py-2 text-sm text-white hover:bg-red-600 disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={retryLastTurn}
>
{t("agent.retry-last-chat-turn")}
</button>
<button
- className="rounded-md border px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 disabled:opacity-50"
+ className="rounded-xs border px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={dismissInterrupted}
>
@@ -640,14 +640,14 @@ export function AgentInput() {
{isAwaitingConfirm ? (
<div className="flex flex-wrap gap-x-2 gap-y-2">
<button
- className="rounded-md bg-blue-500 px-3 py-2 text-sm text-white hover:bg-blue-600 disabled:opacity-50"
+ className="rounded-xs bg-blue-500 px-3 py-2 text-sm text-white hover:bg-blue-600 disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={() => submitConfirmation(true)}
>
{confirmLabel}
</button>
<button
- className="rounded-md border px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 disabled:opacity-50"
+ className="rounded-xs border px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={() => submitConfirmation(false)}
>
@@ -660,7 +660,7 @@ export function AgentInput() {
{chooseOptions.map((option) => (
<button
key={option.value}
- className="rounded-md border px-3 py-2 text-left text-sm hover:bg-gray-50 disabled:opacity-50"
+ className="rounded-xs border px-3 py-2 text-left text-sm hover:bg-gray-50 disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={() => submitChoice(option)}
>
@@ -684,7 +684,7 @@ export function AgentInput() {
ref={textareaRef}
value={input}
rows={1}
- className="w-full resize-none rounded-md border px-3 py-1.5 text-sm outline-none focus:ring-1 focus:ring-accent disabled:opacity-50"
+ className="w-full resize-none rounded-xs border px-3 py-1.5 text-sm outline-none focus:ring-1 focus:ring-accent disabled:opacity-50"
style={{ maxHeight: 120 }}
placeholder={inputPlaceholder}
disabled={isCurrentChatRunning || isAIConfigurationBlocked}
@@ -702,7 +702,7 @@ export function AgentInput() {
{showMention && (
<div
ref={mentionListRef}
- className="absolute bottom-full left-0 z-50 mb-1 max-h-80 w-full overflow-y-auto rounded-md border bg-white shadow-lg"
+ className="absolute bottom-full left-0 z-50 mb-1 max-h-80 w-full overflow-y-auto rounded-xs border bg-white shadow-lg"
>
{mentionOptions.map((option, index) => {
const meta = formatDomRefSuggestionMeta(option.suggestion);
diff --git a/frontend/src/react/plugins/agent/components/AgentWindow.tsx b/frontend/src/react/plugins/agent/components/AgentWindow.tsx
index b8811f9fb2..c422a42a17 100644
--- a/frontend/src/react/plugins/agent/components/AgentWindow.tsx
+++ b/frontend/src/react/plugins/agent/components/AgentWindow.tsx
@@ -744,7 +744,7 @@ export function AgentWindow() {
<div className="flex items-center gap-x-1">
<button
data-agent-window-action
- className="flex h-5 w-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-600"
+ className="flex h-5 w-5 items-center justify-center rounded-xs text-gray-400 hover:bg-gray-200 hover:text-gray-600"
title={t("agent.minimize")}
onClick={(e) => {
e.stopPropagation();
@@ -755,7 +755,7 @@ export function AgentWindow() {
</button>
<button
data-agent-window-action
- className="flex h-5 w-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-600"
+ className="flex h-5 w-5 items-center justify-center rounded-xs text-gray-400 hover:bg-gray-200 hover:text-gray-600"
title={t("agent.close")}
onClick={(e) => {
e.stopPropagation();
@@ -784,7 +784,7 @@ export function AgentWindow() {
</h2>
</div>
<button
- className="rounded-md border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-gray-100 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400"
+ className="rounded-xs border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-gray-100 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400"
disabled={isChatCreationDisabled}
onClick={createChat}
>
@@ -799,7 +799,7 @@ export function AgentWindow() {
{displayedChats.map((chat) => (
<div
key={chat.id}
- className={`w-full rounded-md px-3 py-2 text-left text-sm transition-colors ${
+ className={`w-full rounded-xs px-3 py-2 text-left text-sm transition-colors ${
chat.id === currentChatId
? "bg-blue-50 text-blue-700"
: "text-gray-700 hover:bg-white"
@@ -863,7 +863,7 @@ export function AgentWindow() {
<>
{showArchivedOnly ? (
<button
- className="rounded-md border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-white"
+ className="rounded-xs border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-white"
data-agent-unarchive-chat
onClick={toggleArchiveCurrentChat}
>
@@ -873,7 +873,7 @@ export function AgentWindow() {
<ConfirmDialog
message={t("agent.archive-chat-confirmation")}
onConfirm={toggleArchiveCurrentChat}
- triggerClassName="rounded-md border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-white"
+ triggerClassName="rounded-xs border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-white"
triggerLabel={t("agent.archive-chat")}
triggerDataAttr="data-agent-archive-chat"
/>
@@ -882,7 +882,7 @@ export function AgentWindow() {
<ConfirmDialog
message={t("agent.delete-chat-confirmation")}
onConfirm={deleteCurrentChat}
- triggerClassName="rounded-md border px-2 py-1.5 text-xs font-medium text-red-600 hover:bg-red-50"
+ triggerClassName="rounded-xs border px-2 py-1.5 text-xs font-medium text-red-600 hover:bg-red-50"
triggerLabel={t("agent.delete-chat")}
triggerDataAttr="data-agent-delete-chat"
/>
@@ -890,7 +890,7 @@ export function AgentWindow() {
</>
)}
<button
- className="ml-auto inline-flex items-center rounded-md border p-1.5 text-xs font-medium text-gray-600 hover:bg-white"
+ className="ml-auto inline-flex items-center rounded-xs border p-1.5 text-xs font-medium text-gray-600 hover:bg-white"
aria-label={
showArchivedOnly
? t("agent.archived-only-chats")
@@ -991,7 +991,7 @@ function ConfirmDialog({
<div className="flex justify-end gap-x-2">
<DialogClose
render={
- <button className="rounded-md border px-3 py-1.5 text-sm font-medium text-gray-600 hover:bg-gray-100">
+ <button className="rounded-xs border px-3 py-1.5 text-sm font-medium text-gray-600 hover:bg-gray-100">
{t("common.cancel")}
</button>
}
@@ -999,7 +999,7 @@ function ConfirmDialog({
<DialogClose
render={
<button
- className="rounded-md bg-blue-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-blue-600"
+ className="rounded-xs bg-blue-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-blue-600"
onClick={onConfirm}
>
{t("common.confirm")}