Skip to content

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

feat(exp): connect rpc (#16489)

p0ny5da82af223fd
diff --git a/backend/api/v1/actuator_service_connect.go b/backend/api/v1/actuator_service_connect.go
new file mode 100644
index 0000000000..684a9cda96
--- /dev/null
+++ b/backend/api/v1/actuator_service_connect.go
@@ -0,0 +1,84 @@
+package v1
+
+import (
+ "context"
+
+ "connectrpc.com/connect"
+ "google.golang.org/protobuf/types/known/emptypb"
+
+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"
+ "github.com/bytebase/bytebase/proto/generated-go/v1/v1connect"
+)
+
+// ActuatorServiceConnectHandler implements the Connect RPC interface for ActuatorService.
+type ActuatorServiceConnectHandler struct {
+ v1connect.UnimplementedActuatorServiceHandler
+ service *ActuatorService
+}
+
+// NewActuatorServiceConnectHandler creates a new Connect RPC handler for ActuatorService.
+func NewActuatorServiceConnectHandler(service *ActuatorService) *ActuatorServiceConnectHandler {
+ return &ActuatorServiceConnectHandler{
+ service: service,
+ }
+}
+
+// GetActuatorInfo gets the actuator info.
+func (h *ActuatorServiceConnectHandler) GetActuatorInfo(
+ ctx context.Context,
+ req *connect.Request[v1pb.GetActuatorInfoRequest],
+) (*connect.Response[v1pb.ActuatorInfo], error) {
+ info, err := h.service.GetActuatorInfo(ctx, req.Msg)
+ if err != nil {
+ return nil, err
+ }
+ return connect.NewResponse(info), nil
+}
+
+// UpdateActuatorInfo updates the actuator info.
+func (h *ActuatorServiceConnectHandler) UpdateActuatorInfo(
+ ctx context.Context,
+ req *connect.Request[v1pb.UpdateActuatorInfoRequest],
+) (*connect.Response[v1pb.ActuatorInfo], error) {
+ info, err := h.service.UpdateActuatorInfo(ctx, req.Msg)
+ if err != nil {
+ return nil, err
+ }
+ return connect.NewResponse(info), nil
+}
+
+// SetupSample sets up the sample project and instance.
+func (h *ActuatorServiceConnectHandler) SetupSample(
+ ctx context.Context,
+ req *connect.Request[v1pb.SetupSampleRequest],
+) (*connect.Response[emptypb.Empty], error) {
+ empty, err := h.service.SetupSample(ctx, req.Msg)
+ if err != nil {
+ return nil, err
+ }
+ return connect.NewResponse(empty), nil
+}
+
+// DeleteCache deletes the cache.
+func (h *ActuatorServiceConnectHandler) DeleteCache(
+ ctx context.Context,
+ req *connect.Request[v1pb.DeleteCacheRequest],
+) (*connect.Response[emptypb.Empty], error) {
+ empty, err := h.service.DeleteCache(ctx, req.Msg)
+ if err != nil {
+ return nil, err
+ }
+ return connect.NewResponse(empty), nil
+}
+
+// GetResourcePackage gets the theme resources.
+func (h *ActuatorServiceConnectHandler) GetResourcePackage(
+ ctx context.Context,
+ req *connect.Request[v1pb.GetResourcePackageRequest],
+) (*connect.Response[v1pb.ResourcePackage], error) {
+ pkg, err := h.service.GetResourcePackage(ctx, req.Msg)
+ if err != nil {
+ return nil, err
+ }
+ return connect.NewResponse(pkg), nil
+}
diff --git a/backend/server/grpc_routes.go b/backend/server/grpc_routes.go
index ae3bae6d59..3527261c72 100644
--- a/backend/server/grpc_routes.go
+++ b/backend/server/grpc_routes.go
@@ -3,11 +3,14 @@ package server
import (
"context"
"fmt"
+ "net/http"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
+ connectcors "connectrpc.com/cors"
grpcruntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
+ "github.com/rs/cors"
apiv1 "github.com/bytebase/bytebase/backend/api/v1"
"github.com/bytebase/bytebase/backend/component/config"
@@ -21,8 +24,23 @@ import (
"github.com/bytebase/bytebase/backend/runner/schemasync"
"github.com/bytebase/bytebase/backend/store"
v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"
+ "github.com/bytebase/bytebase/proto/generated-go/v1/v1connect"
)
+// withCORS adds CORS support to a Connect HTTP handler following Connect RPC documentation.
+func withCORS(h http.Handler) http.Handler {
+ middleware := cors.New(cors.Options{
+ AllowOriginFunc: func(string) bool {
+ return true
+ },
+ AllowedMethods: connectcors.AllowedMethods(),
+ AllowedHeaders: connectcors.AllowedHeaders(),
+ ExposedHeaders: connectcors.ExposedHeaders(),
+ AllowCredentials: true,
+ })
+ return middleware.Handler(h)
+}
+
func configureGrpcRouters(
ctx context.Context,
mux *grpcruntime.ServeMux,
@@ -38,14 +56,24 @@ func configureGrpcRouters(
webhookManager *webhook.Manager,
iamManager *iam.Manager,
secret string,
-) error {
+) (map[string]http.Handler, error) {
// Register services.
authService := apiv1.NewAuthService(stores, secret, licenseService, metricReporter, profile, stateCfg, iamManager)
userService := apiv1.NewUserService(stores, secret, licenseService, metricReporter, profile, stateCfg, iamManager)
v1pb.RegisterAuditLogServiceServer(grpcServer, apiv1.NewAuditLogService(stores, iamManager, licenseService))
v1pb.RegisterAuthServiceServer(grpcServer, authService)
v1pb.RegisterUserServiceServer(grpcServer, userService)
- v1pb.RegisterActuatorServiceServer(grpcServer, apiv1.NewActuatorService(stores, profile, schemaSyncer, licenseService))
+ // Register ActuatorService with both gRPC and Connect RPC
+ actuatorService := apiv1.NewActuatorService(stores, profile, schemaSyncer, licenseService)
+ v1pb.RegisterActuatorServiceServer(grpcServer, actuatorService)
+
+ // Create Connect RPC handlers with CORS support following Connect RPC documentation
+ connectHandlers := make(map[string]http.Handler)
+ connectActuatorHandler := apiv1.NewActuatorServiceConnectHandler(actuatorService)
+ connectPath, connectHTTPHandler := v1connect.NewActuatorServiceHandler(connectActuatorHandler)
+
+ // Add CORS support using Connect RPC's recommended approach
+ connectHandlers[connectPath] = withCORS(connectHTTPHandler)
v1pb.RegisterSubscriptionServiceServer(grpcServer, apiv1.NewSubscriptionService(
stores,
profile,
@@ -98,93 +126,96 @@ func configureGrpcRouters(
),
)
if err != nil {
- return err
+ return nil, err
}
// Sort by service name, align with api.bytebase.com.
if err := v1pb.RegisterActuatorServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterUserServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterAuditLogServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterAuthServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterCelServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterChangelistServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterDatabaseGroupServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterDatabaseServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterRevisionServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterDatabaseCatalogServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterGroupServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterIdentityProviderServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterInstanceRoleServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterInstanceServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterIssueServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterOrgPolicyServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterPlanServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterProjectServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterReviewConfigServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterRiskServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterRoleServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterRolloutServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterSQLServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterSettingServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterSheetServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterSubscriptionServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterWorksheetServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
}
if err := v1pb.RegisterWorkspaceServiceHandler(ctx, mux, grpcConn); err != nil {
- return err
+ return nil, err
+ }
+ if err := v1pb.RegisterReleaseServiceHandler(ctx, mux, grpcConn); err != nil {
+ return nil, err
}
- return v1pb.RegisterReleaseServiceHandler(ctx, mux, grpcConn)
+ return connectHandlers, nil
}
diff --git a/backend/server/routers.go b/backend/server/routers.go
index 0e4b3dbdd9..d083d7a465 100644
--- a/backend/server/routers.go
+++ b/backend/server/routers.go
@@ -27,6 +27,7 @@ func configureEchoRouters(
directorySyncServer *directorysync.Service,
mux *grpcruntime.ServeMux,
profile *config.Profile,
+ connectHandlers map[string]http.Handler,
) {
e.Use(recoverMiddleware)
@@ -77,6 +78,11 @@ func configureEchoRouters(
)))
e.Any("/v1/*", echo.WrapHandler(mux))
+ // Register Connect RPC handlers
+ for path, handler := range connectHandlers {
+ e.Any(path+"*", echo.WrapHandler(handler))
+ }
+
// GRPC web proxy.
options := []grpcweb.Option{
grpcweb.WithCorsForRegisteredEndpointsOnly(false),
diff --git a/backend/server/server.go b/backend/server/server.go
index 56d35b0656..7fd643ee52 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -289,13 +289,14 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {
// LSP server.
s.lspServer = lsp.NewServer(s.store, profile)
- if err := configureGrpcRouters(ctx, mux, s.grpcServer, s.store, sheetManager, s.dbFactory, s.licenseService, s.profile, s.metricReporter, s.stateCfg, s.schemaSyncer, s.webhookManager, s.iamManager, secret); err != nil {
+ connectHandlers, err := configureGrpcRouters(ctx, mux, s.grpcServer, s.store, sheetManager, s.dbFactory, s.licenseService, s.profile, s.metricReporter, s.stateCfg, s.schemaSyncer, s.webhookManager, s.iamManager, secret)
+ if err != nil {
return nil, errors.Wrapf(err, "failed to configure gRPC routers")
}
directorySyncServer := directorysync.NewService(s.store, s.licenseService, s.iamManager)
// Configure echo server routes.
- configureEchoRouters(s.echoServer, s.grpcServer, s.lspServer, directorySyncServer, mux, profile)
+ configureEchoRouters(s.echoServer, s.grpcServer, s.lspServer, directorySyncServer, mux, profile, connectHandlers)
// Configure grpc prometheus metrics.
if err := prometheus.DefaultRegisterer.Register(srvMetrics); err != nil {
diff --git a/frontend/package.json b/frontend/package.json
index 50f06bb147..4f452b9c37 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -24,6 +24,8 @@
"@codingame/monaco-vscode-textmate-service-override": "15.0.3",
"@codingame/monaco-vscode-theme-defaults-default-extension": "15.0.3",
"@codingame/monaco-vscode-theme-service-override": "15.0.3",
+ "@connectrpc/connect": "^2.0.2",
+ "@connectrpc/connect-web": "^2.0.2",
"@markdoc/markdoc": "0.5.2",
"@soerenmartius/vue3-clipboard": "0.1.2",
"@tanstack/vue-query": "^5.79.2",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index db935cb349..e692f350d1 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -34,6 +34,12 @@ importers:
'@codingame/monaco-vscode-theme-service-override':
specifier: 15.0.3
version: 15.0.3
+ '@connectrpc/connect':
+ specifier: ^2.0.2
+ version: 2.0.2(@bufbuild/[email protected])
+ '@connectrpc/connect-web':
+ specifier: ^2.0.2
+ version: 2.0.2(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))
'@markdoc/markdoc':
specifier: 0.5.2
version: 0.5.2
@@ -1449,6 +1455,17 @@ packages:
'@codingame/[email protected]':
resolution: {integrity: sha512-JZjKFgOvg4uSrvWU1wNwZKWXl93ZpZypDdXxPs9w9xcmDvRBMN97nZhg1nDWgZBqkgszbMlt+mkjvKCDk/SwnA==}
+ '@connectrpc/[email protected]':
+ resolution: {integrity: sha512-QANMFPiL2o66BdBEctg4TsQLe5ozsBLqcle3dCBp7BwGlNGTY6NnNnqmt+YRnpeMW88GgomJwWNMGCrRD9pRKA==}
+ peerDependencies:
+ '@bufbuild/protobuf': ^2.2.0
+ '@connectrpc/connect': 2.0.2
+
+ '@connectrpc/[email protected]':
+ resolution: {integrity: sha512-xZuylIUNvNlH52e/4eQsZvY4QZyDJRtEFEDnn/yBrv5Xi5ZZI/p8X+GAHH35ucVaBvv9u7OzHZo8+tEh1EFTxA==}
+ peerDependencies:
+ '@bufbuild/protobuf': ^2.2.0
+
'@cspotcode/[email protected]':
resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
engines: {node: '>=12'}
@@ -6992,6 +7009,15 @@ snapshots:
'@codingame/monaco-vscode-api': 15.0.3
'@codingame/monaco-vscode-files-service-override': 15.0.3
+ '@connectrpc/[email protected](@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))':
+ dependencies:
+ '@bufbuild/protobuf': 2.5.1
+ '@connectrpc/connect': 2.0.2(@bufbuild/[email protected])
+
+ '@connectrpc/[email protected](@bufbuild/[email protected])':
+ dependencies:
+ '@bufbuild/protobuf': 2.5.1
+
'@cspotcode/[email protected]':
dependencies:
'@jridgewell/trace-mapping': 0.3.9
diff --git a/frontend/src/grpcweb/index.ts b/frontend/src/grpcweb/index.ts
index 8c5be8a695..4c6ecafff9 100644
--- a/frontend/src/grpcweb/index.ts
+++ b/frontend/src/grpcweb/index.ts
@@ -1,4 +1,6 @@
-import { ActuatorServiceDefinition } from "@/types/proto/v1/actuator_service";
+import { createClient } from '@connectrpc/connect';
+import { createConnectTransport } from '@connectrpc/connect-web';
+import { ActuatorService } from '@/types/proto-es/v1/actuator_service_pb';
import { AuditLogServiceDefinition } from "@/types/proto/v1/audit_log_service";
import { AuthServiceDefinition } from "@/types/proto/v1/auth_service";
import { CelServiceDefinition } from "@/types/proto/v1/cel_service";
@@ -176,11 +178,6 @@ export const subscriptionServiceClient = clientFactory.create(
channel
);
-export const actuatorServiceClient = clientFactory.create(
- ActuatorServiceDefinition,
- channel
-);
-
export const changelistServiceClient = clientFactory.create(
ChangelistServiceDefinition,
channel
@@ -229,3 +226,11 @@ export const instanceRoleServiceClient = clientFactory.create(
// web: true,
// });
// const { users } = await authServiceClient.listUsers({});
+
+
+const transport = createConnectTransport({
+ baseUrl: address,
+ useBinaryFormat: true,
+})
+
+export const actuatorServiceClientConnect = createClient(ActuatorService, transport)
\ No newline at end of file
diff --git a/frontend/src/store/modules/v1/actuator.ts b/frontend/src/store/modules/v1/actuator.ts
index 0ebbc94bd6..e80fd19894 100644
--- a/frontend/src/store/modules/v1/actuator.ts
+++ b/frontend/src/store/modules/v1/actuator.ts
@@ -1,10 +1,11 @@
+import { create } from "@bufbuild/protobuf";
import type { RemovableRef } from "@vueuse/core";
import { useLocalStorage } from "@vueuse/core";
import axios from "axios";
import { defineStore } from "pinia";
import semver from "semver";
import { computed } from "vue";
-import { actuatorServiceClient } from "@/grpcweb";
+import { actuatorServiceClientConnect } from "@/grpcweb";
import { useSilentRequest } from "@/plugins/silent-request";
import {
defaultAppProfile,
@@ -16,10 +17,12 @@ import {
import type {
ActuatorInfo,
ResourcePackage,
-} from "@/types/proto/v1/actuator_service";
-import { State } from "@/types/proto/v1/common";
-import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";
-import { UserType } from "@/types/proto/v1/user_service";
+} from "@/types/proto-es/v1/actuator_service_pb";
+import { State } from "@/types/proto-es/v1/common_pb";
+import {
+ PasswordRestrictionSettingSchema,
+} from "@/types/proto-es/v1/setting_service_pb";
+import { UserType } from "@/types/proto-es/v1/user_service_pb";
import { semverCompare } from "@/utils";
const EXTERNAL_URL_PLACEHOLDER =
@@ -129,7 +132,7 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
passwordRestriction: (state) => {
return (
state.serverInfo?.passwordRestriction ??
- PasswordRestrictionSetting.fromPartial({
+ create(PasswordRestrictionSettingSchema, {
minLength: 8,
requireLetter: true,
})
@@ -174,19 +177,21 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
},
async fetchServerInfo() {
const [serverInfo, resourcePackage] = await Promise.all([
- actuatorServiceClient.getActuatorInfo({}),
- actuatorServiceClient.getResourcePackage({}),
+ actuatorServiceClientConnect.getActuatorInfo({}),
+ actuatorServiceClientConnect.getResourcePackage({}),
]);
this.setServerInfo(serverInfo);
this.resourcePackage = resourcePackage;
return serverInfo;
},
async patchDebug({ debug }: { debug: boolean }) {
- const serverInfo = await actuatorServiceClient.updateActuatorInfo({
+ const serverInfo = await actuatorServiceClientConnect.updateActuatorInfo({
actuator: {
debug,
},
- updateMask: ["debug"],
+ updateMask: {
+ paths: ["debug"],
+ },
});
this.setServerInfo(serverInfo);
},
@@ -248,7 +253,7 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
}
},
async setupSample() {
- await actuatorServiceClient.setupSample({});
+ await actuatorServiceClientConnect.setupSample({});
},
overrideAppFeatures(overrides: Partial<AppFeatures>) {
Object.assign(this.appProfile.features, overrides);
diff --git a/frontend/src/types/proto-es/google/api/annotations_pb.d.ts b/frontend/src/types/proto-es/google/api/annotations_pb.d.ts
new file mode 100644
index 0000000000..b52b1c2ef7
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/annotations_pb.d.ts
@@ -0,0 +1,34 @@
+// Copyright 2015 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/annotations.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
+import type { MethodOptions } from "@bufbuild/protobuf/wkt";
+import type { HttpRule } from "./http_pb";
+
+/**
+ * Describes the file google/api/annotations.proto.
+ */
+export declare const file_google_api_annotations: GenFile;
+
+/**
+ * See `HttpRule`.
+ *
+ * @generated from extension: google.api.HttpRule http = 72295728;
+ */
+export declare const http: GenExtension<MethodOptions, HttpRule>;
+
diff --git a/frontend/src/types/proto-es/google/api/annotations_pb.js b/frontend/src/types/proto-es/google/api/annotations_pb.js
new file mode 100644
index 0000000000..3474fbcd70
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/annotations_pb.js
@@ -0,0 +1,36 @@
+// Copyright 2015 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/annotations.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_http } from "./http_pb";
+import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/annotations.proto.
+ */
+export const file_google_api_annotations = /*@__PURE__*/
+ fileDesc("Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpOksKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVSBGh0dHBCbgoOY29tLmdvb2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [file_google_api_http, file_google_protobuf_descriptor]);
+
+/**
+ * See `HttpRule`.
+ *
+ * @generated from extension: google.api.HttpRule http = 72295728;
+ */
+export const http = /*@__PURE__*/
+ extDesc(file_google_api_annotations, 0);
+
diff --git a/frontend/src/types/proto-es/google/api/client_pb.d.ts b/frontend/src/types/proto-es/google/api/client_pb.d.ts
new file mode 100644
index 0000000000..6a3b567e87
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/client_pb.d.ts
@@ -0,0 +1,67 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/client.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
+import type { MethodOptions } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/client.proto.
+ */
+export declare const file_google_api_client: GenFile;
+
+/**
+ * A definition of a client library method signature.
+ *
+ * In client libraries, each proto RPC corresponds to one or more methods
+ * which the end user is able to call, and calls the underlying RPC.
+ * Normally, this method receives a single argument (a struct or instance
+ * corresponding to the RPC request object). Defining this field will
+ * add one or more overloads providing flattened or simpler method signatures
+ * in some languages.
+ *
+ * The fields on the method signature are provided as a comma-separated
+ * string.
+ *
+ * For example, the proto RPC and annotation:
+ *
+ * rpc CreateSubscription(CreateSubscriptionRequest)
+ * returns (Subscription) {
+ * option (google.api.method_signature) = "name,topic";
+ * }
+ *
+ * Would add the following Java overload (in addition to the method accepting
+ * the request object):
+ *
+ * public final Subscription createSubscription(String name, String topic)
+ *
+ * The following backwards-compatibility guidelines apply:
+ *
+ * * Adding this annotation to an unannotated method is backwards
+ * compatible.
+ * * Adding this annotation to a method which already has existing
+ * method signature annotations is backwards compatible if and only if
+ * the new method signature annotation is last in the sequence.
+ * * Modifying or removing an existing method signature annotation is
+ * a breaking change.
+ * * Re-ordering existing method signature annotations is a breaking
+ * change.
+ *
+ * @generated from extension: repeated string method_signature = 1051;
+ */
+export declare const method_signature: GenExtension<MethodOptions, string[]>;
+
diff --git a/frontend/src/types/proto-es/google/api/client_pb.js b/frontend/src/types/proto-es/google/api/client_pb.js
new file mode 100644
index 0000000000..9a054c133e
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/client_pb.js
@@ -0,0 +1,69 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/client.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/client.proto.
+ */
+export const file_google_api_client = /*@__PURE__*/
+ fileDesc("Chdnb29nbGUvYXBpL2NsaWVudC5wcm90bxIKZ29vZ2xlLmFwaTpKChBtZXRob2Rfc2lnbmF0dXJlEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYmwggAygJUg9tZXRob2RTaWduYXR1cmVCaQoOY29tLmdvb2dsZS5hcGlCC0NsaWVudFByb3RvUAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2Fubm90YXRpb25zO2Fubm90YXRpb25zogIER0FQSWIGcHJvdG8z", [file_google_protobuf_descriptor]);
+
+/**
+ * A definition of a client library method signature.
+ *
+ * In client libraries, each proto RPC corresponds to one or more methods
+ * which the end user is able to call, and calls the underlying RPC.
+ * Normally, this method receives a single argument (a struct or instance
+ * corresponding to the RPC request object). Defining this field will
+ * add one or more overloads providing flattened or simpler method signatures
+ * in some languages.
+ *
+ * The fields on the method signature are provided as a comma-separated
+ * string.
+ *
+ * For example, the proto RPC and annotation:
+ *
+ * rpc CreateSubscription(CreateSubscriptionRequest)
+ * returns (Subscription) {
+ * option (google.api.method_signature) = "name,topic";
+ * }
+ *
+ * Would add the following Java overload (in addition to the method accepting
+ * the request object):
+ *
+ * public final Subscription createSubscription(String name, String topic)
+ *
+ * The following backwards-compatibility guidelines apply:
+ *
+ * * Adding this annotation to an unannotated method is backwards
+ * compatible.
+ * * Adding this annotation to a method which already has existing
+ * method signature annotations is backwards compatible if and only if
+ * the new method signature annotation is last in the sequence.
+ * * Modifying or removing an existing method signature annotation is
+ * a breaking change.
+ * * Re-ordering existing method signature annotations is a breaking
+ * change.
+ *
+ * @generated from extension: repeated string method_signature = 1051;
+ */
+export const method_signature = /*@__PURE__*/
+ extDesc(file_google_api_client, 0);
+
diff --git a/frontend/src/types/proto-es/google/api/expr/v1alpha1/syntax_pb.d.ts b/frontend/src/types/proto-es/google/api/expr/v1alpha1/syntax_pb.d.ts
new file mode 100644
index 0000000000..135ea9fece
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/expr/v1alpha1/syntax_pb.d.ts
@@ -0,0 +1,562 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/expr/v1alpha1/syntax.proto (package google.api.expr.v1alpha1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Duration, NullValue, Timestamp } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/expr/v1alpha1/syntax.proto.
+ */
+export declare const file_google_api_expr_v1alpha1_syntax: GenFile;
+
+/**
+ * An abstract representation of a common expression.
+ *
+ * Expressions are abstractly represented as a collection of identifiers,
+ * select statements, function calls, literals, and comprehensions. All
+ * operators with the exception of the '.' operator are modelled as function
+ * calls. This makes it easy to represent new operators into the existing AST.
+ *
+ * All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at
+ * type-check for an expression to be valid. A reference may either be a bare
+ * identifier `name` or a qualified identifier `google.api.name`. References
+ * may either refer to a value or a function declaration.
+ *
+ * For example, the expression `google.api.name.startsWith('expr')` references
+ * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and
+ * the function declaration `startsWith`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr
+ */
+export declare type Expr = Message<"google.api.expr.v1alpha1.Expr"> & {
+ /**
+ * Required. An id assigned to this node by the parser which is unique in a
+ * given expression tree. This is used to associate type information and other
+ * attributes to a node in the parse tree.
+ *
+ * @generated from field: int64 id = 2;
+ */
+ id: bigint;
+
+ /**
+ * Required. Variants of expressions.
+ *
+ * @generated from oneof google.api.expr.v1alpha1.Expr.expr_kind
+ */
+ exprKind: {
+ /**
+ * A literal expression.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Constant const_expr = 3;
+ */
+ value: Constant;
+ case: "constExpr";
+ } | {
+ /**
+ * An identifier expression.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;
+ */
+ value: Expr_Ident;
+ case: "identExpr";
+ } | {
+ /**
+ * A field selection expression, e.g. `request.auth`.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr.Select select_expr = 5;
+ */
+ value: Expr_Select;
+ case: "selectExpr";
+ } | {
+ /**
+ * A call expression, including calls to predefined functions and operators.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr.Call call_expr = 6;
+ */
+ value: Expr_Call;
+ case: "callExpr";
+ } | {
+ /**
+ * A list creation expression.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;
+ */
+ value: Expr_CreateList;
+ case: "listExpr";
+ } | {
+ /**
+ * A map or message creation expression.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;
+ */
+ value: Expr_CreateStruct;
+ case: "structExpr";
+ } | {
+ /**
+ * A comprehension expression.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;
+ */
+ value: Expr_Comprehension;
+ case: "comprehensionExpr";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.
+ * Use `create(ExprSchema)` to create a new message.
+ */
+export declare const ExprSchema: GenMessage<Expr>;
+
+/**
+ * An identifier expression. e.g. `request`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.Ident
+ */
+export declare type Expr_Ident = Message<"google.api.expr.v1alpha1.Expr.Ident"> & {
+ /**
+ * Required. Holds a single, unqualified identifier, possibly preceded by a
+ * '.'.
+ *
+ * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Ident.
+ * Use `create(Expr_IdentSchema)` to create a new message.
+ */
+export declare const Expr_IdentSchema: GenMessage<Expr_Ident>;
+
+/**
+ * A field selection expression. e.g. `request.auth`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.Select
+ */
+export declare type Expr_Select = Message<"google.api.expr.v1alpha1.Expr.Select"> & {
+ /**
+ * Required. The target of the selection expression.
+ *
+ * For example, in the select expression `request.auth`, the `request`
+ * portion of the expression is the `operand`.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr operand = 1;
+ */
+ operand?: Expr;
+
+ /**
+ * Required. The name of the field to select.
+ *
+ * For example, in the select expression `request.auth`, the `auth` portion
+ * of the expression would be the `field`.
+ *
+ * @generated from field: string field = 2;
+ */
+ field: string;
+
+ /**
+ * Whether the select is to be interpreted as a field presence test.
+ *
+ * This results from the macro `has(request.auth)`.
+ *
+ * @generated from field: bool test_only = 3;
+ */
+ testOnly: boolean;
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Select.
+ * Use `create(Expr_SelectSchema)` to create a new message.
+ */
+export declare const Expr_SelectSchema: GenMessage<Expr_Select>;
+
+/**
+ * A call expression, including calls to predefined functions and operators.
+ *
+ * For example, `value == 10`, `size(map_value)`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.Call
+ */
+export declare type Expr_Call = Message<"google.api.expr.v1alpha1.Expr.Call"> & {
+ /**
+ * The target of an method call-style expression. For example, `x` in
+ * `x.f()`.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr target = 1;
+ */
+ target?: Expr;
+
+ /**
+ * Required. The name of the function or method being called.
+ *
+ * @generated from field: string function = 2;
+ */
+ function: string;
+
+ /**
+ * The arguments.
+ *
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr args = 3;
+ */
+ args: Expr[];
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Call.
+ * Use `create(Expr_CallSchema)` to create a new message.
+ */
+export declare const Expr_CallSchema: GenMessage<Expr_Call>;
+
+/**
+ * A list creation expression.
+ *
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
+ * `dyn([1, 'hello', 2.0])`
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.CreateList
+ */
+export declare type Expr_CreateList = Message<"google.api.expr.v1alpha1.Expr.CreateList"> & {
+ /**
+ * The elements part of the list.
+ *
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr elements = 1;
+ */
+ elements: Expr[];
+
+ /**
+ * The indices within the elements list which are marked as optional
+ * elements.
+ *
+ * When an optional-typed value is present, the value it contains
+ * is included in the list. If the optional-typed value is absent, the list
+ * element is omitted from the CreateList result.
+ *
+ * @generated from field: repeated int32 optional_indices = 2;
+ */
+ optionalIndices: number[];
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.CreateList.
+ * Use `create(Expr_CreateListSchema)` to create a new message.
+ */
+export declare const Expr_CreateListSchema: GenMessage<Expr_CreateList>;
+
+/**
+ * A map or message creation expression.
+ *
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
+ * similar, but prefixed with a type name and composed of field ids:
+ * `types.MyType{field_id: 'value'}`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.CreateStruct
+ */
+export declare type Expr_CreateStruct = Message<"google.api.expr.v1alpha1.Expr.CreateStruct"> & {
+ /**
+ * The type name of the message to be created, empty when creating map
+ * literals.
+ *
+ * @generated from field: string message_name = 1;
+ */
+ messageName: string;
+
+ /**
+ * The entries in the creation expression.
+ *
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
+ */
+ entries: Expr_CreateStruct_Entry[];
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.CreateStruct.
+ * Use `create(Expr_CreateStructSchema)` to create a new message.
+ */
+export declare const Expr_CreateStructSchema: GenMessage<Expr_CreateStruct>;
+
+/**
+ * Represents an entry.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.CreateStruct.Entry
+ */
+export declare type Expr_CreateStruct_Entry = Message<"google.api.expr.v1alpha1.Expr.CreateStruct.Entry"> & {
+ /**
+ * Required. An id assigned to this node by the parser which is unique
+ * in a given expression tree. This is used to associate type
+ * information and other attributes to the node.
+ *
+ * @generated from field: int64 id = 1;
+ */
+ id: bigint;
+
+ /**
+ * The `Entry` key kinds.
+ *
+ * @generated from oneof google.api.expr.v1alpha1.Expr.CreateStruct.Entry.key_kind
+ */
+ keyKind: {
+ /**
+ * The field key for a message creator statement.
+ *
+ * @generated from field: string field_key = 2;
+ */
+ value: string;
+ case: "fieldKey";
+ } | {
+ /**
+ * The key expression for a map creation statement.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr map_key = 3;
+ */
+ value: Expr;
+ case: "mapKey";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * Required. The value assigned to the key.
+ *
+ * If the optional_entry field is true, the expression must resolve to an
+ * optional-typed value. If the optional value is present, the key will be
+ * set; however, if the optional value is absent, the key will be unset.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr value = 4;
+ */
+ value?: Expr;
+
+ /**
+ * Whether the key-value pair is optional.
+ *
+ * @generated from field: bool optional_entry = 5;
+ */
+ optionalEntry: boolean;
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.CreateStruct.Entry.
+ * Use `create(Expr_CreateStruct_EntrySchema)` to create a new message.
+ */
+export declare const Expr_CreateStruct_EntrySchema: GenMessage<Expr_CreateStruct_Entry>;
+
+/**
+ * A comprehension expression applied to a list or map.
+ *
+ * Comprehensions are not part of the core syntax, but enabled with macros.
+ * A macro matches a specific call signature within a parsed AST and replaces
+ * the call with an alternate AST block. Macro expansion happens at parse
+ * time.
+ *
+ * The following macros are supported within CEL:
+ *
+ * Aggregate type macros may be applied to all elements in a list or all keys
+ * in a map:
+ *
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
+ * the inputs and return `true` if the predicate is satisfied for all,
+ * any, or only one value `list.all(x, x < 10)`.
+ * * `filter` - test a predicate expression against the inputs and return
+ * the subset of elements which satisfy the predicate:
+ * `payments.filter(p, p > 1000)`.
+ * * `map` - apply an expression to all elements in the input and return the
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
+ *
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
+ * macro tests whether the property is set to its default. For map and struct
+ * types, the macro tests whether the property `x` is defined on `m`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Expr.Comprehension
+ */
+export declare type Expr_Comprehension = Message<"google.api.expr.v1alpha1.Expr.Comprehension"> & {
+ /**
+ * The name of the iteration variable.
+ *
+ * @generated from field: string iter_var = 1;
+ */
+ iterVar: string;
+
+ /**
+ * The range over which var iterates.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr iter_range = 2;
+ */
+ iterRange?: Expr;
+
+ /**
+ * The name of the variable used for accumulation of the result.
+ *
+ * @generated from field: string accu_var = 3;
+ */
+ accuVar: string;
+
+ /**
+ * The initial value of the accumulator.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr accu_init = 4;
+ */
+ accuInit?: Expr;
+
+ /**
+ * An expression which can contain iter_var and accu_var.
+ *
+ * Returns false when the result has been computed and may be used as
+ * a hint to short-circuit the remainder of the comprehension.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr loop_condition = 5;
+ */
+ loopCondition?: Expr;
+
+ /**
+ * An expression which can contain iter_var and accu_var.
+ *
+ * Computes the next value of accu_var.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr loop_step = 6;
+ */
+ loopStep?: Expr;
+
+ /**
+ * An expression which can contain accu_var.
+ *
+ * Computes the result.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr result = 7;
+ */
+ result?: Expr;
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Comprehension.
+ * Use `create(Expr_ComprehensionSchema)` to create a new message.
+ */
+export declare const Expr_ComprehensionSchema: GenMessage<Expr_Comprehension>;
+
+/**
+ * Represents a primitive literal.
+ *
+ * Named 'Constant' here for backwards compatibility.
+ *
+ * This is similar as the primitives supported in the well-known type
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
+ * primitives.
+ *
+ * Lists and structs are not included as constants as these aggregate types may
+ * contain [Expr][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant.
+ *
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
+ * `true`, `null`.
+ *
+ * @generated from message google.api.expr.v1alpha1.Constant
+ */
+export declare type Constant = Message<"google.api.expr.v1alpha1.Constant"> & {
+ /**
+ * Required. The valid constant kinds.
+ *
+ * @generated from oneof google.api.expr.v1alpha1.Constant.constant_kind
+ */
+ constantKind: {
+ /**
+ * null value.
+ *
+ * @generated from field: google.protobuf.NullValue null_value = 1;
+ */
+ value: NullValue;
+ case: "nullValue";
+ } | {
+ /**
+ * boolean value.
+ *
+ * @generated from field: bool bool_value = 2;
+ */
+ value: boolean;
+ case: "boolValue";
+ } | {
+ /**
+ * int64 value.
+ *
+ * @generated from field: int64 int64_value = 3;
+ */
+ value: bigint;
+ case: "int64Value";
+ } | {
+ /**
+ * uint64 value.
+ *
+ * @generated from field: uint64 uint64_value = 4;
+ */
+ value: bigint;
+ case: "uint64Value";
+ } | {
+ /**
+ * double value.
+ *
+ * @generated from field: double double_value = 5;
+ */
+ value: number;
+ case: "doubleValue";
+ } | {
+ /**
+ * string value.
+ *
+ * @generated from field: string string_value = 6;
+ */
+ value: string;
+ case: "stringValue";
+ } | {
+ /**
+ * bytes value.
+ *
+ * @generated from field: bytes bytes_value = 7;
+ */
+ value: Uint8Array;
+ case: "bytesValue";
+ } | {
+ /**
+ * protobuf.Duration value.
+ *
+ * Deprecated: duration is no longer considered a builtin cel type.
+ *
+ * @generated from field: google.protobuf.Duration duration_value = 8 [deprecated = true];
+ * @deprecated
+ */
+ value: Duration;
+ case: "durationValue";
+ } | {
+ /**
+ * protobuf.Timestamp value.
+ *
+ * Deprecated: timestamp is no longer considered a builtin cel type.
+ *
+ * @generated from field: google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
+ * @deprecated
+ */
+ value: Timestamp;
+ case: "timestampValue";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Constant.
+ * Use `create(ConstantSchema)` to create a new message.
+ */
+export declare const ConstantSchema: GenMessage<Constant>;
+
diff --git a/frontend/src/types/proto-es/google/api/expr/v1alpha1/syntax_pb.js b/frontend/src/types/proto-es/google/api/expr/v1alpha1/syntax_pb.js
new file mode 100644
index 0000000000..6b535c07ea
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/expr/v1alpha1/syntax_pb.js
@@ -0,0 +1,90 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/expr/v1alpha1/syntax.proto (package google.api.expr.v1alpha1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/expr/v1alpha1/syntax.proto.
+ */
+export const file_google_api_expr_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ZV92YWx1ZRgFIAEoAUgAEhYKDHN0cmluZ192YWx1ZRgGIAEoCUgAEhUKC2J5dGVzX3ZhbHVlGAcgASgMSAASNwoOZHVyYXRpb25fdmFsdWUYCCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25CAhgBSAASOQoPdGltZXN0YW1wX3ZhbHVlGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEICGAFIAEIPCg1jb25zdGFudF9raW5kQm4KHGNvbS5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTFCC1N5bnRheFByb3RvUAFaPGdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2V4cHIvdjFhbHBoYTE7ZXhwcvgBAWIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp]);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.
+ * Use `create(ExprSchema)` to create a new message.
+ */
+export const ExprSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Ident.
+ * Use `create(Expr_IdentSchema)` to create a new message.
+ */
+export const Expr_IdentSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 0);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Select.
+ * Use `create(Expr_SelectSchema)` to create a new message.
+ */
+export const Expr_SelectSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 1);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Call.
+ * Use `create(Expr_CallSchema)` to create a new message.
+ */
+export const Expr_CallSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 2);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.CreateList.
+ * Use `create(Expr_CreateListSchema)` to create a new message.
+ */
+export const Expr_CreateListSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 3);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.CreateStruct.
+ * Use `create(Expr_CreateStructSchema)` to create a new message.
+ */
+export const Expr_CreateStructSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 4);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.CreateStruct.Entry.
+ * Use `create(Expr_CreateStruct_EntrySchema)` to create a new message.
+ */
+export const Expr_CreateStruct_EntrySchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 4, 0);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Expr.Comprehension.
+ * Use `create(Expr_ComprehensionSchema)` to create a new message.
+ */
+export const Expr_ComprehensionSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 0, 5);
+
+/**
+ * Describes the message google.api.expr.v1alpha1.Constant.
+ * Use `create(ConstantSchema)` to create a new message.
+ */
+export const ConstantSchema = /*@__PURE__*/
+ messageDesc(file_google_api_expr_v1alpha1_syntax, 1);
+
diff --git a/frontend/src/types/proto-es/google/api/field_behavior_pb.d.ts b/frontend/src/types/proto-es/google/api/field_behavior_pb.d.ts
new file mode 100644
index 0000000000..68406be473
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/field_behavior_pb.d.ts
@@ -0,0 +1,134 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/field_behavior.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
+import type { FieldOptions } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/field_behavior.proto.
+ */
+export declare const file_google_api_field_behavior: GenFile;
+
+/**
+ * An indicator of the behavior of a given field (for example, that a field
+ * is required in requests, or given as output but ignored as input).
+ * This **does not** change the behavior in protocol buffers itself; it only
+ * denotes the behavior and may affect how API tooling handles the field.
+ *
+ * Note: This enum **may** receive new values in the future.
+ *
+ * @generated from enum google.api.FieldBehavior
+ */
+export enum FieldBehavior {
+ /**
+ * Conventional default for enums. Do not use this.
+ *
+ * @generated from enum value: FIELD_BEHAVIOR_UNSPECIFIED = 0;
+ */
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+
+ /**
+ * Specifically denotes a field as optional.
+ * While all fields in protocol buffers are optional, this may be specified
+ * for emphasis if appropriate.
+ *
+ * @generated from enum value: OPTIONAL = 1;
+ */
+ OPTIONAL = 1,
+
+ /**
+ * Denotes a field as required.
+ * This indicates that the field **must** be provided as part of the request,
+ * and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
+ *
+ * @generated from enum value: REQUIRED = 2;
+ */
+ REQUIRED = 2,
+
+ /**
+ * Denotes a field as output only.
+ * This indicates that the field is provided in responses, but including the
+ * field in a request does nothing (the server *must* ignore it and
+ * *must not* throw an error as a result of the field's presence).
+ *
+ * @generated from enum value: OUTPUT_ONLY = 3;
+ */
+ OUTPUT_ONLY = 3,
+
+ /**
+ * Denotes a field as input only.
+ * This indicates that the field is provided in requests, and the
+ * corresponding field is not included in output.
+ *
+ * @generated from enum value: INPUT_ONLY = 4;
+ */
+ INPUT_ONLY = 4,
+
+ /**
+ * Denotes a field as immutable.
+ * This indicates that the field may be set once in a request to create a
+ * resource, but may not be changed thereafter.
+ *
+ * @generated from enum value: IMMUTABLE = 5;
+ */
+ IMMUTABLE = 5,
+
+ /**
+ * Denotes that a (repeated) field is an unordered list.
+ * This indicates that the service may provide the elements of the list
+ * in any arbitrary order, rather than the order the user originally
+ * provided. Additionally, the list's order may or may not be stable.
+ *
+ * @generated from enum value: UNORDERED_LIST = 6;
+ */
+ UNORDERED_LIST = 6,
+
+ /**
+ * Denotes that this field returns a non-empty default value if not set.
+ * This indicates that if the user provides the empty value in a request,
+ * a non-empty value will be returned. The user will not be aware of what
+ * non-empty value to expect.
+ *
+ * @generated from enum value: NON_EMPTY_DEFAULT = 7;
+ */
+ NON_EMPTY_DEFAULT = 7,
+}
+
+/**
+ * Describes the enum google.api.FieldBehavior.
+ */
+export declare const FieldBehaviorSchema: GenEnum<FieldBehavior>;
+
+/**
+ * A designation of a specific field behavior (required, output only, etc.)
+ * in protobuf messages.
+ *
+ * Examples:
+ *
+ * string name = 1 [(google.api.field_behavior) = REQUIRED];
+ * State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ * google.protobuf.Duration ttl = 1
+ * [(google.api.field_behavior) = INPUT_ONLY];
+ * google.protobuf.Timestamp expire_time = 1
+ * [(google.api.field_behavior) = OUTPUT_ONLY,
+ * (google.api.field_behavior) = IMMUTABLE];
+ *
+ * @generated from extension: repeated google.api.FieldBehavior field_behavior = 1052;
+ */
+export declare const field_behavior: GenExtension<FieldOptions, FieldBehavior[]>;
+
diff --git a/frontend/src/types/proto-es/google/api/field_behavior_pb.js b/frontend/src/types/proto-es/google/api/field_behavior_pb.js
new file mode 100644
index 0000000000..2d55f8a215
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/field_behavior_pb.js
@@ -0,0 +1,65 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/field_behavior.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, extDesc, fileDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/field_behavior.proto.
+ */
+export const file_google_api_field_behavior = /*@__PURE__*/
+ fileDesc("Ch9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvEgpnb29nbGUuYXBpKqYBCg1GaWVsZEJlaGF2aW9yEh4KGkZJRUxEX0JFSEFWSU9SX1VOU1BFQ0lGSUVEEAASDAoIT1BUSU9OQUwQARIMCghSRVFVSVJFRBACEg8KC09VVFBVVF9PTkxZEAMSDgoKSU5QVVRfT05MWRAEEg0KCUlNTVVUQUJMRRAFEhIKDlVOT1JERVJFRF9MSVNUEAYSFQoRTk9OX0VNUFRZX0RFRkFVTFQQBzpgCg5maWVsZF9iZWhhdmlvchIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYnAggAygOMhkuZ29vZ2xlLmFwaS5GaWVsZEJlaGF2aW9yUg1maWVsZEJlaGF2aW9yQnAKDmNvbS5nb29nbGUuYXBpQhJGaWVsZEJlaGF2aW9yUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [file_google_protobuf_descriptor]);
+
+/**
+ * Describes the enum google.api.FieldBehavior.
+ */
+export const FieldBehaviorSchema = /*@__PURE__*/
+ enumDesc(file_google_api_field_behavior, 0);
+
+/**
+ * An indicator of the behavior of a given field (for example, that a field
+ * is required in requests, or given as output but ignored as input).
+ * This **does not** change the behavior in protocol buffers itself; it only
+ * denotes the behavior and may affect how API tooling handles the field.
+ *
+ * Note: This enum **may** receive new values in the future.
+ *
+ * @generated from enum google.api.FieldBehavior
+ */
+export const FieldBehavior = /*@__PURE__*/
+ tsEnum(FieldBehaviorSchema);
+
+/**
+ * A designation of a specific field behavior (required, output only, etc.)
+ * in protobuf messages.
+ *
+ * Examples:
+ *
+ * string name = 1 [(google.api.field_behavior) = REQUIRED];
+ * State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ * google.protobuf.Duration ttl = 1
+ * [(google.api.field_behavior) = INPUT_ONLY];
+ * google.protobuf.Timestamp expire_time = 1
+ * [(google.api.field_behavior) = OUTPUT_ONLY,
+ * (google.api.field_behavior) = IMMUTABLE];
+ *
+ * @generated from extension: repeated google.api.FieldBehavior field_behavior = 1052;
+ */
+export const field_behavior = /*@__PURE__*/
+ extDesc(file_google_api_field_behavior, 0);
+
diff --git a/frontend/src/types/proto-es/google/api/http_pb.d.ts b/frontend/src/types/proto-es/google/api/http_pb.d.ts
new file mode 100644
index 0000000000..3f4232571f
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/http_pb.d.ts
@@ -0,0 +1,441 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/http.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+
+/**
+ * Describes the file google/api/http.proto.
+ */
+export declare const file_google_api_http: GenFile;
+
+/**
+ * # gRPC Transcoding
+ *
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
+ * more HTTP REST endpoints. It allows developers to build a single API service
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
+ * APIs](https://github.com/googleapis/googleapis),
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
+ * and use it for large scale production services.
+ *
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
+ * how different portions of the gRPC request message are mapped to the URL
+ * path, URL query parameters, and HTTP request body. It also controls how the
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
+ * typically specified as an `google.api.http` annotation on the gRPC method.
+ *
+ * Each mapping specifies a URL path template and an HTTP method. The path
+ * template may refer to one or more fields in the gRPC request message, as long
+ * as each field is a non-repeated field with a primitive (non-message) type.
+ * The path template controls how fields of the request message are mapped to
+ * the URL path.
+ *
+ * Example:
+ *
+ * service Messaging {
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
+ * option (google.api.http) = {
+ * get: "/v1/{name=messages/*}"
+ * };
+ * }
+ * }
+ * message GetMessageRequest {
+ * string name = 1; // Mapped to URL path.
+ * }
+ * message Message {
+ * string text = 1; // The resource content.
+ * }
+ *
+ * This enables an HTTP REST to gRPC mapping as below:
+ *
+ * HTTP | gRPC
+ * -----|-----
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
+ *
+ * Any fields in the request message which are not bound by the path template
+ * automatically become HTTP query parameters if there is no HTTP request body.
+ * For example:
+ *
+ * service Messaging {
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
+ * option (google.api.http) = {
+ * get:"/v1/messages/{message_id}"
+ * };
+ * }
+ * }
+ * message GetMessageRequest {
+ * message SubMessage {
+ * string subfield = 1;
+ * }
+ * string message_id = 1; // Mapped to URL path.
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
+ * }
+ *
+ * This enables a HTTP JSON to RPC mapping as below:
+ *
+ * HTTP | gRPC
+ * -----|-----
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
+ * "foo"))`
+ *
+ * Note that fields which are mapped to URL query parameters must have a
+ * primitive type or a repeated primitive type or a non-repeated message type.
+ * In the case of a repeated type, the parameter can be repeated in the URL
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
+ * message is mapped to a separate parameter, such as
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
+ *
+ * For HTTP methods that allow a request body, the `body` field
+ * specifies the mapping. Consider a REST update method on the
+ * message resource collection:
+ *
+ * service Messaging {
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
+ * option (google.api.http) = {
+ * patch: "/v1/messages/{message_id}"
+ * body: "message"
+ * };
+ * }
+ * }
+ * message UpdateMessageRequest {
+ * string message_id = 1; // mapped to the URL
+ * Message message = 2; // mapped to the body
+ * }
+ *
+ * The following HTTP JSON to RPC mapping is enabled, where the
+ * representation of the JSON in the request body is determined by
+ * protos JSON encoding:
+ *
+ * HTTP | gRPC
+ * -----|-----
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
+ * "123456" message { text: "Hi!" })`
+ *
+ * The special name `*` can be used in the body mapping to define that
+ * every field not bound by the path template should be mapped to the
+ * request body. This enables the following alternative definition of
+ * the update method:
+ *
+ * service Messaging {
+ * rpc UpdateMessage(Message) returns (Message) {
+ * option (google.api.http) = {
+ * patch: "/v1/messages/{message_id}"
+ * body: "*"
+ * };
+ * }
+ * }
+ * message Message {
+ * string message_id = 1;
+ * string text = 2;
+ * }
+ *
+ *
+ * The following HTTP JSON to RPC mapping is enabled:
+ *
+ * HTTP | gRPC
+ * -----|-----
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
+ * "123456" text: "Hi!")`
+ *
+ * Note that when using `*` in the body mapping, it is not possible to
+ * have HTTP parameters, as all fields not bound by the path end in
+ * the body. This makes this option more rarely used in practice when
+ * defining REST APIs. The common usage of `*` is in custom methods
+ * which don't use the URL at all for transferring data.
+ *
+ * It is possible to define multiple HTTP methods for one RPC by using
+ * the `additional_bindings` option. Example:
+ *
+ * service Messaging {
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
+ * option (google.api.http) = {
+ * get: "/v1/messages/{message_id}"
+ * additional_bindings {
+ * get: "/v1/users/{user_id}/messages/{message_id}"
+ * }
+ * };
+ * }
+ * }
+ * message GetMessageRequest {
+ * string message_id = 1;
+ * string user_id = 2;
+ * }
+ *
+ * This enables the following two alternative HTTP JSON to RPC mappings:
+ *
+ * HTTP | gRPC
+ * -----|-----
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
+ * "123456")`
+ *
+ * ## Rules for HTTP mapping
+ *
+ * 1. Leaf request fields (recursive expansion nested messages in the request
+ * message) are classified into three categories:
+ * - Fields referred by the path template. They are passed via the URL path.
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
+ * are passed via the HTTP
+ * request body.
+ * - All other fields are passed via the URL query parameters, and the
+ * parameter name is the field path in the request message. A repeated
+ * field can be represented as multiple query parameters under the same
+ * name.
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
+ * query parameter, all fields
+ * are passed via URL path and HTTP request body.
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
+ * request body, all
+ * fields are passed via URL path and URL query parameters.
+ *
+ * ### Path template syntax
+ *
+ * Template = "/" Segments [ Verb ] ;
+ * Segments = Segment { "/" Segment } ;
+ * Segment = "*" | "**" | LITERAL | Variable ;
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
+ * FieldPath = IDENT { "." IDENT } ;
+ * Verb = ":" LITERAL ;
+ *
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
+ * zero or more URL path segments, which must be the last part of the URL path
+ * except the `Verb`.
+ *
+ * The syntax `Variable` matches part of the URL path as specified by its
+ * template. A variable template must not contain other variables. If a variable
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
+ * is equivalent to `{var=*}`.
+ *
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
+ * contains any reserved character, such characters should be percent-encoded
+ * before the matching.
+ *
+ * If a variable contains exactly one path segment, such as `"{var}"` or
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
+ * server side does the reverse decoding. Such variables show up in the
+ * [Discovery
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
+ * `{var}`.
+ *
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
+ * unchanged. Such variables show up in the
+ * [Discovery
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
+ * `{+var}`.
+ *
+ * ## Using gRPC API Service Configuration
+ *
+ * gRPC API Service Configuration (service config) is a configuration language
+ * for configuring a gRPC service to become a user-facing product. The
+ * service config is simply the YAML representation of the `google.api.Service`
+ * proto message.
+ *
+ * As an alternative to annotating your proto file, you can configure gRPC
+ * transcoding in your service config YAML files. You do this by specifying a
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
+ * effect as the proto annotation. This can be particularly useful if you
+ * have a proto that is reused in multiple services. Note that any transcoding
+ * specified in the service config will override any matching transcoding
+ * configuration in the proto.
+ *
+ * Example:
+ *
+ * http:
+ * rules:
+ * # Selects a gRPC method and applies HttpRule to it.
+ * - selector: example.v1.Messaging.GetMessage
+ * get: /v1/messages/{message_id}/{sub.subfield}
+ *
+ * ## Special notes
+ *
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
+ * proto to JSON conversion must follow the [proto3
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
+ *
+ * While the single segment variable follows the semantics of
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
+ * does not expand special characters like `?` and `#`, which would lead
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
+ * for multi segment variables.
+ *
+ * The path variables **must not** refer to any repeated or mapped field,
+ * because client libraries are not capable of handling such variable expansion.
+ *
+ * The path variables **must not** capture the leading "/" character. The reason
+ * is that the most common use case "{var}" does not capture the leading "/"
+ * character. For consistency, all path variables must share the same behavior.
+ *
+ * Repeated message fields must not be mapped to URL query parameters, because
+ * no client library can support such complicated mapping.
+ *
+ * If an API needs to use a JSON array for request or response body, it can map
+ * the request or response body to a repeated field. However, some gRPC
+ * Transcoding implementations may not support this feature.
+ *
+ * @generated from message google.api.HttpRule
+ */
+export declare type HttpRule = Message<"google.api.HttpRule"> & {
+ /**
+ * Selects a method to which this rule applies.
+ *
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
+ * details.
+ *
+ * @generated from field: string selector = 1;
+ */
+ selector: string;
+
+ /**
+ * Determines the URL pattern is matched by this rules. This pattern can be
+ * used with any of the {get|put|post|delete|patch} methods. A custom method
+ * can be defined using the 'custom' field.
+ *
+ * @generated from oneof google.api.HttpRule.pattern
+ */
+ pattern: {
+ /**
+ * Maps to HTTP GET. Used for listing and getting information about
+ * resources.
+ *
+ * @generated from field: string get = 2;
+ */
+ value: string;
+ case: "get";
+ } | {
+ /**
+ * Maps to HTTP PUT. Used for replacing a resource.
+ *
+ * @generated from field: string put = 3;
+ */
+ value: string;
+ case: "put";
+ } | {
+ /**
+ * Maps to HTTP POST. Used for creating a resource or performing an action.
+ *
+ * @generated from field: string post = 4;
+ */
+ value: string;
+ case: "post";
+ } | {
+ /**
+ * Maps to HTTP DELETE. Used for deleting a resource.
+ *
+ * @generated from field: string delete = 5;
+ */
+ value: string;
+ case: "delete";
+ } | {
+ /**
+ * Maps to HTTP PATCH. Used for updating a resource.
+ *
+ * @generated from field: string patch = 6;
+ */
+ value: string;
+ case: "patch";
+ } | {
+ /**
+ * The custom pattern is used for specifying an HTTP method that is not
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
+ * HTTP method unspecified for this rule. The wild-card rule is useful
+ * for services that provide content to Web (HTML) clients.
+ *
+ * @generated from field: google.api.CustomHttpPattern custom = 8;
+ */
+ value: CustomHttpPattern;
+ case: "custom";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * The name of the request field whose value is mapped to the HTTP request
+ * body, or `*` for mapping all request fields not captured by the path
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
+ * NOTE: the referred field must be present at the top-level of the request
+ * message type.
+ *
+ * @generated from field: string body = 7;
+ */
+ body: string;
+
+ /**
+ * Optional. The name of the response field whose value is mapped to the HTTP
+ * response body. When omitted, the entire response message will be used
+ * as the HTTP response body.
+ *
+ * NOTE: The referred field must be present at the top-level of the response
+ * message type.
+ *
+ * @generated from field: string response_body = 12;
+ */
+ responseBody: string;
+
+ /**
+ * Additional HTTP bindings for the selector. Nested bindings must
+ * not contain an `additional_bindings` field themselves (that is,
+ * the nesting may only be one level deep).
+ *
+ * @generated from field: repeated google.api.HttpRule additional_bindings = 11;
+ */
+ additionalBindings: HttpRule[];
+};
+
+/**
+ * Describes the message google.api.HttpRule.
+ * Use `create(HttpRuleSchema)` to create a new message.
+ */
+export declare const HttpRuleSchema: GenMessage<HttpRule>;
+
+/**
+ * A custom pattern is used for defining custom HTTP verb.
+ *
+ * @generated from message google.api.CustomHttpPattern
+ */
+export declare type CustomHttpPattern = Message<"google.api.CustomHttpPattern"> & {
+ /**
+ * The name of this custom HTTP verb.
+ *
+ * @generated from field: string kind = 1;
+ */
+ kind: string;
+
+ /**
+ * The path matched by this custom verb.
+ *
+ * @generated from field: string path = 2;
+ */
+ path: string;
+};
+
+/**
+ * Describes the message google.api.CustomHttpPattern.
+ * Use `create(CustomHttpPatternSchema)` to create a new message.
+ */
+export declare const CustomHttpPatternSchema: GenMessage<CustomHttpPattern>;
+
diff --git a/frontend/src/types/proto-es/google/api/http_pb.js b/frontend/src/types/proto-es/google/api/http_pb.js
new file mode 100644
index 0000000000..b18553b43f
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/http_pb.js
@@ -0,0 +1,40 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/http.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
+
+/**
+ * Describes the file google/api/http.proto.
+ */
+export const file_google_api_http = /*@__PURE__*/
+ fileDesc("ChVnb29nbGUvYXBpL2h0dHAucHJvdG8SCmdvb2dsZS5hcGkigQIKCEh0dHBSdWxlEhAKCHNlbGVjdG9yGAEgASgJEg0KA2dldBgCIAEoCUgAEg0KA3B1dBgDIAEoCUgAEg4KBHBvc3QYBCABKAlIABIQCgZkZWxldGUYBSABKAlIABIPCgVwYXRjaBgGIAEoCUgAEi8KBmN1c3RvbRgIIAEoCzIdLmdvb2dsZS5hcGkuQ3VzdG9tSHR0cFBhdHRlcm5IABIMCgRib2R5GAcgASgJEhUKDXJlc3BvbnNlX2JvZHkYDCABKAkSMQoTYWRkaXRpb25hbF9iaW5kaW5ncxgLIAMoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVCCQoHcGF0dGVybiIvChFDdXN0b21IdHRwUGF0dGVybhIMCgRraW5kGAEgASgJEgwKBHBhdGgYAiABKAlCagoOY29tLmdvb2dsZS5hcGlCCUh0dHBQcm90b1ABWkFnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9hbm5vdGF0aW9uczthbm5vdGF0aW9uc/gBAaICBEdBUEliBnByb3RvMw");
+
+/**
+ * Describes the message google.api.HttpRule.
+ * Use `create(HttpRuleSchema)` to create a new message.
+ */
+export const HttpRuleSchema = /*@__PURE__*/
+ messageDesc(file_google_api_http, 0);
+
+/**
+ * Describes the message google.api.CustomHttpPattern.
+ * Use `create(CustomHttpPatternSchema)` to create a new message.
+ */
+export const CustomHttpPatternSchema = /*@__PURE__*/
+ messageDesc(file_google_api_http, 1);
+
diff --git a/frontend/src/types/proto-es/google/api/resource_pb.d.ts b/frontend/src/types/proto-es/google/api/resource_pb.d.ts
new file mode 100644
index 0000000000..f71d76ea45
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/resource_pb.d.ts
@@ -0,0 +1,331 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/resource.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { FieldOptions, MessageOptions } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/resource.proto.
+ */
+export declare const file_google_api_resource: GenFile;
+
+/**
+ * A simple descriptor of a resource type.
+ *
+ * ResourceDescriptor annotates a resource message (either by means of a
+ * protobuf annotation or use in the service config), and associates the
+ * resource's schema, the resource type, and the pattern of the resource name.
+ *
+ * Example:
+ *
+ * message Topic {
+ * // Indicates this message defines a resource schema.
+ * // Declares the resource type in the format of {service}/{kind}.
+ * // For Kubernetes resources, the format is {api group}/{kind}.
+ * option (google.api.resource) = {
+ * type: "pubsub.googleapis.com/Topic"
+ * pattern: "projects/{project}/topics/{topic}"
+ * };
+ * }
+ *
+ * The ResourceDescriptor Yaml config will look like:
+ *
+ * resources:
+ * - type: "pubsub.googleapis.com/Topic"
+ * pattern: "projects/{project}/topics/{topic}"
+ *
+ * Sometimes, resources have multiple patterns, typically because they can
+ * live under multiple parents.
+ *
+ * Example:
+ *
+ * message LogEntry {
+ * option (google.api.resource) = {
+ * type: "logging.googleapis.com/LogEntry"
+ * pattern: "projects/{project}/logs/{log}"
+ * pattern: "folders/{folder}/logs/{log}"
+ * pattern: "organizations/{organization}/logs/{log}"
+ * pattern: "billingAccounts/{billing_account}/logs/{log}"
+ * };
+ * }
+ *
+ * The ResourceDescriptor Yaml config will look like:
+ *
+ * resources:
+ * - type: 'logging.googleapis.com/LogEntry'
+ * pattern: "projects/{project}/logs/{log}"
+ * pattern: "folders/{folder}/logs/{log}"
+ * pattern: "organizations/{organization}/logs/{log}"
+ * pattern: "billingAccounts/{billing_account}/logs/{log}"
+ *
+ * @generated from message google.api.ResourceDescriptor
+ */
+export declare type ResourceDescriptor = Message<"google.api.ResourceDescriptor"> & {
+ /**
+ * The resource type. It must be in the format of
+ * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
+ * singular and must not include version numbers.
+ *
+ * Example: `storage.googleapis.com/Bucket`
+ *
+ * The value of the resource_type_kind must follow the regular expression
+ * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
+ * should use PascalCase (UpperCamelCase). The maximum number of
+ * characters allowed for the `resource_type_kind` is 100.
+ *
+ * @generated from field: string type = 1;
+ */
+ type: string;
+
+ /**
+ * Optional. The relative resource name pattern associated with this resource
+ * type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
+ * The path pattern must follow the syntax, which aligns with HTTP binding
+ * syntax:
+ *
+ * Template = Segment { "/" Segment } ;
+ * Segment = LITERAL | Variable ;
+ * Variable = "{" LITERAL "}" ;
+ *
+ * Examples:
+ *
+ * - "projects/{project}/topics/{topic}"
+ * - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
+ * The components in braces correspond to the IDs for each resource in the
+ * hierarchy. It is expected that, if multiple patterns are provided,
+ * the same component name (e.g. "project") refers to IDs of the same
+ * type of resource.
+ *
+ * @generated from field: repeated string pattern = 2;
+ */
+ pattern: string[];
+
+ /**
+ * Optional. The field on the resource that designates the resource name
+ * field. If omitted, this is assumed to be "name".
+ *
+ * @generated from field: string name_field = 3;
+ */
+ nameField: string;
+
+ /**
+ * Optional. The historical or future-looking state of the resource pattern.
+ *
+ * Example:
+ *
+ * // The InspectTemplate message originally only supported resource
+ * // names with organization, and project was added later.
+ * message InspectTemplate {
+ * option (google.api.resource) = {
+ * type: "dlp.googleapis.com/InspectTemplate"
+ * pattern:
+ * "organizations/{organization}/inspectTemplates/{inspect_template}"
+ * pattern: "projects/{project}/inspectTemplates/{inspect_template}"
+ * history: ORIGINALLY_SINGLE_PATTERN
+ * };
+ * }
+ *
+ * @generated from field: google.api.ResourceDescriptor.History history = 4;
+ */
+ history: ResourceDescriptor_History;
+
+ /**
+ * The plural name used in the resource name and permission names, such as
+ * 'projects' for the resource name of 'projects/{project}' and the permission
+ * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
+ * concept of the `plural` field in k8s CRD spec
+ * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
+ * Note: The plural form is required even for singleton resources. See
+ * https://aip.dev/156
+ *
+ * @generated from field: string plural = 5;
+ */
+ plural: string;
+
+ /**
+ * The same concept of the `singular` field in k8s CRD spec
+ * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ * Such as "project" for the `resourcemanager.googleapis.com/Project` type.
+ *
+ * @generated from field: string singular = 6;
+ */
+ singular: string;
+
+ /**
+ * Style flag(s) for this resource.
+ * These indicate that a resource is expected to conform to a given
+ * style. See the specific style flags for additional information.
+ *
+ * @generated from field: repeated google.api.ResourceDescriptor.Style style = 10;
+ */
+ style: ResourceDescriptor_Style[];
+};
+
+/**
+ * Describes the message google.api.ResourceDescriptor.
+ * Use `create(ResourceDescriptorSchema)` to create a new message.
+ */
+export declare const ResourceDescriptorSchema: GenMessage<ResourceDescriptor>;
+
+/**
+ * A description of the historical or future-looking state of the
+ * resource pattern.
+ *
+ * @generated from enum google.api.ResourceDescriptor.History
+ */
+export enum ResourceDescriptor_History {
+ /**
+ * The "unset" value.
+ *
+ * @generated from enum value: HISTORY_UNSPECIFIED = 0;
+ */
+ HISTORY_UNSPECIFIED = 0,
+
+ /**
+ * The resource originally had one pattern and launched as such, and
+ * additional patterns were added later.
+ *
+ * @generated from enum value: ORIGINALLY_SINGLE_PATTERN = 1;
+ */
+ ORIGINALLY_SINGLE_PATTERN = 1,
+
+ /**
+ * The resource has one pattern, but the API owner expects to add more
+ * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
+ * that from being necessary once there are multiple patterns.)
+ *
+ * @generated from enum value: FUTURE_MULTI_PATTERN = 2;
+ */
+ FUTURE_MULTI_PATTERN = 2,
+}
+
+/**
+ * Describes the enum google.api.ResourceDescriptor.History.
+ */
+export declare const ResourceDescriptor_HistorySchema: GenEnum<ResourceDescriptor_History>;
+
+/**
+ * A flag representing a specific style that a resource claims to conform to.
+ *
+ * @generated from enum google.api.ResourceDescriptor.Style
+ */
+export enum ResourceDescriptor_Style {
+ /**
+ * The unspecified value. Do not use.
+ *
+ * @generated from enum value: STYLE_UNSPECIFIED = 0;
+ */
+ STYLE_UNSPECIFIED = 0,
+
+ /**
+ * This resource is intended to be "declarative-friendly".
+ *
+ * Declarative-friendly resources must be more strictly consistent, and
+ * setting this to true communicates to tools that this resource should
+ * adhere to declarative-friendly expectations.
+ *
+ * Note: This is used by the API linter (linter.aip.dev) to enable
+ * additional checks.
+ *
+ * @generated from enum value: DECLARATIVE_FRIENDLY = 1;
+ */
+ DECLARATIVE_FRIENDLY = 1,
+}
+
+/**
+ * Describes the enum google.api.ResourceDescriptor.Style.
+ */
+export declare const ResourceDescriptor_StyleSchema: GenEnum<ResourceDescriptor_Style>;
+
+/**
+ * Defines a proto annotation that describes a string field that refers to
+ * an API resource.
+ *
+ * @generated from message google.api.ResourceReference
+ */
+export declare type ResourceReference = Message<"google.api.ResourceReference"> & {
+ /**
+ * The resource type that the annotated field references.
+ *
+ * Example:
+ *
+ * message Subscription {
+ * string topic = 2 [(google.api.resource_reference) = {
+ * type: "pubsub.googleapis.com/Topic"
+ * }];
+ * }
+ *
+ * Occasionally, a field may reference an arbitrary resource. In this case,
+ * APIs use the special value * in their resource reference.
+ *
+ * Example:
+ *
+ * message GetIamPolicyRequest {
+ * string resource = 2 [(google.api.resource_reference) = {
+ * type: "*"
+ * }];
+ * }
+ *
+ * @generated from field: string type = 1;
+ */
+ type: string;
+
+ /**
+ * The resource type of a child collection that the annotated field
+ * references. This is useful for annotating the `parent` field that
+ * doesn't have a fixed resource type.
+ *
+ * Example:
+ *
+ * message ListLogEntriesRequest {
+ * string parent = 1 [(google.api.resource_reference) = {
+ * child_type: "logging.googleapis.com/LogEntry"
+ * };
+ * }
+ *
+ * @generated from field: string child_type = 2;
+ */
+ childType: string;
+};
+
+/**
+ * Describes the message google.api.ResourceReference.
+ * Use `create(ResourceReferenceSchema)` to create a new message.
+ */
+export declare const ResourceReferenceSchema: GenMessage<ResourceReference>;
+
+/**
+ * An annotation that describes a resource reference, see
+ * [ResourceReference][].
+ *
+ * @generated from extension: google.api.ResourceReference resource_reference = 1055;
+ */
+export declare const resource_reference: GenExtension<FieldOptions, ResourceReference>;
+
+/**
+ * An annotation that describes a resource definition, see
+ * [ResourceDescriptor][].
+ *
+ * @generated from extension: google.api.ResourceDescriptor resource = 1053;
+ */
+export declare const resource: GenExtension<MessageOptions, ResourceDescriptor>;
+
diff --git a/frontend/src/types/proto-es/google/api/resource_pb.js b/frontend/src/types/proto-es/google/api/resource_pb.js
new file mode 100644
index 0000000000..d331e60144
--- /dev/null
+++ b/frontend/src/types/proto-es/google/api/resource_pb.js
@@ -0,0 +1,88 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/api/resource.proto (package google.api, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, extDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/api/resource.proto.
+ */
+export const file_google_api_resource = /*@__PURE__*/
+ fileDesc("Chlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvEgpnb29nbGUuYXBpIu4CChJSZXNvdXJjZURlc2NyaXB0b3ISDAoEdHlwZRgBIAEoCRIPCgdwYXR0ZXJuGAIgAygJEhIKCm5hbWVfZmllbGQYAyABKAkSNwoHaGlzdG9yeRgEIAEoDjImLmdvb2dsZS5hcGkuUmVzb3VyY2VEZXNjcmlwdG9yLkhpc3RvcnkSDgoGcGx1cmFsGAUgASgJEhAKCHNpbmd1bGFyGAYgASgJEjMKBXN0eWxlGAogAygOMiQuZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2NyaXB0b3IuU3R5bGUiWwoHSGlzdG9yeRIXChNISVNUT1JZX1VOU1BFQ0lGSUVEEAASHQoZT1JJR0lOQUxMWV9TSU5HTEVfUEFUVEVSThABEhgKFEZVVFVSRV9NVUxUSV9QQVRURVJOEAIiOAoFU3R5bGUSFQoRU1RZTEVfVU5TUEVDSUZJRUQQABIYChRERUNMQVJBVElWRV9GUklFTkRMWRABIjUKEVJlc291cmNlUmVmZXJlbmNlEgwKBHR5cGUYASABKAkSEgoKY2hpbGRfdHlwZRgCIAEoCTpsChJyZXNvdXJjZV9yZWZlcmVuY2USHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGJ8IIAEoCzIdLmdvb2dsZS5hcGkuUmVzb3VyY2VSZWZlcmVuY2VSEXJlc291cmNlUmVmZXJlbmNlOlwKCHJlc291cmNlEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGJ0IIAEoCzIeLmdvb2dsZS5hcGkuUmVzb3VyY2VEZXNjcmlwdG9yUghyZXNvdXJjZUJuCg5jb20uZ29vZ2xlLmFwaUINUmVzb3VyY2VQcm90b1ABWkFnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9hbm5vdGF0aW9uczthbm5vdGF0aW9uc/gBAaICBEdBUEliBnByb3RvMw", [file_google_protobuf_descriptor]);
+
+/**
+ * Describes the message google.api.ResourceDescriptor.
+ * Use `create(ResourceDescriptorSchema)` to create a new message.
+ */
+export const ResourceDescriptorSchema = /*@__PURE__*/
+ messageDesc(file_google_api_resource, 0);
+
+/**
+ * Describes the enum google.api.ResourceDescriptor.History.
+ */
+export const ResourceDescriptor_HistorySchema = /*@__PURE__*/
+ enumDesc(file_google_api_resource, 0, 0);
+
+/**
+ * A description of the historical or future-looking state of the
+ * resource pattern.
+ *
+ * @generated from enum google.api.ResourceDescriptor.History
+ */
+export const ResourceDescriptor_History = /*@__PURE__*/
+ tsEnum(ResourceDescriptor_HistorySchema);
+
+/**
+ * Describes the enum google.api.ResourceDescriptor.Style.
+ */
+export const ResourceDescriptor_StyleSchema = /*@__PURE__*/
+ enumDesc(file_google_api_resource, 0, 1);
+
+/**
+ * A flag representing a specific style that a resource claims to conform to.
+ *
+ * @generated from enum google.api.ResourceDescriptor.Style
+ */
+export const ResourceDescriptor_Style = /*@__PURE__*/
+ tsEnum(ResourceDescriptor_StyleSchema);
+
+/**
+ * Describes the message google.api.ResourceReference.
+ * Use `create(ResourceReferenceSchema)` to create a new message.
+ */
+export const ResourceReferenceSchema = /*@__PURE__*/
+ messageDesc(file_google_api_resource, 1);
+
+/**
+ * An annotation that describes a resource reference, see
+ * [ResourceReference][].
+ *
+ * @generated from extension: google.api.ResourceReference resource_reference = 1055;
+ */
+export const resource_reference = /*@__PURE__*/
+ extDesc(file_google_api_resource, 0);
+
+/**
+ * An annotation that describes a resource definition, see
+ * [ResourceDescriptor][].
+ *
+ * @generated from extension: google.api.ResourceDescriptor resource = 1053;
+ */
+export const resource = /*@__PURE__*/
+ extDesc(file_google_api_resource, 1);
+
diff --git a/frontend/src/types/proto-es/google/rpc/status_pb.d.ts b/frontend/src/types/proto-es/google/rpc/status_pb.d.ts
new file mode 100644
index 0000000000..424c5c2376
--- /dev/null
+++ b/frontend/src/types/proto-es/google/rpc/status_pb.d.ts
@@ -0,0 +1,72 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/rpc/status.proto (package google.rpc, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Any } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/rpc/status.proto.
+ */
+export declare const file_google_rpc_status: GenFile;
+
+/**
+ * The `Status` type defines a logical error model that is suitable for
+ * different programming environments, including REST APIs and RPC APIs. It is
+ * used by [gRPC](https://github.com/grpc). Each `Status` message contains
+ * three pieces of data: error code, error message, and error details.
+ *
+ * You can find out more about this error model and how to work with it in the
+ * [API Design Guide](https://cloud.google.com/apis/design/errors).
+ *
+ * @generated from message google.rpc.Status
+ */
+export declare type Status = Message<"google.rpc.Status"> & {
+ /**
+ * The status code, which should be an enum value of
+ * [google.rpc.Code][google.rpc.Code].
+ *
+ * @generated from field: int32 code = 1;
+ */
+ code: number;
+
+ /**
+ * A developer-facing error message, which should be in English. Any
+ * user-facing error message should be localized and sent in the
+ * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
+ * by the client.
+ *
+ * @generated from field: string message = 2;
+ */
+ message: string;
+
+ /**
+ * A list of messages that carry the error details. There is a common set of
+ * message types for APIs to use.
+ *
+ * @generated from field: repeated google.protobuf.Any details = 3;
+ */
+ details: Any[];
+};
+
+/**
+ * Describes the message google.rpc.Status.
+ * Use `create(StatusSchema)` to create a new message.
+ */
+export declare const StatusSchema: GenMessage<Status>;
+
diff --git a/frontend/src/types/proto-es/google/rpc/status_pb.js b/frontend/src/types/proto-es/google/rpc/status_pb.js
new file mode 100644
index 0000000000..610a83ff66
--- /dev/null
+++ b/frontend/src/types/proto-es/google/rpc/status_pb.js
@@ -0,0 +1,34 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/rpc/status.proto (package google.rpc, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file google/rpc/status.proto.
+ */
+export const file_google_rpc_status = /*@__PURE__*/
+ fileDesc("Chdnb29nbGUvcnBjL3N0YXR1cy5wcm90bxIKZ29vZ2xlLnJwYyJOCgZTdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdtZXNzYWdlGAIgASgJEiUKB2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QmEKDmNvbS5nb29nbGUucnBjQgtTdGF0dXNQcm90b1ABWjdnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL3JwYy9zdGF0dXM7c3RhdHVz+AEBogIDUlBDYgZwcm90bzM", [file_google_protobuf_any]);
+
+/**
+ * Describes the message google.rpc.Status.
+ * Use `create(StatusSchema)` to create a new message.
+ */
+export const StatusSchema = /*@__PURE__*/
+ messageDesc(file_google_rpc_status, 0);
+
diff --git a/frontend/src/types/proto-es/google/type/expr_pb.d.ts b/frontend/src/types/proto-es/google/type/expr_pb.d.ts
new file mode 100644
index 0000000000..2c59818973
--- /dev/null
+++ b/frontend/src/types/proto-es/google/type/expr_pb.d.ts
@@ -0,0 +1,102 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/type/expr.proto (package google.type, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+
+/**
+ * Describes the file google/type/expr.proto.
+ */
+export declare const file_google_type_expr: GenFile;
+
+/**
+ * Represents a textual expression in the Common Expression Language (CEL)
+ * syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ * are documented at https://github.com/google/cel-spec.
+ *
+ * Example (Comparison):
+ *
+ * title: "Summary size limit"
+ * description: "Determines if a summary is less than 100 chars"
+ * expression: "document.summary.size() < 100"
+ *
+ * Example (Equality):
+ *
+ * title: "Requestor is owner"
+ * description: "Determines if requestor is the document owner"
+ * expression: "document.owner == request.auth.claims.email"
+ *
+ * Example (Logic):
+ *
+ * title: "Public documents"
+ * description: "Determine whether the document should be publicly visible"
+ * expression: "document.type != 'private' && document.type != 'internal'"
+ *
+ * Example (Data Manipulation):
+ *
+ * title: "Notification string"
+ * description: "Create a notification string with a timestamp."
+ * expression: "'New message received at ' + string(document.create_time)"
+ *
+ * The exact variables and functions that may be referenced within an expression
+ * are determined by the service that evaluates it. See the service
+ * documentation for additional information.
+ *
+ * @generated from message google.type.Expr
+ */
+export declare type Expr = Message<"google.type.Expr"> & {
+ /**
+ * Textual representation of an expression in Common Expression Language
+ * syntax.
+ *
+ * @generated from field: string expression = 1;
+ */
+ expression: string;
+
+ /**
+ * Optional. Title for the expression, i.e. a short string describing
+ * its purpose. This can be used e.g. in UIs which allow to enter the
+ * expression.
+ *
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * Optional. Description of the expression. This is a longer text which
+ * describes the expression, e.g. when hovered over it in a UI.
+ *
+ * @generated from field: string description = 3;
+ */
+ description: string;
+
+ /**
+ * Optional. String indicating the location of the expression for error
+ * reporting, e.g. a file name and a position in the file.
+ *
+ * @generated from field: string location = 4;
+ */
+ location: string;
+};
+
+/**
+ * Describes the message google.type.Expr.
+ * Use `create(ExprSchema)` to create a new message.
+ */
+export declare const ExprSchema: GenMessage<Expr>;
+
diff --git a/frontend/src/types/proto-es/google/type/expr_pb.js b/frontend/src/types/proto-es/google/type/expr_pb.js
new file mode 100644
index 0000000000..19da92b83e
--- /dev/null
+++ b/frontend/src/types/proto-es/google/type/expr_pb.js
@@ -0,0 +1,33 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// @generated by protoc-gen-es v2.5.2
+// @generated from file google/type/expr.proto (package google.type, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
+
+/**
+ * Describes the file google/type/expr.proto.
+ */
+export const file_google_type_expr = /*@__PURE__*/
+ fileDesc("ChZnb29nbGUvdHlwZS9leHByLnByb3RvEgtnb29nbGUudHlwZSJQCgRFeHByEhIKCmV4cHJlc3Npb24YASABKAkSDQoFdGl0bGUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSEAoIbG9jYXRpb24YBCABKAlCWgoPY29tLmdvb2dsZS50eXBlQglFeHByUHJvdG9QAVo0Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy90eXBlL2V4cHI7ZXhwcqICA0dUUGIGcHJvdG8z");
+
+/**
+ * Describes the message google.type.Expr.
+ * Use `create(ExprSchema)` to create a new message.
+ */
+export const ExprSchema = /*@__PURE__*/
+ messageDesc(file_google_type_expr, 0);
+
diff --git a/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts b/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts
new file mode 100644
index 0000000000..39b8c23160
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts
@@ -0,0 +1,339 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/actuator_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { PasswordRestrictionSetting } from "./setting_service_pb";
+import type { UserType } from "./user_service_pb";
+import type { State } from "./common_pb";
+
+/**
+ * Describes the file v1/actuator_service.proto.
+ */
+export declare const file_v1_actuator_service: GenFile;
+
+/**
+ * The request message for getting the theme resource.
+ *
+ * @generated from message bytebase.v1.GetResourcePackageRequest
+ */
+export declare type GetResourcePackageRequest = Message<"bytebase.v1.GetResourcePackageRequest"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.GetResourcePackageRequest.
+ * Use `create(GetResourcePackageRequestSchema)` to create a new message.
+ */
+export declare const GetResourcePackageRequestSchema: GenMessage<GetResourcePackageRequest>;
+
+/**
+ * The theme resources.
+ *
+ * @generated from message bytebase.v1.ResourcePackage
+ */
+export declare type ResourcePackage = Message<"bytebase.v1.ResourcePackage"> & {
+ /**
+ * The branding logo.
+ *
+ * @generated from field: bytes logo = 1;
+ */
+ logo: Uint8Array;
+};
+
+/**
+ * Describes the message bytebase.v1.ResourcePackage.
+ * Use `create(ResourcePackageSchema)` to create a new message.
+ */
+export declare const ResourcePackageSchema: GenMessage<ResourcePackage>;
+
+/**
+ * @generated from message bytebase.v1.SetupSampleRequest
+ */
+export declare type SetupSampleRequest = Message<"bytebase.v1.SetupSampleRequest"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.SetupSampleRequest.
+ * Use `create(SetupSampleRequestSchema)` to create a new message.
+ */
+export declare const SetupSampleRequestSchema: GenMessage<SetupSampleRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetActuatorInfoRequest
+ */
+export declare type GetActuatorInfoRequest = Message<"bytebase.v1.GetActuatorInfoRequest"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.GetActuatorInfoRequest.
+ * Use `create(GetActuatorInfoRequestSchema)` to create a new message.
+ */
+export declare const GetActuatorInfoRequestSchema: GenMessage<GetActuatorInfoRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateActuatorInfoRequest
+ */
+export declare type UpdateActuatorInfoRequest = Message<"bytebase.v1.UpdateActuatorInfoRequest"> & {
+ /**
+ * The actuator to update.
+ *
+ * @generated from field: bytebase.v1.ActuatorInfo actuator = 1;
+ */
+ actuator?: ActuatorInfo;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateActuatorInfoRequest.
+ * Use `create(UpdateActuatorInfoRequestSchema)` to create a new message.
+ */
+export declare const UpdateActuatorInfoRequestSchema: GenMessage<UpdateActuatorInfoRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteCacheRequest
+ */
+export declare type DeleteCacheRequest = Message<"bytebase.v1.DeleteCacheRequest"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteCacheRequest.
+ * Use `create(DeleteCacheRequestSchema)` to create a new message.
+ */
+export declare const DeleteCacheRequestSchema: GenMessage<DeleteCacheRequest>;
+
+/**
+ * ServerInfo is the API message for server info.
+ * Actuator concept is similar to the Spring Boot Actuator.
+ *
+ * @generated from message bytebase.v1.ActuatorInfo
+ */
+export declare type ActuatorInfo = Message<"bytebase.v1.ActuatorInfo"> & {
+ /**
+ * version is the bytebase's server version
+ *
+ * @generated from field: string version = 1;
+ */
+ version: string;
+
+ /**
+ * git_commit is the git commit hash of the build
+ *
+ * @generated from field: string git_commit = 2;
+ */
+ gitCommit: string;
+
+ /**
+ * readonly flag means if the Bytebase is running in readonly mode.
+ *
+ * @generated from field: bool readonly = 3;
+ */
+ readonly: boolean;
+
+ /**
+ * saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users.
+ *
+ * @generated from field: bool saas = 4;
+ */
+ saas: boolean;
+
+ /**
+ * demo flag means if the Bytebase is running in demo mode.
+ *
+ * @generated from field: bool demo = 5;
+ */
+ demo: boolean;
+
+ /**
+ * host is the Bytebase instance host.
+ *
+ * @generated from field: string host = 6;
+ */
+ host: string;
+
+ /**
+ * port is the Bytebase instance port.
+ *
+ * @generated from field: string port = 7;
+ */
+ port: string;
+
+ /**
+ * external_url is the URL where user or webhook callback visits Bytebase.
+ *
+ * @generated from field: string external_url = 8;
+ */
+ externalUrl: string;
+
+ /**
+ * need_admin_setup flag means the Bytebase instance doesn't have any end users.
+ *
+ * @generated from field: bool need_admin_setup = 9;
+ */
+ needAdminSetup: boolean;
+
+ /**
+ * disallow_signup is the flag to disable self-service signup.
+ *
+ * @generated from field: bool disallow_signup = 10;
+ */
+ disallowSignup: boolean;
+
+ /**
+ * last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value.
+ *
+ * @generated from field: google.protobuf.Timestamp last_active_time = 11;
+ */
+ lastActiveTime?: Timestamp;
+
+ /**
+ * require_2fa is the flag to require 2FA for all users.
+ *
+ * @generated from field: bool require_2fa = 12;
+ */
+ require2fa: boolean;
+
+ /**
+ * workspace_id is the identifier for the workspace.
+ *
+ * @generated from field: string workspace_id = 13;
+ */
+ workspaceId: string;
+
+ /**
+ * debug flag means if the debug mode is enabled.
+ *
+ * @generated from field: bool debug = 15;
+ */
+ debug: boolean;
+
+ /**
+ * @generated from field: repeated string unlicensed_features = 19;
+ */
+ unlicensedFeatures: string[];
+
+ /**
+ * disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins)
+ *
+ * @generated from field: bool disallow_password_signin = 20;
+ */
+ disallowPasswordSignin: boolean;
+
+ /**
+ * @generated from field: bytebase.v1.PasswordRestrictionSetting password_restriction = 21;
+ */
+ passwordRestriction?: PasswordRestrictionSetting;
+
+ /**
+ * docker flag means if the Bytebase instance is running in docker.
+ *
+ * @generated from field: bool docker = 22;
+ */
+ docker: boolean;
+
+ /**
+ * @generated from field: repeated bytebase.v1.ActuatorInfo.StatUser user_stats = 23;
+ */
+ userStats: ActuatorInfo_StatUser[];
+
+ /**
+ * @generated from field: int32 activated_instance_count = 24;
+ */
+ activatedInstanceCount: number;
+
+ /**
+ * @generated from field: int32 total_instance_count = 25;
+ */
+ totalInstanceCount: number;
+
+ /**
+ * @generated from field: bool enable_sample = 26;
+ */
+ enableSample: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ActuatorInfo.
+ * Use `create(ActuatorInfoSchema)` to create a new message.
+ */
+export declare const ActuatorInfoSchema: GenMessage<ActuatorInfo>;
+
+/**
+ * @generated from message bytebase.v1.ActuatorInfo.StatUser
+ */
+export declare type ActuatorInfo_StatUser = Message<"bytebase.v1.ActuatorInfo.StatUser"> & {
+ /**
+ * @generated from field: bytebase.v1.UserType user_type = 1;
+ */
+ userType: UserType;
+
+ /**
+ * @generated from field: bytebase.v1.State state = 2;
+ */
+ state: State;
+
+ /**
+ * @generated from field: int32 count = 3;
+ */
+ count: number;
+};
+
+/**
+ * Describes the message bytebase.v1.ActuatorInfo.StatUser.
+ * Use `create(ActuatorInfo_StatUserSchema)` to create a new message.
+ */
+export declare const ActuatorInfo_StatUserSchema: GenMessage<ActuatorInfo_StatUser>;
+
+/**
+ * @generated from service bytebase.v1.ActuatorService
+ */
+export declare const ActuatorService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.ActuatorService.GetActuatorInfo
+ */
+ getActuatorInfo: {
+ methodKind: "unary";
+ input: typeof GetActuatorInfoRequestSchema;
+ output: typeof ActuatorInfoSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ActuatorService.UpdateActuatorInfo
+ */
+ updateActuatorInfo: {
+ methodKind: "unary";
+ input: typeof UpdateActuatorInfoRequestSchema;
+ output: typeof ActuatorInfoSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ActuatorService.SetupSample
+ */
+ setupSample: {
+ methodKind: "unary";
+ input: typeof SetupSampleRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ActuatorService.DeleteCache
+ */
+ deleteCache: {
+ methodKind: "unary";
+ input: typeof DeleteCacheRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ActuatorService.GetResourcePackage
+ */
+ getResourcePackage: {
+ methodKind: "unary";
+ input: typeof GetResourcePackageRequestSchema;
+ output: typeof ResourcePackageSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/actuator_service_pb.js b/frontend/src/types/proto-es/v1/actuator_service_pb.js
new file mode 100644
index 0000000000..c7dfb0d5c7
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/actuator_service_pb.js
@@ -0,0 +1,82 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/actuator_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_setting_service } from "./setting_service_pb";
+import { file_v1_user_service } from "./user_service_pb";
+
+/**
+ * Describes the file v1/actuator_service.proto.
+ */
+export const file_v1_actuator_service = /*@__PURE__*/
+ fileDesc("Chl2MS9hY3R1YXRvcl9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSIbChlHZXRSZXNvdXJjZVBhY2thZ2VSZXF1ZXN0Ih8KD1Jlc291cmNlUGFja2FnZRIMCgRsb2dvGAEgASgMIhQKElNldHVwU2FtcGxlUmVxdWVzdCIYChZHZXRBY3R1YXRvckluZm9SZXF1ZXN0IoUBChlVcGRhdGVBY3R1YXRvckluZm9SZXF1ZXN0EjEKCGFjdHVhdG9yGAEgASgLMhkuYnl0ZWJhc2UudjEuQWN0dWF0b3JJbmZvQgTiQQECEjUKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0IE4kEBAi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file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_setting_service, file_v1_user_service]);
+
+/**
+ * Describes the message bytebase.v1.GetResourcePackageRequest.
+ * Use `create(GetResourcePackageRequestSchema)` to create a new message.
+ */
+export const GetResourcePackageRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ResourcePackage.
+ * Use `create(ResourcePackageSchema)` to create a new message.
+ */
+export const ResourcePackageSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 1);
+
+/**
+ * Describes the message bytebase.v1.SetupSampleRequest.
+ * Use `create(SetupSampleRequestSchema)` to create a new message.
+ */
+export const SetupSampleRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 2);
+
+/**
+ * Describes the message bytebase.v1.GetActuatorInfoRequest.
+ * Use `create(GetActuatorInfoRequestSchema)` to create a new message.
+ */
+export const GetActuatorInfoRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateActuatorInfoRequest.
+ * Use `create(UpdateActuatorInfoRequestSchema)` to create a new message.
+ */
+export const UpdateActuatorInfoRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteCacheRequest.
+ * Use `create(DeleteCacheRequestSchema)` to create a new message.
+ */
+export const DeleteCacheRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 5);
+
+/**
+ * Describes the message bytebase.v1.ActuatorInfo.
+ * Use `create(ActuatorInfoSchema)` to create a new message.
+ */
+export const ActuatorInfoSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 6);
+
+/**
+ * Describes the message bytebase.v1.ActuatorInfo.StatUser.
+ * Use `create(ActuatorInfo_StatUserSchema)` to create a new message.
+ */
+export const ActuatorInfo_StatUserSchema = /*@__PURE__*/
+ messageDesc(file_v1_actuator_service, 6, 0);
+
+/**
+ * @generated from service bytebase.v1.ActuatorService
+ */
+export const ActuatorService = /*@__PURE__*/
+ serviceDesc(file_v1_actuator_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/annotation_pb.d.ts b/frontend/src/types/proto-es/v1/annotation_pb.d.ts
new file mode 100644
index 0000000000..28caed83ad
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/annotation_pb.d.ts
@@ -0,0 +1,61 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/annotation.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
+import type { MethodOptions } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/annotation.proto.
+ */
+export declare const file_v1_annotation: GenFile;
+
+/**
+ * @generated from enum bytebase.v1.AuthMethod
+ */
+export enum AuthMethod {
+ /**
+ * @generated from enum value: AUTH_METHOD_UNSPECIFIED = 0;
+ */
+ AUTH_METHOD_UNSPECIFIED = 0,
+
+ /**
+ * IAM uses the standard IAM authorization check on the organizational resources.
+ *
+ * @generated from enum value: IAM = 1;
+ */
+ IAM = 1,
+
+ /**
+ * Custom authorization method.
+ *
+ * @generated from enum value: CUSTOM = 2;
+ */
+ CUSTOM = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.AuthMethod.
+ */
+export declare const AuthMethodSchema: GenEnum<AuthMethod>;
+
+/**
+ * @generated from extension: bool allow_without_credential = 100000;
+ */
+export declare const allow_without_credential: GenExtension<MethodOptions, boolean>;
+
+/**
+ * @generated from extension: string permission = 100001;
+ */
+export declare const permission: GenExtension<MethodOptions, string>;
+
+/**
+ * @generated from extension: bytebase.v1.AuthMethod auth_method = 100002;
+ */
+export declare const auth_method: GenExtension<MethodOptions, AuthMethod>;
+
+/**
+ * @generated from extension: bool audit = 100003;
+ */
+export declare const audit: GenExtension<MethodOptions, boolean>;
+
diff --git a/frontend/src/types/proto-es/v1/annotation_pb.js b/frontend/src/types/proto-es/v1/annotation_pb.js
new file mode 100644
index 0000000000..36308da34e
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/annotation_pb.js
@@ -0,0 +1,49 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/annotation.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, extDesc, fileDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/annotation.proto.
+ */
+export const file_v1_annotation = /*@__PURE__*/
+ fileDesc("ChN2MS9hbm5vdGF0aW9uLnByb3RvEgtieXRlYmFzZS52MSo+CgpBdXRoTWV0aG9kEhsKF0FVVEhfTUVUSE9EX1VOU1BFQ0lGSUVEEAASBwoDSUFNEAESCgoGQ1VTVE9NEAI6WgoYYWxsb3dfd2l0aG91dF9jcmVkZW50aWFsEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYoI0GIAEoCFIWYWxsb3dXaXRob3V0Q3JlZGVudGlhbDpACgpwZXJtaXNzaW9uEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYoY0GIAEoCVIKcGVybWlzc2lvbjpaCgthdXRoX21ldGhvZBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKKNBiABKA4yFy5ieXRlYmFzZS52MS5BdXRoTWV0aG9kUgphdXRoTWV0aG9kOjYKBWF1ZGl0Eh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYo40GIAEoCFIFYXVkaXRCNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_protobuf_descriptor]);
+
+/**
+ * Describes the enum bytebase.v1.AuthMethod.
+ */
+export const AuthMethodSchema = /*@__PURE__*/
+ enumDesc(file_v1_annotation, 0);
+
+/**
+ * @generated from enum bytebase.v1.AuthMethod
+ */
+export const AuthMethod = /*@__PURE__*/
+ tsEnum(AuthMethodSchema);
+
+/**
+ * @generated from extension: bool allow_without_credential = 100000;
+ */
+export const allow_without_credential = /*@__PURE__*/
+ extDesc(file_v1_annotation, 0);
+
+/**
+ * @generated from extension: string permission = 100001;
+ */
+export const permission = /*@__PURE__*/
+ extDesc(file_v1_annotation, 1);
+
+/**
+ * @generated from extension: bytebase.v1.AuthMethod auth_method = 100002;
+ */
+export const auth_method = /*@__PURE__*/
+ extDesc(file_v1_annotation, 2);
+
+/**
+ * @generated from extension: bool audit = 100003;
+ */
+export const audit = /*@__PURE__*/
+ extDesc(file_v1_annotation, 3);
+
diff --git a/frontend/src/types/proto-es/v1/audit_log_service_pb.d.ts b/frontend/src/types/proto-es/v1/audit_log_service_pb.d.ts
new file mode 100644
index 0000000000..b1744c9ab9
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/audit_log_service_pb.d.ts
@@ -0,0 +1,398 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/audit_log_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { ExportFormat } from "./common_pb";
+import type { Any, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { Status } from "../google/rpc/status_pb";
+import type { PolicyDelta } from "./iam_policy_pb";
+
+/**
+ * Describes the file v1/audit_log_service.proto.
+ */
+export declare const file_v1_audit_log_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.SearchAuditLogsRequest
+ */
+export declare type SearchAuditLogsRequest = Message<"bytebase.v1.SearchAuditLogsRequest"> & {
+ /**
+ * @generated from field: string parent = 5;
+ */
+ parent: string;
+
+ /**
+ * The filter of the log. It should be a valid CEL expression.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filter:
+ * - method: the API name, can be found in the docs, should start with "/bytebase.v1." prefix. For example "/bytebase.v1.UserService/CreateUser". Support "==" operator.
+ * - severity: support "==" operator, check Severity enum in AuditLog message for values.
+ * - user: the actor, should in "users/{email}" format, support "==" operator.
+ * - create_time: support ">=" and "<=" operator.
+ *
+ * For example:
+ * - filter = "method == '/bytebase.v1.SQLService/Query'"
+ * - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'"
+ * - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'"
+ * - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'"
+ *
+ * @generated from field: string filter = 1;
+ */
+ filter: string;
+
+ /**
+ * The order by of the log.
+ * Only support order by create_time.
+ * For example:
+ * - order_by = "create_time asc"
+ * - order_by = "create_time desc"
+ *
+ * @generated from field: string order_by = 2;
+ */
+ orderBy: string;
+
+ /**
+ * The maximum number of logs to return.
+ * The service may return fewer than this value.
+ * If unspecified, at most 10 log entries will be returned.
+ * The maximum value is 5000; values above 5000 will be coerced to 5000.
+ *
+ * @generated from field: int32 page_size = 3;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `SearchLogs` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * @generated from field: string page_token = 4;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchAuditLogsRequest.
+ * Use `create(SearchAuditLogsRequestSchema)` to create a new message.
+ */
+export declare const SearchAuditLogsRequestSchema: GenMessage<SearchAuditLogsRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchAuditLogsResponse
+ */
+export declare type SearchAuditLogsResponse = Message<"bytebase.v1.SearchAuditLogsResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.AuditLog audit_logs = 1;
+ */
+ auditLogs: AuditLog[];
+
+ /**
+ * A token to retrieve next page of log entities.
+ * Pass this value in the page_token field in the subsequent call
+ * to retrieve the next page of log entities.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchAuditLogsResponse.
+ * Use `create(SearchAuditLogsResponseSchema)` to create a new message.
+ */
+export declare const SearchAuditLogsResponseSchema: GenMessage<SearchAuditLogsResponse>;
+
+/**
+ * @generated from message bytebase.v1.ExportAuditLogsRequest
+ */
+export declare type ExportAuditLogsRequest = Message<"bytebase.v1.ExportAuditLogsRequest"> & {
+ /**
+ * @generated from field: string parent = 4;
+ */
+ parent: string;
+
+ /**
+ * The filter of the log. It should be a valid CEL expression.
+ * Check the filter field in the SearchAuditLogsRequest message.
+ *
+ * @generated from field: string filter = 1;
+ */
+ filter: string;
+
+ /**
+ * The order by of the log.
+ * Only support order by create_time.
+ * For example:
+ * - order_by = "create_time asc"
+ * - order_by = "create_time desc"
+ *
+ * @generated from field: string order_by = 2;
+ */
+ orderBy: string;
+
+ /**
+ * The export format.
+ *
+ * @generated from field: bytebase.v1.ExportFormat format = 3;
+ */
+ format: ExportFormat;
+
+ /**
+ * The maximum number of logs to return.
+ * The service may return fewer than this value.
+ * If unspecified, at most 10 log entries will be returned.
+ * The maximum value is 5000; values above 5000 will be coerced to 5000.
+ *
+ * @generated from field: int32 page_size = 5;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ExportAuditLogs` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * @generated from field: string page_token = 6;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ExportAuditLogsRequest.
+ * Use `create(ExportAuditLogsRequestSchema)` to create a new message.
+ */
+export declare const ExportAuditLogsRequestSchema: GenMessage<ExportAuditLogsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ExportAuditLogsResponse
+ */
+export declare type ExportAuditLogsResponse = Message<"bytebase.v1.ExportAuditLogsResponse"> & {
+ /**
+ * @generated from field: bytes content = 1;
+ */
+ content: Uint8Array;
+
+ /**
+ * A token to retrieve next page of log entities.
+ * Pass this value in the page_token field in the subsequent call
+ * to retrieve the next page of log entities.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ExportAuditLogsResponse.
+ * Use `create(ExportAuditLogsResponseSchema)` to create a new message.
+ */
+export declare const ExportAuditLogsResponseSchema: GenMessage<ExportAuditLogsResponse>;
+
+/**
+ * @generated from message bytebase.v1.AuditLog
+ */
+export declare type AuditLog = Message<"bytebase.v1.AuditLog"> & {
+ /**
+ * The name of the log.
+ * Formats:
+ * - projects/{project}/auditLogs/{uid}
+ * - workspaces/{workspace}/auditLogs/{uid}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 2;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * Format: users/[email protected]
+ *
+ * @generated from field: string user = 3;
+ */
+ user: string;
+
+ /**
+ * e.g. `/bytebase.v1.SQLService/Query`, `bb.project.repository.push`
+ *
+ * @generated from field: string method = 4;
+ */
+ method: string;
+
+ /**
+ * @generated from field: bytebase.v1.AuditLog.Severity severity = 5;
+ */
+ severity: AuditLog_Severity;
+
+ /**
+ * The associated resource.
+ *
+ * @generated from field: string resource = 6;
+ */
+ resource: string;
+
+ /**
+ * JSON-encoded request.
+ *
+ * @generated from field: string request = 7;
+ */
+ request: string;
+
+ /**
+ * JSON-encoded response.
+ * Some fields are omitted because they are too large or contain sensitive information.
+ *
+ * @generated from field: string response = 8;
+ */
+ response: string;
+
+ /**
+ * @generated from field: google.rpc.Status status = 9;
+ */
+ status?: Status;
+
+ /**
+ * service-specific data about the request, response, and other activities.
+ *
+ * @generated from field: google.protobuf.Any service_data = 10;
+ */
+ serviceData?: Any;
+
+ /**
+ * Metadata about the operation.
+ *
+ * @generated from field: bytebase.v1.RequestMetadata request_metadata = 11;
+ */
+ requestMetadata?: RequestMetadata;
+};
+
+/**
+ * Describes the message bytebase.v1.AuditLog.
+ * Use `create(AuditLogSchema)` to create a new message.
+ */
+export declare const AuditLogSchema: GenMessage<AuditLog>;
+
+/**
+ * @generated from enum bytebase.v1.AuditLog.Severity
+ */
+export enum AuditLog_Severity {
+ /**
+ * @generated from enum value: DEFAULT = 0;
+ */
+ DEFAULT = 0,
+
+ /**
+ * @generated from enum value: DEBUG = 1;
+ */
+ DEBUG = 1,
+
+ /**
+ * @generated from enum value: INFO = 2;
+ */
+ INFO = 2,
+
+ /**
+ * @generated from enum value: NOTICE = 3;
+ */
+ NOTICE = 3,
+
+ /**
+ * @generated from enum value: WARNING = 4;
+ */
+ WARNING = 4,
+
+ /**
+ * @generated from enum value: ERROR = 5;
+ */
+ ERROR = 5,
+
+ /**
+ * @generated from enum value: CRITICAL = 6;
+ */
+ CRITICAL = 6,
+
+ /**
+ * @generated from enum value: ALERT = 7;
+ */
+ ALERT = 7,
+
+ /**
+ * @generated from enum value: EMERGENCY = 8;
+ */
+ EMERGENCY = 8,
+}
+
+/**
+ * Describes the enum bytebase.v1.AuditLog.Severity.
+ */
+export declare const AuditLog_SeveritySchema: GenEnum<AuditLog_Severity>;
+
+/**
+ * @generated from message bytebase.v1.AuditData
+ */
+export declare type AuditData = Message<"bytebase.v1.AuditData"> & {
+ /**
+ * @generated from field: bytebase.v1.PolicyDelta policy_delta = 1;
+ */
+ policyDelta?: PolicyDelta;
+};
+
+/**
+ * Describes the message bytebase.v1.AuditData.
+ * Use `create(AuditDataSchema)` to create a new message.
+ */
+export declare const AuditDataSchema: GenMessage<AuditData>;
+
+/**
+ * Metadata about the request.
+ *
+ * @generated from message bytebase.v1.RequestMetadata
+ */
+export declare type RequestMetadata = Message<"bytebase.v1.RequestMetadata"> & {
+ /**
+ * The IP address of the caller.
+ *
+ * @generated from field: string caller_ip = 1;
+ */
+ callerIp: string;
+
+ /**
+ * The user agent of the caller.
+ * This information is not authenticated and should be treated accordingly.
+ *
+ * @generated from field: string caller_supplied_user_agent = 2;
+ */
+ callerSuppliedUserAgent: string;
+};
+
+/**
+ * Describes the message bytebase.v1.RequestMetadata.
+ * Use `create(RequestMetadataSchema)` to create a new message.
+ */
+export declare const RequestMetadataSchema: GenMessage<RequestMetadata>;
+
+/**
+ * @generated from service bytebase.v1.AuditLogService
+ */
+export declare const AuditLogService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.AuditLogService.SearchAuditLogs
+ */
+ searchAuditLogs: {
+ methodKind: "unary";
+ input: typeof SearchAuditLogsRequestSchema;
+ output: typeof SearchAuditLogsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.AuditLogService.ExportAuditLogs
+ */
+ exportAuditLogs: {
+ methodKind: "unary";
+ input: typeof ExportAuditLogsRequestSchema;
+ output: typeof ExportAuditLogsResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/audit_log_service_pb.js b/frontend/src/types/proto-es/v1/audit_log_service_pb.js
new file mode 100644
index 0000000000..e24d1d8375
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/audit_log_service_pb.js
@@ -0,0 +1,87 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/audit_log_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_any, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_google_rpc_status } from "../google/rpc/status_pb";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_iam_policy } from "./iam_policy_pb";
+
+/**
+ * Describes the file v1/audit_log_service.proto.
+ */
+export const file_v1_audit_log_service = /*@__PURE__*/
+ fileDesc("Chp2MS9hdWRpdF9sb2dfc2VydmljZS5w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lL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_any, file_google_protobuf_timestamp, file_google_rpc_status, file_v1_annotation, file_v1_common, file_v1_iam_policy]);
+
+/**
+ * Describes the message bytebase.v1.SearchAuditLogsRequest.
+ * Use `create(SearchAuditLogsRequestSchema)` to create a new message.
+ */
+export const SearchAuditLogsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 0);
+
+/**
+ * Describes the message bytebase.v1.SearchAuditLogsResponse.
+ * Use `create(SearchAuditLogsResponseSchema)` to create a new message.
+ */
+export const SearchAuditLogsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ExportAuditLogsRequest.
+ * Use `create(ExportAuditLogsRequestSchema)` to create a new message.
+ */
+export const ExportAuditLogsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 2);
+
+/**
+ * Describes the message bytebase.v1.ExportAuditLogsResponse.
+ * Use `create(ExportAuditLogsResponseSchema)` to create a new message.
+ */
+export const ExportAuditLogsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 3);
+
+/**
+ * Describes the message bytebase.v1.AuditLog.
+ * Use `create(AuditLogSchema)` to create a new message.
+ */
+export const AuditLogSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 4);
+
+/**
+ * Describes the enum bytebase.v1.AuditLog.Severity.
+ */
+export const AuditLog_SeveritySchema = /*@__PURE__*/
+ enumDesc(file_v1_audit_log_service, 4, 0);
+
+/**
+ * @generated from enum bytebase.v1.AuditLog.Severity
+ */
+export const AuditLog_Severity = /*@__PURE__*/
+ tsEnum(AuditLog_SeveritySchema);
+
+/**
+ * Describes the message bytebase.v1.AuditData.
+ * Use `create(AuditDataSchema)` to create a new message.
+ */
+export const AuditDataSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 5);
+
+/**
+ * Describes the message bytebase.v1.RequestMetadata.
+ * Use `create(RequestMetadataSchema)` to create a new message.
+ */
+export const RequestMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_audit_log_service, 6);
+
+/**
+ * @generated from service bytebase.v1.AuditLogService
+ */
+export const AuditLogService = /*@__PURE__*/
+ serviceDesc(file_v1_audit_log_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/auth_service_pb.d.ts b/frontend/src/types/proto-es/v1/auth_service_pb.d.ts
new file mode 100644
index 0000000000..3922eb2303
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/auth_service_pb.d.ts
@@ -0,0 +1,201 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/auth_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { User } from "./user_service_pb";
+import type { EmptySchema } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/auth_service.proto.
+ */
+export declare const file_v1_auth_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.LoginRequest
+ */
+export declare type LoginRequest = Message<"bytebase.v1.LoginRequest"> & {
+ /**
+ * @generated from field: string email = 1;
+ */
+ email: string;
+
+ /**
+ * @generated from field: string password = 2;
+ */
+ password: string;
+
+ /**
+ * If web is set, we will set access token, refresh token, and user to the cookie.
+ *
+ * @generated from field: bool web = 3;
+ */
+ web: boolean;
+
+ /**
+ * The name of the identity provider.
+ * Format: idps/{idp}
+ *
+ * @generated from field: string idp_name = 4;
+ */
+ idpName: string;
+
+ /**
+ * The idp_context is using to get the user information from identity provider.
+ *
+ * @generated from field: bytebase.v1.IdentityProviderContext idp_context = 5;
+ */
+ idpContext?: IdentityProviderContext;
+
+ /**
+ * The otp_code is used to verify the user's identity by MFA.
+ *
+ * @generated from field: optional string otp_code = 6;
+ */
+ otpCode?: string;
+
+ /**
+ * The recovery_code is used to recovery the user's identity with MFA.
+ *
+ * @generated from field: optional string recovery_code = 7;
+ */
+ recoveryCode?: string;
+
+ /**
+ * The mfa_temp_token is used to verify the user's identity by MFA.
+ *
+ * @generated from field: optional string mfa_temp_token = 8;
+ */
+ mfaTempToken?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.LoginRequest.
+ * Use `create(LoginRequestSchema)` to create a new message.
+ */
+export declare const LoginRequestSchema: GenMessage<LoginRequest>;
+
+/**
+ * @generated from message bytebase.v1.IdentityProviderContext
+ */
+export declare type IdentityProviderContext = Message<"bytebase.v1.IdentityProviderContext"> & {
+ /**
+ * @generated from oneof bytebase.v1.IdentityProviderContext.context
+ */
+ context: {
+ /**
+ * @generated from field: bytebase.v1.OAuth2IdentityProviderContext oauth2_context = 1;
+ */
+ value: OAuth2IdentityProviderContext;
+ case: "oauth2Context";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.OIDCIdentityProviderContext oidc_context = 2;
+ */
+ value: OIDCIdentityProviderContext;
+ case: "oidcContext";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.IdentityProviderContext.
+ * Use `create(IdentityProviderContextSchema)` to create a new message.
+ */
+export declare const IdentityProviderContextSchema: GenMessage<IdentityProviderContext>;
+
+/**
+ * @generated from message bytebase.v1.OAuth2IdentityProviderContext
+ */
+export declare type OAuth2IdentityProviderContext = Message<"bytebase.v1.OAuth2IdentityProviderContext"> & {
+ /**
+ * @generated from field: string code = 1;
+ */
+ code: string;
+};
+
+/**
+ * Describes the message bytebase.v1.OAuth2IdentityProviderContext.
+ * Use `create(OAuth2IdentityProviderContextSchema)` to create a new message.
+ */
+export declare const OAuth2IdentityProviderContextSchema: GenMessage<OAuth2IdentityProviderContext>;
+
+/**
+ * @generated from message bytebase.v1.OIDCIdentityProviderContext
+ */
+export declare type OIDCIdentityProviderContext = Message<"bytebase.v1.OIDCIdentityProviderContext"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.OIDCIdentityProviderContext.
+ * Use `create(OIDCIdentityProviderContextSchema)` to create a new message.
+ */
+export declare const OIDCIdentityProviderContextSchema: GenMessage<OIDCIdentityProviderContext>;
+
+/**
+ * @generated from message bytebase.v1.LoginResponse
+ */
+export declare type LoginResponse = Message<"bytebase.v1.LoginResponse"> & {
+ /**
+ * @generated from field: string token = 1;
+ */
+ token: string;
+
+ /**
+ * @generated from field: optional string mfa_temp_token = 2;
+ */
+ mfaTempToken?: string;
+
+ /**
+ * @generated from field: bool require_reset_password = 3;
+ */
+ requireResetPassword: boolean;
+
+ /**
+ * The user of successful login.
+ *
+ * @generated from field: bytebase.v1.User user = 4;
+ */
+ user?: User;
+};
+
+/**
+ * Describes the message bytebase.v1.LoginResponse.
+ * Use `create(LoginResponseSchema)` to create a new message.
+ */
+export declare const LoginResponseSchema: GenMessage<LoginResponse>;
+
+/**
+ * @generated from message bytebase.v1.LogoutRequest
+ */
+export declare type LogoutRequest = Message<"bytebase.v1.LogoutRequest"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.LogoutRequest.
+ * Use `create(LogoutRequestSchema)` to create a new message.
+ */
+export declare const LogoutRequestSchema: GenMessage<LogoutRequest>;
+
+/**
+ * @generated from service bytebase.v1.AuthService
+ */
+export declare const AuthService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.AuthService.Login
+ */
+ login: {
+ methodKind: "unary";
+ input: typeof LoginRequestSchema;
+ output: typeof LoginResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.AuthService.Logout
+ */
+ logout: {
+ methodKind: "unary";
+ input: typeof LogoutRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/auth_service_pb.js b/frontend/src/types/proto-es/v1/auth_service_pb.js
new file mode 100644
index 0000000000..351b69b9c1
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/auth_service_pb.js
@@ -0,0 +1,64 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/auth_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_user_service } from "./user_service_pb";
+
+/**
+ * Describes the file v1/auth_service.proto.
+ */
+export const file_v1_auth_service = /*@__PURE__*/
+ fileDesc("ChV2MS9hdXRoX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIosCCgxMb2dpblJlcXVlc3QSDQoFZW1haWwYASABKAkSEAoIcGFzc3dvcmQYAiABKAkSCwoDd2ViGAMgASgIEhAKCGlkcF9uYW1lGAQgASgJEjkKC2lkcF9jb250ZXh0GAUgASgLMiQuYnl0ZWJhc2UudjEuSWRlbnRpdHlQcm92aWRlckNvbnRleHQSFQoIb3RwX2NvZGUYBiABKAlIAIgBARIaCg1yZWNvdmVyeV9jb2RlGAcgASgJSAGIAQESGwoObWZhX3RlbXBfdG9rZW4YCCABKAlIAogBAUILCglfb3RwX2NvZGVCEAoOX3JlY292ZXJ5X2NvZGVCEQoPX21mYV90ZW1wX3Rva2VuIqwBChdJZGVudGl0eVByb3ZpZGVyQ29udGV4dBJECg5vYXV0aDJfY29udGV4dBgBIAEoCzIqLmJ5dGViYXNlLnYxLk9BdXRoMklkZW50aXR5UHJvdmlkZXJDb250ZXh0SAASQAoMb2lkY19jb250ZXh0GAIgASgLMiguYnl0ZWJhc2UudjEuT0lEQ0lkZW50aXR5UHJvdmlkZXJDb250ZXh0SABCCQoHY29udGV4dCItCh1PQXV0aDJJZGVudGl0eVByb3ZpZGVyQ29udGV4dBIMCgRjb2RlGAEgASgJIh0KG09JRENJZGVudGl0eVByb3ZpZGVyQ29udGV4dCKPAQoNTG9naW5SZXNwb25zZRINCgV0b2tlbhgBIAEoCRIbCg5tZmFfdGVtcF90b2tlbhgCIAEoCUgAiAEBEh4KFnJlcXVpcmVfcmVzZXRfcGFzc3dvcmQYAyABKAgSHwoEdXNlchgEIAEoCzIRLmJ5dGViYXNlLnYxLlVzZXJCEQoPX21mYV90ZW1wX3Rva2VuIg8KDUxvZ291dFJlcXVlc3Qy0gEKC0F1dGhTZXJ2aWNlEmEKBUxvZ2luEhkuYnl0ZWJhc2UudjEuTG9naW5SZXF1ZXN0GhouYnl0ZWJhc2UudjEuTG9naW5SZXNwb25zZSIhgOowAZjqMAGC0+STAhM6ASoiDi92MS9hdXRoL2xvZ2luEmAKBkxvZ291dBIaLmJ5dGViYXNlLnYxLkxvZ291dFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiIoDqMAGY6jABgtPkkwIUOgEqIg8vdjEvYXV0aC9sb2dvdXRCNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_protobuf_empty, file_v1_annotation, file_v1_user_service]);
+
+/**
+ * Describes the message bytebase.v1.LoginRequest.
+ * Use `create(LoginRequestSchema)` to create a new message.
+ */
+export const LoginRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_auth_service, 0);
+
+/**
+ * Describes the message bytebase.v1.IdentityProviderContext.
+ * Use `create(IdentityProviderContextSchema)` to create a new message.
+ */
+export const IdentityProviderContextSchema = /*@__PURE__*/
+ messageDesc(file_v1_auth_service, 1);
+
+/**
+ * Describes the message bytebase.v1.OAuth2IdentityProviderContext.
+ * Use `create(OAuth2IdentityProviderContextSchema)` to create a new message.
+ */
+export const OAuth2IdentityProviderContextSchema = /*@__PURE__*/
+ messageDesc(file_v1_auth_service, 2);
+
+/**
+ * Describes the message bytebase.v1.OIDCIdentityProviderContext.
+ * Use `create(OIDCIdentityProviderContextSchema)` to create a new message.
+ */
+export const OIDCIdentityProviderContextSchema = /*@__PURE__*/
+ messageDesc(file_v1_auth_service, 3);
+
+/**
+ * Describes the message bytebase.v1.LoginResponse.
+ * Use `create(LoginResponseSchema)` to create a new message.
+ */
+export const LoginResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_auth_service, 4);
+
+/**
+ * Describes the message bytebase.v1.LogoutRequest.
+ * Use `create(LogoutRequestSchema)` to create a new message.
+ */
+export const LogoutRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_auth_service, 5);
+
+/**
+ * @generated from service bytebase.v1.AuthService
+ */
+export const AuthService = /*@__PURE__*/
+ serviceDesc(file_v1_auth_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/cel_service_pb.d.ts b/frontend/src/types/proto-es/v1/cel_service_pb.d.ts
new file mode 100644
index 0000000000..72eb966fc5
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/cel_service_pb.d.ts
@@ -0,0 +1,99 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/cel_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Expr } from "../google/api/expr/v1alpha1/syntax_pb";
+
+/**
+ * Describes the file v1/cel_service.proto.
+ */
+export declare const file_v1_cel_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.BatchParseRequest
+ */
+export declare type BatchParseRequest = Message<"bytebase.v1.BatchParseRequest"> & {
+ /**
+ * @generated from field: repeated string expressions = 1;
+ */
+ expressions: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchParseRequest.
+ * Use `create(BatchParseRequestSchema)` to create a new message.
+ */
+export declare const BatchParseRequestSchema: GenMessage<BatchParseRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchParseResponse
+ */
+export declare type BatchParseResponse = Message<"bytebase.v1.BatchParseResponse"> & {
+ /**
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr expressions = 1;
+ */
+ expressions: Expr[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchParseResponse.
+ * Use `create(BatchParseResponseSchema)` to create a new message.
+ */
+export declare const BatchParseResponseSchema: GenMessage<BatchParseResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchDeparseRequest
+ */
+export declare type BatchDeparseRequest = Message<"bytebase.v1.BatchDeparseRequest"> & {
+ /**
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr expressions = 1;
+ */
+ expressions: Expr[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchDeparseRequest.
+ * Use `create(BatchDeparseRequestSchema)` to create a new message.
+ */
+export declare const BatchDeparseRequestSchema: GenMessage<BatchDeparseRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchDeparseResponse
+ */
+export declare type BatchDeparseResponse = Message<"bytebase.v1.BatchDeparseResponse"> & {
+ /**
+ * @generated from field: repeated string expressions = 1;
+ */
+ expressions: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchDeparseResponse.
+ * Use `create(BatchDeparseResponseSchema)` to create a new message.
+ */
+export declare const BatchDeparseResponseSchema: GenMessage<BatchDeparseResponse>;
+
+/**
+ * @generated from service bytebase.v1.CelService
+ */
+export declare const CelService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.CelService.BatchParse
+ */
+ batchParse: {
+ methodKind: "unary";
+ input: typeof BatchParseRequestSchema;
+ output: typeof BatchParseResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.CelService.BatchDeparse
+ */
+ batchDeparse: {
+ methodKind: "unary";
+ input: typeof BatchDeparseRequestSchema;
+ output: typeof BatchDeparseResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/cel_service_pb.js b/frontend/src/types/proto-es/v1/cel_service_pb.js
new file mode 100644
index 0000000000..cc1bc88bcd
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/cel_service_pb.js
@@ -0,0 +1,49 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/cel_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_expr_v1alpha1_syntax } from "../google/api/expr/v1alpha1/syntax_pb";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/cel_service.proto.
+ */
+export const file_v1_cel_service = /*@__PURE__*/
+ fileDesc("ChR2MS9jZWxfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiKAoRQmF0Y2hQYXJzZVJlcXVlc3QSEwoLZXhwcmVzc2lvbnMYASADKAkiSQoSQmF0Y2hQYXJzZVJlc3BvbnNlEjMKC2V4cHJlc3Npb25zGAEgAygLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIiSgoTQmF0Y2hEZXBhcnNlUmVxdWVzdBIzCgtleHByZXNzaW9ucxgBIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5FeHByIisKFEJhdGNoRGVwYXJzZVJlc3BvbnNlEhMKC2V4cHJlc3Npb25zGAEgAygJMvgBCgpDZWxTZXJ2aWNlEnAKCkJhdGNoUGFyc2USHi5ieXRlYmFzZS52MS5CYXRjaFBhcnNlUmVxdWVzdBofLmJ5dGViYXNlLnYxLkJhdGNoUGFyc2VSZXNwb25zZSIhgOowAYLT5JMCFzoBKiISL3YxL2NlbC9iYXRjaFBhcnNlEngKDEJhdGNoRGVwYXJzZRIgLmJ5dGViYXNlLnYxLkJhdGNoRGVwYXJzZVJlcXVlc3QaIS5ieXRlYmFzZS52MS5CYXRjaERlcGFyc2VSZXNwb25zZSIjgOowAYLT5JMCGToBKiIUL3YxL2NlbC9iYXRjaERlcGFyc2VCNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_expr_v1alpha1_syntax, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.BatchParseRequest.
+ * Use `create(BatchParseRequestSchema)` to create a new message.
+ */
+export const BatchParseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_cel_service, 0);
+
+/**
+ * Describes the message bytebase.v1.BatchParseResponse.
+ * Use `create(BatchParseResponseSchema)` to create a new message.
+ */
+export const BatchParseResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_cel_service, 1);
+
+/**
+ * Describes the message bytebase.v1.BatchDeparseRequest.
+ * Use `create(BatchDeparseRequestSchema)` to create a new message.
+ */
+export const BatchDeparseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_cel_service, 2);
+
+/**
+ * Describes the message bytebase.v1.BatchDeparseResponse.
+ * Use `create(BatchDeparseResponseSchema)` to create a new message.
+ */
+export const BatchDeparseResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_cel_service, 3);
+
+/**
+ * @generated from service bytebase.v1.CelService
+ */
+export const CelService = /*@__PURE__*/
+ serviceDesc(file_v1_cel_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/changelist_service_pb.d.ts b/frontend/src/types/proto-es/v1/changelist_service_pb.d.ts
new file mode 100644
index 0000000000..65015e03a7
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/changelist_service_pb.d.ts
@@ -0,0 +1,302 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/changelist_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/changelist_service.proto.
+ */
+export declare const file_v1_changelist_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.CreateChangelistRequest
+ */
+export declare type CreateChangelistRequest = Message<"bytebase.v1.CreateChangelistRequest"> & {
+ /**
+ * The parent resource where this changelist will be created.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The changelist to create.
+ *
+ * @generated from field: bytebase.v1.Changelist changelist = 2;
+ */
+ changelist?: Changelist;
+
+ /**
+ * The ID to use for the changelist, which will become the final component of
+ * the changelist's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ *
+ * @generated from field: string changelist_id = 3;
+ */
+ changelistId: string;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateChangelistRequest.
+ * Use `create(CreateChangelistRequestSchema)` to create a new message.
+ */
+export declare const CreateChangelistRequestSchema: GenMessage<CreateChangelistRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetChangelistRequest
+ */
+export declare type GetChangelistRequest = Message<"bytebase.v1.GetChangelistRequest"> & {
+ /**
+ * The name of the changelist to retrieve.
+ * Format: projects/{project}/changelists/{changelist}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetChangelistRequest.
+ * Use `create(GetChangelistRequestSchema)` to create a new message.
+ */
+export declare const GetChangelistRequestSchema: GenMessage<GetChangelistRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListChangelistsRequest
+ */
+export declare type ListChangelistsRequest = Message<"bytebase.v1.ListChangelistsRequest"> & {
+ /**
+ * The parent, which owns this collection of changelists.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * Not used.
+ * The maximum number of databases to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 50 databases will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListDatabases` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListDatabases` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListChangelistsRequest.
+ * Use `create(ListChangelistsRequestSchema)` to create a new message.
+ */
+export declare const ListChangelistsRequestSchema: GenMessage<ListChangelistsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListChangelistsResponse
+ */
+export declare type ListChangelistsResponse = Message<"bytebase.v1.ListChangelistsResponse"> & {
+ /**
+ * The changelists from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Changelist changelists = 1;
+ */
+ changelists: Changelist[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListChangelistsResponse.
+ * Use `create(ListChangelistsResponseSchema)` to create a new message.
+ */
+export declare const ListChangelistsResponseSchema: GenMessage<ListChangelistsResponse>;
+
+/**
+ * @generated from message bytebase.v1.UpdateChangelistRequest
+ */
+export declare type UpdateChangelistRequest = Message<"bytebase.v1.UpdateChangelistRequest"> & {
+ /**
+ * The changelist to update.
+ *
+ * The changelist's `name` field is used to identify the changelist to update.
+ * Format: projects/{project}/changelists/{changelist}
+ *
+ * @generated from field: bytebase.v1.Changelist changelist = 1;
+ */
+ changelist?: Changelist;
+
+ /**
+ * The list of fields to be updated.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateChangelistRequest.
+ * Use `create(UpdateChangelistRequestSchema)` to create a new message.
+ */
+export declare const UpdateChangelistRequestSchema: GenMessage<UpdateChangelistRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteChangelistRequest
+ */
+export declare type DeleteChangelistRequest = Message<"bytebase.v1.DeleteChangelistRequest"> & {
+ /**
+ * The name of the changelist to delete.
+ * Format: projects/{project}/changelists/{changelist}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteChangelistRequest.
+ * Use `create(DeleteChangelistRequestSchema)` to create a new message.
+ */
+export declare const DeleteChangelistRequestSchema: GenMessage<DeleteChangelistRequest>;
+
+/**
+ * @generated from message bytebase.v1.Changelist
+ */
+export declare type Changelist = Message<"bytebase.v1.Changelist"> & {
+ /**
+ * The name of the changelist resource.
+ * Canonical parent is project.
+ * Format: projects/{project}/changelists/{changelist}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string description = 2;
+ */
+ description: string;
+
+ /**
+ * The creator of the changelist.
+ * Format: users/{email}
+ *
+ * @generated from field: string creator = 3;
+ */
+ creator: string;
+
+ /**
+ * The last update time of the changelist.
+ *
+ * @generated from field: google.protobuf.Timestamp update_time = 6;
+ */
+ updateTime?: Timestamp;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Changelist.Change changes = 7;
+ */
+ changes: Changelist_Change[];
+};
+
+/**
+ * Describes the message bytebase.v1.Changelist.
+ * Use `create(ChangelistSchema)` to create a new message.
+ */
+export declare const ChangelistSchema: GenMessage<Changelist>;
+
+/**
+ * @generated from message bytebase.v1.Changelist.Change
+ */
+export declare type Changelist_Change = Message<"bytebase.v1.Changelist.Change"> & {
+ /**
+ * The name of a sheet.
+ *
+ * @generated from field: string sheet = 1;
+ */
+ sheet: string;
+
+ /**
+ * The source of origin.
+ * 1) changelog: instances/{instance}/databases/{database}/changelogs/{changelog}.
+ * 2) raw SQL if empty.
+ *
+ * @generated from field: string source = 2;
+ */
+ source: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Changelist.Change.
+ * Use `create(Changelist_ChangeSchema)` to create a new message.
+ */
+export declare const Changelist_ChangeSchema: GenMessage<Changelist_Change>;
+
+/**
+ * @generated from service bytebase.v1.ChangelistService
+ */
+export declare const ChangelistService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.ChangelistService.CreateChangelist
+ */
+ createChangelist: {
+ methodKind: "unary";
+ input: typeof CreateChangelistRequestSchema;
+ output: typeof ChangelistSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ChangelistService.GetChangelist
+ */
+ getChangelist: {
+ methodKind: "unary";
+ input: typeof GetChangelistRequestSchema;
+ output: typeof ChangelistSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ChangelistService.ListChangelists
+ */
+ listChangelists: {
+ methodKind: "unary";
+ input: typeof ListChangelistsRequestSchema;
+ output: typeof ListChangelistsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ChangelistService.UpdateChangelist
+ */
+ updateChangelist: {
+ methodKind: "unary";
+ input: typeof UpdateChangelistRequestSchema;
+ output: typeof ChangelistSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ChangelistService.DeleteChangelist
+ */
+ deleteChangelist: {
+ methodKind: "unary";
+ input: typeof DeleteChangelistRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/changelist_service_pb.js b/frontend/src/types/proto-es/v1/changelist_service_pb.js
new file mode 100644
index 0000000000..318604dbdc
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/changelist_service_pb.js
@@ -0,0 +1,80 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/changelist_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/changelist_service.proto.
+ */
+export const file_v1_changelist_service = /*@__PURE__*/
+ fileDesc("Cht2MS9jaGFuZ2VsaXN0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIpgBChdDcmVhdGVDaGFuZ2VsaXN0UmVxdWVzdBItCgZwYXJlbnQYASABKAlCHeJ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XN0cy51cGRhdGWQ6jABgtPkkwI8OgpjaGFuZ2VsaXN0Mi4vdjEve2NoYW5nZWxpc3QubmFtZT1wcm9qZWN0cy8qL2NoYW5nZWxpc3RzLyp9EqEBChBEZWxldGVDaGFuZ2VsaXN0EiQuYnl0ZWJhc2UudjEuRGVsZXRlQ2hhbmdlbGlzdFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiT9pBBG5hbWWK6jAVYmIuY2hhbmdlbGlzdHMuZGVsZXRlkOowAYLT5JMCJSojL3YxL3tuYW1lPXByb2plY3RzLyovY2hhbmdlbGlzdHMvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.CreateChangelistRequest.
+ * Use `create(CreateChangelistRequestSchema)` to create a new message.
+ */
+export const CreateChangelistRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 0);
+
+/**
+ * Describes the message bytebase.v1.GetChangelistRequest.
+ * Use `create(GetChangelistRequestSchema)` to create a new message.
+ */
+export const GetChangelistRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListChangelistsRequest.
+ * Use `create(ListChangelistsRequestSchema)` to create a new message.
+ */
+export const ListChangelistsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 2);
+
+/**
+ * Describes the message bytebase.v1.ListChangelistsResponse.
+ * Use `create(ListChangelistsResponseSchema)` to create a new message.
+ */
+export const ListChangelistsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateChangelistRequest.
+ * Use `create(UpdateChangelistRequestSchema)` to create a new message.
+ */
+export const UpdateChangelistRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteChangelistRequest.
+ * Use `create(DeleteChangelistRequestSchema)` to create a new message.
+ */
+export const DeleteChangelistRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 5);
+
+/**
+ * Describes the message bytebase.v1.Changelist.
+ * Use `create(ChangelistSchema)` to create a new message.
+ */
+export const ChangelistSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 6);
+
+/**
+ * Describes the message bytebase.v1.Changelist.Change.
+ * Use `create(Changelist_ChangeSchema)` to create a new message.
+ */
+export const Changelist_ChangeSchema = /*@__PURE__*/
+ messageDesc(file_v1_changelist_service, 6, 0);
+
+/**
+ * @generated from service bytebase.v1.ChangelistService
+ */
+export const ChangelistService = /*@__PURE__*/
+ serviceDesc(file_v1_changelist_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/common_pb.d.ts b/frontend/src/types/proto-es/v1/common_pb.d.ts
new file mode 100644
index 0000000000..291ec00f0d
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/common_pb.d.ts
@@ -0,0 +1,311 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/common.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+
+/**
+ * Describes the file v1/common.proto.
+ */
+export declare const file_v1_common: GenFile;
+
+/**
+ * Position in a text expressed as zero-based line and zero-based column byte
+ * offset.
+ *
+ * @generated from message bytebase.v1.Position
+ */
+export declare type Position = Message<"bytebase.v1.Position"> & {
+ /**
+ * Line position in a text (zero-based).
+ *
+ * @generated from field: int32 line = 1;
+ */
+ line: number;
+
+ /**
+ * Column position in a text (zero-based), equivalent to byte offset.
+ *
+ * @generated from field: int32 column = 2;
+ */
+ column: number;
+};
+
+/**
+ * Describes the message bytebase.v1.Position.
+ * Use `create(PositionSchema)` to create a new message.
+ */
+export declare const PositionSchema: GenMessage<Position>;
+
+/**
+ * @generated from message bytebase.v1.Range
+ */
+export declare type Range = Message<"bytebase.v1.Range"> & {
+ /**
+ * @generated from field: int32 start = 1;
+ */
+ start: number;
+
+ /**
+ * @generated from field: int32 end = 2;
+ */
+ end: number;
+};
+
+/**
+ * Describes the message bytebase.v1.Range.
+ * Use `create(RangeSchema)` to create a new message.
+ */
+export declare const RangeSchema: GenMessage<Range>;
+
+/**
+ * @generated from enum bytebase.v1.State
+ */
+export enum State {
+ /**
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ACTIVE = 1;
+ */
+ ACTIVE = 1,
+
+ /**
+ * @generated from enum value: DELETED = 2;
+ */
+ DELETED = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.State.
+ */
+export declare const StateSchema: GenEnum<State>;
+
+/**
+ * @generated from enum bytebase.v1.Engine
+ */
+export enum Engine {
+ /**
+ * @generated from enum value: ENGINE_UNSPECIFIED = 0;
+ */
+ ENGINE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: CLICKHOUSE = 1;
+ */
+ CLICKHOUSE = 1,
+
+ /**
+ * @generated from enum value: MYSQL = 2;
+ */
+ MYSQL = 2,
+
+ /**
+ * @generated from enum value: POSTGRES = 3;
+ */
+ POSTGRES = 3,
+
+ /**
+ * @generated from enum value: SNOWFLAKE = 4;
+ */
+ SNOWFLAKE = 4,
+
+ /**
+ * @generated from enum value: SQLITE = 5;
+ */
+ SQLITE = 5,
+
+ /**
+ * @generated from enum value: TIDB = 6;
+ */
+ TIDB = 6,
+
+ /**
+ * @generated from enum value: MONGODB = 7;
+ */
+ MONGODB = 7,
+
+ /**
+ * @generated from enum value: REDIS = 8;
+ */
+ REDIS = 8,
+
+ /**
+ * @generated from enum value: ORACLE = 9;
+ */
+ ORACLE = 9,
+
+ /**
+ * @generated from enum value: SPANNER = 10;
+ */
+ SPANNER = 10,
+
+ /**
+ * @generated from enum value: MSSQL = 11;
+ */
+ MSSQL = 11,
+
+ /**
+ * @generated from enum value: REDSHIFT = 12;
+ */
+ REDSHIFT = 12,
+
+ /**
+ * @generated from enum value: MARIADB = 13;
+ */
+ MARIADB = 13,
+
+ /**
+ * @generated from enum value: OCEANBASE = 14;
+ */
+ OCEANBASE = 14,
+
+ /**
+ * @generated from enum value: DM = 15;
+ */
+ DM = 15,
+
+ /**
+ * @generated from enum value: RISINGWAVE = 16;
+ */
+ RISINGWAVE = 16,
+
+ /**
+ * @generated from enum value: OCEANBASE_ORACLE = 17;
+ */
+ OCEANBASE_ORACLE = 17,
+
+ /**
+ * @generated from enum value: STARROCKS = 18;
+ */
+ STARROCKS = 18,
+
+ /**
+ * @generated from enum value: DORIS = 19;
+ */
+ DORIS = 19,
+
+ /**
+ * @generated from enum value: HIVE = 20;
+ */
+ HIVE = 20,
+
+ /**
+ * @generated from enum value: ELASTICSEARCH = 21;
+ */
+ ELASTICSEARCH = 21,
+
+ /**
+ * @generated from enum value: BIGQUERY = 22;
+ */
+ BIGQUERY = 22,
+
+ /**
+ * @generated from enum value: DYNAMODB = 23;
+ */
+ DYNAMODB = 23,
+
+ /**
+ * @generated from enum value: DATABRICKS = 24;
+ */
+ DATABRICKS = 24,
+
+ /**
+ * @generated from enum value: COCKROACHDB = 25;
+ */
+ COCKROACHDB = 25,
+
+ /**
+ * @generated from enum value: COSMOSDB = 26;
+ */
+ COSMOSDB = 26,
+
+ /**
+ * @generated from enum value: TRINO = 27;
+ */
+ TRINO = 27,
+
+ /**
+ * @generated from enum value: CASSANDRA = 28;
+ */
+ CASSANDRA = 28,
+}
+
+/**
+ * Describes the enum bytebase.v1.Engine.
+ */
+export declare const EngineSchema: GenEnum<Engine>;
+
+/**
+ * @generated from enum bytebase.v1.VCSType
+ */
+export enum VCSType {
+ /**
+ * @generated from enum value: VCS_TYPE_UNSPECIFIED = 0;
+ */
+ VCS_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: GITHUB = 1;
+ */
+ GITHUB = 1,
+
+ /**
+ * @generated from enum value: GITLAB = 2;
+ */
+ GITLAB = 2,
+
+ /**
+ * @generated from enum value: BITBUCKET = 3;
+ */
+ BITBUCKET = 3,
+
+ /**
+ * @generated from enum value: AZURE_DEVOPS = 4;
+ */
+ AZURE_DEVOPS = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.VCSType.
+ */
+export declare const VCSTypeSchema: GenEnum<VCSType>;
+
+/**
+ * @generated from enum bytebase.v1.ExportFormat
+ */
+export enum ExportFormat {
+ /**
+ * @generated from enum value: FORMAT_UNSPECIFIED = 0;
+ */
+ FORMAT_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: CSV = 1;
+ */
+ CSV = 1,
+
+ /**
+ * @generated from enum value: JSON = 2;
+ */
+ JSON = 2,
+
+ /**
+ * @generated from enum value: SQL = 3;
+ */
+ SQL = 3,
+
+ /**
+ * @generated from enum value: XLSX = 4;
+ */
+ XLSX = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.ExportFormat.
+ */
+export declare const ExportFormatSchema: GenEnum<ExportFormat>;
+
diff --git a/frontend/src/types/proto-es/v1/common_pb.js b/frontend/src/types/proto-es/v1/common_pb.js
new file mode 100644
index 0000000000..509ac81740
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/common_pb.js
@@ -0,0 +1,74 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/common.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+
+/**
+ * Describes the file v1/common.proto.
+ */
+export const file_v1_common = /*@__PURE__*/
+ fileDesc("Cg92MS9jb21tb24ucHJvdG8SC2J5dGViYXNlLnYxIigKCFBvc2l0aW9uEgwKBGxpbmUYASABKAUSDgoGY29sdW1uGAIgASgFIiMKBVJhbmdlEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBSo3CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgoKBkFDVElWRRABEgsKB0RFTEVURUQQAiqeAwoGRW5naW5lEhYKEkVOR0lORV9VTlNQRUNJRklFRBAAEg4KCkNMSUNLSE9VU0UQARIJCgVNWVNRTBACEgwKCFBPU1RHUkVTEAMSDQoJU05PV0ZMQUtFEAQSCgoGU1FMSVRFEAUSCAoEVElEQhAGEgsKB01PTkdPREIQBxIJCgVSRURJUxAIEgoKBk9SQUNMRRAJEgsKB1NQQU5ORVIQChIJCgVNU1NRTBALEgwKCFJFRFNISUZUEAwSCwoHTUFSSUFEQhANEg0KCU9DRUFOQkFTRRAOEgYKAkRNEA8SDgoKUklTSU5HV0FWRRAQEhQKEE9DRUFOQkFTRV9PUkFDTEUQERINCglTVEFSUk9DS1MQEhIJCgVET1JJUxATEggKBEhJVkUQFBIRCg1FTEFTVElDU0VBUkNIEBUSDAoIQklHUVVFUlkQFhIMCghEWU5BTU9EQhAXEg4KCkRBVEFCUklDS1MQGBIPCgtDT0NLUk9BQ0hEQhAZEgwKCENPU01PU0RCEBoSCQoFVFJJTk8QGxINCglDQVNTQU5EUkEQHCpcCgdWQ1NUeXBlEhgKFFZDU19UWVBFX1VOU1BFQ0lGSUVEEAASCgoGR0lUSFVCEAESCgoGR0lUTEFCEAISDQoJQklUQlVDS0VUEAMSEAoMQVpVUkVfREVWT1BTEAQqTAoMRXhwb3J0Rm9ybWF0EhYKEkZPUk1BVF9VTlNQRUNJRklFRBAAEgcKA0NTVhABEggKBEpTT04QAhIHCgNTUUwQAxIICgRYTFNYEARCNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw");
+
+/**
+ * Describes the message bytebase.v1.Position.
+ * Use `create(PositionSchema)` to create a new message.
+ */
+export const PositionSchema = /*@__PURE__*/
+ messageDesc(file_v1_common, 0);
+
+/**
+ * Describes the message bytebase.v1.Range.
+ * Use `create(RangeSchema)` to create a new message.
+ */
+export const RangeSchema = /*@__PURE__*/
+ messageDesc(file_v1_common, 1);
+
+/**
+ * Describes the enum bytebase.v1.State.
+ */
+export const StateSchema = /*@__PURE__*/
+ enumDesc(file_v1_common, 0);
+
+/**
+ * @generated from enum bytebase.v1.State
+ */
+export const State = /*@__PURE__*/
+ tsEnum(StateSchema);
+
+/**
+ * Describes the enum bytebase.v1.Engine.
+ */
+export const EngineSchema = /*@__PURE__*/
+ enumDesc(file_v1_common, 1);
+
+/**
+ * @generated from enum bytebase.v1.Engine
+ */
+export const Engine = /*@__PURE__*/
+ tsEnum(EngineSchema);
+
+/**
+ * Describes the enum bytebase.v1.VCSType.
+ */
+export const VCSTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_common, 2);
+
+/**
+ * @generated from enum bytebase.v1.VCSType
+ */
+export const VCSType = /*@__PURE__*/
+ tsEnum(VCSTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.ExportFormat.
+ */
+export const ExportFormatSchema = /*@__PURE__*/
+ enumDesc(file_v1_common, 3);
+
+/**
+ * @generated from enum bytebase.v1.ExportFormat
+ */
+export const ExportFormat = /*@__PURE__*/
+ tsEnum(ExportFormatSchema);
+
diff --git a/frontend/src/types/proto-es/v1/database_catalog_service_pb.d.ts b/frontend/src/types/proto-es/v1/database_catalog_service_pb.d.ts
new file mode 100644
index 0000000000..b28a5c32aa
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/database_catalog_service_pb.d.ts
@@ -0,0 +1,321 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/database_catalog_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+
+/**
+ * Describes the file v1/database_catalog_service.proto.
+ */
+export declare const file_v1_database_catalog_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetDatabaseCatalogRequest
+ */
+export declare type GetDatabaseCatalogRequest = Message<"bytebase.v1.GetDatabaseCatalogRequest"> & {
+ /**
+ * The name of the database catalog to retrieve.
+ * Format: instances/{instance}/databases/{database}/catalog
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseCatalogRequest.
+ * Use `create(GetDatabaseCatalogRequestSchema)` to create a new message.
+ */
+export declare const GetDatabaseCatalogRequestSchema: GenMessage<GetDatabaseCatalogRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateDatabaseCatalogRequest
+ */
+export declare type UpdateDatabaseCatalogRequest = Message<"bytebase.v1.UpdateDatabaseCatalogRequest"> & {
+ /**
+ * The database catalog to update.
+ *
+ * The catalog's `name` field is used to identify the database catalog to update.
+ * Format: instances/{instance}/databases/{database}/catalog
+ *
+ * @generated from field: bytebase.v1.DatabaseCatalog catalog = 1;
+ */
+ catalog?: DatabaseCatalog;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateDatabaseCatalogRequest.
+ * Use `create(UpdateDatabaseCatalogRequestSchema)` to create a new message.
+ */
+export declare const UpdateDatabaseCatalogRequestSchema: GenMessage<UpdateDatabaseCatalogRequest>;
+
+/**
+ * @generated from message bytebase.v1.DatabaseCatalog
+ */
+export declare type DatabaseCatalog = Message<"bytebase.v1.DatabaseCatalog"> & {
+ /**
+ * The name of the database catalog.
+ * Format: instances/{instance}/databases/{database}/catalog
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.SchemaCatalog schemas = 2;
+ */
+ schemas: SchemaCatalog[];
+};
+
+/**
+ * Describes the message bytebase.v1.DatabaseCatalog.
+ * Use `create(DatabaseCatalogSchema)` to create a new message.
+ */
+export declare const DatabaseCatalogSchema: GenMessage<DatabaseCatalog>;
+
+/**
+ * @generated from message bytebase.v1.SchemaCatalog
+ */
+export declare type SchemaCatalog = Message<"bytebase.v1.SchemaCatalog"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.TableCatalog tables = 2;
+ */
+ tables: TableCatalog[];
+};
+
+/**
+ * Describes the message bytebase.v1.SchemaCatalog.
+ * Use `create(SchemaCatalogSchema)` to create a new message.
+ */
+export declare const SchemaCatalogSchema: GenMessage<SchemaCatalog>;
+
+/**
+ * @generated from message bytebase.v1.TableCatalog
+ */
+export declare type TableCatalog = Message<"bytebase.v1.TableCatalog"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from oneof bytebase.v1.TableCatalog.kind
+ */
+ kind: {
+ /**
+ * @generated from field: bytebase.v1.TableCatalog.Columns columns = 2;
+ */
+ value: TableCatalog_Columns;
+ case: "columns";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.ObjectSchema object_schema = 3;
+ */
+ value: ObjectSchema;
+ case: "objectSchema";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * @generated from field: string classification = 4;
+ */
+ classification: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TableCatalog.
+ * Use `create(TableCatalogSchema)` to create a new message.
+ */
+export declare const TableCatalogSchema: GenMessage<TableCatalog>;
+
+/**
+ * @generated from message bytebase.v1.TableCatalog.Columns
+ */
+export declare type TableCatalog_Columns = Message<"bytebase.v1.TableCatalog.Columns"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.ColumnCatalog columns = 1;
+ */
+ columns: ColumnCatalog[];
+};
+
+/**
+ * Describes the message bytebase.v1.TableCatalog.Columns.
+ * Use `create(TableCatalog_ColumnsSchema)` to create a new message.
+ */
+export declare const TableCatalog_ColumnsSchema: GenMessage<TableCatalog_Columns>;
+
+/**
+ * @generated from message bytebase.v1.ColumnCatalog
+ */
+export declare type ColumnCatalog = Message<"bytebase.v1.ColumnCatalog"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string semantic_type = 2;
+ */
+ semanticType: string;
+
+ /**
+ * The user labels for a column.
+ *
+ * @generated from field: map<string, string> labels = 3;
+ */
+ labels: { [key: string]: string };
+
+ /**
+ * @generated from field: string classification = 4;
+ */
+ classification: string;
+
+ /**
+ * @generated from field: optional bytebase.v1.ObjectSchema object_schema = 5;
+ */
+ objectSchema?: ObjectSchema;
+};
+
+/**
+ * Describes the message bytebase.v1.ColumnCatalog.
+ * Use `create(ColumnCatalogSchema)` to create a new message.
+ */
+export declare const ColumnCatalogSchema: GenMessage<ColumnCatalog>;
+
+/**
+ * @generated from message bytebase.v1.ObjectSchema
+ */
+export declare type ObjectSchema = Message<"bytebase.v1.ObjectSchema"> & {
+ /**
+ * @generated from field: bytebase.v1.ObjectSchema.Type type = 1;
+ */
+ type: ObjectSchema_Type;
+
+ /**
+ * @generated from oneof bytebase.v1.ObjectSchema.kind
+ */
+ kind: {
+ /**
+ * @generated from field: bytebase.v1.ObjectSchema.StructKind struct_kind = 2;
+ */
+ value: ObjectSchema_StructKind;
+ case: "structKind";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.ObjectSchema.ArrayKind array_kind = 3;
+ */
+ value: ObjectSchema_ArrayKind;
+ case: "arrayKind";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * @generated from field: string semantic_type = 4;
+ */
+ semanticType: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ObjectSchema.
+ * Use `create(ObjectSchemaSchema)` to create a new message.
+ */
+export declare const ObjectSchemaSchema: GenMessage<ObjectSchema>;
+
+/**
+ * @generated from message bytebase.v1.ObjectSchema.StructKind
+ */
+export declare type ObjectSchema_StructKind = Message<"bytebase.v1.ObjectSchema.StructKind"> & {
+ /**
+ * @generated from field: map<string, bytebase.v1.ObjectSchema> properties = 1;
+ */
+ properties: { [key: string]: ObjectSchema };
+};
+
+/**
+ * Describes the message bytebase.v1.ObjectSchema.StructKind.
+ * Use `create(ObjectSchema_StructKindSchema)` to create a new message.
+ */
+export declare const ObjectSchema_StructKindSchema: GenMessage<ObjectSchema_StructKind>;
+
+/**
+ * @generated from message bytebase.v1.ObjectSchema.ArrayKind
+ */
+export declare type ObjectSchema_ArrayKind = Message<"bytebase.v1.ObjectSchema.ArrayKind"> & {
+ /**
+ * @generated from field: bytebase.v1.ObjectSchema kind = 1;
+ */
+ kind?: ObjectSchema;
+};
+
+/**
+ * Describes the message bytebase.v1.ObjectSchema.ArrayKind.
+ * Use `create(ObjectSchema_ArrayKindSchema)` to create a new message.
+ */
+export declare const ObjectSchema_ArrayKindSchema: GenMessage<ObjectSchema_ArrayKind>;
+
+/**
+ * @generated from enum bytebase.v1.ObjectSchema.Type
+ */
+export enum ObjectSchema_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: STRING = 1;
+ */
+ STRING = 1,
+
+ /**
+ * @generated from enum value: NUMBER = 2;
+ */
+ NUMBER = 2,
+
+ /**
+ * @generated from enum value: BOOLEAN = 3;
+ */
+ BOOLEAN = 3,
+
+ /**
+ * @generated from enum value: OBJECT = 4;
+ */
+ OBJECT = 4,
+
+ /**
+ * @generated from enum value: ARRAY = 5;
+ */
+ ARRAY = 5,
+}
+
+/**
+ * Describes the enum bytebase.v1.ObjectSchema.Type.
+ */
+export declare const ObjectSchema_TypeSchema: GenEnum<ObjectSchema_Type>;
+
+/**
+ * @generated from service bytebase.v1.DatabaseCatalogService
+ */
+export declare const DatabaseCatalogService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.DatabaseCatalogService.GetDatabaseCatalog
+ */
+ getDatabaseCatalog: {
+ methodKind: "unary";
+ input: typeof GetDatabaseCatalogRequestSchema;
+ output: typeof DatabaseCatalogSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseCatalogService.UpdateDatabaseCatalog
+ */
+ updateDatabaseCatalog: {
+ methodKind: "unary";
+ input: typeof UpdateDatabaseCatalogRequestSchema;
+ output: typeof DatabaseCatalogSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/database_catalog_service_pb.js b/frontend/src/types/proto-es/v1/database_catalog_service_pb.js
new file mode 100644
index 0000000000..4a94c8fcd1
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/database_catalog_service_pb.js
@@ -0,0 +1,105 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/database_catalog_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/database_catalog_service.proto.
+ */
+export const file_v1_database_catalog_service = /*@__PURE__*/
+ fileDesc("CiF2MS9kYXRhYmFzZV9jYXRhbG9nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIlAKGUdldERhdGFiYXNlQ2F0YWxvZ1JlcXVlc3QSMwoEbmFtZRgBIAEoCUIl4kEBAvpBHgocYnl0ZWJhc2UuY29tL0RhdGFiYXNlQ2F0YWxvZyJTChxVcGRhdGVEYXRhYmFzZUNhdGFsb2dSZXF1ZXN0EjMKB2NhdGFsb2cYASABKAsyHC5ieXRlYmFzZS52MS5EYXRhYmFzZUNhdGFsb2dCBOJBAQIiogEKD0RhdGFiYXNlQ2F0YWxvZxIMCgRuYW1lGAEgASgJEisKB3NjaGVtYXMYAiADKAsyGi5ieXRlYmFzZS52MS5TY2hlbWFDYXRhbG9nOlTqQVEKHGJ5dGViYXNlLmNvbS9EYXRhYmFzZUNhdGFsb2cSMWluc3RhbmNlcy97aW5zdGFuY2V9L2RhdGFiYXNlcy97ZGF0YWJhc2V9L2NhdGFsb2ciSAoNU2NoZW1hQ2F0YWxvZxIMCg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ior, file_google_api_resource, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseCatalogRequest.
+ * Use `create(GetDatabaseCatalogRequestSchema)` to create a new message.
+ */
+export const GetDatabaseCatalogRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 0);
+
+/**
+ * Describes the message bytebase.v1.UpdateDatabaseCatalogRequest.
+ * Use `create(UpdateDatabaseCatalogRequestSchema)` to create a new message.
+ */
+export const UpdateDatabaseCatalogRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 1);
+
+/**
+ * Describes the message bytebase.v1.DatabaseCatalog.
+ * Use `create(DatabaseCatalogSchema)` to create a new message.
+ */
+export const DatabaseCatalogSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 2);
+
+/**
+ * Describes the message bytebase.v1.SchemaCatalog.
+ * Use `create(SchemaCatalogSchema)` to create a new message.
+ */
+export const SchemaCatalogSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 3);
+
+/**
+ * Describes the message bytebase.v1.TableCatalog.
+ * Use `create(TableCatalogSchema)` to create a new message.
+ */
+export const TableCatalogSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 4);
+
+/**
+ * Describes the message bytebase.v1.TableCatalog.Columns.
+ * Use `create(TableCatalog_ColumnsSchema)` to create a new message.
+ */
+export const TableCatalog_ColumnsSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 4, 0);
+
+/**
+ * Describes the message bytebase.v1.ColumnCatalog.
+ * Use `create(ColumnCatalogSchema)` to create a new message.
+ */
+export const ColumnCatalogSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 5);
+
+/**
+ * Describes the message bytebase.v1.ObjectSchema.
+ * Use `create(ObjectSchemaSchema)` to create a new message.
+ */
+export const ObjectSchemaSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 6);
+
+/**
+ * Describes the message bytebase.v1.ObjectSchema.StructKind.
+ * Use `create(ObjectSchema_StructKindSchema)` to create a new message.
+ */
+export const ObjectSchema_StructKindSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 6, 0);
+
+/**
+ * Describes the message bytebase.v1.ObjectSchema.ArrayKind.
+ * Use `create(ObjectSchema_ArrayKindSchema)` to create a new message.
+ */
+export const ObjectSchema_ArrayKindSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_catalog_service, 6, 1);
+
+/**
+ * Describes the enum bytebase.v1.ObjectSchema.Type.
+ */
+export const ObjectSchema_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_catalog_service, 6, 0);
+
+/**
+ * @generated from enum bytebase.v1.ObjectSchema.Type
+ */
+export const ObjectSchema_Type = /*@__PURE__*/
+ tsEnum(ObjectSchema_TypeSchema);
+
+/**
+ * @generated from service bytebase.v1.DatabaseCatalogService
+ */
+export const DatabaseCatalogService = /*@__PURE__*/
+ serviceDesc(file_v1_database_catalog_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/database_group_service_pb.d.ts b/frontend/src/types/proto-es/v1/database_group_service_pb.d.ts
new file mode 100644
index 0000000000..8c23054b03
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/database_group_service_pb.d.ts
@@ -0,0 +1,360 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/database_group_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+import type { Expr } from "../google/type/expr_pb";
+
+/**
+ * Describes the file v1/database_group_service.proto.
+ */
+export declare const file_v1_database_group_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.ListDatabaseGroupsRequest
+ */
+export declare type ListDatabaseGroupsRequest = Message<"bytebase.v1.ListDatabaseGroupsRequest"> & {
+ /**
+ * The parent resource whose database groups are to be listed.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * Not used.
+ * The maximum number of database groups to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 50 database groups will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListDatabaseGroups` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListDatabaseGroups` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC.
+ *
+ * @generated from field: bytebase.v1.DatabaseGroupView view = 4;
+ */
+ view: DatabaseGroupView;
+};
+
+/**
+ * Describes the message bytebase.v1.ListDatabaseGroupsRequest.
+ * Use `create(ListDatabaseGroupsRequestSchema)` to create a new message.
+ */
+export declare const ListDatabaseGroupsRequestSchema: GenMessage<ListDatabaseGroupsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListDatabaseGroupsResponse
+ */
+export declare type ListDatabaseGroupsResponse = Message<"bytebase.v1.ListDatabaseGroupsResponse"> & {
+ /**
+ * database_groups is the list of database groups.
+ *
+ * @generated from field: repeated bytebase.v1.DatabaseGroup database_groups = 1;
+ */
+ databaseGroups: DatabaseGroup[];
+
+ /**
+ * Not used. A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListDatabaseGroupsResponse.
+ * Use `create(ListDatabaseGroupsResponseSchema)` to create a new message.
+ */
+export declare const ListDatabaseGroupsResponseSchema: GenMessage<ListDatabaseGroupsResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetDatabaseGroupRequest
+ */
+export declare type GetDatabaseGroupRequest = Message<"bytebase.v1.GetDatabaseGroupRequest"> & {
+ /**
+ * The name of the database group to retrieve.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC.
+ *
+ * @generated from field: bytebase.v1.DatabaseGroupView view = 2;
+ */
+ view: DatabaseGroupView;
+};
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseGroupRequest.
+ * Use `create(GetDatabaseGroupRequestSchema)` to create a new message.
+ */
+export declare const GetDatabaseGroupRequestSchema: GenMessage<GetDatabaseGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.CreateDatabaseGroupRequest
+ */
+export declare type CreateDatabaseGroupRequest = Message<"bytebase.v1.CreateDatabaseGroupRequest"> & {
+ /**
+ * The parent resource where this database group will be created.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The database group to create.
+ *
+ * @generated from field: bytebase.v1.DatabaseGroup database_group = 2;
+ */
+ databaseGroup?: DatabaseGroup;
+
+ /**
+ * The ID to use for the database group, which will become the final component of
+ * the database group's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ *
+ * @generated from field: string database_group_id = 3;
+ */
+ databaseGroupId: string;
+
+ /**
+ * If set, validate the create request and preview the full database group response, but do not actually create it.
+ *
+ * @generated from field: bool validate_only = 4;
+ */
+ validateOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateDatabaseGroupRequest.
+ * Use `create(CreateDatabaseGroupRequestSchema)` to create a new message.
+ */
+export declare const CreateDatabaseGroupRequestSchema: GenMessage<CreateDatabaseGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateDatabaseGroupRequest
+ */
+export declare type UpdateDatabaseGroupRequest = Message<"bytebase.v1.UpdateDatabaseGroupRequest"> & {
+ /**
+ * The database group to update.
+ *
+ * The database group's `name` field is used to identify the database group to update.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ *
+ * @generated from field: bytebase.v1.DatabaseGroup database_group = 1;
+ */
+ databaseGroup?: DatabaseGroup;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateDatabaseGroupRequest.
+ * Use `create(UpdateDatabaseGroupRequestSchema)` to create a new message.
+ */
+export declare const UpdateDatabaseGroupRequestSchema: GenMessage<UpdateDatabaseGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteDatabaseGroupRequest
+ */
+export declare type DeleteDatabaseGroupRequest = Message<"bytebase.v1.DeleteDatabaseGroupRequest"> & {
+ /**
+ * The name of the database group to delete.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteDatabaseGroupRequest.
+ * Use `create(DeleteDatabaseGroupRequestSchema)` to create a new message.
+ */
+export declare const DeleteDatabaseGroupRequestSchema: GenMessage<DeleteDatabaseGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.DatabaseGroup
+ */
+export declare type DatabaseGroup = Message<"bytebase.v1.DatabaseGroup"> & {
+ /**
+ * The name of the database group.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The short name used in actual databases specified by users.
+ *
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * The condition that is associated with this database group.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Support variables:
+ * resource.environment_name: the environment resource id. Support "==", "!=", "in [XX]", "!(in [xx])" operations.
+ * resource.instance_id: the instance resource id. Support "==", "!=", "in [XX]", "!(in [xx])", "contains", "matches", "startsWith", "endsWith" operations.
+ * resource.database_name: the database name. Support "==", "!=", "in [XX]", "!(in [xx])", "contains", "matches", "startsWith", "endsWith" operations.
+ * All variables should join with "&&" condition.
+ *
+ * For example:
+ * resource.environment_name == "test" && resource.database_name.startsWith("sample_")
+ *
+ * @generated from field: google.type.Expr database_expr = 3;
+ */
+ databaseExpr?: Expr;
+
+ /**
+ * The list of databases that match the database group condition.
+ *
+ * @generated from field: repeated bytebase.v1.DatabaseGroup.Database matched_databases = 4;
+ */
+ matchedDatabases: DatabaseGroup_Database[];
+
+ /**
+ * The list of databases that match the database group condition.
+ *
+ * @generated from field: repeated bytebase.v1.DatabaseGroup.Database unmatched_databases = 5;
+ */
+ unmatchedDatabases: DatabaseGroup_Database[];
+};
+
+/**
+ * Describes the message bytebase.v1.DatabaseGroup.
+ * Use `create(DatabaseGroupSchema)` to create a new message.
+ */
+export declare const DatabaseGroupSchema: GenMessage<DatabaseGroup>;
+
+/**
+ * @generated from message bytebase.v1.DatabaseGroup.Database
+ */
+export declare type DatabaseGroup_Database = Message<"bytebase.v1.DatabaseGroup.Database"> & {
+ /**
+ * The resource name of the database.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DatabaseGroup.Database.
+ * Use `create(DatabaseGroup_DatabaseSchema)` to create a new message.
+ */
+export declare const DatabaseGroup_DatabaseSchema: GenMessage<DatabaseGroup_Database>;
+
+/**
+ * @generated from enum bytebase.v1.DatabaseGroupView
+ */
+export enum DatabaseGroupView {
+ /**
+ * The default / unset value.
+ * The API will default to the BASIC view.
+ *
+ * @generated from enum value: DATABASE_GROUP_VIEW_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * Include basic information about the database group, but exclude the list of matched databases and unmatched databases.
+ *
+ * @generated from enum value: DATABASE_GROUP_VIEW_BASIC = 1;
+ */
+ BASIC = 1,
+
+ /**
+ * Include everything.
+ *
+ * @generated from enum value: DATABASE_GROUP_VIEW_FULL = 2;
+ */
+ FULL = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.DatabaseGroupView.
+ */
+export declare const DatabaseGroupViewSchema: GenEnum<DatabaseGroupView>;
+
+/**
+ * @generated from service bytebase.v1.DatabaseGroupService
+ */
+export declare const DatabaseGroupService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.DatabaseGroupService.ListDatabaseGroups
+ */
+ listDatabaseGroups: {
+ methodKind: "unary";
+ input: typeof ListDatabaseGroupsRequestSchema;
+ output: typeof ListDatabaseGroupsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseGroupService.GetDatabaseGroup
+ */
+ getDatabaseGroup: {
+ methodKind: "unary";
+ input: typeof GetDatabaseGroupRequestSchema;
+ output: typeof DatabaseGroupSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseGroupService.CreateDatabaseGroup
+ */
+ createDatabaseGroup: {
+ methodKind: "unary";
+ input: typeof CreateDatabaseGroupRequestSchema;
+ output: typeof DatabaseGroupSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseGroupService.UpdateDatabaseGroup
+ */
+ updateDatabaseGroup: {
+ methodKind: "unary";
+ input: typeof UpdateDatabaseGroupRequestSchema;
+ output: typeof DatabaseGroupSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseGroupService.DeleteDatabaseGroup
+ */
+ deleteDatabaseGroup: {
+ methodKind: "unary";
+ input: typeof DeleteDatabaseGroupRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/database_group_service_pb.js b/frontend/src/types/proto-es/v1/database_group_service_pb.js
new file mode 100644
index 0000000000..888b1add4c
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/database_group_service_pb.js
@@ -0,0 +1,93 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/database_group_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_google_type_expr } from "../google/type/expr_pb";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/database_group_service.proto.
+ */
+export const file_v1_database_group_service = /*@__PURE__*/
+ fileDesc("Ch92MS9kYXRhYmFzZV9ncm91cF9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSKfAQoZTGlzdERhdGFiYXNlR3JvdXBzUmVxdWVzdBItCgZwYXJlbnQYASABKAlCHeJBAQL6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EhEKCXBhZ2Vfc2l6ZRgCIAEoBRISCgpwYWdlX3Rva2VuGAMgASgJEiwKBHZpZXcYBCABKA4yHi5ieXRlYmFzZS52MS5EYXRhYmFzZUdyb3VwVmlldyJqChpMaXN0RGF0YWJhc2VHcm91cHNSZXNwb25zZRIzCg9kYXRhYmFzZV9ncm91cHMYASADKAsyGi5ieXRlYmFzZS52MS5EYXRhYmFzZUdyb3VwEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJ6ChdHZXREYXRhYmFzZUdyb3VwUmVxdWVzdBIxCgRuYW1lGAEgASgJQiPiQQEC+kEcChpieXRlYmFzZS5jb20vRGF0YWJhc2VHcm91cBIsCgR2aWV3GAIgASgOMh4uYnl0ZWJhc2UudjEuRGF0YWJhc2VHcm91cFZpZXcitwEKGkNyZWF0ZURhdGFiYXNlR3JvdXBSZXF1ZXN0Ei0KBnBhcmVudBgBIAEoCUId4kEBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSOAoOZGF0YWJhc2VfZ3JvdXAYAiABKAsyGi5ieXRlYmFzZS52MS5EYXRhYmFzZUdyb3VwQgTiQQECEhkKEWRhdGFiYXNlX2dy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lc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiU9pBBG5hbWWK6jASYmIucHJvamVjdHMudXBkYXRlkOowAZjqMAGC0+STAigqJi92MS97bmFtZT1wcm9qZWN0cy8qL2RhdGFiYXNlR3JvdXBzLyp9QjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_type_expr, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.ListDatabaseGroupsRequest.
+ * Use `create(ListDatabaseGroupsRequestSchema)` to create a new message.
+ */
+export const ListDatabaseGroupsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListDatabaseGroupsResponse.
+ * Use `create(ListDatabaseGroupsResponseSchema)` to create a new message.
+ */
+export const ListDatabaseGroupsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 1);
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseGroupRequest.
+ * Use `create(GetDatabaseGroupRequestSchema)` to create a new message.
+ */
+export const GetDatabaseGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 2);
+
+/**
+ * Describes the message bytebase.v1.CreateDatabaseGroupRequest.
+ * Use `create(CreateDatabaseGroupRequestSchema)` to create a new message.
+ */
+export const CreateDatabaseGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateDatabaseGroupRequest.
+ * Use `create(UpdateDatabaseGroupRequestSchema)` to create a new message.
+ */
+export const UpdateDatabaseGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteDatabaseGroupRequest.
+ * Use `create(DeleteDatabaseGroupRequestSchema)` to create a new message.
+ */
+export const DeleteDatabaseGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 5);
+
+/**
+ * Describes the message bytebase.v1.DatabaseGroup.
+ * Use `create(DatabaseGroupSchema)` to create a new message.
+ */
+export const DatabaseGroupSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 6);
+
+/**
+ * Describes the message bytebase.v1.DatabaseGroup.Database.
+ * Use `create(DatabaseGroup_DatabaseSchema)` to create a new message.
+ */
+export const DatabaseGroup_DatabaseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_group_service, 6, 0);
+
+/**
+ * Describes the enum bytebase.v1.DatabaseGroupView.
+ */
+export const DatabaseGroupViewSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_group_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.DatabaseGroupView
+ */
+export const DatabaseGroupView = /*@__PURE__*/
+ tsEnum(DatabaseGroupViewSchema);
+
+/**
+ * @generated from service bytebase.v1.DatabaseGroupService
+ */
+export const DatabaseGroupService = /*@__PURE__*/
+ serviceDesc(file_v1_database_group_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/database_service_pb.d.ts b/frontend/src/types/proto-es/v1/database_service_pb.d.ts
new file mode 100644
index 0000000000..8be8d7e6ac
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/database_service_pb.d.ts
@@ -0,0 +1,3322 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/database_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { Range, State } from "./common_pb";
+import type { InstanceResource } from "./instance_service_pb";
+
+/**
+ * Describes the file v1/database_service.proto.
+ */
+export declare const file_v1_database_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetDatabaseRequest
+ */
+export declare type GetDatabaseRequest = Message<"bytebase.v1.GetDatabaseRequest"> & {
+ /**
+ * The name of the database to retrieve.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseRequest.
+ * Use `create(GetDatabaseRequestSchema)` to create a new message.
+ */
+export declare const GetDatabaseRequestSchema: GenMessage<GetDatabaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetDatabasesRequest
+ */
+export declare type BatchGetDatabasesRequest = Message<"bytebase.v1.BatchGetDatabasesRequest"> & {
+ /**
+ * The parent resource shared by all databases being retrieved.
+ * - projects/{project}: batch get databases in a project;
+ * - instances/{instances}: batch get databases in a instance;
+ * Use "-" as wildcard to batch get databases across parent.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The list of database names to retrieve.
+ *
+ * @generated from field: repeated string names = 2;
+ */
+ names: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetDatabasesRequest.
+ * Use `create(BatchGetDatabasesRequestSchema)` to create a new message.
+ */
+export declare const BatchGetDatabasesRequestSchema: GenMessage<BatchGetDatabasesRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetDatabasesResponse
+ */
+export declare type BatchGetDatabasesResponse = Message<"bytebase.v1.BatchGetDatabasesResponse"> & {
+ /**
+ * The databases from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Database databases = 1;
+ */
+ databases: Database[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetDatabasesResponse.
+ * Use `create(BatchGetDatabasesResponseSchema)` to create a new message.
+ */
+export declare const BatchGetDatabasesResponseSchema: GenMessage<BatchGetDatabasesResponse>;
+
+/**
+ * @generated from message bytebase.v1.ListDatabasesRequest
+ */
+export declare type ListDatabasesRequest = Message<"bytebase.v1.ListDatabasesRequest"> & {
+ /**
+ * - projects/{project}: list databases in a project, require "bb.projects.get" permission.
+ * - workspaces/-: list databases in the workspace, require "bb.databases.list" permission.
+ * - instances/{instances}: list databases in a instance, require "bb.instances.get" permission
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of databases to return. The service may return fewer
+ * than this value.
+ * If unspecified, at most 10 databases will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListDatabases` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListDatabases` must
+ * match the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * Filter is used to filter databases returned in the list.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filter:
+ * - environment: the environment full name in "environments/{id}" format, support "==" operator.
+ * - name: the database name, support ".matches()" operator.
+ * - project: the project full name in "projects/{id}" format, support "==" operator.
+ * - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ * - engine: the database engine, check Engine enum for values. Support "==", "in [xx]", "!(in [xx])" operator.
+ * - label: the database label in "{key}:{value1},{value2}" format. Support "==" operator.
+ * - exclude_unassigned: should be "true" or "false", will not show unassigned databases if it's true, support "==" operator.
+ * - drifted: should be "true" or "false", show drifted databases if it's true, support "==" operator.
+ *
+ * For example:
+ * environment == "environments/{environment resource id}"
+ * project == "projects/{project resource id}"
+ * instance == "instances/{instance resource id}"
+ * name.matches("database name")
+ * engine == "MYSQL"
+ * engine in ["MYSQL", "POSTGRES"]
+ * !(engine in ["MYSQL", "POSTGRES"])
+ * label == "region:asia"
+ * label == "tenant:asia,europe"
+ * label == "region:asia" && label == "tenant:bytebase"
+ * exclude_unassigned == true
+ * drifted == true
+ * You can combine filter conditions like:
+ * environment == "environments/prod" && name.matches("employee")
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+
+ /**
+ * Show deleted database if specified.
+ *
+ * @generated from field: bool show_deleted = 5;
+ */
+ showDeleted: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ListDatabasesRequest.
+ * Use `create(ListDatabasesRequestSchema)` to create a new message.
+ */
+export declare const ListDatabasesRequestSchema: GenMessage<ListDatabasesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListDatabasesResponse
+ */
+export declare type ListDatabasesResponse = Message<"bytebase.v1.ListDatabasesResponse"> & {
+ /**
+ * The databases from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Database databases = 1;
+ */
+ databases: Database[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListDatabasesResponse.
+ * Use `create(ListDatabasesResponseSchema)` to create a new message.
+ */
+export declare const ListDatabasesResponseSchema: GenMessage<ListDatabasesResponse>;
+
+/**
+ * @generated from message bytebase.v1.UpdateDatabaseRequest
+ */
+export declare type UpdateDatabaseRequest = Message<"bytebase.v1.UpdateDatabaseRequest"> & {
+ /**
+ * The database to update.
+ *
+ * The database's `name` field is used to identify the database to update.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: bytebase.v1.Database database = 1;
+ */
+ database?: Database;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateDatabaseRequest.
+ * Use `create(UpdateDatabaseRequestSchema)` to create a new message.
+ */
+export declare const UpdateDatabaseRequestSchema: GenMessage<UpdateDatabaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchUpdateDatabasesRequest
+ */
+export declare type BatchUpdateDatabasesRequest = Message<"bytebase.v1.BatchUpdateDatabasesRequest"> & {
+ /**
+ * The parent resource shared by all databases being updated.
+ * Format: instances/{instance}
+ * If the operation spans parents, a dash (-) may be accepted as a wildcard.
+ * We only support updating the project of databases for now.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The request message specifying the resources to update.
+ * A maximum of 1000 databases can be modified in a batch.
+ *
+ * @generated from field: repeated bytebase.v1.UpdateDatabaseRequest requests = 2;
+ */
+ requests: UpdateDatabaseRequest[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateDatabasesRequest.
+ * Use `create(BatchUpdateDatabasesRequestSchema)` to create a new message.
+ */
+export declare const BatchUpdateDatabasesRequestSchema: GenMessage<BatchUpdateDatabasesRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchUpdateDatabasesResponse
+ */
+export declare type BatchUpdateDatabasesResponse = Message<"bytebase.v1.BatchUpdateDatabasesResponse"> & {
+ /**
+ * Databases updated.
+ *
+ * @generated from field: repeated bytebase.v1.Database databases = 1;
+ */
+ databases: Database[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateDatabasesResponse.
+ * Use `create(BatchUpdateDatabasesResponseSchema)` to create a new message.
+ */
+export declare const BatchUpdateDatabasesResponseSchema: GenMessage<BatchUpdateDatabasesResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchSyncDatabasesRequest
+ */
+export declare type BatchSyncDatabasesRequest = Message<"bytebase.v1.BatchSyncDatabasesRequest"> & {
+ /**
+ * The parent resource shared by all databases being updated.
+ * Format: instances/{instance}
+ * If the operation spans parents, a dash (-) may be accepted as a wildcard.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The list of database names to sync.
+ *
+ * @generated from field: repeated string names = 2;
+ */
+ names: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchSyncDatabasesRequest.
+ * Use `create(BatchSyncDatabasesRequestSchema)` to create a new message.
+ */
+export declare const BatchSyncDatabasesRequestSchema: GenMessage<BatchSyncDatabasesRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchSyncDatabasesResponse
+ */
+export declare type BatchSyncDatabasesResponse = Message<"bytebase.v1.BatchSyncDatabasesResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchSyncDatabasesResponse.
+ * Use `create(BatchSyncDatabasesResponseSchema)` to create a new message.
+ */
+export declare const BatchSyncDatabasesResponseSchema: GenMessage<BatchSyncDatabasesResponse>;
+
+/**
+ * @generated from message bytebase.v1.SyncDatabaseRequest
+ */
+export declare type SyncDatabaseRequest = Message<"bytebase.v1.SyncDatabaseRequest"> & {
+ /**
+ * The name of the database to sync.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SyncDatabaseRequest.
+ * Use `create(SyncDatabaseRequestSchema)` to create a new message.
+ */
+export declare const SyncDatabaseRequestSchema: GenMessage<SyncDatabaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.SyncDatabaseResponse
+ */
+export declare type SyncDatabaseResponse = Message<"bytebase.v1.SyncDatabaseResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.SyncDatabaseResponse.
+ * Use `create(SyncDatabaseResponseSchema)` to create a new message.
+ */
+export declare const SyncDatabaseResponseSchema: GenMessage<SyncDatabaseResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetDatabaseMetadataRequest
+ */
+export declare type GetDatabaseMetadataRequest = Message<"bytebase.v1.GetDatabaseMetadataRequest"> & {
+ /**
+ * The name of the database to retrieve metadata.
+ * Format: instances/{instance}/databases/{database}/metadata
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Filter is used to filter databases returned in the list.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filter:
+ * - schema: the schema name, support "==" operator.
+ * - table: the table name, support "==" operator.
+ *
+ * For example:
+ * schema == "schema-a"
+ * table == "table-a"
+ * schema == "schema-a" && table == "table-a"
+ * The filter used for a specific schema object such as
+ * "schemas/schema-a/tables/table-a".
+ * The column masking level will only be returned when a table filter is used.
+ *
+ * @generated from field: string filter = 2;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseMetadataRequest.
+ * Use `create(GetDatabaseMetadataRequestSchema)` to create a new message.
+ */
+export declare const GetDatabaseMetadataRequestSchema: GenMessage<GetDatabaseMetadataRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetDatabaseSchemaRequest
+ */
+export declare type GetDatabaseSchemaRequest = Message<"bytebase.v1.GetDatabaseSchemaRequest"> & {
+ /**
+ * The name of the database to retrieve schema.
+ * Format: instances/{instance}/databases/{database}/schema
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Format the schema dump into SDL format.
+ *
+ * @generated from field: bool sdl_format = 2;
+ */
+ sdlFormat: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseSchemaRequest.
+ * Use `create(GetDatabaseSchemaRequestSchema)` to create a new message.
+ */
+export declare const GetDatabaseSchemaRequestSchema: GenMessage<GetDatabaseSchemaRequest>;
+
+/**
+ * @generated from message bytebase.v1.DiffSchemaRequest
+ */
+export declare type DiffSchemaRequest = Message<"bytebase.v1.DiffSchemaRequest"> & {
+ /**
+ * The name of the database or changelog.
+ * Format:
+ * database: instances/{instance}/databases/{database}
+ * changelog: instances/{instance}/databases/{database}/changelogs/{changelog}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from oneof bytebase.v1.DiffSchemaRequest.target
+ */
+ target: {
+ /**
+ * The target schema.
+ *
+ * @generated from field: string schema = 2;
+ */
+ value: string;
+ case: "schema";
+ } | {
+ /**
+ * The resource name of the changelog
+ * Format:
+ * instances/{instance}/databases/{database}/changelogs/{changelog}
+ *
+ * @generated from field: string changelog = 3;
+ */
+ value: string;
+ case: "changelog";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * Format the schema dump into SDL format.
+ *
+ * @generated from field: bool sdl_format = 4;
+ */
+ sdlFormat: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DiffSchemaRequest.
+ * Use `create(DiffSchemaRequestSchema)` to create a new message.
+ */
+export declare const DiffSchemaRequestSchema: GenMessage<DiffSchemaRequest>;
+
+/**
+ * @generated from message bytebase.v1.DiffSchemaResponse
+ */
+export declare type DiffSchemaResponse = Message<"bytebase.v1.DiffSchemaResponse"> & {
+ /**
+ * @generated from field: string diff = 1;
+ */
+ diff: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DiffSchemaResponse.
+ * Use `create(DiffSchemaResponseSchema)` to create a new message.
+ */
+export declare const DiffSchemaResponseSchema: GenMessage<DiffSchemaResponse>;
+
+/**
+ * @generated from message bytebase.v1.Database
+ */
+export declare type Database = Message<"bytebase.v1.Database"> & {
+ /**
+ * The name of the database.
+ * Format: instances/{instance}/databases/{database}
+ * {database} is the database name in the instance.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The existence of a database.
+ *
+ * @generated from field: bytebase.v1.State state = 3;
+ */
+ state: State;
+
+ /**
+ * The latest synchronization time.
+ *
+ * @generated from field: google.protobuf.Timestamp successful_sync_time = 4;
+ */
+ successfulSyncTime?: Timestamp;
+
+ /**
+ * The project for a database.
+ * Format: projects/{project}
+ *
+ * @generated from field: string project = 5;
+ */
+ project: string;
+
+ /**
+ * The version of database schema.
+ *
+ * @generated from field: string schema_version = 6;
+ */
+ schemaVersion: string;
+
+ /**
+ * The environment resource.
+ * Format: environments/prod where prod is the environment resource ID.
+ *
+ * @generated from field: string environment = 7;
+ */
+ environment: string;
+
+ /**
+ * The effective environment based on environment tag above and environment
+ * tag on the instance. Inheritance follows
+ * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+ *
+ * @generated from field: string effective_environment = 8;
+ */
+ effectiveEnvironment: string;
+
+ /**
+ * Labels will be used for deployment and policy control.
+ *
+ * @generated from field: map<string, string> labels = 9;
+ */
+ labels: { [key: string]: string };
+
+ /**
+ * The instance resource.
+ *
+ * @generated from field: bytebase.v1.InstanceResource instance_resource = 10;
+ */
+ instanceResource?: InstanceResource;
+
+ /**
+ * The database is available for DML prior backup.
+ *
+ * @generated from field: bool backup_available = 11;
+ */
+ backupAvailable: boolean;
+
+ /**
+ * The schema is drifted from the source of truth.
+ *
+ * @generated from field: bool drifted = 12;
+ */
+ drifted: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.Database.
+ * Use `create(DatabaseSchema$)` to create a new message.
+ */
+export declare const DatabaseSchema$: GenMessage<Database>;
+
+/**
+ * DatabaseMetadata is the metadata for databases.
+ *
+ * @generated from message bytebase.v1.DatabaseMetadata
+ */
+export declare type DatabaseMetadata = Message<"bytebase.v1.DatabaseMetadata"> & {
+ /**
+ * The database metadata name.
+ *
+ * Format: instances/{instance}/databases/{database}/metadata
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The schemas is the list of schemas in a database.
+ *
+ * @generated from field: repeated bytebase.v1.SchemaMetadata schemas = 2;
+ */
+ schemas: SchemaMetadata[];
+
+ /**
+ * The character_set is the character set of a database.
+ *
+ * @generated from field: string character_set = 3;
+ */
+ characterSet: string;
+
+ /**
+ * The collation is the collation of a database.
+ *
+ * @generated from field: string collation = 4;
+ */
+ collation: string;
+
+ /**
+ * The extensions is the list of extensions in a database.
+ *
+ * @generated from field: repeated bytebase.v1.ExtensionMetadata extensions = 5;
+ */
+ extensions: ExtensionMetadata[];
+
+ /**
+ * @generated from field: string owner = 7;
+ */
+ owner: string;
+
+ /**
+ * The search_path is the search path of a PostgreSQL database.
+ *
+ * @generated from field: string search_path = 8;
+ */
+ searchPath: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DatabaseMetadata.
+ * Use `create(DatabaseMetadataSchema)` to create a new message.
+ */
+export declare const DatabaseMetadataSchema: GenMessage<DatabaseMetadata>;
+
+/**
+ * SchemaMetadata is the metadata for schemas.
+ * This is the concept of schema in Postgres, but it's a no-op for MySQL.
+ *
+ * @generated from message bytebase.v1.SchemaMetadata
+ */
+export declare type SchemaMetadata = Message<"bytebase.v1.SchemaMetadata"> & {
+ /**
+ * The name is the schema name.
+ * It is an empty string for databases without such concept such as MySQL.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The tables is the list of tables in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.TableMetadata tables = 2;
+ */
+ tables: TableMetadata[];
+
+ /**
+ * The external_tables is the list of external tables in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.ExternalTableMetadata external_tables = 3;
+ */
+ externalTables: ExternalTableMetadata[];
+
+ /**
+ * The views is the list of views in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.ViewMetadata views = 4;
+ */
+ views: ViewMetadata[];
+
+ /**
+ * The functions is the list of functions in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.FunctionMetadata functions = 5;
+ */
+ functions: FunctionMetadata[];
+
+ /**
+ * The procedures is the list of procedures in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.ProcedureMetadata procedures = 6;
+ */
+ procedures: ProcedureMetadata[];
+
+ /**
+ * The streams is the list of streams in a schema, currently, only used for
+ * Snowflake.
+ *
+ * @generated from field: repeated bytebase.v1.StreamMetadata streams = 7;
+ */
+ streams: StreamMetadata[];
+
+ /**
+ * The routines is the list of routines in a schema, currently, only used for
+ * Snowflake.
+ *
+ * @generated from field: repeated bytebase.v1.TaskMetadata tasks = 8;
+ */
+ tasks: TaskMetadata[];
+
+ /**
+ * The materialized_views is the list of materialized views in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.MaterializedViewMetadata materialized_views = 9;
+ */
+ materializedViews: MaterializedViewMetadata[];
+
+ /**
+ * The packages is the list of packages in a schema.
+ *
+ * @generated from field: repeated bytebase.v1.PackageMetadata packages = 10;
+ */
+ packages: PackageMetadata[];
+
+ /**
+ * @generated from field: string owner = 11;
+ */
+ owner: string;
+
+ /**
+ * The sequences is the list of sequences in a schema, sorted by name.
+ *
+ * @generated from field: repeated bytebase.v1.SequenceMetadata sequences = 13;
+ */
+ sequences: SequenceMetadata[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.EventMetadata events = 14;
+ */
+ events: EventMetadata[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.EnumTypeMetadata enum_types = 15;
+ */
+ enumTypes: EnumTypeMetadata[];
+
+ /**
+ * @generated from field: bool skip_dump = 16;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.SchemaMetadata.
+ * Use `create(SchemaMetadataSchema)` to create a new message.
+ */
+export declare const SchemaMetadataSchema: GenMessage<SchemaMetadata>;
+
+/**
+ * @generated from message bytebase.v1.EnumTypeMetadata
+ */
+export declare type EnumTypeMetadata = Message<"bytebase.v1.EnumTypeMetadata"> & {
+ /**
+ * The name of a type.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The enum values of a type.
+ *
+ * @generated from field: repeated string values = 2;
+ */
+ values: string[];
+
+ /**
+ * @generated from field: string comment = 3;
+ */
+ comment: string;
+
+ /**
+ * @generated from field: bool skip_dump = 4;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.EnumTypeMetadata.
+ * Use `create(EnumTypeMetadataSchema)` to create a new message.
+ */
+export declare const EnumTypeMetadataSchema: GenMessage<EnumTypeMetadata>;
+
+/**
+ * @generated from message bytebase.v1.EventMetadata
+ */
+export declare type EventMetadata = Message<"bytebase.v1.EventMetadata"> & {
+ /**
+ * The name of the event.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The schedule of the event.
+ *
+ * @generated from field: string definition = 2;
+ */
+ definition: string;
+
+ /**
+ * The time zone of the event.
+ *
+ * @generated from field: string time_zone = 3;
+ */
+ timeZone: string;
+
+ /**
+ * @generated from field: string sql_mode = 4;
+ */
+ sqlMode: string;
+
+ /**
+ * @generated from field: string character_set_client = 5;
+ */
+ characterSetClient: string;
+
+ /**
+ * @generated from field: string collation_connection = 6;
+ */
+ collationConnection: string;
+};
+
+/**
+ * Describes the message bytebase.v1.EventMetadata.
+ * Use `create(EventMetadataSchema)` to create a new message.
+ */
+export declare const EventMetadataSchema: GenMessage<EventMetadata>;
+
+/**
+ * @generated from message bytebase.v1.SequenceMetadata
+ */
+export declare type SequenceMetadata = Message<"bytebase.v1.SequenceMetadata"> & {
+ /**
+ * The name of a sequence.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The data type of a sequence.
+ *
+ * @generated from field: string data_type = 2;
+ */
+ dataType: string;
+
+ /**
+ * The start value of a sequence.
+ *
+ * @generated from field: string start = 3;
+ */
+ start: string;
+
+ /**
+ * The minimum value of a sequence.
+ *
+ * @generated from field: string min_value = 4;
+ */
+ minValue: string;
+
+ /**
+ * The maximum value of a sequence.
+ *
+ * @generated from field: string max_value = 5;
+ */
+ maxValue: string;
+
+ /**
+ * Increment value of a sequence.
+ *
+ * @generated from field: string increment = 6;
+ */
+ increment: string;
+
+ /**
+ * Cycle is whether the sequence cycles.
+ *
+ * @generated from field: bool cycle = 7;
+ */
+ cycle: boolean;
+
+ /**
+ * Cache size of a sequence.
+ *
+ * @generated from field: string cache_size = 8;
+ */
+ cacheSize: string;
+
+ /**
+ * Last value of a sequence.
+ *
+ * @generated from field: string last_value = 9;
+ */
+ lastValue: string;
+
+ /**
+ * The owner table of the sequence.
+ *
+ * @generated from field: string owner_table = 10;
+ */
+ ownerTable: string;
+
+ /**
+ * The owner column of the sequence.
+ *
+ * @generated from field: string owner_column = 11;
+ */
+ ownerColumn: string;
+
+ /**
+ * @generated from field: string comment = 12;
+ */
+ comment: string;
+
+ /**
+ * @generated from field: bool skip_dump = 13;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.SequenceMetadata.
+ * Use `create(SequenceMetadataSchema)` to create a new message.
+ */
+export declare const SequenceMetadataSchema: GenMessage<SequenceMetadata>;
+
+/**
+ * @generated from message bytebase.v1.TriggerMetadata
+ */
+export declare type TriggerMetadata = Message<"bytebase.v1.TriggerMetadata"> & {
+ /**
+ * The name is the name of the trigger.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The event is the event of the trigger, such as INSERT, UPDATE, DELETE,
+ * TRUNCATE.
+ *
+ * @generated from field: string event = 3;
+ */
+ event: string;
+
+ /**
+ * The timing is the timing of the trigger, such as BEFORE, AFTER.
+ *
+ * @generated from field: string timing = 4;
+ */
+ timing: string;
+
+ /**
+ * The body is the body of the trigger.
+ *
+ * @generated from field: string body = 5;
+ */
+ body: string;
+
+ /**
+ * @generated from field: string sql_mode = 6;
+ */
+ sqlMode: string;
+
+ /**
+ * @generated from field: string character_set_client = 7;
+ */
+ characterSetClient: string;
+
+ /**
+ * @generated from field: string collation_connection = 8;
+ */
+ collationConnection: string;
+
+ /**
+ * @generated from field: string comment = 9;
+ */
+ comment: string;
+
+ /**
+ * @generated from field: bool skip_dump = 10;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.TriggerMetadata.
+ * Use `create(TriggerMetadataSchema)` to create a new message.
+ */
+export declare const TriggerMetadataSchema: GenMessage<TriggerMetadata>;
+
+/**
+ * @generated from message bytebase.v1.ExternalTableMetadata
+ */
+export declare type ExternalTableMetadata = Message<"bytebase.v1.ExternalTableMetadata"> & {
+ /**
+ * The name is the name of a external table.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The external_server_name is the name of the external server.
+ *
+ * @generated from field: string external_server_name = 2;
+ */
+ externalServerName: string;
+
+ /**
+ * The external_database_name is the name of the external database.
+ *
+ * @generated from field: string external_database_name = 3;
+ */
+ externalDatabaseName: string;
+
+ /**
+ * The columns is the ordered list of columns in a foreign table.
+ *
+ * @generated from field: repeated bytebase.v1.ColumnMetadata columns = 4;
+ */
+ columns: ColumnMetadata[];
+};
+
+/**
+ * Describes the message bytebase.v1.ExternalTableMetadata.
+ * Use `create(ExternalTableMetadataSchema)` to create a new message.
+ */
+export declare const ExternalTableMetadataSchema: GenMessage<ExternalTableMetadata>;
+
+/**
+ * TableMetadata is the metadata for tables.
+ *
+ * @generated from message bytebase.v1.TableMetadata
+ */
+export declare type TableMetadata = Message<"bytebase.v1.TableMetadata"> & {
+ /**
+ * The name is the name of a table.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The columns is the ordered list of columns in a table.
+ *
+ * @generated from field: repeated bytebase.v1.ColumnMetadata columns = 2;
+ */
+ columns: ColumnMetadata[];
+
+ /**
+ * The indexes is the list of indexes in a table.
+ *
+ * @generated from field: repeated bytebase.v1.IndexMetadata indexes = 3;
+ */
+ indexes: IndexMetadata[];
+
+ /**
+ * The engine is the engine of a table.
+ *
+ * @generated from field: string engine = 4;
+ */
+ engine: string;
+
+ /**
+ * The collation is the collation of a table.
+ *
+ * @generated from field: string collation = 5;
+ */
+ collation: string;
+
+ /**
+ * The character set of table.
+ *
+ * @generated from field: string charset = 17;
+ */
+ charset: string;
+
+ /**
+ * The row_count is the estimated number of rows of a table.
+ *
+ * @generated from field: int64 row_count = 6;
+ */
+ rowCount: bigint;
+
+ /**
+ * The data_size is the estimated data size of a table.
+ *
+ * @generated from field: int64 data_size = 7;
+ */
+ dataSize: bigint;
+
+ /**
+ * The index_size is the estimated index size of a table.
+ *
+ * @generated from field: int64 index_size = 8;
+ */
+ indexSize: bigint;
+
+ /**
+ * The data_free is the estimated free data size of a table.
+ *
+ * @generated from field: int64 data_free = 9;
+ */
+ dataFree: bigint;
+
+ /**
+ * The create_options is the create option of a table.
+ *
+ * @generated from field: string create_options = 10;
+ */
+ createOptions: string;
+
+ /**
+ * The comment is the comment of a table.
+ * classification and user_comment is parsed from the comment.
+ *
+ * @generated from field: string comment = 11;
+ */
+ comment: string;
+
+ /**
+ * The user_comment is the user comment of a table parsed from the comment.
+ *
+ * @generated from field: string user_comment = 14;
+ */
+ userComment: string;
+
+ /**
+ * The foreign_keys is the list of foreign keys in a table.
+ *
+ * @generated from field: repeated bytebase.v1.ForeignKeyMetadata foreign_keys = 12;
+ */
+ foreignKeys: ForeignKeyMetadata[];
+
+ /**
+ * The partitions is the list of partitions in a table.
+ *
+ * @generated from field: repeated bytebase.v1.TablePartitionMetadata partitions = 15;
+ */
+ partitions: TablePartitionMetadata[];
+
+ /**
+ * The check_constraints is the list of check constraints in a table.
+ *
+ * @generated from field: repeated bytebase.v1.CheckConstraintMetadata check_constraints = 16;
+ */
+ checkConstraints: CheckConstraintMetadata[];
+
+ /**
+ * @generated from field: string owner = 18;
+ */
+ owner: string;
+
+ /**
+ * The sorting_keys is a tuple of column names or arbitrary expressions. ClickHouse specific field.
+ * Reference: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by
+ *
+ * @generated from field: repeated string sorting_keys = 19;
+ */
+ sortingKeys: string[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.TriggerMetadata triggers = 20;
+ */
+ triggers: TriggerMetadata[];
+
+ /**
+ * @generated from field: bool skip_dump = 21;
+ */
+ skipDump: boolean;
+
+ /**
+ * https://docs.pingcap.com/tidb/stable/information-schema-tables/
+ *
+ * @generated from field: string sharding_info = 22;
+ */
+ shardingInfo: string;
+
+ /**
+ * https://docs.pingcap.com/tidb/stable/clustered-indexes/#clustered-indexes
+ * CLUSTERED or NONCLUSTERED.
+ *
+ * @generated from field: string primary_key_type = 23;
+ */
+ primaryKeyType: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TableMetadata.
+ * Use `create(TableMetadataSchema)` to create a new message.
+ */
+export declare const TableMetadataSchema: GenMessage<TableMetadata>;
+
+/**
+ * CheckConstraintMetadata is the metadata for check constraints.
+ *
+ * @generated from message bytebase.v1.CheckConstraintMetadata
+ */
+export declare type CheckConstraintMetadata = Message<"bytebase.v1.CheckConstraintMetadata"> & {
+ /**
+ * The name is the name of a check constraint.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The expression is the expression of a check constraint.
+ *
+ * @generated from field: string expression = 2;
+ */
+ expression: string;
+};
+
+/**
+ * Describes the message bytebase.v1.CheckConstraintMetadata.
+ * Use `create(CheckConstraintMetadataSchema)` to create a new message.
+ */
+export declare const CheckConstraintMetadataSchema: GenMessage<CheckConstraintMetadata>;
+
+/**
+ * TablePartitionMetadata is the metadata for table partitions.
+ *
+ * @generated from message bytebase.v1.TablePartitionMetadata
+ */
+export declare type TablePartitionMetadata = Message<"bytebase.v1.TablePartitionMetadata"> & {
+ /**
+ * The name is the name of a table partition.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The type of a table partition.
+ *
+ * @generated from field: bytebase.v1.TablePartitionMetadata.Type type = 2;
+ */
+ type: TablePartitionMetadata_Type;
+
+ /**
+ * The expression is the expression of a table partition.
+ * For PostgreSQL, the expression is the text of {FOR VALUES
+ * partition_bound_spec}, see
+ * https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL,
+ * the expression is the `expr` or `column_list` of the following syntax.
+ * PARTITION BY
+ * { [LINEAR] HASH(expr)
+ * | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)
+ * | RANGE{(expr) | COLUMNS(column_list)}
+ * | LIST{(expr) | COLUMNS(column_list)} }.
+ *
+ * @generated from field: string expression = 3;
+ */
+ expression: string;
+
+ /**
+ * The value is the value of a table partition.
+ * For MySQL, the value is for RANGE and LIST partition types,
+ * - For a RANGE partition, it contains the value set in the partition's
+ * VALUES LESS THAN clause, which can be either an integer or MAXVALUE.
+ * - For a LIST partition, this column contains the values defined in the
+ * partition's VALUES IN clause, which is a list of comma-separated integer
+ * values.
+ * - For others, it's an empty string.
+ *
+ * @generated from field: string value = 4;
+ */
+ value: string;
+
+ /**
+ * The use_default is whether the users use the default partition, it stores
+ * the different value for different database engines. For MySQL, it's [INT]
+ * type, 0 means not use default partition, otherwise, it's equals to number
+ * in syntax [SUB]PARTITION {number}.
+ *
+ * @generated from field: string use_default = 5;
+ */
+ useDefault: string;
+
+ /**
+ * The subpartitions is the list of subpartitions in a table partition.
+ *
+ * @generated from field: repeated bytebase.v1.TablePartitionMetadata subpartitions = 6;
+ */
+ subpartitions: TablePartitionMetadata[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.IndexMetadata indexes = 7;
+ */
+ indexes: IndexMetadata[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.CheckConstraintMetadata check_constraints = 8;
+ */
+ checkConstraints: CheckConstraintMetadata[];
+};
+
+/**
+ * Describes the message bytebase.v1.TablePartitionMetadata.
+ * Use `create(TablePartitionMetadataSchema)` to create a new message.
+ */
+export declare const TablePartitionMetadataSchema: GenMessage<TablePartitionMetadata>;
+
+/**
+ * Type is the type of a table partition, some database engines may not
+ * support all types. Only avilable for the following database engines now:
+ * MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY,
+ * LINEAR_KEY
+ * (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html) TiDB:
+ * RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY PostgreSQL: RANGE,
+ * LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+ *
+ * @generated from enum bytebase.v1.TablePartitionMetadata.Type
+ */
+export enum TablePartitionMetadata_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: RANGE = 1;
+ */
+ RANGE = 1,
+
+ /**
+ * @generated from enum value: RANGE_COLUMNS = 2;
+ */
+ RANGE_COLUMNS = 2,
+
+ /**
+ * @generated from enum value: LIST = 3;
+ */
+ LIST = 3,
+
+ /**
+ * @generated from enum value: LIST_COLUMNS = 4;
+ */
+ LIST_COLUMNS = 4,
+
+ /**
+ * @generated from enum value: HASH = 5;
+ */
+ HASH = 5,
+
+ /**
+ * @generated from enum value: LINEAR_HASH = 6;
+ */
+ LINEAR_HASH = 6,
+
+ /**
+ * @generated from enum value: KEY = 7;
+ */
+ KEY = 7,
+
+ /**
+ * @generated from enum value: LINEAR_KEY = 8;
+ */
+ LINEAR_KEY = 8,
+}
+
+/**
+ * Describes the enum bytebase.v1.TablePartitionMetadata.Type.
+ */
+export declare const TablePartitionMetadata_TypeSchema: GenEnum<TablePartitionMetadata_Type>;
+
+/**
+ * ColumnMetadata is the metadata for columns.
+ *
+ * @generated from message bytebase.v1.ColumnMetadata
+ */
+export declare type ColumnMetadata = Message<"bytebase.v1.ColumnMetadata"> & {
+ /**
+ * The name is the name of a column.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The position is the position in columns.
+ *
+ * @generated from field: int32 position = 2;
+ */
+ position: number;
+
+ /**
+ * @generated from field: bool has_default = 3;
+ */
+ hasDefault: boolean;
+
+ /**
+ * The default is the default value of a column.
+ *
+ * @generated from oneof bytebase.v1.ColumnMetadata.default
+ */
+ default: {
+ /**
+ * @generated from field: bool default_null = 4;
+ */
+ value: boolean;
+ case: "defaultNull";
+ } | {
+ /**
+ * @generated from field: string default_string = 5;
+ */
+ value: string;
+ case: "defaultString";
+ } | {
+ /**
+ * @generated from field: string default_expression = 6;
+ */
+ value: string;
+ case: "defaultExpression";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * Oracle specific metadata.
+ * The default_on_null is the default on null of a column.
+ *
+ * @generated from field: bool default_on_null = 18;
+ */
+ defaultOnNull: boolean;
+
+ /**
+ * The on_update is the on update action of a column.
+ * For MySQL like databases, it's only supported for TIMESTAMP columns with
+ * CURRENT_TIMESTAMP as on update value.
+ *
+ * @generated from field: string on_update = 15;
+ */
+ onUpdate: string;
+
+ /**
+ * The nullable is the nullable of a column.
+ *
+ * @generated from field: bool nullable = 7;
+ */
+ nullable: boolean;
+
+ /**
+ * The type is the type of a column.
+ *
+ * @generated from field: string type = 8;
+ */
+ type: string;
+
+ /**
+ * The character_set is the character_set of a column.
+ *
+ * @generated from field: string character_set = 9;
+ */
+ characterSet: string;
+
+ /**
+ * The collation is the collation of a column.
+ *
+ * @generated from field: string collation = 10;
+ */
+ collation: string;
+
+ /**
+ * The comment is the comment of a column.
+ * classification and user_comment is parsed from the comment.
+ *
+ * @generated from field: string comment = 11;
+ */
+ comment: string;
+
+ /**
+ * The user_comment is the user comment of a column parsed from the comment.
+ *
+ * @generated from field: string user_comment = 13;
+ */
+ userComment: string;
+
+ /**
+ * The generation is the generation of a column.
+ *
+ * @generated from field: bytebase.v1.GenerationMetadata generation = 16;
+ */
+ generation?: GenerationMetadata;
+
+ /**
+ * @generated from field: bool is_identity = 19;
+ */
+ isIdentity: boolean;
+
+ /**
+ * The identity_generation is for identity columns, PG only.
+ *
+ * @generated from field: bytebase.v1.ColumnMetadata.IdentityGeneration identity_generation = 17;
+ */
+ identityGeneration: ColumnMetadata_IdentityGeneration;
+
+ /**
+ * The identity_seed is for identity columns, MSSQL only.
+ *
+ * @generated from field: int64 identity_seed = 20;
+ */
+ identitySeed: bigint;
+
+ /**
+ * The identity_increment is for identity columns, MSSQL only.
+ *
+ * @generated from field: int64 identity_increment = 21;
+ */
+ identityIncrement: bigint;
+};
+
+/**
+ * Describes the message bytebase.v1.ColumnMetadata.
+ * Use `create(ColumnMetadataSchema)` to create a new message.
+ */
+export declare const ColumnMetadataSchema: GenMessage<ColumnMetadata>;
+
+/**
+ * @generated from enum bytebase.v1.ColumnMetadata.IdentityGeneration
+ */
+export enum ColumnMetadata_IdentityGeneration {
+ /**
+ * @generated from enum value: IDENTITY_GENERATION_UNSPECIFIED = 0;
+ */
+ IDENTITY_GENERATION_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ALWAYS = 1;
+ */
+ ALWAYS = 1,
+
+ /**
+ * @generated from enum value: BY_DEFAULT = 2;
+ */
+ BY_DEFAULT = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.ColumnMetadata.IdentityGeneration.
+ */
+export declare const ColumnMetadata_IdentityGenerationSchema: GenEnum<ColumnMetadata_IdentityGeneration>;
+
+/**
+ * @generated from message bytebase.v1.GenerationMetadata
+ */
+export declare type GenerationMetadata = Message<"bytebase.v1.GenerationMetadata"> & {
+ /**
+ * @generated from field: bytebase.v1.GenerationMetadata.Type type = 1;
+ */
+ type: GenerationMetadata_Type;
+
+ /**
+ * @generated from field: string expression = 2;
+ */
+ expression: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GenerationMetadata.
+ * Use `create(GenerationMetadataSchema)` to create a new message.
+ */
+export declare const GenerationMetadataSchema: GenMessage<GenerationMetadata>;
+
+/**
+ * @generated from enum bytebase.v1.GenerationMetadata.Type
+ */
+export enum GenerationMetadata_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: TYPE_VIRTUAL = 1;
+ */
+ VIRTUAL = 1,
+
+ /**
+ * @generated from enum value: TYPE_STORED = 2;
+ */
+ STORED = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.GenerationMetadata.Type.
+ */
+export declare const GenerationMetadata_TypeSchema: GenEnum<GenerationMetadata_Type>;
+
+/**
+ * ViewMetadata is the metadata for views.
+ *
+ * @generated from message bytebase.v1.ViewMetadata
+ */
+export declare type ViewMetadata = Message<"bytebase.v1.ViewMetadata"> & {
+ /**
+ * The name is the name of a view.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The definition is the definition of a view.
+ *
+ * @generated from field: string definition = 2;
+ */
+ definition: string;
+
+ /**
+ * The comment is the comment of a view.
+ *
+ * @generated from field: string comment = 3;
+ */
+ comment: string;
+
+ /**
+ * The dependency_columns is the list of dependency columns of a view.
+ *
+ * @generated from field: repeated bytebase.v1.DependencyColumn dependency_columns = 4;
+ */
+ dependencyColumns: DependencyColumn[];
+
+ /**
+ * The columns is the ordered list of columns in a table.
+ *
+ * @generated from field: repeated bytebase.v1.ColumnMetadata columns = 5;
+ */
+ columns: ColumnMetadata[];
+
+ /**
+ * The triggers is the list of triggers in a view.
+ *
+ * @generated from field: repeated bytebase.v1.TriggerMetadata triggers = 6;
+ */
+ triggers: TriggerMetadata[];
+
+ /**
+ * @generated from field: bool skip_dump = 7;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ViewMetadata.
+ * Use `create(ViewMetadataSchema)` to create a new message.
+ */
+export declare const ViewMetadataSchema: GenMessage<ViewMetadata>;
+
+/**
+ * DependencyColumn is the metadata for dependency columns.
+ *
+ * @generated from message bytebase.v1.DependencyColumn
+ */
+export declare type DependencyColumn = Message<"bytebase.v1.DependencyColumn"> & {
+ /**
+ * The schema is the schema of a reference column.
+ *
+ * @generated from field: string schema = 1;
+ */
+ schema: string;
+
+ /**
+ * The table is the table of a reference column.
+ *
+ * @generated from field: string table = 2;
+ */
+ table: string;
+
+ /**
+ * The column is the name of a reference column.
+ *
+ * @generated from field: string column = 3;
+ */
+ column: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DependencyColumn.
+ * Use `create(DependencyColumnSchema)` to create a new message.
+ */
+export declare const DependencyColumnSchema: GenMessage<DependencyColumn>;
+
+/**
+ * MaterializedViewMetadata is the metadata for materialized views.
+ *
+ * @generated from message bytebase.v1.MaterializedViewMetadata
+ */
+export declare type MaterializedViewMetadata = Message<"bytebase.v1.MaterializedViewMetadata"> & {
+ /**
+ * The name is the name of a materialized view.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The definition is the definition of a materialized view.
+ *
+ * @generated from field: string definition = 2;
+ */
+ definition: string;
+
+ /**
+ * The comment is the comment of a materialized view.
+ *
+ * @generated from field: string comment = 3;
+ */
+ comment: string;
+
+ /**
+ * The dependency_columns is the list of dependency columns of a materialized
+ * view.
+ *
+ * @generated from field: repeated bytebase.v1.DependencyColumn dependency_columns = 4;
+ */
+ dependencyColumns: DependencyColumn[];
+
+ /**
+ * The columns is the ordered list of columns in a table.
+ *
+ * @generated from field: repeated bytebase.v1.TriggerMetadata triggers = 5;
+ */
+ triggers: TriggerMetadata[];
+
+ /**
+ * The indexes is the list of indexes in a table.
+ *
+ * @generated from field: repeated bytebase.v1.IndexMetadata indexes = 6;
+ */
+ indexes: IndexMetadata[];
+
+ /**
+ * @generated from field: bool skip_dump = 7;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.MaterializedViewMetadata.
+ * Use `create(MaterializedViewMetadataSchema)` to create a new message.
+ */
+export declare const MaterializedViewMetadataSchema: GenMessage<MaterializedViewMetadata>;
+
+/**
+ * @generated from message bytebase.v1.DependencyTable
+ */
+export declare type DependencyTable = Message<"bytebase.v1.DependencyTable"> & {
+ /**
+ * The schema is the schema of a reference table.
+ *
+ * @generated from field: string schema = 1;
+ */
+ schema: string;
+
+ /**
+ * The table is the name of a reference table.
+ *
+ * @generated from field: string table = 2;
+ */
+ table: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DependencyTable.
+ * Use `create(DependencyTableSchema)` to create a new message.
+ */
+export declare const DependencyTableSchema: GenMessage<DependencyTable>;
+
+/**
+ * FunctionMetadata is the metadata for functions.
+ *
+ * @generated from message bytebase.v1.FunctionMetadata
+ */
+export declare type FunctionMetadata = Message<"bytebase.v1.FunctionMetadata"> & {
+ /**
+ * The name is the name of a function.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The definition is the definition of a function.
+ *
+ * @generated from field: string definition = 2;
+ */
+ definition: string;
+
+ /**
+ * The signature is the name with the number and type of input arguments the
+ * function takes.
+ *
+ * @generated from field: string signature = 3;
+ */
+ signature: string;
+
+ /**
+ * MySQL specific metadata.
+ *
+ * @generated from field: string character_set_client = 4;
+ */
+ characterSetClient: string;
+
+ /**
+ * @generated from field: string collation_connection = 5;
+ */
+ collationConnection: string;
+
+ /**
+ * @generated from field: string database_collation = 6;
+ */
+ databaseCollation: string;
+
+ /**
+ * @generated from field: string sql_mode = 7;
+ */
+ sqlMode: string;
+
+ /**
+ * @generated from field: string comment = 8;
+ */
+ comment: string;
+
+ /**
+ * The dependency_tables is the list of dependency tables of a function.
+ * For PostgreSQL, it's the list of tables that the function depends on the return type definition.
+ *
+ * @generated from field: repeated bytebase.v1.DependencyTable dependency_tables = 9;
+ */
+ dependencyTables: DependencyTable[];
+
+ /**
+ * @generated from field: bool skip_dump = 10;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.FunctionMetadata.
+ * Use `create(FunctionMetadataSchema)` to create a new message.
+ */
+export declare const FunctionMetadataSchema: GenMessage<FunctionMetadata>;
+
+/**
+ * ProcedureMetadata is the metadata for procedures.
+ *
+ * @generated from message bytebase.v1.ProcedureMetadata
+ */
+export declare type ProcedureMetadata = Message<"bytebase.v1.ProcedureMetadata"> & {
+ /**
+ * The name is the name of a procedure.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The definition is the definition of a procedure.
+ *
+ * @generated from field: string definition = 2;
+ */
+ definition: string;
+
+ /**
+ * The signature is the name with the number and type of input arguments the
+ * function takes.
+ *
+ * @generated from field: string signature = 3;
+ */
+ signature: string;
+
+ /**
+ * MySQL specific metadata.
+ *
+ * @generated from field: string character_set_client = 4;
+ */
+ characterSetClient: string;
+
+ /**
+ * @generated from field: string collation_connection = 5;
+ */
+ collationConnection: string;
+
+ /**
+ * @generated from field: string database_collation = 6;
+ */
+ databaseCollation: string;
+
+ /**
+ * @generated from field: string sql_mode = 7;
+ */
+ sqlMode: string;
+
+ /**
+ * @generated from field: bool skip_dump = 8;
+ */
+ skipDump: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ProcedureMetadata.
+ * Use `create(ProcedureMetadataSchema)` to create a new message.
+ */
+export declare const ProcedureMetadataSchema: GenMessage<ProcedureMetadata>;
+
+/**
+ * PackageMetadata is the metadata for packages.
+ *
+ * @generated from message bytebase.v1.PackageMetadata
+ */
+export declare type PackageMetadata = Message<"bytebase.v1.PackageMetadata"> & {
+ /**
+ * The name is the name of a package.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The definition is the definition of a package.
+ *
+ * @generated from field: string definition = 2;
+ */
+ definition: string;
+};
+
+/**
+ * Describes the message bytebase.v1.PackageMetadata.
+ * Use `create(PackageMetadataSchema)` to create a new message.
+ */
+export declare const PackageMetadataSchema: GenMessage<PackageMetadata>;
+
+/**
+ * @generated from message bytebase.v1.TaskMetadata
+ */
+export declare type TaskMetadata = Message<"bytebase.v1.TaskMetadata"> & {
+ /**
+ * The name is the name of a task.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The id is the snowflake-generated id of a task.
+ * Example: 01ad32a0-1bb6-5e93-0000-000000000001
+ *
+ * @generated from field: string id = 2;
+ */
+ id: string;
+
+ /**
+ * The owner of the task.
+ *
+ * @generated from field: string owner = 3;
+ */
+ owner: string;
+
+ /**
+ * The comment of the task.
+ *
+ * @generated from field: string comment = 4;
+ */
+ comment: string;
+
+ /**
+ * The warehouse of the task.
+ *
+ * @generated from field: string warehouse = 5;
+ */
+ warehouse: string;
+
+ /**
+ * The schedule interval of the task.
+ *
+ * @generated from field: string schedule = 6;
+ */
+ schedule: string;
+
+ /**
+ * The predecessor tasks of the task.
+ *
+ * @generated from field: repeated string predecessors = 7;
+ */
+ predecessors: string[];
+
+ /**
+ * The state of the task.
+ *
+ * @generated from field: bytebase.v1.TaskMetadata.State state = 8;
+ */
+ state: TaskMetadata_State;
+
+ /**
+ * The condition of the task.
+ *
+ * @generated from field: string condition = 9;
+ */
+ condition: string;
+
+ /**
+ * The definition of the task.
+ *
+ * @generated from field: string definition = 10;
+ */
+ definition: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskMetadata.
+ * Use `create(TaskMetadataSchema)` to create a new message.
+ */
+export declare const TaskMetadataSchema: GenMessage<TaskMetadata>;
+
+/**
+ * @generated from enum bytebase.v1.TaskMetadata.State
+ */
+export enum TaskMetadata_State {
+ /**
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: STATE_STARTED = 1;
+ */
+ STARTED = 1,
+
+ /**
+ * @generated from enum value: STATE_SUSPENDED = 2;
+ */
+ SUSPENDED = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.TaskMetadata.State.
+ */
+export declare const TaskMetadata_StateSchema: GenEnum<TaskMetadata_State>;
+
+/**
+ * @generated from message bytebase.v1.StreamMetadata
+ */
+export declare type StreamMetadata = Message<"bytebase.v1.StreamMetadata"> & {
+ /**
+ * The name is the name of a stream.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The table_name is the name of the table/view that the stream is created on.
+ *
+ * @generated from field: string table_name = 2;
+ */
+ tableName: string;
+
+ /**
+ * The owner of the stream.
+ *
+ * @generated from field: string owner = 3;
+ */
+ owner: string;
+
+ /**
+ * The comment of the stream.
+ *
+ * @generated from field: string comment = 4;
+ */
+ comment: string;
+
+ /**
+ * The type of the stream.
+ *
+ * @generated from field: bytebase.v1.StreamMetadata.Type type = 5;
+ */
+ type: StreamMetadata_Type;
+
+ /**
+ * Indicates whether the stream was last read before the `stale_after` time.
+ *
+ * @generated from field: bool stale = 6;
+ */
+ stale: boolean;
+
+ /**
+ * The mode of the stream.
+ *
+ * @generated from field: bytebase.v1.StreamMetadata.Mode mode = 7;
+ */
+ mode: StreamMetadata_Mode;
+
+ /**
+ * The definition of the stream.
+ *
+ * @generated from field: string definition = 8;
+ */
+ definition: string;
+};
+
+/**
+ * Describes the message bytebase.v1.StreamMetadata.
+ * Use `create(StreamMetadataSchema)` to create a new message.
+ */
+export declare const StreamMetadataSchema: GenMessage<StreamMetadata>;
+
+/**
+ * @generated from enum bytebase.v1.StreamMetadata.Type
+ */
+export enum StreamMetadata_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: TYPE_DELTA = 1;
+ */
+ DELTA = 1,
+}
+
+/**
+ * Describes the enum bytebase.v1.StreamMetadata.Type.
+ */
+export declare const StreamMetadata_TypeSchema: GenEnum<StreamMetadata_Type>;
+
+/**
+ * @generated from enum bytebase.v1.StreamMetadata.Mode
+ */
+export enum StreamMetadata_Mode {
+ /**
+ * @generated from enum value: MODE_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: MODE_DEFAULT = 1;
+ */
+ DEFAULT = 1,
+
+ /**
+ * @generated from enum value: MODE_APPEND_ONLY = 2;
+ */
+ APPEND_ONLY = 2,
+
+ /**
+ * @generated from enum value: MODE_INSERT_ONLY = 3;
+ */
+ INSERT_ONLY = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.StreamMetadata.Mode.
+ */
+export declare const StreamMetadata_ModeSchema: GenEnum<StreamMetadata_Mode>;
+
+/**
+ * IndexMetadata is the metadata for indexes.
+ *
+ * @generated from message bytebase.v1.IndexMetadata
+ */
+export declare type IndexMetadata = Message<"bytebase.v1.IndexMetadata"> & {
+ /**
+ * The name is the name of an index.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The expressions are the ordered columns or expressions of an index.
+ * This could refer to a column or an expression.
+ *
+ * @generated from field: repeated string expressions = 2;
+ */
+ expressions: string[];
+
+ /**
+ * The key_lengths are the ordered key lengths of an index.
+ * If the key length is not specified, it's -1.
+ *
+ * @generated from field: repeated int64 key_length = 9;
+ */
+ keyLength: bigint[];
+
+ /**
+ * The descending is the ordered descending of an index.
+ *
+ * @generated from field: repeated bool descending = 10;
+ */
+ descending: boolean[];
+
+ /**
+ * The type is the type of an index.
+ *
+ * @generated from field: string type = 3;
+ */
+ type: string;
+
+ /**
+ * The unique is whether the index is unique.
+ *
+ * @generated from field: bool unique = 4;
+ */
+ unique: boolean;
+
+ /**
+ * The primary is whether the index is a primary key index.
+ *
+ * @generated from field: bool primary = 5;
+ */
+ primary: boolean;
+
+ /**
+ * The visible is whether the index is visible.
+ *
+ * @generated from field: bool visible = 6;
+ */
+ visible: boolean;
+
+ /**
+ * The comment is the comment of an index.
+ *
+ * @generated from field: string comment = 7;
+ */
+ comment: string;
+
+ /**
+ * The definition of an index.
+ *
+ * @generated from field: string definition = 8;
+ */
+ definition: string;
+
+ /**
+ * The schema name of the parent index.
+ *
+ * @generated from field: string parent_index_schema = 11;
+ */
+ parentIndexSchema: string;
+
+ /**
+ * The index name of the parent index.
+ *
+ * @generated from field: string parent_index_name = 12;
+ */
+ parentIndexName: string;
+
+ /**
+ * The number of granules in the block. It's a ClickHouse specific field.
+ *
+ * @generated from field: int64 granularity = 13;
+ */
+ granularity: bigint;
+
+ /**
+ * It's a PostgreSQL specific field.
+ * The unique constraint and unique index are not the same thing in PostgreSQL.
+ *
+ * @generated from field: bool is_constraint = 14;
+ */
+ isConstraint: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.IndexMetadata.
+ * Use `create(IndexMetadataSchema)` to create a new message.
+ */
+export declare const IndexMetadataSchema: GenMessage<IndexMetadata>;
+
+/**
+ * ExtensionMetadata is the metadata for extensions.
+ *
+ * @generated from message bytebase.v1.ExtensionMetadata
+ */
+export declare type ExtensionMetadata = Message<"bytebase.v1.ExtensionMetadata"> & {
+ /**
+ * The name is the name of an extension.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The schema is the extension that is installed to. But the extension usage
+ * is not limited to the schema.
+ *
+ * @generated from field: string schema = 2;
+ */
+ schema: string;
+
+ /**
+ * The version is the version of an extension.
+ *
+ * @generated from field: string version = 3;
+ */
+ version: string;
+
+ /**
+ * The description is the description of an extension.
+ *
+ * @generated from field: string description = 4;
+ */
+ description: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ExtensionMetadata.
+ * Use `create(ExtensionMetadataSchema)` to create a new message.
+ */
+export declare const ExtensionMetadataSchema: GenMessage<ExtensionMetadata>;
+
+/**
+ * ForeignKeyMetadata is the metadata for foreign keys.
+ *
+ * @generated from message bytebase.v1.ForeignKeyMetadata
+ */
+export declare type ForeignKeyMetadata = Message<"bytebase.v1.ForeignKeyMetadata"> & {
+ /**
+ * The name is the name of a foreign key.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The columns are the ordered referencing columns of a foreign key.
+ *
+ * @generated from field: repeated string columns = 2;
+ */
+ columns: string[];
+
+ /**
+ * The referenced_schema is the referenced schema name of a foreign key.
+ * It is an empty string for databases without such concept such as MySQL.
+ *
+ * @generated from field: string referenced_schema = 3;
+ */
+ referencedSchema: string;
+
+ /**
+ * The referenced_table is the referenced table name of a foreign key.
+ *
+ * @generated from field: string referenced_table = 4;
+ */
+ referencedTable: string;
+
+ /**
+ * The referenced_columns are the ordered referenced columns of a foreign key.
+ *
+ * @generated from field: repeated string referenced_columns = 5;
+ */
+ referencedColumns: string[];
+
+ /**
+ * The on_delete is the on delete action of a foreign key.
+ *
+ * @generated from field: string on_delete = 6;
+ */
+ onDelete: string;
+
+ /**
+ * The on_update is the on update action of a foreign key.
+ *
+ * @generated from field: string on_update = 7;
+ */
+ onUpdate: string;
+
+ /**
+ * The match_type is the match type of a foreign key.
+ * The match_type is the PostgreSQL specific field.
+ * It's empty string for other databases.
+ *
+ * @generated from field: string match_type = 8;
+ */
+ matchType: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ForeignKeyMetadata.
+ * Use `create(ForeignKeyMetadataSchema)` to create a new message.
+ */
+export declare const ForeignKeyMetadataSchema: GenMessage<ForeignKeyMetadata>;
+
+/**
+ * DatabaseSchema is the metadata for databases.
+ *
+ * @generated from message bytebase.v1.DatabaseSchema
+ */
+export declare type DatabaseSchema = Message<"bytebase.v1.DatabaseSchema"> & {
+ /**
+ * The schema dump from database.
+ *
+ * @generated from field: string schema = 1;
+ */
+ schema: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DatabaseSchema.
+ * Use `create(DatabaseSchemaSchema)` to create a new message.
+ */
+export declare const DatabaseSchemaSchema: GenMessage<DatabaseSchema>;
+
+/**
+ * @generated from message bytebase.v1.ListSecretsRequest
+ */
+export declare type ListSecretsRequest = Message<"bytebase.v1.ListSecretsRequest"> & {
+ /**
+ * The parent of the secret.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * Not used.
+ * The maximum number of secrets to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 secrets will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListSecrets` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListSecrets` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListSecretsRequest.
+ * Use `create(ListSecretsRequestSchema)` to create a new message.
+ */
+export declare const ListSecretsRequestSchema: GenMessage<ListSecretsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListSecretsResponse
+ */
+export declare type ListSecretsResponse = Message<"bytebase.v1.ListSecretsResponse"> & {
+ /**
+ * The list of secrets.
+ *
+ * @generated from field: repeated bytebase.v1.Secret secrets = 1;
+ */
+ secrets: Secret[];
+
+ /**
+ * Not used. A token, which can be sent as `page_token` to retrieve the next
+ * page. If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListSecretsResponse.
+ * Use `create(ListSecretsResponseSchema)` to create a new message.
+ */
+export declare const ListSecretsResponseSchema: GenMessage<ListSecretsResponse>;
+
+/**
+ * @generated from message bytebase.v1.UpdateSecretRequest
+ */
+export declare type UpdateSecretRequest = Message<"bytebase.v1.UpdateSecretRequest"> & {
+ /**
+ * The secret to be created or updated.
+ *
+ * @generated from field: bytebase.v1.Secret secret = 1;
+ */
+ secret?: Secret;
+
+ /**
+ * The mask of the fields to be updated.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * If true, the secret will be created if it does not exist.
+ *
+ * @generated from field: bool allow_missing = 3;
+ */
+ allowMissing: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateSecretRequest.
+ * Use `create(UpdateSecretRequestSchema)` to create a new message.
+ */
+export declare const UpdateSecretRequestSchema: GenMessage<UpdateSecretRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteSecretRequest
+ */
+export declare type DeleteSecretRequest = Message<"bytebase.v1.DeleteSecretRequest"> & {
+ /**
+ * The name of the secret to be deleted.
+ * Format:
+ * instances/{instance}/databases/{database}/secrets/{secret}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteSecretRequest.
+ * Use `create(DeleteSecretRequestSchema)` to create a new message.
+ */
+export declare const DeleteSecretRequestSchema: GenMessage<DeleteSecretRequest>;
+
+/**
+ * Secret is the secret of the database now.
+ *
+ * @generated from message bytebase.v1.Secret
+ */
+export declare type Secret = Message<"bytebase.v1.Secret"> & {
+ /**
+ * name is the unique name of the secret, which is specified by the client.
+ * Format:
+ * instances/{instance}/databases/{database}/secrets/{secret}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Not used. The timestamp when the secret resource was created initially.
+ *
+ * @generated from field: google.protobuf.Timestamp created_time = 2;
+ */
+ createdTime?: Timestamp;
+
+ /**
+ * Not used. The timestamp when the secret resource was updated.
+ *
+ * @generated from field: google.protobuf.Timestamp updated_time = 3;
+ */
+ updatedTime?: Timestamp;
+
+ /**
+ * The value of the secret.
+ *
+ * @generated from field: string value = 4;
+ */
+ value: string;
+
+ /**
+ * The description of the secret.
+ *
+ * @generated from field: string description = 5;
+ */
+ description: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Secret.
+ * Use `create(SecretSchema)` to create a new message.
+ */
+export declare const SecretSchema: GenMessage<Secret>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResources
+ */
+export declare type ChangedResources = Message<"bytebase.v1.ChangedResources"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.ChangedResourceDatabase databases = 1;
+ */
+ databases: ChangedResourceDatabase[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResources.
+ * Use `create(ChangedResourcesSchema)` to create a new message.
+ */
+export declare const ChangedResourcesSchema: GenMessage<ChangedResources>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResourceDatabase
+ */
+export declare type ChangedResourceDatabase = Message<"bytebase.v1.ChangedResourceDatabase"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.ChangedResourceSchema schemas = 2;
+ */
+ schemas: ChangedResourceSchema[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceDatabase.
+ * Use `create(ChangedResourceDatabaseSchema)` to create a new message.
+ */
+export declare const ChangedResourceDatabaseSchema: GenMessage<ChangedResourceDatabase>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResourceSchema
+ */
+export declare type ChangedResourceSchema = Message<"bytebase.v1.ChangedResourceSchema"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.ChangedResourceTable tables = 2;
+ */
+ tables: ChangedResourceTable[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.ChangedResourceView views = 3;
+ */
+ views: ChangedResourceView[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.ChangedResourceFunction functions = 4;
+ */
+ functions: ChangedResourceFunction[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.ChangedResourceProcedure procedures = 5;
+ */
+ procedures: ChangedResourceProcedure[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceSchema.
+ * Use `create(ChangedResourceSchemaSchema)` to create a new message.
+ */
+export declare const ChangedResourceSchemaSchema: GenMessage<ChangedResourceSchema>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResourceTable
+ */
+export declare type ChangedResourceTable = Message<"bytebase.v1.ChangedResourceTable"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The ranges of sub-strings correspond to the statements on the sheet.
+ *
+ * @generated from field: repeated bytebase.v1.Range ranges = 3;
+ */
+ ranges: Range[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceTable.
+ * Use `create(ChangedResourceTableSchema)` to create a new message.
+ */
+export declare const ChangedResourceTableSchema: GenMessage<ChangedResourceTable>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResourceView
+ */
+export declare type ChangedResourceView = Message<"bytebase.v1.ChangedResourceView"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The ranges of sub-strings correspond to the statements on the sheet.
+ *
+ * @generated from field: repeated bytebase.v1.Range ranges = 2;
+ */
+ ranges: Range[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceView.
+ * Use `create(ChangedResourceViewSchema)` to create a new message.
+ */
+export declare const ChangedResourceViewSchema: GenMessage<ChangedResourceView>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResourceFunction
+ */
+export declare type ChangedResourceFunction = Message<"bytebase.v1.ChangedResourceFunction"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The ranges of sub-strings correspond to the statements on the sheet.
+ *
+ * @generated from field: repeated bytebase.v1.Range ranges = 2;
+ */
+ ranges: Range[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceFunction.
+ * Use `create(ChangedResourceFunctionSchema)` to create a new message.
+ */
+export declare const ChangedResourceFunctionSchema: GenMessage<ChangedResourceFunction>;
+
+/**
+ * @generated from message bytebase.v1.ChangedResourceProcedure
+ */
+export declare type ChangedResourceProcedure = Message<"bytebase.v1.ChangedResourceProcedure"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The ranges of sub-strings correspond to the statements on the sheet.
+ *
+ * @generated from field: repeated bytebase.v1.Range ranges = 2;
+ */
+ ranges: Range[];
+};
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceProcedure.
+ * Use `create(ChangedResourceProcedureSchema)` to create a new message.
+ */
+export declare const ChangedResourceProcedureSchema: GenMessage<ChangedResourceProcedure>;
+
+/**
+ * @generated from message bytebase.v1.ListChangelogsRequest
+ */
+export declare type ListChangelogsRequest = Message<"bytebase.v1.ListChangelogsRequest"> & {
+ /**
+ * The parent of the changelogs.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of changelogs to return. The service may return fewer
+ * than this value. If unspecified, at most 10 changelogs will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from the previous call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * @generated from field: bytebase.v1.ChangelogView view = 4;
+ */
+ view: ChangelogView;
+
+ /**
+ * The filter of the changelogs.
+ * follow the
+ * [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form)
+ * syntax. Support filter by type, source or table. For example: table =
+ * "tableExists('{database}', '{schema}', '{table}')" table =
+ * "tableExists('db', 'public', 'table1') || tableExists('db', 'public',
+ * 'table2')"
+ *
+ * The table filter follow the CEL syntax.
+ * currently, we have one function for CEL:
+ * - tableExists(database, schema, table): return true if the table exists in
+ * changed resources.
+ *
+ * examples:
+ * Use
+ * tableExists("db", "public", "table1")
+ * to filter the changelogs which have the table "table1" in the schema
+ * "public" of the database "db". For MySQL, the schema is always "", such as
+ * tableExists("db", "", "table1").
+ *
+ * Combine multiple functions with "&&" and "||", we MUST use the Disjunctive
+ * Normal Form(DNF). In other words, the CEL expression consists of several
+ * parts connected by OR operators. For example, the following expression is
+ * valid:
+ * (
+ * tableExists("db", "public", "table1") &&
+ * tableExists("db", "public", "table2")
+ * ) || (
+ * tableExists("db", "public", "table3")
+ * )
+ *
+ * @generated from field: string filter = 5;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListChangelogsRequest.
+ * Use `create(ListChangelogsRequestSchema)` to create a new message.
+ */
+export declare const ListChangelogsRequestSchema: GenMessage<ListChangelogsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListChangelogsResponse
+ */
+export declare type ListChangelogsResponse = Message<"bytebase.v1.ListChangelogsResponse"> & {
+ /**
+ * The list of changelogs.
+ *
+ * @generated from field: repeated bytebase.v1.Changelog changelogs = 1;
+ */
+ changelogs: Changelog[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListChangelogsResponse.
+ * Use `create(ListChangelogsResponseSchema)` to create a new message.
+ */
+export declare const ListChangelogsResponseSchema: GenMessage<ListChangelogsResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetChangelogRequest
+ */
+export declare type GetChangelogRequest = Message<"bytebase.v1.GetChangelogRequest"> & {
+ /**
+ * The name of the changelog to retrieve.
+ * Format: instances/{instance}/databases/{database}/changelogs/{changelog}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.ChangelogView view = 2;
+ */
+ view: ChangelogView;
+
+ /**
+ * Format the schema dump into SDL format.
+ *
+ * @generated from field: bool sdl_format = 3;
+ */
+ sdlFormat: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.GetChangelogRequest.
+ * Use `create(GetChangelogRequestSchema)` to create a new message.
+ */
+export declare const GetChangelogRequestSchema: GenMessage<GetChangelogRequest>;
+
+/**
+ * @generated from message bytebase.v1.Changelog
+ */
+export declare type Changelog = Message<"bytebase.v1.Changelog"> & {
+ /**
+ * Format: instances/{instance}/databases/{database}/changelogs/{changelog}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 3;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.Changelog.Status status = 4;
+ */
+ status: Changelog_Status;
+
+ /**
+ * The statement is used for preview purpose.
+ *
+ * @generated from field: string statement = 5;
+ */
+ statement: string;
+
+ /**
+ * @generated from field: int64 statement_size = 6;
+ */
+ statementSize: bigint;
+
+ /**
+ * The name of the sheet resource.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string statement_sheet = 7;
+ */
+ statementSheet: string;
+
+ /**
+ * @generated from field: string schema = 8;
+ */
+ schema: string;
+
+ /**
+ * @generated from field: int64 schema_size = 9;
+ */
+ schemaSize: bigint;
+
+ /**
+ * @generated from field: string prev_schema = 10;
+ */
+ prevSchema: string;
+
+ /**
+ * @generated from field: int64 prev_schema_size = 11;
+ */
+ prevSchemaSize: bigint;
+
+ /**
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string issue = 12;
+ */
+ issue: string;
+
+ /**
+ * Format: projects/{projects}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: string task_run = 13;
+ */
+ taskRun: string;
+
+ /**
+ * Could be empty
+ *
+ * @generated from field: string version = 14;
+ */
+ version: string;
+
+ /**
+ * Could be empty
+ * Or present but not found if deleted
+ *
+ * @generated from field: string revision = 15;
+ */
+ revision: string;
+
+ /**
+ * @generated from field: bytebase.v1.ChangedResources changed_resources = 16;
+ */
+ changedResources?: ChangedResources;
+
+ /**
+ * @generated from field: bytebase.v1.Changelog.Type type = 17;
+ */
+ type: Changelog_Type;
+};
+
+/**
+ * Describes the message bytebase.v1.Changelog.
+ * Use `create(ChangelogSchema)` to create a new message.
+ */
+export declare const ChangelogSchema: GenMessage<Changelog>;
+
+/**
+ * @generated from enum bytebase.v1.Changelog.Status
+ */
+export enum Changelog_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PENDING = 1;
+ */
+ PENDING = 1,
+
+ /**
+ * @generated from enum value: DONE = 2;
+ */
+ DONE = 2,
+
+ /**
+ * @generated from enum value: FAILED = 3;
+ */
+ FAILED = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Changelog.Status.
+ */
+export declare const Changelog_StatusSchema: GenEnum<Changelog_Status>;
+
+/**
+ * @generated from enum bytebase.v1.Changelog.Type
+ */
+export enum Changelog_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: BASELINE = 1;
+ */
+ BASELINE = 1,
+
+ /**
+ * @generated from enum value: MIGRATE = 2;
+ */
+ MIGRATE = 2,
+
+ /**
+ * @generated from enum value: MIGRATE_SDL = 3;
+ */
+ MIGRATE_SDL = 3,
+
+ /**
+ * @generated from enum value: MIGRATE_GHOST = 4;
+ */
+ MIGRATE_GHOST = 4,
+
+ /**
+ * @generated from enum value: DATA = 6;
+ */
+ DATA = 6,
+}
+
+/**
+ * Describes the enum bytebase.v1.Changelog.Type.
+ */
+export declare const Changelog_TypeSchema: GenEnum<Changelog_Type>;
+
+/**
+ * @generated from message bytebase.v1.GetSchemaStringRequest
+ */
+export declare type GetSchemaStringRequest = Message<"bytebase.v1.GetSchemaStringRequest"> & {
+ /**
+ * The name of the database.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.GetSchemaStringRequest.ObjectType type = 2;
+ */
+ type: GetSchemaStringRequest_ObjectType;
+
+ /**
+ * It's empty for DATABASE.
+ *
+ * @generated from field: string schema = 3;
+ */
+ schema: string;
+
+ /**
+ * It's empty for DATABASE and SCHEMA.
+ *
+ * @generated from field: string object = 4;
+ */
+ object: string;
+
+ /**
+ * If use the metadata to generate the schema string, the type is OBJECT_TYPE_UNSPECIFIED.
+ * Also the schema and object are empty.
+ *
+ * @generated from field: bytebase.v1.DatabaseMetadata metadata = 5;
+ */
+ metadata?: DatabaseMetadata;
+};
+
+/**
+ * Describes the message bytebase.v1.GetSchemaStringRequest.
+ * Use `create(GetSchemaStringRequestSchema)` to create a new message.
+ */
+export declare const GetSchemaStringRequestSchema: GenMessage<GetSchemaStringRequest>;
+
+/**
+ * @generated from enum bytebase.v1.GetSchemaStringRequest.ObjectType
+ */
+export enum GetSchemaStringRequest_ObjectType {
+ /**
+ * @generated from enum value: OBJECT_TYPE_UNSPECIFIED = 0;
+ */
+ OBJECT_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DATABASE = 1;
+ */
+ DATABASE = 1,
+
+ /**
+ * @generated from enum value: SCHEMA = 2;
+ */
+ SCHEMA = 2,
+
+ /**
+ * @generated from enum value: TABLE = 3;
+ */
+ TABLE = 3,
+
+ /**
+ * @generated from enum value: VIEW = 4;
+ */
+ VIEW = 4,
+
+ /**
+ * @generated from enum value: MATERIALIZED_VIEW = 5;
+ */
+ MATERIALIZED_VIEW = 5,
+
+ /**
+ * @generated from enum value: FUNCTION = 6;
+ */
+ FUNCTION = 6,
+
+ /**
+ * @generated from enum value: PROCEDURE = 7;
+ */
+ PROCEDURE = 7,
+
+ /**
+ * @generated from enum value: SEQUENCE = 8;
+ */
+ SEQUENCE = 8,
+}
+
+/**
+ * Describes the enum bytebase.v1.GetSchemaStringRequest.ObjectType.
+ */
+export declare const GetSchemaStringRequest_ObjectTypeSchema: GenEnum<GetSchemaStringRequest_ObjectType>;
+
+/**
+ * @generated from message bytebase.v1.GetSchemaStringResponse
+ */
+export declare type GetSchemaStringResponse = Message<"bytebase.v1.GetSchemaStringResponse"> & {
+ /**
+ * @generated from field: string schema_string = 1;
+ */
+ schemaString: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetSchemaStringResponse.
+ * Use `create(GetSchemaStringResponseSchema)` to create a new message.
+ */
+export declare const GetSchemaStringResponseSchema: GenMessage<GetSchemaStringResponse>;
+
+/**
+ * @generated from enum bytebase.v1.ChangelogView
+ */
+export enum ChangelogView {
+ /**
+ * The default / unset value.
+ * The API will default to the BASIC view.
+ *
+ * @generated from enum value: CHANGELOG_VIEW_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: CHANGELOG_VIEW_BASIC = 1;
+ */
+ BASIC = 1,
+
+ /**
+ * @generated from enum value: CHANGELOG_VIEW_FULL = 2;
+ */
+ FULL = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.ChangelogView.
+ */
+export declare const ChangelogViewSchema: GenEnum<ChangelogView>;
+
+/**
+ * @generated from service bytebase.v1.DatabaseService
+ */
+export declare const DatabaseService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.GetDatabase
+ */
+ getDatabase: {
+ methodKind: "unary";
+ input: typeof GetDatabaseRequestSchema;
+ output: typeof DatabaseSchema$;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.BatchGetDatabases
+ */
+ batchGetDatabases: {
+ methodKind: "unary";
+ input: typeof BatchGetDatabasesRequestSchema;
+ output: typeof BatchGetDatabasesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.ListDatabases
+ */
+ listDatabases: {
+ methodKind: "unary";
+ input: typeof ListDatabasesRequestSchema;
+ output: typeof ListDatabasesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.UpdateDatabase
+ */
+ updateDatabase: {
+ methodKind: "unary";
+ input: typeof UpdateDatabaseRequestSchema;
+ output: typeof DatabaseSchema$;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.BatchUpdateDatabases
+ */
+ batchUpdateDatabases: {
+ methodKind: "unary";
+ input: typeof BatchUpdateDatabasesRequestSchema;
+ output: typeof BatchUpdateDatabasesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.SyncDatabase
+ */
+ syncDatabase: {
+ methodKind: "unary";
+ input: typeof SyncDatabaseRequestSchema;
+ output: typeof SyncDatabaseResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.BatchSyncDatabases
+ */
+ batchSyncDatabases: {
+ methodKind: "unary";
+ input: typeof BatchSyncDatabasesRequestSchema;
+ output: typeof BatchSyncDatabasesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.GetDatabaseMetadata
+ */
+ getDatabaseMetadata: {
+ methodKind: "unary";
+ input: typeof GetDatabaseMetadataRequestSchema;
+ output: typeof DatabaseMetadataSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.GetDatabaseSchema
+ */
+ getDatabaseSchema: {
+ methodKind: "unary";
+ input: typeof GetDatabaseSchemaRequestSchema;
+ output: typeof DatabaseSchemaSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.DiffSchema
+ */
+ diffSchema: {
+ methodKind: "unary";
+ input: typeof DiffSchemaRequestSchema;
+ output: typeof DiffSchemaResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.ListSecrets
+ */
+ listSecrets: {
+ methodKind: "unary";
+ input: typeof ListSecretsRequestSchema;
+ output: typeof ListSecretsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.UpdateSecret
+ */
+ updateSecret: {
+ methodKind: "unary";
+ input: typeof UpdateSecretRequestSchema;
+ output: typeof SecretSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.DeleteSecret
+ */
+ deleteSecret: {
+ methodKind: "unary";
+ input: typeof DeleteSecretRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.ListChangelogs
+ */
+ listChangelogs: {
+ methodKind: "unary";
+ input: typeof ListChangelogsRequestSchema;
+ output: typeof ListChangelogsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.GetChangelog
+ */
+ getChangelog: {
+ methodKind: "unary";
+ input: typeof GetChangelogRequestSchema;
+ output: typeof ChangelogSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.DatabaseService.GetSchemaString
+ */
+ getSchemaString: {
+ methodKind: "unary";
+ input: typeof GetSchemaStringRequestSchema;
+ output: typeof GetSchemaStringResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/database_service_pb.js b/frontend/src/types/proto-es/v1/database_service_pb.js
new file mode 100644
index 0000000000..6fa13cec9f
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/database_service_pb.js
@@ -0,0 +1,574 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/database_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_instance_service } from "./instance_service_pb";
+
+/**
+ * Describes the file v1/database_service.proto.
+ */
+export const file_v1_database_service = /*@__PURE__*/
+ fileDesc("Chl2MS9kYXRhYmFzZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJCChJHZXREYXRhYmFzZVJlcXVlc3QSLAoEbmFtZRgBIAEoCUIe4kEBAvpBFwoVYnl0ZWJhc2UuY29tL0RhdGFiYXNlInkKGEJhdGNoR2V0RGF0YWJhc2VzUmVxdWVzdBIuCgZwYXJlbnQYASABKAlCHuJBAQL6QRcSFWJ5dGViYXNlLmNvbS9EYXRhYmFzZRItCgVuYW1lcxgCIAMoCUIe4kEBAvpBFwoVYnl0ZWJhc2UuY29tL0RhdGFiYXNlIkUKGUJhdGNoR2V0RGF0YWJhc2VzUmVz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2cSIC5ieXRlYmFzZS52MS5HZXRDaGFuZ2Vsb2dSZXF1ZXN0GhYuYnl0ZWJhc2UudjEuQ2hhbmdlbG9nIlfaQQRuYW1liuowEWJiLmNoYW5nZWxvZ3MuZ2V0kOowAYLT5JMCMRIvL3YxL3tuYW1lPWluc3RhbmNlcy8qL2RhdGFiYXNlcy8qL2NoYW5nZWxvZ3MvKn0SugEKD0dldFNjaGVtYVN0cmluZxIjLmJ5dGViYXNlLnYxLkdldFNjaGVtYVN0cmluZ1JlcXVlc3QaJC5ieXRlYmFzZS52MS5HZXRTY2hlbWFTdHJpbmdSZXNwb25zZSJc2kEEbmFtZYrqMBZiYi5kYXRhYmFzZXMuZ2V0U2NoZW1hkOowAYLT5JMCMRIvL3YxL3tuYW1lPWluc3RhbmNlcy8qL2RhdGFiYXNlcy8qL3NjaGVtYVN0cmluZ31CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_instance_service]);
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseRequest.
+ * Use `create(GetDatabaseRequestSchema)` to create a new message.
+ */
+export const GetDatabaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 0);
+
+/**
+ * Describes the message bytebase.v1.BatchGetDatabasesRequest.
+ * Use `create(BatchGetDatabasesRequestSchema)` to create a new message.
+ */
+export const BatchGetDatabasesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 1);
+
+/**
+ * Describes the message bytebase.v1.BatchGetDatabasesResponse.
+ * Use `create(BatchGetDatabasesResponseSchema)` to create a new message.
+ */
+export const BatchGetDatabasesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 2);
+
+/**
+ * Describes the message bytebase.v1.ListDatabasesRequest.
+ * Use `create(ListDatabasesRequestSchema)` to create a new message.
+ */
+export const ListDatabasesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 3);
+
+/**
+ * Describes the message bytebase.v1.ListDatabasesResponse.
+ * Use `create(ListDatabasesResponseSchema)` to create a new message.
+ */
+export const ListDatabasesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 4);
+
+/**
+ * Describes the message bytebase.v1.UpdateDatabaseRequest.
+ * Use `create(UpdateDatabaseRequestSchema)` to create a new message.
+ */
+export const UpdateDatabaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 5);
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateDatabasesRequest.
+ * Use `create(BatchUpdateDatabasesRequestSchema)` to create a new message.
+ */
+export const BatchUpdateDatabasesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 6);
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateDatabasesResponse.
+ * Use `create(BatchUpdateDatabasesResponseSchema)` to create a new message.
+ */
+export const BatchUpdateDatabasesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 7);
+
+/**
+ * Describes the message bytebase.v1.BatchSyncDatabasesRequest.
+ * Use `create(BatchSyncDatabasesRequestSchema)` to create a new message.
+ */
+export const BatchSyncDatabasesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 8);
+
+/**
+ * Describes the message bytebase.v1.BatchSyncDatabasesResponse.
+ * Use `create(BatchSyncDatabasesResponseSchema)` to create a new message.
+ */
+export const BatchSyncDatabasesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 9);
+
+/**
+ * Describes the message bytebase.v1.SyncDatabaseRequest.
+ * Use `create(SyncDatabaseRequestSchema)` to create a new message.
+ */
+export const SyncDatabaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 10);
+
+/**
+ * Describes the message bytebase.v1.SyncDatabaseResponse.
+ * Use `create(SyncDatabaseResponseSchema)` to create a new message.
+ */
+export const SyncDatabaseResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 11);
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseMetadataRequest.
+ * Use `create(GetDatabaseMetadataRequestSchema)` to create a new message.
+ */
+export const GetDatabaseMetadataRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 12);
+
+/**
+ * Describes the message bytebase.v1.GetDatabaseSchemaRequest.
+ * Use `create(GetDatabaseSchemaRequestSchema)` to create a new message.
+ */
+export const GetDatabaseSchemaRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 13);
+
+/**
+ * Describes the message bytebase.v1.DiffSchemaRequest.
+ * Use `create(DiffSchemaRequestSchema)` to create a new message.
+ */
+export const DiffSchemaRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 14);
+
+/**
+ * Describes the message bytebase.v1.DiffSchemaResponse.
+ * Use `create(DiffSchemaResponseSchema)` to create a new message.
+ */
+export const DiffSchemaResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 15);
+
+/**
+ * Describes the message bytebase.v1.Database.
+ * Use `create(DatabaseSchema$)` to create a new message.
+ */
+export const DatabaseSchema$ = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 16);
+
+/**
+ * Describes the message bytebase.v1.DatabaseMetadata.
+ * Use `create(DatabaseMetadataSchema)` to create a new message.
+ */
+export const DatabaseMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 17);
+
+/**
+ * Describes the message bytebase.v1.SchemaMetadata.
+ * Use `create(SchemaMetadataSchema)` to create a new message.
+ */
+export const SchemaMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 18);
+
+/**
+ * Describes the message bytebase.v1.EnumTypeMetadata.
+ * Use `create(EnumTypeMetadataSchema)` to create a new message.
+ */
+export const EnumTypeMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 19);
+
+/**
+ * Describes the message bytebase.v1.EventMetadata.
+ * Use `create(EventMetadataSchema)` to create a new message.
+ */
+export const EventMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 20);
+
+/**
+ * Describes the message bytebase.v1.SequenceMetadata.
+ * Use `create(SequenceMetadataSchema)` to create a new message.
+ */
+export const SequenceMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 21);
+
+/**
+ * Describes the message bytebase.v1.TriggerMetadata.
+ * Use `create(TriggerMetadataSchema)` to create a new message.
+ */
+export const TriggerMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 22);
+
+/**
+ * Describes the message bytebase.v1.ExternalTableMetadata.
+ * Use `create(ExternalTableMetadataSchema)` to create a new message.
+ */
+export const ExternalTableMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 23);
+
+/**
+ * Describes the message bytebase.v1.TableMetadata.
+ * Use `create(TableMetadataSchema)` to create a new message.
+ */
+export const TableMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 24);
+
+/**
+ * Describes the message bytebase.v1.CheckConstraintMetadata.
+ * Use `create(CheckConstraintMetadataSchema)` to create a new message.
+ */
+export const CheckConstraintMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 25);
+
+/**
+ * Describes the message bytebase.v1.TablePartitionMetadata.
+ * Use `create(TablePartitionMetadataSchema)` to create a new message.
+ */
+export const TablePartitionMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 26);
+
+/**
+ * Describes the enum bytebase.v1.TablePartitionMetadata.Type.
+ */
+export const TablePartitionMetadata_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 26, 0);
+
+/**
+ * Type is the type of a table partition, some database engines may not
+ * support all types. Only avilable for the following database engines now:
+ * MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY,
+ * LINEAR_KEY
+ * (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html) TiDB:
+ * RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY PostgreSQL: RANGE,
+ * LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
+ *
+ * @generated from enum bytebase.v1.TablePartitionMetadata.Type
+ */
+export const TablePartitionMetadata_Type = /*@__PURE__*/
+ tsEnum(TablePartitionMetadata_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.ColumnMetadata.
+ * Use `create(ColumnMetadataSchema)` to create a new message.
+ */
+export const ColumnMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 27);
+
+/**
+ * Describes the enum bytebase.v1.ColumnMetadata.IdentityGeneration.
+ */
+export const ColumnMetadata_IdentityGenerationSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 27, 0);
+
+/**
+ * @generated from enum bytebase.v1.ColumnMetadata.IdentityGeneration
+ */
+export const ColumnMetadata_IdentityGeneration = /*@__PURE__*/
+ tsEnum(ColumnMetadata_IdentityGenerationSchema);
+
+/**
+ * Describes the message bytebase.v1.GenerationMetadata.
+ * Use `create(GenerationMetadataSchema)` to create a new message.
+ */
+export const GenerationMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 28);
+
+/**
+ * Describes the enum bytebase.v1.GenerationMetadata.Type.
+ */
+export const GenerationMetadata_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 28, 0);
+
+/**
+ * @generated from enum bytebase.v1.GenerationMetadata.Type
+ */
+export const GenerationMetadata_Type = /*@__PURE__*/
+ tsEnum(GenerationMetadata_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.ViewMetadata.
+ * Use `create(ViewMetadataSchema)` to create a new message.
+ */
+export const ViewMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 29);
+
+/**
+ * Describes the message bytebase.v1.DependencyColumn.
+ * Use `create(DependencyColumnSchema)` to create a new message.
+ */
+export const DependencyColumnSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 30);
+
+/**
+ * Describes the message bytebase.v1.MaterializedViewMetadata.
+ * Use `create(MaterializedViewMetadataSchema)` to create a new message.
+ */
+export const MaterializedViewMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 31);
+
+/**
+ * Describes the message bytebase.v1.DependencyTable.
+ * Use `create(DependencyTableSchema)` to create a new message.
+ */
+export const DependencyTableSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 32);
+
+/**
+ * Describes the message bytebase.v1.FunctionMetadata.
+ * Use `create(FunctionMetadataSchema)` to create a new message.
+ */
+export const FunctionMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 33);
+
+/**
+ * Describes the message bytebase.v1.ProcedureMetadata.
+ * Use `create(ProcedureMetadataSchema)` to create a new message.
+ */
+export const ProcedureMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 34);
+
+/**
+ * Describes the message bytebase.v1.PackageMetadata.
+ * Use `create(PackageMetadataSchema)` to create a new message.
+ */
+export const PackageMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 35);
+
+/**
+ * Describes the message bytebase.v1.TaskMetadata.
+ * Use `create(TaskMetadataSchema)` to create a new message.
+ */
+export const TaskMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 36);
+
+/**
+ * Describes the enum bytebase.v1.TaskMetadata.State.
+ */
+export const TaskMetadata_StateSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 36, 0);
+
+/**
+ * @generated from enum bytebase.v1.TaskMetadata.State
+ */
+export const TaskMetadata_State = /*@__PURE__*/
+ tsEnum(TaskMetadata_StateSchema);
+
+/**
+ * Describes the message bytebase.v1.StreamMetadata.
+ * Use `create(StreamMetadataSchema)` to create a new message.
+ */
+export const StreamMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 37);
+
+/**
+ * Describes the enum bytebase.v1.StreamMetadata.Type.
+ */
+export const StreamMetadata_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 37, 0);
+
+/**
+ * @generated from enum bytebase.v1.StreamMetadata.Type
+ */
+export const StreamMetadata_Type = /*@__PURE__*/
+ tsEnum(StreamMetadata_TypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.StreamMetadata.Mode.
+ */
+export const StreamMetadata_ModeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 37, 1);
+
+/**
+ * @generated from enum bytebase.v1.StreamMetadata.Mode
+ */
+export const StreamMetadata_Mode = /*@__PURE__*/
+ tsEnum(StreamMetadata_ModeSchema);
+
+/**
+ * Describes the message bytebase.v1.IndexMetadata.
+ * Use `create(IndexMetadataSchema)` to create a new message.
+ */
+export const IndexMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 38);
+
+/**
+ * Describes the message bytebase.v1.ExtensionMetadata.
+ * Use `create(ExtensionMetadataSchema)` to create a new message.
+ */
+export const ExtensionMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 39);
+
+/**
+ * Describes the message bytebase.v1.ForeignKeyMetadata.
+ * Use `create(ForeignKeyMetadataSchema)` to create a new message.
+ */
+export const ForeignKeyMetadataSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 40);
+
+/**
+ * Describes the message bytebase.v1.DatabaseSchema.
+ * Use `create(DatabaseSchemaSchema)` to create a new message.
+ */
+export const DatabaseSchemaSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 41);
+
+/**
+ * Describes the message bytebase.v1.ListSecretsRequest.
+ * Use `create(ListSecretsRequestSchema)` to create a new message.
+ */
+export const ListSecretsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 42);
+
+/**
+ * Describes the message bytebase.v1.ListSecretsResponse.
+ * Use `create(ListSecretsResponseSchema)` to create a new message.
+ */
+export const ListSecretsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 43);
+
+/**
+ * Describes the message bytebase.v1.UpdateSecretRequest.
+ * Use `create(UpdateSecretRequestSchema)` to create a new message.
+ */
+export const UpdateSecretRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 44);
+
+/**
+ * Describes the message bytebase.v1.DeleteSecretRequest.
+ * Use `create(DeleteSecretRequestSchema)` to create a new message.
+ */
+export const DeleteSecretRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 45);
+
+/**
+ * Describes the message bytebase.v1.Secret.
+ * Use `create(SecretSchema)` to create a new message.
+ */
+export const SecretSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 46);
+
+/**
+ * Describes the message bytebase.v1.ChangedResources.
+ * Use `create(ChangedResourcesSchema)` to create a new message.
+ */
+export const ChangedResourcesSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 47);
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceDatabase.
+ * Use `create(ChangedResourceDatabaseSchema)` to create a new message.
+ */
+export const ChangedResourceDatabaseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 48);
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceSchema.
+ * Use `create(ChangedResourceSchemaSchema)` to create a new message.
+ */
+export const ChangedResourceSchemaSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 49);
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceTable.
+ * Use `create(ChangedResourceTableSchema)` to create a new message.
+ */
+export const ChangedResourceTableSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 50);
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceView.
+ * Use `create(ChangedResourceViewSchema)` to create a new message.
+ */
+export const ChangedResourceViewSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 51);
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceFunction.
+ * Use `create(ChangedResourceFunctionSchema)` to create a new message.
+ */
+export const ChangedResourceFunctionSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 52);
+
+/**
+ * Describes the message bytebase.v1.ChangedResourceProcedure.
+ * Use `create(ChangedResourceProcedureSchema)` to create a new message.
+ */
+export const ChangedResourceProcedureSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 53);
+
+/**
+ * Describes the message bytebase.v1.ListChangelogsRequest.
+ * Use `create(ListChangelogsRequestSchema)` to create a new message.
+ */
+export const ListChangelogsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 54);
+
+/**
+ * Describes the message bytebase.v1.ListChangelogsResponse.
+ * Use `create(ListChangelogsResponseSchema)` to create a new message.
+ */
+export const ListChangelogsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 55);
+
+/**
+ * Describes the message bytebase.v1.GetChangelogRequest.
+ * Use `create(GetChangelogRequestSchema)` to create a new message.
+ */
+export const GetChangelogRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 56);
+
+/**
+ * Describes the message bytebase.v1.Changelog.
+ * Use `create(ChangelogSchema)` to create a new message.
+ */
+export const ChangelogSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 57);
+
+/**
+ * Describes the enum bytebase.v1.Changelog.Status.
+ */
+export const Changelog_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 57, 0);
+
+/**
+ * @generated from enum bytebase.v1.Changelog.Status
+ */
+export const Changelog_Status = /*@__PURE__*/
+ tsEnum(Changelog_StatusSchema);
+
+/**
+ * Describes the enum bytebase.v1.Changelog.Type.
+ */
+export const Changelog_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 57, 1);
+
+/**
+ * @generated from enum bytebase.v1.Changelog.Type
+ */
+export const Changelog_Type = /*@__PURE__*/
+ tsEnum(Changelog_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.GetSchemaStringRequest.
+ * Use `create(GetSchemaStringRequestSchema)` to create a new message.
+ */
+export const GetSchemaStringRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 58);
+
+/**
+ * Describes the enum bytebase.v1.GetSchemaStringRequest.ObjectType.
+ */
+export const GetSchemaStringRequest_ObjectTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 58, 0);
+
+/**
+ * @generated from enum bytebase.v1.GetSchemaStringRequest.ObjectType
+ */
+export const GetSchemaStringRequest_ObjectType = /*@__PURE__*/
+ tsEnum(GetSchemaStringRequest_ObjectTypeSchema);
+
+/**
+ * Describes the message bytebase.v1.GetSchemaStringResponse.
+ * Use `create(GetSchemaStringResponseSchema)` to create a new message.
+ */
+export const GetSchemaStringResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_database_service, 59);
+
+/**
+ * Describes the enum bytebase.v1.ChangelogView.
+ */
+export const ChangelogViewSchema = /*@__PURE__*/
+ enumDesc(file_v1_database_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.ChangelogView
+ */
+export const ChangelogView = /*@__PURE__*/
+ tsEnum(ChangelogViewSchema);
+
+/**
+ * @generated from service bytebase.v1.DatabaseService
+ */
+export const DatabaseService = /*@__PURE__*/
+ serviceDesc(file_v1_database_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/group_service_pb.d.ts b/frontend/src/types/proto-es/v1/group_service_pb.d.ts
new file mode 100644
index 0000000000..35c8efe2db
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/group_service_pb.d.ts
@@ -0,0 +1,313 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/group_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/group_service.proto.
+ */
+export declare const file_v1_group_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetGroupRequest
+ */
+export declare type GetGroupRequest = Message<"bytebase.v1.GetGroupRequest"> & {
+ /**
+ * The name of the group to retrieve.
+ * Format: groups/{email}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetGroupRequest.
+ * Use `create(GetGroupRequestSchema)` to create a new message.
+ */
+export declare const GetGroupRequestSchema: GenMessage<GetGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListGroupsRequest
+ */
+export declare type ListGroupsRequest = Message<"bytebase.v1.ListGroupsRequest"> & {
+ /**
+ * Not used.
+ * The maximum number of groups to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 groups will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListGroups` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListGroups` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListGroupsRequest.
+ * Use `create(ListGroupsRequestSchema)` to create a new message.
+ */
+export declare const ListGroupsRequestSchema: GenMessage<ListGroupsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListGroupsResponse
+ */
+export declare type ListGroupsResponse = Message<"bytebase.v1.ListGroupsResponse"> & {
+ /**
+ * The groups from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Group groups = 1;
+ */
+ groups: Group[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListGroupsResponse.
+ * Use `create(ListGroupsResponseSchema)` to create a new message.
+ */
+export declare const ListGroupsResponseSchema: GenMessage<ListGroupsResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateGroupRequest
+ */
+export declare type CreateGroupRequest = Message<"bytebase.v1.CreateGroupRequest"> & {
+ /**
+ * The group to create.
+ *
+ * @generated from field: bytebase.v1.Group group = 1;
+ */
+ group?: Group;
+
+ /**
+ * The email to use for the group, which will become the final component
+ * of the group's resource name.
+ *
+ * @generated from field: string group_email = 2;
+ */
+ groupEmail: string;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateGroupRequest.
+ * Use `create(CreateGroupRequestSchema)` to create a new message.
+ */
+export declare const CreateGroupRequestSchema: GenMessage<CreateGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateGroupRequest
+ */
+export declare type UpdateGroupRequest = Message<"bytebase.v1.UpdateGroupRequest"> & {
+ /**
+ * The group to update.
+ *
+ * The group's `name` field is used to identify the group to update.
+ * Format: groups/{email}
+ *
+ * @generated from field: bytebase.v1.Group group = 1;
+ */
+ group?: Group;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * If set to true, and the group is not found, a new group will be created.
+ * In this situation, `update_mask` is ignored.
+ *
+ * @generated from field: bool allow_missing = 3;
+ */
+ allowMissing: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateGroupRequest.
+ * Use `create(UpdateGroupRequestSchema)` to create a new message.
+ */
+export declare const UpdateGroupRequestSchema: GenMessage<UpdateGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteGroupRequest
+ */
+export declare type DeleteGroupRequest = Message<"bytebase.v1.DeleteGroupRequest"> & {
+ /**
+ * The name of the group to delete.
+ * Format: groups/{email}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteGroupRequest.
+ * Use `create(DeleteGroupRequestSchema)` to create a new message.
+ */
+export declare const DeleteGroupRequestSchema: GenMessage<DeleteGroupRequest>;
+
+/**
+ * @generated from message bytebase.v1.GroupMember
+ */
+export declare type GroupMember = Message<"bytebase.v1.GroupMember"> & {
+ /**
+ * Member is the principal who belong to this group.
+ *
+ * Format: users/[email protected]
+ *
+ * @generated from field: string member = 1;
+ */
+ member: string;
+
+ /**
+ * @generated from field: bytebase.v1.GroupMember.Role role = 2;
+ */
+ role: GroupMember_Role;
+};
+
+/**
+ * Describes the message bytebase.v1.GroupMember.
+ * Use `create(GroupMemberSchema)` to create a new message.
+ */
+export declare const GroupMemberSchema: GenMessage<GroupMember>;
+
+/**
+ * @generated from enum bytebase.v1.GroupMember.Role
+ */
+export enum GroupMember_Role {
+ /**
+ * @generated from enum value: ROLE_UNSPECIFIED = 0;
+ */
+ ROLE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: OWNER = 1;
+ */
+ OWNER = 1,
+
+ /**
+ * @generated from enum value: MEMBER = 2;
+ */
+ MEMBER = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.GroupMember.Role.
+ */
+export declare const GroupMember_RoleSchema: GenEnum<GroupMember_Role>;
+
+/**
+ * @generated from message bytebase.v1.Group
+ */
+export declare type Group = Message<"bytebase.v1.Group"> & {
+ /**
+ * The name of the group to retrieve.
+ * Format: groups/{group}, group is an email.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 3;
+ */
+ description: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.GroupMember members = 5;
+ */
+ members: GroupMember[];
+
+ /**
+ * source means where the group comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID.
+ *
+ * @generated from field: string source = 7;
+ */
+ source: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Group.
+ * Use `create(GroupSchema)` to create a new message.
+ */
+export declare const GroupSchema: GenMessage<Group>;
+
+/**
+ * @generated from service bytebase.v1.GroupService
+ */
+export declare const GroupService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.GroupService.GetGroup
+ */
+ getGroup: {
+ methodKind: "unary";
+ input: typeof GetGroupRequestSchema;
+ output: typeof GroupSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.GroupService.ListGroups
+ */
+ listGroups: {
+ methodKind: "unary";
+ input: typeof ListGroupsRequestSchema;
+ output: typeof ListGroupsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.GroupService.CreateGroup
+ */
+ createGroup: {
+ methodKind: "unary";
+ input: typeof CreateGroupRequestSchema;
+ output: typeof GroupSchema;
+ },
+ /**
+ * UpdateGroup updates the group.
+ * Users with "bb.groups.update" permission on the workspace or the group owner can access this method.
+ *
+ * @generated from rpc bytebase.v1.GroupService.UpdateGroup
+ */
+ updateGroup: {
+ methodKind: "unary";
+ input: typeof UpdateGroupRequestSchema;
+ output: typeof GroupSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.GroupService.DeleteGroup
+ */
+ deleteGroup: {
+ methodKind: "unary";
+ input: typeof DeleteGroupRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/group_service_pb.js b/frontend/src/types/proto-es/v1/group_service_pb.js
new file mode 100644
index 0000000000..ffe35e070f
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/group_service_pb.js
@@ -0,0 +1,92 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/group_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/group_service.proto.
+ */
+export const file_v1_group_service = /*@__PURE__*/
+ fileDesc("ChZ2MS9ncm91cF9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSI8Cg9HZXRHcm91cFJlcXVlc3QSKQoEbmFtZRgBIAEoCUIb4kEBAvpBFAoSYnl0ZWJhc2UuY29tL0dyb3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MS5Hcm91cCI32kEEbmFtZYrqMA1iYi5ncm91cHMuZ2V0kOowAYLT5JMCFRITL3YxL3tuYW1lPWdyb3Vwcy8qfRJ6CgpMaXN0R3JvdXBzEh4uYnl0ZWJhc2UudjEuTGlzdEdyb3Vwc1JlcXVlc3QaHy5ieXRlYmFzZS52MS5MaXN0R3JvdXBzUmVzcG9uc2UiK9pBAIrqMA5iYi5ncm91cHMubGlzdJDqMAGC0+STAgwSCi92MS9ncm91cHMSgQEKC0NyZWF0ZUdyb3VwEh8uYnl0ZWJhc2UudjEuQ3JlYXRlR3JvdXBSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuR3JvdXAiPdpBBWdyb3VwiuowEGJiLmdyb3Vwcy5jcmVhdGWQ6jABmOowAYLT5JMCEzoFZ3JvdXAiCi92MS9ncm91cHMSnAEKC1VwZGF0ZUdyb3VwEh8uYnl0ZWJhc2UudjEuVXBkYXRlR3JvdXBSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuR3JvdXAiWNpBEWdyb3VwLHVwZGF0ZV9tYXNriuowEGJiLmdyb3Vwcy51cGRhdGWQ6jACmOowAYLT5JMCIjoFZ3JvdXAyGS92MS97Z3JvdXAubmFtZT1ncm91cHMvKn0ShgEKC0RlbGV0ZUdyb3VwEh8uYnl0ZWJhc2UudjEuRGVsZXRlR3JvdXBSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ij7aQQRuYW1liuowEGJiLmdyb3Vwcy5kZWxldGWQ6jACmOowAYLT5JMCFSoTL3YxL3tuYW1lPWdyb3Vwcy8qfUI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.GetGroupRequest.
+ * Use `create(GetGroupRequestSchema)` to create a new message.
+ */
+export const GetGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListGroupsRequest.
+ * Use `create(ListGroupsRequestSchema)` to create a new message.
+ */
+export const ListGroupsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListGroupsResponse.
+ * Use `create(ListGroupsResponseSchema)` to create a new message.
+ */
+export const ListGroupsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 2);
+
+/**
+ * Describes the message bytebase.v1.CreateGroupRequest.
+ * Use `create(CreateGroupRequestSchema)` to create a new message.
+ */
+export const CreateGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateGroupRequest.
+ * Use `create(UpdateGroupRequestSchema)` to create a new message.
+ */
+export const UpdateGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteGroupRequest.
+ * Use `create(DeleteGroupRequestSchema)` to create a new message.
+ */
+export const DeleteGroupRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 5);
+
+/**
+ * Describes the message bytebase.v1.GroupMember.
+ * Use `create(GroupMemberSchema)` to create a new message.
+ */
+export const GroupMemberSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 6);
+
+/**
+ * Describes the enum bytebase.v1.GroupMember.Role.
+ */
+export const GroupMember_RoleSchema = /*@__PURE__*/
+ enumDesc(file_v1_group_service, 6, 0);
+
+/**
+ * @generated from enum bytebase.v1.GroupMember.Role
+ */
+export const GroupMember_Role = /*@__PURE__*/
+ tsEnum(GroupMember_RoleSchema);
+
+/**
+ * Describes the message bytebase.v1.Group.
+ * Use `create(GroupSchema)` to create a new message.
+ */
+export const GroupSchema = /*@__PURE__*/
+ messageDesc(file_v1_group_service, 7);
+
+/**
+ * @generated from service bytebase.v1.GroupService
+ */
+export const GroupService = /*@__PURE__*/
+ serviceDesc(file_v1_group_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/iam_policy_pb.d.ts b/frontend/src/types/proto-es/v1/iam_policy_pb.d.ts
new file mode 100644
index 0000000000..14c708b471
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/iam_policy_pb.d.ts
@@ -0,0 +1,241 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/iam_policy.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Expr } from "../google/type/expr_pb";
+import type { Expr as Expr$1 } from "../google/api/expr/v1alpha1/syntax_pb";
+
+/**
+ * Describes the file v1/iam_policy.proto.
+ */
+export declare const file_v1_iam_policy: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetIamPolicyRequest
+ */
+export declare type GetIamPolicyRequest = Message<"bytebase.v1.GetIamPolicyRequest"> & {
+ /**
+ * The name of the resource to get the IAM policy.
+ * Format: projects/{project}
+ * Format: workspaces/{workspace}
+ *
+ * @generated from field: string resource = 1;
+ */
+ resource: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetIamPolicyRequest.
+ * Use `create(GetIamPolicyRequestSchema)` to create a new message.
+ */
+export declare const GetIamPolicyRequestSchema: GenMessage<GetIamPolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.SetIamPolicyRequest
+ */
+export declare type SetIamPolicyRequest = Message<"bytebase.v1.SetIamPolicyRequest"> & {
+ /**
+ * The name of the resource to set the IAM policy.
+ * Format: projects/{project}
+ * Format: workspaces/{workspace}
+ *
+ * @generated from field: string resource = 1;
+ */
+ resource: string;
+
+ /**
+ * @generated from field: bytebase.v1.IamPolicy policy = 2;
+ */
+ policy?: IamPolicy;
+
+ /**
+ * The current etag of the policy.
+ *
+ * @generated from field: string etag = 3;
+ */
+ etag: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SetIamPolicyRequest.
+ * Use `create(SetIamPolicyRequestSchema)` to create a new message.
+ */
+export declare const SetIamPolicyRequestSchema: GenMessage<SetIamPolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.IamPolicy
+ */
+export declare type IamPolicy = Message<"bytebase.v1.IamPolicy"> & {
+ /**
+ * Collection of binding.
+ * A binding binds one or more project members to a single project role.
+ *
+ * @generated from field: repeated bytebase.v1.Binding bindings = 1;
+ */
+ bindings: Binding[];
+
+ /**
+ * The current etag of the policy.
+ * If an etag is provided and does not match the current etag of the poliy,
+ * the call will be blocked and an ABORTED error will be returned.
+ *
+ * @generated from field: string etag = 2;
+ */
+ etag: string;
+};
+
+/**
+ * Describes the message bytebase.v1.IamPolicy.
+ * Use `create(IamPolicySchema)` to create a new message.
+ */
+export declare const IamPolicySchema: GenMessage<IamPolicy>;
+
+/**
+ * @generated from message bytebase.v1.Binding
+ */
+export declare type Binding = Message<"bytebase.v1.Binding"> & {
+ /**
+ * The role that is assigned to the members.
+ * Format: roles/{role}
+ *
+ * @generated from field: string role = 1;
+ */
+ role: string;
+
+ /**
+ * Specifies the principals requesting access for a Bytebase resource.
+ * For users, the member should be: user:{email}
+ * For groups, the member should be: group:{email}
+ *
+ * @generated from field: repeated string members = 2;
+ */
+ members: string[];
+
+ /**
+ * The condition that is associated with this binding, only used in the project IAM policy.
+ * If the condition evaluates to true, then this binding applies to the current request.
+ * If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Support variables:
+ * resource.database: the database full name in "instances/{instance}/databases/{database}" format, used by the "roles/sqlEditorUser" and "roles/projectExporter" role, support "==" operator.
+ * resource.schema: the schema name, used by the "roles/sqlEditorUser" and "roles/projectExporter" role, support "==" operator.
+ * resource.table: the table name, used by the "roles/sqlEditorUser" and "roles/projectExporter" role, support "==" operator.
+ * request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")`.
+ * request.row_limit: the maximum export rows, used by the "roles/projectExporter" role. Only support "<=" operation.
+ *
+ * For example:
+ * resource.database == "instances/local-pg/databases/postgres" && resource.schema in ["public","another_schema"]
+ * resource.database == "instances/local-pg/databases/bytebase" && resource.schema == "public" && resource.table in ["audit_log"]
+ * request.time < timestamp("2025-04-26T11:24:48.655Z") && request.row_limit <= 1000
+ *
+ * @generated from field: google.type.Expr condition = 3;
+ */
+ condition?: Expr;
+
+ /**
+ * The parsed expression of the condition.
+ *
+ * @generated from field: google.api.expr.v1alpha1.Expr parsed_expr = 4;
+ */
+ parsedExpr?: Expr$1;
+};
+
+/**
+ * Describes the message bytebase.v1.Binding.
+ * Use `create(BindingSchema)` to create a new message.
+ */
+export declare const BindingSchema: GenMessage<Binding>;
+
+/**
+ * The difference delta between two policies.
+ *
+ * @generated from message bytebase.v1.PolicyDelta
+ */
+export declare type PolicyDelta = Message<"bytebase.v1.PolicyDelta"> & {
+ /**
+ * The delta for Bindings between two policies.
+ *
+ * @generated from field: repeated bytebase.v1.BindingDelta binding_deltas = 1;
+ */
+ bindingDeltas: BindingDelta[];
+};
+
+/**
+ * Describes the message bytebase.v1.PolicyDelta.
+ * Use `create(PolicyDeltaSchema)` to create a new message.
+ */
+export declare const PolicyDeltaSchema: GenMessage<PolicyDelta>;
+
+/**
+ * One delta entry for Binding. Each individual change (only one member in each
+ * entry) to a binding will be a separate entry.
+ *
+ * @generated from message bytebase.v1.BindingDelta
+ */
+export declare type BindingDelta = Message<"bytebase.v1.BindingDelta"> & {
+ /**
+ * The action that was performed on a Binding.
+ *
+ * @generated from field: bytebase.v1.BindingDelta.Action action = 1;
+ */
+ action: BindingDelta_Action;
+
+ /**
+ * Role that is assigned to `members`.
+ * For example, `roles/projectOwner`.
+ *
+ * @generated from field: string role = 2;
+ */
+ role: string;
+
+ /**
+ * Follows the same format of Binding.members.
+ *
+ * @generated from field: string member = 3;
+ */
+ member: string;
+
+ /**
+ * The condition that is associated with this binding.
+ *
+ * @generated from field: google.type.Expr condition = 4;
+ */
+ condition?: Expr;
+};
+
+/**
+ * Describes the message bytebase.v1.BindingDelta.
+ * Use `create(BindingDeltaSchema)` to create a new message.
+ */
+export declare const BindingDeltaSchema: GenMessage<BindingDelta>;
+
+/**
+ * The type of action performed on a Binding in a policy.
+ *
+ * @generated from enum bytebase.v1.BindingDelta.Action
+ */
+export enum BindingDelta_Action {
+ /**
+ * @generated from enum value: ACTION_UNSPECIFIED = 0;
+ */
+ ACTION_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ADD = 1;
+ */
+ ADD = 1,
+
+ /**
+ * @generated from enum value: REMOVE = 2;
+ */
+ REMOVE = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.BindingDelta.Action.
+ */
+export declare const BindingDelta_ActionSchema: GenEnum<BindingDelta_Action>;
+
diff --git a/frontend/src/types/proto-es/v1/iam_policy_pb.js b/frontend/src/types/proto-es/v1/iam_policy_pb.js
new file mode 100644
index 0000000000..f1f310a3bd
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/iam_policy_pb.js
@@ -0,0 +1,72 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/iam_policy.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_expr_v1alpha1_syntax } from "../google/api/expr/v1alpha1/syntax_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_type_expr } from "../google/type/expr_pb";
+
+/**
+ * Describes the file v1/iam_policy.proto.
+ */
+export const file_v1_iam_policy = /*@__PURE__*/
+ fileDesc("ChN2MS9pYW1fcG9saWN5LnByb3RvEgtieXRlYmFzZS52MSJIChNHZXRJYW1Qb2xpY3lSZXF1ZXN0EjEKCHJlc291cmNlGAEgASgJQh/iQQEC+kEYEhZieXRlYmFzZS5jb20vSUFNUG9saWN5IoQBChNTZXRJYW1Qb2xpY3lSZXF1ZXN0EjEKCHJlc291cmNlGAEgASgJQh/iQQEC+kEYEhZieXRlYmFzZS5jb20vSUFNUG9saWN5EiwKBnBvbGljeRgCIAEoCzIWLmJ5dGViYXNlLnYxLklhbVBvbGljeUIE4kEBAhIMCgRldGFnGAMgASgJIkEKCUlhbVBvbGljeRImCghiaW5kaW5ncxgBIAMoCzIULmJ5dGViYXNlLnYxLkJpbmRpbmcSDAoEZXRhZxgCIAEoCSKJAQoHQmluZGluZxIMCgRyb2xlGAEgASgJEg8KB21lbWJlcnMYAiADKAkSJAoJY29uZGl0aW9uGAMgASgLMhEuZ29vZ2xlLnR5cGUuRXhwchI5CgtwYXJzZWRfZXhwchgEIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5FeHByQgTiQQEDIkAKC1BvbGljeURlbHRhEjEKDmJpbmRpbmdfZGVsdGFzGAEgAygLMhkuYnl0ZWJhc2UudjEuQmluZGluZ0RlbHRhIrsBCgxCaW5kaW5nRGVsdGESMAoGYWN0aW9uGAEgASgOMiAuYnl0ZWJhc2UudjEuQmluZGluZ0RlbHRhLkFjdGlvbhIMCgRyb2xlGAIgASgJEg4KBm1lbWJlchgDIAEoCRIkCgljb25kaXRpb24YBCABKAsyES5nb29nbGUudHlwZS5FeHByIjUKBkFjdGlvbhIWChJBQ1RJT05fVU5TUEVDSUZJRUQQABIHCgNBREQQARIKCgZSRU1PVkUQAkI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_expr_v1alpha1_syntax, file_google_api_field_behavior, file_google_api_resource, file_google_type_expr]);
+
+/**
+ * Describes the message bytebase.v1.GetIamPolicyRequest.
+ * Use `create(GetIamPolicyRequestSchema)` to create a new message.
+ */
+export const GetIamPolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_iam_policy, 0);
+
+/**
+ * Describes the message bytebase.v1.SetIamPolicyRequest.
+ * Use `create(SetIamPolicyRequestSchema)` to create a new message.
+ */
+export const SetIamPolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_iam_policy, 1);
+
+/**
+ * Describes the message bytebase.v1.IamPolicy.
+ * Use `create(IamPolicySchema)` to create a new message.
+ */
+export const IamPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_iam_policy, 2);
+
+/**
+ * Describes the message bytebase.v1.Binding.
+ * Use `create(BindingSchema)` to create a new message.
+ */
+export const BindingSchema = /*@__PURE__*/
+ messageDesc(file_v1_iam_policy, 3);
+
+/**
+ * Describes the message bytebase.v1.PolicyDelta.
+ * Use `create(PolicyDeltaSchema)` to create a new message.
+ */
+export const PolicyDeltaSchema = /*@__PURE__*/
+ messageDesc(file_v1_iam_policy, 4);
+
+/**
+ * Describes the message bytebase.v1.BindingDelta.
+ * Use `create(BindingDeltaSchema)` to create a new message.
+ */
+export const BindingDeltaSchema = /*@__PURE__*/
+ messageDesc(file_v1_iam_policy, 5);
+
+/**
+ * Describes the enum bytebase.v1.BindingDelta.Action.
+ */
+export const BindingDelta_ActionSchema = /*@__PURE__*/
+ enumDesc(file_v1_iam_policy, 5, 0);
+
+/**
+ * The type of action performed on a Binding in a policy.
+ *
+ * @generated from enum bytebase.v1.BindingDelta.Action
+ */
+export const BindingDelta_Action = /*@__PURE__*/
+ tsEnum(BindingDelta_ActionSchema);
+
diff --git a/frontend/src/types/proto-es/v1/idp_service_pb.d.ts b/frontend/src/types/proto-es/v1/idp_service_pb.d.ts
new file mode 100644
index 0000000000..89b6c6f474
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/idp_service_pb.d.ts
@@ -0,0 +1,662 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/idp_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/idp_service.proto.
+ */
+export declare const file_v1_idp_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetIdentityProviderRequest
+ */
+export declare type GetIdentityProviderRequest = Message<"bytebase.v1.GetIdentityProviderRequest"> & {
+ /**
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetIdentityProviderRequest.
+ * Use `create(GetIdentityProviderRequestSchema)` to create a new message.
+ */
+export declare const GetIdentityProviderRequestSchema: GenMessage<GetIdentityProviderRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListIdentityProvidersRequest
+ */
+export declare type ListIdentityProvidersRequest = Message<"bytebase.v1.ListIdentityProvidersRequest"> & {
+ /**
+ * Not used.
+ * The maximum number of identity providers to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListIdentityProviders` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListIdentityProviders` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListIdentityProvidersRequest.
+ * Use `create(ListIdentityProvidersRequestSchema)` to create a new message.
+ */
+export declare const ListIdentityProvidersRequestSchema: GenMessage<ListIdentityProvidersRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListIdentityProvidersResponse
+ */
+export declare type ListIdentityProvidersResponse = Message<"bytebase.v1.ListIdentityProvidersResponse"> & {
+ /**
+ * The identity providers from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.IdentityProvider identity_providers = 1;
+ */
+ identityProviders: IdentityProvider[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListIdentityProvidersResponse.
+ * Use `create(ListIdentityProvidersResponseSchema)` to create a new message.
+ */
+export declare const ListIdentityProvidersResponseSchema: GenMessage<ListIdentityProvidersResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateIdentityProviderRequest
+ */
+export declare type CreateIdentityProviderRequest = Message<"bytebase.v1.CreateIdentityProviderRequest"> & {
+ /**
+ * The identity provider to create.
+ *
+ * @generated from field: bytebase.v1.IdentityProvider identity_provider = 1;
+ */
+ identityProvider?: IdentityProvider;
+
+ /**
+ * The ID to use for the identity provider, which will become the final component of
+ * the identity provider's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ *
+ * @generated from field: string identity_provider_id = 2;
+ */
+ identityProviderId: string;
+
+ /**
+ * If set to true, the request will be validated without actually creating the identity provider.
+ *
+ * @generated from field: bool validate_only = 3;
+ */
+ validateOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateIdentityProviderRequest.
+ * Use `create(CreateIdentityProviderRequestSchema)` to create a new message.
+ */
+export declare const CreateIdentityProviderRequestSchema: GenMessage<CreateIdentityProviderRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateIdentityProviderRequest
+ */
+export declare type UpdateIdentityProviderRequest = Message<"bytebase.v1.UpdateIdentityProviderRequest"> & {
+ /**
+ * The identity provider to update.
+ *
+ * The identity provider's `name` field is used to identify the identity provider to update.
+ * Format: idps/{identity_provider}
+ *
+ * @generated from field: bytebase.v1.IdentityProvider identity_provider = 1;
+ */
+ identityProvider?: IdentityProvider;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateIdentityProviderRequest.
+ * Use `create(UpdateIdentityProviderRequestSchema)` to create a new message.
+ */
+export declare const UpdateIdentityProviderRequestSchema: GenMessage<UpdateIdentityProviderRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteIdentityProviderRequest
+ */
+export declare type DeleteIdentityProviderRequest = Message<"bytebase.v1.DeleteIdentityProviderRequest"> & {
+ /**
+ * The name of the identity provider to delete.
+ * Format: idps/{identity_provider}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteIdentityProviderRequest.
+ * Use `create(DeleteIdentityProviderRequestSchema)` to create a new message.
+ */
+export declare const DeleteIdentityProviderRequestSchema: GenMessage<DeleteIdentityProviderRequest>;
+
+/**
+ * @generated from message bytebase.v1.TestIdentityProviderRequest
+ */
+export declare type TestIdentityProviderRequest = Message<"bytebase.v1.TestIdentityProviderRequest"> & {
+ /**
+ * The identity provider to test connection including uncreated.
+ *
+ * @generated from field: bytebase.v1.IdentityProvider identity_provider = 1;
+ */
+ identityProvider?: IdentityProvider;
+
+ /**
+ * @generated from oneof bytebase.v1.TestIdentityProviderRequest.context
+ */
+ context: {
+ /**
+ * @generated from field: bytebase.v1.OAuth2IdentityProviderTestRequestContext oauth2_context = 2;
+ */
+ value: OAuth2IdentityProviderTestRequestContext;
+ case: "oauth2Context";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.TestIdentityProviderRequest.
+ * Use `create(TestIdentityProviderRequestSchema)` to create a new message.
+ */
+export declare const TestIdentityProviderRequestSchema: GenMessage<TestIdentityProviderRequest>;
+
+/**
+ * @generated from message bytebase.v1.OAuth2IdentityProviderTestRequestContext
+ */
+export declare type OAuth2IdentityProviderTestRequestContext = Message<"bytebase.v1.OAuth2IdentityProviderTestRequestContext"> & {
+ /**
+ * Authorize code from website.
+ *
+ * @generated from field: string code = 1;
+ */
+ code: string;
+};
+
+/**
+ * Describes the message bytebase.v1.OAuth2IdentityProviderTestRequestContext.
+ * Use `create(OAuth2IdentityProviderTestRequestContextSchema)` to create a new message.
+ */
+export declare const OAuth2IdentityProviderTestRequestContextSchema: GenMessage<OAuth2IdentityProviderTestRequestContext>;
+
+/**
+ * @generated from message bytebase.v1.TestIdentityProviderResponse
+ */
+export declare type TestIdentityProviderResponse = Message<"bytebase.v1.TestIdentityProviderResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.TestIdentityProviderResponse.
+ * Use `create(TestIdentityProviderResponseSchema)` to create a new message.
+ */
+export declare const TestIdentityProviderResponseSchema: GenMessage<TestIdentityProviderResponse>;
+
+/**
+ * @generated from message bytebase.v1.IdentityProvider
+ */
+export declare type IdentityProvider = Message<"bytebase.v1.IdentityProvider"> & {
+ /**
+ * The name of the identity provider.
+ * Format: idps/{idp}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string domain = 5;
+ */
+ domain: string;
+
+ /**
+ * @generated from field: bytebase.v1.IdentityProviderType type = 6;
+ */
+ type: IdentityProviderType;
+
+ /**
+ * @generated from field: bytebase.v1.IdentityProviderConfig config = 7;
+ */
+ config?: IdentityProviderConfig;
+};
+
+/**
+ * Describes the message bytebase.v1.IdentityProvider.
+ * Use `create(IdentityProviderSchema)` to create a new message.
+ */
+export declare const IdentityProviderSchema: GenMessage<IdentityProvider>;
+
+/**
+ * @generated from message bytebase.v1.IdentityProviderConfig
+ */
+export declare type IdentityProviderConfig = Message<"bytebase.v1.IdentityProviderConfig"> & {
+ /**
+ * @generated from oneof bytebase.v1.IdentityProviderConfig.config
+ */
+ config: {
+ /**
+ * @generated from field: bytebase.v1.OAuth2IdentityProviderConfig oauth2_config = 1;
+ */
+ value: OAuth2IdentityProviderConfig;
+ case: "oauth2Config";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.OIDCIdentityProviderConfig oidc_config = 2;
+ */
+ value: OIDCIdentityProviderConfig;
+ case: "oidcConfig";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.LDAPIdentityProviderConfig ldap_config = 3;
+ */
+ value: LDAPIdentityProviderConfig;
+ case: "ldapConfig";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.IdentityProviderConfig.
+ * Use `create(IdentityProviderConfigSchema)` to create a new message.
+ */
+export declare const IdentityProviderConfigSchema: GenMessage<IdentityProviderConfig>;
+
+/**
+ * OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.
+ *
+ * @generated from message bytebase.v1.OAuth2IdentityProviderConfig
+ */
+export declare type OAuth2IdentityProviderConfig = Message<"bytebase.v1.OAuth2IdentityProviderConfig"> & {
+ /**
+ * @generated from field: string auth_url = 1;
+ */
+ authUrl: string;
+
+ /**
+ * @generated from field: string token_url = 2;
+ */
+ tokenUrl: string;
+
+ /**
+ * @generated from field: string user_info_url = 3;
+ */
+ userInfoUrl: string;
+
+ /**
+ * @generated from field: string client_id = 4;
+ */
+ clientId: string;
+
+ /**
+ * @generated from field: string client_secret = 5;
+ */
+ clientSecret: string;
+
+ /**
+ * @generated from field: repeated string scopes = 6;
+ */
+ scopes: string[];
+
+ /**
+ * @generated from field: bytebase.v1.FieldMapping field_mapping = 7;
+ */
+ fieldMapping?: FieldMapping;
+
+ /**
+ * @generated from field: bool skip_tls_verify = 8;
+ */
+ skipTlsVerify: boolean;
+
+ /**
+ * @generated from field: bytebase.v1.OAuth2AuthStyle auth_style = 9;
+ */
+ authStyle: OAuth2AuthStyle;
+};
+
+/**
+ * Describes the message bytebase.v1.OAuth2IdentityProviderConfig.
+ * Use `create(OAuth2IdentityProviderConfigSchema)` to create a new message.
+ */
+export declare const OAuth2IdentityProviderConfigSchema: GenMessage<OAuth2IdentityProviderConfig>;
+
+/**
+ * OIDCIdentityProviderConfig is the structure for OIDC identity provider config.
+ *
+ * @generated from message bytebase.v1.OIDCIdentityProviderConfig
+ */
+export declare type OIDCIdentityProviderConfig = Message<"bytebase.v1.OIDCIdentityProviderConfig"> & {
+ /**
+ * @generated from field: string issuer = 1;
+ */
+ issuer: string;
+
+ /**
+ * @generated from field: string client_id = 2;
+ */
+ clientId: string;
+
+ /**
+ * @generated from field: string client_secret = 3;
+ */
+ clientSecret: string;
+
+ /**
+ * The scopes that the OIDC provider supports.
+ * Should be fetched from the well-known configuration file of the OIDC provider.
+ *
+ * @generated from field: repeated string scopes = 4;
+ */
+ scopes: string[];
+
+ /**
+ * @generated from field: bytebase.v1.FieldMapping field_mapping = 5;
+ */
+ fieldMapping?: FieldMapping;
+
+ /**
+ * @generated from field: bool skip_tls_verify = 6;
+ */
+ skipTlsVerify: boolean;
+
+ /**
+ * @generated from field: bytebase.v1.OAuth2AuthStyle auth_style = 7;
+ */
+ authStyle: OAuth2AuthStyle;
+
+ /**
+ * The authorization endpoint of the OIDC provider.
+ * Should be fetched from the well-known configuration file of the OIDC provider.
+ *
+ * @generated from field: string auth_endpoint = 8;
+ */
+ authEndpoint: string;
+};
+
+/**
+ * Describes the message bytebase.v1.OIDCIdentityProviderConfig.
+ * Use `create(OIDCIdentityProviderConfigSchema)` to create a new message.
+ */
+export declare const OIDCIdentityProviderConfigSchema: GenMessage<OIDCIdentityProviderConfig>;
+
+/**
+ * LDAPIdentityProviderConfig is the structure for LDAP identity provider config.
+ *
+ * @generated from message bytebase.v1.LDAPIdentityProviderConfig
+ */
+export declare type LDAPIdentityProviderConfig = Message<"bytebase.v1.LDAPIdentityProviderConfig"> & {
+ /**
+ * Host is the hostname or IP address of the LDAP server, e.g.
+ * "ldap.example.com".
+ *
+ * @generated from field: string host = 1;
+ */
+ host: string;
+
+ /**
+ * Port is the port number of the LDAP server, e.g. 389. When not set, the
+ * default port of the corresponding security protocol will be used, i.e. 389
+ * for StartTLS and 636 for LDAPS.
+ *
+ * @generated from field: int32 port = 2;
+ */
+ port: number;
+
+ /**
+ * SkipTLSVerify controls whether to skip TLS certificate verification.
+ *
+ * @generated from field: bool skip_tls_verify = 3;
+ */
+ skipTlsVerify: boolean;
+
+ /**
+ * BindDN is the DN of the user to bind as a service account to perform
+ * search requests.
+ *
+ * @generated from field: string bind_dn = 4;
+ */
+ bindDn: string;
+
+ /**
+ * BindPassword is the password of the user to bind as a service account.
+ *
+ * @generated from field: string bind_password = 5;
+ */
+ bindPassword: string;
+
+ /**
+ * BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com".
+ *
+ * @generated from field: string base_dn = 6;
+ */
+ baseDn: string;
+
+ /**
+ * UserFilter is the filter to search for users, e.g. "(uid=%s)".
+ *
+ * @generated from field: string user_filter = 7;
+ */
+ userFilter: string;
+
+ /**
+ * SecurityProtocol is the security protocol to be used for establishing
+ * connections with the LDAP server. It must be StartTLS, LDAPS or None.
+ *
+ * @generated from field: string security_protocol = 8;
+ */
+ securityProtocol: string;
+
+ /**
+ * FieldMapping is the mapping of the user attributes returned by the LDAP
+ * server.
+ *
+ * @generated from field: bytebase.v1.FieldMapping field_mapping = 9;
+ */
+ fieldMapping?: FieldMapping;
+};
+
+/**
+ * Describes the message bytebase.v1.LDAPIdentityProviderConfig.
+ * Use `create(LDAPIdentityProviderConfigSchema)` to create a new message.
+ */
+export declare const LDAPIdentityProviderConfigSchema: GenMessage<LDAPIdentityProviderConfig>;
+
+/**
+ * FieldMapping saves the field names from user info API of identity provider.
+ * As we save all raw json string of user info response data into `principal.idp_user_info`,
+ * we can extract the relevant data based with `FieldMapping`.
+ *
+ * @generated from message bytebase.v1.FieldMapping
+ */
+export declare type FieldMapping = Message<"bytebase.v1.FieldMapping"> & {
+ /**
+ * Identifier is the field name of the unique identifier in 3rd-party idp user info. Required.
+ *
+ * @generated from field: string identifier = 1;
+ */
+ identifier: string;
+
+ /**
+ * DisplayName is the field name of display name in 3rd-party idp user info. Optional.
+ *
+ * @generated from field: string display_name = 2;
+ */
+ displayName: string;
+
+ /**
+ * Phone is the field name of primary phone in 3rd-party idp user info. Optional.
+ *
+ * @generated from field: string phone = 4;
+ */
+ phone: string;
+
+ /**
+ * Groups is the field name of groups in 3rd-party idp user info. Optional.
+ * Mainly used for OIDC: https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/
+ *
+ * @generated from field: string groups = 5;
+ */
+ groups: string;
+};
+
+/**
+ * Describes the message bytebase.v1.FieldMapping.
+ * Use `create(FieldMappingSchema)` to create a new message.
+ */
+export declare const FieldMappingSchema: GenMessage<FieldMapping>;
+
+/**
+ * @generated from enum bytebase.v1.IdentityProviderType
+ */
+export enum IdentityProviderType {
+ /**
+ * @generated from enum value: IDENTITY_PROVIDER_TYPE_UNSPECIFIED = 0;
+ */
+ IDENTITY_PROVIDER_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: OAUTH2 = 1;
+ */
+ OAUTH2 = 1,
+
+ /**
+ * @generated from enum value: OIDC = 2;
+ */
+ OIDC = 2,
+
+ /**
+ * @generated from enum value: LDAP = 3;
+ */
+ LDAP = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.IdentityProviderType.
+ */
+export declare const IdentityProviderTypeSchema: GenEnum<IdentityProviderType>;
+
+/**
+ * @generated from enum bytebase.v1.OAuth2AuthStyle
+ */
+export enum OAuth2AuthStyle {
+ /**
+ * @generated from enum value: OAUTH2_AUTH_STYLE_UNSPECIFIED = 0;
+ */
+ OAUTH2_AUTH_STYLE_UNSPECIFIED = 0,
+
+ /**
+ * IN_PARAMS sends the "client_id" and "client_secret" in the POST body
+ * as application/x-www-form-urlencoded parameters.
+ *
+ * @generated from enum value: IN_PARAMS = 1;
+ */
+ IN_PARAMS = 1,
+
+ /**
+ * IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.
+ * This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.
+ *
+ * @generated from enum value: IN_HEADER = 2;
+ */
+ IN_HEADER = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.OAuth2AuthStyle.
+ */
+export declare const OAuth2AuthStyleSchema: GenEnum<OAuth2AuthStyle>;
+
+/**
+ * @generated from service bytebase.v1.IdentityProviderService
+ */
+export declare const IdentityProviderService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.IdentityProviderService.GetIdentityProvider
+ */
+ getIdentityProvider: {
+ methodKind: "unary";
+ input: typeof GetIdentityProviderRequestSchema;
+ output: typeof IdentityProviderSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IdentityProviderService.ListIdentityProviders
+ */
+ listIdentityProviders: {
+ methodKind: "unary";
+ input: typeof ListIdentityProvidersRequestSchema;
+ output: typeof ListIdentityProvidersResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IdentityProviderService.CreateIdentityProvider
+ */
+ createIdentityProvider: {
+ methodKind: "unary";
+ input: typeof CreateIdentityProviderRequestSchema;
+ output: typeof IdentityProviderSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IdentityProviderService.UpdateIdentityProvider
+ */
+ updateIdentityProvider: {
+ methodKind: "unary";
+ input: typeof UpdateIdentityProviderRequestSchema;
+ output: typeof IdentityProviderSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IdentityProviderService.DeleteIdentityProvider
+ */
+ deleteIdentityProvider: {
+ methodKind: "unary";
+ input: typeof DeleteIdentityProviderRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IdentityProviderService.TestIdentityProvider
+ */
+ testIdentityProvider: {
+ methodKind: "unary";
+ input: typeof TestIdentityProviderRequestSchema;
+ output: typeof TestIdentityProviderResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/idp_service_pb.js b/frontend/src/types/proto-es/v1/idp_service_pb.js
new file mode 100644
index 0000000000..b76257d1d7
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/idp_service_pb.js
@@ -0,0 +1,153 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/idp_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/idp_service.proto.
+ */
+export const file_v1_idp_service = /*@__PURE__*/
+ fileDesc("ChR2MS9pZHBfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiRQoaR2V0SWRlbnRpdHlQcm92aWRlclJlcXVlc3QSJwoEbmFtZRgBIAEoCUIZ4kEBAvpBEgoQYnl0ZWJhc2UuY29tL0lkUCJFChxMaXN0SWRlbnRpdHlQcm92aWRlcnNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJInMKHUxpc3RJZGVudGl0eVByb3ZpZGVyc1Jlc3BvbnNlEjkKEmlkZW50aXR5X3Byb3ZpZGVycxgBIAMoCzIdLmJ5dGViYXNlLnYxLklkZW50aXR5UHJvdmlkZXISFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIpQBCh1DcmVhdGVJZGVudGl0eVByb3ZpZGVyUmVxdWVzdBI+ChFpZGVudGl0eV9wcm92aWRlchgBIAEoCzIdLmJ5dGViYXNlLnYxLklkZW50aXR5UHJvdmlkZXJCBOJBAQISHAoUaWRlbnRpdHlfcHJvdmlkZXJfaWQYAiABKAkSFQoNdmFsaWRhdGVfb25seRgDIAEoCCKQAQodVXBkYXRlSWRlbnRpdHlQcm92aWRlclJlcXVlc3QSPgoRaWRlbnRpdHlfcHJvdmlkZXIYASABKAsyHS5ieXRlYmFzZS52MS5JZGVudGl0eVByb3ZpZGVyQgTiQQECEi8KC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzayJICh1EZWxldGVJZGVudGl0eVByb3ZpZGVyUmVxdWVzdBInCgRuYW1lGAEgASgJQhniQQEC+kES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2JiLmlkZW50aXR5UHJvdmlkZXJzLnVwZGF0ZZDqMAGY6jABgtPkkwI4OhFpZGVudGl0eV9wcm92aWRlcjIjL3YxL3tpZGVudGl0eV9wcm92aWRlci5uYW1lPWlkcHMvKn0SpQEKFkRlbGV0ZUlkZW50aXR5UHJvdmlkZXISKi5ieXRlYmFzZS52MS5EZWxldGVJZGVudGl0eVByb3ZpZGVyUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJH2kEEbmFtZYrqMBtiYi5pZGVudGl0eVByb3ZpZGVycy5kZWxldGWQ6jABmOowAYLT5JMCEyoRL3YxL3tuYW1lPWlkcHMvKn0SqgEKFFRlc3RJZGVudGl0eVByb3ZpZGVyEiguYnl0ZWJhc2UudjEuVGVzdElkZW50aXR5UHJvdmlkZXJSZXF1ZXN0GikuYnl0ZWJhc2UudjEuVGVzdElkZW50aXR5UHJvdmlkZXJSZXNwb25zZSI9iuowG2JiLmlkZW50aXR5UHJvdmlkZXJzLnVwZGF0ZZDqMAGC0+STAhQ6ASoiDy92MS9pZHBzLyo6dGVzdEI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.GetIdentityProviderRequest.
+ * Use `create(GetIdentityProviderRequestSchema)` to create a new message.
+ */
+export const GetIdentityProviderRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListIdentityProvidersRequest.
+ * Use `create(ListIdentityProvidersRequestSchema)` to create a new message.
+ */
+export const ListIdentityProvidersRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListIdentityProvidersResponse.
+ * Use `create(ListIdentityProvidersResponseSchema)` to create a new message.
+ */
+export const ListIdentityProvidersResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 2);
+
+/**
+ * Describes the message bytebase.v1.CreateIdentityProviderRequest.
+ * Use `create(CreateIdentityProviderRequestSchema)` to create a new message.
+ */
+export const CreateIdentityProviderRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateIdentityProviderRequest.
+ * Use `create(UpdateIdentityProviderRequestSchema)` to create a new message.
+ */
+export const UpdateIdentityProviderRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteIdentityProviderRequest.
+ * Use `create(DeleteIdentityProviderRequestSchema)` to create a new message.
+ */
+export const DeleteIdentityProviderRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 5);
+
+/**
+ * Describes the message bytebase.v1.TestIdentityProviderRequest.
+ * Use `create(TestIdentityProviderRequestSchema)` to create a new message.
+ */
+export const TestIdentityProviderRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 6);
+
+/**
+ * Describes the message bytebase.v1.OAuth2IdentityProviderTestRequestContext.
+ * Use `create(OAuth2IdentityProviderTestRequestContextSchema)` to create a new message.
+ */
+export const OAuth2IdentityProviderTestRequestContextSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 7);
+
+/**
+ * Describes the message bytebase.v1.TestIdentityProviderResponse.
+ * Use `create(TestIdentityProviderResponseSchema)` to create a new message.
+ */
+export const TestIdentityProviderResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 8);
+
+/**
+ * Describes the message bytebase.v1.IdentityProvider.
+ * Use `create(IdentityProviderSchema)` to create a new message.
+ */
+export const IdentityProviderSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 9);
+
+/**
+ * Describes the message bytebase.v1.IdentityProviderConfig.
+ * Use `create(IdentityProviderConfigSchema)` to create a new message.
+ */
+export const IdentityProviderConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 10);
+
+/**
+ * Describes the message bytebase.v1.OAuth2IdentityProviderConfig.
+ * Use `create(OAuth2IdentityProviderConfigSchema)` to create a new message.
+ */
+export const OAuth2IdentityProviderConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 11);
+
+/**
+ * Describes the message bytebase.v1.OIDCIdentityProviderConfig.
+ * Use `create(OIDCIdentityProviderConfigSchema)` to create a new message.
+ */
+export const OIDCIdentityProviderConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 12);
+
+/**
+ * Describes the message bytebase.v1.LDAPIdentityProviderConfig.
+ * Use `create(LDAPIdentityProviderConfigSchema)` to create a new message.
+ */
+export const LDAPIdentityProviderConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 13);
+
+/**
+ * Describes the message bytebase.v1.FieldMapping.
+ * Use `create(FieldMappingSchema)` to create a new message.
+ */
+export const FieldMappingSchema = /*@__PURE__*/
+ messageDesc(file_v1_idp_service, 14);
+
+/**
+ * Describes the enum bytebase.v1.IdentityProviderType.
+ */
+export const IdentityProviderTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_idp_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.IdentityProviderType
+ */
+export const IdentityProviderType = /*@__PURE__*/
+ tsEnum(IdentityProviderTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.OAuth2AuthStyle.
+ */
+export const OAuth2AuthStyleSchema = /*@__PURE__*/
+ enumDesc(file_v1_idp_service, 1);
+
+/**
+ * @generated from enum bytebase.v1.OAuth2AuthStyle
+ */
+export const OAuth2AuthStyle = /*@__PURE__*/
+ tsEnum(OAuth2AuthStyleSchema);
+
+/**
+ * @generated from service bytebase.v1.IdentityProviderService
+ */
+export const IdentityProviderService = /*@__PURE__*/
+ serviceDesc(file_v1_idp_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/instance_role_service_pb.d.ts b/frontend/src/types/proto-es/v1/instance_role_service_pb.d.ts
new file mode 100644
index 0000000000..9b2d37f8ed
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/instance_role_service_pb.d.ts
@@ -0,0 +1,188 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/instance_role_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+
+/**
+ * Describes the file v1/instance_role_service.proto.
+ */
+export declare const file_v1_instance_role_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetInstanceRoleRequest
+ */
+export declare type GetInstanceRoleRequest = Message<"bytebase.v1.GetInstanceRoleRequest"> & {
+ /**
+ * The name of the role to retrieve.
+ * Format: instances/{instance}/roles/{role name}
+ * The role name is the unique name for the role.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetInstanceRoleRequest.
+ * Use `create(GetInstanceRoleRequestSchema)` to create a new message.
+ */
+export declare const GetInstanceRoleRequestSchema: GenMessage<GetInstanceRoleRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListInstanceRolesRequest
+ */
+export declare type ListInstanceRolesRequest = Message<"bytebase.v1.ListInstanceRolesRequest"> & {
+ /**
+ * The parent, which owns this collection of roles.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * Not used.
+ * The maximum number of roles to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 roles will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListInstanceRoles` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListInstanceRoles` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * Refresh will refresh and return the latest data.
+ *
+ * @generated from field: bool refresh = 4;
+ */
+ refresh: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ListInstanceRolesRequest.
+ * Use `create(ListInstanceRolesRequestSchema)` to create a new message.
+ */
+export declare const ListInstanceRolesRequestSchema: GenMessage<ListInstanceRolesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListInstanceRolesResponse
+ */
+export declare type ListInstanceRolesResponse = Message<"bytebase.v1.ListInstanceRolesResponse"> & {
+ /**
+ * The roles from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.InstanceRole roles = 1;
+ */
+ roles: InstanceRole[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListInstanceRolesResponse.
+ * Use `create(ListInstanceRolesResponseSchema)` to create a new message.
+ */
+export declare const ListInstanceRolesResponseSchema: GenMessage<ListInstanceRolesResponse>;
+
+/**
+ * InstanceRole is the API message for instance role.
+ *
+ * @generated from message bytebase.v1.InstanceRole
+ */
+export declare type InstanceRole = Message<"bytebase.v1.InstanceRole"> & {
+ /**
+ * The name of the role.
+ * Format: instances/{instance}/roles/{role}
+ * The role name is the unique name for the role.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The role name. It's unique within the instance.
+ *
+ * @generated from field: string role_name = 2;
+ */
+ roleName: string;
+
+ /**
+ * The role password.
+ *
+ * @generated from field: optional string password = 3;
+ */
+ password?: string;
+
+ /**
+ * The connection count limit for this role.
+ *
+ * @generated from field: optional int32 connection_limit = 4;
+ */
+ connectionLimit?: number;
+
+ /**
+ * The expiration for the role's password.
+ *
+ * @generated from field: optional string valid_until = 5;
+ */
+ validUntil?: string;
+
+ /**
+ * The role attribute.
+ * For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html
+ * 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
+ *
+ * @generated from field: optional string attribute = 6;
+ */
+ attribute?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.InstanceRole.
+ * Use `create(InstanceRoleSchema)` to create a new message.
+ */
+export declare const InstanceRoleSchema: GenMessage<InstanceRole>;
+
+/**
+ * @generated from service bytebase.v1.InstanceRoleService
+ */
+export declare const InstanceRoleService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.InstanceRoleService.GetInstanceRole
+ */
+ getInstanceRole: {
+ methodKind: "unary";
+ input: typeof GetInstanceRoleRequestSchema;
+ output: typeof InstanceRoleSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceRoleService.ListInstanceRoles
+ */
+ listInstanceRoles: {
+ methodKind: "unary";
+ input: typeof ListInstanceRolesRequestSchema;
+ output: typeof ListInstanceRolesResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/instance_role_service_pb.js b/frontend/src/types/proto-es/v1/instance_role_service_pb.js
new file mode 100644
index 0000000000..f80d22ac96
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/instance_role_service_pb.js
@@ -0,0 +1,51 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/instance_role_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/instance_role_service.proto.
+ */
+export const file_v1_instance_role_service = /*@__PURE__*/
+ fileDesc("Ch52MS9pbnN0YW5jZV9y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W5zdGFuY2VzLyovcm9sZXMvKn0SrwEKEUxpc3RJbnN0YW5jZVJvbGVzEiUuYnl0ZWJhc2UudjEuTGlzdEluc3RhbmNlUm9sZXNSZXF1ZXN0GiYuYnl0ZWJhc2UudjEuTGlzdEluc3RhbmNlUm9sZXNSZXNwb25zZSJL2kEGcGFyZW50iuowFGJiLmluc3RhbmNlUm9sZXMuZ2V0kOowAYLT5JMCIBIeL3YxL3twYXJlbnQ9aW5zdGFuY2VzLyp9L3JvbGVzQjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.GetInstanceRoleRequest.
+ * Use `create(GetInstanceRoleRequestSchema)` to create a new message.
+ */
+export const GetInstanceRoleRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_role_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListInstanceRolesRequest.
+ * Use `create(ListInstanceRolesRequestSchema)` to create a new message.
+ */
+export const ListInstanceRolesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_role_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListInstanceRolesResponse.
+ * Use `create(ListInstanceRolesResponseSchema)` to create a new message.
+ */
+export const ListInstanceRolesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_role_service, 2);
+
+/**
+ * Describes the message bytebase.v1.InstanceRole.
+ * Use `create(InstanceRoleSchema)` to create a new message.
+ */
+export const InstanceRoleSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_role_service, 3);
+
+/**
+ * @generated from service bytebase.v1.InstanceRoleService
+ */
+export const InstanceRoleService = /*@__PURE__*/
+ serviceDesc(file_v1_instance_role_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/instance_service_pb.d.ts b/frontend/src/types/proto-es/v1/instance_service_pb.d.ts
new file mode 100644
index 0000000000..9e2c25a7f0
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/instance_service_pb.d.ts
@@ -0,0 +1,1388 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/instance_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Duration, EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+import type { Engine, State } from "./common_pb";
+import type { InstanceRole } from "./instance_role_service_pb";
+
+/**
+ * Describes the file v1/instance_service.proto.
+ */
+export declare const file_v1_instance_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetInstanceRequest
+ */
+export declare type GetInstanceRequest = Message<"bytebase.v1.GetInstanceRequest"> & {
+ /**
+ * The name of the instance to retrieve.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetInstanceRequest.
+ * Use `create(GetInstanceRequestSchema)` to create a new message.
+ */
+export declare const GetInstanceRequestSchema: GenMessage<GetInstanceRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListInstancesRequest
+ */
+export declare type ListInstancesRequest = Message<"bytebase.v1.ListInstancesRequest"> & {
+ /**
+ * The maximum number of instances to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 instances will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListInstances` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListInstances` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+
+ /**
+ * Show deleted instances if specified.
+ *
+ * @generated from field: bool show_deleted = 3;
+ */
+ showDeleted: boolean;
+
+ /**
+ * Filter the instance.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filters:
+ * - name: the instance name, support "==" and ".matches()" operator.
+ * - resource_id: the instance id, support "==" and ".matches()" operator.
+ * - environment: the environment full name in "environments/{id}" format, support "==" operator.
+ * - state: the instance state, check State enum for values, support "==" operator.
+ * - engine: the instance engine, check Engine enum for values. Support "==", "in [xx]", "!(in [xx])" operator.
+ * - host: the instance host, support "==" and ".matches()" operator.
+ * - port: the instance port, support "==" and ".matches()" operator.
+ * - project: the project full name in "projects/{id}" format, support "==" operator.
+ *
+ * For example:
+ * name == "sample instance"
+ * name.matches("sample")
+ * resource_id = "sample-instance"
+ * resource_id.matches("sample")
+ * state == "DELETED"
+ * environment == "environments/test"
+ * engine == "MYSQL"
+ * engine in ["MYSQL", "POSTGRES"]
+ * !(engine in ["MYSQL", "POSTGRES"])
+ * host == "127.0.0.1"
+ * host.matches("127.0")
+ * port == "54321"
+ * port.matches("543")
+ * project == "projects/sample-project"
+ * You can combine filter conditions like:
+ * name.matches("sample") && environment == "environments/test"
+ * host == "127.0.0.1" && port == "54321"
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListInstancesRequest.
+ * Use `create(ListInstancesRequestSchema)` to create a new message.
+ */
+export declare const ListInstancesRequestSchema: GenMessage<ListInstancesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListInstancesResponse
+ */
+export declare type ListInstancesResponse = Message<"bytebase.v1.ListInstancesResponse"> & {
+ /**
+ * The instances from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Instance instances = 1;
+ */
+ instances: Instance[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListInstancesResponse.
+ * Use `create(ListInstancesResponseSchema)` to create a new message.
+ */
+export declare const ListInstancesResponseSchema: GenMessage<ListInstancesResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateInstanceRequest
+ */
+export declare type CreateInstanceRequest = Message<"bytebase.v1.CreateInstanceRequest"> & {
+ /**
+ * The instance to create.
+ *
+ * @generated from field: bytebase.v1.Instance instance = 1;
+ */
+ instance?: Instance;
+
+ /**
+ * The ID to use for the instance, which will become the final component of
+ * the instance's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ *
+ * @generated from field: string instance_id = 2;
+ */
+ instanceId: string;
+
+ /**
+ * Validate only also tests the data source connection.
+ *
+ * @generated from field: bool validate_only = 3;
+ */
+ validateOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateInstanceRequest.
+ * Use `create(CreateInstanceRequestSchema)` to create a new message.
+ */
+export declare const CreateInstanceRequestSchema: GenMessage<CreateInstanceRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateInstanceRequest
+ */
+export declare type UpdateInstanceRequest = Message<"bytebase.v1.UpdateInstanceRequest"> & {
+ /**
+ * The instance to update.
+ *
+ * The instance's `name` field is used to identify the instance to update.
+ * Format: instances/{instance}
+ *
+ * @generated from field: bytebase.v1.Instance instance = 1;
+ */
+ instance?: Instance;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateInstanceRequest.
+ * Use `create(UpdateInstanceRequestSchema)` to create a new message.
+ */
+export declare const UpdateInstanceRequestSchema: GenMessage<UpdateInstanceRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteInstanceRequest
+ */
+export declare type DeleteInstanceRequest = Message<"bytebase.v1.DeleteInstanceRequest"> & {
+ /**
+ * The name of the instance to delete.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * 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.
+ *
+ * @generated from field: bool force = 2;
+ */
+ force: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteInstanceRequest.
+ * Use `create(DeleteInstanceRequestSchema)` to create a new message.
+ */
+export declare const DeleteInstanceRequestSchema: GenMessage<DeleteInstanceRequest>;
+
+/**
+ * @generated from message bytebase.v1.UndeleteInstanceRequest
+ */
+export declare type UndeleteInstanceRequest = Message<"bytebase.v1.UndeleteInstanceRequest"> & {
+ /**
+ * The name of the deleted instance.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.UndeleteInstanceRequest.
+ * Use `create(UndeleteInstanceRequestSchema)` to create a new message.
+ */
+export declare const UndeleteInstanceRequestSchema: GenMessage<UndeleteInstanceRequest>;
+
+/**
+ * @generated from message bytebase.v1.SyncInstanceRequest
+ */
+export declare type SyncInstanceRequest = Message<"bytebase.v1.SyncInstanceRequest"> & {
+ /**
+ * The name of instance.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * When full sync is enabled, all databases in the instance will be synchronized. Otherwise, only
+ * the instance metadata (such as the database list) and any newly discovered instances will be synced.
+ *
+ * @generated from field: bool enable_full_sync = 2;
+ */
+ enableFullSync: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.SyncInstanceRequest.
+ * Use `create(SyncInstanceRequestSchema)` to create a new message.
+ */
+export declare const SyncInstanceRequestSchema: GenMessage<SyncInstanceRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListInstanceDatabaseRequest
+ */
+export declare type ListInstanceDatabaseRequest = Message<"bytebase.v1.ListInstanceDatabaseRequest"> & {
+ /**
+ * The name of the instance.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The target instance. We need to set this field if the target instance is not created yet.
+ *
+ * @generated from field: optional bytebase.v1.Instance instance = 2;
+ */
+ instance?: Instance;
+};
+
+/**
+ * Describes the message bytebase.v1.ListInstanceDatabaseRequest.
+ * Use `create(ListInstanceDatabaseRequestSchema)` to create a new message.
+ */
+export declare const ListInstanceDatabaseRequestSchema: GenMessage<ListInstanceDatabaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListInstanceDatabaseResponse
+ */
+export declare type ListInstanceDatabaseResponse = Message<"bytebase.v1.ListInstanceDatabaseResponse"> & {
+ /**
+ * All database name list in the instance.
+ *
+ * @generated from field: repeated string databases = 1;
+ */
+ databases: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.ListInstanceDatabaseResponse.
+ * Use `create(ListInstanceDatabaseResponseSchema)` to create a new message.
+ */
+export declare const ListInstanceDatabaseResponseSchema: GenMessage<ListInstanceDatabaseResponse>;
+
+/**
+ * @generated from message bytebase.v1.SyncInstanceResponse
+ */
+export declare type SyncInstanceResponse = Message<"bytebase.v1.SyncInstanceResponse"> & {
+ /**
+ * All database name list in the instance.
+ *
+ * @generated from field: repeated string databases = 1;
+ */
+ databases: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.SyncInstanceResponse.
+ * Use `create(SyncInstanceResponseSchema)` to create a new message.
+ */
+export declare const SyncInstanceResponseSchema: GenMessage<SyncInstanceResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchSyncInstancesRequest
+ */
+export declare type BatchSyncInstancesRequest = Message<"bytebase.v1.BatchSyncInstancesRequest"> & {
+ /**
+ * The request message specifying the instances to sync.
+ * A maximum of 1000 instances can be synced in a batch.
+ *
+ * @generated from field: repeated bytebase.v1.SyncInstanceRequest requests = 1;
+ */
+ requests: SyncInstanceRequest[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchSyncInstancesRequest.
+ * Use `create(BatchSyncInstancesRequestSchema)` to create a new message.
+ */
+export declare const BatchSyncInstancesRequestSchema: GenMessage<BatchSyncInstancesRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchSyncInstancesResponse
+ */
+export declare type BatchSyncInstancesResponse = Message<"bytebase.v1.BatchSyncInstancesResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchSyncInstancesResponse.
+ * Use `create(BatchSyncInstancesResponseSchema)` to create a new message.
+ */
+export declare const BatchSyncInstancesResponseSchema: GenMessage<BatchSyncInstancesResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchUpdateInstancesRequest
+ */
+export declare type BatchUpdateInstancesRequest = Message<"bytebase.v1.BatchUpdateInstancesRequest"> & {
+ /**
+ * The request message specifying the resources to update.
+ *
+ * @generated from field: repeated bytebase.v1.UpdateInstanceRequest requests = 1;
+ */
+ requests: UpdateInstanceRequest[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateInstancesRequest.
+ * Use `create(BatchUpdateInstancesRequestSchema)` to create a new message.
+ */
+export declare const BatchUpdateInstancesRequestSchema: GenMessage<BatchUpdateInstancesRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchUpdateInstancesResponse
+ */
+export declare type BatchUpdateInstancesResponse = Message<"bytebase.v1.BatchUpdateInstancesResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Instance instances = 1;
+ */
+ instances: Instance[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateInstancesResponse.
+ * Use `create(BatchUpdateInstancesResponseSchema)` to create a new message.
+ */
+export declare const BatchUpdateInstancesResponseSchema: GenMessage<BatchUpdateInstancesResponse>;
+
+/**
+ * @generated from message bytebase.v1.AddDataSourceRequest
+ */
+export declare type AddDataSourceRequest = Message<"bytebase.v1.AddDataSourceRequest"> & {
+ /**
+ * The name of the instance to add a data source to.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Identified by data source ID.
+ * Only READ_ONLY data source can be added.
+ *
+ * @generated from field: bytebase.v1.DataSource data_source = 2;
+ */
+ dataSource?: DataSource;
+
+ /**
+ * Validate only also tests the data source connection.
+ *
+ * @generated from field: bool validate_only = 3;
+ */
+ validateOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.AddDataSourceRequest.
+ * Use `create(AddDataSourceRequestSchema)` to create a new message.
+ */
+export declare const AddDataSourceRequestSchema: GenMessage<AddDataSourceRequest>;
+
+/**
+ * @generated from message bytebase.v1.RemoveDataSourceRequest
+ */
+export declare type RemoveDataSourceRequest = Message<"bytebase.v1.RemoveDataSourceRequest"> & {
+ /**
+ * The name of the instance to remove a data source from.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Identified by data source ID.
+ * Only READ_ONLY data source can be removed.
+ *
+ * @generated from field: bytebase.v1.DataSource data_source = 2;
+ */
+ dataSource?: DataSource;
+};
+
+/**
+ * Describes the message bytebase.v1.RemoveDataSourceRequest.
+ * Use `create(RemoveDataSourceRequestSchema)` to create a new message.
+ */
+export declare const RemoveDataSourceRequestSchema: GenMessage<RemoveDataSourceRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateDataSourceRequest
+ */
+export declare type UpdateDataSourceRequest = Message<"bytebase.v1.UpdateDataSourceRequest"> & {
+ /**
+ * The name of the instance to update a data source.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Identified by data source ID.
+ *
+ * @generated from field: bytebase.v1.DataSource data_source = 2;
+ */
+ dataSource?: DataSource;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 3;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * Validate only also tests the data source connection.
+ *
+ * @generated from field: bool validate_only = 4;
+ */
+ validateOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateDataSourceRequest.
+ * Use `create(UpdateDataSourceRequestSchema)` to create a new message.
+ */
+export declare const UpdateDataSourceRequestSchema: GenMessage<UpdateDataSourceRequest>;
+
+/**
+ * @generated from message bytebase.v1.Instance
+ */
+export declare type Instance = Message<"bytebase.v1.Instance"> & {
+ /**
+ * The name of the instance.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.State state = 3;
+ */
+ state: State;
+
+ /**
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 5;
+ */
+ engine: Engine;
+
+ /**
+ * @generated from field: string engine_version = 6;
+ */
+ engineVersion: string;
+
+ /**
+ * @generated from field: string external_link = 7;
+ */
+ externalLink: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.DataSource data_sources = 8;
+ */
+ dataSources: DataSource[];
+
+ /**
+ * The environment resource.
+ * Format: environments/prod where prod is the environment resource ID.
+ *
+ * @generated from field: string environment = 9;
+ */
+ environment: string;
+
+ /**
+ * @generated from field: bool activation = 10;
+ */
+ activation: boolean;
+
+ /**
+ * @generated from field: repeated bytebase.v1.InstanceRole roles = 12;
+ */
+ roles: InstanceRole[];
+
+ /**
+ * How often the instance is synced.
+ *
+ * @generated from field: google.protobuf.Duration sync_interval = 13;
+ */
+ syncInterval?: Duration;
+
+ /**
+ * The maximum number of connections.
+ * The default is 10 if the value is unset or zero.
+ *
+ * @generated from field: int32 maximum_connections = 14;
+ */
+ maximumConnections: number;
+
+ /**
+ * Enable sync for following databases.
+ * Default empty, means sync all schemas & databases.
+ *
+ * @generated from field: repeated string sync_databases = 15;
+ */
+ syncDatabases: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.Instance.
+ * Use `create(InstanceSchema)` to create a new message.
+ */
+export declare const InstanceSchema: GenMessage<Instance>;
+
+/**
+ * @generated from message bytebase.v1.DataSourceExternalSecret
+ */
+export declare type DataSourceExternalSecret = Message<"bytebase.v1.DataSourceExternalSecret"> & {
+ /**
+ * @generated from field: bytebase.v1.DataSourceExternalSecret.SecretType secret_type = 1;
+ */
+ secretType: DataSourceExternalSecret_SecretType;
+
+ /**
+ * @generated from field: string url = 2;
+ */
+ url: string;
+
+ /**
+ * @generated from field: bytebase.v1.DataSourceExternalSecret.AuthType auth_type = 3;
+ */
+ authType: DataSourceExternalSecret_AuthType;
+
+ /**
+ * @generated from oneof bytebase.v1.DataSourceExternalSecret.auth_option
+ */
+ authOption: {
+ /**
+ * @generated from field: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption app_role = 4;
+ */
+ value: DataSourceExternalSecret_AppRoleAuthOption;
+ case: "appRole";
+ } | {
+ /**
+ * @generated from field: string token = 5;
+ */
+ value: string;
+ case: "token";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * engine name is the name for secret engine.
+ *
+ * @generated from field: string engine_name = 6;
+ */
+ engineName: string;
+
+ /**
+ * the secret name in the engine to store the password.
+ *
+ * @generated from field: string secret_name = 7;
+ */
+ secretName: string;
+
+ /**
+ * the key name for the password.
+ *
+ * @generated from field: string password_key_name = 8;
+ */
+ passwordKeyName: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DataSourceExternalSecret.
+ * Use `create(DataSourceExternalSecretSchema)` to create a new message.
+ */
+export declare const DataSourceExternalSecretSchema: GenMessage<DataSourceExternalSecret>;
+
+/**
+ * @generated from message bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption
+ */
+export declare type DataSourceExternalSecret_AppRoleAuthOption = Message<"bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption"> & {
+ /**
+ * @generated from field: string role_id = 1;
+ */
+ roleId: string;
+
+ /**
+ * the secret id for the role without ttl.
+ *
+ * @generated from field: string secret_id = 2;
+ */
+ secretId: string;
+
+ /**
+ * @generated from field: bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType type = 3;
+ */
+ type: DataSourceExternalSecret_AppRoleAuthOption_SecretType;
+
+ /**
+ * The path where the approle auth method is mounted.
+ *
+ * @generated from field: string mount_path = 4;
+ */
+ mountPath: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.
+ * Use `create(DataSourceExternalSecret_AppRoleAuthOptionSchema)` to create a new message.
+ */
+export declare const DataSourceExternalSecret_AppRoleAuthOptionSchema: GenMessage<DataSourceExternalSecret_AppRoleAuthOption>;
+
+/**
+ * @generated from enum bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType
+ */
+export enum DataSourceExternalSecret_AppRoleAuthOption_SecretType {
+ /**
+ * @generated from enum value: SECRET_TYPE_UNSPECIFIED = 0;
+ */
+ SECRET_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PLAIN = 1;
+ */
+ PLAIN = 1,
+
+ /**
+ * @generated from enum value: ENVIRONMENT = 2;
+ */
+ ENVIRONMENT = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType.
+ */
+export declare const DataSourceExternalSecret_AppRoleAuthOption_SecretTypeSchema: GenEnum<DataSourceExternalSecret_AppRoleAuthOption_SecretType>;
+
+/**
+ * @generated from enum bytebase.v1.DataSourceExternalSecret.SecretType
+ */
+export enum DataSourceExternalSecret_SecretType {
+ /**
+ * @generated from enum value: SAECRET_TYPE_UNSPECIFIED = 0;
+ */
+ SAECRET_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2
+ *
+ * @generated from enum value: VAULT_KV_V2 = 1;
+ */
+ VAULT_KV_V2 = 1,
+
+ /**
+ * ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html
+ *
+ * @generated from enum value: AWS_SECRETS_MANAGER = 2;
+ */
+ AWS_SECRETS_MANAGER = 2,
+
+ /**
+ * ref: https://cloud.google.com/secret-manager/docs
+ *
+ * @generated from enum value: GCP_SECRET_MANAGER = 3;
+ */
+ GCP_SECRET_MANAGER = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSourceExternalSecret.SecretType.
+ */
+export declare const DataSourceExternalSecret_SecretTypeSchema: GenEnum<DataSourceExternalSecret_SecretType>;
+
+/**
+ * @generated from enum bytebase.v1.DataSourceExternalSecret.AuthType
+ */
+export enum DataSourceExternalSecret_AuthType {
+ /**
+ * @generated from enum value: AUTH_TYPE_UNSPECIFIED = 0;
+ */
+ AUTH_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * ref: https://developer.hashicorp.com/vault/docs/auth/token
+ *
+ * @generated from enum value: TOKEN = 1;
+ */
+ TOKEN = 1,
+
+ /**
+ * ref: https://developer.hashicorp.com/vault/docs/auth/approle
+ *
+ * @generated from enum value: VAULT_APP_ROLE = 2;
+ */
+ VAULT_APP_ROLE = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSourceExternalSecret.AuthType.
+ */
+export declare const DataSourceExternalSecret_AuthTypeSchema: GenEnum<DataSourceExternalSecret_AuthType>;
+
+/**
+ * @generated from message bytebase.v1.DataSource
+ */
+export declare type DataSource = Message<"bytebase.v1.DataSource"> & {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: bytebase.v1.DataSourceType type = 2;
+ */
+ type: DataSourceType;
+
+ /**
+ * @generated from field: string username = 3;
+ */
+ username: string;
+
+ /**
+ * @generated from field: string password = 4;
+ */
+ password: string;
+
+ /**
+ * Use SSL to connect to the data source. By default, we use system default SSL configuration.
+ *
+ * @generated from field: bool use_ssl = 30;
+ */
+ useSsl: boolean;
+
+ /**
+ * @generated from field: string ssl_ca = 5;
+ */
+ sslCa: string;
+
+ /**
+ * @generated from field: string ssl_cert = 6;
+ */
+ sslCert: string;
+
+ /**
+ * @generated from field: string ssl_key = 7;
+ */
+ sslKey: string;
+
+ /**
+ * @generated from field: string host = 8;
+ */
+ host: string;
+
+ /**
+ * @generated from field: string port = 9;
+ */
+ port: string;
+
+ /**
+ * @generated from field: string database = 10;
+ */
+ database: string;
+
+ /**
+ * srv, authentication_database and replica_set are used for MongoDB.
+ * srv is a boolean flag that indicates whether the host is a DNS SRV record.
+ *
+ * @generated from field: bool srv = 11;
+ */
+ srv: boolean;
+
+ /**
+ * authentication_database is the database name to authenticate against, which stores the user credentials.
+ *
+ * @generated from field: string authentication_database = 12;
+ */
+ authenticationDatabase: string;
+
+ /**
+ * replica_set is used for MongoDB replica set.
+ *
+ * @generated from field: string replica_set = 25;
+ */
+ replicaSet: string;
+
+ /**
+ * sid and service_name are used for Oracle.
+ *
+ * @generated from field: string sid = 13;
+ */
+ sid: string;
+
+ /**
+ * @generated from field: string service_name = 14;
+ */
+ serviceName: string;
+
+ /**
+ * Connection over SSH.
+ * The hostname of the SSH server agent.
+ * Required.
+ *
+ * @generated from field: string ssh_host = 15;
+ */
+ sshHost: string;
+
+ /**
+ * The port of the SSH server agent. It's 22 typically.
+ * Required.
+ *
+ * @generated from field: string ssh_port = 16;
+ */
+ sshPort: string;
+
+ /**
+ * The user to login the server.
+ * Required.
+ *
+ * @generated from field: string ssh_user = 17;
+ */
+ sshUser: string;
+
+ /**
+ * The password to login the server. If it's empty string, no password is required.
+ *
+ * @generated from field: string ssh_password = 18;
+ */
+ sshPassword: string;
+
+ /**
+ * 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").
+ *
+ * @generated from field: string ssh_private_key = 19;
+ */
+ sshPrivateKey: string;
+
+ /**
+ * PKCS#8 private key in PEM format. If it's empty string, no private key is required.
+ * Used for authentication when connecting to the data source.
+ *
+ * @generated from field: string authentication_private_key = 20;
+ */
+ authenticationPrivateKey: string;
+
+ /**
+ * @generated from field: bytebase.v1.DataSourceExternalSecret external_secret = 21;
+ */
+ externalSecret?: DataSourceExternalSecret;
+
+ /**
+ * @generated from field: bytebase.v1.DataSource.AuthenticationType authentication_type = 22;
+ */
+ authenticationType: DataSource_AuthenticationType;
+
+ /**
+ * @generated from oneof bytebase.v1.DataSource.iam_extension
+ */
+ iamExtension: {
+ /**
+ * @generated from field: bytebase.v1.DataSource.ClientSecretCredential client_secret_credential = 23;
+ */
+ value: DataSource_ClientSecretCredential;
+ case: "clientSecretCredential";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * @generated from field: bytebase.v1.SASLConfig sasl_config = 24;
+ */
+ saslConfig?: SASLConfig;
+
+ /**
+ * additional_addresses is used for MongoDB replica set.
+ *
+ * @generated from field: repeated bytebase.v1.DataSource.Address additional_addresses = 26;
+ */
+ additionalAddresses: DataSource_Address[];
+
+ /**
+ * direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string.
+ *
+ * @generated from field: bool direct_connection = 27;
+ */
+ directConnection: boolean;
+
+ /**
+ * region is the location of where the DB is, works for AWS RDS. For example, us-east-1.
+ *
+ * @generated from field: string region = 28;
+ */
+ region: string;
+
+ /**
+ * warehouse_id is used by Databricks.
+ *
+ * @generated from field: string warehouse_id = 29;
+ */
+ warehouseId: string;
+
+ /**
+ * master_name is the master name used by connecting redis-master via redis sentinel.
+ *
+ * @generated from field: string master_name = 31;
+ */
+ masterName: string;
+
+ /**
+ * master_username and master_password are master credentials used by redis sentinel mode.
+ *
+ * @generated from field: string master_username = 32;
+ */
+ masterUsername: string;
+
+ /**
+ * @generated from field: string master_password = 33;
+ */
+ masterPassword: string;
+
+ /**
+ * @generated from field: bytebase.v1.DataSource.RedisType redis_type = 34;
+ */
+ redisType: DataSource_RedisType;
+
+ /**
+ * Cluster is the cluster name for the data source. Used by CockroachDB.
+ *
+ * @generated from field: string cluster = 35;
+ */
+ cluster: string;
+
+ /**
+ * Extra connection parameters for the database connection.
+ * For PostgreSQL HA, this can be used to set target_session_attrs=read-write
+ *
+ * @generated from field: map<string, string> extra_connection_parameters = 36;
+ */
+ extraConnectionParameters: { [key: string]: string };
+};
+
+/**
+ * Describes the message bytebase.v1.DataSource.
+ * Use `create(DataSourceSchema)` to create a new message.
+ */
+export declare const DataSourceSchema: GenMessage<DataSource>;
+
+/**
+ * @generated from message bytebase.v1.DataSource.ClientSecretCredential
+ */
+export declare type DataSource_ClientSecretCredential = Message<"bytebase.v1.DataSource.ClientSecretCredential"> & {
+ /**
+ * @generated from field: string tenant_id = 1;
+ */
+ tenantId: string;
+
+ /**
+ * @generated from field: string client_id = 2;
+ */
+ clientId: string;
+
+ /**
+ * @generated from field: string client_secret = 3;
+ */
+ clientSecret: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DataSource.ClientSecretCredential.
+ * Use `create(DataSource_ClientSecretCredentialSchema)` to create a new message.
+ */
+export declare const DataSource_ClientSecretCredentialSchema: GenMessage<DataSource_ClientSecretCredential>;
+
+/**
+ * @generated from message bytebase.v1.DataSource.Address
+ */
+export declare type DataSource_Address = Message<"bytebase.v1.DataSource.Address"> & {
+ /**
+ * @generated from field: string host = 1;
+ */
+ host: string;
+
+ /**
+ * @generated from field: string port = 2;
+ */
+ port: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DataSource.Address.
+ * Use `create(DataSource_AddressSchema)` to create a new message.
+ */
+export declare const DataSource_AddressSchema: GenMessage<DataSource_Address>;
+
+/**
+ * @generated from enum bytebase.v1.DataSource.AuthenticationType
+ */
+export enum DataSource_AuthenticationType {
+ /**
+ * @generated from enum value: AUTHENTICATION_UNSPECIFIED = 0;
+ */
+ AUTHENTICATION_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PASSWORD = 1;
+ */
+ PASSWORD = 1,
+
+ /**
+ * @generated from enum value: GOOGLE_CLOUD_SQL_IAM = 2;
+ */
+ GOOGLE_CLOUD_SQL_IAM = 2,
+
+ /**
+ * @generated from enum value: AWS_RDS_IAM = 3;
+ */
+ AWS_RDS_IAM = 3,
+
+ /**
+ * @generated from enum value: AZURE_IAM = 4;
+ */
+ AZURE_IAM = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSource.AuthenticationType.
+ */
+export declare const DataSource_AuthenticationTypeSchema: GenEnum<DataSource_AuthenticationType>;
+
+/**
+ * @generated from enum bytebase.v1.DataSource.RedisType
+ */
+export enum DataSource_RedisType {
+ /**
+ * @generated from enum value: REDIS_TYPE_UNSPECIFIED = 0;
+ */
+ REDIS_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: STANDALONE = 1;
+ */
+ STANDALONE = 1,
+
+ /**
+ * @generated from enum value: SENTINEL = 2;
+ */
+ SENTINEL = 2,
+
+ /**
+ * @generated from enum value: CLUSTER = 3;
+ */
+ CLUSTER = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSource.RedisType.
+ */
+export declare const DataSource_RedisTypeSchema: GenEnum<DataSource_RedisType>;
+
+/**
+ * @generated from message bytebase.v1.InstanceResource
+ */
+export declare type InstanceResource = Message<"bytebase.v1.InstanceResource"> & {
+ /**
+ * @generated from field: string title = 1;
+ */
+ title: string;
+
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 2;
+ */
+ engine: Engine;
+
+ /**
+ * @generated from field: string engine_version = 3;
+ */
+ engineVersion: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.DataSource data_sources = 4;
+ */
+ dataSources: DataSource[];
+
+ /**
+ * @generated from field: bool activation = 5;
+ */
+ activation: boolean;
+
+ /**
+ * The name of the instance.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string name = 6;
+ */
+ name: string;
+
+ /**
+ * The environment resource.
+ * Format: environments/prod where prod is the environment resource ID.
+ *
+ * @generated from field: string environment = 7;
+ */
+ environment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.InstanceResource.
+ * Use `create(InstanceResourceSchema)` to create a new message.
+ */
+export declare const InstanceResourceSchema: GenMessage<InstanceResource>;
+
+/**
+ * @generated from message bytebase.v1.SASLConfig
+ */
+export declare type SASLConfig = Message<"bytebase.v1.SASLConfig"> & {
+ /**
+ * @generated from oneof bytebase.v1.SASLConfig.mechanism
+ */
+ mechanism: {
+ /**
+ * @generated from field: bytebase.v1.KerberosConfig krb_config = 1;
+ */
+ value: KerberosConfig;
+ case: "krbConfig";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.SASLConfig.
+ * Use `create(SASLConfigSchema)` to create a new message.
+ */
+export declare const SASLConfigSchema: GenMessage<SASLConfig>;
+
+/**
+ * @generated from message bytebase.v1.KerberosConfig
+ */
+export declare type KerberosConfig = Message<"bytebase.v1.KerberosConfig"> & {
+ /**
+ * @generated from field: string primary = 1;
+ */
+ primary: string;
+
+ /**
+ * @generated from field: string instance = 2;
+ */
+ instance: string;
+
+ /**
+ * @generated from field: string realm = 3;
+ */
+ realm: string;
+
+ /**
+ * @generated from field: bytes keytab = 4;
+ */
+ keytab: Uint8Array;
+
+ /**
+ * @generated from field: string kdc_host = 5;
+ */
+ kdcHost: string;
+
+ /**
+ * @generated from field: string kdc_port = 6;
+ */
+ kdcPort: string;
+
+ /**
+ * @generated from field: string kdc_transport_protocol = 7;
+ */
+ kdcTransportProtocol: string;
+};
+
+/**
+ * Describes the message bytebase.v1.KerberosConfig.
+ * Use `create(KerberosConfigSchema)` to create a new message.
+ */
+export declare const KerberosConfigSchema: GenMessage<KerberosConfig>;
+
+/**
+ * @generated from enum bytebase.v1.DataSourceType
+ */
+export enum DataSourceType {
+ /**
+ * @generated from enum value: DATA_SOURCE_UNSPECIFIED = 0;
+ */
+ DATA_SOURCE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ADMIN = 1;
+ */
+ ADMIN = 1,
+
+ /**
+ * @generated from enum value: READ_ONLY = 2;
+ */
+ READ_ONLY = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSourceType.
+ */
+export declare const DataSourceTypeSchema: GenEnum<DataSourceType>;
+
+/**
+ * @generated from service bytebase.v1.InstanceService
+ */
+export declare const InstanceService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.GetInstance
+ */
+ getInstance: {
+ methodKind: "unary";
+ input: typeof GetInstanceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.ListInstances
+ */
+ listInstances: {
+ methodKind: "unary";
+ input: typeof ListInstancesRequestSchema;
+ output: typeof ListInstancesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.CreateInstance
+ */
+ createInstance: {
+ methodKind: "unary";
+ input: typeof CreateInstanceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.UpdateInstance
+ */
+ updateInstance: {
+ methodKind: "unary";
+ input: typeof UpdateInstanceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.DeleteInstance
+ */
+ deleteInstance: {
+ methodKind: "unary";
+ input: typeof DeleteInstanceRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.UndeleteInstance
+ */
+ undeleteInstance: {
+ methodKind: "unary";
+ input: typeof UndeleteInstanceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.SyncInstance
+ */
+ syncInstance: {
+ methodKind: "unary";
+ input: typeof SyncInstanceRequestSchema;
+ output: typeof SyncInstanceResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.ListInstanceDatabase
+ */
+ listInstanceDatabase: {
+ methodKind: "unary";
+ input: typeof ListInstanceDatabaseRequestSchema;
+ output: typeof ListInstanceDatabaseResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.BatchSyncInstances
+ */
+ batchSyncInstances: {
+ methodKind: "unary";
+ input: typeof BatchSyncInstancesRequestSchema;
+ output: typeof BatchSyncInstancesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.BatchUpdateInstances
+ */
+ batchUpdateInstances: {
+ methodKind: "unary";
+ input: typeof BatchUpdateInstancesRequestSchema;
+ output: typeof BatchUpdateInstancesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.AddDataSource
+ */
+ addDataSource: {
+ methodKind: "unary";
+ input: typeof AddDataSourceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.RemoveDataSource
+ */
+ removeDataSource: {
+ methodKind: "unary";
+ input: typeof RemoveDataSourceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.InstanceService.UpdateDataSource
+ */
+ updateDataSource: {
+ methodKind: "unary";
+ input: typeof UpdateDataSourceRequestSchema;
+ output: typeof InstanceSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/instance_service_pb.js b/frontend/src/types/proto-es/v1/instance_service_pb.js
new file mode 100644
index 0000000000..9210549de0
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/instance_service_pb.js
@@ -0,0 +1,287 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/instance_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_instance_role_service } from "./instance_role_service_pb";
+
+/**
+ * Describes the file v1/instance_service.proto.
+ */
+export const file_v1_instance_service = /*@__PURE__*/
+ fileDesc("Chl2MS9pbnN0YW5jZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJCChJHZXRJbnN0YW5jZVJlcXVlc3QSLAoEbmFtZRgBIAEoCUIe4kEBAvpBFwoVYnl0ZWJhc2UuY29tL0luc3RhbmNlImMKFExpc3RJbnN0YW5jZXNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJEhQKDHNob3dfZGVsZXRlZBgDIAEoCBIOCgZmaWx0ZXIYBCABKAkiWgoVTGlzdEluc3RhbmNlc1Jlc3BvbnNlEigKCWluc3RhbmNlcxgBIAMoCzIVLmJ5dGViYXNlLnYxLkluc3Rh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tPkkwIeOgEqIhkvdjEvaW5zdGFuY2VzOmJhdGNoVXBkYXRlEpkBCg1BZGREYXRhU291cmNlEiEuYnl0ZWJhc2UudjEuQWRkRGF0YVNvdXJjZVJlcXVlc3QaFS5ieXRlYmFzZS52MS5JbnN0YW5jZSJOiuowE2JiLmluc3RhbmNlcy51cGRhdGWQ6jABmOowAYLT5JMCKToBKiIkL3YxL3tuYW1lPWluc3RhbmNlcy8qfTphZGREYXRhU291cmNlEqIBChBSZW1vdmVEYXRhU291cmNlEiQuYnl0ZWJhc2UudjEuUmVtb3ZlRGF0YVNvdXJjZVJlcXVlc3QaFS5ieXRlYmFzZS52MS5JbnN0YW5jZSJRiuowE2JiLmluc3RhbmNlcy51cGRhdGWQ6jABmOowAYLT5JMCLDoBKiInL3YxL3tuYW1lPWluc3RhbmNlcy8qfTpyZW1vdmVEYXRhU291cmNlEqIBChBVcGRhdGVEYXRhU291cmNlEiQuYnl0ZWJhc2UudjEuVXBkYXRlRGF0YVNvdXJjZVJlcXVlc3QaFS5ieXRlYmFzZS52MS5JbnN0YW5jZSJRiuowE2JiLmluc3RhbmNlcy51cGRhdGWQ6jABmOowAYLT5JMCLDoBKjInL3YxL3tuYW1lPWluc3RhbmNlcy8qfTp1cGRhdGVEYXRhU291cmNlQjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation, file_v1_common, file_v1_instance_role_service]);
+
+/**
+ * Describes the message bytebase.v1.GetInstanceRequest.
+ * Use `create(GetInstanceRequestSchema)` to create a new message.
+ */
+export const GetInstanceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListInstancesRequest.
+ * Use `create(ListInstancesRequestSchema)` to create a new message.
+ */
+export const ListInstancesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListInstancesResponse.
+ * Use `create(ListInstancesResponseSchema)` to create a new message.
+ */
+export const ListInstancesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 2);
+
+/**
+ * Describes the message bytebase.v1.CreateInstanceRequest.
+ * Use `create(CreateInstanceRequestSchema)` to create a new message.
+ */
+export const CreateInstanceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateInstanceRequest.
+ * Use `create(UpdateInstanceRequestSchema)` to create a new message.
+ */
+export const UpdateInstanceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteInstanceRequest.
+ * Use `create(DeleteInstanceRequestSchema)` to create a new message.
+ */
+export const DeleteInstanceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 5);
+
+/**
+ * Describes the message bytebase.v1.UndeleteInstanceRequest.
+ * Use `create(UndeleteInstanceRequestSchema)` to create a new message.
+ */
+export const UndeleteInstanceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 6);
+
+/**
+ * Describes the message bytebase.v1.SyncInstanceRequest.
+ * Use `create(SyncInstanceRequestSchema)` to create a new message.
+ */
+export const SyncInstanceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 7);
+
+/**
+ * Describes the message bytebase.v1.ListInstanceDatabaseRequest.
+ * Use `create(ListInstanceDatabaseRequestSchema)` to create a new message.
+ */
+export const ListInstanceDatabaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 8);
+
+/**
+ * Describes the message bytebase.v1.ListInstanceDatabaseResponse.
+ * Use `create(ListInstanceDatabaseResponseSchema)` to create a new message.
+ */
+export const ListInstanceDatabaseResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 9);
+
+/**
+ * Describes the message bytebase.v1.SyncInstanceResponse.
+ * Use `create(SyncInstanceResponseSchema)` to create a new message.
+ */
+export const SyncInstanceResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 10);
+
+/**
+ * Describes the message bytebase.v1.BatchSyncInstancesRequest.
+ * Use `create(BatchSyncInstancesRequestSchema)` to create a new message.
+ */
+export const BatchSyncInstancesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 11);
+
+/**
+ * Describes the message bytebase.v1.BatchSyncInstancesResponse.
+ * Use `create(BatchSyncInstancesResponseSchema)` to create a new message.
+ */
+export const BatchSyncInstancesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 12);
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateInstancesRequest.
+ * Use `create(BatchUpdateInstancesRequestSchema)` to create a new message.
+ */
+export const BatchUpdateInstancesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 13);
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateInstancesResponse.
+ * Use `create(BatchUpdateInstancesResponseSchema)` to create a new message.
+ */
+export const BatchUpdateInstancesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 14);
+
+/**
+ * Describes the message bytebase.v1.AddDataSourceRequest.
+ * Use `create(AddDataSourceRequestSchema)` to create a new message.
+ */
+export const AddDataSourceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 15);
+
+/**
+ * Describes the message bytebase.v1.RemoveDataSourceRequest.
+ * Use `create(RemoveDataSourceRequestSchema)` to create a new message.
+ */
+export const RemoveDataSourceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 16);
+
+/**
+ * Describes the message bytebase.v1.UpdateDataSourceRequest.
+ * Use `create(UpdateDataSourceRequestSchema)` to create a new message.
+ */
+export const UpdateDataSourceRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 17);
+
+/**
+ * Describes the message bytebase.v1.Instance.
+ * Use `create(InstanceSchema)` to create a new message.
+ */
+export const InstanceSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 18);
+
+/**
+ * Describes the message bytebase.v1.DataSourceExternalSecret.
+ * Use `create(DataSourceExternalSecretSchema)` to create a new message.
+ */
+export const DataSourceExternalSecretSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 19);
+
+/**
+ * Describes the message bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.
+ * Use `create(DataSourceExternalSecret_AppRoleAuthOptionSchema)` to create a new message.
+ */
+export const DataSourceExternalSecret_AppRoleAuthOptionSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 19, 0);
+
+/**
+ * Describes the enum bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType.
+ */
+export const DataSourceExternalSecret_AppRoleAuthOption_SecretTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_instance_service, 19, 0, 0);
+
+/**
+ * @generated from enum bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType
+ */
+export const DataSourceExternalSecret_AppRoleAuthOption_SecretType = /*@__PURE__*/
+ tsEnum(DataSourceExternalSecret_AppRoleAuthOption_SecretTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.DataSourceExternalSecret.SecretType.
+ */
+export const DataSourceExternalSecret_SecretTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_instance_service, 19, 0);
+
+/**
+ * @generated from enum bytebase.v1.DataSourceExternalSecret.SecretType
+ */
+export const DataSourceExternalSecret_SecretType = /*@__PURE__*/
+ tsEnum(DataSourceExternalSecret_SecretTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.DataSourceExternalSecret.AuthType.
+ */
+export const DataSourceExternalSecret_AuthTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_instance_service, 19, 1);
+
+/**
+ * @generated from enum bytebase.v1.DataSourceExternalSecret.AuthType
+ */
+export const DataSourceExternalSecret_AuthType = /*@__PURE__*/
+ tsEnum(DataSourceExternalSecret_AuthTypeSchema);
+
+/**
+ * Describes the message bytebase.v1.DataSource.
+ * Use `create(DataSourceSchema)` to create a new message.
+ */
+export const DataSourceSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 20);
+
+/**
+ * Describes the message bytebase.v1.DataSource.ClientSecretCredential.
+ * Use `create(DataSource_ClientSecretCredentialSchema)` to create a new message.
+ */
+export const DataSource_ClientSecretCredentialSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 20, 0);
+
+/**
+ * Describes the message bytebase.v1.DataSource.Address.
+ * Use `create(DataSource_AddressSchema)` to create a new message.
+ */
+export const DataSource_AddressSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 20, 1);
+
+/**
+ * Describes the enum bytebase.v1.DataSource.AuthenticationType.
+ */
+export const DataSource_AuthenticationTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_instance_service, 20, 0);
+
+/**
+ * @generated from enum bytebase.v1.DataSource.AuthenticationType
+ */
+export const DataSource_AuthenticationType = /*@__PURE__*/
+ tsEnum(DataSource_AuthenticationTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.DataSource.RedisType.
+ */
+export const DataSource_RedisTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_instance_service, 20, 1);
+
+/**
+ * @generated from enum bytebase.v1.DataSource.RedisType
+ */
+export const DataSource_RedisType = /*@__PURE__*/
+ tsEnum(DataSource_RedisTypeSchema);
+
+/**
+ * Describes the message bytebase.v1.InstanceResource.
+ * Use `create(InstanceResourceSchema)` to create a new message.
+ */
+export const InstanceResourceSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 21);
+
+/**
+ * Describes the message bytebase.v1.SASLConfig.
+ * Use `create(SASLConfigSchema)` to create a new message.
+ */
+export const SASLConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 22);
+
+/**
+ * Describes the message bytebase.v1.KerberosConfig.
+ * Use `create(KerberosConfigSchema)` to create a new message.
+ */
+export const KerberosConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_instance_service, 23);
+
+/**
+ * Describes the enum bytebase.v1.DataSourceType.
+ */
+export const DataSourceTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_instance_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.DataSourceType
+ */
+export const DataSourceType = /*@__PURE__*/
+ tsEnum(DataSourceTypeSchema);
+
+/**
+ * @generated from service bytebase.v1.InstanceService
+ */
+export const InstanceService = /*@__PURE__*/
+ serviceDesc(file_v1_instance_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/issue_service_pb.d.ts b/frontend/src/types/proto-es/v1/issue_service_pb.d.ts
new file mode 100644
index 0000000000..415c53a771
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/issue_service_pb.d.ts
@@ -0,0 +1,1434 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/issue_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { Expr } from "../google/type/expr_pb";
+
+/**
+ * Describes the file v1/issue_service.proto.
+ */
+export declare const file_v1_issue_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetIssueRequest
+ */
+export declare type GetIssueRequest = Message<"bytebase.v1.GetIssueRequest"> & {
+ /**
+ * The name of the issue to retrieve.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bool force = 2;
+ */
+ force: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.GetIssueRequest.
+ * Use `create(GetIssueRequestSchema)` to create a new message.
+ */
+export declare const GetIssueRequestSchema: GenMessage<GetIssueRequest>;
+
+/**
+ * @generated from message bytebase.v1.CreateIssueRequest
+ */
+export declare type CreateIssueRequest = Message<"bytebase.v1.CreateIssueRequest"> & {
+ /**
+ * The parent, which owns this collection of issues.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The issue to create.
+ *
+ * @generated from field: bytebase.v1.Issue issue = 2;
+ */
+ issue?: Issue;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateIssueRequest.
+ * Use `create(CreateIssueRequestSchema)` to create a new message.
+ */
+export declare const CreateIssueRequestSchema: GenMessage<CreateIssueRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListIssuesRequest
+ */
+export declare type ListIssuesRequest = Message<"bytebase.v1.ListIssuesRequest"> & {
+ /**
+ * The parent, which owns this collection of issues.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of issues to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 issues will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListIssues` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListIssues` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * Filter is used to filter issues returned in the list.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filters:
+ * - creator: issue creator full name in "users/{email or id}" format, support "==" operator.
+ * - subscriber: issue subscriber full name in "users/{email or id}" format, support "==" operator.
+ * - status: the issue status, support "==" and "in" operator, check the IssueStatus enum for the values.
+ * - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.
+ * - type: the issue type, support "==" and "in" operator, check the Type enum in the Issue message for the values.
+ * - task_type: support "==" operator, the value can be "DDL", "DML" or "DATA_EXPORT"
+ * - instance: the instance full name in the "instances/{id}" format, support "==" operator.
+ * - database: the database full name in the "instances/{id}/databases/{name}" format, support "==" operator.
+ * - labels: the issue labels, support "==" and "in" operator.
+ * - has_pipeline: the issue has pipeline or not, support "==" operator, the value should be "true" or "false".
+ *
+ * For example:
+ * creator == "users/[email protected]" && status in ["OPEN", "DONE"]
+ * status == "CANCELED" && type == "DATABASE_CHANGE"
+ * instance == "instances/sample" && labels in ["label1", "label2"]
+ * has_pipeline == true && create_time >= "2025-01-02T15:04:05Z07:00"
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+
+ /**
+ * Query is the query statement.
+ *
+ * @generated from field: string query = 5;
+ */
+ query: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListIssuesRequest.
+ * Use `create(ListIssuesRequestSchema)` to create a new message.
+ */
+export declare const ListIssuesRequestSchema: GenMessage<ListIssuesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListIssuesResponse
+ */
+export declare type ListIssuesResponse = Message<"bytebase.v1.ListIssuesResponse"> & {
+ /**
+ * The issues from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Issue issues = 1;
+ */
+ issues: Issue[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListIssuesResponse.
+ * Use `create(ListIssuesResponseSchema)` to create a new message.
+ */
+export declare const ListIssuesResponseSchema: GenMessage<ListIssuesResponse>;
+
+/**
+ * @generated from message bytebase.v1.SearchIssuesRequest
+ */
+export declare type SearchIssuesRequest = Message<"bytebase.v1.SearchIssuesRequest"> & {
+ /**
+ * The parent, which owns this collection of issues.
+ * Format: projects/{project}
+ * Use "projects/-" to list all issues from all projects.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of issues to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 issues will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `SearchIssues` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `SearchIssues` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * Filter is used to filter issues returned in the list.
+ * Check the filter field in the ListIssuesRequest message.
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+
+ /**
+ * Query is the query statement.
+ *
+ * @generated from field: string query = 5;
+ */
+ query: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchIssuesRequest.
+ * Use `create(SearchIssuesRequestSchema)` to create a new message.
+ */
+export declare const SearchIssuesRequestSchema: GenMessage<SearchIssuesRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchIssuesResponse
+ */
+export declare type SearchIssuesResponse = Message<"bytebase.v1.SearchIssuesResponse"> & {
+ /**
+ * The issues from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Issue issues = 1;
+ */
+ issues: Issue[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchIssuesResponse.
+ * Use `create(SearchIssuesResponseSchema)` to create a new message.
+ */
+export declare const SearchIssuesResponseSchema: GenMessage<SearchIssuesResponse>;
+
+/**
+ * @generated from message bytebase.v1.UpdateIssueRequest
+ */
+export declare type UpdateIssueRequest = Message<"bytebase.v1.UpdateIssueRequest"> & {
+ /**
+ * The issue to update.
+ *
+ * The issue's `name` field is used to identify the issue to update.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: bytebase.v1.Issue issue = 1;
+ */
+ issue?: Issue;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateIssueRequest.
+ * Use `create(UpdateIssueRequestSchema)` to create a new message.
+ */
+export declare const UpdateIssueRequestSchema: GenMessage<UpdateIssueRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchUpdateIssuesStatusRequest
+ */
+export declare type BatchUpdateIssuesStatusRequest = Message<"bytebase.v1.BatchUpdateIssuesStatusRequest"> & {
+ /**
+ * The parent resource shared by all issues being updated.
+ * Format: projects/{project}
+ * If the operation spans parents, a dash (-) may be accepted as a wildcard.
+ * We only support updating the status of databases for now.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The list of issues to update.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: repeated string issues = 2;
+ */
+ issues: string[];
+
+ /**
+ * The new status.
+ *
+ * @generated from field: bytebase.v1.IssueStatus status = 3;
+ */
+ status: IssueStatus;
+
+ /**
+ * @generated from field: string reason = 4;
+ */
+ reason: string;
+};
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateIssuesStatusRequest.
+ * Use `create(BatchUpdateIssuesStatusRequestSchema)` to create a new message.
+ */
+export declare const BatchUpdateIssuesStatusRequestSchema: GenMessage<BatchUpdateIssuesStatusRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchUpdateIssuesStatusResponse
+ */
+export declare type BatchUpdateIssuesStatusResponse = Message<"bytebase.v1.BatchUpdateIssuesStatusResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateIssuesStatusResponse.
+ * Use `create(BatchUpdateIssuesStatusResponseSchema)` to create a new message.
+ */
+export declare const BatchUpdateIssuesStatusResponseSchema: GenMessage<BatchUpdateIssuesStatusResponse>;
+
+/**
+ * @generated from message bytebase.v1.ApproveIssueRequest
+ */
+export declare type ApproveIssueRequest = Message<"bytebase.v1.ApproveIssueRequest"> & {
+ /**
+ * The name of the issue to add an approver.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string comment = 2;
+ */
+ comment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ApproveIssueRequest.
+ * Use `create(ApproveIssueRequestSchema)` to create a new message.
+ */
+export declare const ApproveIssueRequestSchema: GenMessage<ApproveIssueRequest>;
+
+/**
+ * @generated from message bytebase.v1.RejectIssueRequest
+ */
+export declare type RejectIssueRequest = Message<"bytebase.v1.RejectIssueRequest"> & {
+ /**
+ * The name of the issue to add an rejection.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string comment = 2;
+ */
+ comment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.RejectIssueRequest.
+ * Use `create(RejectIssueRequestSchema)` to create a new message.
+ */
+export declare const RejectIssueRequestSchema: GenMessage<RejectIssueRequest>;
+
+/**
+ * @generated from message bytebase.v1.RequestIssueRequest
+ */
+export declare type RequestIssueRequest = Message<"bytebase.v1.RequestIssueRequest"> & {
+ /**
+ * The name of the issue to request a issue.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string comment = 2;
+ */
+ comment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.RequestIssueRequest.
+ * Use `create(RequestIssueRequestSchema)` to create a new message.
+ */
+export declare const RequestIssueRequestSchema: GenMessage<RequestIssueRequest>;
+
+/**
+ * @generated from message bytebase.v1.Issue
+ */
+export declare type Issue = Message<"bytebase.v1.Issue"> & {
+ /**
+ * The name of the issue.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string title = 3;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 4;
+ */
+ description: string;
+
+ /**
+ * @generated from field: bytebase.v1.Issue.Type type = 5;
+ */
+ type: Issue_Type;
+
+ /**
+ * @generated from field: bytebase.v1.IssueStatus status = 6;
+ */
+ status: IssueStatus;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Issue.Approver approvers = 9;
+ */
+ approvers: Issue_Approver[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.ApprovalTemplate approval_templates = 10;
+ */
+ approvalTemplates: ApprovalTemplate[];
+
+ /**
+ * If the value is `false`, it means that the backend is still finding matching approval templates.
+ * If `true`, approval_templates & approvers & approval_finding_error are available.
+ *
+ * @generated from field: bool approval_finding_done = 11;
+ */
+ approvalFindingDone: boolean;
+
+ /**
+ * @generated from field: string approval_finding_error = 12;
+ */
+ approvalFindingError: string;
+
+ /**
+ * The subscribers.
+ * Format: users/[email protected]
+ *
+ * @generated from field: repeated string subscribers = 13;
+ */
+ subscribers: string[];
+
+ /**
+ * Format: users/[email protected]
+ *
+ * @generated from field: string creator = 14;
+ */
+ creator: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 15;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp update_time = 16;
+ */
+ updateTime?: Timestamp;
+
+ /**
+ * The plan associated with the issue.
+ * Can be empty.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string plan = 17;
+ */
+ plan: string;
+
+ /**
+ * The rollout associated with the issue.
+ * Can be empty.
+ * Format: projects/{project}/rollouts/{rollout}
+ *
+ * @generated from field: string rollout = 18;
+ */
+ rollout: string;
+
+ /**
+ * Used if the issue type is GRANT_REQUEST.
+ *
+ * @generated from field: bytebase.v1.GrantRequest grant_request = 19;
+ */
+ grantRequest?: GrantRequest;
+
+ /**
+ * The releasers of the pending stage of the issue rollout, judging
+ * from the rollout policy.
+ * Format:
+ * - roles/workspaceOwner
+ * - roles/workspaceDBA
+ * - roles/projectOwner
+ * - roles/projectReleaser
+ * - users/{email}
+ *
+ * @generated from field: repeated string releasers = 20;
+ */
+ releasers: string[];
+
+ /**
+ * @generated from field: bytebase.v1.Issue.RiskLevel risk_level = 21;
+ */
+ riskLevel: Issue_RiskLevel;
+
+ /**
+ * The status count of the issue.
+ * Keys are the following:
+ * - NOT_STARTED
+ * - SKIPPED
+ * - PENDING
+ * - RUNNING
+ * - DONE
+ * - FAILED
+ * - CANCELED
+ *
+ * @generated from field: map<string, int32> task_status_count = 22;
+ */
+ taskStatusCount: { [key: string]: number };
+
+ /**
+ * @generated from field: repeated string labels = 23;
+ */
+ labels: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.Issue.
+ * Use `create(IssueSchema)` to create a new message.
+ */
+export declare const IssueSchema: GenMessage<Issue>;
+
+/**
+ * @generated from message bytebase.v1.Issue.Approver
+ */
+export declare type Issue_Approver = Message<"bytebase.v1.Issue.Approver"> & {
+ /**
+ * The new status.
+ *
+ * @generated from field: bytebase.v1.Issue.Approver.Status status = 1;
+ */
+ status: Issue_Approver_Status;
+
+ /**
+ * Format: users/[email protected]
+ *
+ * @generated from field: string principal = 2;
+ */
+ principal: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Issue.Approver.
+ * Use `create(Issue_ApproverSchema)` to create a new message.
+ */
+export declare const Issue_ApproverSchema: GenMessage<Issue_Approver>;
+
+/**
+ * @generated from enum bytebase.v1.Issue.Approver.Status
+ */
+export enum Issue_Approver_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PENDING = 1;
+ */
+ PENDING = 1,
+
+ /**
+ * @generated from enum value: APPROVED = 2;
+ */
+ APPROVED = 2,
+
+ /**
+ * @generated from enum value: REJECTED = 3;
+ */
+ REJECTED = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Issue.Approver.Status.
+ */
+export declare const Issue_Approver_StatusSchema: GenEnum<Issue_Approver_Status>;
+
+/**
+ * @generated from enum bytebase.v1.Issue.Type
+ */
+export enum Issue_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DATABASE_CHANGE = 1;
+ */
+ DATABASE_CHANGE = 1,
+
+ /**
+ * @generated from enum value: GRANT_REQUEST = 2;
+ */
+ GRANT_REQUEST = 2,
+
+ /**
+ * @generated from enum value: DATABASE_EXPORT = 3;
+ */
+ DATABASE_EXPORT = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Issue.Type.
+ */
+export declare const Issue_TypeSchema: GenEnum<Issue_Type>;
+
+/**
+ * @generated from enum bytebase.v1.Issue.RiskLevel
+ */
+export enum Issue_RiskLevel {
+ /**
+ * @generated from enum value: RISK_LEVEL_UNSPECIFIED = 0;
+ */
+ RISK_LEVEL_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: LOW = 1;
+ */
+ LOW = 1,
+
+ /**
+ * @generated from enum value: MODERATE = 2;
+ */
+ MODERATE = 2,
+
+ /**
+ * @generated from enum value: HIGH = 3;
+ */
+ HIGH = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Issue.RiskLevel.
+ */
+export declare const Issue_RiskLevelSchema: GenEnum<Issue_RiskLevel>;
+
+/**
+ * @generated from message bytebase.v1.GrantRequest
+ */
+export declare type GrantRequest = Message<"bytebase.v1.GrantRequest"> & {
+ /**
+ * The requested role.
+ * Format: roles/EXPORTER.
+ *
+ * @generated from field: string role = 1;
+ */
+ role: string;
+
+ /**
+ * The user to be granted.
+ * Format: users/{email}.
+ *
+ * @generated from field: string user = 2;
+ */
+ user: string;
+
+ /**
+ * The condition for the role. Same as the condtion in IAM Binding message.
+ *
+ * @generated from field: google.type.Expr condition = 3;
+ */
+ condition?: Expr;
+
+ /**
+ * @generated from field: google.protobuf.Duration expiration = 4;
+ */
+ expiration?: Duration;
+};
+
+/**
+ * Describes the message bytebase.v1.GrantRequest.
+ * Use `create(GrantRequestSchema)` to create a new message.
+ */
+export declare const GrantRequestSchema: GenMessage<GrantRequest>;
+
+/**
+ * @generated from message bytebase.v1.ApprovalTemplate
+ */
+export declare type ApprovalTemplate = Message<"bytebase.v1.ApprovalTemplate"> & {
+ /**
+ * @generated from field: bytebase.v1.ApprovalFlow flow = 1;
+ */
+ flow?: ApprovalFlow;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 3;
+ */
+ description: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ApprovalTemplate.
+ * Use `create(ApprovalTemplateSchema)` to create a new message.
+ */
+export declare const ApprovalTemplateSchema: GenMessage<ApprovalTemplate>;
+
+/**
+ * @generated from message bytebase.v1.ApprovalFlow
+ */
+export declare type ApprovalFlow = Message<"bytebase.v1.ApprovalFlow"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.ApprovalStep steps = 1;
+ */
+ steps: ApprovalStep[];
+};
+
+/**
+ * Describes the message bytebase.v1.ApprovalFlow.
+ * Use `create(ApprovalFlowSchema)` to create a new message.
+ */
+export declare const ApprovalFlowSchema: GenMessage<ApprovalFlow>;
+
+/**
+ * @generated from message bytebase.v1.ApprovalStep
+ */
+export declare type ApprovalStep = Message<"bytebase.v1.ApprovalStep"> & {
+ /**
+ * @generated from field: bytebase.v1.ApprovalStep.Type type = 1;
+ */
+ type: ApprovalStep_Type;
+
+ /**
+ * @generated from field: repeated bytebase.v1.ApprovalNode nodes = 2;
+ */
+ nodes: ApprovalNode[];
+};
+
+/**
+ * Describes the message bytebase.v1.ApprovalStep.
+ * Use `create(ApprovalStepSchema)` to create a new message.
+ */
+export declare const ApprovalStepSchema: GenMessage<ApprovalStep>;
+
+/**
+ * Type of the ApprovalStep
+ * ALL means every node must be approved to proceed.
+ * ANY means approving any node will proceed.
+ *
+ * @generated from enum bytebase.v1.ApprovalStep.Type
+ */
+export enum ApprovalStep_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ALL = 1;
+ */
+ ALL = 1,
+
+ /**
+ * @generated from enum value: ANY = 2;
+ */
+ ANY = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.ApprovalStep.Type.
+ */
+export declare const ApprovalStep_TypeSchema: GenEnum<ApprovalStep_Type>;
+
+/**
+ * @generated from message bytebase.v1.ApprovalNode
+ */
+export declare type ApprovalNode = Message<"bytebase.v1.ApprovalNode"> & {
+ /**
+ * @generated from field: bytebase.v1.ApprovalNode.Type type = 1;
+ */
+ type: ApprovalNode_Type;
+
+ /**
+ * @generated from field: string role = 2;
+ */
+ role: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ApprovalNode.
+ * Use `create(ApprovalNodeSchema)` to create a new message.
+ */
+export declare const ApprovalNodeSchema: GenMessage<ApprovalNode>;
+
+/**
+ * Type of the ApprovalNode.
+ * type determines who should approve this node.
+ * ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.
+ * See GroupValue below for the predefined user groups.
+ *
+ * @generated from enum bytebase.v1.ApprovalNode.Type
+ */
+export enum ApprovalNode_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ANY_IN_GROUP = 1;
+ */
+ ANY_IN_GROUP = 1,
+}
+
+/**
+ * Describes the enum bytebase.v1.ApprovalNode.Type.
+ */
+export declare const ApprovalNode_TypeSchema: GenEnum<ApprovalNode_Type>;
+
+/**
+ * @generated from message bytebase.v1.ListIssueCommentsRequest
+ */
+export declare type ListIssueCommentsRequest = Message<"bytebase.v1.ListIssueCommentsRequest"> & {
+ /**
+ * Format: projects/{projects}/issues/{issue}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of issue comments to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 issue comments will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListIssueComments` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListIssueComments` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListIssueCommentsRequest.
+ * Use `create(ListIssueCommentsRequestSchema)` to create a new message.
+ */
+export declare const ListIssueCommentsRequestSchema: GenMessage<ListIssueCommentsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListIssueCommentsResponse
+ */
+export declare type ListIssueCommentsResponse = Message<"bytebase.v1.ListIssueCommentsResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.IssueComment issue_comments = 1;
+ */
+ issueComments: IssueComment[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListIssueCommentsResponse.
+ * Use `create(ListIssueCommentsResponseSchema)` to create a new message.
+ */
+export declare const ListIssueCommentsResponseSchema: GenMessage<ListIssueCommentsResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateIssueCommentRequest
+ */
+export declare type CreateIssueCommentRequest = Message<"bytebase.v1.CreateIssueCommentRequest"> & {
+ /**
+ * The issue name
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * @generated from field: bytebase.v1.IssueComment issue_comment = 2;
+ */
+ issueComment?: IssueComment;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateIssueCommentRequest.
+ * Use `create(CreateIssueCommentRequestSchema)` to create a new message.
+ */
+export declare const CreateIssueCommentRequestSchema: GenMessage<CreateIssueCommentRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateIssueCommentRequest
+ */
+export declare type UpdateIssueCommentRequest = Message<"bytebase.v1.UpdateIssueCommentRequest"> & {
+ /**
+ * The issue name
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * @generated from field: bytebase.v1.IssueComment issue_comment = 2;
+ */
+ issueComment?: IssueComment;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 3;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateIssueCommentRequest.
+ * Use `create(UpdateIssueCommentRequestSchema)` to create a new message.
+ */
+export declare const UpdateIssueCommentRequestSchema: GenMessage<UpdateIssueCommentRequest>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment
+ */
+export declare type IssueComment = Message<"bytebase.v1.IssueComment"> & {
+ /**
+ * Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string comment = 2;
+ */
+ comment: string;
+
+ /**
+ * TODO: use struct message instead.
+ *
+ * @generated from field: string payload = 3;
+ */
+ payload: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 4;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp update_time = 5;
+ */
+ updateTime?: Timestamp;
+
+ /**
+ * Format: users/{email}
+ *
+ * @generated from field: string creator = 7;
+ */
+ creator: string;
+
+ /**
+ * @generated from oneof bytebase.v1.IssueComment.event
+ */
+ event: {
+ /**
+ * @generated from field: bytebase.v1.IssueComment.Approval approval = 8;
+ */
+ value: IssueComment_Approval;
+ case: "approval";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.IssueComment.IssueUpdate issue_update = 9;
+ */
+ value: IssueComment_IssueUpdate;
+ case: "issueUpdate";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.IssueComment.StageEnd stage_end = 10;
+ */
+ value: IssueComment_StageEnd;
+ case: "stageEnd";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.IssueComment.TaskUpdate task_update = 11;
+ */
+ value: IssueComment_TaskUpdate;
+ case: "taskUpdate";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.IssueComment.TaskPriorBackup task_prior_backup = 12;
+ */
+ value: IssueComment_TaskPriorBackup;
+ case: "taskPriorBackup";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.
+ * Use `create(IssueCommentSchema)` to create a new message.
+ */
+export declare const IssueCommentSchema: GenMessage<IssueComment>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment.Approval
+ */
+export declare type IssueComment_Approval = Message<"bytebase.v1.IssueComment.Approval"> & {
+ /**
+ * @generated from field: bytebase.v1.IssueComment.Approval.Status status = 1;
+ */
+ status: IssueComment_Approval_Status;
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.Approval.
+ * Use `create(IssueComment_ApprovalSchema)` to create a new message.
+ */
+export declare const IssueComment_ApprovalSchema: GenMessage<IssueComment_Approval>;
+
+/**
+ * @generated from enum bytebase.v1.IssueComment.Approval.Status
+ */
+export enum IssueComment_Approval_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PENDING = 1;
+ */
+ PENDING = 1,
+
+ /**
+ * @generated from enum value: APPROVED = 2;
+ */
+ APPROVED = 2,
+
+ /**
+ * @generated from enum value: REJECTED = 3;
+ */
+ REJECTED = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.IssueComment.Approval.Status.
+ */
+export declare const IssueComment_Approval_StatusSchema: GenEnum<IssueComment_Approval_Status>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment.IssueUpdate
+ */
+export declare type IssueComment_IssueUpdate = Message<"bytebase.v1.IssueComment.IssueUpdate"> & {
+ /**
+ * @generated from field: optional string from_title = 1;
+ */
+ fromTitle?: string;
+
+ /**
+ * @generated from field: optional string to_title = 2;
+ */
+ toTitle?: string;
+
+ /**
+ * @generated from field: optional string from_description = 3;
+ */
+ fromDescription?: string;
+
+ /**
+ * @generated from field: optional string to_description = 4;
+ */
+ toDescription?: string;
+
+ /**
+ * @generated from field: optional bytebase.v1.IssueStatus from_status = 5;
+ */
+ fromStatus?: IssueStatus;
+
+ /**
+ * @generated from field: optional bytebase.v1.IssueStatus to_status = 6;
+ */
+ toStatus?: IssueStatus;
+
+ /**
+ * @generated from field: repeated string from_labels = 9;
+ */
+ fromLabels: string[];
+
+ /**
+ * @generated from field: repeated string to_labels = 10;
+ */
+ toLabels: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.IssueUpdate.
+ * Use `create(IssueComment_IssueUpdateSchema)` to create a new message.
+ */
+export declare const IssueComment_IssueUpdateSchema: GenMessage<IssueComment_IssueUpdate>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment.StageEnd
+ */
+export declare type IssueComment_StageEnd = Message<"bytebase.v1.IssueComment.StageEnd"> & {
+ /**
+ * @generated from field: string stage = 1;
+ */
+ stage: string;
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.StageEnd.
+ * Use `create(IssueComment_StageEndSchema)` to create a new message.
+ */
+export declare const IssueComment_StageEndSchema: GenMessage<IssueComment_StageEnd>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment.TaskUpdate
+ */
+export declare type IssueComment_TaskUpdate = Message<"bytebase.v1.IssueComment.TaskUpdate"> & {
+ /**
+ * @generated from field: repeated string tasks = 1;
+ */
+ tasks: string[];
+
+ /**
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: optional string from_sheet = 2;
+ */
+ fromSheet?: string;
+
+ /**
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: optional string to_sheet = 3;
+ */
+ toSheet?: string;
+
+ /**
+ * @generated from field: optional bytebase.v1.IssueComment.TaskUpdate.Status to_status = 6;
+ */
+ toStatus?: IssueComment_TaskUpdate_Status;
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.TaskUpdate.
+ * Use `create(IssueComment_TaskUpdateSchema)` to create a new message.
+ */
+export declare const IssueComment_TaskUpdateSchema: GenMessage<IssueComment_TaskUpdate>;
+
+/**
+ * @generated from enum bytebase.v1.IssueComment.TaskUpdate.Status
+ */
+export enum IssueComment_TaskUpdate_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PENDING = 1;
+ */
+ PENDING = 1,
+
+ /**
+ * @generated from enum value: RUNNING = 2;
+ */
+ RUNNING = 2,
+
+ /**
+ * @generated from enum value: DONE = 3;
+ */
+ DONE = 3,
+
+ /**
+ * @generated from enum value: FAILED = 4;
+ */
+ FAILED = 4,
+
+ /**
+ * @generated from enum value: SKIPPED = 5;
+ */
+ SKIPPED = 5,
+
+ /**
+ * @generated from enum value: CANCELED = 6;
+ */
+ CANCELED = 6,
+}
+
+/**
+ * Describes the enum bytebase.v1.IssueComment.TaskUpdate.Status.
+ */
+export declare const IssueComment_TaskUpdate_StatusSchema: GenEnum<IssueComment_TaskUpdate_Status>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment.TaskPriorBackup
+ */
+export declare type IssueComment_TaskPriorBackup = Message<"bytebase.v1.IssueComment.TaskPriorBackup"> & {
+ /**
+ * @generated from field: string task = 1;
+ */
+ task: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.IssueComment.TaskPriorBackup.Table tables = 2;
+ */
+ tables: IssueComment_TaskPriorBackup_Table[];
+
+ /**
+ * @generated from field: optional int32 original_line = 3;
+ */
+ originalLine?: number;
+
+ /**
+ * @generated from field: string database = 4;
+ */
+ database: string;
+
+ /**
+ * @generated from field: string error = 5;
+ */
+ error: string;
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.
+ * Use `create(IssueComment_TaskPriorBackupSchema)` to create a new message.
+ */
+export declare const IssueComment_TaskPriorBackupSchema: GenMessage<IssueComment_TaskPriorBackup>;
+
+/**
+ * @generated from message bytebase.v1.IssueComment.TaskPriorBackup.Table
+ */
+export declare type IssueComment_TaskPriorBackup_Table = Message<"bytebase.v1.IssueComment.TaskPriorBackup.Table"> & {
+ /**
+ * @generated from field: string schema = 1;
+ */
+ schema: string;
+
+ /**
+ * @generated from field: string table = 2;
+ */
+ table: string;
+};
+
+/**
+ * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.Table.
+ * Use `create(IssueComment_TaskPriorBackup_TableSchema)` to create a new message.
+ */
+export declare const IssueComment_TaskPriorBackup_TableSchema: GenMessage<IssueComment_TaskPriorBackup_Table>;
+
+/**
+ * @generated from enum bytebase.v1.IssueStatus
+ */
+export enum IssueStatus {
+ /**
+ * @generated from enum value: ISSUE_STATUS_UNSPECIFIED = 0;
+ */
+ ISSUE_STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: OPEN = 1;
+ */
+ OPEN = 1,
+
+ /**
+ * @generated from enum value: DONE = 2;
+ */
+ DONE = 2,
+
+ /**
+ * @generated from enum value: CANCELED = 3;
+ */
+ CANCELED = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.IssueStatus.
+ */
+export declare const IssueStatusSchema: GenEnum<IssueStatus>;
+
+/**
+ * @generated from service bytebase.v1.IssueService
+ */
+export declare const IssueService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.IssueService.GetIssue
+ */
+ getIssue: {
+ methodKind: "unary";
+ input: typeof GetIssueRequestSchema;
+ output: typeof IssueSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.CreateIssue
+ */
+ createIssue: {
+ methodKind: "unary";
+ input: typeof CreateIssueRequestSchema;
+ output: typeof IssueSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.ListIssues
+ */
+ listIssues: {
+ methodKind: "unary";
+ input: typeof ListIssuesRequestSchema;
+ output: typeof ListIssuesResponseSchema;
+ },
+ /**
+ * Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.
+ *
+ * @generated from rpc bytebase.v1.IssueService.SearchIssues
+ */
+ searchIssues: {
+ methodKind: "unary";
+ input: typeof SearchIssuesRequestSchema;
+ output: typeof SearchIssuesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.UpdateIssue
+ */
+ updateIssue: {
+ methodKind: "unary";
+ input: typeof UpdateIssueRequestSchema;
+ output: typeof IssueSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.ListIssueComments
+ */
+ listIssueComments: {
+ methodKind: "unary";
+ input: typeof ListIssueCommentsRequestSchema;
+ output: typeof ListIssueCommentsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.CreateIssueComment
+ */
+ createIssueComment: {
+ methodKind: "unary";
+ input: typeof CreateIssueCommentRequestSchema;
+ output: typeof IssueCommentSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.UpdateIssueComment
+ */
+ updateIssueComment: {
+ methodKind: "unary";
+ input: typeof UpdateIssueCommentRequestSchema;
+ output: typeof IssueCommentSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.IssueService.BatchUpdateIssuesStatus
+ */
+ batchUpdateIssuesStatus: {
+ methodKind: "unary";
+ input: typeof BatchUpdateIssuesStatusRequestSchema;
+ output: typeof BatchUpdateIssuesStatusResponseSchema;
+ },
+ /**
+ * ApproveIssue approves the issue.
+ * The access is based on approval flow.
+ *
+ * @generated from rpc bytebase.v1.IssueService.ApproveIssue
+ */
+ approveIssue: {
+ methodKind: "unary";
+ input: typeof ApproveIssueRequestSchema;
+ output: typeof IssueSchema;
+ },
+ /**
+ * RejectIssue rejects the issue.
+ * The access is based on approval flow.
+ *
+ * @generated from rpc bytebase.v1.IssueService.RejectIssue
+ */
+ rejectIssue: {
+ methodKind: "unary";
+ input: typeof RejectIssueRequestSchema;
+ output: typeof IssueSchema;
+ },
+ /**
+ * RequestIssue requests the issue.
+ * The access is based on approval flow.
+ *
+ * @generated from rpc bytebase.v1.IssueService.RequestIssue
+ */
+ requestIssue: {
+ methodKind: "unary";
+ input: typeof RequestIssueRequestSchema;
+ output: typeof IssueSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/issue_service_pb.js b/frontend/src/types/proto-es/v1/issue_service_pb.js
new file mode 100644
index 0000000000..b4ab953799
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/issue_service_pb.js
@@ -0,0 +1,340 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/issue_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_google_type_expr } from "../google/type/expr_pb";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/issue_service.proto.
+ */
+export const file_v1_issue_service = /*@__PURE__*/
+ fileDesc("ChZ2MS9pc3N1ZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJLCg9HZXRJc3N1ZVJlcXVlc3QSKQoEbmFtZRgBIAEoCUIb4kEBAvpBFAoSYnl0ZWJhc2UuY29tL0lzc3VlEg0KBWZvcmNlGAIgASgIImwKEkNyZWF0ZUlzc3VlUmVxdWVzdBItCgZwYXJlbnQYASABKAlCHeJBAQL6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EicKBWlzc3VlGAIgASgLMhIuYnl0ZWJhc2UudjEuSXNzdWVCBOJBAQIiiAEKEUxpc3RJc3N1ZXNSZXF1ZXN0Ei0KBnBhcmVudBgBIAEoCUId4kEBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJEg0KBXF1ZXJ5GAUgASgJIlEKEkxpc3RJc3N1ZXNSZXNwb25zZRIiCgZpc3N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J/CgxBcHByb3ZlSXNzdWUSIC5ieXRlYmFzZS52MS5BcHByb3ZlSXNzdWVSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuSXNzdWUiOZDqMAKY6jABgtPkkwIrOgEqIiYvdjEve25hbWU9cHJvamVjdHMvKi9pc3N1ZXMvKn06YXBwcm92ZRJ8CgtSZWplY3RJc3N1ZRIfLmJ5dGViYXNlLnYxLlJlamVjdElzc3VlUmVxdWVzdBoSLmJ5dGViYXNlLnYxLklzc3VlIjiQ6jACmOowAYLT5JMCKjoBKiIlL3YxL3tuYW1lPXByb2plY3RzLyovaXNzdWVzLyp9OnJlamVjdBJ/CgxSZXF1ZXN0SXNzdWUSIC5ieXRlYmFzZS52MS5SZXF1ZXN0SXNzdWVSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuSXNzdWUiOZDqMAKY6jABgtPkkwIrOgEqIiYvdjEve25hbWU9cHJvamVjdHMvKi9pc3N1ZXMvKn06cmVxdWVzdEI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_google_type_expr, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.GetIssueRequest.
+ * Use `create(GetIssueRequestSchema)` to create a new message.
+ */
+export const GetIssueRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 0);
+
+/**
+ * Describes the message bytebase.v1.CreateIssueRequest.
+ * Use `create(CreateIssueRequestSchema)` to create a new message.
+ */
+export const CreateIssueRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListIssuesRequest.
+ * Use `create(ListIssuesRequestSchema)` to create a new message.
+ */
+export const ListIssuesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 2);
+
+/**
+ * Describes the message bytebase.v1.ListIssuesResponse.
+ * Use `create(ListIssuesResponseSchema)` to create a new message.
+ */
+export const ListIssuesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 3);
+
+/**
+ * Describes the message bytebase.v1.SearchIssuesRequest.
+ * Use `create(SearchIssuesRequestSchema)` to create a new message.
+ */
+export const SearchIssuesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 4);
+
+/**
+ * Describes the message bytebase.v1.SearchIssuesResponse.
+ * Use `create(SearchIssuesResponseSchema)` to create a new message.
+ */
+export const SearchIssuesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 5);
+
+/**
+ * Describes the message bytebase.v1.UpdateIssueRequest.
+ * Use `create(UpdateIssueRequestSchema)` to create a new message.
+ */
+export const UpdateIssueRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 6);
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateIssuesStatusRequest.
+ * Use `create(BatchUpdateIssuesStatusRequestSchema)` to create a new message.
+ */
+export const BatchUpdateIssuesStatusRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 7);
+
+/**
+ * Describes the message bytebase.v1.BatchUpdateIssuesStatusResponse.
+ * Use `create(BatchUpdateIssuesStatusResponseSchema)` to create a new message.
+ */
+export const BatchUpdateIssuesStatusResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 8);
+
+/**
+ * Describes the message bytebase.v1.ApproveIssueRequest.
+ * Use `create(ApproveIssueRequestSchema)` to create a new message.
+ */
+export const ApproveIssueRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 9);
+
+/**
+ * Describes the message bytebase.v1.RejectIssueRequest.
+ * Use `create(RejectIssueRequestSchema)` to create a new message.
+ */
+export const RejectIssueRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 10);
+
+/**
+ * Describes the message bytebase.v1.RequestIssueRequest.
+ * Use `create(RequestIssueRequestSchema)` to create a new message.
+ */
+export const RequestIssueRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 11);
+
+/**
+ * Describes the message bytebase.v1.Issue.
+ * Use `create(IssueSchema)` to create a new message.
+ */
+export const IssueSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 12);
+
+/**
+ * Describes the message bytebase.v1.Issue.Approver.
+ * Use `create(Issue_ApproverSchema)` to create a new message.
+ */
+export const Issue_ApproverSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 12, 0);
+
+/**
+ * Describes the enum bytebase.v1.Issue.Approver.Status.
+ */
+export const Issue_Approver_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 12, 0, 0);
+
+/**
+ * @generated from enum bytebase.v1.Issue.Approver.Status
+ */
+export const Issue_Approver_Status = /*@__PURE__*/
+ tsEnum(Issue_Approver_StatusSchema);
+
+/**
+ * Describes the enum bytebase.v1.Issue.Type.
+ */
+export const Issue_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 12, 0);
+
+/**
+ * @generated from enum bytebase.v1.Issue.Type
+ */
+export const Issue_Type = /*@__PURE__*/
+ tsEnum(Issue_TypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.Issue.RiskLevel.
+ */
+export const Issue_RiskLevelSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 12, 1);
+
+/**
+ * @generated from enum bytebase.v1.Issue.RiskLevel
+ */
+export const Issue_RiskLevel = /*@__PURE__*/
+ tsEnum(Issue_RiskLevelSchema);
+
+/**
+ * Describes the message bytebase.v1.GrantRequest.
+ * Use `create(GrantRequestSchema)` to create a new message.
+ */
+export const GrantRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 13);
+
+/**
+ * Describes the message bytebase.v1.ApprovalTemplate.
+ * Use `create(ApprovalTemplateSchema)` to create a new message.
+ */
+export const ApprovalTemplateSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 14);
+
+/**
+ * Describes the message bytebase.v1.ApprovalFlow.
+ * Use `create(ApprovalFlowSchema)` to create a new message.
+ */
+export const ApprovalFlowSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 15);
+
+/**
+ * Describes the message bytebase.v1.ApprovalStep.
+ * Use `create(ApprovalStepSchema)` to create a new message.
+ */
+export const ApprovalStepSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 16);
+
+/**
+ * Describes the enum bytebase.v1.ApprovalStep.Type.
+ */
+export const ApprovalStep_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 16, 0);
+
+/**
+ * Type of the ApprovalStep
+ * ALL means every node must be approved to proceed.
+ * ANY means approving any node will proceed.
+ *
+ * @generated from enum bytebase.v1.ApprovalStep.Type
+ */
+export const ApprovalStep_Type = /*@__PURE__*/
+ tsEnum(ApprovalStep_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.ApprovalNode.
+ * Use `create(ApprovalNodeSchema)` to create a new message.
+ */
+export const ApprovalNodeSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 17);
+
+/**
+ * Describes the enum bytebase.v1.ApprovalNode.Type.
+ */
+export const ApprovalNode_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 17, 0);
+
+/**
+ * Type of the ApprovalNode.
+ * type determines who should approve this node.
+ * ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.
+ * See GroupValue below for the predefined user groups.
+ *
+ * @generated from enum bytebase.v1.ApprovalNode.Type
+ */
+export const ApprovalNode_Type = /*@__PURE__*/
+ tsEnum(ApprovalNode_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.ListIssueCommentsRequest.
+ * Use `create(ListIssueCommentsRequestSchema)` to create a new message.
+ */
+export const ListIssueCommentsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 18);
+
+/**
+ * Describes the message bytebase.v1.ListIssueCommentsResponse.
+ * Use `create(ListIssueCommentsResponseSchema)` to create a new message.
+ */
+export const ListIssueCommentsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 19);
+
+/**
+ * Describes the message bytebase.v1.CreateIssueCommentRequest.
+ * Use `create(CreateIssueCommentRequestSchema)` to create a new message.
+ */
+export const CreateIssueCommentRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 20);
+
+/**
+ * Describes the message bytebase.v1.UpdateIssueCommentRequest.
+ * Use `create(UpdateIssueCommentRequestSchema)` to create a new message.
+ */
+export const UpdateIssueCommentRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 21);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.
+ * Use `create(IssueCommentSchema)` to create a new message.
+ */
+export const IssueCommentSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.Approval.
+ * Use `create(IssueComment_ApprovalSchema)` to create a new message.
+ */
+export const IssueComment_ApprovalSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22, 0);
+
+/**
+ * Describes the enum bytebase.v1.IssueComment.Approval.Status.
+ */
+export const IssueComment_Approval_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 22, 0, 0);
+
+/**
+ * @generated from enum bytebase.v1.IssueComment.Approval.Status
+ */
+export const IssueComment_Approval_Status = /*@__PURE__*/
+ tsEnum(IssueComment_Approval_StatusSchema);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.IssueUpdate.
+ * Use `create(IssueComment_IssueUpdateSchema)` to create a new message.
+ */
+export const IssueComment_IssueUpdateSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22, 1);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.StageEnd.
+ * Use `create(IssueComment_StageEndSchema)` to create a new message.
+ */
+export const IssueComment_StageEndSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22, 2);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.TaskUpdate.
+ * Use `create(IssueComment_TaskUpdateSchema)` to create a new message.
+ */
+export const IssueComment_TaskUpdateSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22, 3);
+
+/**
+ * Describes the enum bytebase.v1.IssueComment.TaskUpdate.Status.
+ */
+export const IssueComment_TaskUpdate_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 22, 3, 0);
+
+/**
+ * @generated from enum bytebase.v1.IssueComment.TaskUpdate.Status
+ */
+export const IssueComment_TaskUpdate_Status = /*@__PURE__*/
+ tsEnum(IssueComment_TaskUpdate_StatusSchema);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.
+ * Use `create(IssueComment_TaskPriorBackupSchema)` to create a new message.
+ */
+export const IssueComment_TaskPriorBackupSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22, 4);
+
+/**
+ * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.Table.
+ * Use `create(IssueComment_TaskPriorBackup_TableSchema)` to create a new message.
+ */
+export const IssueComment_TaskPriorBackup_TableSchema = /*@__PURE__*/
+ messageDesc(file_v1_issue_service, 22, 4, 0);
+
+/**
+ * Describes the enum bytebase.v1.IssueStatus.
+ */
+export const IssueStatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_issue_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.IssueStatus
+ */
+export const IssueStatus = /*@__PURE__*/
+ tsEnum(IssueStatusSchema);
+
+/**
+ * @generated from service bytebase.v1.IssueService
+ */
+export const IssueService = /*@__PURE__*/
+ serviceDesc(file_v1_issue_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/org_policy_service_pb.d.ts b/frontend/src/types/proto-es/v1/org_policy_service_pb.d.ts
new file mode 100644
index 0000000000..00a2ec7906
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/org_policy_service_pb.d.ts
@@ -0,0 +1,859 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/org_policy_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Duration, EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+import type { Engine } from "./common_pb";
+import type { Expr } from "../google/type/expr_pb";
+
+/**
+ * Describes the file v1/org_policy_service.proto.
+ */
+export declare const file_v1_org_policy_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.CreatePolicyRequest
+ */
+export declare type CreatePolicyRequest = Message<"bytebase.v1.CreatePolicyRequest"> & {
+ /**
+ * The parent resource where this instance will be created.
+ * Workspace resource name: "".
+ * Environment resource name: environments/environment-id.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The policy to create.
+ *
+ * @generated from field: bytebase.v1.Policy policy = 2;
+ */
+ policy?: Policy;
+
+ /**
+ * @generated from field: bytebase.v1.PolicyType type = 3;
+ */
+ type: PolicyType;
+};
+
+/**
+ * Describes the message bytebase.v1.CreatePolicyRequest.
+ * Use `create(CreatePolicyRequestSchema)` to create a new message.
+ */
+export declare const CreatePolicyRequestSchema: GenMessage<CreatePolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdatePolicyRequest
+ */
+export declare type UpdatePolicyRequest = Message<"bytebase.v1.UpdatePolicyRequest"> & {
+ /**
+ * The policy to update.
+ *
+ * The policy's `name` field is used to identify the instance to update.
+ * Format: {resource name}/policies/{policy type}
+ * Workspace resource name: "".
+ * Environment resource name: environments/environment-id.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
+ *
+ * @generated from field: bytebase.v1.Policy policy = 1;
+ */
+ policy?: Policy;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * If set to true, and the policy is not found, a new policy will be created.
+ * In this situation, `update_mask` is ignored.
+ *
+ * @generated from field: bool allow_missing = 3;
+ */
+ allowMissing: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdatePolicyRequest.
+ * Use `create(UpdatePolicyRequestSchema)` to create a new message.
+ */
+export declare const UpdatePolicyRequestSchema: GenMessage<UpdatePolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeletePolicyRequest
+ */
+export declare type DeletePolicyRequest = Message<"bytebase.v1.DeletePolicyRequest"> & {
+ /**
+ * The policy's `name` field is used to identify the instance to update.
+ * Format: {resource name}/policies/{policy type}
+ * Workspace resource name: "".
+ * Environment resource name: environments/environment-id.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeletePolicyRequest.
+ * Use `create(DeletePolicyRequestSchema)` to create a new message.
+ */
+export declare const DeletePolicyRequestSchema: GenMessage<DeletePolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetPolicyRequest
+ */
+export declare type GetPolicyRequest = Message<"bytebase.v1.GetPolicyRequest"> & {
+ /**
+ * The name of the policy to retrieve.
+ * Format: {resource type}/{resource id}/policies/{policy type}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetPolicyRequest.
+ * Use `create(GetPolicyRequestSchema)` to create a new message.
+ */
+export declare const GetPolicyRequestSchema: GenMessage<GetPolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListPoliciesRequest
+ */
+export declare type ListPoliciesRequest = Message<"bytebase.v1.ListPoliciesRequest"> & {
+ /**
+ * The parent, which owns this collection of policies.
+ * Format: {resource type}/{resource id}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * @generated from field: optional bytebase.v1.PolicyType policy_type = 2;
+ */
+ policyType?: PolicyType;
+
+ /**
+ * Not used.
+ * The maximum number of policies to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 policies will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 3;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListPolicies` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListPolicies` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 4;
+ */
+ pageToken: string;
+
+ /**
+ * Show deleted policies if specified.
+ *
+ * @generated from field: bool show_deleted = 5;
+ */
+ showDeleted: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ListPoliciesRequest.
+ * Use `create(ListPoliciesRequestSchema)` to create a new message.
+ */
+export declare const ListPoliciesRequestSchema: GenMessage<ListPoliciesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListPoliciesResponse
+ */
+export declare type ListPoliciesResponse = Message<"bytebase.v1.ListPoliciesResponse"> & {
+ /**
+ * The policies from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Policy policies = 1;
+ */
+ policies: Policy[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListPoliciesResponse.
+ * Use `create(ListPoliciesResponseSchema)` to create a new message.
+ */
+export declare const ListPoliciesResponseSchema: GenMessage<ListPoliciesResponse>;
+
+/**
+ * @generated from message bytebase.v1.Policy
+ */
+export declare type Policy = Message<"bytebase.v1.Policy"> & {
+ /**
+ * The name of the policy.
+ * Format: {resource name}/policies/{policy type}
+ * Workspace resource name: "".
+ * Environment resource name: environments/environment-id.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bool inherit_from_parent = 4;
+ */
+ inheritFromParent: boolean;
+
+ /**
+ * @generated from field: bytebase.v1.PolicyType type = 5;
+ */
+ type: PolicyType;
+
+ /**
+ * @generated from oneof bytebase.v1.Policy.policy
+ */
+ policy: {
+ /**
+ * @generated from field: bytebase.v1.RolloutPolicy rollout_policy = 19;
+ */
+ value: RolloutPolicy;
+ case: "rolloutPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.DisableCopyDataPolicy disable_copy_data_policy = 16;
+ */
+ value: DisableCopyDataPolicy;
+ case: "disableCopyDataPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.MaskingRulePolicy masking_rule_policy = 17;
+ */
+ value: MaskingRulePolicy;
+ case: "maskingRulePolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.MaskingExceptionPolicy masking_exception_policy = 18;
+ */
+ value: MaskingExceptionPolicy;
+ case: "maskingExceptionPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy restrict_issue_creation_for_sql_review_policy = 20;
+ */
+ value: RestrictIssueCreationForSQLReviewPolicy;
+ case: "restrictIssueCreationForSqlReviewPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.TagPolicy tag_policy = 21;
+ */
+ value: TagPolicy;
+ case: "tagPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.DataSourceQueryPolicy data_source_query_policy = 22;
+ */
+ value: DataSourceQueryPolicy;
+ case: "dataSourceQueryPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.ExportDataPolicy export_data_policy = 23;
+ */
+ value: ExportDataPolicy;
+ case: "exportDataPolicy";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.QueryDataPolicy query_data_policy = 24;
+ */
+ value: QueryDataPolicy;
+ case: "queryDataPolicy";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * @generated from field: bool enforce = 13;
+ */
+ enforce: boolean;
+
+ /**
+ * The resource type for the policy.
+ *
+ * @generated from field: bytebase.v1.PolicyResourceType resource_type = 14;
+ */
+ resourceType: PolicyResourceType;
+};
+
+/**
+ * Describes the message bytebase.v1.Policy.
+ * Use `create(PolicySchema)` to create a new message.
+ */
+export declare const PolicySchema: GenMessage<Policy>;
+
+/**
+ * @generated from message bytebase.v1.RolloutPolicy
+ */
+export declare type RolloutPolicy = Message<"bytebase.v1.RolloutPolicy"> & {
+ /**
+ * @generated from field: bool automatic = 1;
+ */
+ automatic: boolean;
+
+ /**
+ * @generated from field: repeated string roles = 2;
+ */
+ roles: string[];
+
+ /**
+ * roles/LAST_APPROVER
+ * roles/CREATOR
+ *
+ * @generated from field: repeated string issue_roles = 3;
+ */
+ issueRoles: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.RolloutPolicy.
+ * Use `create(RolloutPolicySchema)` to create a new message.
+ */
+export declare const RolloutPolicySchema: GenMessage<RolloutPolicy>;
+
+/**
+ * @generated from message bytebase.v1.DisableCopyDataPolicy
+ */
+export declare type DisableCopyDataPolicy = Message<"bytebase.v1.DisableCopyDataPolicy"> & {
+ /**
+ * @generated from field: bool active = 1;
+ */
+ active: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DisableCopyDataPolicy.
+ * Use `create(DisableCopyDataPolicySchema)` to create a new message.
+ */
+export declare const DisableCopyDataPolicySchema: GenMessage<DisableCopyDataPolicy>;
+
+/**
+ * @generated from message bytebase.v1.ExportDataPolicy
+ */
+export declare type ExportDataPolicy = Message<"bytebase.v1.ExportDataPolicy"> & {
+ /**
+ * @generated from field: bool disable = 1;
+ */
+ disable: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ExportDataPolicy.
+ * Use `create(ExportDataPolicySchema)` to create a new message.
+ */
+export declare const ExportDataPolicySchema: GenMessage<ExportDataPolicy>;
+
+/**
+ * QueryDataPolicy is the policy configuration for querying data.
+ *
+ * @generated from message bytebase.v1.QueryDataPolicy
+ */
+export declare type QueryDataPolicy = Message<"bytebase.v1.QueryDataPolicy"> & {
+ /**
+ * The query timeout duration.
+ *
+ * @generated from field: google.protobuf.Duration timeout = 1;
+ */
+ timeout?: Duration;
+};
+
+/**
+ * Describes the message bytebase.v1.QueryDataPolicy.
+ * Use `create(QueryDataPolicySchema)` to create a new message.
+ */
+export declare const QueryDataPolicySchema: GenMessage<QueryDataPolicy>;
+
+/**
+ * The SQL review rules. Check the SQL_REVIEW_RULES_DOCUMENTATION.md for details.
+ *
+ * @generated from message bytebase.v1.SQLReviewRule
+ */
+export declare type SQLReviewRule = Message<"bytebase.v1.SQLReviewRule"> & {
+ /**
+ * @generated from field: string type = 1;
+ */
+ type: string;
+
+ /**
+ * @generated from field: bytebase.v1.SQLReviewRuleLevel level = 2;
+ */
+ level: SQLReviewRuleLevel;
+
+ /**
+ * The payload is a JSON string that varies by rule type.
+ *
+ * @generated from field: string payload = 3;
+ */
+ payload: string;
+
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 4;
+ */
+ engine: Engine;
+
+ /**
+ * @generated from field: string comment = 5;
+ */
+ comment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SQLReviewRule.
+ * Use `create(SQLReviewRuleSchema)` to create a new message.
+ */
+export declare const SQLReviewRuleSchema: GenMessage<SQLReviewRule>;
+
+/**
+ * MaskingExceptionPolicy is the allowlist of users who can access sensitive data.
+ *
+ * @generated from message bytebase.v1.MaskingExceptionPolicy
+ */
+export declare type MaskingExceptionPolicy = Message<"bytebase.v1.MaskingExceptionPolicy"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.MaskingExceptionPolicy.MaskingException masking_exceptions = 1;
+ */
+ maskingExceptions: MaskingExceptionPolicy_MaskingException[];
+};
+
+/**
+ * Describes the message bytebase.v1.MaskingExceptionPolicy.
+ * Use `create(MaskingExceptionPolicySchema)` to create a new message.
+ */
+export declare const MaskingExceptionPolicySchema: GenMessage<MaskingExceptionPolicy>;
+
+/**
+ * @generated from message bytebase.v1.MaskingExceptionPolicy.MaskingException
+ */
+export declare type MaskingExceptionPolicy_MaskingException = Message<"bytebase.v1.MaskingExceptionPolicy.MaskingException"> & {
+ /**
+ * action is the action that the user can access sensitive data.
+ *
+ * @generated from field: bytebase.v1.MaskingExceptionPolicy.MaskingException.Action action = 1;
+ */
+ action: MaskingExceptionPolicy_MaskingException_Action;
+
+ /**
+ * Member is the principal who bind to this exception policy instance.
+ *
+ * - `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.
+ * - `group:{email}`: An email address for group.
+ *
+ * @generated from field: string member = 3;
+ */
+ member: string;
+
+ /**
+ * The condition that is associated with this exception policy instance.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ * If the condition is empty, means the user can access all databases without expiration.
+ *
+ * Support variables:
+ * resource.instance_id: the instance resource id. Only support "==" operation.
+ * resource.database_name: the database name. Only support "==" operation.
+ * resource.schema_name: the schema name. Only support "==" operation.
+ * resource.table_name: the table name. Only support "==" operation.
+ * resource.column_name: the column name. Only support "==" operation.
+ * request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")`
+ * All variables should join with "&&" condition.
+ *
+ * For example:
+ * resource.instance_id == "local" && resource.database_name == "employee" && request.time < timestamp("2025-04-30T11:10:39.000Z")
+ * resource.instance_id == "local" && resource.database_name == "employee"
+ *
+ * @generated from field: google.type.Expr condition = 4;
+ */
+ condition?: Expr;
+};
+
+/**
+ * Describes the message bytebase.v1.MaskingExceptionPolicy.MaskingException.
+ * Use `create(MaskingExceptionPolicy_MaskingExceptionSchema)` to create a new message.
+ */
+export declare const MaskingExceptionPolicy_MaskingExceptionSchema: GenMessage<MaskingExceptionPolicy_MaskingException>;
+
+/**
+ * @generated from enum bytebase.v1.MaskingExceptionPolicy.MaskingException.Action
+ */
+export enum MaskingExceptionPolicy_MaskingException_Action {
+ /**
+ * @generated from enum value: ACTION_UNSPECIFIED = 0;
+ */
+ ACTION_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: QUERY = 1;
+ */
+ QUERY = 1,
+
+ /**
+ * @generated from enum value: EXPORT = 2;
+ */
+ EXPORT = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.MaskingExceptionPolicy.MaskingException.Action.
+ */
+export declare const MaskingExceptionPolicy_MaskingException_ActionSchema: GenEnum<MaskingExceptionPolicy_MaskingException_Action>;
+
+/**
+ * @generated from message bytebase.v1.MaskingRulePolicy
+ */
+export declare type MaskingRulePolicy = Message<"bytebase.v1.MaskingRulePolicy"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.MaskingRulePolicy.MaskingRule rules = 1;
+ */
+ rules: MaskingRulePolicy_MaskingRule[];
+};
+
+/**
+ * Describes the message bytebase.v1.MaskingRulePolicy.
+ * Use `create(MaskingRulePolicySchema)` to create a new message.
+ */
+export declare const MaskingRulePolicySchema: GenMessage<MaskingRulePolicy>;
+
+/**
+ * @generated from message bytebase.v1.MaskingRulePolicy.MaskingRule
+ */
+export declare type MaskingRulePolicy_MaskingRule = Message<"bytebase.v1.MaskingRulePolicy.MaskingRule"> & {
+ /**
+ * A unique identifier for a node in UUID format.
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * The condition for the masking rule.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Support variables:
+ * environment_id: the environment resource id.
+ * project_id: the project resource id.
+ * instance_id: the instance resource id.
+ * database_name: the database name.
+ * table_name: the table name.
+ * column_name: the column name.
+ * classification_level: the classification level.
+ *
+ * Each variable support following operations:
+ * ==: the value equals the target.
+ * !=: the value not equals the target.
+ * in: the value matches one of the targets.
+ * !(in): the value not matches any of the targets.
+ *
+ * For example:
+ * environment_id == "test" && project_id == "sample-project"
+ * instance_id == "sample-instance" && database_name == "employee" && table_name in ["table1", "table2"]
+ * environment_id != "test" || !(project_id in ["poject1", "prject2"])
+ * instance_id == "sample-instance" && (database_name == "db1" || database_name == "db2")
+ *
+ * @generated from field: google.type.Expr condition = 2;
+ */
+ condition?: Expr;
+
+ /**
+ * @generated from field: string semantic_type = 3;
+ */
+ semanticType: string;
+};
+
+/**
+ * Describes the message bytebase.v1.MaskingRulePolicy.MaskingRule.
+ * Use `create(MaskingRulePolicy_MaskingRuleSchema)` to create a new message.
+ */
+export declare const MaskingRulePolicy_MaskingRuleSchema: GenMessage<MaskingRulePolicy_MaskingRule>;
+
+/**
+ * @generated from message bytebase.v1.RestrictIssueCreationForSQLReviewPolicy
+ */
+export declare type RestrictIssueCreationForSQLReviewPolicy = Message<"bytebase.v1.RestrictIssueCreationForSQLReviewPolicy"> & {
+ /**
+ * @generated from field: bool disallow = 1;
+ */
+ disallow: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.RestrictIssueCreationForSQLReviewPolicy.
+ * Use `create(RestrictIssueCreationForSQLReviewPolicySchema)` to create a new message.
+ */
+export declare const RestrictIssueCreationForSQLReviewPolicySchema: GenMessage<RestrictIssueCreationForSQLReviewPolicy>;
+
+/**
+ * @generated from message bytebase.v1.TagPolicy
+ */
+export declare type TagPolicy = Message<"bytebase.v1.TagPolicy"> & {
+ /**
+ * tags is the key - value map for resources.
+ * for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}"
+ *
+ * @generated from field: map<string, string> tags = 1;
+ */
+ tags: { [key: string]: string };
+};
+
+/**
+ * Describes the message bytebase.v1.TagPolicy.
+ * Use `create(TagPolicySchema)` to create a new message.
+ */
+export declare const TagPolicySchema: GenMessage<TagPolicy>;
+
+/**
+ * DataSourceQueryPolicy is the policy configuration for running statements in the SQL editor.
+ *
+ * @generated from message bytebase.v1.DataSourceQueryPolicy
+ */
+export declare type DataSourceQueryPolicy = Message<"bytebase.v1.DataSourceQueryPolicy"> & {
+ /**
+ * @generated from field: bytebase.v1.DataSourceQueryPolicy.Restriction admin_data_source_restriction = 1;
+ */
+ adminDataSourceRestriction: DataSourceQueryPolicy_Restriction;
+
+ /**
+ * Disallow running DDL statements in the SQL editor.
+ *
+ * @generated from field: bool disallow_ddl = 2;
+ */
+ disallowDdl: boolean;
+
+ /**
+ * Disallow running DML statements in the SQL editor.
+ *
+ * @generated from field: bool disallow_dml = 3;
+ */
+ disallowDml: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DataSourceQueryPolicy.
+ * Use `create(DataSourceQueryPolicySchema)` to create a new message.
+ */
+export declare const DataSourceQueryPolicySchema: GenMessage<DataSourceQueryPolicy>;
+
+/**
+ * @generated from enum bytebase.v1.DataSourceQueryPolicy.Restriction
+ */
+export enum DataSourceQueryPolicy_Restriction {
+ /**
+ * @generated from enum value: RESTRICTION_UNSPECIFIED = 0;
+ */
+ RESTRICTION_UNSPECIFIED = 0,
+
+ /**
+ * Allow to query admin data sources when there is no read-only data source.
+ *
+ * @generated from enum value: FALLBACK = 1;
+ */
+ FALLBACK = 1,
+
+ /**
+ * Disallow to query admin data sources.
+ *
+ * @generated from enum value: DISALLOW = 2;
+ */
+ DISALLOW = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.DataSourceQueryPolicy.Restriction.
+ */
+export declare const DataSourceQueryPolicy_RestrictionSchema: GenEnum<DataSourceQueryPolicy_Restriction>;
+
+/**
+ * @generated from enum bytebase.v1.PolicyType
+ */
+export enum PolicyType {
+ /**
+ * @generated from enum value: POLICY_TYPE_UNSPECIFIED = 0;
+ */
+ POLICY_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ROLLOUT_POLICY = 11;
+ */
+ ROLLOUT_POLICY = 11,
+
+ /**
+ * @generated from enum value: DISABLE_COPY_DATA = 8;
+ */
+ DISABLE_COPY_DATA = 8,
+
+ /**
+ * @generated from enum value: MASKING_RULE = 9;
+ */
+ MASKING_RULE = 9,
+
+ /**
+ * @generated from enum value: MASKING_EXCEPTION = 10;
+ */
+ MASKING_EXCEPTION = 10,
+
+ /**
+ * @generated from enum value: RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW = 12;
+ */
+ RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW = 12,
+
+ /**
+ * @generated from enum value: TAG = 13;
+ */
+ TAG = 13,
+
+ /**
+ * @generated from enum value: DATA_SOURCE_QUERY = 14;
+ */
+ DATA_SOURCE_QUERY = 14,
+
+ /**
+ * @generated from enum value: DATA_EXPORT = 15;
+ */
+ DATA_EXPORT = 15,
+
+ /**
+ * @generated from enum value: DATA_QUERY = 16;
+ */
+ DATA_QUERY = 16,
+}
+
+/**
+ * Describes the enum bytebase.v1.PolicyType.
+ */
+export declare const PolicyTypeSchema: GenEnum<PolicyType>;
+
+/**
+ * @generated from enum bytebase.v1.PolicyResourceType
+ */
+export enum PolicyResourceType {
+ /**
+ * @generated from enum value: RESOURCE_TYPE_UNSPECIFIED = 0;
+ */
+ RESOURCE_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: WORKSPACE = 1;
+ */
+ WORKSPACE = 1,
+
+ /**
+ * @generated from enum value: ENVIRONMENT = 2;
+ */
+ ENVIRONMENT = 2,
+
+ /**
+ * @generated from enum value: PROJECT = 3;
+ */
+ PROJECT = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.PolicyResourceType.
+ */
+export declare const PolicyResourceTypeSchema: GenEnum<PolicyResourceType>;
+
+/**
+ * @generated from enum bytebase.v1.SQLReviewRuleLevel
+ */
+export enum SQLReviewRuleLevel {
+ /**
+ * @generated from enum value: LEVEL_UNSPECIFIED = 0;
+ */
+ LEVEL_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ERROR = 1;
+ */
+ ERROR = 1,
+
+ /**
+ * @generated from enum value: WARNING = 2;
+ */
+ WARNING = 2,
+
+ /**
+ * @generated from enum value: DISABLED = 3;
+ */
+ DISABLED = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.SQLReviewRuleLevel.
+ */
+export declare const SQLReviewRuleLevelSchema: GenEnum<SQLReviewRuleLevel>;
+
+/**
+ * @generated from service bytebase.v1.OrgPolicyService
+ */
+export declare const OrgPolicyService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.OrgPolicyService.GetPolicy
+ */
+ getPolicy: {
+ methodKind: "unary";
+ input: typeof GetPolicyRequestSchema;
+ output: typeof PolicySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.OrgPolicyService.ListPolicies
+ */
+ listPolicies: {
+ methodKind: "unary";
+ input: typeof ListPoliciesRequestSchema;
+ output: typeof ListPoliciesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.OrgPolicyService.CreatePolicy
+ */
+ createPolicy: {
+ methodKind: "unary";
+ input: typeof CreatePolicyRequestSchema;
+ output: typeof PolicySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.OrgPolicyService.UpdatePolicy
+ */
+ updatePolicy: {
+ methodKind: "unary";
+ input: typeof UpdatePolicyRequestSchema;
+ output: typeof PolicySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.OrgPolicyService.DeletePolicy
+ */
+ deletePolicy: {
+ methodKind: "unary";
+ input: typeof DeletePolicyRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/org_policy_service_pb.js b/frontend/src/types/proto-es/v1/org_policy_service_pb.js
new file mode 100644
index 0000000000..f9a013559a
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/org_policy_service_pb.js
@@ -0,0 +1,219 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/org_policy_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_google_type_expr } from "../google/type/expr_pb";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+
+/**
+ * Describes the file v1/org_policy_service.proto.
+ */
+export const file_v1_org_policy_service = /*@__PURE__*/
+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ZWxldGVQb2xpY3lSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IuUB2kEEbmFtZYrqMBJiYi5wb2xpY2llcy5kZWxldGWQ6jABmOowAYLT5JMCuQFaIiogL3YxL3tuYW1lPXByb2plY3RzLyovcG9saWNpZXMvKn1aJiokL3YxL3tuYW1lPWVudmlyb25tZW50cy8qL3BvbGljaWVzLyp9WiMqIS92MS97bmFtZT1pbnN0YW5jZXMvKi9wb2xpY2llcy8qfVovKi0vdjEve25hbWU9aW5zdGFuY2VzLyovZGF0YWJhc2VzLyovcG9saWNpZXMvKn0qFS92MS97bmFtZT1wb2xpY2llcy8qfUI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_type_expr, file_v1_annotation, file_v1_common]);
+
+/**
+ * Describes the message bytebase.v1.CreatePolicyRequest.
+ * Use `create(CreatePolicyRequestSchema)` to create a new message.
+ */
+export const CreatePolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 0);
+
+/**
+ * Describes the message bytebase.v1.UpdatePolicyRequest.
+ * Use `create(UpdatePolicyRequestSchema)` to create a new message.
+ */
+export const UpdatePolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 1);
+
+/**
+ * Describes the message bytebase.v1.DeletePolicyRequest.
+ * Use `create(DeletePolicyRequestSchema)` to create a new message.
+ */
+export const DeletePolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 2);
+
+/**
+ * Describes the message bytebase.v1.GetPolicyRequest.
+ * Use `create(GetPolicyRequestSchema)` to create a new message.
+ */
+export const GetPolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 3);
+
+/**
+ * Describes the message bytebase.v1.ListPoliciesRequest.
+ * Use `create(ListPoliciesRequestSchema)` to create a new message.
+ */
+export const ListPoliciesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 4);
+
+/**
+ * Describes the message bytebase.v1.ListPoliciesResponse.
+ * Use `create(ListPoliciesResponseSchema)` to create a new message.
+ */
+export const ListPoliciesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 5);
+
+/**
+ * Describes the message bytebase.v1.Policy.
+ * Use `create(PolicySchema)` to create a new message.
+ */
+export const PolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 6);
+
+/**
+ * Describes the message bytebase.v1.RolloutPolicy.
+ * Use `create(RolloutPolicySchema)` to create a new message.
+ */
+export const RolloutPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 7);
+
+/**
+ * Describes the message bytebase.v1.DisableCopyDataPolicy.
+ * Use `create(DisableCopyDataPolicySchema)` to create a new message.
+ */
+export const DisableCopyDataPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 8);
+
+/**
+ * Describes the message bytebase.v1.ExportDataPolicy.
+ * Use `create(ExportDataPolicySchema)` to create a new message.
+ */
+export const ExportDataPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 9);
+
+/**
+ * Describes the message bytebase.v1.QueryDataPolicy.
+ * Use `create(QueryDataPolicySchema)` to create a new message.
+ */
+export const QueryDataPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 10);
+
+/**
+ * Describes the message bytebase.v1.SQLReviewRule.
+ * Use `create(SQLReviewRuleSchema)` to create a new message.
+ */
+export const SQLReviewRuleSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 11);
+
+/**
+ * Describes the message bytebase.v1.MaskingExceptionPolicy.
+ * Use `create(MaskingExceptionPolicySchema)` to create a new message.
+ */
+export const MaskingExceptionPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 12);
+
+/**
+ * Describes the message bytebase.v1.MaskingExceptionPolicy.MaskingException.
+ * Use `create(MaskingExceptionPolicy_MaskingExceptionSchema)` to create a new message.
+ */
+export const MaskingExceptionPolicy_MaskingExceptionSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 12, 0);
+
+/**
+ * Describes the enum bytebase.v1.MaskingExceptionPolicy.MaskingException.Action.
+ */
+export const MaskingExceptionPolicy_MaskingException_ActionSchema = /*@__PURE__*/
+ enumDesc(file_v1_org_policy_service, 12, 0, 0);
+
+/**
+ * @generated from enum bytebase.v1.MaskingExceptionPolicy.MaskingException.Action
+ */
+export const MaskingExceptionPolicy_MaskingException_Action = /*@__PURE__*/
+ tsEnum(MaskingExceptionPolicy_MaskingException_ActionSchema);
+
+/**
+ * Describes the message bytebase.v1.MaskingRulePolicy.
+ * Use `create(MaskingRulePolicySchema)` to create a new message.
+ */
+export const MaskingRulePolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 13);
+
+/**
+ * Describes the message bytebase.v1.MaskingRulePolicy.MaskingRule.
+ * Use `create(MaskingRulePolicy_MaskingRuleSchema)` to create a new message.
+ */
+export const MaskingRulePolicy_MaskingRuleSchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 13, 0);
+
+/**
+ * Describes the message bytebase.v1.RestrictIssueCreationForSQLReviewPolicy.
+ * Use `create(RestrictIssueCreationForSQLReviewPolicySchema)` to create a new message.
+ */
+export const RestrictIssueCreationForSQLReviewPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 14);
+
+/**
+ * Describes the message bytebase.v1.TagPolicy.
+ * Use `create(TagPolicySchema)` to create a new message.
+ */
+export const TagPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 15);
+
+/**
+ * Describes the message bytebase.v1.DataSourceQueryPolicy.
+ * Use `create(DataSourceQueryPolicySchema)` to create a new message.
+ */
+export const DataSourceQueryPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_org_policy_service, 16);
+
+/**
+ * Describes the enum bytebase.v1.DataSourceQueryPolicy.Restriction.
+ */
+export const DataSourceQueryPolicy_RestrictionSchema = /*@__PURE__*/
+ enumDesc(file_v1_org_policy_service, 16, 0);
+
+/**
+ * @generated from enum bytebase.v1.DataSourceQueryPolicy.Restriction
+ */
+export const DataSourceQueryPolicy_Restriction = /*@__PURE__*/
+ tsEnum(DataSourceQueryPolicy_RestrictionSchema);
+
+/**
+ * Describes the enum bytebase.v1.PolicyType.
+ */
+export const PolicyTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_org_policy_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.PolicyType
+ */
+export const PolicyType = /*@__PURE__*/
+ tsEnum(PolicyTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.PolicyResourceType.
+ */
+export const PolicyResourceTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_org_policy_service, 1);
+
+/**
+ * @generated from enum bytebase.v1.PolicyResourceType
+ */
+export const PolicyResourceType = /*@__PURE__*/
+ tsEnum(PolicyResourceTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.SQLReviewRuleLevel.
+ */
+export const SQLReviewRuleLevelSchema = /*@__PURE__*/
+ enumDesc(file_v1_org_policy_service, 2);
+
+/**
+ * @generated from enum bytebase.v1.SQLReviewRuleLevel
+ */
+export const SQLReviewRuleLevel = /*@__PURE__*/
+ tsEnum(SQLReviewRuleLevelSchema);
+
+/**
+ * @generated from service bytebase.v1.OrgPolicyService
+ */
+export const OrgPolicyService = /*@__PURE__*/
+ serviceDesc(file_v1_org_policy_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts b/frontend/src/types/proto-es/v1/plan_service_pb.d.ts
new file mode 100644
index 0000000000..d4ab1af10d
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/plan_service_pb.d.ts
@@ -0,0 +1,1132 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/plan_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { ExportFormat, Position } from "./common_pb";
+import type { ChangedResources } from "./database_service_pb";
+
+/**
+ * Describes the file v1/plan_service.proto.
+ */
+export declare const file_v1_plan_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetPlanRequest
+ */
+export declare type GetPlanRequest = Message<"bytebase.v1.GetPlanRequest"> & {
+ /**
+ * The name of the plan to retrieve.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetPlanRequest.
+ * Use `create(GetPlanRequestSchema)` to create a new message.
+ */
+export declare const GetPlanRequestSchema: GenMessage<GetPlanRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListPlansRequest
+ */
+export declare type ListPlansRequest = Message<"bytebase.v1.ListPlansRequest"> & {
+ /**
+ * The parent, which owns this collection of plans.
+ * Format: projects/{project}
+ * Use "projects/-" to list all plans from all projects.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of plans to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 plans will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListPlans` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListPlans` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListPlansRequest.
+ * Use `create(ListPlansRequestSchema)` to create a new message.
+ */
+export declare const ListPlansRequestSchema: GenMessage<ListPlansRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListPlansResponse
+ */
+export declare type ListPlansResponse = Message<"bytebase.v1.ListPlansResponse"> & {
+ /**
+ * The plans from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Plan plans = 1;
+ */
+ plans: Plan[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListPlansResponse.
+ * Use `create(ListPlansResponseSchema)` to create a new message.
+ */
+export declare const ListPlansResponseSchema: GenMessage<ListPlansResponse>;
+
+/**
+ * @generated from message bytebase.v1.SearchPlansRequest
+ */
+export declare type SearchPlansRequest = Message<"bytebase.v1.SearchPlansRequest"> & {
+ /**
+ * The parent, which owns this collection of plans.
+ * Format: projects/{project}
+ * Use "projects/-" to list all plans from all projects.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of plans to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 plans will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `SearchPlans` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `SearchPlans` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * Filter is used to filter plans returned in the list.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filters:
+ * - creator: the plan creator full name in "users/{email or id}" format, support "==" operator.
+ * - create_time: issue create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.
+ * - has_pipeline: the plan has pipeline or not, support "==" operator, the value should be "true" or "false".
+ * - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".
+ *
+ * For example:
+ * creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"
+ * has_pipeline == false && has_issue == true
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchPlansRequest.
+ * Use `create(SearchPlansRequestSchema)` to create a new message.
+ */
+export declare const SearchPlansRequestSchema: GenMessage<SearchPlansRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchPlansResponse
+ */
+export declare type SearchPlansResponse = Message<"bytebase.v1.SearchPlansResponse"> & {
+ /**
+ * The plans from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Plan plans = 1;
+ */
+ plans: Plan[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchPlansResponse.
+ * Use `create(SearchPlansResponseSchema)` to create a new message.
+ */
+export declare const SearchPlansResponseSchema: GenMessage<SearchPlansResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreatePlanRequest
+ */
+export declare type CreatePlanRequest = Message<"bytebase.v1.CreatePlanRequest"> & {
+ /**
+ * The parent project where this plan will be created.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The plan to create.
+ *
+ * @generated from field: bytebase.v1.Plan plan = 2;
+ */
+ plan?: Plan;
+};
+
+/**
+ * Describes the message bytebase.v1.CreatePlanRequest.
+ * Use `create(CreatePlanRequestSchema)` to create a new message.
+ */
+export declare const CreatePlanRequestSchema: GenMessage<CreatePlanRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdatePlanRequest
+ */
+export declare type UpdatePlanRequest = Message<"bytebase.v1.UpdatePlanRequest"> & {
+ /**
+ * The plan to update.
+ *
+ * The plan's `name` field is used to identify the plan to update.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: bytebase.v1.Plan plan = 1;
+ */
+ plan?: Plan;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdatePlanRequest.
+ * Use `create(UpdatePlanRequestSchema)` to create a new message.
+ */
+export declare const UpdatePlanRequestSchema: GenMessage<UpdatePlanRequest>;
+
+/**
+ * @generated from message bytebase.v1.Plan
+ */
+export declare type Plan = Message<"bytebase.v1.Plan"> & {
+ /**
+ * The name of the plan.
+ * `plan` is a system generated ID.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The issue associated with the plan.
+ * Can be empty.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string issue = 3;
+ */
+ issue: string;
+
+ /**
+ * The rollout associated with the plan.
+ * Can be empty.
+ * Format: projects/{project}/rollouts/{rollout}
+ *
+ * @generated from field: string rollout = 15;
+ */
+ rollout: string;
+
+ /**
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 5;
+ */
+ description: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Plan.Spec specs = 14;
+ */
+ specs: Plan_Spec[];
+
+ /**
+ * Format: users/[email protected]
+ *
+ * @generated from field: string creator = 8;
+ */
+ creator: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 9;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp update_time = 10;
+ */
+ updateTime?: Timestamp;
+
+ /**
+ * The status count of the latest plan check runs.
+ * Keys are:
+ * - SUCCESS
+ * - WARNING
+ * - ERROR
+ *
+ * @generated from field: map<string, int32> plan_check_run_status_count = 11;
+ */
+ planCheckRunStatusCount: { [key: string]: number };
+
+ /**
+ * @generated from field: bytebase.v1.Plan.Deployment deployment = 13;
+ */
+ deployment?: Plan_Deployment;
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.
+ * Use `create(PlanSchema)` to create a new message.
+ */
+export declare const PlanSchema: GenMessage<Plan>;
+
+/**
+ * @generated from message bytebase.v1.Plan.Spec
+ */
+export declare type Plan_Spec = Message<"bytebase.v1.Plan.Spec"> & {
+ /**
+ * A UUID4 string that uniquely identifies the Spec.
+ *
+ * @generated from field: string id = 5;
+ */
+ id: string;
+
+ /**
+ * @generated from oneof bytebase.v1.Plan.Spec.config
+ */
+ config: {
+ /**
+ * @generated from field: bytebase.v1.Plan.CreateDatabaseConfig create_database_config = 1;
+ */
+ value: Plan_CreateDatabaseConfig;
+ case: "createDatabaseConfig";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Plan.ChangeDatabaseConfig change_database_config = 2;
+ */
+ value: Plan_ChangeDatabaseConfig;
+ case: "changeDatabaseConfig";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Plan.ExportDataConfig export_data_config = 7;
+ */
+ value: Plan_ExportDataConfig;
+ case: "exportDataConfig";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.Spec.
+ * Use `create(Plan_SpecSchema)` to create a new message.
+ */
+export declare const Plan_SpecSchema: GenMessage<Plan_Spec>;
+
+/**
+ * @generated from message bytebase.v1.Plan.CreateDatabaseConfig
+ */
+export declare type Plan_CreateDatabaseConfig = Message<"bytebase.v1.Plan.CreateDatabaseConfig"> & {
+ /**
+ * The resource name of the instance on which the database is created.
+ * Format: instances/{instance}
+ *
+ * @generated from field: string target = 1;
+ */
+ target: string;
+
+ /**
+ * The name of the database to create.
+ *
+ * @generated from field: string database = 2;
+ */
+ database: string;
+
+ /**
+ * table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.
+ * For example, in MongoDB, it only creates the database when we first store data in that database.
+ *
+ * @generated from field: string table = 3;
+ */
+ table: string;
+
+ /**
+ * character_set is the character set of the database.
+ *
+ * @generated from field: string character_set = 4;
+ */
+ characterSet: string;
+
+ /**
+ * collation is the collation of the database.
+ *
+ * @generated from field: string collation = 5;
+ */
+ collation: string;
+
+ /**
+ * cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".
+ *
+ * @generated from field: string cluster = 6;
+ */
+ cluster: string;
+
+ /**
+ * owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".
+ *
+ * @generated from field: string owner = 7;
+ */
+ owner: string;
+
+ /**
+ * The environment resource.
+ * Format: environments/prod where prod is the environment resource ID.
+ *
+ * @generated from field: string environment = 9;
+ */
+ environment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.CreateDatabaseConfig.
+ * Use `create(Plan_CreateDatabaseConfigSchema)` to create a new message.
+ */
+export declare const Plan_CreateDatabaseConfigSchema: GenMessage<Plan_CreateDatabaseConfig>;
+
+/**
+ * @generated from message bytebase.v1.Plan.ChangeDatabaseConfig
+ */
+export declare type Plan_ChangeDatabaseConfig = Message<"bytebase.v1.Plan.ChangeDatabaseConfig"> & {
+ /**
+ * The list of targets.
+ * Multi-database format: [instances/{instance-id}/databases/{database-name}].
+ * Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].
+ *
+ * @generated from field: repeated string targets = 10;
+ */
+ targets: string[];
+
+ /**
+ * The resource name of the sheet.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 2;
+ */
+ sheet: string;
+
+ /**
+ * The resource name of the release.
+ * Format: projects/{project}/releases/{release}
+ *
+ * @generated from field: string release = 9;
+ */
+ release: string;
+
+ /**
+ * @generated from field: bytebase.v1.Plan.ChangeDatabaseConfig.Type type = 3;
+ */
+ type: Plan_ChangeDatabaseConfig_Type;
+
+ /**
+ * @generated from field: map<string, string> ghost_flags = 7;
+ */
+ ghostFlags: { [key: string]: string };
+
+ /**
+ * If set, a backup of the modified data will be created automatically before any changes are applied.
+ *
+ * @generated from field: bool enable_prior_backup = 8;
+ */
+ enablePriorBackup: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.ChangeDatabaseConfig.
+ * Use `create(Plan_ChangeDatabaseConfigSchema)` to create a new message.
+ */
+export declare const Plan_ChangeDatabaseConfigSchema: GenMessage<Plan_ChangeDatabaseConfig>;
+
+/**
+ * Type is the database change type.
+ *
+ * @generated from enum bytebase.v1.Plan.ChangeDatabaseConfig.Type
+ */
+export enum Plan_ChangeDatabaseConfig_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * Used for DDL changes including CREATE DATABASE.
+ *
+ * @generated from enum value: MIGRATE = 2;
+ */
+ MIGRATE = 2,
+
+ /**
+ * Used for schema changes via state-based schema migration including CREATE DATABASE.
+ *
+ * @generated from enum value: MIGRATE_SDL = 3;
+ */
+ MIGRATE_SDL = 3,
+
+ /**
+ * Used for DDL changes using gh-ost.
+ *
+ * @generated from enum value: MIGRATE_GHOST = 4;
+ */
+ MIGRATE_GHOST = 4,
+
+ /**
+ * Used for DML change.
+ *
+ * @generated from enum value: DATA = 6;
+ */
+ DATA = 6,
+}
+
+/**
+ * Describes the enum bytebase.v1.Plan.ChangeDatabaseConfig.Type.
+ */
+export declare const Plan_ChangeDatabaseConfig_TypeSchema: GenEnum<Plan_ChangeDatabaseConfig_Type>;
+
+/**
+ * @generated from message bytebase.v1.Plan.ExportDataConfig
+ */
+export declare type Plan_ExportDataConfig = Message<"bytebase.v1.Plan.ExportDataConfig"> & {
+ /**
+ * The list of targets.
+ * Multi-database format: [instances/{instance-id}/databases/{database-name}].
+ * Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].
+ *
+ * @generated from field: repeated string targets = 5;
+ */
+ targets: string[];
+
+ /**
+ * The resource name of the sheet.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 2;
+ */
+ sheet: string;
+
+ /**
+ * The format of the exported file.
+ *
+ * @generated from field: bytebase.v1.ExportFormat format = 3;
+ */
+ format: ExportFormat;
+
+ /**
+ * The zip password provide by users.
+ * Leave it empty if no needs to encrypt the zip file.
+ *
+ * @generated from field: optional string password = 4;
+ */
+ password?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.ExportDataConfig.
+ * Use `create(Plan_ExportDataConfigSchema)` to create a new message.
+ */
+export declare const Plan_ExportDataConfigSchema: GenMessage<Plan_ExportDataConfig>;
+
+/**
+ * @generated from message bytebase.v1.Plan.Deployment
+ */
+export declare type Plan_Deployment = Message<"bytebase.v1.Plan.Deployment"> & {
+ /**
+ * The environments deploy order.
+ *
+ * @generated from field: repeated string environments = 1;
+ */
+ environments: string[];
+
+ /**
+ * The database group mapping.
+ *
+ * @generated from field: repeated bytebase.v1.Plan.Deployment.DatabaseGroupMapping database_group_mappings = 2;
+ */
+ databaseGroupMappings: Plan_Deployment_DatabaseGroupMapping[];
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.Deployment.
+ * Use `create(Plan_DeploymentSchema)` to create a new message.
+ */
+export declare const Plan_DeploymentSchema: GenMessage<Plan_Deployment>;
+
+/**
+ * @generated from message bytebase.v1.Plan.Deployment.DatabaseGroupMapping
+ */
+export declare type Plan_Deployment_DatabaseGroupMapping = Message<"bytebase.v1.Plan.Deployment.DatabaseGroupMapping"> & {
+ /**
+ * Format: projects/{project}/databaseGroups/{databaseGroup}.
+ *
+ * @generated from field: string database_group = 1;
+ */
+ databaseGroup: string;
+
+ /**
+ * Format: instances/{instance-id}/databases/{database-name}.
+ *
+ * @generated from field: repeated string databases = 2;
+ */
+ databases: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.Plan.Deployment.DatabaseGroupMapping.
+ * Use `create(Plan_Deployment_DatabaseGroupMappingSchema)` to create a new message.
+ */
+export declare const Plan_Deployment_DatabaseGroupMappingSchema: GenMessage<Plan_Deployment_DatabaseGroupMapping>;
+
+/**
+ * @generated from message bytebase.v1.ListPlanCheckRunsRequest
+ */
+export declare type ListPlanCheckRunsRequest = Message<"bytebase.v1.ListPlanCheckRunsRequest"> & {
+ /**
+ * The parent, which owns this collection of plan check runs.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * Not used.
+ * The maximum number of plan check runs to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 plan check runs will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListPlanCheckRuns` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListPlanCheckRuns` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * If set to true, only the latest plan check run will be returned.
+ *
+ * @generated from field: bool latest_only = 4;
+ */
+ latestOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ListPlanCheckRunsRequest.
+ * Use `create(ListPlanCheckRunsRequestSchema)` to create a new message.
+ */
+export declare const ListPlanCheckRunsRequestSchema: GenMessage<ListPlanCheckRunsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListPlanCheckRunsResponse
+ */
+export declare type ListPlanCheckRunsResponse = Message<"bytebase.v1.ListPlanCheckRunsResponse"> & {
+ /**
+ * The plan check runs from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.PlanCheckRun plan_check_runs = 1;
+ */
+ planCheckRuns: PlanCheckRun[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListPlanCheckRunsResponse.
+ * Use `create(ListPlanCheckRunsResponseSchema)` to create a new message.
+ */
+export declare const ListPlanCheckRunsResponseSchema: GenMessage<ListPlanCheckRunsResponse>;
+
+/**
+ * @generated from message bytebase.v1.RunPlanChecksRequest
+ */
+export declare type RunPlanChecksRequest = Message<"bytebase.v1.RunPlanChecksRequest"> & {
+ /**
+ * The plan to run plan checks.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The UUID of the specific spec to run plan checks for.
+ * This should match the spec.id field in Plan.Spec.
+ * If not set, all specs in the plan will be used.
+ *
+ * @generated from field: optional string spec_id = 2;
+ */
+ specId?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.RunPlanChecksRequest.
+ * Use `create(RunPlanChecksRequestSchema)` to create a new message.
+ */
+export declare const RunPlanChecksRequestSchema: GenMessage<RunPlanChecksRequest>;
+
+/**
+ * @generated from message bytebase.v1.RunPlanChecksResponse
+ */
+export declare type RunPlanChecksResponse = Message<"bytebase.v1.RunPlanChecksResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.RunPlanChecksResponse.
+ * Use `create(RunPlanChecksResponseSchema)` to create a new message.
+ */
+export declare const RunPlanChecksResponseSchema: GenMessage<RunPlanChecksResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchCancelPlanCheckRunsRequest
+ */
+export declare type BatchCancelPlanCheckRunsRequest = Message<"bytebase.v1.BatchCancelPlanCheckRunsRequest"> & {
+ /**
+ * The name of the parent of the planChecks.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * TODO(d): update this API.
+ * The planCheckRuns to cancel.
+ * Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}
+ *
+ * @generated from field: repeated string plan_check_runs = 2;
+ */
+ planCheckRuns: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCancelPlanCheckRunsRequest.
+ * Use `create(BatchCancelPlanCheckRunsRequestSchema)` to create a new message.
+ */
+export declare const BatchCancelPlanCheckRunsRequestSchema: GenMessage<BatchCancelPlanCheckRunsRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchCancelPlanCheckRunsResponse
+ */
+export declare type BatchCancelPlanCheckRunsResponse = Message<"bytebase.v1.BatchCancelPlanCheckRunsResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCancelPlanCheckRunsResponse.
+ * Use `create(BatchCancelPlanCheckRunsResponseSchema)` to create a new message.
+ */
+export declare const BatchCancelPlanCheckRunsResponseSchema: GenMessage<BatchCancelPlanCheckRunsResponse>;
+
+/**
+ * @generated from message bytebase.v1.PlanCheckRun
+ */
+export declare type PlanCheckRun = Message<"bytebase.v1.PlanCheckRun"> & {
+ /**
+ * Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.PlanCheckRun.Type type = 3;
+ */
+ type: PlanCheckRun_Type;
+
+ /**
+ * @generated from field: bytebase.v1.PlanCheckRun.Status status = 4;
+ */
+ status: PlanCheckRun_Status;
+
+ /**
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string target = 5;
+ */
+ target: string;
+
+ /**
+ * Format: project/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 6;
+ */
+ sheet: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.PlanCheckRun.Result results = 7;
+ */
+ results: PlanCheckRun_Result[];
+
+ /**
+ * error is set if the Status is FAILED.
+ *
+ * @generated from field: string error = 8;
+ */
+ error: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 9;
+ */
+ createTime?: Timestamp;
+};
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.
+ * Use `create(PlanCheckRunSchema)` to create a new message.
+ */
+export declare const PlanCheckRunSchema: GenMessage<PlanCheckRun>;
+
+/**
+ * @generated from message bytebase.v1.PlanCheckRun.Result
+ */
+export declare type PlanCheckRun_Result = Message<"bytebase.v1.PlanCheckRun.Result"> & {
+ /**
+ * @generated from field: bytebase.v1.PlanCheckRun.Result.Status status = 1;
+ */
+ status: PlanCheckRun_Result_Status;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string content = 3;
+ */
+ content: string;
+
+ /**
+ * @generated from field: int32 code = 4;
+ */
+ code: number;
+
+ /**
+ * @generated from oneof bytebase.v1.PlanCheckRun.Result.report
+ */
+ report: {
+ /**
+ * @generated from field: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport sql_summary_report = 5;
+ */
+ value: PlanCheckRun_Result_SqlSummaryReport;
+ case: "sqlSummaryReport";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.PlanCheckRun.Result.SqlReviewReport sql_review_report = 6;
+ */
+ value: PlanCheckRun_Result_SqlReviewReport;
+ case: "sqlReviewReport";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.Result.
+ * Use `create(PlanCheckRun_ResultSchema)` to create a new message.
+ */
+export declare const PlanCheckRun_ResultSchema: GenMessage<PlanCheckRun_Result>;
+
+/**
+ * @generated from message bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
+ */
+export declare type PlanCheckRun_Result_SqlSummaryReport = Message<"bytebase.v1.PlanCheckRun.Result.SqlSummaryReport"> & {
+ /**
+ * statement_types are the types of statements that are found in the sql.
+ *
+ * @generated from field: repeated string statement_types = 2;
+ */
+ statementTypes: string[];
+
+ /**
+ * @generated from field: int32 affected_rows = 3;
+ */
+ affectedRows: number;
+
+ /**
+ * @generated from field: bytebase.v1.ChangedResources changed_resources = 4;
+ */
+ changedResources?: ChangedResources;
+};
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.
+ * Use `create(PlanCheckRun_Result_SqlSummaryReportSchema)` to create a new message.
+ */
+export declare const PlanCheckRun_Result_SqlSummaryReportSchema: GenMessage<PlanCheckRun_Result_SqlSummaryReport>;
+
+/**
+ * @generated from message bytebase.v1.PlanCheckRun.Result.SqlReviewReport
+ */
+export declare type PlanCheckRun_Result_SqlReviewReport = Message<"bytebase.v1.PlanCheckRun.Result.SqlReviewReport"> & {
+ /**
+ * @generated from field: int32 line = 1;
+ */
+ line: number;
+
+ /**
+ * @generated from field: int32 column = 2;
+ */
+ column: number;
+
+ /**
+ * 1-based Position of the SQL statement.
+ * To supersede `line` and `column` above.
+ *
+ * @generated from field: bytebase.v1.Position start_position = 5;
+ */
+ startPosition?: Position;
+
+ /**
+ * @generated from field: bytebase.v1.Position end_position = 6;
+ */
+ endPosition?: Position;
+};
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.Result.SqlReviewReport.
+ * Use `create(PlanCheckRun_Result_SqlReviewReportSchema)` to create a new message.
+ */
+export declare const PlanCheckRun_Result_SqlReviewReportSchema: GenMessage<PlanCheckRun_Result_SqlReviewReport>;
+
+/**
+ * @generated from enum bytebase.v1.PlanCheckRun.Result.Status
+ */
+export enum PlanCheckRun_Result_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ERROR = 1;
+ */
+ ERROR = 1,
+
+ /**
+ * @generated from enum value: WARNING = 2;
+ */
+ WARNING = 2,
+
+ /**
+ * @generated from enum value: SUCCESS = 3;
+ */
+ SUCCESS = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.PlanCheckRun.Result.Status.
+ */
+export declare const PlanCheckRun_Result_StatusSchema: GenEnum<PlanCheckRun_Result_Status>;
+
+/**
+ * @generated from enum bytebase.v1.PlanCheckRun.Type
+ */
+export enum PlanCheckRun_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DATABASE_STATEMENT_FAKE_ADVISE = 1;
+ */
+ DATABASE_STATEMENT_FAKE_ADVISE = 1,
+
+ /**
+ * @generated from enum value: DATABASE_STATEMENT_ADVISE = 3;
+ */
+ DATABASE_STATEMENT_ADVISE = 3,
+
+ /**
+ * @generated from enum value: DATABASE_STATEMENT_SUMMARY_REPORT = 5;
+ */
+ DATABASE_STATEMENT_SUMMARY_REPORT = 5,
+
+ /**
+ * @generated from enum value: DATABASE_CONNECT = 6;
+ */
+ DATABASE_CONNECT = 6,
+
+ /**
+ * @generated from enum value: DATABASE_GHOST_SYNC = 7;
+ */
+ DATABASE_GHOST_SYNC = 7,
+}
+
+/**
+ * Describes the enum bytebase.v1.PlanCheckRun.Type.
+ */
+export declare const PlanCheckRun_TypeSchema: GenEnum<PlanCheckRun_Type>;
+
+/**
+ * @generated from enum bytebase.v1.PlanCheckRun.Status
+ */
+export enum PlanCheckRun_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: RUNNING = 1;
+ */
+ RUNNING = 1,
+
+ /**
+ * @generated from enum value: DONE = 2;
+ */
+ DONE = 2,
+
+ /**
+ * @generated from enum value: FAILED = 3;
+ */
+ FAILED = 3,
+
+ /**
+ * @generated from enum value: CANCELED = 4;
+ */
+ CANCELED = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.PlanCheckRun.Status.
+ */
+export declare const PlanCheckRun_StatusSchema: GenEnum<PlanCheckRun_Status>;
+
+/**
+ * @generated from service bytebase.v1.PlanService
+ */
+export declare const PlanService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.PlanService.GetPlan
+ */
+ getPlan: {
+ methodKind: "unary";
+ input: typeof GetPlanRequestSchema;
+ output: typeof PlanSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.PlanService.ListPlans
+ */
+ listPlans: {
+ methodKind: "unary";
+ input: typeof ListPlansRequestSchema;
+ output: typeof ListPlansResponseSchema;
+ },
+ /**
+ * Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.
+ *
+ * @generated from rpc bytebase.v1.PlanService.SearchPlans
+ */
+ searchPlans: {
+ methodKind: "unary";
+ input: typeof SearchPlansRequestSchema;
+ output: typeof SearchPlansResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.PlanService.CreatePlan
+ */
+ createPlan: {
+ methodKind: "unary";
+ input: typeof CreatePlanRequestSchema;
+ output: typeof PlanSchema;
+ },
+ /**
+ * UpdatePlan updates the plan.
+ * The plan creator and the user with bb.plans.update permission on the project can update the plan.
+ *
+ * @generated from rpc bytebase.v1.PlanService.UpdatePlan
+ */
+ updatePlan: {
+ methodKind: "unary";
+ input: typeof UpdatePlanRequestSchema;
+ output: typeof PlanSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.PlanService.ListPlanCheckRuns
+ */
+ listPlanCheckRuns: {
+ methodKind: "unary";
+ input: typeof ListPlanCheckRunsRequestSchema;
+ output: typeof ListPlanCheckRunsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.PlanService.RunPlanChecks
+ */
+ runPlanChecks: {
+ methodKind: "unary";
+ input: typeof RunPlanChecksRequestSchema;
+ output: typeof RunPlanChecksResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.PlanService.BatchCancelPlanCheckRuns
+ */
+ batchCancelPlanCheckRuns: {
+ methodKind: "unary";
+ input: typeof BatchCancelPlanCheckRunsRequestSchema;
+ output: typeof BatchCancelPlanCheckRunsResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.js b/frontend/src/types/proto-es/v1/plan_service_pb.js
new file mode 100644
index 0000000000..43ab42c49c
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/plan_service_pb.js
@@ -0,0 +1,244 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/plan_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_database_service } from "./database_service_pb";
+
+/**
+ * Describes the file v1/plan_service.proto.
+ */
+export const file_v1_plan_service = /*@__PURE__*/
+ fileDesc("ChV2MS9wbGFuX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjoKDkdldFBsYW5SZXF1ZXN0EigKBG5hbWUYASABKAlCGuJBAQL6QRMKEWJ5dGViYXNlLmNvbS9QbGFuImgKEExpc3RQbGFuc1JlcXVlc3QSLQoGcGFyZW50GAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBIRCglwYWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tlbhgDIAEoCSJOChFMaXN0UGxhbnNSZXNwb25zZRIgCgVwbGFucxgBIAMoCzIRLmJ5dGViYXNlLnYxLlBsYW4SFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJImEKElNlYXJjaFBsYW5zUmVxdWVzdBIUCgZwYXJlbnQYASABKAlCBOJBAQISEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIlAKE1NlYXJjaFBsYW5zUmVzcG9uc2USIAoFcGxhbnMYASADKAsyES5ieXRlYmFzZS52MS5QbGFuEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJpChFDcmVhdGVQbGFuUmVxdWVzdBItCgZwYXJlbnQYASABKAlCHeJBAQL6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EiUKBHBsYW4YAiABKAsyES5ieXRlYmFzZS52MS5QbGFuQgTiQQECInEKEVVwZGF0ZVBsYW5SZXF1ZXN0EiUKBHBsYW4YASABKAsyES5ieXRlYmFzZS52MS5QbGFuQgTiQQECEjUKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0IE4kEBAiLMDQoEUGxhbhIMCgRuYW1lGAEgASgJEhMKBWlzc3VlGAMgASgJQgTiQQEDEhUKB3JvbGxvdXQYDyABKAlCBOJBAQMSDQoFdGl0bGUYB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google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_database_service]);
+
+/**
+ * Describes the message bytebase.v1.GetPlanRequest.
+ * Use `create(GetPlanRequestSchema)` to create a new message.
+ */
+export const GetPlanRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListPlansRequest.
+ * Use `create(ListPlansRequestSchema)` to create a new message.
+ */
+export const ListPlansRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListPlansResponse.
+ * Use `create(ListPlansResponseSchema)` to create a new message.
+ */
+export const ListPlansResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 2);
+
+/**
+ * Describes the message bytebase.v1.SearchPlansRequest.
+ * Use `create(SearchPlansRequestSchema)` to create a new message.
+ */
+export const SearchPlansRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 3);
+
+/**
+ * Describes the message bytebase.v1.SearchPlansResponse.
+ * Use `create(SearchPlansResponseSchema)` to create a new message.
+ */
+export const SearchPlansResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 4);
+
+/**
+ * Describes the message bytebase.v1.CreatePlanRequest.
+ * Use `create(CreatePlanRequestSchema)` to create a new message.
+ */
+export const CreatePlanRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 5);
+
+/**
+ * Describes the message bytebase.v1.UpdatePlanRequest.
+ * Use `create(UpdatePlanRequestSchema)` to create a new message.
+ */
+export const UpdatePlanRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 6);
+
+/**
+ * Describes the message bytebase.v1.Plan.
+ * Use `create(PlanSchema)` to create a new message.
+ */
+export const PlanSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7);
+
+/**
+ * Describes the message bytebase.v1.Plan.Spec.
+ * Use `create(Plan_SpecSchema)` to create a new message.
+ */
+export const Plan_SpecSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7, 0);
+
+/**
+ * Describes the message bytebase.v1.Plan.CreateDatabaseConfig.
+ * Use `create(Plan_CreateDatabaseConfigSchema)` to create a new message.
+ */
+export const Plan_CreateDatabaseConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7, 1);
+
+/**
+ * Describes the message bytebase.v1.Plan.ChangeDatabaseConfig.
+ * Use `create(Plan_ChangeDatabaseConfigSchema)` to create a new message.
+ */
+export const Plan_ChangeDatabaseConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7, 2);
+
+/**
+ * Describes the enum bytebase.v1.Plan.ChangeDatabaseConfig.Type.
+ */
+export const Plan_ChangeDatabaseConfig_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_plan_service, 7, 2, 0);
+
+/**
+ * Type is the database change type.
+ *
+ * @generated from enum bytebase.v1.Plan.ChangeDatabaseConfig.Type
+ */
+export const Plan_ChangeDatabaseConfig_Type = /*@__PURE__*/
+ tsEnum(Plan_ChangeDatabaseConfig_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.Plan.ExportDataConfig.
+ * Use `create(Plan_ExportDataConfigSchema)` to create a new message.
+ */
+export const Plan_ExportDataConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7, 3);
+
+/**
+ * Describes the message bytebase.v1.Plan.Deployment.
+ * Use `create(Plan_DeploymentSchema)` to create a new message.
+ */
+export const Plan_DeploymentSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7, 4);
+
+/**
+ * Describes the message bytebase.v1.Plan.Deployment.DatabaseGroupMapping.
+ * Use `create(Plan_Deployment_DatabaseGroupMappingSchema)` to create a new message.
+ */
+export const Plan_Deployment_DatabaseGroupMappingSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 7, 4, 0);
+
+/**
+ * Describes the message bytebase.v1.ListPlanCheckRunsRequest.
+ * Use `create(ListPlanCheckRunsRequestSchema)` to create a new message.
+ */
+export const ListPlanCheckRunsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 8);
+
+/**
+ * Describes the message bytebase.v1.ListPlanCheckRunsResponse.
+ * Use `create(ListPlanCheckRunsResponseSchema)` to create a new message.
+ */
+export const ListPlanCheckRunsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 9);
+
+/**
+ * Describes the message bytebase.v1.RunPlanChecksRequest.
+ * Use `create(RunPlanChecksRequestSchema)` to create a new message.
+ */
+export const RunPlanChecksRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 10);
+
+/**
+ * Describes the message bytebase.v1.RunPlanChecksResponse.
+ * Use `create(RunPlanChecksResponseSchema)` to create a new message.
+ */
+export const RunPlanChecksResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 11);
+
+/**
+ * Describes the message bytebase.v1.BatchCancelPlanCheckRunsRequest.
+ * Use `create(BatchCancelPlanCheckRunsRequestSchema)` to create a new message.
+ */
+export const BatchCancelPlanCheckRunsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 12);
+
+/**
+ * Describes the message bytebase.v1.BatchCancelPlanCheckRunsResponse.
+ * Use `create(BatchCancelPlanCheckRunsResponseSchema)` to create a new message.
+ */
+export const BatchCancelPlanCheckRunsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 13);
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.
+ * Use `create(PlanCheckRunSchema)` to create a new message.
+ */
+export const PlanCheckRunSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 14);
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.Result.
+ * Use `create(PlanCheckRun_ResultSchema)` to create a new message.
+ */
+export const PlanCheckRun_ResultSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 14, 0);
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.
+ * Use `create(PlanCheckRun_Result_SqlSummaryReportSchema)` to create a new message.
+ */
+export const PlanCheckRun_Result_SqlSummaryReportSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 14, 0, 0);
+
+/**
+ * Describes the message bytebase.v1.PlanCheckRun.Result.SqlReviewReport.
+ * Use `create(PlanCheckRun_Result_SqlReviewReportSchema)` to create a new message.
+ */
+export const PlanCheckRun_Result_SqlReviewReportSchema = /*@__PURE__*/
+ messageDesc(file_v1_plan_service, 14, 0, 1);
+
+/**
+ * Describes the enum bytebase.v1.PlanCheckRun.Result.Status.
+ */
+export const PlanCheckRun_Result_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_plan_service, 14, 0, 0);
+
+/**
+ * @generated from enum bytebase.v1.PlanCheckRun.Result.Status
+ */
+export const PlanCheckRun_Result_Status = /*@__PURE__*/
+ tsEnum(PlanCheckRun_Result_StatusSchema);
+
+/**
+ * Describes the enum bytebase.v1.PlanCheckRun.Type.
+ */
+export const PlanCheckRun_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_plan_service, 14, 0);
+
+/**
+ * @generated from enum bytebase.v1.PlanCheckRun.Type
+ */
+export const PlanCheckRun_Type = /*@__PURE__*/
+ tsEnum(PlanCheckRun_TypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.PlanCheckRun.Status.
+ */
+export const PlanCheckRun_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_plan_service, 14, 1);
+
+/**
+ * @generated from enum bytebase.v1.PlanCheckRun.Status
+ */
+export const PlanCheckRun_Status = /*@__PURE__*/
+ tsEnum(PlanCheckRun_StatusSchema);
+
+/**
+ * @generated from service bytebase.v1.PlanService
+ */
+export const PlanService = /*@__PURE__*/
+ serviceDesc(file_v1_plan_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/project_service_pb.d.ts b/frontend/src/types/proto-es/v1/project_service_pb.d.ts
new file mode 100644
index 0000000000..ae1ecfeaf4
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/project_service_pb.d.ts
@@ -0,0 +1,971 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/project_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+import type { GetIamPolicyRequestSchema, IamPolicy, IamPolicySchema, SetIamPolicyRequestSchema } from "./iam_policy_pb";
+import type { State } from "./common_pb";
+
+/**
+ * Describes the file v1/project_service.proto.
+ */
+export declare const file_v1_project_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetProjectRequest
+ */
+export declare type GetProjectRequest = Message<"bytebase.v1.GetProjectRequest"> & {
+ /**
+ * The name of the project to retrieve.
+ * Format: projects/{project}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetProjectRequest.
+ * Use `create(GetProjectRequestSchema)` to create a new message.
+ */
+export declare const GetProjectRequestSchema: GenMessage<GetProjectRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListProjectsRequest
+ */
+export declare type ListProjectsRequest = Message<"bytebase.v1.ListProjectsRequest"> & {
+ /**
+ * The maximum number of projects to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 projects will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListProjects` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListProjects` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+
+ /**
+ * Show deleted projects if specified.
+ *
+ * @generated from field: bool show_deleted = 3;
+ */
+ showDeleted: boolean;
+
+ /**
+ * Filter the project.
+ * Check filter for SearchProjectsRequest for details.
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListProjectsRequest.
+ * Use `create(ListProjectsRequestSchema)` to create a new message.
+ */
+export declare const ListProjectsRequestSchema: GenMessage<ListProjectsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListProjectsResponse
+ */
+export declare type ListProjectsResponse = Message<"bytebase.v1.ListProjectsResponse"> & {
+ /**
+ * The projects from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Project projects = 1;
+ */
+ projects: Project[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListProjectsResponse.
+ * Use `create(ListProjectsResponseSchema)` to create a new message.
+ */
+export declare const ListProjectsResponseSchema: GenMessage<ListProjectsResponse>;
+
+/**
+ * @generated from message bytebase.v1.SearchProjectsRequest
+ */
+export declare type SearchProjectsRequest = Message<"bytebase.v1.SearchProjectsRequest"> & {
+ /**
+ * Show deleted projects if specified.
+ *
+ * @generated from field: bool show_deleted = 1;
+ */
+ showDeleted: boolean;
+
+ /**
+ * Filter the project.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filters:
+ * - name: the project name, support "==" and ".matches()" operator.
+ * - resource_id: the project id, support "==" and ".matches()" operator.
+ * - exclude_default: if not include the default project, should be "true" or "false", support "==" operator.
+ * - state: check the State enum for the values, support "==" operator.
+ *
+ * For example:
+ * name = "project name"
+ * name.matches("project name")
+ * resource_id = "project id"
+ * resource_id.matches("project id")
+ * exclude_default == true
+ * state == "DELETED"
+ * You can combine filter conditions like:
+ * name = "project name" && resource_id.matches("project id")
+ * name.matches("project name") || resource_id = "project id"
+ *
+ * @generated from field: string filter = 2;
+ */
+ filter: string;
+
+ /**
+ * The maximum number of projects to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 projects will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 3;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `SearchProjects` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `SearchProjects` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 4;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchProjectsRequest.
+ * Use `create(SearchProjectsRequestSchema)` to create a new message.
+ */
+export declare const SearchProjectsRequestSchema: GenMessage<SearchProjectsRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchProjectsResponse
+ */
+export declare type SearchProjectsResponse = Message<"bytebase.v1.SearchProjectsResponse"> & {
+ /**
+ * The projects from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Project projects = 1;
+ */
+ projects: Project[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchProjectsResponse.
+ * Use `create(SearchProjectsResponseSchema)` to create a new message.
+ */
+export declare const SearchProjectsResponseSchema: GenMessage<SearchProjectsResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateProjectRequest
+ */
+export declare type CreateProjectRequest = Message<"bytebase.v1.CreateProjectRequest"> & {
+ /**
+ * The project to create.
+ *
+ * @generated from field: bytebase.v1.Project project = 1;
+ */
+ project?: Project;
+
+ /**
+ * The ID to use for the project, which will become the final component of
+ * the project's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ *
+ * @generated from field: string project_id = 2;
+ */
+ projectId: string;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateProjectRequest.
+ * Use `create(CreateProjectRequestSchema)` to create a new message.
+ */
+export declare const CreateProjectRequestSchema: GenMessage<CreateProjectRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateProjectRequest
+ */
+export declare type UpdateProjectRequest = Message<"bytebase.v1.UpdateProjectRequest"> & {
+ /**
+ * The project to update.
+ *
+ * The project's `name` field is used to identify the project to update.
+ * Format: projects/{project}
+ *
+ * @generated from field: bytebase.v1.Project project = 1;
+ */
+ project?: Project;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateProjectRequest.
+ * Use `create(UpdateProjectRequestSchema)` to create a new message.
+ */
+export declare const UpdateProjectRequestSchema: GenMessage<UpdateProjectRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteProjectRequest
+ */
+export declare type DeleteProjectRequest = Message<"bytebase.v1.DeleteProjectRequest"> & {
+ /**
+ * The name of the project to delete.
+ * Format: projects/{project}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * 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.
+ *
+ * @generated from field: bool force = 2;
+ */
+ force: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteProjectRequest.
+ * Use `create(DeleteProjectRequestSchema)` to create a new message.
+ */
+export declare const DeleteProjectRequestSchema: GenMessage<DeleteProjectRequest>;
+
+/**
+ * @generated from message bytebase.v1.UndeleteProjectRequest
+ */
+export declare type UndeleteProjectRequest = Message<"bytebase.v1.UndeleteProjectRequest"> & {
+ /**
+ * The name of the deleted project.
+ * Format: projects/{project}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.UndeleteProjectRequest.
+ * Use `create(UndeleteProjectRequestSchema)` to create a new message.
+ */
+export declare const UndeleteProjectRequestSchema: GenMessage<UndeleteProjectRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetIamPolicyRequest
+ */
+export declare type BatchGetIamPolicyRequest = Message<"bytebase.v1.BatchGetIamPolicyRequest"> & {
+ /**
+ * The scope of the batch get. Typically it's "projects/-".
+ *
+ * @generated from field: string scope = 1;
+ */
+ scope: string;
+
+ /**
+ * @generated from field: repeated string names = 2;
+ */
+ names: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetIamPolicyRequest.
+ * Use `create(BatchGetIamPolicyRequestSchema)` to create a new message.
+ */
+export declare const BatchGetIamPolicyRequestSchema: GenMessage<BatchGetIamPolicyRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetIamPolicyResponse
+ */
+export declare type BatchGetIamPolicyResponse = Message<"bytebase.v1.BatchGetIamPolicyResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.BatchGetIamPolicyResponse.PolicyResult policy_results = 1;
+ */
+ policyResults: BatchGetIamPolicyResponse_PolicyResult[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetIamPolicyResponse.
+ * Use `create(BatchGetIamPolicyResponseSchema)` to create a new message.
+ */
+export declare const BatchGetIamPolicyResponseSchema: GenMessage<BatchGetIamPolicyResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetIamPolicyResponse.PolicyResult
+ */
+export declare type BatchGetIamPolicyResponse_PolicyResult = Message<"bytebase.v1.BatchGetIamPolicyResponse.PolicyResult"> & {
+ /**
+ * @generated from field: string project = 1;
+ */
+ project: string;
+
+ /**
+ * @generated from field: bytebase.v1.IamPolicy policy = 2;
+ */
+ policy?: IamPolicy;
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetIamPolicyResponse.PolicyResult.
+ * Use `create(BatchGetIamPolicyResponse_PolicyResultSchema)` to create a new message.
+ */
+export declare const BatchGetIamPolicyResponse_PolicyResultSchema: GenMessage<BatchGetIamPolicyResponse_PolicyResult>;
+
+/**
+ * @generated from message bytebase.v1.Label
+ */
+export declare type Label = Message<"bytebase.v1.Label"> & {
+ /**
+ * @generated from field: string value = 1;
+ */
+ value: string;
+
+ /**
+ * @generated from field: string color = 2;
+ */
+ color: string;
+
+ /**
+ * @generated from field: string group = 3;
+ */
+ group: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Label.
+ * Use `create(LabelSchema)` to create a new message.
+ */
+export declare const LabelSchema: GenMessage<Label>;
+
+/**
+ * @generated from message bytebase.v1.Project
+ */
+export declare type Project = Message<"bytebase.v1.Project"> & {
+ /**
+ * The name of the project.
+ * Format: projects/{project}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.State state = 3;
+ */
+ state: State;
+
+ /**
+ * The title or name of a project. It's not unique within the workspace.
+ *
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Webhook webhooks = 11;
+ */
+ webhooks: Webhook[];
+
+ /**
+ * @generated from field: string data_classification_config_id = 12;
+ */
+ dataClassificationConfigId: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Label issue_labels = 13;
+ */
+ issueLabels: Label[];
+
+ /**
+ * Force issue labels to be used when creating an issue.
+ *
+ * @generated from field: bool force_issue_labels = 14;
+ */
+ forceIssueLabels: boolean;
+
+ /**
+ * Allow modifying statement after issue is created.
+ *
+ * @generated from field: bool allow_modify_statement = 15;
+ */
+ allowModifyStatement: boolean;
+
+ /**
+ * Enable auto resolve issue.
+ *
+ * @generated from field: bool auto_resolve_issue = 16;
+ */
+ autoResolveIssue: boolean;
+
+ /**
+ * Enforce issue title created by user instead of generated by Bytebase.
+ *
+ * @generated from field: bool enforce_issue_title = 17;
+ */
+ enforceIssueTitle: boolean;
+
+ /**
+ * Whether to automatically enable backup.
+ *
+ * @generated from field: bool auto_enable_backup = 18;
+ */
+ autoEnableBackup: boolean;
+
+ /**
+ * Whether to skip backup errors and continue the data migration.
+ *
+ * @generated from field: bool skip_backup_errors = 19;
+ */
+ skipBackupErrors: boolean;
+
+ /**
+ * Whether to enable the database tenant mode for PostgreSQL.
+ * If enabled, the issue will be created with the prepend "set role <db_owner>" statement.
+ *
+ * @generated from field: bool postgres_database_tenant_mode = 20;
+ */
+ postgresDatabaseTenantMode: boolean;
+
+ /**
+ * Whether to allow the issue creator to self-approve the issue.
+ *
+ * @generated from field: bool allow_self_approval = 21;
+ */
+ allowSelfApproval: boolean;
+
+ /**
+ * Execution retry policy for the task run.
+ *
+ * @generated from field: bytebase.v1.Project.ExecutionRetryPolicy execution_retry_policy = 22;
+ */
+ executionRetryPolicy?: Project_ExecutionRetryPolicy;
+
+ /**
+ * The maximum databases of rows to sample during CI data validation.
+ * Without specification, sampling is disabled, resulting in a full validation.
+ *
+ * @generated from field: int32 ci_sampling_size = 23;
+ */
+ ciSamplingSize: number;
+
+ /**
+ * The maximum number of parallel tasks to run during the rollout.
+ *
+ * @generated from field: int32 parallel_tasks_per_rollout = 24;
+ */
+ parallelTasksPerRollout: number;
+};
+
+/**
+ * Describes the message bytebase.v1.Project.
+ * Use `create(ProjectSchema)` to create a new message.
+ */
+export declare const ProjectSchema: GenMessage<Project>;
+
+/**
+ * @generated from message bytebase.v1.Project.ExecutionRetryPolicy
+ */
+export declare type Project_ExecutionRetryPolicy = Message<"bytebase.v1.Project.ExecutionRetryPolicy"> & {
+ /**
+ * The maximum number of retries for the lock timeout issue.
+ *
+ * @generated from field: int32 maximum_retries = 1;
+ */
+ maximumRetries: number;
+};
+
+/**
+ * Describes the message bytebase.v1.Project.ExecutionRetryPolicy.
+ * Use `create(Project_ExecutionRetryPolicySchema)` to create a new message.
+ */
+export declare const Project_ExecutionRetryPolicySchema: GenMessage<Project_ExecutionRetryPolicy>;
+
+/**
+ * @generated from message bytebase.v1.AddWebhookRequest
+ */
+export declare type AddWebhookRequest = Message<"bytebase.v1.AddWebhookRequest"> & {
+ /**
+ * The name of the project to add the webhook to.
+ * Format: projects/{project}
+ *
+ * @generated from field: string project = 1;
+ */
+ project: string;
+
+ /**
+ * The webhook to add.
+ *
+ * @generated from field: bytebase.v1.Webhook webhook = 2;
+ */
+ webhook?: Webhook;
+};
+
+/**
+ * Describes the message bytebase.v1.AddWebhookRequest.
+ * Use `create(AddWebhookRequestSchema)` to create a new message.
+ */
+export declare const AddWebhookRequestSchema: GenMessage<AddWebhookRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateWebhookRequest
+ */
+export declare type UpdateWebhookRequest = Message<"bytebase.v1.UpdateWebhookRequest"> & {
+ /**
+ * The webhook to modify.
+ *
+ * @generated from field: bytebase.v1.Webhook webhook = 1;
+ */
+ webhook?: Webhook;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateWebhookRequest.
+ * Use `create(UpdateWebhookRequestSchema)` to create a new message.
+ */
+export declare const UpdateWebhookRequestSchema: GenMessage<UpdateWebhookRequest>;
+
+/**
+ * @generated from message bytebase.v1.RemoveWebhookRequest
+ */
+export declare type RemoveWebhookRequest = Message<"bytebase.v1.RemoveWebhookRequest"> & {
+ /**
+ * The webhook to remove. Identified by its url.
+ *
+ * @generated from field: bytebase.v1.Webhook webhook = 1;
+ */
+ webhook?: Webhook;
+};
+
+/**
+ * Describes the message bytebase.v1.RemoveWebhookRequest.
+ * Use `create(RemoveWebhookRequestSchema)` to create a new message.
+ */
+export declare const RemoveWebhookRequestSchema: GenMessage<RemoveWebhookRequest>;
+
+/**
+ * @generated from message bytebase.v1.TestWebhookRequest
+ */
+export declare type TestWebhookRequest = Message<"bytebase.v1.TestWebhookRequest"> & {
+ /**
+ * The name of the project which owns the webhook to test.
+ * Format: projects/{project}
+ *
+ * @generated from field: string project = 1;
+ */
+ project: string;
+
+ /**
+ * The webhook to test. Identified by its url.
+ *
+ * @generated from field: bytebase.v1.Webhook webhook = 2;
+ */
+ webhook?: Webhook;
+};
+
+/**
+ * Describes the message bytebase.v1.TestWebhookRequest.
+ * Use `create(TestWebhookRequestSchema)` to create a new message.
+ */
+export declare const TestWebhookRequestSchema: GenMessage<TestWebhookRequest>;
+
+/**
+ * @generated from message bytebase.v1.TestWebhookResponse
+ */
+export declare type TestWebhookResponse = Message<"bytebase.v1.TestWebhookResponse"> & {
+ /**
+ * The result of the test, empty if the test is successful.
+ *
+ * @generated from field: string error = 1;
+ */
+ error: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TestWebhookResponse.
+ * Use `create(TestWebhookResponseSchema)` to create a new message.
+ */
+export declare const TestWebhookResponseSchema: GenMessage<TestWebhookResponse>;
+
+/**
+ * @generated from message bytebase.v1.Webhook
+ */
+export declare type Webhook = Message<"bytebase.v1.Webhook"> & {
+ /**
+ * name is the name of the webhook, generated by the server.
+ * format: projects/{project}/webhooks/{webhook}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * type is the type of the webhook.
+ *
+ * @generated from field: bytebase.v1.Webhook.Type type = 2;
+ */
+ type: Webhook_Type;
+
+ /**
+ * title is the title of the webhook.
+ *
+ * @generated from field: string title = 3;
+ */
+ title: string;
+
+ /**
+ * url is the url of the webhook, should be unique within the project.
+ *
+ * @generated from field: string url = 4;
+ */
+ url: string;
+
+ /**
+ * if direct_message is set, the notification is sent directly
+ * to the persons and url will be ignored.
+ * IM integration setting should be set for this function to work.
+ *
+ * @generated from field: bool direct_message = 6;
+ */
+ directMessage: boolean;
+
+ /**
+ * notification_types is the list of activities types that the webhook is interested in.
+ * Bytebase will only send notifications to the webhook if the activity type is in the list.
+ * It should not be empty, and should be a subset of the following:
+ * - TYPE_ISSUE_CREATED
+ * - TYPE_ISSUE_STATUS_UPDATE
+ * - TYPE_ISSUE_PIPELINE_STAGE_UPDATE
+ * - TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE
+ * - TYPE_ISSUE_FIELD_UPDATE
+ * - TYPE_ISSUE_COMMENT_CREATE
+ *
+ * @generated from field: repeated bytebase.v1.Activity.Type notification_types = 5;
+ */
+ notificationTypes: Activity_Type[];
+};
+
+/**
+ * Describes the message bytebase.v1.Webhook.
+ * Use `create(WebhookSchema)` to create a new message.
+ */
+export declare const WebhookSchema: GenMessage<Webhook>;
+
+/**
+ * @generated from enum bytebase.v1.Webhook.Type
+ */
+export enum Webhook_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: SLACK = 1;
+ */
+ SLACK = 1,
+
+ /**
+ * @generated from enum value: DISCORD = 2;
+ */
+ DISCORD = 2,
+
+ /**
+ * @generated from enum value: TEAMS = 3;
+ */
+ TEAMS = 3,
+
+ /**
+ * @generated from enum value: DINGTALK = 4;
+ */
+ DINGTALK = 4,
+
+ /**
+ * @generated from enum value: FEISHU = 5;
+ */
+ FEISHU = 5,
+
+ /**
+ * @generated from enum value: WECOM = 6;
+ */
+ WECOM = 6,
+
+ /**
+ * @generated from enum value: LARK = 8;
+ */
+ LARK = 8,
+}
+
+/**
+ * Describes the enum bytebase.v1.Webhook.Type.
+ */
+export declare const Webhook_TypeSchema: GenEnum<Webhook_Type>;
+
+/**
+ * TODO(zp): move to activity later.
+ *
+ * @generated from message bytebase.v1.Activity
+ */
+export declare type Activity = Message<"bytebase.v1.Activity"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.Activity.
+ * Use `create(ActivitySchema)` to create a new message.
+ */
+export declare const ActivitySchema: GenMessage<Activity>;
+
+/**
+ * @generated from enum bytebase.v1.Activity.Type
+ */
+export enum Activity_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * Notifications via webhooks.
+ *
+ * TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification.
+ *
+ * @generated from enum value: TYPE_NOTIFY_ISSUE_APPROVED = 23;
+ */
+ NOTIFY_ISSUE_APPROVED = 23,
+
+ /**
+ * TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.
+ *
+ * @generated from enum value: TYPE_NOTIFY_PIPELINE_ROLLOUT = 24;
+ */
+ NOTIFY_PIPELINE_ROLLOUT = 24,
+
+ /**
+ * Issue related activity types.
+ *
+ * TYPE_ISSUE_CREATE represents creating an issue.
+ *
+ * @generated from enum value: TYPE_ISSUE_CREATE = 1;
+ */
+ ISSUE_CREATE = 1,
+
+ /**
+ * TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue.
+ *
+ * @generated from enum value: TYPE_ISSUE_COMMENT_CREATE = 2;
+ */
+ ISSUE_COMMENT_CREATE = 2,
+
+ /**
+ * TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc.
+ *
+ * @generated from enum value: TYPE_ISSUE_FIELD_UPDATE = 3;
+ */
+ ISSUE_FIELD_UPDATE = 3,
+
+ /**
+ * TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now.
+ *
+ * @generated from enum value: TYPE_ISSUE_STATUS_UPDATE = 4;
+ */
+ ISSUE_STATUS_UPDATE = 4,
+
+ /**
+ * TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.
+ *
+ * @generated from enum value: TYPE_ISSUE_APPROVAL_NOTIFY = 21;
+ */
+ ISSUE_APPROVAL_NOTIFY = 21,
+
+ /**
+ * TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.
+ *
+ * @generated from enum value: TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE = 5;
+ */
+ ISSUE_PIPELINE_STAGE_STATUS_UPDATE = 5,
+
+ /**
+ * TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.
+ *
+ * @generated from enum value: TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE = 22;
+ */
+ ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE = 22,
+}
+
+/**
+ * Describes the enum bytebase.v1.Activity.Type.
+ */
+export declare const Activity_TypeSchema: GenEnum<Activity_Type>;
+
+/**
+ * @generated from service bytebase.v1.ProjectService
+ */
+export declare const ProjectService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.GetProject
+ */
+ getProject: {
+ methodKind: "unary";
+ input: typeof GetProjectRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.ListProjects
+ */
+ listProjects: {
+ methodKind: "unary";
+ input: typeof ListProjectsRequestSchema;
+ output: typeof ListProjectsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.SearchProjects
+ */
+ searchProjects: {
+ methodKind: "unary";
+ input: typeof SearchProjectsRequestSchema;
+ output: typeof SearchProjectsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.CreateProject
+ */
+ createProject: {
+ methodKind: "unary";
+ input: typeof CreateProjectRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.UpdateProject
+ */
+ updateProject: {
+ methodKind: "unary";
+ input: typeof UpdateProjectRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.DeleteProject
+ */
+ deleteProject: {
+ methodKind: "unary";
+ input: typeof DeleteProjectRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.UndeleteProject
+ */
+ undeleteProject: {
+ methodKind: "unary";
+ input: typeof UndeleteProjectRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.GetIamPolicy
+ */
+ getIamPolicy: {
+ methodKind: "unary";
+ input: typeof GetIamPolicyRequestSchema;
+ output: typeof IamPolicySchema;
+ },
+ /**
+ * Deprecated.
+ *
+ * @generated from rpc bytebase.v1.ProjectService.BatchGetIamPolicy
+ */
+ batchGetIamPolicy: {
+ methodKind: "unary";
+ input: typeof BatchGetIamPolicyRequestSchema;
+ output: typeof BatchGetIamPolicyResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.SetIamPolicy
+ */
+ setIamPolicy: {
+ methodKind: "unary";
+ input: typeof SetIamPolicyRequestSchema;
+ output: typeof IamPolicySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.AddWebhook
+ */
+ addWebhook: {
+ methodKind: "unary";
+ input: typeof AddWebhookRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.UpdateWebhook
+ */
+ updateWebhook: {
+ methodKind: "unary";
+ input: typeof UpdateWebhookRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.RemoveWebhook
+ */
+ removeWebhook: {
+ methodKind: "unary";
+ input: typeof RemoveWebhookRequestSchema;
+ output: typeof ProjectSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ProjectService.TestWebhook
+ */
+ testWebhook: {
+ methodKind: "unary";
+ input: typeof TestWebhookRequestSchema;
+ output: typeof TestWebhookResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/project_service_pb.js b/frontend/src/types/proto-es/v1/project_service_pb.js
new file mode 100644
index 0000000000..ea36f53012
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/project_service_pb.js
@@ -0,0 +1,204 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/project_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_iam_policy } from "./iam_policy_pb";
+
+/**
+ * Describes the file v1/project_service.proto.
+ */
+export const file_v1_project_service = /*@__P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axKlAQoNUmVtb3ZlV2ViaG9vaxIhLmJ5dGViYXNlLnYxLlJlbW92ZVdlYmhvb2tSZXF1ZXN0GhQuYnl0ZWJhc2UudjEuUHJvamVjdCJbiuowEmJiLnByb2plY3RzLnVwZGF0ZZDqMAGC0+STAjs6ASoiNi92MS97d2ViaG9vay5uYW1lPXByb2plY3RzLyovd2ViaG9va3MvKn06cmVtb3ZlV2ViaG9vaxKbAQoLVGVzdFdlYmhvb2sSHy5ieXRlYmFzZS52MS5UZXN0V2ViaG9va1JlcXVlc3QaIC5ieXRlYmFzZS52MS5UZXN0V2ViaG9va1Jlc3BvbnNlIkmK6jASYmIucHJvamVjdHMudXBkYXRlkOowAYLT5JMCKToBKiIkL3YxL3twcm9qZWN0PXByb2plY3RzLyp9OnRlc3RXZWJob29rQjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation, file_v1_common, file_v1_iam_policy]);
+
+/**
+ * Describes the message bytebase.v1.GetProjectRequest.
+ * Use `create(GetProjectRequestSchema)` to create a new message.
+ */
+export const GetProjectRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListProjectsRequest.
+ * Use `create(ListProjectsRequestSchema)` to create a new message.
+ */
+export const ListProjectsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListProjectsResponse.
+ * Use `create(ListProjectsResponseSchema)` to create a new message.
+ */
+export const ListProjectsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 2);
+
+/**
+ * Describes the message bytebase.v1.SearchProjectsRequest.
+ * Use `create(SearchProjectsRequestSchema)` to create a new message.
+ */
+export const SearchProjectsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 3);
+
+/**
+ * Describes the message bytebase.v1.SearchProjectsResponse.
+ * Use `create(SearchProjectsResponseSchema)` to create a new message.
+ */
+export const SearchProjectsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 4);
+
+/**
+ * Describes the message bytebase.v1.CreateProjectRequest.
+ * Use `create(CreateProjectRequestSchema)` to create a new message.
+ */
+export const CreateProjectRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 5);
+
+/**
+ * Describes the message bytebase.v1.UpdateProjectRequest.
+ * Use `create(UpdateProjectRequestSchema)` to create a new message.
+ */
+export const UpdateProjectRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 6);
+
+/**
+ * Describes the message bytebase.v1.DeleteProjectRequest.
+ * Use `create(DeleteProjectRequestSchema)` to create a new message.
+ */
+export const DeleteProjectRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 7);
+
+/**
+ * Describes the message bytebase.v1.UndeleteProjectRequest.
+ * Use `create(UndeleteProjectRequestSchema)` to create a new message.
+ */
+export const UndeleteProjectRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 8);
+
+/**
+ * Describes the message bytebase.v1.BatchGetIamPolicyRequest.
+ * Use `create(BatchGetIamPolicyRequestSchema)` to create a new message.
+ */
+export const BatchGetIamPolicyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 9);
+
+/**
+ * Describes the message bytebase.v1.BatchGetIamPolicyResponse.
+ * Use `create(BatchGetIamPolicyResponseSchema)` to create a new message.
+ */
+export const BatchGetIamPolicyResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 10);
+
+/**
+ * Describes the message bytebase.v1.BatchGetIamPolicyResponse.PolicyResult.
+ * Use `create(BatchGetIamPolicyResponse_PolicyResultSchema)` to create a new message.
+ */
+export const BatchGetIamPolicyResponse_PolicyResultSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 10, 0);
+
+/**
+ * Describes the message bytebase.v1.Label.
+ * Use `create(LabelSchema)` to create a new message.
+ */
+export const LabelSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 11);
+
+/**
+ * Describes the message bytebase.v1.Project.
+ * Use `create(ProjectSchema)` to create a new message.
+ */
+export const ProjectSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 12);
+
+/**
+ * Describes the message bytebase.v1.Project.ExecutionRetryPolicy.
+ * Use `create(Project_ExecutionRetryPolicySchema)` to create a new message.
+ */
+export const Project_ExecutionRetryPolicySchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 12, 0);
+
+/**
+ * Describes the message bytebase.v1.AddWebhookRequest.
+ * Use `create(AddWebhookRequestSchema)` to create a new message.
+ */
+export const AddWebhookRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 13);
+
+/**
+ * Describes the message bytebase.v1.UpdateWebhookRequest.
+ * Use `create(UpdateWebhookRequestSchema)` to create a new message.
+ */
+export const UpdateWebhookRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 14);
+
+/**
+ * Describes the message bytebase.v1.RemoveWebhookRequest.
+ * Use `create(RemoveWebhookRequestSchema)` to create a new message.
+ */
+export const RemoveWebhookRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 15);
+
+/**
+ * Describes the message bytebase.v1.TestWebhookRequest.
+ * Use `create(TestWebhookRequestSchema)` to create a new message.
+ */
+export const TestWebhookRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 16);
+
+/**
+ * Describes the message bytebase.v1.TestWebhookResponse.
+ * Use `create(TestWebhookResponseSchema)` to create a new message.
+ */
+export const TestWebhookResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 17);
+
+/**
+ * Describes the message bytebase.v1.Webhook.
+ * Use `create(WebhookSchema)` to create a new message.
+ */
+export const WebhookSchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 18);
+
+/**
+ * Describes the enum bytebase.v1.Webhook.Type.
+ */
+export const Webhook_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_project_service, 18, 0);
+
+/**
+ * @generated from enum bytebase.v1.Webhook.Type
+ */
+export const Webhook_Type = /*@__PURE__*/
+ tsEnum(Webhook_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.Activity.
+ * Use `create(ActivitySchema)` to create a new message.
+ */
+export const ActivitySchema = /*@__PURE__*/
+ messageDesc(file_v1_project_service, 19);
+
+/**
+ * Describes the enum bytebase.v1.Activity.Type.
+ */
+export const Activity_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_project_service, 19, 0);
+
+/**
+ * @generated from enum bytebase.v1.Activity.Type
+ */
+export const Activity_Type = /*@__PURE__*/
+ tsEnum(Activity_TypeSchema);
+
+/**
+ * @generated from service bytebase.v1.ProjectService
+ */
+export const ProjectService = /*@__PURE__*/
+ serviceDesc(file_v1_project_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/release_service_pb.d.ts b/frontend/src/types/proto-es/v1/release_service_pb.d.ts
new file mode 100644
index 0000000000..d7935d506b
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/release_service_pb.d.ts
@@ -0,0 +1,591 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/release_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { Advice } from "./sql_service_pb";
+import type { State, VCSType } from "./common_pb";
+
+/**
+ * Describes the file v1/release_service.proto.
+ */
+export declare const file_v1_release_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetReleaseRequest
+ */
+export declare type GetReleaseRequest = Message<"bytebase.v1.GetReleaseRequest"> & {
+ /**
+ * Format: projects/{project}/releases/{release}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetReleaseRequest.
+ * Use `create(GetReleaseRequestSchema)` to create a new message.
+ */
+export declare const GetReleaseRequestSchema: GenMessage<GetReleaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListReleasesRequest
+ */
+export declare type ListReleasesRequest = Message<"bytebase.v1.ListReleasesRequest"> & {
+ /**
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of releases to return. The service may return fewer than this value.
+ * If unspecified, at most 10 releases will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListReleases` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListReleases` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * Show deleted releases if specified.
+ *
+ * @generated from field: bool show_deleted = 4;
+ */
+ showDeleted: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ListReleasesRequest.
+ * Use `create(ListReleasesRequestSchema)` to create a new message.
+ */
+export declare const ListReleasesRequestSchema: GenMessage<ListReleasesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListReleasesResponse
+ */
+export declare type ListReleasesResponse = Message<"bytebase.v1.ListReleasesResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Release releases = 1;
+ */
+ releases: Release[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListReleasesResponse.
+ * Use `create(ListReleasesResponseSchema)` to create a new message.
+ */
+export declare const ListReleasesResponseSchema: GenMessage<ListReleasesResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateReleaseRequest
+ */
+export declare type CreateReleaseRequest = Message<"bytebase.v1.CreateReleaseRequest"> & {
+ /**
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The release to create.
+ *
+ * @generated from field: bytebase.v1.Release release = 2;
+ */
+ release?: Release;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateReleaseRequest.
+ * Use `create(CreateReleaseRequestSchema)` to create a new message.
+ */
+export declare const CreateReleaseRequestSchema: GenMessage<CreateReleaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateReleaseRequest
+ */
+export declare type UpdateReleaseRequest = Message<"bytebase.v1.UpdateReleaseRequest"> & {
+ /**
+ * The release to update.
+ *
+ * @generated from field: bytebase.v1.Release release = 1;
+ */
+ release?: Release;
+
+ /**
+ * The list of fields to be updated.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateReleaseRequest.
+ * Use `create(UpdateReleaseRequestSchema)` to create a new message.
+ */
+export declare const UpdateReleaseRequestSchema: GenMessage<UpdateReleaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteReleaseRequest
+ */
+export declare type DeleteReleaseRequest = Message<"bytebase.v1.DeleteReleaseRequest"> & {
+ /**
+ * The name of the release to delete.
+ * Format: projects/{project}/releases/{release}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteReleaseRequest.
+ * Use `create(DeleteReleaseRequestSchema)` to create a new message.
+ */
+export declare const DeleteReleaseRequestSchema: GenMessage<DeleteReleaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.UndeleteReleaseRequest
+ */
+export declare type UndeleteReleaseRequest = Message<"bytebase.v1.UndeleteReleaseRequest"> & {
+ /**
+ * The name of the deleted release.
+ * Format: projects/{project}/releases/{release}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.UndeleteReleaseRequest.
+ * Use `create(UndeleteReleaseRequestSchema)` to create a new message.
+ */
+export declare const UndeleteReleaseRequestSchema: GenMessage<UndeleteReleaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.CheckReleaseRequest
+ */
+export declare type CheckReleaseRequest = Message<"bytebase.v1.CheckReleaseRequest"> & {
+ /**
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The release to check.
+ *
+ * @generated from field: bytebase.v1.Release release = 2;
+ */
+ release?: Release;
+
+ /**
+ * The targets to dry-run the release.
+ * Can be database or databaseGroup.
+ * Format:
+ * projects/{project}/databaseGroups/{databaseGroup}
+ * instances/{instance}/databases/{database}
+ *
+ * @generated from field: repeated string targets = 3;
+ */
+ targets: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.CheckReleaseRequest.
+ * Use `create(CheckReleaseRequestSchema)` to create a new message.
+ */
+export declare const CheckReleaseRequestSchema: GenMessage<CheckReleaseRequest>;
+
+/**
+ * @generated from message bytebase.v1.CheckReleaseResponse
+ */
+export declare type CheckReleaseResponse = Message<"bytebase.v1.CheckReleaseResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.CheckReleaseResponse.CheckResult results = 1;
+ */
+ results: CheckReleaseResponse_CheckResult[];
+
+ /**
+ * The affected rows of the check.
+ *
+ * @generated from field: int32 affected_rows = 2;
+ */
+ affectedRows: number;
+
+ /**
+ * The aggregated risk level of the check.
+ *
+ * @generated from field: bytebase.v1.CheckReleaseResponse.RiskLevel risk_level = 3;
+ */
+ riskLevel: CheckReleaseResponse_RiskLevel;
+};
+
+/**
+ * Describes the message bytebase.v1.CheckReleaseResponse.
+ * Use `create(CheckReleaseResponseSchema)` to create a new message.
+ */
+export declare const CheckReleaseResponseSchema: GenMessage<CheckReleaseResponse>;
+
+/**
+ * @generated from message bytebase.v1.CheckReleaseResponse.CheckResult
+ */
+export declare type CheckReleaseResponse_CheckResult = Message<"bytebase.v1.CheckReleaseResponse.CheckResult"> & {
+ /**
+ * The file path that is being checked.
+ *
+ * @generated from field: string file = 1;
+ */
+ file: string;
+
+ /**
+ * The target that the check is performed on.
+ * Should be a database. Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string target = 2;
+ */
+ target: string;
+
+ /**
+ * The list of advice for the file and the target.
+ *
+ * @generated from field: repeated bytebase.v1.Advice advices = 3;
+ */
+ advices: Advice[];
+
+ /**
+ * The count of affected rows of the statement on the target.
+ *
+ * @generated from field: int32 affected_rows = 4;
+ */
+ affectedRows: number;
+
+ /**
+ * The risk level of the statement on the target.
+ *
+ * @generated from field: bytebase.v1.CheckReleaseResponse.RiskLevel risk_level = 5;
+ */
+ riskLevel: CheckReleaseResponse_RiskLevel;
+};
+
+/**
+ * Describes the message bytebase.v1.CheckReleaseResponse.CheckResult.
+ * Use `create(CheckReleaseResponse_CheckResultSchema)` to create a new message.
+ */
+export declare const CheckReleaseResponse_CheckResultSchema: GenMessage<CheckReleaseResponse_CheckResult>;
+
+/**
+ * @generated from enum bytebase.v1.CheckReleaseResponse.RiskLevel
+ */
+export enum CheckReleaseResponse_RiskLevel {
+ /**
+ * @generated from enum value: RISK_LEVEL_UNSPECIFIED = 0;
+ */
+ RISK_LEVEL_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: LOW = 1;
+ */
+ LOW = 1,
+
+ /**
+ * @generated from enum value: MODERATE = 2;
+ */
+ MODERATE = 2,
+
+ /**
+ * @generated from enum value: HIGH = 3;
+ */
+ HIGH = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.CheckReleaseResponse.RiskLevel.
+ */
+export declare const CheckReleaseResponse_RiskLevelSchema: GenEnum<CheckReleaseResponse_RiskLevel>;
+
+/**
+ * @generated from message bytebase.v1.Release
+ */
+export declare type Release = Message<"bytebase.v1.Release"> & {
+ /**
+ * Format: projects/{project}/releases/{release}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Release.File files = 3;
+ */
+ files: Release_File[];
+
+ /**
+ * @generated from field: bytebase.v1.Release.VCSSource vcs_source = 4;
+ */
+ vcsSource?: Release_VCSSource;
+
+ /**
+ * Format: users/[email protected]
+ *
+ * @generated from field: string creator = 5;
+ */
+ creator: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 6;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.State state = 7;
+ */
+ state: State;
+};
+
+/**
+ * Describes the message bytebase.v1.Release.
+ * Use `create(ReleaseSchema)` to create a new message.
+ */
+export declare const ReleaseSchema: GenMessage<Release>;
+
+/**
+ * @generated from message bytebase.v1.Release.File
+ */
+export declare type Release_File = Message<"bytebase.v1.Release.File"> & {
+ /**
+ * The unique identifier for the file.
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * The path of the file. e.g. `2.2/V0001_create_table.sql`.
+ *
+ * @generated from field: string path = 2;
+ */
+ path: string;
+
+ /**
+ * @generated from field: bytebase.v1.ReleaseFileType type = 5;
+ */
+ type: ReleaseFileType;
+
+ /**
+ * @generated from field: string version = 6;
+ */
+ version: string;
+
+ /**
+ * @generated from field: bytebase.v1.Release.File.ChangeType change_type = 9;
+ */
+ changeType: Release_File_ChangeType;
+
+ /**
+ * For inputs, we must either use `sheet` or `statement`.
+ * For outputs, we always use `sheet`. `statement` is the preview of the sheet content.
+ *
+ * The sheet that holds the content.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 3;
+ */
+ sheet: string;
+
+ /**
+ * The raw SQL statement content.
+ *
+ * @generated from field: bytes statement = 7;
+ */
+ statement: Uint8Array;
+
+ /**
+ * The SHA256 hash value of the sheet content or the statement.
+ *
+ * @generated from field: string sheet_sha256 = 4;
+ */
+ sheetSha256: string;
+
+ /**
+ * The size of the statement in bytes.
+ *
+ * @generated from field: int64 statement_size = 8;
+ */
+ statementSize: bigint;
+};
+
+/**
+ * Describes the message bytebase.v1.Release.File.
+ * Use `create(Release_FileSchema)` to create a new message.
+ */
+export declare const Release_FileSchema: GenMessage<Release_File>;
+
+/**
+ * @generated from enum bytebase.v1.Release.File.ChangeType
+ */
+export enum Release_File_ChangeType {
+ /**
+ * @generated from enum value: CHANGE_TYPE_UNSPECIFIED = 0;
+ */
+ CHANGE_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DDL = 1;
+ */
+ DDL = 1,
+
+ /**
+ * @generated from enum value: DDL_GHOST = 2;
+ */
+ DDL_GHOST = 2,
+
+ /**
+ * @generated from enum value: DML = 3;
+ */
+ DML = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Release.File.ChangeType.
+ */
+export declare const Release_File_ChangeTypeSchema: GenEnum<Release_File_ChangeType>;
+
+/**
+ * @generated from message bytebase.v1.Release.VCSSource
+ */
+export declare type Release_VCSSource = Message<"bytebase.v1.Release.VCSSource"> & {
+ /**
+ * @generated from field: bytebase.v1.VCSType vcs_type = 1;
+ */
+ vcsType: VCSType;
+
+ /**
+ * The url link to the e.g. GitHub commit or pull request.
+ *
+ * @generated from field: string url = 2;
+ */
+ url: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Release.VCSSource.
+ * Use `create(Release_VCSSourceSchema)` to create a new message.
+ */
+export declare const Release_VCSSourceSchema: GenMessage<Release_VCSSource>;
+
+/**
+ * @generated from enum bytebase.v1.ReleaseFileType
+ */
+export enum ReleaseFileType {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: VERSIONED = 1;
+ */
+ VERSIONED = 1,
+}
+
+/**
+ * Describes the enum bytebase.v1.ReleaseFileType.
+ */
+export declare const ReleaseFileTypeSchema: GenEnum<ReleaseFileType>;
+
+/**
+ * @generated from service bytebase.v1.ReleaseService
+ */
+export declare const ReleaseService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.GetRelease
+ */
+ getRelease: {
+ methodKind: "unary";
+ input: typeof GetReleaseRequestSchema;
+ output: typeof ReleaseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.ListReleases
+ */
+ listReleases: {
+ methodKind: "unary";
+ input: typeof ListReleasesRequestSchema;
+ output: typeof ListReleasesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.CreateRelease
+ */
+ createRelease: {
+ methodKind: "unary";
+ input: typeof CreateReleaseRequestSchema;
+ output: typeof ReleaseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.UpdateRelease
+ */
+ updateRelease: {
+ methodKind: "unary";
+ input: typeof UpdateReleaseRequestSchema;
+ output: typeof ReleaseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.DeleteRelease
+ */
+ deleteRelease: {
+ methodKind: "unary";
+ input: typeof DeleteReleaseRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.UndeleteRelease
+ */
+ undeleteRelease: {
+ methodKind: "unary";
+ input: typeof UndeleteReleaseRequestSchema;
+ output: typeof ReleaseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReleaseService.CheckRelease
+ */
+ checkRelease: {
+ methodKind: "unary";
+ input: typeof CheckReleaseRequestSchema;
+ output: typeof CheckReleaseResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/release_service_pb.js b/frontend/src/types/proto-es/v1/release_service_pb.js
new file mode 100644
index 0000000000..55f46604e2
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/release_service_pb.js
@@ -0,0 +1,153 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/release_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_sql_service } from "./sql_service_pb";
+
+/**
+ * Describes the file v1/release_service.proto.
+ */
+export const file_v1_release_service = /*@__PURE__*/
+ fileDesc("Chh2MS9yZWxlYXNlX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIkAKEUdldFJlbGVhc2VSZXF1ZXN0EisKBG5hbWUYASABKAlCHeJBAQL6QRYKFGJ5dGViYXNlLmNvbS9SZWxlYXNlIoEBChNMaXN0UmVsZWFzZXNSZXF1ZXN0Ei0KBnBhcmVudBgBIAEoCUId4kEBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSFAoMc2hvd19kZWxldGVkGAQgASgIIlcKFExpc3RSZWxlYXNlc1Jlc3BvbnNlEiYKCHJlbGVhc2VzGAEgAygLMhQuYnl0ZWJhc2UudjEuUmVsZWFzZRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkicgoUQ3JlYXRlUmVsZWFzZVJlcXVlc3QSLQoGcGFyZW50GAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBIrCgdyZWxlYXNlGAIgASgLMhQuYnl0ZWJhc2UudjEuUmVsZWFzZUIE4kEBAiJ0ChRVcGRhdGVSZWxlYXNlUmVxdWVzdBIrCgdyZWxlYXNlGAEgASgLMhQuYnl0ZWJhc2UudjEuUmVsZWFzZUIE4kEBAhIvCgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2siQwoURGVsZXRlUmVsZWFzZVJlcXVl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FzZXMudW5kZWxldGWQ6jABgtPkkwIrIikvdjEve25hbWU9cHJvamVjdHMvKi9yZWxlYXNlcy8qfTp1bmRlbGV0ZRKfAQoMQ2hlY2tSZWxlYXNlEiAuYnl0ZWJhc2UudjEuQ2hlY2tSZWxlYXNlUmVxdWVzdBohLmJ5dGViYXNlLnYxLkNoZWNrUmVsZWFzZVJlc3BvbnNlIkqK6jARYmIucmVsZWFzZXMuY2hlY2uQ6jABgtPkkwIrOgEqIiYvdjEve3BhcmVudD1wcm9qZWN0cy8qfS9yZWxlYXNlczpjaGVja0I0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_sql_service]);
+
+/**
+ * Describes the message bytebase.v1.GetReleaseRequest.
+ * Use `create(GetReleaseRequestSchema)` to create a new message.
+ */
+export const GetReleaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListReleasesRequest.
+ * Use `create(ListReleasesRequestSchema)` to create a new message.
+ */
+export const ListReleasesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 1);
+
+/**
+ * Describes the message bytebase.v1.ListReleasesResponse.
+ * Use `create(ListReleasesResponseSchema)` to create a new message.
+ */
+export const ListReleasesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 2);
+
+/**
+ * Describes the message bytebase.v1.CreateReleaseRequest.
+ * Use `create(CreateReleaseRequestSchema)` to create a new message.
+ */
+export const CreateReleaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateReleaseRequest.
+ * Use `create(UpdateReleaseRequestSchema)` to create a new message.
+ */
+export const UpdateReleaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteReleaseRequest.
+ * Use `create(DeleteReleaseRequestSchema)` to create a new message.
+ */
+export const DeleteReleaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 5);
+
+/**
+ * Describes the message bytebase.v1.UndeleteReleaseRequest.
+ * Use `create(UndeleteReleaseRequestSchema)` to create a new message.
+ */
+export const UndeleteReleaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 6);
+
+/**
+ * Describes the message bytebase.v1.CheckReleaseRequest.
+ * Use `create(CheckReleaseRequestSchema)` to create a new message.
+ */
+export const CheckReleaseRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 7);
+
+/**
+ * Describes the message bytebase.v1.CheckReleaseResponse.
+ * Use `create(CheckReleaseResponseSchema)` to create a new message.
+ */
+export const CheckReleaseResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 8);
+
+/**
+ * Describes the message bytebase.v1.CheckReleaseResponse.CheckResult.
+ * Use `create(CheckReleaseResponse_CheckResultSchema)` to create a new message.
+ */
+export const CheckReleaseResponse_CheckResultSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 8, 0);
+
+/**
+ * Describes the enum bytebase.v1.CheckReleaseResponse.RiskLevel.
+ */
+export const CheckReleaseResponse_RiskLevelSchema = /*@__PURE__*/
+ enumDesc(file_v1_release_service, 8, 0);
+
+/**
+ * @generated from enum bytebase.v1.CheckReleaseResponse.RiskLevel
+ */
+export const CheckReleaseResponse_RiskLevel = /*@__PURE__*/
+ tsEnum(CheckReleaseResponse_RiskLevelSchema);
+
+/**
+ * Describes the message bytebase.v1.Release.
+ * Use `create(ReleaseSchema)` to create a new message.
+ */
+export const ReleaseSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 9);
+
+/**
+ * Describes the message bytebase.v1.Release.File.
+ * Use `create(Release_FileSchema)` to create a new message.
+ */
+export const Release_FileSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 9, 0);
+
+/**
+ * Describes the enum bytebase.v1.Release.File.ChangeType.
+ */
+export const Release_File_ChangeTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_release_service, 9, 0, 0);
+
+/**
+ * @generated from enum bytebase.v1.Release.File.ChangeType
+ */
+export const Release_File_ChangeType = /*@__PURE__*/
+ tsEnum(Release_File_ChangeTypeSchema);
+
+/**
+ * Describes the message bytebase.v1.Release.VCSSource.
+ * Use `create(Release_VCSSourceSchema)` to create a new message.
+ */
+export const Release_VCSSourceSchema = /*@__PURE__*/
+ messageDesc(file_v1_release_service, 9, 1);
+
+/**
+ * Describes the enum bytebase.v1.ReleaseFileType.
+ */
+export const ReleaseFileTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_release_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.ReleaseFileType
+ */
+export const ReleaseFileType = /*@__PURE__*/
+ tsEnum(ReleaseFileTypeSchema);
+
+/**
+ * @generated from service bytebase.v1.ReleaseService
+ */
+export const ReleaseService = /*@__PURE__*/
+ serviceDesc(file_v1_release_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/review_config_service_pb.d.ts b/frontend/src/types/proto-es/v1/review_config_service_pb.d.ts
new file mode 100644
index 0000000000..da92f02c66
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/review_config_service_pb.d.ts
@@ -0,0 +1,252 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/review_config_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+import type { SQLReviewRule } from "./org_policy_service_pb";
+
+/**
+ * Describes the file v1/review_config_service.proto.
+ */
+export declare const file_v1_review_config_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.ListReviewConfigsRequest
+ */
+export declare type ListReviewConfigsRequest = Message<"bytebase.v1.ListReviewConfigsRequest"> & {
+ /**
+ * Not used.
+ * The maximum number of sql review to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 sql review will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListReviewConfigs` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListReviewConfigsRequest.
+ * Use `create(ListReviewConfigsRequestSchema)` to create a new message.
+ */
+export declare const ListReviewConfigsRequestSchema: GenMessage<ListReviewConfigsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListReviewConfigsResponse
+ */
+export declare type ListReviewConfigsResponse = Message<"bytebase.v1.ListReviewConfigsResponse"> & {
+ /**
+ * The sql review from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.ReviewConfig review_configs = 1;
+ */
+ reviewConfigs: ReviewConfig[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListReviewConfigsResponse.
+ * Use `create(ListReviewConfigsResponseSchema)` to create a new message.
+ */
+export declare const ListReviewConfigsResponseSchema: GenMessage<ListReviewConfigsResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateReviewConfigRequest
+ */
+export declare type CreateReviewConfigRequest = Message<"bytebase.v1.CreateReviewConfigRequest"> & {
+ /**
+ * The sql review to create.
+ *
+ * @generated from field: bytebase.v1.ReviewConfig review_config = 1;
+ */
+ reviewConfig?: ReviewConfig;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateReviewConfigRequest.
+ * Use `create(CreateReviewConfigRequestSchema)` to create a new message.
+ */
+export declare const CreateReviewConfigRequestSchema: GenMessage<CreateReviewConfigRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateReviewConfigRequest
+ */
+export declare type UpdateReviewConfigRequest = Message<"bytebase.v1.UpdateReviewConfigRequest"> & {
+ /**
+ * The sql review to update.
+ *
+ * The name field is used to identify the sql review to update.
+ *
+ * @generated from field: bytebase.v1.ReviewConfig review_config = 1;
+ */
+ reviewConfig?: ReviewConfig;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * If set to true, and the config is not found, a new config will be created.
+ * In this situation, `update_mask` is ignored.
+ *
+ * @generated from field: bool allow_missing = 3;
+ */
+ allowMissing: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateReviewConfigRequest.
+ * Use `create(UpdateReviewConfigRequestSchema)` to create a new message.
+ */
+export declare const UpdateReviewConfigRequestSchema: GenMessage<UpdateReviewConfigRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetReviewConfigRequest
+ */
+export declare type GetReviewConfigRequest = Message<"bytebase.v1.GetReviewConfigRequest"> & {
+ /**
+ * The name of the sql review to retrieve.
+ * Format: reviewConfigs/{reviewConfig}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetReviewConfigRequest.
+ * Use `create(GetReviewConfigRequestSchema)` to create a new message.
+ */
+export declare const GetReviewConfigRequestSchema: GenMessage<GetReviewConfigRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteReviewConfigRequest
+ */
+export declare type DeleteReviewConfigRequest = Message<"bytebase.v1.DeleteReviewConfigRequest"> & {
+ /**
+ * The name of the sql review to delete.
+ * Format: reviewConfigs/{reviewConfig}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteReviewConfigRequest.
+ * Use `create(DeleteReviewConfigRequestSchema)` to create a new message.
+ */
+export declare const DeleteReviewConfigRequestSchema: GenMessage<DeleteReviewConfigRequest>;
+
+/**
+ * @generated from message bytebase.v1.ReviewConfig
+ */
+export declare type ReviewConfig = Message<"bytebase.v1.ReviewConfig"> & {
+ /**
+ * The name of the sql review to retrieve.
+ * Format: reviewConfigs/{reviewConfig}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: bool enabled = 3;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: repeated bytebase.v1.SQLReviewRule rules = 7;
+ */
+ rules: SQLReviewRule[];
+
+ /**
+ * resources using the config.
+ * Format: {resurce}/{resource id}, for example, environments/test.
+ *
+ * @generated from field: repeated string resources = 8;
+ */
+ resources: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.ReviewConfig.
+ * Use `create(ReviewConfigSchema)` to create a new message.
+ */
+export declare const ReviewConfigSchema: GenMessage<ReviewConfig>;
+
+/**
+ * @generated from service bytebase.v1.ReviewConfigService
+ */
+export declare const ReviewConfigService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.ReviewConfigService.CreateReviewConfig
+ */
+ createReviewConfig: {
+ methodKind: "unary";
+ input: typeof CreateReviewConfigRequestSchema;
+ output: typeof ReviewConfigSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReviewConfigService.ListReviewConfigs
+ */
+ listReviewConfigs: {
+ methodKind: "unary";
+ input: typeof ListReviewConfigsRequestSchema;
+ output: typeof ListReviewConfigsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReviewConfigService.GetReviewConfig
+ */
+ getReviewConfig: {
+ methodKind: "unary";
+ input: typeof GetReviewConfigRequestSchema;
+ output: typeof ReviewConfigSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReviewConfigService.UpdateReviewConfig
+ */
+ updateReviewConfig: {
+ methodKind: "unary";
+ input: typeof UpdateReviewConfigRequestSchema;
+ output: typeof ReviewConfigSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.ReviewConfigService.DeleteReviewConfig
+ */
+ deleteReviewConfig: {
+ methodKind: "unary";
+ input: typeof DeleteReviewConfigRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/review_config_service_pb.js b/frontend/src/types/proto-es/v1/review_config_service_pb.js
new file mode 100644
index 0000000000..559322db95
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/review_config_service_pb.js
@@ -0,0 +1,74 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/review_config_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_org_policy_service } from "./org_policy_service_pb";
+
+/**
+ * Describes the file v1/review_config_service.proto.
+ */
+export const file_v1_review_config_service = /*@__PURE__*/
+ fileDesc("Ch52MS9yZXZpZXdfY29uZmlnX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIkEKGExpc3RSZXZpZXdDb25maWdzUmVxdWVzdBIRCglwYWdlX3NpemUYASABKAUSEgoKcGFnZV90b2tlbhgCIAEoCSJnChlMaXN0UmV2aWV3Q29uZmlnc1Jlc3BvbnNlEjEKDnJldmlld19jb25maWdzGAEgAygLMhkuYnl0ZWJhc2UudjEuUmV2aWV3Q29uZmlnEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJTChlDcmVhdGVSZXZpZXdDb25maWdSZXF1ZXN0EjYKDXJldmlld19jb25maWcYASABKAsyGS5ieXRlYmFzZS52MS5SZ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ld0NvbmZpZ3NSZXNwb25zZSI52kEAiuowFWJiLnJldmlld0NvbmZpZ3MubGlzdJDqMAGC0+STAhMSES92MS9yZXZpZXdDb25maWdzEpgBCg9HZXRSZXZpZXdDb25maWcSIy5ieXRlYmFzZS52MS5HZXRSZXZpZXdDb25maWdSZXF1ZXN0GhkuYnl0ZWJhc2UudjEuUmV2aWV3Q29uZmlnIkXaQQRuYW1liuowFGJiLnJldmlld0NvbmZpZ3MuZ2V0kOowAYLT5JMCHBIaL3YxL3tuYW1lPXJldmlld0NvbmZpZ3MvKn0S0wEKElVwZGF0ZVJldmlld0NvbmZpZxImLmJ5dGViYXNlLnYxLlVwZGF0ZVJldmlld0NvbmZpZ1JlcXVlc3QaGS5ieXRlYmFzZS52MS5SZXZpZXdDb25maWcietpBGXJldmlld19jb25maWcsdXBkYXRlX21hc2uK6jAXYmIucmV2aWV3Q29uZmlncy51cGRhdGWQ6jABgtPkkwI5Og1yZXZpZXdfY29uZmlnMigvdjEve3Jldmlld19jb25maWcubmFtZT1yZXZpZXdDb25maWdzLyp9Ep4BChJEZWxldGVSZXZpZXdDb25maWcSJi5ieXRlYmFzZS52MS5EZWxldGVSZXZpZXdDb25maWdSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkjaQQRuYW1liuowF2JiLnJldmlld0NvbmZpZ3MuZGVsZXRlkOowAYLT5JMCHCoaL3YxL3tuYW1lPXJldmlld0NvbmZpZ3MvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation, file_v1_org_policy_service]);
+
+/**
+ * Describes the message bytebase.v1.ListReviewConfigsRequest.
+ * Use `create(ListReviewConfigsRequestSchema)` to create a new message.
+ */
+export const ListReviewConfigsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListReviewConfigsResponse.
+ * Use `create(ListReviewConfigsResponseSchema)` to create a new message.
+ */
+export const ListReviewConfigsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 1);
+
+/**
+ * Describes the message bytebase.v1.CreateReviewConfigRequest.
+ * Use `create(CreateReviewConfigRequestSchema)` to create a new message.
+ */
+export const CreateReviewConfigRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 2);
+
+/**
+ * Describes the message bytebase.v1.UpdateReviewConfigRequest.
+ * Use `create(UpdateReviewConfigRequestSchema)` to create a new message.
+ */
+export const UpdateReviewConfigRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 3);
+
+/**
+ * Describes the message bytebase.v1.GetReviewConfigRequest.
+ * Use `create(GetReviewConfigRequestSchema)` to create a new message.
+ */
+export const GetReviewConfigRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteReviewConfigRequest.
+ * Use `create(DeleteReviewConfigRequestSchema)` to create a new message.
+ */
+export const DeleteReviewConfigRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 5);
+
+/**
+ * Describes the message bytebase.v1.ReviewConfig.
+ * Use `create(ReviewConfigSchema)` to create a new message.
+ */
+export const ReviewConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_review_config_service, 6);
+
+/**
+ * @generated from service bytebase.v1.ReviewConfigService
+ */
+export const ReviewConfigService = /*@__PURE__*/
+ serviceDesc(file_v1_review_config_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/revision_service_pb.d.ts b/frontend/src/types/proto-es/v1/revision_service_pb.d.ts
new file mode 100644
index 0000000000..eea6e44c37
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/revision_service_pb.d.ts
@@ -0,0 +1,340 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/revision_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/revision_service.proto.
+ */
+export declare const file_v1_revision_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.ListRevisionsRequest
+ */
+export declare type ListRevisionsRequest = Message<"bytebase.v1.ListRevisionsRequest"> & {
+ /**
+ * The parent of the revisions.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of revisions to return. The service may return fewer
+ * than this value. If unspecified, at most 10 revisions will be returned. The
+ * maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListRevisions` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListRevisions` must
+ * match the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+
+ /**
+ * @generated from field: bool show_deleted = 4;
+ */
+ showDeleted: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRevisionsRequest.
+ * Use `create(ListRevisionsRequestSchema)` to create a new message.
+ */
+export declare const ListRevisionsRequestSchema: GenMessage<ListRevisionsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListRevisionsResponse
+ */
+export declare type ListRevisionsResponse = Message<"bytebase.v1.ListRevisionsResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Revision revisions = 1;
+ */
+ revisions: Revision[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRevisionsResponse.
+ * Use `create(ListRevisionsResponseSchema)` to create a new message.
+ */
+export declare const ListRevisionsResponseSchema: GenMessage<ListRevisionsResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateRevisionRequest
+ */
+export declare type CreateRevisionRequest = Message<"bytebase.v1.CreateRevisionRequest"> & {
+ /**
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The revision to create.
+ *
+ * @generated from field: bytebase.v1.Revision revision = 2;
+ */
+ revision?: Revision;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateRevisionRequest.
+ * Use `create(CreateRevisionRequestSchema)` to create a new message.
+ */
+export declare const CreateRevisionRequestSchema: GenMessage<CreateRevisionRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchCreateRevisionsRequest
+ */
+export declare type BatchCreateRevisionsRequest = Message<"bytebase.v1.BatchCreateRevisionsRequest"> & {
+ /**
+ * The parent resource shared by all revisions being created.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The request message specifying the revisions to create.
+ * A maximum of 100 revisions can be created in a batch.
+ *
+ * @generated from field: repeated bytebase.v1.CreateRevisionRequest requests = 2;
+ */
+ requests: CreateRevisionRequest[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCreateRevisionsRequest.
+ * Use `create(BatchCreateRevisionsRequestSchema)` to create a new message.
+ */
+export declare const BatchCreateRevisionsRequestSchema: GenMessage<BatchCreateRevisionsRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchCreateRevisionsResponse
+ */
+export declare type BatchCreateRevisionsResponse = Message<"bytebase.v1.BatchCreateRevisionsResponse"> & {
+ /**
+ * The created revisions.
+ *
+ * @generated from field: repeated bytebase.v1.Revision revisions = 1;
+ */
+ revisions: Revision[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCreateRevisionsResponse.
+ * Use `create(BatchCreateRevisionsResponseSchema)` to create a new message.
+ */
+export declare const BatchCreateRevisionsResponseSchema: GenMessage<BatchCreateRevisionsResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetRevisionRequest
+ */
+export declare type GetRevisionRequest = Message<"bytebase.v1.GetRevisionRequest"> & {
+ /**
+ * The name of the revision.
+ * Format: instances/{instance}/databases/{database}/revisions/{revision}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetRevisionRequest.
+ * Use `create(GetRevisionRequestSchema)` to create a new message.
+ */
+export declare const GetRevisionRequestSchema: GenMessage<GetRevisionRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteRevisionRequest
+ */
+export declare type DeleteRevisionRequest = Message<"bytebase.v1.DeleteRevisionRequest"> & {
+ /**
+ * The name of the revision to delete.
+ * Format: instances/{instance}/databases/{database}/revisions/{revision}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteRevisionRequest.
+ * Use `create(DeleteRevisionRequestSchema)` to create a new message.
+ */
+export declare const DeleteRevisionRequestSchema: GenMessage<DeleteRevisionRequest>;
+
+/**
+ * @generated from message bytebase.v1.Revision
+ */
+export declare type Revision = Message<"bytebase.v1.Revision"> & {
+ /**
+ * Format: instances/{instance}/databases/{database}/revisions/{revision}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Format: projects/{project}/releases/{release}
+ * Can be empty.
+ *
+ * @generated from field: string release = 2;
+ */
+ release: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 4;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * Format: users/[email protected]
+ * Can be empty.
+ *
+ * @generated from field: string deleter = 5;
+ */
+ deleter: string;
+
+ /**
+ * Can be empty.
+ *
+ * @generated from field: google.protobuf.Timestamp delete_time = 6;
+ */
+ deleteTime?: Timestamp;
+
+ /**
+ * Format: projects/{project}/releases/{release}/files/{id}
+ * Can be empty.
+ *
+ * @generated from field: string file = 7;
+ */
+ file: string;
+
+ /**
+ * @generated from field: string version = 8;
+ */
+ version: string;
+
+ /**
+ * The sheet that holds the content.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 9;
+ */
+ sheet: string;
+
+ /**
+ * The SHA256 hash value of the sheet.
+ *
+ * @generated from field: string sheet_sha256 = 10;
+ */
+ sheetSha256: string;
+
+ /**
+ * The statement is used for preview purpose.
+ *
+ * @generated from field: string statement = 11;
+ */
+ statement: string;
+
+ /**
+ * @generated from field: int64 statement_size = 12;
+ */
+ statementSize: bigint;
+
+ /**
+ * The issue associated with the revision.
+ * Can be empty.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string issue = 13;
+ */
+ issue: string;
+
+ /**
+ * The task run associated with the revision.
+ * Can be empty.
+ * Format:
+ * projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: string task_run = 14;
+ */
+ taskRun: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Revision.
+ * Use `create(RevisionSchema)` to create a new message.
+ */
+export declare const RevisionSchema: GenMessage<Revision>;
+
+/**
+ * @generated from service bytebase.v1.RevisionService
+ */
+export declare const RevisionService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.RevisionService.ListRevisions
+ */
+ listRevisions: {
+ methodKind: "unary";
+ input: typeof ListRevisionsRequestSchema;
+ output: typeof ListRevisionsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RevisionService.GetRevision
+ */
+ getRevision: {
+ methodKind: "unary";
+ input: typeof GetRevisionRequestSchema;
+ output: typeof RevisionSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RevisionService.CreateRevision
+ */
+ createRevision: {
+ methodKind: "unary";
+ input: typeof CreateRevisionRequestSchema;
+ output: typeof RevisionSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RevisionService.BatchCreateRevisions
+ */
+ batchCreateRevisions: {
+ methodKind: "unary";
+ input: typeof BatchCreateRevisionsRequestSchema;
+ output: typeof BatchCreateRevisionsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RevisionService.DeleteRevision
+ */
+ deleteRevision: {
+ methodKind: "unary";
+ input: typeof DeleteRevisionRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/revision_service_pb.js b/frontend/src/types/proto-es/v1/revision_service_pb.js
new file mode 100644
index 0000000000..cb852facab
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/revision_service_pb.js
@@ -0,0 +1,80 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/revision_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/revision_service.proto.
+ */
+export const file_v1_revision_service = /*@__PURE__*/
+ fileDesc("Chl2MS9yZXZpc2lvbl9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSKDAQoUTGlzdFJldmlzaW9uc1JlcXVlc3QSLgoGcGFyZW50GAEgASgJQh7iQQEC+kEXChVieXRlYmFzZS5jb20vRGF0YWJhc2USEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSFAoMc2hvd19kZWxldGVkGAQgASgIIloKFUxpc3RSZXZpc2lvbnNSZXNwb25zZRIoCglyZXZpc2lvbnMYASADKAsyFS5ieXRlYmFzZS52MS5SZXZpc2lvbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkidgoVQ3JlYXRlUmV2aXNpb25SZXF1ZXN0Ei4KBnBhc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YXRlUmV2aXNpb25zUmVzcG9uc2UiYIrqMBNiYi5yZXZpc2lvbnMuY3JlYXRlkOowAYLT5JMCPzoBKiI6L3YxL3twYXJlbnQ9aW5zdGFuY2VzLyovZGF0YWJhc2VzLyp9L3JldmlzaW9uczpiYXRjaENyZWF0ZRKmAQoORGVsZXRlUmV2aXNpb24SIi5ieXRlYmFzZS52MS5EZWxldGVSZXZpc2lvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiWNpBBG5hbWWK6jATYmIucmV2aXNpb25zLmRlbGV0ZZDqMAGC0+STAjAqLi92MS97bmFtZT1pbnN0YW5jZXMvKi9kYXRhYmFzZXMvKi9yZXZpc2lvbnMvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_timestamp, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.ListRevisionsRequest.
+ * Use `create(ListRevisionsRequestSchema)` to create a new message.
+ */
+export const ListRevisionsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListRevisionsResponse.
+ * Use `create(ListRevisionsResponseSchema)` to create a new message.
+ */
+export const ListRevisionsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 1);
+
+/**
+ * Describes the message bytebase.v1.CreateRevisionRequest.
+ * Use `create(CreateRevisionRequestSchema)` to create a new message.
+ */
+export const CreateRevisionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 2);
+
+/**
+ * Describes the message bytebase.v1.BatchCreateRevisionsRequest.
+ * Use `create(BatchCreateRevisionsRequestSchema)` to create a new message.
+ */
+export const BatchCreateRevisionsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 3);
+
+/**
+ * Describes the message bytebase.v1.BatchCreateRevisionsResponse.
+ * Use `create(BatchCreateRevisionsResponseSchema)` to create a new message.
+ */
+export const BatchCreateRevisionsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 4);
+
+/**
+ * Describes the message bytebase.v1.GetRevisionRequest.
+ * Use `create(GetRevisionRequestSchema)` to create a new message.
+ */
+export const GetRevisionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 5);
+
+/**
+ * Describes the message bytebase.v1.DeleteRevisionRequest.
+ * Use `create(DeleteRevisionRequestSchema)` to create a new message.
+ */
+export const DeleteRevisionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 6);
+
+/**
+ * Describes the message bytebase.v1.Revision.
+ * Use `create(RevisionSchema)` to create a new message.
+ */
+export const RevisionSchema = /*@__PURE__*/
+ messageDesc(file_v1_revision_service, 7);
+
+/**
+ * @generated from service bytebase.v1.RevisionService
+ */
+export const RevisionService = /*@__PURE__*/
+ serviceDesc(file_v1_revision_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/risk_service_pb.d.ts b/frontend/src/types/proto-es/v1/risk_service_pb.d.ts
new file mode 100644
index 0000000000..d6c263c4df
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/risk_service_pb.d.ts
@@ -0,0 +1,356 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/risk_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+import type { Expr } from "../google/type/expr_pb";
+
+/**
+ * Describes the file v1/risk_service.proto.
+ */
+export declare const file_v1_risk_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.ListRisksRequest
+ */
+export declare type ListRisksRequest = Message<"bytebase.v1.ListRisksRequest"> & {
+ /**
+ * Not used.
+ * The maximum number of risks to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 risks will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListRisks` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `LiskRisks` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRisksRequest.
+ * Use `create(ListRisksRequestSchema)` to create a new message.
+ */
+export declare const ListRisksRequestSchema: GenMessage<ListRisksRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListRisksResponse
+ */
+export declare type ListRisksResponse = Message<"bytebase.v1.ListRisksResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Risk risks = 1;
+ */
+ risks: Risk[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRisksResponse.
+ * Use `create(ListRisksResponseSchema)` to create a new message.
+ */
+export declare const ListRisksResponseSchema: GenMessage<ListRisksResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateRiskRequest
+ */
+export declare type CreateRiskRequest = Message<"bytebase.v1.CreateRiskRequest"> & {
+ /**
+ * The risk to create.
+ *
+ * @generated from field: bytebase.v1.Risk risk = 1;
+ */
+ risk?: Risk;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateRiskRequest.
+ * Use `create(CreateRiskRequestSchema)` to create a new message.
+ */
+export declare const CreateRiskRequestSchema: GenMessage<CreateRiskRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetRiskRequest
+ */
+export declare type GetRiskRequest = Message<"bytebase.v1.GetRiskRequest"> & {
+ /**
+ * The name of the risk to retrieve.
+ * Format: risks/{risk}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetRiskRequest.
+ * Use `create(GetRiskRequestSchema)` to create a new message.
+ */
+export declare const GetRiskRequestSchema: GenMessage<GetRiskRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateRiskRequest
+ */
+export declare type UpdateRiskRequest = Message<"bytebase.v1.UpdateRiskRequest"> & {
+ /**
+ * The risk to update.
+ *
+ * The risk's `name` field is used to identify the risk to update.
+ * Format: risks/{risk}
+ *
+ * @generated from field: bytebase.v1.Risk risk = 1;
+ */
+ risk?: Risk;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateRiskRequest.
+ * Use `create(UpdateRiskRequestSchema)` to create a new message.
+ */
+export declare const UpdateRiskRequestSchema: GenMessage<UpdateRiskRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteRiskRequest
+ */
+export declare type DeleteRiskRequest = Message<"bytebase.v1.DeleteRiskRequest"> & {
+ /**
+ * The name of the risk to delete.
+ * Format: risks/{risk}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteRiskRequest.
+ * Use `create(DeleteRiskRequestSchema)` to create a new message.
+ */
+export declare const DeleteRiskRequestSchema: GenMessage<DeleteRiskRequest>;
+
+/**
+ * @generated from message bytebase.v1.Risk
+ */
+export declare type Risk = Message<"bytebase.v1.Risk"> & {
+ /**
+ * Format: risks/{risk}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.Risk.Source source = 3;
+ */
+ source: Risk_Source;
+
+ /**
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * @generated from field: int32 level = 5;
+ */
+ level: number;
+
+ /**
+ * @generated from field: bool active = 7;
+ */
+ active: boolean;
+
+ /**
+ * The condition that is associated with the risk.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * All supported variables:
+ * affected_rows: affected row count in the DDL/DML, support "==", "!=", "<", "<=", ">", ">=" operations.
+ * table_rows: table row count number, support "==", "!=", "<", "<=", ">", ">=" operations.
+ * environment_id: the environment resource id, support "==", "!=", "in [xx]", "!(in [xx])" operations.
+ * project_id: the project resource id, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.
+ * db_engine: the database engine type, support "==", "!=", "in [xx]", "!(in [xx])" operations. Check the Engine enum for the values.
+ * sql_type: the SQL type, support "==", "!=", "in [xx]", "!(in [xx])" operations.
+ * when the risk source is DDL, check https://github.com/bytebase/bytebase/blob/main/frontend/src/plugins/cel/types/values.ts#L70 for supported values.
+ * when the risk source is DML, check https://github.com/bytebase/bytebase/blob/main/frontend/src/plugins/cel/types/values.ts#L71 for supported values.
+ * database_name: the database name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.
+ * schema_name: the schema name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.
+ * table_name: the table name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.
+ * sql_statement: the SQL statement, support "contains()", "matches()", "startsWith()", "endsWith()" operations.
+ * export_rows: export data count, support "==", "!=", "<", "<=", ">", ">=" operations.
+ * expiration_days: the role expiration days for the request, support "==", "!=", "<", "<=", ">", ">=" operations.
+ * role: the request role full name, support "==", "!=", "in [xx]", "!(in [xx])", "contains()", "matches()", "startsWith()", "endsWith()" operations.
+ *
+ * When the risk source is DDL/DML, support following variables:
+ * affected_rows
+ * table_rows
+ * environment_id
+ * project_id
+ * db_engine
+ * sql_type
+ * database_name
+ * schema_name
+ * table_name
+ * sql_statement
+ *
+ * When the risk source is CREATE_DATABASE, support following variables:
+ * environment_id
+ * project_id
+ * db_engine
+ * database_name
+ *
+ * When the risk source is DATA_EXPORT, support following variables:
+ * environment_id
+ * project_id
+ * db_engine
+ * database_name
+ * schema_name
+ * table_name
+ * export_rows
+ *
+ * When the risk source is REQUEST_QUERY, support following variables:
+ * environment_id
+ * project_id
+ * db_engine
+ * database_name
+ * schema_name
+ * table_name
+ * expiration_days
+ *
+ * When the risk source is REQUEST_EXPORT, support following variables:
+ * environment_id
+ * project_id
+ * db_engine
+ * database_name
+ * schema_name
+ * table_name
+ * expiration_days
+ * export_rows
+ *
+ * When the risk source is REQUEST_ROLE, support following variables:
+ * project_id
+ * expiration_days
+ * role
+ *
+ * @generated from field: google.type.Expr condition = 8;
+ */
+ condition?: Expr;
+};
+
+/**
+ * Describes the message bytebase.v1.Risk.
+ * Use `create(RiskSchema)` to create a new message.
+ */
+export declare const RiskSchema: GenMessage<Risk>;
+
+/**
+ * @generated from enum bytebase.v1.Risk.Source
+ */
+export enum Risk_Source {
+ /**
+ * @generated from enum value: SOURCE_UNSPECIFIED = 0;
+ */
+ SOURCE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DDL = 1;
+ */
+ DDL = 1,
+
+ /**
+ * @generated from enum value: DML = 2;
+ */
+ DML = 2,
+
+ /**
+ * @generated from enum value: CREATE_DATABASE = 3;
+ */
+ CREATE_DATABASE = 3,
+
+ /**
+ * @generated from enum value: DATA_EXPORT = 6;
+ */
+ DATA_EXPORT = 6,
+
+ /**
+ * @generated from enum value: REQUEST_ROLE = 7;
+ */
+ REQUEST_ROLE = 7,
+}
+
+/**
+ * Describes the enum bytebase.v1.Risk.Source.
+ */
+export declare const Risk_SourceSchema: GenEnum<Risk_Source>;
+
+/**
+ * @generated from service bytebase.v1.RiskService
+ */
+export declare const RiskService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.RiskService.ListRisks
+ */
+ listRisks: {
+ methodKind: "unary";
+ input: typeof ListRisksRequestSchema;
+ output: typeof ListRisksResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RiskService.CreateRisk
+ */
+ createRisk: {
+ methodKind: "unary";
+ input: typeof CreateRiskRequestSchema;
+ output: typeof RiskSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RiskService.GetRisk
+ */
+ getRisk: {
+ methodKind: "unary";
+ input: typeof GetRiskRequestSchema;
+ output: typeof RiskSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RiskService.UpdateRisk
+ */
+ updateRisk: {
+ methodKind: "unary";
+ input: typeof UpdateRiskRequestSchema;
+ output: typeof RiskSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RiskService.DeleteRisk
+ */
+ deleteRisk: {
+ methodKind: "unary";
+ input: typeof DeleteRiskRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/risk_service_pb.js b/frontend/src/types/proto-es/v1/risk_service_pb.js
new file mode 100644
index 0000000000..74c4d8f71a
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/risk_service_pb.js
@@ -0,0 +1,86 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/risk_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_google_type_expr } from "../google/type/expr_pb";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/risk_service.proto.
+ */
+export const file_v1_risk_service = /*@__PURE__*/
+ fileDesc("ChV2MS9yaXNrX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKEExpc3RSaXNrc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4Y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LT5JMCCxIJL3YxL3Jpc2tzEnoKCkNyZWF0ZVJpc2sSHi5ieXRlYmFzZS52MS5DcmVhdGVSaXNrUmVxdWVzdBoRLmJ5dGViYXNlLnYxLlJpc2siOdpBBHJpc2uK6jAPYmIucmlza3MuY3JlYXRlkOowAZjqMAGC0+STAhE6BHJpc2siCS92MS9yaXNrcxJxCgdHZXRSaXNrEhsuYnl0ZWJhc2UudjEuR2V0Umlza1JlcXVlc3QaES5ieXRlYmFzZS52MS5SaXNrIjbaQQRuYW1liuowDWJiLnJpc2tzLmxpc3SQ6jABgtPkkwIUEhIvdjEve25hbWU9cmlza3MvKn0SlAEKClVwZGF0ZVJpc2sSHi5ieXRlYmFzZS52MS5VcGRhdGVSaXNrUmVxdWVzdBoRLmJ5dGViYXNlLnYxLlJpc2siU9pBEHJpc2ssdXBkYXRlX21hc2uK6jAPYmIucmlza3MudXBkYXRlkOowAZjqMAGC0+STAh86BHJpc2syFy92MS97cmlzay5uYW1lPXJpc2tzLyp9EnsKCkRlbGV0ZVJpc2sSHi5ieXRlYmFzZS52MS5EZWxldGVSaXNrUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI1iuowD2JiLnJpc2tzLmRlbGV0ZZDqMAGY6jABgtPkkwIUKhIvdjEve25hbWU9cmlza3MvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_type_expr, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.ListRisksRequest.
+ * Use `create(ListRisksRequestSchema)` to create a new message.
+ */
+export const ListRisksRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListRisksResponse.
+ * Use `create(ListRisksResponseSchema)` to create a new message.
+ */
+export const ListRisksResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 1);
+
+/**
+ * Describes the message bytebase.v1.CreateRiskRequest.
+ * Use `create(CreateRiskRequestSchema)` to create a new message.
+ */
+export const CreateRiskRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 2);
+
+/**
+ * Describes the message bytebase.v1.GetRiskRequest.
+ * Use `create(GetRiskRequestSchema)` to create a new message.
+ */
+export const GetRiskRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateRiskRequest.
+ * Use `create(UpdateRiskRequestSchema)` to create a new message.
+ */
+export const UpdateRiskRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteRiskRequest.
+ * Use `create(DeleteRiskRequestSchema)` to create a new message.
+ */
+export const DeleteRiskRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 5);
+
+/**
+ * Describes the message bytebase.v1.Risk.
+ * Use `create(RiskSchema)` to create a new message.
+ */
+export const RiskSchema = /*@__PURE__*/
+ messageDesc(file_v1_risk_service, 6);
+
+/**
+ * Describes the enum bytebase.v1.Risk.Source.
+ */
+export const Risk_SourceSchema = /*@__PURE__*/
+ enumDesc(file_v1_risk_service, 6, 0);
+
+/**
+ * @generated from enum bytebase.v1.Risk.Source
+ */
+export const Risk_Source = /*@__PURE__*/
+ tsEnum(Risk_SourceSchema);
+
+/**
+ * @generated from service bytebase.v1.RiskService
+ */
+export const RiskService = /*@__PURE__*/
+ serviceDesc(file_v1_risk_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/role_service_pb.d.ts b/frontend/src/types/proto-es/v1/role_service_pb.d.ts
new file mode 100644
index 0000000000..686d2084de
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/role_service_pb.d.ts
@@ -0,0 +1,272 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/role_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/role_service.proto.
+ */
+export declare const file_v1_role_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.ListRolesRequest
+ */
+export declare type ListRolesRequest = Message<"bytebase.v1.ListRolesRequest"> & {
+ /**
+ * Not used.
+ * The maximum number of roles to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 reviews will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListRoles` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListRoles` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRolesRequest.
+ * Use `create(ListRolesRequestSchema)` to create a new message.
+ */
+export declare const ListRolesRequestSchema: GenMessage<ListRolesRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListRolesResponse
+ */
+export declare type ListRolesResponse = Message<"bytebase.v1.ListRolesResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Role roles = 1;
+ */
+ roles: Role[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRolesResponse.
+ * Use `create(ListRolesResponseSchema)` to create a new message.
+ */
+export declare const ListRolesResponseSchema: GenMessage<ListRolesResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateRoleRequest
+ */
+export declare type CreateRoleRequest = Message<"bytebase.v1.CreateRoleRequest"> & {
+ /**
+ * @generated from field: bytebase.v1.Role role = 1;
+ */
+ role?: Role;
+
+ /**
+ * The ID to use for the role, which will become the final component
+ * of the role's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][A-Z][0-9]/.
+ *
+ * @generated from field: string role_id = 2;
+ */
+ roleId: string;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateRoleRequest.
+ * Use `create(CreateRoleRequestSchema)` to create a new message.
+ */
+export declare const CreateRoleRequestSchema: GenMessage<CreateRoleRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetRoleRequest
+ */
+export declare type GetRoleRequest = Message<"bytebase.v1.GetRoleRequest"> & {
+ /**
+ * The name of the role to retrieve.
+ * Format: roles/{role}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetRoleRequest.
+ * Use `create(GetRoleRequestSchema)` to create a new message.
+ */
+export declare const GetRoleRequestSchema: GenMessage<GetRoleRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateRoleRequest
+ */
+export declare type UpdateRoleRequest = Message<"bytebase.v1.UpdateRoleRequest"> & {
+ /**
+ * @generated from field: bytebase.v1.Role role = 1;
+ */
+ role?: Role;
+
+ /**
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * If set to true, and the role is not found, a new role will be created.
+ *
+ * @generated from field: bool allow_missing = 3;
+ */
+ allowMissing: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateRoleRequest.
+ * Use `create(UpdateRoleRequestSchema)` to create a new message.
+ */
+export declare const UpdateRoleRequestSchema: GenMessage<UpdateRoleRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteRoleRequest
+ */
+export declare type DeleteRoleRequest = Message<"bytebase.v1.DeleteRoleRequest"> & {
+ /**
+ * Format: roles/{role}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteRoleRequest.
+ * Use `create(DeleteRoleRequestSchema)` to create a new message.
+ */
+export declare const DeleteRoleRequestSchema: GenMessage<DeleteRoleRequest>;
+
+/**
+ * @generated from message bytebase.v1.Role
+ */
+export declare type Role = Message<"bytebase.v1.Role"> & {
+ /**
+ * Format: roles/{role}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 3;
+ */
+ description: string;
+
+ /**
+ * @generated from field: repeated string permissions = 4;
+ */
+ permissions: string[];
+
+ /**
+ * @generated from field: bytebase.v1.Role.Type type = 5;
+ */
+ type: Role_Type;
+};
+
+/**
+ * Describes the message bytebase.v1.Role.
+ * Use `create(RoleSchema)` to create a new message.
+ */
+export declare const RoleSchema: GenMessage<Role>;
+
+/**
+ * @generated from enum bytebase.v1.Role.Type
+ */
+export enum Role_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: BUILT_IN = 1;
+ */
+ BUILT_IN = 1,
+
+ /**
+ * @generated from enum value: CUSTOM = 2;
+ */
+ CUSTOM = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.Role.Type.
+ */
+export declare const Role_TypeSchema: GenEnum<Role_Type>;
+
+/**
+ * @generated from service bytebase.v1.RoleService
+ */
+export declare const RoleService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.RoleService.ListRoles
+ */
+ listRoles: {
+ methodKind: "unary";
+ input: typeof ListRolesRequestSchema;
+ output: typeof ListRolesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RoleService.GetRole
+ */
+ getRole: {
+ methodKind: "unary";
+ input: typeof GetRoleRequestSchema;
+ output: typeof RoleSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RoleService.CreateRole
+ */
+ createRole: {
+ methodKind: "unary";
+ input: typeof CreateRoleRequestSchema;
+ output: typeof RoleSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RoleService.UpdateRole
+ */
+ updateRole: {
+ methodKind: "unary";
+ input: typeof UpdateRoleRequestSchema;
+ output: typeof RoleSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RoleService.DeleteRole
+ */
+ deleteRole: {
+ methodKind: "unary";
+ input: typeof DeleteRoleRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/role_service_pb.js b/frontend/src/types/proto-es/v1/role_service_pb.js
new file mode 100644
index 0000000000..c3bba503de
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/role_service_pb.js
@@ -0,0 +1,85 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/role_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/role_service.proto.
+ */
+export const file_v1_role_service = /*@__PURE__*/
+ fileDesc("ChV2MS9yb2xlX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKEExpc3RSb2xlc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkiTgoRTGlzdFJvbGVzUmVzcG9uc2USIAoFcm9sZXMYASADKAsyES5ieXRlYmFzZS52MS5Sb2xlEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJRChFDcmVhdGVSb2xlUmVxdWVzdBIlCgRyb2xlGAEgASgLMhEuYnl0ZWJhc2UudjEuUm9sZUIE4kEBAhIVCgdyb2xlX2l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D2JiLnJvbGVzLmNyZWF0ZZDqMAGY6jABgtPkkwIROgRyb2xlIgkvdjEvcm9sZXMSlAEKClVwZGF0ZVJvbGUSHi5ieXRlYmFzZS52MS5VcGRhdGVSb2xlUmVxdWVzdBoRLmJ5dGViYXNlLnYxLlJvbGUiU9pBEHJvbGUsdXBkYXRlX21hc2uK6jAPYmIucm9sZXMudXBkYXRlkOowAZjqMAGC0+STAh86BHJvbGUyFy92MS97cm9sZS5uYW1lPXJvbGVzLyp9EoIBCgpEZWxldGVSb2xlEh4uYnl0ZWJhc2UudjEuRGVsZXRlUm9sZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiPNpBBG5hbWWK6jAPYmIucm9sZXMuZGVsZXRlkOowAZjqMAGC0+STAhQqEi92MS97bmFtZT1yb2xlcy8qfUI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.ListRolesRequest.
+ * Use `create(ListRolesRequestSchema)` to create a new message.
+ */
+export const ListRolesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListRolesResponse.
+ * Use `create(ListRolesResponseSchema)` to create a new message.
+ */
+export const ListRolesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 1);
+
+/**
+ * Describes the message bytebase.v1.CreateRoleRequest.
+ * Use `create(CreateRoleRequestSchema)` to create a new message.
+ */
+export const CreateRoleRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 2);
+
+/**
+ * Describes the message bytebase.v1.GetRoleRequest.
+ * Use `create(GetRoleRequestSchema)` to create a new message.
+ */
+export const GetRoleRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateRoleRequest.
+ * Use `create(UpdateRoleRequestSchema)` to create a new message.
+ */
+export const UpdateRoleRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteRoleRequest.
+ * Use `create(DeleteRoleRequestSchema)` to create a new message.
+ */
+export const DeleteRoleRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 5);
+
+/**
+ * Describes the message bytebase.v1.Role.
+ * Use `create(RoleSchema)` to create a new message.
+ */
+export const RoleSchema = /*@__PURE__*/
+ messageDesc(file_v1_role_service, 6);
+
+/**
+ * Describes the enum bytebase.v1.Role.Type.
+ */
+export const Role_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_role_service, 6, 0);
+
+/**
+ * @generated from enum bytebase.v1.Role.Type
+ */
+export const Role_Type = /*@__PURE__*/
+ tsEnum(Role_TypeSchema);
+
+/**
+ * @generated from service bytebase.v1.RoleService
+ */
+export const RoleService = /*@__PURE__*/
+ serviceDesc(file_v1_role_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts b/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts
new file mode 100644
index 0000000000..c3d5322555
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/rollout_service_pb.d.ts
@@ -0,0 +1,1884 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/rollout_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Timestamp } from "@bufbuild/protobuf/wkt";
+import type { Plan } from "./plan_service_pb";
+import type { ExportFormat, Position } from "./common_pb";
+
+/**
+ * Describes the file v1/rollout_service.proto.
+ */
+export declare const file_v1_rollout_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.BatchRunTasksRequest
+ */
+export declare type BatchRunTasksRequest = Message<"bytebase.v1.BatchRunTasksRequest"> & {
+ /**
+ * The name of the parent of the tasks.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The tasks to run.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
+ *
+ * @generated from field: repeated string tasks = 2;
+ */
+ tasks: string[];
+
+ /**
+ * @generated from field: string reason = 3;
+ */
+ reason: string;
+
+ /**
+ * The task run should run after run_time.
+ *
+ * @generated from field: optional google.protobuf.Timestamp run_time = 4;
+ */
+ runTime?: Timestamp;
+};
+
+/**
+ * Describes the message bytebase.v1.BatchRunTasksRequest.
+ * Use `create(BatchRunTasksRequestSchema)` to create a new message.
+ */
+export declare const BatchRunTasksRequestSchema: GenMessage<BatchRunTasksRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchRunTasksResponse
+ */
+export declare type BatchRunTasksResponse = Message<"bytebase.v1.BatchRunTasksResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchRunTasksResponse.
+ * Use `create(BatchRunTasksResponseSchema)` to create a new message.
+ */
+export declare const BatchRunTasksResponseSchema: GenMessage<BatchRunTasksResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchSkipTasksRequest
+ */
+export declare type BatchSkipTasksRequest = Message<"bytebase.v1.BatchSkipTasksRequest"> & {
+ /**
+ * The name of the parent of the tasks.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The tasks to skip.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
+ *
+ * @generated from field: repeated string tasks = 2;
+ */
+ tasks: string[];
+
+ /**
+ * @generated from field: string reason = 3;
+ */
+ reason: string;
+};
+
+/**
+ * Describes the message bytebase.v1.BatchSkipTasksRequest.
+ * Use `create(BatchSkipTasksRequestSchema)` to create a new message.
+ */
+export declare const BatchSkipTasksRequestSchema: GenMessage<BatchSkipTasksRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchSkipTasksResponse
+ */
+export declare type BatchSkipTasksResponse = Message<"bytebase.v1.BatchSkipTasksResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchSkipTasksResponse.
+ * Use `create(BatchSkipTasksResponseSchema)` to create a new message.
+ */
+export declare const BatchSkipTasksResponseSchema: GenMessage<BatchSkipTasksResponse>;
+
+/**
+ * @generated from message bytebase.v1.BatchCancelTaskRunsRequest
+ */
+export declare type BatchCancelTaskRunsRequest = Message<"bytebase.v1.BatchCancelTaskRunsRequest"> & {
+ /**
+ * The name of the parent of the taskRuns.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
+ * Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The taskRuns to cancel.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: repeated string task_runs = 2;
+ */
+ taskRuns: string[];
+
+ /**
+ * @generated from field: string reason = 3;
+ */
+ reason: string;
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCancelTaskRunsRequest.
+ * Use `create(BatchCancelTaskRunsRequestSchema)` to create a new message.
+ */
+export declare const BatchCancelTaskRunsRequestSchema: GenMessage<BatchCancelTaskRunsRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchCancelTaskRunsResponse
+ */
+export declare type BatchCancelTaskRunsResponse = Message<"bytebase.v1.BatchCancelTaskRunsResponse"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCancelTaskRunsResponse.
+ * Use `create(BatchCancelTaskRunsResponseSchema)` to create a new message.
+ */
+export declare const BatchCancelTaskRunsResponseSchema: GenMessage<BatchCancelTaskRunsResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetRolloutRequest
+ */
+export declare type GetRolloutRequest = Message<"bytebase.v1.GetRolloutRequest"> & {
+ /**
+ * The name of the rollout to retrieve.
+ * Format: projects/{project}/rollouts/{rollout}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetRolloutRequest.
+ * Use `create(GetRolloutRequestSchema)` to create a new message.
+ */
+export declare const GetRolloutRequestSchema: GenMessage<GetRolloutRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListRolloutsRequest
+ */
+export declare type ListRolloutsRequest = Message<"bytebase.v1.ListRolloutsRequest"> & {
+ /**
+ * The parent, which owns this collection of rollouts.
+ * Format: projects/{project}
+ * Use "projects/-" to list all rollouts from all projects.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The maximum number of rollouts to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 rollouts will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListRollouts` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListRollouts` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRolloutsRequest.
+ * Use `create(ListRolloutsRequestSchema)` to create a new message.
+ */
+export declare const ListRolloutsRequestSchema: GenMessage<ListRolloutsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListRolloutsResponse
+ */
+export declare type ListRolloutsResponse = Message<"bytebase.v1.ListRolloutsResponse"> & {
+ /**
+ * The rollouts from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Rollout rollouts = 1;
+ */
+ rollouts: Rollout[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListRolloutsResponse.
+ * Use `create(ListRolloutsResponseSchema)` to create a new message.
+ */
+export declare const ListRolloutsResponseSchema: GenMessage<ListRolloutsResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateRolloutRequest
+ */
+export declare type CreateRolloutRequest = Message<"bytebase.v1.CreateRolloutRequest"> & {
+ /**
+ * The parent project where this rollout will be created.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The rollout to create.
+ *
+ * @generated from field: bytebase.v1.Rollout rollout = 2;
+ */
+ rollout?: Rollout;
+
+ /**
+ * Create the rollout and the stages up to the target stage.
+ * Format: environments/{environment}
+ * If unspecified, all stages are created.
+ * If set to "", no stages are created.
+ *
+ * @generated from field: optional string target = 3;
+ */
+ target?: string;
+
+ /**
+ * If set, validate the request and preview the rollout, but
+ * do not actually create it.
+ *
+ * @generated from field: bool validate_only = 4;
+ */
+ validateOnly: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateRolloutRequest.
+ * Use `create(CreateRolloutRequestSchema)` to create a new message.
+ */
+export declare const CreateRolloutRequestSchema: GenMessage<CreateRolloutRequest>;
+
+/**
+ * @generated from message bytebase.v1.PreviewRolloutRequest
+ */
+export declare type PreviewRolloutRequest = Message<"bytebase.v1.PreviewRolloutRequest"> & {
+ /**
+ * The name of the project.
+ * Format: projects/{project}
+ *
+ * @generated from field: string project = 1;
+ */
+ project: string;
+
+ /**
+ * The plan used to preview rollout.
+ *
+ * @generated from field: bytebase.v1.Plan plan = 2;
+ */
+ plan?: Plan;
+};
+
+/**
+ * Describes the message bytebase.v1.PreviewRolloutRequest.
+ * Use `create(PreviewRolloutRequestSchema)` to create a new message.
+ */
+export declare const PreviewRolloutRequestSchema: GenMessage<PreviewRolloutRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListTaskRunsRequest
+ */
+export declare type ListTaskRunsRequest = Message<"bytebase.v1.ListTaskRunsRequest"> & {
+ /**
+ * The parent, which owns this collection of plans.
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
+ * Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * Not used.
+ * The maximum number of taskRuns to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 taskRuns will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListTaskRuns` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListTaskRuns` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListTaskRunsRequest.
+ * Use `create(ListTaskRunsRequestSchema)` to create a new message.
+ */
+export declare const ListTaskRunsRequestSchema: GenMessage<ListTaskRunsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListTaskRunsResponse
+ */
+export declare type ListTaskRunsResponse = Message<"bytebase.v1.ListTaskRunsResponse"> & {
+ /**
+ * The taskRuns from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.TaskRun task_runs = 1;
+ */
+ taskRuns: TaskRun[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListTaskRunsResponse.
+ * Use `create(ListTaskRunsResponseSchema)` to create a new message.
+ */
+export declare const ListTaskRunsResponseSchema: GenMessage<ListTaskRunsResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetTaskRunRequest
+ */
+export declare type GetTaskRunRequest = Message<"bytebase.v1.GetTaskRunRequest"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetTaskRunRequest.
+ * Use `create(GetTaskRunRequestSchema)` to create a new message.
+ */
+export declare const GetTaskRunRequestSchema: GenMessage<GetTaskRunRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetTaskRunLogRequest
+ */
+export declare type GetTaskRunLogRequest = Message<"bytebase.v1.GetTaskRunLogRequest"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ * TODO(d): check the resource_reference.
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetTaskRunLogRequest.
+ * Use `create(GetTaskRunLogRequestSchema)` to create a new message.
+ */
+export declare const GetTaskRunLogRequestSchema: GenMessage<GetTaskRunLogRequest>;
+
+/**
+ * @generated from message bytebase.v1.Rollout
+ */
+export declare type Rollout = Message<"bytebase.v1.Rollout"> & {
+ /**
+ * The resource name of the rollout.
+ * Format: projects/{project}/rollouts/{rollout}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The plan that this rollout is based on.
+ * Format: projects/{project}/plans/{plan}
+ *
+ * @generated from field: string plan = 3;
+ */
+ plan: string;
+
+ /**
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * stages and thus tasks of the rollout.
+ *
+ * @generated from field: repeated bytebase.v1.Stage stages = 5;
+ */
+ stages: Stage[];
+
+ /**
+ * Format: users/[email protected]
+ *
+ * @generated from field: string creator = 6;
+ */
+ creator: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 7;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * The issue associated with the rollout. Could be empty.
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string issue = 9;
+ */
+ issue: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Rollout.
+ * Use `create(RolloutSchema)` to create a new message.
+ */
+export declare const RolloutSchema: GenMessage<Rollout>;
+
+/**
+ * @generated from message bytebase.v1.Stage
+ */
+export declare type Stage = Message<"bytebase.v1.Stage"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * id is the environment id of the stage.
+ * e.g. "prod".
+ *
+ * @generated from field: string id = 3;
+ */
+ id: string;
+
+ /**
+ * environment is the environment of the stage.
+ * Format: environments/{environment}.
+ *
+ * @generated from field: string environment = 4;
+ */
+ environment: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.Task tasks = 5;
+ */
+ tasks: Task[];
+};
+
+/**
+ * Describes the message bytebase.v1.Stage.
+ * Use `create(StageSchema)` to create a new message.
+ */
+export declare const StageSchema: GenMessage<Stage>;
+
+/**
+ * @generated from message bytebase.v1.Task
+ */
+export declare type Task = Message<"bytebase.v1.Task"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * A UUID4 string that uniquely identifies the Spec.
+ * Could be empty if the rollout of the task does not have an associating plan.
+ *
+ * @generated from field: string spec_id = 4;
+ */
+ specId: string;
+
+ /**
+ * Status is the status of the task.
+ *
+ * @generated from field: bytebase.v1.Task.Status status = 5;
+ */
+ status: Task_Status;
+
+ /**
+ * @generated from field: string skipped_reason = 15;
+ */
+ skippedReason: string;
+
+ /**
+ * @generated from field: bytebase.v1.Task.Type type = 6;
+ */
+ type: Task_Type;
+
+ /**
+ * Format: instances/{instance} if the task is DatabaseCreate.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string target = 8;
+ */
+ target: string;
+
+ /**
+ * @generated from oneof bytebase.v1.Task.payload
+ */
+ payload: {
+ /**
+ * @generated from field: bytebase.v1.Task.DatabaseCreate database_create = 9;
+ */
+ value: Task_DatabaseCreate;
+ case: "databaseCreate";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Task.DatabaseSchemaUpdate database_schema_update = 11;
+ */
+ value: Task_DatabaseSchemaUpdate;
+ case: "databaseSchemaUpdate";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Task.DatabaseDataUpdate database_data_update = 12;
+ */
+ value: Task_DatabaseDataUpdate;
+ case: "databaseDataUpdate";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Task.DatabaseDataExport database_data_export = 16;
+ */
+ value: Task_DatabaseDataExport;
+ case: "databaseDataExport";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.Task.
+ * Use `create(TaskSchema)` to create a new message.
+ */
+export declare const TaskSchema: GenMessage<Task>;
+
+/**
+ * @generated from message bytebase.v1.Task.DatabaseCreate
+ */
+export declare type Task_DatabaseCreate = Message<"bytebase.v1.Task.DatabaseCreate"> & {
+ /**
+ * The project owning the database.
+ * Format: projects/{project}
+ *
+ * @generated from field: string project = 1;
+ */
+ project: string;
+
+ /**
+ * database name
+ *
+ * @generated from field: string database = 2;
+ */
+ database: string;
+
+ /**
+ * table name
+ *
+ * @generated from field: string table = 3;
+ */
+ table: string;
+
+ /**
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 4;
+ */
+ sheet: string;
+
+ /**
+ * @generated from field: string character_set = 5;
+ */
+ characterSet: string;
+
+ /**
+ * @generated from field: string collation = 6;
+ */
+ collation: string;
+
+ /**
+ * @generated from field: string environment = 7;
+ */
+ environment: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseCreate.
+ * Use `create(Task_DatabaseCreateSchema)` to create a new message.
+ */
+export declare const Task_DatabaseCreateSchema: GenMessage<Task_DatabaseCreate>;
+
+/**
+ * @generated from message bytebase.v1.Task.DatabaseSchemaUpdate
+ */
+export declare type Task_DatabaseSchemaUpdate = Message<"bytebase.v1.Task.DatabaseSchemaUpdate"> & {
+ /**
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 1;
+ */
+ sheet: string;
+
+ /**
+ * @generated from field: string schema_version = 2;
+ */
+ schemaVersion: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseSchemaUpdate.
+ * Use `create(Task_DatabaseSchemaUpdateSchema)` to create a new message.
+ */
+export declare const Task_DatabaseSchemaUpdateSchema: GenMessage<Task_DatabaseSchemaUpdate>;
+
+/**
+ * @generated from message bytebase.v1.Task.DatabaseDataUpdate
+ */
+export declare type Task_DatabaseDataUpdate = Message<"bytebase.v1.Task.DatabaseDataUpdate"> & {
+ /**
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 1;
+ */
+ sheet: string;
+
+ /**
+ * @generated from field: string schema_version = 2;
+ */
+ schemaVersion: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseDataUpdate.
+ * Use `create(Task_DatabaseDataUpdateSchema)` to create a new message.
+ */
+export declare const Task_DatabaseDataUpdateSchema: GenMessage<Task_DatabaseDataUpdate>;
+
+/**
+ * @generated from message bytebase.v1.Task.DatabaseDataExport
+ */
+export declare type Task_DatabaseDataExport = Message<"bytebase.v1.Task.DatabaseDataExport"> & {
+ /**
+ * The resource name of the target.
+ * Format: instances/{instance-id}/databases/{database-name}
+ *
+ * @generated from field: string target = 1;
+ */
+ target: string;
+
+ /**
+ * The resource name of the sheet.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 2;
+ */
+ sheet: string;
+
+ /**
+ * The format of the exported file.
+ *
+ * @generated from field: bytebase.v1.ExportFormat format = 3;
+ */
+ format: ExportFormat;
+
+ /**
+ * The zip password provide by users.
+ * Leave it empty if no needs to encrypt the zip file.
+ *
+ * @generated from field: optional string password = 4;
+ */
+ password?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseDataExport.
+ * Use `create(Task_DatabaseDataExportSchema)` to create a new message.
+ */
+export declare const Task_DatabaseDataExportSchema: GenMessage<Task_DatabaseDataExport>;
+
+/**
+ * @generated from enum bytebase.v1.Task.Status
+ */
+export enum Task_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: NOT_STARTED = 1;
+ */
+ NOT_STARTED = 1,
+
+ /**
+ * @generated from enum value: PENDING = 2;
+ */
+ PENDING = 2,
+
+ /**
+ * @generated from enum value: RUNNING = 3;
+ */
+ RUNNING = 3,
+
+ /**
+ * @generated from enum value: DONE = 4;
+ */
+ DONE = 4,
+
+ /**
+ * @generated from enum value: FAILED = 5;
+ */
+ FAILED = 5,
+
+ /**
+ * @generated from enum value: CANCELED = 6;
+ */
+ CANCELED = 6,
+
+ /**
+ * @generated from enum value: SKIPPED = 7;
+ */
+ SKIPPED = 7,
+}
+
+/**
+ * Describes the enum bytebase.v1.Task.Status.
+ */
+export declare const Task_StatusSchema: GenEnum<Task_Status>;
+
+/**
+ * @generated from enum bytebase.v1.Task.Type
+ */
+export enum Task_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: GENERAL = 1;
+ */
+ GENERAL = 1,
+
+ /**
+ * use payload DatabaseCreate
+ *
+ * @generated from enum value: DATABASE_CREATE = 2;
+ */
+ DATABASE_CREATE = 2,
+
+ /**
+ * use payload DatabaseSchemaUpdate
+ *
+ * @generated from enum value: DATABASE_SCHEMA_UPDATE = 4;
+ */
+ DATABASE_SCHEMA_UPDATE = 4,
+
+ /**
+ * use payload DatabaseSchemaUpdate
+ *
+ * @generated from enum value: DATABASE_SCHEMA_UPDATE_SDL = 5;
+ */
+ DATABASE_SCHEMA_UPDATE_SDL = 5,
+
+ /**
+ * use payload DatabaseSchemaUpdate
+ *
+ * @generated from enum value: DATABASE_SCHEMA_UPDATE_GHOST = 9;
+ */
+ DATABASE_SCHEMA_UPDATE_GHOST = 9,
+
+ /**
+ * use payload DatabaseDataUpdate
+ *
+ * @generated from enum value: DATABASE_DATA_UPDATE = 8;
+ */
+ DATABASE_DATA_UPDATE = 8,
+
+ /**
+ * use payload DatabaseDataExport
+ *
+ * @generated from enum value: DATABASE_EXPORT = 12;
+ */
+ DATABASE_EXPORT = 12,
+}
+
+/**
+ * Describes the enum bytebase.v1.Task.Type.
+ */
+export declare const Task_TypeSchema: GenEnum<Task_Type>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun
+ */
+export declare type TaskRun = Message<"bytebase.v1.TaskRun"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * Format: user/[email protected]
+ *
+ * @generated from field: string creator = 3;
+ */
+ creator: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 5;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp update_time = 6;
+ */
+ updateTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRun.Status status = 8;
+ */
+ status: TaskRun_Status;
+
+ /**
+ * Below are the results of a task run.
+ *
+ * @generated from field: string detail = 9;
+ */
+ detail: string;
+
+ /**
+ * The resource name of the changelog.
+ * Format: instances/{instance}/databases/{database}/changelogs/{changelog}
+ *
+ * @generated from field: string changelog = 20;
+ */
+ changelog: string;
+
+ /**
+ * @generated from field: string schema_version = 11;
+ */
+ schemaVersion: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp start_time = 14;
+ */
+ startTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRun.ExportArchiveStatus export_archive_status = 16;
+ */
+ exportArchiveStatus: TaskRun_ExportArchiveStatus;
+
+ /**
+ * The prior backup detail that will be used to rollback the task run.
+ *
+ * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail prior_backup_detail = 17;
+ */
+ priorBackupDetail?: TaskRun_PriorBackupDetail;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRun.SchedulerInfo scheduler_info = 18;
+ */
+ schedulerInfo?: TaskRun_SchedulerInfo;
+
+ /**
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string sheet = 19;
+ */
+ sheet: string;
+
+ /**
+ * The task run should run after run_time.
+ * This can only be set when creating the task run calling BatchRunTasks.
+ *
+ * @generated from field: optional google.protobuf.Timestamp run_time = 21;
+ */
+ runTime?: Timestamp;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.
+ * Use `create(TaskRunSchema)` to create a new message.
+ */
+export declare const TaskRunSchema: GenMessage<TaskRun>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun.PriorBackupDetail
+ */
+export declare type TaskRun_PriorBackupDetail = Message<"bytebase.v1.TaskRun.PriorBackupDetail"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.TaskRun.PriorBackupDetail.Item items = 1;
+ */
+ items: TaskRun_PriorBackupDetail_Item[];
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.
+ * Use `create(TaskRun_PriorBackupDetailSchema)` to create a new message.
+ */
+export declare const TaskRun_PriorBackupDetailSchema: GenMessage<TaskRun_PriorBackupDetail>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun.PriorBackupDetail.Item
+ */
+export declare type TaskRun_PriorBackupDetail_Item = Message<"bytebase.v1.TaskRun.PriorBackupDetail.Item"> & {
+ /**
+ * The original table information.
+ *
+ * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail.Item.Table source_table = 1;
+ */
+ sourceTable?: TaskRun_PriorBackupDetail_Item_Table;
+
+ /**
+ * The target backup table information.
+ *
+ * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail.Item.Table target_table = 2;
+ */
+ targetTable?: TaskRun_PriorBackupDetail_Item_Table;
+
+ /**
+ * @generated from field: bytebase.v1.Position start_position = 3;
+ */
+ startPosition?: Position;
+
+ /**
+ * @generated from field: bytebase.v1.Position end_position = 4;
+ */
+ endPosition?: Position;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.
+ * Use `create(TaskRun_PriorBackupDetail_ItemSchema)` to create a new message.
+ */
+export declare const TaskRun_PriorBackupDetail_ItemSchema: GenMessage<TaskRun_PriorBackupDetail_Item>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun.PriorBackupDetail.Item.Table
+ */
+export declare type TaskRun_PriorBackupDetail_Item_Table = Message<"bytebase.v1.TaskRun.PriorBackupDetail.Item.Table"> & {
+ /**
+ * The database information.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string database = 1;
+ */
+ database: string;
+
+ /**
+ * @generated from field: string schema = 2;
+ */
+ schema: string;
+
+ /**
+ * @generated from field: string table = 3;
+ */
+ table: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.Table.
+ * Use `create(TaskRun_PriorBackupDetail_Item_TableSchema)` to create a new message.
+ */
+export declare const TaskRun_PriorBackupDetail_Item_TableSchema: GenMessage<TaskRun_PriorBackupDetail_Item_Table>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun.SchedulerInfo
+ */
+export declare type TaskRun_SchedulerInfo = Message<"bytebase.v1.TaskRun.SchedulerInfo"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp report_time = 1;
+ */
+ reportTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRun.SchedulerInfo.WaitingCause waiting_cause = 2;
+ */
+ waitingCause?: TaskRun_SchedulerInfo_WaitingCause;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.SchedulerInfo.
+ * Use `create(TaskRun_SchedulerInfoSchema)` to create a new message.
+ */
+export declare const TaskRun_SchedulerInfoSchema: GenMessage<TaskRun_SchedulerInfo>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause
+ */
+export declare type TaskRun_SchedulerInfo_WaitingCause = Message<"bytebase.v1.TaskRun.SchedulerInfo.WaitingCause"> & {
+ /**
+ * @generated from oneof bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.cause
+ */
+ cause: {
+ /**
+ * @generated from field: bool connection_limit = 1;
+ */
+ value: boolean;
+ case: "connectionLimit";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task task = 2;
+ */
+ value: TaskRun_SchedulerInfo_WaitingCause_Task;
+ case: "task";
+ } | {
+ /**
+ * @generated from field: bool parallel_tasks_limit = 3;
+ */
+ value: boolean;
+ case: "parallelTasksLimit";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.
+ * Use `create(TaskRun_SchedulerInfo_WaitingCauseSchema)` to create a new message.
+ */
+export declare const TaskRun_SchedulerInfo_WaitingCauseSchema: GenMessage<TaskRun_SchedulerInfo_WaitingCause>;
+
+/**
+ * @generated from message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task
+ */
+export declare type TaskRun_SchedulerInfo_WaitingCause_Task = Message<"bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
+ *
+ * @generated from field: string task = 1;
+ */
+ task: string;
+
+ /**
+ * Format: projects/{project}/issues/{issue}
+ *
+ * @generated from field: string issue = 2;
+ */
+ issue: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task.
+ * Use `create(TaskRun_SchedulerInfo_WaitingCause_TaskSchema)` to create a new message.
+ */
+export declare const TaskRun_SchedulerInfo_WaitingCause_TaskSchema: GenMessage<TaskRun_SchedulerInfo_WaitingCause_Task>;
+
+/**
+ * @generated from enum bytebase.v1.TaskRun.Status
+ */
+export enum TaskRun_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: PENDING = 1;
+ */
+ PENDING = 1,
+
+ /**
+ * @generated from enum value: RUNNING = 2;
+ */
+ RUNNING = 2,
+
+ /**
+ * @generated from enum value: DONE = 3;
+ */
+ DONE = 3,
+
+ /**
+ * @generated from enum value: FAILED = 4;
+ */
+ FAILED = 4,
+
+ /**
+ * @generated from enum value: CANCELED = 5;
+ */
+ CANCELED = 5,
+}
+
+/**
+ * Describes the enum bytebase.v1.TaskRun.Status.
+ */
+export declare const TaskRun_StatusSchema: GenEnum<TaskRun_Status>;
+
+/**
+ * @generated from enum bytebase.v1.TaskRun.ExportArchiveStatus
+ */
+export enum TaskRun_ExportArchiveStatus {
+ /**
+ * @generated from enum value: EXPORT_ARCHIVE_STATUS_UNSPECIFIED = 0;
+ */
+ EXPORT_ARCHIVE_STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: READY = 1;
+ */
+ READY = 1,
+
+ /**
+ * @generated from enum value: EXPORTED = 2;
+ */
+ EXPORTED = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.TaskRun.ExportArchiveStatus.
+ */
+export declare const TaskRun_ExportArchiveStatusSchema: GenEnum<TaskRun_ExportArchiveStatus>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLog
+ */
+export declare type TaskRunLog = Message<"bytebase.v1.TaskRunLog"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.TaskRunLogEntry entries = 2;
+ */
+ entries: TaskRunLogEntry[];
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLog.
+ * Use `create(TaskRunLogSchema)` to create a new message.
+ */
+export declare const TaskRunLogSchema: GenMessage<TaskRunLog>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry
+ */
+export declare type TaskRunLogEntry = Message<"bytebase.v1.TaskRunLogEntry"> & {
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.Type type = 1;
+ */
+ type: TaskRunLogEntry_Type;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp log_time = 6;
+ */
+ logTime?: Timestamp;
+
+ /**
+ * @generated from field: string deploy_id = 12;
+ */
+ deployId: string;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.SchemaDump schema_dump = 2;
+ */
+ schemaDump?: TaskRunLogEntry_SchemaDump;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.CommandExecute command_execute = 3;
+ */
+ commandExecute?: TaskRunLogEntry_CommandExecute;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.DatabaseSync database_sync = 4;
+ */
+ databaseSync?: TaskRunLogEntry_DatabaseSync;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate task_run_status_update = 5;
+ */
+ taskRunStatusUpdate?: TaskRunLogEntry_TaskRunStatusUpdate;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.TransactionControl transaction_control = 7;
+ */
+ transactionControl?: TaskRunLogEntry_TransactionControl;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.PriorBackup prior_backup = 8;
+ */
+ priorBackup?: TaskRunLogEntry_PriorBackup;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.RetryInfo retry_info = 9;
+ */
+ retryInfo?: TaskRunLogEntry_RetryInfo;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.
+ * Use `create(TaskRunLogEntrySchema)` to create a new message.
+ */
+export declare const TaskRunLogEntrySchema: GenMessage<TaskRunLogEntry>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.SchemaDump
+ */
+export declare type TaskRunLogEntry_SchemaDump = Message<"bytebase.v1.TaskRunLogEntry.SchemaDump"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
+ */
+ startTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
+ */
+ endTime?: Timestamp;
+
+ /**
+ * @generated from field: string error = 3;
+ */
+ error: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.SchemaDump.
+ * Use `create(TaskRunLogEntry_SchemaDumpSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_SchemaDumpSchema: GenMessage<TaskRunLogEntry_SchemaDump>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.CommandExecute
+ */
+export declare type TaskRunLogEntry_CommandExecute = Message<"bytebase.v1.TaskRunLogEntry.CommandExecute"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp log_time = 1;
+ */
+ logTime?: Timestamp;
+
+ /**
+ * The indexes of the executed commands.
+ *
+ * @generated from field: repeated int32 command_indexes = 2;
+ */
+ commandIndexes: number[];
+
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse response = 3;
+ */
+ response?: TaskRunLogEntry_CommandExecute_CommandResponse;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.CommandExecute.
+ * Use `create(TaskRunLogEntry_CommandExecuteSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_CommandExecuteSchema: GenMessage<TaskRunLogEntry_CommandExecute>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse
+ */
+export declare type TaskRunLogEntry_CommandExecute_CommandResponse = Message<"bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp log_time = 1;
+ */
+ logTime?: Timestamp;
+
+ /**
+ * @generated from field: string error = 2;
+ */
+ error: string;
+
+ /**
+ * @generated from field: int32 affected_rows = 3;
+ */
+ affectedRows: number;
+
+ /**
+ * `all_affected_rows` is the affected rows of each command.
+ * `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case.
+ *
+ * @generated from field: repeated int32 all_affected_rows = 4;
+ */
+ allAffectedRows: number[];
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.
+ * Use `create(TaskRunLogEntry_CommandExecute_CommandResponseSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_CommandExecute_CommandResponseSchema: GenMessage<TaskRunLogEntry_CommandExecute_CommandResponse>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.DatabaseSync
+ */
+export declare type TaskRunLogEntry_DatabaseSync = Message<"bytebase.v1.TaskRunLogEntry.DatabaseSync"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
+ */
+ startTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
+ */
+ endTime?: Timestamp;
+
+ /**
+ * @generated from field: string error = 3;
+ */
+ error: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.DatabaseSync.
+ * Use `create(TaskRunLogEntry_DatabaseSyncSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_DatabaseSyncSchema: GenMessage<TaskRunLogEntry_DatabaseSync>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate
+ */
+export declare type TaskRunLogEntry_TaskRunStatusUpdate = Message<"bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate"> & {
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status status = 1;
+ */
+ status: TaskRunLogEntry_TaskRunStatusUpdate_Status;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.
+ * Use `create(TaskRunLogEntry_TaskRunStatusUpdateSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_TaskRunStatusUpdateSchema: GenMessage<TaskRunLogEntry_TaskRunStatusUpdate>;
+
+/**
+ * @generated from enum bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status
+ */
+export enum TaskRunLogEntry_TaskRunStatusUpdate_Status {
+ /**
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * the task run is ready to be executed by the scheduler
+ *
+ * @generated from enum value: RUNNING_WAITING = 1;
+ */
+ RUNNING_WAITING = 1,
+
+ /**
+ * the task run is being executed by the scheduler
+ *
+ * @generated from enum value: RUNNING_RUNNING = 2;
+ */
+ RUNNING_RUNNING = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status.
+ */
+export declare const TaskRunLogEntry_TaskRunStatusUpdate_StatusSchema: GenEnum<TaskRunLogEntry_TaskRunStatusUpdate_Status>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.TransactionControl
+ */
+export declare type TaskRunLogEntry_TransactionControl = Message<"bytebase.v1.TaskRunLogEntry.TransactionControl"> & {
+ /**
+ * @generated from field: bytebase.v1.TaskRunLogEntry.TransactionControl.Type type = 1;
+ */
+ type: TaskRunLogEntry_TransactionControl_Type;
+
+ /**
+ * @generated from field: string error = 2;
+ */
+ error: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.TransactionControl.
+ * Use `create(TaskRunLogEntry_TransactionControlSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_TransactionControlSchema: GenMessage<TaskRunLogEntry_TransactionControl>;
+
+/**
+ * @generated from enum bytebase.v1.TaskRunLogEntry.TransactionControl.Type
+ */
+export enum TaskRunLogEntry_TransactionControl_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: BEGIN = 1;
+ */
+ BEGIN = 1,
+
+ /**
+ * @generated from enum value: COMMIT = 2;
+ */
+ COMMIT = 2,
+
+ /**
+ * @generated from enum value: ROLLBACK = 3;
+ */
+ ROLLBACK = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.TaskRunLogEntry.TransactionControl.Type.
+ */
+export declare const TaskRunLogEntry_TransactionControl_TypeSchema: GenEnum<TaskRunLogEntry_TransactionControl_Type>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.PriorBackup
+ */
+export declare type TaskRunLogEntry_PriorBackup = Message<"bytebase.v1.TaskRunLogEntry.PriorBackup"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
+ */
+ startTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
+ */
+ endTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.TaskRun.PriorBackupDetail prior_backup_detail = 3;
+ */
+ priorBackupDetail?: TaskRun_PriorBackupDetail;
+
+ /**
+ * @generated from field: string error = 4;
+ */
+ error: string;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.
+ * Use `create(TaskRunLogEntry_PriorBackupSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_PriorBackupSchema: GenMessage<TaskRunLogEntry_PriorBackup>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunLogEntry.RetryInfo
+ */
+export declare type TaskRunLogEntry_RetryInfo = Message<"bytebase.v1.TaskRunLogEntry.RetryInfo"> & {
+ /**
+ * @generated from field: string error = 1;
+ */
+ error: string;
+
+ /**
+ * @generated from field: int32 retry_count = 2;
+ */
+ retryCount: number;
+
+ /**
+ * @generated from field: int32 maximum_retries = 3;
+ */
+ maximumRetries: number;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.RetryInfo.
+ * Use `create(TaskRunLogEntry_RetryInfoSchema)` to create a new message.
+ */
+export declare const TaskRunLogEntry_RetryInfoSchema: GenMessage<TaskRunLogEntry_RetryInfo>;
+
+/**
+ * @generated from enum bytebase.v1.TaskRunLogEntry.Type
+ */
+export enum TaskRunLogEntry_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: SCHEMA_DUMP = 1;
+ */
+ SCHEMA_DUMP = 1,
+
+ /**
+ * @generated from enum value: COMMAND_EXECUTE = 2;
+ */
+ COMMAND_EXECUTE = 2,
+
+ /**
+ * @generated from enum value: DATABASE_SYNC = 3;
+ */
+ DATABASE_SYNC = 3,
+
+ /**
+ * @generated from enum value: TASK_RUN_STATUS_UPDATE = 4;
+ */
+ TASK_RUN_STATUS_UPDATE = 4,
+
+ /**
+ * @generated from enum value: TRANSACTION_CONTROL = 5;
+ */
+ TRANSACTION_CONTROL = 5,
+
+ /**
+ * @generated from enum value: PRIOR_BACKUP = 6;
+ */
+ PRIOR_BACKUP = 6,
+
+ /**
+ * @generated from enum value: RETRY_INFO = 7;
+ */
+ RETRY_INFO = 7,
+}
+
+/**
+ * Describes the enum bytebase.v1.TaskRunLogEntry.Type.
+ */
+export declare const TaskRunLogEntry_TypeSchema: GenEnum<TaskRunLogEntry_Type>;
+
+/**
+ * @generated from message bytebase.v1.GetTaskRunSessionRequest
+ */
+export declare type GetTaskRunSessionRequest = Message<"bytebase.v1.GetTaskRunSessionRequest"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetTaskRunSessionRequest.
+ * Use `create(GetTaskRunSessionRequestSchema)` to create a new message.
+ */
+export declare const GetTaskRunSessionRequestSchema: GenMessage<GetTaskRunSessionRequest>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunSession
+ */
+export declare type TaskRunSession = Message<"bytebase.v1.TaskRunSession"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from oneof bytebase.v1.TaskRunSession.session
+ */
+ session: {
+ /**
+ * @generated from field: bytebase.v1.TaskRunSession.Postgres postgres = 2;
+ */
+ value: TaskRunSession_Postgres;
+ case: "postgres";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunSession.
+ * Use `create(TaskRunSessionSchema)` to create a new message.
+ */
+export declare const TaskRunSessionSchema: GenMessage<TaskRunSession>;
+
+/**
+ * @generated from message bytebase.v1.TaskRunSession.Postgres
+ */
+export declare type TaskRunSession_Postgres = Message<"bytebase.v1.TaskRunSession.Postgres"> & {
+ /**
+ * `session` is the session of the task run executing commands.
+ *
+ * @generated from field: bytebase.v1.TaskRunSession.Postgres.Session session = 1;
+ */
+ session?: TaskRunSession_Postgres_Session;
+
+ /**
+ * `blocking_sessions` block `session`.
+ *
+ * @generated from field: repeated bytebase.v1.TaskRunSession.Postgres.Session blocking_sessions = 2;
+ */
+ blockingSessions: TaskRunSession_Postgres_Session[];
+
+ /**
+ * `blocked_sessions` are blocked by `session`.
+ *
+ * @generated from field: repeated bytebase.v1.TaskRunSession.Postgres.Session blocked_sessions = 3;
+ */
+ blockedSessions: TaskRunSession_Postgres_Session[];
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunSession.Postgres.
+ * Use `create(TaskRunSession_PostgresSchema)` to create a new message.
+ */
+export declare const TaskRunSession_PostgresSchema: GenMessage<TaskRunSession_Postgres>;
+
+/**
+ * Read from `pg_stat_activity`
+ *
+ * @generated from message bytebase.v1.TaskRunSession.Postgres.Session
+ */
+export declare type TaskRunSession_Postgres_Session = Message<"bytebase.v1.TaskRunSession.Postgres.Session"> & {
+ /**
+ * @generated from field: string pid = 1;
+ */
+ pid: string;
+
+ /**
+ * @generated from field: repeated string blocked_by_pids = 2;
+ */
+ blockedByPids: string[];
+
+ /**
+ * @generated from field: string query = 3;
+ */
+ query: string;
+
+ /**
+ * @generated from field: optional string state = 4;
+ */
+ state?: string;
+
+ /**
+ * @generated from field: optional string wait_event_type = 5;
+ */
+ waitEventType?: string;
+
+ /**
+ * @generated from field: optional string wait_event = 6;
+ */
+ waitEvent?: string;
+
+ /**
+ * @generated from field: optional string datname = 7;
+ */
+ datname?: string;
+
+ /**
+ * @generated from field: optional string usename = 8;
+ */
+ usename?: string;
+
+ /**
+ * @generated from field: string application_name = 9;
+ */
+ applicationName: string;
+
+ /**
+ * @generated from field: optional string client_addr = 10;
+ */
+ clientAddr?: string;
+
+ /**
+ * @generated from field: optional string client_port = 11;
+ */
+ clientPort?: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp backend_start = 12;
+ */
+ backendStart?: Timestamp;
+
+ /**
+ * @generated from field: optional google.protobuf.Timestamp xact_start = 13;
+ */
+ xactStart?: Timestamp;
+
+ /**
+ * @generated from field: optional google.protobuf.Timestamp query_start = 14;
+ */
+ queryStart?: Timestamp;
+};
+
+/**
+ * Describes the message bytebase.v1.TaskRunSession.Postgres.Session.
+ * Use `create(TaskRunSession_Postgres_SessionSchema)` to create a new message.
+ */
+export declare const TaskRunSession_Postgres_SessionSchema: GenMessage<TaskRunSession_Postgres_Session>;
+
+/**
+ * @generated from message bytebase.v1.PreviewTaskRunRollbackRequest
+ */
+export declare type PreviewTaskRunRollbackRequest = Message<"bytebase.v1.PreviewTaskRunRollbackRequest"> & {
+ /**
+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.PreviewTaskRunRollbackRequest.
+ * Use `create(PreviewTaskRunRollbackRequestSchema)` to create a new message.
+ */
+export declare const PreviewTaskRunRollbackRequestSchema: GenMessage<PreviewTaskRunRollbackRequest>;
+
+/**
+ * @generated from message bytebase.v1.PreviewTaskRunRollbackResponse
+ */
+export declare type PreviewTaskRunRollbackResponse = Message<"bytebase.v1.PreviewTaskRunRollbackResponse"> & {
+ /**
+ * @generated from field: string statement = 1;
+ */
+ statement: string;
+};
+
+/**
+ * Describes the message bytebase.v1.PreviewTaskRunRollbackResponse.
+ * Use `create(PreviewTaskRunRollbackResponseSchema)` to create a new message.
+ */
+export declare const PreviewTaskRunRollbackResponseSchema: GenMessage<PreviewTaskRunRollbackResponse>;
+
+/**
+ * @generated from service bytebase.v1.RolloutService
+ */
+export declare const RolloutService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.GetRollout
+ */
+ getRollout: {
+ methodKind: "unary";
+ input: typeof GetRolloutRequestSchema;
+ output: typeof RolloutSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.ListRollouts
+ */
+ listRollouts: {
+ methodKind: "unary";
+ input: typeof ListRolloutsRequestSchema;
+ output: typeof ListRolloutsResponseSchema;
+ },
+ /**
+ * CreateRollout can be called multiple times with the same rollout.plan but different stage_id to promote rollout stages.
+ *
+ * @generated from rpc bytebase.v1.RolloutService.CreateRollout
+ */
+ createRollout: {
+ methodKind: "unary";
+ input: typeof CreateRolloutRequestSchema;
+ output: typeof RolloutSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.PreviewRollout
+ */
+ previewRollout: {
+ methodKind: "unary";
+ input: typeof PreviewRolloutRequestSchema;
+ output: typeof RolloutSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.ListTaskRuns
+ */
+ listTaskRuns: {
+ methodKind: "unary";
+ input: typeof ListTaskRunsRequestSchema;
+ output: typeof ListTaskRunsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.GetTaskRun
+ */
+ getTaskRun: {
+ methodKind: "unary";
+ input: typeof GetTaskRunRequestSchema;
+ output: typeof TaskRunSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.GetTaskRunLog
+ */
+ getTaskRunLog: {
+ methodKind: "unary";
+ input: typeof GetTaskRunLogRequestSchema;
+ output: typeof TaskRunLogSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.GetTaskRunSession
+ */
+ getTaskRunSession: {
+ methodKind: "unary";
+ input: typeof GetTaskRunSessionRequestSchema;
+ output: typeof TaskRunSessionSchema;
+ },
+ /**
+ * BatchRunTasks creates task runs for the specified tasks.
+ * DataExport issue only allows the creator to run the task.
+ * Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.
+ * Follow role-based rollout policy for the environment.
+ *
+ * @generated from rpc bytebase.v1.RolloutService.BatchRunTasks
+ */
+ batchRunTasks: {
+ methodKind: "unary";
+ input: typeof BatchRunTasksRequestSchema;
+ output: typeof BatchRunTasksResponseSchema;
+ },
+ /**
+ * BatchSkipTasks skips the specified tasks.
+ * The access is the same as BatchRunTasks().
+ *
+ * @generated from rpc bytebase.v1.RolloutService.BatchSkipTasks
+ */
+ batchSkipTasks: {
+ methodKind: "unary";
+ input: typeof BatchSkipTasksRequestSchema;
+ output: typeof BatchSkipTasksResponseSchema;
+ },
+ /**
+ * BatchCancelTaskRuns cancels the specified task runs in batch.
+ * The access is the same as BatchRunTasks().
+ *
+ * @generated from rpc bytebase.v1.RolloutService.BatchCancelTaskRuns
+ */
+ batchCancelTaskRuns: {
+ methodKind: "unary";
+ input: typeof BatchCancelTaskRunsRequestSchema;
+ output: typeof BatchCancelTaskRunsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.RolloutService.PreviewTaskRunRollback
+ */
+ previewTaskRunRollback: {
+ methodKind: "unary";
+ input: typeof PreviewTaskRunRollbackRequestSchema;
+ output: typeof PreviewTaskRunRollbackResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/rollout_service_pb.js b/frontend/src/types/proto-es/v1/rollout_service_pb.js
new file mode 100644
index 0000000000..22765816c4
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/rollout_service_pb.js
@@ -0,0 +1,425 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/rollout_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_plan_service } from "./plan_service_pb";
+
+/**
+ * Describes the file v1/rollout_service.proto.
+ */
+export const file_v1_rollout_service = /*@__PURE__*/
+ fileDesc("Chh2MS9yb2xsb3V0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIoUBChRCYXRjaFJ1blRhc2tzUmVxdWVzdBIOCgZwYXJlbnQYASABKAkSDQoFdGFza3MYAiADKAkSDgoGcmVhc29uGAMgASgJEjEKCHJ1bl90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBQgsKCV9ydW5fdGltZSIXChVCYXRjaFJ1blRhc2tzUmVzcG9uc2UiRgoVQmF0Y2hTa2lwVGFza3NSZXF1ZXN0Eg4KBnBhcmVudBgBIAEoCRINCgV0YXNrcxgCIAMoCRIOCgZyZWFzb24YAyABKAkiGAoWQmF0Y2hTa2lwVGFza3NSZXNwb25zZSJPChpCYXRjaENhbmNlbFRhc2tSdW5zUmVxdWVzdBIOCgZwYXJlbnQYASABKAkSEQoJdGFza19ydW5zGAIgAygJEg4KBnJlYXNvbhgDIAEoCSIdChtCYXRjaENhbmNlbFRhc2tSdW5zUmVzcG9uc2UiQAoRR2V0Um9sbG91dFJlcXVlc3QSKwoEbmFtZRgBIAEoCUId4kEBAvpBFgoUYnl0ZWJhc2UuY29tL1JvbGxvdXQiawoTTGlzdFJvbGxvdXRzUmVxdWVzdBItCgZwYXJlbnQYASABKAlCHeJBAQL6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EhEKCXBhZ2Vfc2l6ZRgCIAEoBRISCgpwYWdlX3Rva2VuGAMgASgJIlcKFExpc3RSb2xsb3V0c1Jlc3BvbnNlEiYKCHJvbGxvdXRzGAEgAygLMh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2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_plan_service]);
+
+/**
+ * Describes the message bytebase.v1.BatchRunTasksRequest.
+ * Use `create(BatchRunTasksRequestSchema)` to create a new message.
+ */
+export const BatchRunTasksRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 0);
+
+/**
+ * Describes the message bytebase.v1.BatchRunTasksResponse.
+ * Use `create(BatchRunTasksResponseSchema)` to create a new message.
+ */
+export const BatchRunTasksResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 1);
+
+/**
+ * Describes the message bytebase.v1.BatchSkipTasksRequest.
+ * Use `create(BatchSkipTasksRequestSchema)` to create a new message.
+ */
+export const BatchSkipTasksRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 2);
+
+/**
+ * Describes the message bytebase.v1.BatchSkipTasksResponse.
+ * Use `create(BatchSkipTasksResponseSchema)` to create a new message.
+ */
+export const BatchSkipTasksResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 3);
+
+/**
+ * Describes the message bytebase.v1.BatchCancelTaskRunsRequest.
+ * Use `create(BatchCancelTaskRunsRequestSchema)` to create a new message.
+ */
+export const BatchCancelTaskRunsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 4);
+
+/**
+ * Describes the message bytebase.v1.BatchCancelTaskRunsResponse.
+ * Use `create(BatchCancelTaskRunsResponseSchema)` to create a new message.
+ */
+export const BatchCancelTaskRunsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 5);
+
+/**
+ * Describes the message bytebase.v1.GetRolloutRequest.
+ * Use `create(GetRolloutRequestSchema)` to create a new message.
+ */
+export const GetRolloutRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 6);
+
+/**
+ * Describes the message bytebase.v1.ListRolloutsRequest.
+ * Use `create(ListRolloutsRequestSchema)` to create a new message.
+ */
+export const ListRolloutsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 7);
+
+/**
+ * Describes the message bytebase.v1.ListRolloutsResponse.
+ * Use `create(ListRolloutsResponseSchema)` to create a new message.
+ */
+export const ListRolloutsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 8);
+
+/**
+ * Describes the message bytebase.v1.CreateRolloutRequest.
+ * Use `create(CreateRolloutRequestSchema)` to create a new message.
+ */
+export const CreateRolloutRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 9);
+
+/**
+ * Describes the message bytebase.v1.PreviewRolloutRequest.
+ * Use `create(PreviewRolloutRequestSchema)` to create a new message.
+ */
+export const PreviewRolloutRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 10);
+
+/**
+ * Describes the message bytebase.v1.ListTaskRunsRequest.
+ * Use `create(ListTaskRunsRequestSchema)` to create a new message.
+ */
+export const ListTaskRunsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 11);
+
+/**
+ * Describes the message bytebase.v1.ListTaskRunsResponse.
+ * Use `create(ListTaskRunsResponseSchema)` to create a new message.
+ */
+export const ListTaskRunsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 12);
+
+/**
+ * Describes the message bytebase.v1.GetTaskRunRequest.
+ * Use `create(GetTaskRunRequestSchema)` to create a new message.
+ */
+export const GetTaskRunRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 13);
+
+/**
+ * Describes the message bytebase.v1.GetTaskRunLogRequest.
+ * Use `create(GetTaskRunLogRequestSchema)` to create a new message.
+ */
+export const GetTaskRunLogRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 14);
+
+/**
+ * Describes the message bytebase.v1.Rollout.
+ * Use `create(RolloutSchema)` to create a new message.
+ */
+export const RolloutSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 15);
+
+/**
+ * Describes the message bytebase.v1.Stage.
+ * Use `create(StageSchema)` to create a new message.
+ */
+export const StageSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 16);
+
+/**
+ * Describes the message bytebase.v1.Task.
+ * Use `create(TaskSchema)` to create a new message.
+ */
+export const TaskSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 17);
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseCreate.
+ * Use `create(Task_DatabaseCreateSchema)` to create a new message.
+ */
+export const Task_DatabaseCreateSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 17, 0);
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseSchemaUpdate.
+ * Use `create(Task_DatabaseSchemaUpdateSchema)` to create a new message.
+ */
+export const Task_DatabaseSchemaUpdateSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 17, 1);
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseDataUpdate.
+ * Use `create(Task_DatabaseDataUpdateSchema)` to create a new message.
+ */
+export const Task_DatabaseDataUpdateSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 17, 2);
+
+/**
+ * Describes the message bytebase.v1.Task.DatabaseDataExport.
+ * Use `create(Task_DatabaseDataExportSchema)` to create a new message.
+ */
+export const Task_DatabaseDataExportSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 17, 3);
+
+/**
+ * Describes the enum bytebase.v1.Task.Status.
+ */
+export const Task_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 17, 0);
+
+/**
+ * @generated from enum bytebase.v1.Task.Status
+ */
+export const Task_Status = /*@__PURE__*/
+ tsEnum(Task_StatusSchema);
+
+/**
+ * Describes the enum bytebase.v1.Task.Type.
+ */
+export const Task_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 17, 1);
+
+/**
+ * @generated from enum bytebase.v1.Task.Type
+ */
+export const Task_Type = /*@__PURE__*/
+ tsEnum(Task_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.
+ * Use `create(TaskRunSchema)` to create a new message.
+ */
+export const TaskRunSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.
+ * Use `create(TaskRun_PriorBackupDetailSchema)` to create a new message.
+ */
+export const TaskRun_PriorBackupDetailSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.
+ * Use `create(TaskRun_PriorBackupDetail_ItemSchema)` to create a new message.
+ */
+export const TaskRun_PriorBackupDetail_ItemSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18, 0, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.PriorBackupDetail.Item.Table.
+ * Use `create(TaskRun_PriorBackupDetail_Item_TableSchema)` to create a new message.
+ */
+export const TaskRun_PriorBackupDetail_Item_TableSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18, 0, 0, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.SchedulerInfo.
+ * Use `create(TaskRun_SchedulerInfoSchema)` to create a new message.
+ */
+export const TaskRun_SchedulerInfoSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18, 1);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.
+ * Use `create(TaskRun_SchedulerInfo_WaitingCauseSchema)` to create a new message.
+ */
+export const TaskRun_SchedulerInfo_WaitingCauseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18, 1, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task.
+ * Use `create(TaskRun_SchedulerInfo_WaitingCause_TaskSchema)` to create a new message.
+ */
+export const TaskRun_SchedulerInfo_WaitingCause_TaskSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 18, 1, 0, 0);
+
+/**
+ * Describes the enum bytebase.v1.TaskRun.Status.
+ */
+export const TaskRun_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 18, 0);
+
+/**
+ * @generated from enum bytebase.v1.TaskRun.Status
+ */
+export const TaskRun_Status = /*@__PURE__*/
+ tsEnum(TaskRun_StatusSchema);
+
+/**
+ * Describes the enum bytebase.v1.TaskRun.ExportArchiveStatus.
+ */
+export const TaskRun_ExportArchiveStatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 18, 1);
+
+/**
+ * @generated from enum bytebase.v1.TaskRun.ExportArchiveStatus
+ */
+export const TaskRun_ExportArchiveStatus = /*@__PURE__*/
+ tsEnum(TaskRun_ExportArchiveStatusSchema);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLog.
+ * Use `create(TaskRunLogSchema)` to create a new message.
+ */
+export const TaskRunLogSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 19);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.
+ * Use `create(TaskRunLogEntrySchema)` to create a new message.
+ */
+export const TaskRunLogEntrySchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.SchemaDump.
+ * Use `create(TaskRunLogEntry_SchemaDumpSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_SchemaDumpSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.CommandExecute.
+ * Use `create(TaskRunLogEntry_CommandExecuteSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_CommandExecuteSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 1);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.
+ * Use `create(TaskRunLogEntry_CommandExecute_CommandResponseSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_CommandExecute_CommandResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 1, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.DatabaseSync.
+ * Use `create(TaskRunLogEntry_DatabaseSyncSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_DatabaseSyncSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 2);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.
+ * Use `create(TaskRunLogEntry_TaskRunStatusUpdateSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_TaskRunStatusUpdateSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 3);
+
+/**
+ * Describes the enum bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status.
+ */
+export const TaskRunLogEntry_TaskRunStatusUpdate_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 20, 3, 0);
+
+/**
+ * @generated from enum bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status
+ */
+export const TaskRunLogEntry_TaskRunStatusUpdate_Status = /*@__PURE__*/
+ tsEnum(TaskRunLogEntry_TaskRunStatusUpdate_StatusSchema);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.TransactionControl.
+ * Use `create(TaskRunLogEntry_TransactionControlSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_TransactionControlSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 4);
+
+/**
+ * Describes the enum bytebase.v1.TaskRunLogEntry.TransactionControl.Type.
+ */
+export const TaskRunLogEntry_TransactionControl_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 20, 4, 0);
+
+/**
+ * @generated from enum bytebase.v1.TaskRunLogEntry.TransactionControl.Type
+ */
+export const TaskRunLogEntry_TransactionControl_Type = /*@__PURE__*/
+ tsEnum(TaskRunLogEntry_TransactionControl_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.PriorBackup.
+ * Use `create(TaskRunLogEntry_PriorBackupSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_PriorBackupSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 5);
+
+/**
+ * Describes the message bytebase.v1.TaskRunLogEntry.RetryInfo.
+ * Use `create(TaskRunLogEntry_RetryInfoSchema)` to create a new message.
+ */
+export const TaskRunLogEntry_RetryInfoSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 20, 6);
+
+/**
+ * Describes the enum bytebase.v1.TaskRunLogEntry.Type.
+ */
+export const TaskRunLogEntry_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_rollout_service, 20, 0);
+
+/**
+ * @generated from enum bytebase.v1.TaskRunLogEntry.Type
+ */
+export const TaskRunLogEntry_Type = /*@__PURE__*/
+ tsEnum(TaskRunLogEntry_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.GetTaskRunSessionRequest.
+ * Use `create(GetTaskRunSessionRequestSchema)` to create a new message.
+ */
+export const GetTaskRunSessionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 21);
+
+/**
+ * Describes the message bytebase.v1.TaskRunSession.
+ * Use `create(TaskRunSessionSchema)` to create a new message.
+ */
+export const TaskRunSessionSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 22);
+
+/**
+ * Describes the message bytebase.v1.TaskRunSession.Postgres.
+ * Use `create(TaskRunSession_PostgresSchema)` to create a new message.
+ */
+export const TaskRunSession_PostgresSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 22, 0);
+
+/**
+ * Describes the message bytebase.v1.TaskRunSession.Postgres.Session.
+ * Use `create(TaskRunSession_Postgres_SessionSchema)` to create a new message.
+ */
+export const TaskRunSession_Postgres_SessionSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 22, 0, 0);
+
+/**
+ * Describes the message bytebase.v1.PreviewTaskRunRollbackRequest.
+ * Use `create(PreviewTaskRunRollbackRequestSchema)` to create a new message.
+ */
+export const PreviewTaskRunRollbackRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 23);
+
+/**
+ * Describes the message bytebase.v1.PreviewTaskRunRollbackResponse.
+ * Use `create(PreviewTaskRunRollbackResponseSchema)` to create a new message.
+ */
+export const PreviewTaskRunRollbackResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_rollout_service, 24);
+
+/**
+ * @generated from service bytebase.v1.RolloutService
+ */
+export const RolloutService = /*@__PURE__*/
+ serviceDesc(file_v1_rollout_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.d.ts b/frontend/src/types/proto-es/v1/setting_service_pb.d.ts
new file mode 100644
index 0000000000..3c8cc1c1df
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/setting_service_pb.d.ts
@@ -0,0 +1,1770 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/setting_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { ApprovalTemplate } from "./issue_service_pb";
+import type { Expr } from "../google/type/expr_pb";
+import type { Engine } from "./common_pb";
+import type { ColumnMetadata, TableMetadata } from "./database_service_pb";
+import type { ColumnCatalog, TableCatalog } from "./database_catalog_service_pb";
+import type { PlanType } from "./subscription_service_pb";
+
+/**
+ * Describes the file v1/setting_service.proto.
+ */
+export declare const file_v1_setting_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.ListSettingsRequest
+ */
+export declare type ListSettingsRequest = Message<"bytebase.v1.ListSettingsRequest"> & {
+ /**
+ * Not used.
+ * The maximum number of settings to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 settings will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `ListSettings` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListSettings` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListSettingsRequest.
+ * Use `create(ListSettingsRequestSchema)` to create a new message.
+ */
+export declare const ListSettingsRequestSchema: GenMessage<ListSettingsRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListSettingsResponse
+ */
+export declare type ListSettingsResponse = Message<"bytebase.v1.ListSettingsResponse"> & {
+ /**
+ * The settings from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.Setting settings = 1;
+ */
+ settings: Setting[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListSettingsResponse.
+ * Use `create(ListSettingsResponseSchema)` to create a new message.
+ */
+export declare const ListSettingsResponseSchema: GenMessage<ListSettingsResponse>;
+
+/**
+ * The request message for getting a setting.
+ *
+ * @generated from message bytebase.v1.GetSettingRequest
+ */
+export declare type GetSettingRequest = Message<"bytebase.v1.GetSettingRequest"> & {
+ /**
+ * The resource name of the setting.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetSettingRequest.
+ * Use `create(GetSettingRequestSchema)` to create a new message.
+ */
+export declare const GetSettingRequestSchema: GenMessage<GetSettingRequest>;
+
+/**
+ * The response message for getting a setting.
+ *
+ * @generated from message bytebase.v1.GetSettingResponse
+ */
+export declare type GetSettingResponse = Message<"bytebase.v1.GetSettingResponse"> & {
+ /**
+ * @generated from field: bytebase.v1.Setting setting = 1;
+ */
+ setting?: Setting;
+};
+
+/**
+ * Describes the message bytebase.v1.GetSettingResponse.
+ * Use `create(GetSettingResponseSchema)` to create a new message.
+ */
+export declare const GetSettingResponseSchema: GenMessage<GetSettingResponse>;
+
+/**
+ * The request message for updating or creating a setting.
+ *
+ * @generated from message bytebase.v1.UpdateSettingRequest
+ */
+export declare type UpdateSettingRequest = Message<"bytebase.v1.UpdateSettingRequest"> & {
+ /**
+ * The setting to update.
+ *
+ * @generated from field: bytebase.v1.Setting setting = 1;
+ */
+ setting?: Setting;
+
+ /**
+ * validate_only is a flag to indicate whether to validate the setting value,
+ * server would not persist the setting value if it is true.
+ *
+ * @generated from field: bool validate_only = 2;
+ */
+ validateOnly: boolean;
+
+ /**
+ * @generated from field: bool allow_missing = 3;
+ */
+ allowMissing: boolean;
+
+ /**
+ * @generated from field: google.protobuf.FieldMask update_mask = 4;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateSettingRequest.
+ * Use `create(UpdateSettingRequestSchema)` to create a new message.
+ */
+export declare const UpdateSettingRequestSchema: GenMessage<UpdateSettingRequest>;
+
+/**
+ * The schema of setting.
+ *
+ * @generated from message bytebase.v1.Setting
+ */
+export declare type Setting = Message<"bytebase.v1.Setting"> & {
+ /**
+ * The resource name of the setting. Must be one of the following forms:
+ *
+ * - `setting/{setting}`
+ * For example, "settings/bb.branding.logo"
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The value of the setting.
+ *
+ * @generated from field: bytebase.v1.Value value = 2;
+ */
+ value?: Value;
+};
+
+/**
+ * Describes the message bytebase.v1.Setting.
+ * Use `create(SettingSchema)` to create a new message.
+ */
+export declare const SettingSchema: GenMessage<Setting>;
+
+/**
+ * @generated from enum bytebase.v1.Setting.SettingName
+ */
+export enum Setting_SettingName {
+ /**
+ * @generated from enum value: SETTING_NAME_UNSPECIFIED = 0;
+ */
+ SETTING_NAME_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: AUTH_SECRET = 1;
+ */
+ AUTH_SECRET = 1,
+
+ /**
+ * @generated from enum value: BRANDING_LOGO = 2;
+ */
+ BRANDING_LOGO = 2,
+
+ /**
+ * @generated from enum value: WORKSPACE_ID = 3;
+ */
+ WORKSPACE_ID = 3,
+
+ /**
+ * @generated from enum value: WORKSPACE_PROFILE = 4;
+ */
+ WORKSPACE_PROFILE = 4,
+
+ /**
+ * @generated from enum value: WORKSPACE_APPROVAL = 5;
+ */
+ WORKSPACE_APPROVAL = 5,
+
+ /**
+ * @generated from enum value: WORKSPACE_EXTERNAL_APPROVAL = 6;
+ */
+ WORKSPACE_EXTERNAL_APPROVAL = 6,
+
+ /**
+ * @generated from enum value: ENTERPRISE_LICENSE = 7;
+ */
+ ENTERPRISE_LICENSE = 7,
+
+ /**
+ * @generated from enum value: APP_IM = 8;
+ */
+ APP_IM = 8,
+
+ /**
+ * @generated from enum value: WATERMARK = 9;
+ */
+ WATERMARK = 9,
+
+ /**
+ * @generated from enum value: AI = 10;
+ */
+ AI = 10,
+
+ /**
+ * @generated from enum value: PLUGIN_AGENT = 11;
+ */
+ PLUGIN_AGENT = 11,
+
+ /**
+ * @generated from enum value: WORKSPACE_MAIL_DELIVERY = 12;
+ */
+ WORKSPACE_MAIL_DELIVERY = 12,
+
+ /**
+ * @generated from enum value: SCHEMA_TEMPLATE = 13;
+ */
+ SCHEMA_TEMPLATE = 13,
+
+ /**
+ * @generated from enum value: DATA_CLASSIFICATION = 14;
+ */
+ DATA_CLASSIFICATION = 14,
+
+ /**
+ * @generated from enum value: SEMANTIC_TYPES = 15;
+ */
+ SEMANTIC_TYPES = 15,
+
+ /**
+ * @generated from enum value: SQL_RESULT_SIZE_LIMIT = 16;
+ */
+ SQL_RESULT_SIZE_LIMIT = 16,
+
+ /**
+ * @generated from enum value: SCIM = 17;
+ */
+ SCIM = 17,
+
+ /**
+ * @generated from enum value: PASSWORD_RESTRICTION = 18;
+ */
+ PASSWORD_RESTRICTION = 18,
+
+ /**
+ * @generated from enum value: ENVIRONMENT = 19;
+ */
+ ENVIRONMENT = 19,
+}
+
+/**
+ * Describes the enum bytebase.v1.Setting.SettingName.
+ */
+export declare const Setting_SettingNameSchema: GenEnum<Setting_SettingName>;
+
+/**
+ * The data in setting value.
+ *
+ * @generated from message bytebase.v1.Value
+ */
+export declare type Value = Message<"bytebase.v1.Value"> & {
+ /**
+ * Value is a oneof field for setting value.
+ *
+ * @generated from oneof bytebase.v1.Value.value
+ */
+ value: {
+ /**
+ * Defines this value as being a string value.
+ *
+ * @generated from field: string string_value = 1;
+ */
+ value: string;
+ case: "stringValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.SMTPMailDeliverySettingValue smtp_mail_delivery_setting_value = 2;
+ */
+ value: SMTPMailDeliverySettingValue;
+ case: "smtpMailDeliverySettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.AppIMSetting app_im_setting_value = 3;
+ */
+ value: AppIMSetting;
+ case: "appImSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.AgentPluginSetting agent_plugin_setting_value = 4;
+ */
+ value: AgentPluginSetting;
+ case: "agentPluginSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.WorkspaceProfileSetting workspace_profile_setting_value = 5;
+ */
+ value: WorkspaceProfileSetting;
+ case: "workspaceProfileSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.WorkspaceApprovalSetting workspace_approval_setting_value = 6;
+ */
+ value: WorkspaceApprovalSetting;
+ case: "workspaceApprovalSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.WorkspaceTrialSetting workspace_trial_setting_value = 7;
+ */
+ value: WorkspaceTrialSetting;
+ case: "workspaceTrialSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.SchemaTemplateSetting schema_template_setting_value = 9;
+ */
+ value: SchemaTemplateSetting;
+ case: "schemaTemplateSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.DataClassificationSetting data_classification_setting_value = 10;
+ */
+ value: DataClassificationSetting;
+ case: "dataClassificationSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.SemanticTypeSetting semantic_type_setting_value = 11;
+ */
+ value: SemanticTypeSetting;
+ case: "semanticTypeSettingValue";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.MaximumSQLResultSizeSetting maximum_sql_result_size_setting = 13;
+ */
+ value: MaximumSQLResultSizeSetting;
+ case: "maximumSqlResultSizeSetting";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.SCIMSetting scim_setting = 14;
+ */
+ value: SCIMSetting;
+ case: "scimSetting";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.PasswordRestrictionSetting password_restriction_setting = 15;
+ */
+ value: PasswordRestrictionSetting;
+ case: "passwordRestrictionSetting";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.AISetting ai_setting = 16;
+ */
+ value: AISetting;
+ case: "aiSetting";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.EnvironmentSetting environment_setting = 17;
+ */
+ value: EnvironmentSetting;
+ case: "environmentSetting";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.Value.
+ * Use `create(ValueSchema)` to create a new message.
+ */
+export declare const ValueSchema: GenMessage<Value>;
+
+/**
+ * @generated from message bytebase.v1.SMTPMailDeliverySettingValue
+ */
+export declare type SMTPMailDeliverySettingValue = Message<"bytebase.v1.SMTPMailDeliverySettingValue"> & {
+ /**
+ * The SMTP server address.
+ *
+ * @generated from field: string server = 1;
+ */
+ server: string;
+
+ /**
+ * The SMTP server port.
+ *
+ * @generated from field: int32 port = 2;
+ */
+ port: number;
+
+ /**
+ * The SMTP server encryption.
+ *
+ * @generated from field: bytebase.v1.SMTPMailDeliverySettingValue.Encryption encryption = 3;
+ */
+ encryption: SMTPMailDeliverySettingValue_Encryption;
+
+ /**
+ * The CA, KEY, and CERT for the SMTP server.
+ * Not used.
+ *
+ * @generated from field: optional string ca = 4;
+ */
+ ca?: string;
+
+ /**
+ * @generated from field: optional string key = 5;
+ */
+ key?: string;
+
+ /**
+ * @generated from field: optional string cert = 6;
+ */
+ cert?: string;
+
+ /**
+ * @generated from field: bytebase.v1.SMTPMailDeliverySettingValue.Authentication authentication = 7;
+ */
+ authentication: SMTPMailDeliverySettingValue_Authentication;
+
+ /**
+ * @generated from field: string username = 8;
+ */
+ username: string;
+
+ /**
+ * If not specified, server will use the existed password.
+ *
+ * @generated from field: optional string password = 9;
+ */
+ password?: string;
+
+ /**
+ * The sender email address.
+ *
+ * @generated from field: string from = 10;
+ */
+ from: string;
+
+ /**
+ * The recipient email address, used with validate_only to send test email.
+ *
+ * @generated from field: string to = 11;
+ */
+ to: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SMTPMailDeliverySettingValue.
+ * Use `create(SMTPMailDeliverySettingValueSchema)` to create a new message.
+ */
+export declare const SMTPMailDeliverySettingValueSchema: GenMessage<SMTPMailDeliverySettingValue>;
+
+/**
+ * We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.
+ *
+ * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption
+ */
+export enum SMTPMailDeliverySettingValue_Encryption {
+ /**
+ * @generated from enum value: ENCRYPTION_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ENCRYPTION_NONE = 1;
+ */
+ NONE = 1,
+
+ /**
+ * @generated from enum value: ENCRYPTION_STARTTLS = 2;
+ */
+ STARTTLS = 2,
+
+ /**
+ * @generated from enum value: ENCRYPTION_SSL_TLS = 3;
+ */
+ SSL_TLS = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption.
+ */
+export declare const SMTPMailDeliverySettingValue_EncryptionSchema: GenEnum<SMTPMailDeliverySettingValue_Encryption>;
+
+/**
+ * We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.
+ *
+ * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication
+ */
+export enum SMTPMailDeliverySettingValue_Authentication {
+ /**
+ * @generated from enum value: AUTHENTICATION_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: AUTHENTICATION_NONE = 1;
+ */
+ NONE = 1,
+
+ /**
+ * @generated from enum value: AUTHENTICATION_PLAIN = 2;
+ */
+ PLAIN = 2,
+
+ /**
+ * @generated from enum value: AUTHENTICATION_LOGIN = 3;
+ */
+ LOGIN = 3,
+
+ /**
+ * @generated from enum value: AUTHENTICATION_CRAM_MD5 = 4;
+ */
+ CRAM_MD5 = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication.
+ */
+export declare const SMTPMailDeliverySettingValue_AuthenticationSchema: GenEnum<SMTPMailDeliverySettingValue_Authentication>;
+
+/**
+ * @generated from message bytebase.v1.AppIMSetting
+ */
+export declare type AppIMSetting = Message<"bytebase.v1.AppIMSetting"> & {
+ /**
+ * @generated from field: bytebase.v1.AppIMSetting.Slack slack = 1;
+ */
+ slack?: AppIMSetting_Slack;
+
+ /**
+ * @generated from field: bytebase.v1.AppIMSetting.Feishu feishu = 2;
+ */
+ feishu?: AppIMSetting_Feishu;
+
+ /**
+ * @generated from field: bytebase.v1.AppIMSetting.Wecom wecom = 3;
+ */
+ wecom?: AppIMSetting_Wecom;
+
+ /**
+ * @generated from field: bytebase.v1.AppIMSetting.Lark lark = 4;
+ */
+ lark?: AppIMSetting_Lark;
+
+ /**
+ * @generated from field: bytebase.v1.AppIMSetting.DingTalk dingtalk = 5;
+ */
+ dingtalk?: AppIMSetting_DingTalk;
+};
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.
+ * Use `create(AppIMSettingSchema)` to create a new message.
+ */
+export declare const AppIMSettingSchema: GenMessage<AppIMSetting>;
+
+/**
+ * @generated from message bytebase.v1.AppIMSetting.Slack
+ */
+export declare type AppIMSetting_Slack = Message<"bytebase.v1.AppIMSetting.Slack"> & {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: string token = 2;
+ */
+ token: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Slack.
+ * Use `create(AppIMSetting_SlackSchema)` to create a new message.
+ */
+export declare const AppIMSetting_SlackSchema: GenMessage<AppIMSetting_Slack>;
+
+/**
+ * @generated from message bytebase.v1.AppIMSetting.Feishu
+ */
+export declare type AppIMSetting_Feishu = Message<"bytebase.v1.AppIMSetting.Feishu"> & {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: string app_id = 2;
+ */
+ appId: string;
+
+ /**
+ * @generated from field: string app_secret = 3;
+ */
+ appSecret: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Feishu.
+ * Use `create(AppIMSetting_FeishuSchema)` to create a new message.
+ */
+export declare const AppIMSetting_FeishuSchema: GenMessage<AppIMSetting_Feishu>;
+
+/**
+ * @generated from message bytebase.v1.AppIMSetting.Wecom
+ */
+export declare type AppIMSetting_Wecom = Message<"bytebase.v1.AppIMSetting.Wecom"> & {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: string corp_id = 2;
+ */
+ corpId: string;
+
+ /**
+ * @generated from field: string agent_id = 3;
+ */
+ agentId: string;
+
+ /**
+ * @generated from field: string secret = 4;
+ */
+ secret: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Wecom.
+ * Use `create(AppIMSetting_WecomSchema)` to create a new message.
+ */
+export declare const AppIMSetting_WecomSchema: GenMessage<AppIMSetting_Wecom>;
+
+/**
+ * @generated from message bytebase.v1.AppIMSetting.Lark
+ */
+export declare type AppIMSetting_Lark = Message<"bytebase.v1.AppIMSetting.Lark"> & {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: string app_id = 2;
+ */
+ appId: string;
+
+ /**
+ * @generated from field: string app_secret = 3;
+ */
+ appSecret: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Lark.
+ * Use `create(AppIMSetting_LarkSchema)` to create a new message.
+ */
+export declare const AppIMSetting_LarkSchema: GenMessage<AppIMSetting_Lark>;
+
+/**
+ * @generated from message bytebase.v1.AppIMSetting.DingTalk
+ */
+export declare type AppIMSetting_DingTalk = Message<"bytebase.v1.AppIMSetting.DingTalk"> & {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: string client_id = 2;
+ */
+ clientId: string;
+
+ /**
+ * @generated from field: string client_secret = 3;
+ */
+ clientSecret: string;
+
+ /**
+ * @generated from field: string robot_code = 4;
+ */
+ robotCode: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.DingTalk.
+ * Use `create(AppIMSetting_DingTalkSchema)` to create a new message.
+ */
+export declare const AppIMSetting_DingTalkSchema: GenMessage<AppIMSetting_DingTalk>;
+
+/**
+ * @generated from message bytebase.v1.AgentPluginSetting
+ */
+export declare type AgentPluginSetting = Message<"bytebase.v1.AgentPluginSetting"> & {
+ /**
+ * The URL for the agent API.
+ *
+ * @generated from field: string url = 1;
+ */
+ url: string;
+
+ /**
+ * The token for the agent.
+ *
+ * @generated from field: string token = 2;
+ */
+ token: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AgentPluginSetting.
+ * Use `create(AgentPluginSettingSchema)` to create a new message.
+ */
+export declare const AgentPluginSettingSchema: GenMessage<AgentPluginSetting>;
+
+/**
+ * @generated from message bytebase.v1.WorkspaceProfileSetting
+ */
+export declare type WorkspaceProfileSetting = Message<"bytebase.v1.WorkspaceProfileSetting"> & {
+ /**
+ * The external URL is used for sso authentication callback.
+ *
+ * @generated from field: string external_url = 1;
+ */
+ externalUrl: string;
+
+ /**
+ * Disallow self-service signup, users can only be invited by the owner.
+ *
+ * @generated from field: bool disallow_signup = 2;
+ */
+ disallowSignup: boolean;
+
+ /**
+ * Require 2FA for all users.
+ *
+ * @generated from field: bool require_2fa = 3;
+ */
+ require2fa: boolean;
+
+ /**
+ * outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode.
+ *
+ * @generated from field: repeated string outbound_ip_list = 4;
+ */
+ outboundIpList: string[];
+
+ /**
+ * The duration for token.
+ *
+ * @generated from field: google.protobuf.Duration token_duration = 6;
+ */
+ tokenDuration?: Duration;
+
+ /**
+ * The setting of custom announcement
+ *
+ * @generated from field: bytebase.v1.Announcement announcement = 7;
+ */
+ announcement?: Announcement;
+
+ /**
+ * The max duration for role expired.
+ *
+ * @generated from field: google.protobuf.Duration maximum_role_expiration = 8;
+ */
+ maximumRoleExpiration?: Duration;
+
+ /**
+ * The workspace domain, e.g. bytebase.com.
+ *
+ * @generated from field: repeated string domains = 9;
+ */
+ domains: string[];
+
+ /**
+ * Only user and group from the domains can be created and login.
+ *
+ * @generated from field: bool enforce_identity_domain = 10;
+ */
+ enforceIdentityDomain: boolean;
+
+ /**
+ * The workspace database change mode.
+ *
+ * @generated from field: bytebase.v1.DatabaseChangeMode database_change_mode = 11;
+ */
+ databaseChangeMode: DatabaseChangeMode;
+
+ /**
+ * Whether to disallow password signin. (Except workspace admins)
+ *
+ * @generated from field: bool disallow_password_signin = 12;
+ */
+ disallowPasswordSignin: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.WorkspaceProfileSetting.
+ * Use `create(WorkspaceProfileSettingSchema)` to create a new message.
+ */
+export declare const WorkspaceProfileSettingSchema: GenMessage<WorkspaceProfileSetting>;
+
+/**
+ * @generated from message bytebase.v1.Announcement
+ */
+export declare type Announcement = Message<"bytebase.v1.Announcement"> & {
+ /**
+ * The alert level of announcemnt
+ *
+ * @generated from field: bytebase.v1.Announcement.AlertLevel level = 1;
+ */
+ level: Announcement_AlertLevel;
+
+ /**
+ * The text of announcemnt
+ *
+ * @generated from field: string text = 2;
+ */
+ text: string;
+
+ /**
+ * The optional link, user can follow the link to check extra details
+ *
+ * @generated from field: string link = 3;
+ */
+ link: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Announcement.
+ * Use `create(AnnouncementSchema)` to create a new message.
+ */
+export declare const AnnouncementSchema: GenMessage<Announcement>;
+
+/**
+ * We support three levels of AlertLevel: INFO, WARNING, and ERROR.
+ *
+ * @generated from enum bytebase.v1.Announcement.AlertLevel
+ */
+export enum Announcement_AlertLevel {
+ /**
+ * @generated from enum value: ALERT_LEVEL_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: ALERT_LEVEL_INFO = 1;
+ */
+ INFO = 1,
+
+ /**
+ * @generated from enum value: ALERT_LEVEL_WARNING = 2;
+ */
+ WARNING = 2,
+
+ /**
+ * @generated from enum value: ALERT_LEVEL_CRITICAL = 3;
+ */
+ CRITICAL = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Announcement.AlertLevel.
+ */
+export declare const Announcement_AlertLevelSchema: GenEnum<Announcement_AlertLevel>;
+
+/**
+ * @generated from message bytebase.v1.WorkspaceApprovalSetting
+ */
+export declare type WorkspaceApprovalSetting = Message<"bytebase.v1.WorkspaceApprovalSetting"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.WorkspaceApprovalSetting.Rule rules = 1;
+ */
+ rules: WorkspaceApprovalSetting_Rule[];
+};
+
+/**
+ * Describes the message bytebase.v1.WorkspaceApprovalSetting.
+ * Use `create(WorkspaceApprovalSettingSchema)` to create a new message.
+ */
+export declare const WorkspaceApprovalSettingSchema: GenMessage<WorkspaceApprovalSetting>;
+
+/**
+ * @generated from message bytebase.v1.WorkspaceApprovalSetting.Rule
+ */
+export declare type WorkspaceApprovalSetting_Rule = Message<"bytebase.v1.WorkspaceApprovalSetting.Rule"> & {
+ /**
+ * @generated from field: bytebase.v1.ApprovalTemplate template = 2;
+ */
+ template?: ApprovalTemplate;
+
+ /**
+ * The condition that is associated with the rule.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Support variables:
+ * source: the risk source, check the Source enum in the Risk message for the values, support "==" operator.
+ * level: the risk level, support 100 (low), 200 (moderate) and 300 (high), support "==" operator.
+ *
+ * For examples:
+ * (source == "DML" && level == 200) || (source == "DDL" && level == 300)
+ *
+ * @generated from field: google.type.Expr condition = 3;
+ */
+ condition?: Expr;
+};
+
+/**
+ * Describes the message bytebase.v1.WorkspaceApprovalSetting.Rule.
+ * Use `create(WorkspaceApprovalSetting_RuleSchema)` to create a new message.
+ */
+export declare const WorkspaceApprovalSetting_RuleSchema: GenMessage<WorkspaceApprovalSetting_Rule>;
+
+/**
+ * @generated from message bytebase.v1.SchemaTemplateSetting
+ */
+export declare type SchemaTemplateSetting = Message<"bytebase.v1.SchemaTemplateSetting"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.SchemaTemplateSetting.FieldTemplate field_templates = 1;
+ */
+ fieldTemplates: SchemaTemplateSetting_FieldTemplate[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.SchemaTemplateSetting.ColumnType column_types = 2;
+ */
+ columnTypes: SchemaTemplateSetting_ColumnType[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.SchemaTemplateSetting.TableTemplate table_templates = 3;
+ */
+ tableTemplates: SchemaTemplateSetting_TableTemplate[];
+};
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.
+ * Use `create(SchemaTemplateSettingSchema)` to create a new message.
+ */
+export declare const SchemaTemplateSettingSchema: GenMessage<SchemaTemplateSetting>;
+
+/**
+ * @generated from message bytebase.v1.SchemaTemplateSetting.FieldTemplate
+ */
+export declare type SchemaTemplateSetting_FieldTemplate = Message<"bytebase.v1.SchemaTemplateSetting.FieldTemplate"> & {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 2;
+ */
+ engine: Engine;
+
+ /**
+ * @generated from field: string category = 3;
+ */
+ category: string;
+
+ /**
+ * @generated from field: bytebase.v1.ColumnMetadata column = 4;
+ */
+ column?: ColumnMetadata;
+
+ /**
+ * @generated from field: bytebase.v1.ColumnCatalog catalog = 5;
+ */
+ catalog?: ColumnCatalog;
+};
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.FieldTemplate.
+ * Use `create(SchemaTemplateSetting_FieldTemplateSchema)` to create a new message.
+ */
+export declare const SchemaTemplateSetting_FieldTemplateSchema: GenMessage<SchemaTemplateSetting_FieldTemplate>;
+
+/**
+ * @generated from message bytebase.v1.SchemaTemplateSetting.ColumnType
+ */
+export declare type SchemaTemplateSetting_ColumnType = Message<"bytebase.v1.SchemaTemplateSetting.ColumnType"> & {
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 1;
+ */
+ engine: Engine;
+
+ /**
+ * @generated from field: bool enabled = 2;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: repeated string types = 3;
+ */
+ types: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.ColumnType.
+ * Use `create(SchemaTemplateSetting_ColumnTypeSchema)` to create a new message.
+ */
+export declare const SchemaTemplateSetting_ColumnTypeSchema: GenMessage<SchemaTemplateSetting_ColumnType>;
+
+/**
+ * @generated from message bytebase.v1.SchemaTemplateSetting.TableTemplate
+ */
+export declare type SchemaTemplateSetting_TableTemplate = Message<"bytebase.v1.SchemaTemplateSetting.TableTemplate"> & {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 2;
+ */
+ engine: Engine;
+
+ /**
+ * @generated from field: string category = 3;
+ */
+ category: string;
+
+ /**
+ * @generated from field: bytebase.v1.TableMetadata table = 4;
+ */
+ table?: TableMetadata;
+
+ /**
+ * @generated from field: bytebase.v1.TableCatalog catalog = 5;
+ */
+ catalog?: TableCatalog;
+};
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.TableTemplate.
+ * Use `create(SchemaTemplateSetting_TableTemplateSchema)` to create a new message.
+ */
+export declare const SchemaTemplateSetting_TableTemplateSchema: GenMessage<SchemaTemplateSetting_TableTemplate>;
+
+/**
+ * @generated from message bytebase.v1.WorkspaceTrialSetting
+ */
+export declare type WorkspaceTrialSetting = Message<"bytebase.v1.WorkspaceTrialSetting"> & {
+ /**
+ * @generated from field: int32 instance_count = 1;
+ */
+ instanceCount: number;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp expire_time = 2;
+ */
+ expireTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp issued_time = 3;
+ */
+ issuedTime?: Timestamp;
+
+ /**
+ * @generated from field: string subject = 4;
+ */
+ subject: string;
+
+ /**
+ * @generated from field: string org_name = 5;
+ */
+ orgName: string;
+
+ /**
+ * @generated from field: bytebase.v1.PlanType plan = 6;
+ */
+ plan: PlanType;
+};
+
+/**
+ * Describes the message bytebase.v1.WorkspaceTrialSetting.
+ * Use `create(WorkspaceTrialSettingSchema)` to create a new message.
+ */
+export declare const WorkspaceTrialSettingSchema: GenMessage<WorkspaceTrialSetting>;
+
+/**
+ * @generated from message bytebase.v1.DataClassificationSetting
+ */
+export declare type DataClassificationSetting = Message<"bytebase.v1.DataClassificationSetting"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.DataClassificationSetting.DataClassificationConfig configs = 1;
+ */
+ configs: DataClassificationSetting_DataClassificationConfig[];
+};
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.
+ * Use `create(DataClassificationSettingSchema)` to create a new message.
+ */
+export declare const DataClassificationSettingSchema: GenMessage<DataClassificationSetting>;
+
+/**
+ * @generated from message bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ */
+export declare type DataClassificationSetting_DataClassificationConfig = Message<"bytebase.v1.DataClassificationSetting.DataClassificationConfig"> & {
+ /**
+ * id is the uuid for classification. Each project can chose one classification config.
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * levels is user defined level list for classification.
+ * The order for the level decides its priority.
+ *
+ * @generated from field: repeated bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level levels = 3;
+ */
+ levels: DataClassificationSetting_DataClassificationConfig_Level[];
+
+ /**
+ * classification is the id - DataClassification map.
+ * The id should in [0-9]+-[0-9]+-[0-9]+ format.
+ *
+ * @generated from field: map<string, bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification> classification = 4;
+ */
+ classification: { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification };
+
+ /**
+ * If true, we will only store the classification in the config.
+ * Otherwise we will get the classification from table/column comment,
+ * and write back to the schema metadata.
+ *
+ * @generated from field: bool classification_from_config = 5;
+ */
+ classificationFromConfig: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.
+ * Use `create(DataClassificationSetting_DataClassificationConfigSchema)` to create a new message.
+ */
+export declare const DataClassificationSetting_DataClassificationConfigSchema: GenMessage<DataClassificationSetting_DataClassificationConfig>;
+
+/**
+ * @generated from message bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ */
+export declare type DataClassificationSetting_DataClassificationConfig_Level = Message<"bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"> & {
+ /**
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 3;
+ */
+ description: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level.
+ * Use `create(DataClassificationSetting_DataClassificationConfig_LevelSchema)` to create a new message.
+ */
+export declare const DataClassificationSetting_DataClassificationConfig_LevelSchema: GenMessage<DataClassificationSetting_DataClassificationConfig_Level>;
+
+/**
+ * @generated from message bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ */
+export declare type DataClassificationSetting_DataClassificationConfig_DataClassification = Message<"bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification"> & {
+ /**
+ * id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * @generated from field: string description = 3;
+ */
+ description: string;
+
+ /**
+ * @generated from field: optional string level_id = 4;
+ */
+ levelId?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification.
+ * Use `create(DataClassificationSetting_DataClassificationConfig_DataClassificationSchema)` to create a new message.
+ */
+export declare const DataClassificationSetting_DataClassificationConfig_DataClassificationSchema: GenMessage<DataClassificationSetting_DataClassificationConfig_DataClassification>;
+
+/**
+ * @generated from message bytebase.v1.SemanticTypeSetting
+ */
+export declare type SemanticTypeSetting = Message<"bytebase.v1.SemanticTypeSetting"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.SemanticTypeSetting.SemanticType types = 1;
+ */
+ types: SemanticTypeSetting_SemanticType[];
+};
+
+/**
+ * Describes the message bytebase.v1.SemanticTypeSetting.
+ * Use `create(SemanticTypeSettingSchema)` to create a new message.
+ */
+export declare const SemanticTypeSettingSchema: GenMessage<SemanticTypeSetting>;
+
+/**
+ * @generated from message bytebase.v1.SemanticTypeSetting.SemanticType
+ */
+export declare type SemanticTypeSetting_SemanticType = Message<"bytebase.v1.SemanticTypeSetting.SemanticType"> & {
+ /**
+ * id is the uuid for semantic type.
+ *
+ * @generated from field: string id = 1;
+ */
+ id: string;
+
+ /**
+ * the title of the semantic type, it should not be empty.
+ *
+ * @generated from field: string title = 2;
+ */
+ title: string;
+
+ /**
+ * the description of the semantic type, it can be empty.
+ *
+ * @generated from field: string description = 3;
+ */
+ description: string;
+
+ /**
+ * @generated from field: bytebase.v1.Algorithm algorithm = 6;
+ */
+ algorithm?: Algorithm;
+};
+
+/**
+ * Describes the message bytebase.v1.SemanticTypeSetting.SemanticType.
+ * Use `create(SemanticTypeSetting_SemanticTypeSchema)` to create a new message.
+ */
+export declare const SemanticTypeSetting_SemanticTypeSchema: GenMessage<SemanticTypeSetting_SemanticType>;
+
+/**
+ * @generated from message bytebase.v1.Algorithm
+ */
+export declare type Algorithm = Message<"bytebase.v1.Algorithm"> & {
+ /**
+ * @generated from oneof bytebase.v1.Algorithm.mask
+ */
+ mask: {
+ /**
+ * @generated from field: bytebase.v1.Algorithm.FullMask full_mask = 5;
+ */
+ value: Algorithm_FullMask;
+ case: "fullMask";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Algorithm.RangeMask range_mask = 6;
+ */
+ value: Algorithm_RangeMask;
+ case: "rangeMask";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Algorithm.MD5Mask md5_mask = 7;
+ */
+ value: Algorithm_MD5Mask;
+ case: "md5Mask";
+ } | {
+ /**
+ * @generated from field: bytebase.v1.Algorithm.InnerOuterMask inner_outer_mask = 8;
+ */
+ value: Algorithm_InnerOuterMask;
+ case: "innerOuterMask";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.Algorithm.
+ * Use `create(AlgorithmSchema)` to create a new message.
+ */
+export declare const AlgorithmSchema: GenMessage<Algorithm>;
+
+/**
+ * @generated from message bytebase.v1.Algorithm.FullMask
+ */
+export declare type Algorithm_FullMask = Message<"bytebase.v1.Algorithm.FullMask"> & {
+ /**
+ * substitution is the string used to replace the original value, the
+ * max length of the string is 16 bytes.
+ *
+ * @generated from field: string substitution = 1;
+ */
+ substitution: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Algorithm.FullMask.
+ * Use `create(Algorithm_FullMaskSchema)` to create a new message.
+ */
+export declare const Algorithm_FullMaskSchema: GenMessage<Algorithm_FullMask>;
+
+/**
+ * @generated from message bytebase.v1.Algorithm.RangeMask
+ */
+export declare type Algorithm_RangeMask = Message<"bytebase.v1.Algorithm.RangeMask"> & {
+ /**
+ * We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
+ * But frontend can be started with a single rule easily.
+ *
+ * @generated from field: repeated bytebase.v1.Algorithm.RangeMask.Slice slices = 1;
+ */
+ slices: Algorithm_RangeMask_Slice[];
+};
+
+/**
+ * Describes the message bytebase.v1.Algorithm.RangeMask.
+ * Use `create(Algorithm_RangeMaskSchema)` to create a new message.
+ */
+export declare const Algorithm_RangeMaskSchema: GenMessage<Algorithm_RangeMask>;
+
+/**
+ * @generated from message bytebase.v1.Algorithm.RangeMask.Slice
+ */
+export declare type Algorithm_RangeMask_Slice = Message<"bytebase.v1.Algorithm.RangeMask.Slice"> & {
+ /**
+ * start is the start index of the original value, start from 0 and should be less than stop.
+ *
+ * @generated from field: int32 start = 1;
+ */
+ start: number;
+
+ /**
+ * stop is the stop index of the original value, should be less than the length of the original value.
+ *
+ * @generated from field: int32 end = 2;
+ */
+ end: number;
+
+ /**
+ * substitution is the string used to replace the OriginalValue[start:end).
+ *
+ * @generated from field: string substitution = 3;
+ */
+ substitution: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Algorithm.RangeMask.Slice.
+ * Use `create(Algorithm_RangeMask_SliceSchema)` to create a new message.
+ */
+export declare const Algorithm_RangeMask_SliceSchema: GenMessage<Algorithm_RangeMask_Slice>;
+
+/**
+ * @generated from message bytebase.v1.Algorithm.MD5Mask
+ */
+export declare type Algorithm_MD5Mask = Message<"bytebase.v1.Algorithm.MD5Mask"> & {
+ /**
+ * salt is the salt value to generate a different hash that with the word alone.
+ *
+ * @generated from field: string salt = 1;
+ */
+ salt: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Algorithm.MD5Mask.
+ * Use `create(Algorithm_MD5MaskSchema)` to create a new message.
+ */
+export declare const Algorithm_MD5MaskSchema: GenMessage<Algorithm_MD5Mask>;
+
+/**
+ * @generated from message bytebase.v1.Algorithm.InnerOuterMask
+ */
+export declare type Algorithm_InnerOuterMask = Message<"bytebase.v1.Algorithm.InnerOuterMask"> & {
+ /**
+ * @generated from field: int32 prefix_len = 1;
+ */
+ prefixLen: number;
+
+ /**
+ * @generated from field: int32 suffix_len = 2;
+ */
+ suffixLen: number;
+
+ /**
+ * @generated from field: bytebase.v1.Algorithm.InnerOuterMask.MaskType type = 3;
+ */
+ type: Algorithm_InnerOuterMask_MaskType;
+
+ /**
+ * @generated from field: string substitution = 4;
+ */
+ substitution: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Algorithm.InnerOuterMask.
+ * Use `create(Algorithm_InnerOuterMaskSchema)` to create a new message.
+ */
+export declare const Algorithm_InnerOuterMaskSchema: GenMessage<Algorithm_InnerOuterMask>;
+
+/**
+ * @generated from enum bytebase.v1.Algorithm.InnerOuterMask.MaskType
+ */
+export enum Algorithm_InnerOuterMask_MaskType {
+ /**
+ * @generated from enum value: MASK_TYPE_UNSPECIFIED = 0;
+ */
+ MASK_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: INNER = 1;
+ */
+ INNER = 1,
+
+ /**
+ * @generated from enum value: OUTER = 2;
+ */
+ OUTER = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.Algorithm.InnerOuterMask.MaskType.
+ */
+export declare const Algorithm_InnerOuterMask_MaskTypeSchema: GenEnum<Algorithm_InnerOuterMask_MaskType>;
+
+/**
+ * @generated from message bytebase.v1.MaximumSQLResultSizeSetting
+ */
+export declare type MaximumSQLResultSizeSetting = Message<"bytebase.v1.MaximumSQLResultSizeSetting"> & {
+ /**
+ * The limit is in bytes.
+ * The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0.
+ *
+ * @generated from field: int64 limit = 1;
+ */
+ limit: bigint;
+};
+
+/**
+ * Describes the message bytebase.v1.MaximumSQLResultSizeSetting.
+ * Use `create(MaximumSQLResultSizeSettingSchema)` to create a new message.
+ */
+export declare const MaximumSQLResultSizeSettingSchema: GenMessage<MaximumSQLResultSizeSetting>;
+
+/**
+ * @generated from message bytebase.v1.SCIMSetting
+ */
+export declare type SCIMSetting = Message<"bytebase.v1.SCIMSetting"> & {
+ /**
+ * @generated from field: string token = 1;
+ */
+ token: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SCIMSetting.
+ * Use `create(SCIMSettingSchema)` to create a new message.
+ */
+export declare const SCIMSettingSchema: GenMessage<SCIMSetting>;
+
+/**
+ * @generated from message bytebase.v1.PasswordRestrictionSetting
+ */
+export declare type PasswordRestrictionSetting = Message<"bytebase.v1.PasswordRestrictionSetting"> & {
+ /**
+ * min_length is the minimum length for password, should no less than 8.
+ *
+ * @generated from field: int32 min_length = 1;
+ */
+ minLength: number;
+
+ /**
+ * require_number requires the password must contains at least one number.
+ *
+ * @generated from field: bool require_number = 2;
+ */
+ requireNumber: boolean;
+
+ /**
+ * require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ *
+ * @generated from field: bool require_letter = 3;
+ */
+ requireLetter: boolean;
+
+ /**
+ * require_uppercase_letter requires the password must contains at least one upper case letter.
+ *
+ * @generated from field: bool require_uppercase_letter = 4;
+ */
+ requireUppercaseLetter: boolean;
+
+ /**
+ * require_uppercase_letter requires the password must contains at least one special character.
+ *
+ * @generated from field: bool require_special_character = 5;
+ */
+ requireSpecialCharacter: boolean;
+
+ /**
+ * require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ *
+ * @generated from field: bool require_reset_password_for_first_login = 6;
+ */
+ requireResetPasswordForFirstLogin: boolean;
+
+ /**
+ * password_rotation requires users to reset their password after the duration.
+ *
+ * @generated from field: google.protobuf.Duration password_rotation = 7;
+ */
+ passwordRotation?: Duration;
+};
+
+/**
+ * Describes the message bytebase.v1.PasswordRestrictionSetting.
+ * Use `create(PasswordRestrictionSettingSchema)` to create a new message.
+ */
+export declare const PasswordRestrictionSettingSchema: GenMessage<PasswordRestrictionSetting>;
+
+/**
+ * @generated from message bytebase.v1.AISetting
+ */
+export declare type AISetting = Message<"bytebase.v1.AISetting"> & {
+ /**
+ * @generated from field: bool enabled = 1;
+ */
+ enabled: boolean;
+
+ /**
+ * @generated from field: bytebase.v1.AISetting.Provider provider = 2;
+ */
+ provider: AISetting_Provider;
+
+ /**
+ * @generated from field: string endpoint = 3;
+ */
+ endpoint: string;
+
+ /**
+ * @generated from field: string api_key = 4;
+ */
+ apiKey: string;
+
+ /**
+ * @generated from field: string model = 5;
+ */
+ model: string;
+
+ /**
+ * @generated from field: string version = 6;
+ */
+ version: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AISetting.
+ * Use `create(AISettingSchema)` to create a new message.
+ */
+export declare const AISettingSchema: GenMessage<AISetting>;
+
+/**
+ * @generated from enum bytebase.v1.AISetting.Provider
+ */
+export enum AISetting_Provider {
+ /**
+ * @generated from enum value: PROVIDER_UNSPECIFIED = 0;
+ */
+ PROVIDER_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: OPEN_AI = 1;
+ */
+ OPEN_AI = 1,
+
+ /**
+ * @generated from enum value: CLAUDE = 2;
+ */
+ CLAUDE = 2,
+
+ /**
+ * @generated from enum value: GEMINI = 3;
+ */
+ GEMINI = 3,
+
+ /**
+ * @generated from enum value: AZURE_OPENAI = 4;
+ */
+ AZURE_OPENAI = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.AISetting.Provider.
+ */
+export declare const AISetting_ProviderSchema: GenEnum<AISetting_Provider>;
+
+/**
+ * @generated from message bytebase.v1.EnvironmentSetting
+ */
+export declare type EnvironmentSetting = Message<"bytebase.v1.EnvironmentSetting"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.EnvironmentSetting.Environment environments = 1;
+ */
+ environments: EnvironmentSetting_Environment[];
+};
+
+/**
+ * Describes the message bytebase.v1.EnvironmentSetting.
+ * Use `create(EnvironmentSettingSchema)` to create a new message.
+ */
+export declare const EnvironmentSettingSchema: GenMessage<EnvironmentSetting>;
+
+/**
+ * @generated from message bytebase.v1.EnvironmentSetting.Environment
+ */
+export declare type EnvironmentSetting_Environment = Message<"bytebase.v1.EnvironmentSetting.Environment"> & {
+ /**
+ * The resource name of the environment.
+ * Format: environments/{environment}.
+ * Output only.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The resource id of the environment.
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ *
+ * @generated from field: string id = 2;
+ */
+ id: string;
+
+ /**
+ * The display name of the environment.
+ *
+ * @generated from field: string title = 3;
+ */
+ title: string;
+
+ /**
+ * @generated from field: map<string, string> tags = 4;
+ */
+ tags: { [key: string]: string };
+
+ /**
+ * @generated from field: string color = 5;
+ */
+ color: string;
+};
+
+/**
+ * Describes the message bytebase.v1.EnvironmentSetting.Environment.
+ * Use `create(EnvironmentSetting_EnvironmentSchema)` to create a new message.
+ */
+export declare const EnvironmentSetting_EnvironmentSchema: GenMessage<EnvironmentSetting_Environment>;
+
+/**
+ * @generated from enum bytebase.v1.DatabaseChangeMode
+ */
+export enum DatabaseChangeMode {
+ /**
+ * @generated from enum value: DATABASE_CHANGE_MODE_UNSPECIFIED = 0;
+ */
+ DATABASE_CHANGE_MODE_UNSPECIFIED = 0,
+
+ /**
+ * A more advanced database change process, including custom approval workflows and other advanced features.
+ * Default to this mode.
+ *
+ * @generated from enum value: PIPELINE = 1;
+ */
+ PIPELINE = 1,
+
+ /**
+ * A simple database change process in SQL editor. Users can execute SQL directly.
+ *
+ * @generated from enum value: EDITOR = 2;
+ */
+ EDITOR = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.DatabaseChangeMode.
+ */
+export declare const DatabaseChangeModeSchema: GenEnum<DatabaseChangeMode>;
+
+/**
+ * @generated from service bytebase.v1.SettingService
+ */
+export declare const SettingService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.SettingService.ListSettings
+ */
+ listSettings: {
+ methodKind: "unary";
+ input: typeof ListSettingsRequestSchema;
+ output: typeof ListSettingsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SettingService.GetSetting
+ */
+ getSetting: {
+ methodKind: "unary";
+ input: typeof GetSettingRequestSchema;
+ output: typeof SettingSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SettingService.UpdateSetting
+ */
+ updateSetting: {
+ methodKind: "unary";
+ input: typeof UpdateSettingRequestSchema;
+ output: typeof SettingSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.js b/frontend/src/types/proto-es/v1/setting_service_pb.js
new file mode 100644
index 0000000000..1aeb7ea6ba
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/setting_service_pb.js
@@ -0,0 +1,414 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/setting_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_google_type_expr } from "../google/type/expr_pb";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_database_catalog_service } from "./database_catalog_service_pb";
+import { file_v1_database_service } from "./database_service_pb";
+import { file_v1_issue_service } from "./issue_service_pb";
+import { file_v1_subscription_service } from "./subscription_service_pb";
+
+/**
+ * Describes the file v1/setting_service.proto.
+ */
+export const file_v1_setting_service = /*@__PURE__*/
+ fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjwKE0xpc3RTZXR0aW5nc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkiVwoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJAChFHZXRTZXR0aW5nUmVxdWVzdBIrCgRuYW1lGAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vU2V0dGluZyI7ChJHZXRTZXR0aW5nUmVzcG9uc2USJQoHc2V0dGluZxgBIAEoCzIULmJ5dGViYXNlLnYxLlNld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AkaKwoJVGFnc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEqVAoSRGF0YWJhc2VDaGFuZ2VNb2RlEiQKIERBVEFCQVNFX0NIQU5HRV9NT0RFX1VOU1BFQ0lGSUVEEAASDAoIUElQRUxJTkUQARIKCgZFRElUT1IQAjKuAwoOU2V0dGluZ1NlcnZpY2UShAEKDExpc3RTZXR0aW5ncxIgLmJ5dGViYXNlLnYxLkxpc3RTZXR0aW5nc1JlcXVlc3QaIS5ieXRlYmFzZS52MS5MaXN0U2V0dGluZ3NSZXNwb25zZSIv2kEAiuowEGJiLnNldHRpbmdzLmxpc3SQ6jABgtPkkwIOEgwvdjEvc2V0dGluZ3MSfwoKR2V0U2V0dGluZxIeLmJ5dGViYXNlLnYxLkdldFNldHRpbmdSZXF1ZXN0GhQuYnl0ZWJhc2UudjEuU2V0dGluZyI72kEEbmFtZYrqMA9iYi5zZXR0aW5ncy5nZXSQ6jABgtPkkwIXEhUvdjEve25hbWU9c2V0dGluZ3MvKn0SkwEKDVVwZGF0ZVNldHRpbmcSIS5ieXRlYmFzZS52MS5VcGRhdGVTZXR0aW5nUmVxdWVzdBoULmJ5dGViYXNlLnYxLlNldHRpbmciSYrqMA9iYi5zZXR0aW5ncy5zZXSQ6jABmOowAYLT5JMCKDoHc2V0dGluZzIdL3YxL3tzZXR0aW5nLm5hbWU9c2V0dGluZ3MvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_google_type_expr, file_v1_annotation, file_v1_common, file_v1_database_catalog_service, file_v1_database_service, file_v1_issue_service, file_v1_subscription_service]);
+
+/**
+ * Describes the message bytebase.v1.ListSettingsRequest.
+ * Use `create(ListSettingsRequestSchema)` to create a new message.
+ */
+export const ListSettingsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 0);
+
+/**
+ * Describes the message bytebase.v1.ListSettingsResponse.
+ * Use `create(ListSettingsResponseSchema)` to create a new message.
+ */
+export const ListSettingsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 1);
+
+/**
+ * Describes the message bytebase.v1.GetSettingRequest.
+ * Use `create(GetSettingRequestSchema)` to create a new message.
+ */
+export const GetSettingRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 2);
+
+/**
+ * Describes the message bytebase.v1.GetSettingResponse.
+ * Use `create(GetSettingResponseSchema)` to create a new message.
+ */
+export const GetSettingResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateSettingRequest.
+ * Use `create(UpdateSettingRequestSchema)` to create a new message.
+ */
+export const UpdateSettingRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 4);
+
+/**
+ * Describes the message bytebase.v1.Setting.
+ * Use `create(SettingSchema)` to create a new message.
+ */
+export const SettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 5);
+
+/**
+ * Describes the enum bytebase.v1.Setting.SettingName.
+ */
+export const Setting_SettingNameSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 5, 0);
+
+/**
+ * @generated from enum bytebase.v1.Setting.SettingName
+ */
+export const Setting_SettingName = /*@__PURE__*/
+ tsEnum(Setting_SettingNameSchema);
+
+/**
+ * Describes the message bytebase.v1.Value.
+ * Use `create(ValueSchema)` to create a new message.
+ */
+export const ValueSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 6);
+
+/**
+ * Describes the message bytebase.v1.SMTPMailDeliverySettingValue.
+ * Use `create(SMTPMailDeliverySettingValueSchema)` to create a new message.
+ */
+export const SMTPMailDeliverySettingValueSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 7);
+
+/**
+ * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption.
+ */
+export const SMTPMailDeliverySettingValue_EncryptionSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 7, 0);
+
+/**
+ * We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.
+ *
+ * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Encryption
+ */
+export const SMTPMailDeliverySettingValue_Encryption = /*@__PURE__*/
+ tsEnum(SMTPMailDeliverySettingValue_EncryptionSchema);
+
+/**
+ * Describes the enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication.
+ */
+export const SMTPMailDeliverySettingValue_AuthenticationSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 7, 1);
+
+/**
+ * We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.
+ *
+ * @generated from enum bytebase.v1.SMTPMailDeliverySettingValue.Authentication
+ */
+export const SMTPMailDeliverySettingValue_Authentication = /*@__PURE__*/
+ tsEnum(SMTPMailDeliverySettingValue_AuthenticationSchema);
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.
+ * Use `create(AppIMSettingSchema)` to create a new message.
+ */
+export const AppIMSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8);
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Slack.
+ * Use `create(AppIMSetting_SlackSchema)` to create a new message.
+ */
+export const AppIMSetting_SlackSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8, 0);
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Feishu.
+ * Use `create(AppIMSetting_FeishuSchema)` to create a new message.
+ */
+export const AppIMSetting_FeishuSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8, 1);
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Wecom.
+ * Use `create(AppIMSetting_WecomSchema)` to create a new message.
+ */
+export const AppIMSetting_WecomSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8, 2);
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.Lark.
+ * Use `create(AppIMSetting_LarkSchema)` to create a new message.
+ */
+export const AppIMSetting_LarkSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8, 3);
+
+/**
+ * Describes the message bytebase.v1.AppIMSetting.DingTalk.
+ * Use `create(AppIMSetting_DingTalkSchema)` to create a new message.
+ */
+export const AppIMSetting_DingTalkSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8, 4);
+
+/**
+ * Describes the message bytebase.v1.AgentPluginSetting.
+ * Use `create(AgentPluginSettingSchema)` to create a new message.
+ */
+export const AgentPluginSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 9);
+
+/**
+ * Describes the message bytebase.v1.WorkspaceProfileSetting.
+ * Use `create(WorkspaceProfileSettingSchema)` to create a new message.
+ */
+export const WorkspaceProfileSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 10);
+
+/**
+ * Describes the message bytebase.v1.Announcement.
+ * Use `create(AnnouncementSchema)` to create a new message.
+ */
+export const AnnouncementSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 11);
+
+/**
+ * Describes the enum bytebase.v1.Announcement.AlertLevel.
+ */
+export const Announcement_AlertLevelSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 11, 0);
+
+/**
+ * We support three levels of AlertLevel: INFO, WARNING, and ERROR.
+ *
+ * @generated from enum bytebase.v1.Announcement.AlertLevel
+ */
+export const Announcement_AlertLevel = /*@__PURE__*/
+ tsEnum(Announcement_AlertLevelSchema);
+
+/**
+ * Describes the message bytebase.v1.WorkspaceApprovalSetting.
+ * Use `create(WorkspaceApprovalSettingSchema)` to create a new message.
+ */
+export const WorkspaceApprovalSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 12);
+
+/**
+ * Describes the message bytebase.v1.WorkspaceApprovalSetting.Rule.
+ * Use `create(WorkspaceApprovalSetting_RuleSchema)` to create a new message.
+ */
+export const WorkspaceApprovalSetting_RuleSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 12, 0);
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.
+ * Use `create(SchemaTemplateSettingSchema)` to create a new message.
+ */
+export const SchemaTemplateSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 13);
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.FieldTemplate.
+ * Use `create(SchemaTemplateSetting_FieldTemplateSchema)` to create a new message.
+ */
+export const SchemaTemplateSetting_FieldTemplateSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 13, 0);
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.ColumnType.
+ * Use `create(SchemaTemplateSetting_ColumnTypeSchema)` to create a new message.
+ */
+export const SchemaTemplateSetting_ColumnTypeSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 13, 1);
+
+/**
+ * Describes the message bytebase.v1.SchemaTemplateSetting.TableTemplate.
+ * Use `create(SchemaTemplateSetting_TableTemplateSchema)` to create a new message.
+ */
+export const SchemaTemplateSetting_TableTemplateSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 13, 2);
+
+/**
+ * Describes the message bytebase.v1.WorkspaceTrialSetting.
+ * Use `create(WorkspaceTrialSettingSchema)` to create a new message.
+ */
+export const WorkspaceTrialSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 14);
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.
+ * Use `create(DataClassificationSettingSchema)` to create a new message.
+ */
+export const DataClassificationSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 15);
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.
+ * Use `create(DataClassificationSetting_DataClassificationConfigSchema)` to create a new message.
+ */
+export const DataClassificationSetting_DataClassificationConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 15, 0);
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level.
+ * Use `create(DataClassificationSetting_DataClassificationConfig_LevelSchema)` to create a new message.
+ */
+export const DataClassificationSetting_DataClassificationConfig_LevelSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 15, 0, 0);
+
+/**
+ * Describes the message bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification.
+ * Use `create(DataClassificationSetting_DataClassificationConfig_DataClassificationSchema)` to create a new message.
+ */
+export const DataClassificationSetting_DataClassificationConfig_DataClassificationSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 15, 0, 1);
+
+/**
+ * Describes the message bytebase.v1.SemanticTypeSetting.
+ * Use `create(SemanticTypeSettingSchema)` to create a new message.
+ */
+export const SemanticTypeSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 16);
+
+/**
+ * Describes the message bytebase.v1.SemanticTypeSetting.SemanticType.
+ * Use `create(SemanticTypeSetting_SemanticTypeSchema)` to create a new message.
+ */
+export const SemanticTypeSetting_SemanticTypeSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 16, 0);
+
+/**
+ * Describes the message bytebase.v1.Algorithm.
+ * Use `create(AlgorithmSchema)` to create a new message.
+ */
+export const AlgorithmSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 17);
+
+/**
+ * Describes the message bytebase.v1.Algorithm.FullMask.
+ * Use `create(Algorithm_FullMaskSchema)` to create a new message.
+ */
+export const Algorithm_FullMaskSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 17, 0);
+
+/**
+ * Describes the message bytebase.v1.Algorithm.RangeMask.
+ * Use `create(Algorithm_RangeMaskSchema)` to create a new message.
+ */
+export const Algorithm_RangeMaskSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 17, 1);
+
+/**
+ * Describes the message bytebase.v1.Algorithm.RangeMask.Slice.
+ * Use `create(Algorithm_RangeMask_SliceSchema)` to create a new message.
+ */
+export const Algorithm_RangeMask_SliceSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 17, 1, 0);
+
+/**
+ * Describes the message bytebase.v1.Algorithm.MD5Mask.
+ * Use `create(Algorithm_MD5MaskSchema)` to create a new message.
+ */
+export const Algorithm_MD5MaskSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 17, 2);
+
+/**
+ * Describes the message bytebase.v1.Algorithm.InnerOuterMask.
+ * Use `create(Algorithm_InnerOuterMaskSchema)` to create a new message.
+ */
+export const Algorithm_InnerOuterMaskSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 17, 3);
+
+/**
+ * Describes the enum bytebase.v1.Algorithm.InnerOuterMask.MaskType.
+ */
+export const Algorithm_InnerOuterMask_MaskTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 17, 3, 0);
+
+/**
+ * @generated from enum bytebase.v1.Algorithm.InnerOuterMask.MaskType
+ */
+export const Algorithm_InnerOuterMask_MaskType = /*@__PURE__*/
+ tsEnum(Algorithm_InnerOuterMask_MaskTypeSchema);
+
+/**
+ * Describes the message bytebase.v1.MaximumSQLResultSizeSetting.
+ * Use `create(MaximumSQLResultSizeSettingSchema)` to create a new message.
+ */
+export const MaximumSQLResultSizeSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 18);
+
+/**
+ * Describes the message bytebase.v1.SCIMSetting.
+ * Use `create(SCIMSettingSchema)` to create a new message.
+ */
+export const SCIMSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 19);
+
+/**
+ * Describes the message bytebase.v1.PasswordRestrictionSetting.
+ * Use `create(PasswordRestrictionSettingSchema)` to create a new message.
+ */
+export const PasswordRestrictionSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 20);
+
+/**
+ * Describes the message bytebase.v1.AISetting.
+ * Use `create(AISettingSchema)` to create a new message.
+ */
+export const AISettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 21);
+
+/**
+ * Describes the enum bytebase.v1.AISetting.Provider.
+ */
+export const AISetting_ProviderSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 21, 0);
+
+/**
+ * @generated from enum bytebase.v1.AISetting.Provider
+ */
+export const AISetting_Provider = /*@__PURE__*/
+ tsEnum(AISetting_ProviderSchema);
+
+/**
+ * Describes the message bytebase.v1.EnvironmentSetting.
+ * Use `create(EnvironmentSettingSchema)` to create a new message.
+ */
+export const EnvironmentSettingSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 22);
+
+/**
+ * Describes the message bytebase.v1.EnvironmentSetting.Environment.
+ * Use `create(EnvironmentSetting_EnvironmentSchema)` to create a new message.
+ */
+export const EnvironmentSetting_EnvironmentSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 22, 0);
+
+/**
+ * Describes the enum bytebase.v1.DatabaseChangeMode.
+ */
+export const DatabaseChangeModeSchema = /*@__PURE__*/
+ enumDesc(file_v1_setting_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.DatabaseChangeMode
+ */
+export const DatabaseChangeMode = /*@__PURE__*/
+ tsEnum(DatabaseChangeModeSchema);
+
+/**
+ * @generated from service bytebase.v1.SettingService
+ */
+export const SettingService = /*@__PURE__*/
+ serviceDesc(file_v1_setting_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/sheet_service_pb.d.ts b/frontend/src/types/proto-es/v1/sheet_service_pb.d.ts
new file mode 100644
index 0000000000..17419f60b9
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/sheet_service_pb.d.ts
@@ -0,0 +1,313 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/sheet_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { Engine } from "./common_pb";
+
+/**
+ * Describes the file v1/sheet_service.proto.
+ */
+export declare const file_v1_sheet_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.CreateSheetRequest
+ */
+export declare type CreateSheetRequest = Message<"bytebase.v1.CreateSheetRequest"> & {
+ /**
+ * The parent resource where this sheet will be created.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * The sheet to create.
+ *
+ * @generated from field: bytebase.v1.Sheet sheet = 2;
+ */
+ sheet?: Sheet;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateSheetRequest.
+ * Use `create(CreateSheetRequestSchema)` to create a new message.
+ */
+export declare const CreateSheetRequestSchema: GenMessage<CreateSheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchCreateSheetsRequest
+ */
+export declare type BatchCreateSheetsRequest = Message<"bytebase.v1.BatchCreateSheetsRequest"> & {
+ /**
+ * The parent resource where all sheets will be created.
+ * Format: projects/{project}
+ *
+ * @generated from field: string parent = 1;
+ */
+ parent: string;
+
+ /**
+ * @generated from field: repeated bytebase.v1.CreateSheetRequest requests = 2;
+ */
+ requests: CreateSheetRequest[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCreateSheetsRequest.
+ * Use `create(BatchCreateSheetsRequestSchema)` to create a new message.
+ */
+export declare const BatchCreateSheetsRequestSchema: GenMessage<BatchCreateSheetsRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchCreateSheetsResponse
+ */
+export declare type BatchCreateSheetsResponse = Message<"bytebase.v1.BatchCreateSheetsResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Sheet sheets = 1;
+ */
+ sheets: Sheet[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchCreateSheetsResponse.
+ * Use `create(BatchCreateSheetsResponseSchema)` to create a new message.
+ */
+export declare const BatchCreateSheetsResponseSchema: GenMessage<BatchCreateSheetsResponse>;
+
+/**
+ * @generated from message bytebase.v1.GetSheetRequest
+ */
+export declare type GetSheetRequest = Message<"bytebase.v1.GetSheetRequest"> & {
+ /**
+ * The name of the sheet to retrieve.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content.
+ *
+ * @generated from field: bool raw = 2;
+ */
+ raw: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.GetSheetRequest.
+ * Use `create(GetSheetRequestSchema)` to create a new message.
+ */
+export declare const GetSheetRequestSchema: GenMessage<GetSheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateSheetRequest
+ */
+export declare type UpdateSheetRequest = Message<"bytebase.v1.UpdateSheetRequest"> & {
+ /**
+ * The sheet to update.
+ *
+ * The sheet's `name` field is used to identify the sheet to update.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: bytebase.v1.Sheet sheet = 1;
+ */
+ sheet?: Sheet;
+
+ /**
+ * The list of fields to be updated.
+ * Fields are specified relative to the sheet.
+ * (e.g. `title`, `statement`; *not* `sheet.title` or `sheet.statement`)
+ * Only support update the following fields for now:
+ * - `title`
+ * - `statement`
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateSheetRequest.
+ * Use `create(UpdateSheetRequestSchema)` to create a new message.
+ */
+export declare const UpdateSheetRequestSchema: GenMessage<UpdateSheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.Sheet
+ */
+export declare type Sheet = Message<"bytebase.v1.Sheet"> & {
+ /**
+ * The name of the sheet resource, generated by the server.
+ * Canonical parent is project.
+ * Format: projects/{project}/sheets/{sheet}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The title of the sheet.
+ *
+ * @generated from field: string title = 3;
+ */
+ title: string;
+
+ /**
+ * The creator of the Sheet.
+ * Format: users/{email}
+ *
+ * @generated from field: string creator = 4;
+ */
+ creator: string;
+
+ /**
+ * The create time of the sheet.
+ *
+ * @generated from field: google.protobuf.Timestamp create_time = 5;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * The content of the sheet.
+ * By default, it will be cut off, if it doesn't match the `content_size`, you can
+ * set the `raw` to true in GetSheet request to retrieve the full content.
+ *
+ * @generated from field: bytes content = 7;
+ */
+ content: Uint8Array;
+
+ /**
+ * content_size is the full size of the content, may not match the size of the `content` field.
+ *
+ * @generated from field: int64 content_size = 8;
+ */
+ contentSize: bigint;
+
+ /**
+ * @generated from field: bytebase.v1.SheetPayload payload = 13;
+ */
+ payload?: SheetPayload;
+
+ /**
+ * The SQL dialect.
+ *
+ * @generated from field: bytebase.v1.Engine engine = 14;
+ */
+ engine: Engine;
+};
+
+/**
+ * Describes the message bytebase.v1.Sheet.
+ * Use `create(SheetSchema)` to create a new message.
+ */
+export declare const SheetSchema: GenMessage<Sheet>;
+
+/**
+ * @generated from message bytebase.v1.SheetPayload
+ */
+export declare type SheetPayload = Message<"bytebase.v1.SheetPayload"> & {
+ /**
+ * @generated from field: bytebase.v1.SheetPayload.Type type = 1;
+ */
+ type: SheetPayload_Type;
+
+ /**
+ * The start and end position of each command in the sheet statement.
+ *
+ * @generated from field: repeated bytebase.v1.SheetCommand commands = 4;
+ */
+ commands: SheetCommand[];
+};
+
+/**
+ * Describes the message bytebase.v1.SheetPayload.
+ * Use `create(SheetPayloadSchema)` to create a new message.
+ */
+export declare const SheetPayloadSchema: GenMessage<SheetPayload>;
+
+/**
+ * Type of the SheetPayload.
+ *
+ * @generated from enum bytebase.v1.SheetPayload.Type
+ */
+export enum SheetPayload_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: SCHEMA_DESIGN = 1;
+ */
+ SCHEMA_DESIGN = 1,
+}
+
+/**
+ * Describes the enum bytebase.v1.SheetPayload.Type.
+ */
+export declare const SheetPayload_TypeSchema: GenEnum<SheetPayload_Type>;
+
+/**
+ * @generated from message bytebase.v1.SheetCommand
+ */
+export declare type SheetCommand = Message<"bytebase.v1.SheetCommand"> & {
+ /**
+ * @generated from field: int32 start = 1;
+ */
+ start: number;
+
+ /**
+ * @generated from field: int32 end = 2;
+ */
+ end: number;
+};
+
+/**
+ * Describes the message bytebase.v1.SheetCommand.
+ * Use `create(SheetCommandSchema)` to create a new message.
+ */
+export declare const SheetCommandSchema: GenMessage<SheetCommand>;
+
+/**
+ * @generated from service bytebase.v1.SheetService
+ */
+export declare const SheetService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.SheetService.CreateSheet
+ */
+ createSheet: {
+ methodKind: "unary";
+ input: typeof CreateSheetRequestSchema;
+ output: typeof SheetSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SheetService.BatchCreateSheets
+ */
+ batchCreateSheets: {
+ methodKind: "unary";
+ input: typeof BatchCreateSheetsRequestSchema;
+ output: typeof BatchCreateSheetsResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SheetService.GetSheet
+ */
+ getSheet: {
+ methodKind: "unary";
+ input: typeof GetSheetRequestSchema;
+ output: typeof SheetSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SheetService.UpdateSheet
+ */
+ updateSheet: {
+ methodKind: "unary";
+ input: typeof UpdateSheetRequestSchema;
+ output: typeof SheetSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/sheet_service_pb.js b/frontend/src/types/proto-es/v1/sheet_service_pb.js
new file mode 100644
index 0000000000..d76dd760fc
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/sheet_service_pb.js
@@ -0,0 +1,95 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/sheet_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+
+/**
+ * Describes the file v1/sheet_service.proto.
+ */
+export const file_v1_sheet_service = /*@__PURE__*/
+ fileDesc("ChZ2MS9zaGVldF9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJsChJDcmVhdGVTaGVldFJlcXVlc3QSLQoGcGFyZW50GAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBInCgVzaGVldBgCIAEoCzISLmJ5dGViYXNlLnYxLlNoZWV0QgTiQQECIoIBChhCYXRjaENyZWF0ZVNoZWV0c1JlcXVlc3QSLQoGcGFyZW50GAEgASgJQh3iQQEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBI3CghyZXF1ZXN0cxgCIAMoCzIfLmJ5dGViYXNlLnYxLkNyZWF0ZVNoZWV0UmVxdWVzdEIE4kEBAiI/ChlCYXRjaENyZWF0ZVNoZWV0c1Jlc3BvbnNlEiIKBnNoZWV0cxgBIAMoCzISLmJ5dGViYXNlLnYxLlNoZWV0IkkKD0dldFNoZWV0UmVxdWVzdBIpCgRuYW1lGAEgASgJQhviQQEC+kEUChJieXRlYmFzZS5jb20vU2hlZXQSCwoDcmF3GAIgASgIIm4KElVwZGF0ZVNoZWV0UmVxdWVzdBInCgVzaGVldBgBIAEoCzISLmJ5dGViYXNlLnYxLlNoZWV0QgTiQQECEi8KC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzayLFAgoFU2hlZXQSEwoEbmFtZRgBIAEoCUIF4kECAgUSEwoFdGl0bGUYAyABKAlCBOJBAQISFQoHY3JlYXRvchgEIAEoCUIE4kEBAxI1CgtjcmVhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBOJBAQ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YXNlLnYxLlNoZWV0IkLaQQRuYW1liuowDWJiLnNoZWV0cy5nZXSQ6jABgtPkkwIgEh4vdjEve25hbWU9cHJvamVjdHMvKi9zaGVldHMvKn0SowEKC1VwZGF0ZVNoZWV0Eh8uYnl0ZWJhc2UudjEuVXBkYXRlU2hlZXRSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuU2hlZXQiX9pBEXNoZWV0LHVwZGF0ZV9tYXNriuowEGJiLnNoZWV0cy51cGRhdGWQ6jABgtPkkwItOgVzaGVldDIkL3YxL3tzaGVldC5uYW1lPXByb2plY3RzLyovc2hlZXRzLyp9QjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
+
+/**
+ * Describes the message bytebase.v1.CreateSheetRequest.
+ * Use `create(CreateSheetRequestSchema)` to create a new message.
+ */
+export const CreateSheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 0);
+
+/**
+ * Describes the message bytebase.v1.BatchCreateSheetsRequest.
+ * Use `create(BatchCreateSheetsRequestSchema)` to create a new message.
+ */
+export const BatchCreateSheetsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 1);
+
+/**
+ * Describes the message bytebase.v1.BatchCreateSheetsResponse.
+ * Use `create(BatchCreateSheetsResponseSchema)` to create a new message.
+ */
+export const BatchCreateSheetsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 2);
+
+/**
+ * Describes the message bytebase.v1.GetSheetRequest.
+ * Use `create(GetSheetRequestSchema)` to create a new message.
+ */
+export const GetSheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 3);
+
+/**
+ * Describes the message bytebase.v1.UpdateSheetRequest.
+ * Use `create(UpdateSheetRequestSchema)` to create a new message.
+ */
+export const UpdateSheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 4);
+
+/**
+ * Describes the message bytebase.v1.Sheet.
+ * Use `create(SheetSchema)` to create a new message.
+ */
+export const SheetSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 5);
+
+/**
+ * Describes the message bytebase.v1.SheetPayload.
+ * Use `create(SheetPayloadSchema)` to create a new message.
+ */
+export const SheetPayloadSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 6);
+
+/**
+ * Describes the enum bytebase.v1.SheetPayload.Type.
+ */
+export const SheetPayload_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_sheet_service, 6, 0);
+
+/**
+ * Type of the SheetPayload.
+ *
+ * @generated from enum bytebase.v1.SheetPayload.Type
+ */
+export const SheetPayload_Type = /*@__PURE__*/
+ tsEnum(SheetPayload_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.SheetCommand.
+ * Use `create(SheetCommandSchema)` to create a new message.
+ */
+export const SheetCommandSchema = /*@__PURE__*/
+ messageDesc(file_v1_sheet_service, 7);
+
+/**
+ * @generated from service bytebase.v1.SheetService
+ */
+export const SheetService = /*@__PURE__*/
+ serviceDesc(file_v1_sheet_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/sql_service_pb.d.ts b/frontend/src/types/proto-es/v1/sql_service_pb.d.ts
new file mode 100644
index 0000000000..3dbdba3663
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/sql_service_pb.d.ts
@@ -0,0 +1,1427 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/sql_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Duration, NullValue, Timestamp, Value } from "@bufbuild/protobuf/wkt";
+import type { Engine, ExportFormat, Position } from "./common_pb";
+import type { DatabaseMetadata } from "./database_service_pb";
+import type { DatabaseCatalog } from "./database_catalog_service_pb";
+
+/**
+ * Describes the file v1/sql_service.proto.
+ */
+export declare const file_v1_sql_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.AdminExecuteRequest
+ */
+export declare type AdminExecuteRequest = Message<"bytebase.v1.AdminExecuteRequest"> & {
+ /**
+ * The name is the instance name to execute the query against.
+ * Format: instances/{instance}/databases/{databaseName}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The SQL statement to execute.
+ *
+ * @generated from field: string statement = 3;
+ */
+ statement: string;
+
+ /**
+ * The maximum number of rows to return.
+ *
+ * @generated from field: int32 limit = 4;
+ */
+ limit: number;
+
+ /**
+ * The default schema to execute the statement. Equals to the current schema
+ * in Oracle and search path in Postgres.
+ *
+ * @generated from field: optional string schema = 6;
+ */
+ schema?: string;
+
+ /**
+ * Container is the container name to execute the query against, used for
+ * CosmosDB only.
+ *
+ * @generated from field: optional string container = 7;
+ */
+ container?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AdminExecuteRequest.
+ * Use `create(AdminExecuteRequestSchema)` to create a new message.
+ */
+export declare const AdminExecuteRequestSchema: GenMessage<AdminExecuteRequest>;
+
+/**
+ * @generated from message bytebase.v1.AdminExecuteResponse
+ */
+export declare type AdminExecuteResponse = Message<"bytebase.v1.AdminExecuteResponse"> & {
+ /**
+ * The query results.
+ *
+ * @generated from field: repeated bytebase.v1.QueryResult results = 1;
+ */
+ results: QueryResult[];
+};
+
+/**
+ * Describes the message bytebase.v1.AdminExecuteResponse.
+ * Use `create(AdminExecuteResponseSchema)` to create a new message.
+ */
+export declare const AdminExecuteResponseSchema: GenMessage<AdminExecuteResponse>;
+
+/**
+ * @generated from message bytebase.v1.QueryRequest
+ */
+export declare type QueryRequest = Message<"bytebase.v1.QueryRequest"> & {
+ /**
+ * The name is the instance name to execute the query against.
+ * Format: instances/{instance}/databases/{databaseName}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The SQL statement to execute.
+ *
+ * @generated from field: string statement = 3;
+ */
+ statement: string;
+
+ /**
+ * The maximum number of rows to return.
+ *
+ * @generated from field: int32 limit = 4;
+ */
+ limit: number;
+
+ /**
+ * The id of data source.
+ * It is used for querying admin data source even if the instance has
+ * read-only data sources. Or it can be used to query a specific read-only
+ * data source.
+ *
+ * @generated from field: string data_source_id = 6;
+ */
+ dataSourceId: string;
+
+ /**
+ * Explain the statement.
+ *
+ * @generated from field: bool explain = 7;
+ */
+ explain: boolean;
+
+ /**
+ * The default schema to search objects. Equals to the current schema in
+ * Oracle and search path in Postgres.
+ *
+ * @generated from field: optional string schema = 8;
+ */
+ schema?: string;
+
+ /**
+ * @generated from field: bytebase.v1.QueryOption query_option = 9;
+ */
+ queryOption?: QueryOption;
+
+ /**
+ * Container is the container name to execute the query against, used for
+ * CosmosDB only.
+ *
+ * @generated from field: optional string container = 10;
+ */
+ container?: string;
+};
+
+/**
+ * Describes the message bytebase.v1.QueryRequest.
+ * Use `create(QueryRequestSchema)` to create a new message.
+ */
+export declare const QueryRequestSchema: GenMessage<QueryRequest>;
+
+/**
+ * @generated from message bytebase.v1.QueryResponse
+ */
+export declare type QueryResponse = Message<"bytebase.v1.QueryResponse"> & {
+ /**
+ * The query results.
+ *
+ * @generated from field: repeated bytebase.v1.QueryResult results = 1;
+ */
+ results: QueryResult[];
+};
+
+/**
+ * Describes the message bytebase.v1.QueryResponse.
+ * Use `create(QueryResponseSchema)` to create a new message.
+ */
+export declare const QueryResponseSchema: GenMessage<QueryResponse>;
+
+/**
+ * @generated from message bytebase.v1.QueryOption
+ */
+export declare type QueryOption = Message<"bytebase.v1.QueryOption"> & {
+ /**
+ * @generated from field: bytebase.v1.QueryOption.RedisRunCommandsOn redis_run_commands_on = 1;
+ */
+ redisRunCommandsOn: QueryOption_RedisRunCommandsOn;
+};
+
+/**
+ * Describes the message bytebase.v1.QueryOption.
+ * Use `create(QueryOptionSchema)` to create a new message.
+ */
+export declare const QueryOptionSchema: GenMessage<QueryOption>;
+
+/**
+ * @generated from enum bytebase.v1.QueryOption.RedisRunCommandsOn
+ */
+export enum QueryOption_RedisRunCommandsOn {
+ /**
+ * UNSPECIFIED defaults to SINGLE_NODE.
+ *
+ * @generated from enum value: REDIS_RUN_COMMANDS_ON_UNSPECIFIED = 0;
+ */
+ REDIS_RUN_COMMANDS_ON_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: SINGLE_NODE = 1;
+ */
+ SINGLE_NODE = 1,
+
+ /**
+ * @generated from enum value: ALL_NODES = 2;
+ */
+ ALL_NODES = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.QueryOption.RedisRunCommandsOn.
+ */
+export declare const QueryOption_RedisRunCommandsOnSchema: GenEnum<QueryOption_RedisRunCommandsOn>;
+
+/**
+ * @generated from message bytebase.v1.QueryResult
+ */
+export declare type QueryResult = Message<"bytebase.v1.QueryResult"> & {
+ /**
+ * Column names of the query result.
+ *
+ * @generated from field: repeated string column_names = 1;
+ */
+ columnNames: string[];
+
+ /**
+ * Column types of the query result.
+ * The types come from the Golang SQL driver.
+ *
+ * @generated from field: repeated string column_type_names = 2;
+ */
+ columnTypeNames: string[];
+
+ /**
+ * Rows of the query result.
+ *
+ * @generated from field: repeated bytebase.v1.QueryRow rows = 3;
+ */
+ rows: QueryRow[];
+
+ /**
+ * @generated from field: int64 rows_count = 10;
+ */
+ rowsCount: bigint;
+
+ /**
+ * Columns are masked or not.
+ *
+ * @generated from field: repeated bool masked = 4;
+ */
+ masked: boolean[];
+
+ /**
+ * Columns are sensitive or not.
+ *
+ * @generated from field: repeated bool sensitive = 5;
+ */
+ sensitive: boolean[];
+
+ /**
+ * The error message if the query failed.
+ *
+ * @generated from field: string error = 6;
+ */
+ error: string;
+
+ /**
+ * The time it takes to execute the query.
+ *
+ * @generated from field: google.protobuf.Duration latency = 7;
+ */
+ latency?: Duration;
+
+ /**
+ * The query statement for the result.
+ *
+ * @generated from field: string statement = 8;
+ */
+ statement: string;
+
+ /**
+ * @generated from oneof bytebase.v1.QueryResult.detailed_error
+ */
+ detailedError: {
+ /**
+ * @generated from field: bytebase.v1.QueryResult.PostgresError postgres_error = 9;
+ */
+ value: QueryResult_PostgresError;
+ case: "postgresError";
+ } | { case: undefined; value?: undefined };
+
+ /**
+ * The query result is allowed to be exported or not.
+ *
+ * @generated from field: bool allow_export = 11;
+ */
+ allowExport: boolean;
+
+ /**
+ * Informational or debug messages returned by the database engine during query execution.
+ * Examples include PostgreSQL's RAISE NOTICE, MSSQL's PRINT, or Oracle's DBMS_OUTPUT.PUT_LINE.
+ *
+ * @generated from field: repeated bytebase.v1.QueryResult.Message messages = 12;
+ */
+ messages: QueryResult_Message[];
+};
+
+/**
+ * Describes the message bytebase.v1.QueryResult.
+ * Use `create(QueryResultSchema)` to create a new message.
+ */
+export declare const QueryResultSchema: GenMessage<QueryResult>;
+
+/**
+ * refer https://www.postgresql.org/docs/11/protocol-error-fields.html
+ * for field description.
+ *
+ * @generated from message bytebase.v1.QueryResult.PostgresError
+ */
+export declare type QueryResult_PostgresError = Message<"bytebase.v1.QueryResult.PostgresError"> & {
+ /**
+ * @generated from field: string severity = 1;
+ */
+ severity: string;
+
+ /**
+ * @generated from field: string code = 2;
+ */
+ code: string;
+
+ /**
+ * @generated from field: string message = 3;
+ */
+ message: string;
+
+ /**
+ * @generated from field: string detail = 4;
+ */
+ detail: string;
+
+ /**
+ * @generated from field: string hint = 5;
+ */
+ hint: string;
+
+ /**
+ * @generated from field: int32 position = 6;
+ */
+ position: number;
+
+ /**
+ * @generated from field: int32 internal_position = 7;
+ */
+ internalPosition: number;
+
+ /**
+ * @generated from field: string internal_query = 8;
+ */
+ internalQuery: string;
+
+ /**
+ * @generated from field: string where = 9;
+ */
+ where: string;
+
+ /**
+ * @generated from field: string schema_name = 10;
+ */
+ schemaName: string;
+
+ /**
+ * @generated from field: string table_name = 11;
+ */
+ tableName: string;
+
+ /**
+ * @generated from field: string column_name = 12;
+ */
+ columnName: string;
+
+ /**
+ * @generated from field: string data_type_name = 13;
+ */
+ dataTypeName: string;
+
+ /**
+ * @generated from field: string constraint_name = 14;
+ */
+ constraintName: string;
+
+ /**
+ * @generated from field: string file = 15;
+ */
+ file: string;
+
+ /**
+ * @generated from field: int32 line = 16;
+ */
+ line: number;
+
+ /**
+ * @generated from field: string routine = 17;
+ */
+ routine: string;
+};
+
+/**
+ * Describes the message bytebase.v1.QueryResult.PostgresError.
+ * Use `create(QueryResult_PostgresErrorSchema)` to create a new message.
+ */
+export declare const QueryResult_PostgresErrorSchema: GenMessage<QueryResult_PostgresError>;
+
+/**
+ * @generated from message bytebase.v1.QueryResult.Message
+ */
+export declare type QueryResult_Message = Message<"bytebase.v1.QueryResult.Message"> & {
+ /**
+ * @generated from field: bytebase.v1.QueryResult.Message.Level level = 1;
+ */
+ level: QueryResult_Message_Level;
+
+ /**
+ * @generated from field: string content = 2;
+ */
+ content: string;
+};
+
+/**
+ * Describes the message bytebase.v1.QueryResult.Message.
+ * Use `create(QueryResult_MessageSchema)` to create a new message.
+ */
+export declare const QueryResult_MessageSchema: GenMessage<QueryResult_Message>;
+
+/**
+ * @generated from enum bytebase.v1.QueryResult.Message.Level
+ */
+export enum QueryResult_Message_Level {
+ /**
+ * Unspecified.
+ *
+ * @generated from enum value: LEVEL_UNSPECIFIED = 0;
+ */
+ LEVEL_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: INFO = 1;
+ */
+ INFO = 1,
+
+ /**
+ * @generated from enum value: WARNING = 2;
+ */
+ WARNING = 2,
+
+ /**
+ * @generated from enum value: DEBUG = 3;
+ */
+ DEBUG = 3,
+
+ /**
+ * @generated from enum value: LOG = 4;
+ */
+ LOG = 4,
+
+ /**
+ * @generated from enum value: NOTICE = 5;
+ */
+ NOTICE = 5,
+
+ /**
+ * @generated from enum value: EXCEPTION = 6;
+ */
+ EXCEPTION = 6,
+}
+
+/**
+ * Describes the enum bytebase.v1.QueryResult.Message.Level.
+ */
+export declare const QueryResult_Message_LevelSchema: GenEnum<QueryResult_Message_Level>;
+
+/**
+ * @generated from message bytebase.v1.QueryRow
+ */
+export declare type QueryRow = Message<"bytebase.v1.QueryRow"> & {
+ /**
+ * Row values of the query result.
+ *
+ * @generated from field: repeated bytebase.v1.RowValue values = 1;
+ */
+ values: RowValue[];
+};
+
+/**
+ * Describes the message bytebase.v1.QueryRow.
+ * Use `create(QueryRowSchema)` to create a new message.
+ */
+export declare const QueryRowSchema: GenMessage<QueryRow>;
+
+/**
+ * @generated from message bytebase.v1.RowValue
+ */
+export declare type RowValue = Message<"bytebase.v1.RowValue"> & {
+ /**
+ * @generated from oneof bytebase.v1.RowValue.kind
+ */
+ kind: {
+ /**
+ * @generated from field: google.protobuf.NullValue null_value = 1;
+ */
+ value: NullValue;
+ case: "nullValue";
+ } | {
+ /**
+ * @generated from field: bool bool_value = 2;
+ */
+ value: boolean;
+ case: "boolValue";
+ } | {
+ /**
+ * @generated from field: bytes bytes_value = 3;
+ */
+ value: Uint8Array;
+ case: "bytesValue";
+ } | {
+ /**
+ * @generated from field: double double_value = 4;
+ */
+ value: number;
+ case: "doubleValue";
+ } | {
+ /**
+ * @generated from field: float float_value = 5;
+ */
+ value: number;
+ case: "floatValue";
+ } | {
+ /**
+ * @generated from field: int32 int32_value = 6;
+ */
+ value: number;
+ case: "int32Value";
+ } | {
+ /**
+ * @generated from field: int64 int64_value = 7;
+ */
+ value: bigint;
+ case: "int64Value";
+ } | {
+ /**
+ * @generated from field: string string_value = 8;
+ */
+ value: string;
+ case: "stringValue";
+ } | {
+ /**
+ * @generated from field: uint32 uint32_value = 9;
+ */
+ value: number;
+ case: "uint32Value";
+ } | {
+ /**
+ * @generated from field: uint64 uint64_value = 10;
+ */
+ value: bigint;
+ case: "uint64Value";
+ } | {
+ /**
+ * value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only.
+ *
+ * @generated from field: google.protobuf.Value value_value = 11;
+ */
+ value: Value;
+ case: "valueValue";
+ } | {
+ /**
+ * timestamp_value is used for the timestamp without time zone data type,
+ * meaning it only includes the timestamp without any time zone or location
+ * info. Although it may be expressed as a UTC value, it should be seen as a
+ * timestamp missing location context.
+ *
+ * @generated from field: bytebase.v1.RowValue.Timestamp timestamp_value = 12;
+ */
+ value: RowValue_Timestamp;
+ case: "timestampValue";
+ } | {
+ /**
+ * timestamp_tz_value is used for the timestamptz data type, which
+ * accurately represents the timestamp with location information.
+ *
+ * @generated from field: bytebase.v1.RowValue.TimestampTZ timestamp_tz_value = 13;
+ */
+ value: RowValue_TimestampTZ;
+ case: "timestampTzValue";
+ } | { case: undefined; value?: undefined };
+};
+
+/**
+ * Describes the message bytebase.v1.RowValue.
+ * Use `create(RowValueSchema)` to create a new message.
+ */
+export declare const RowValueSchema: GenMessage<RowValue>;
+
+/**
+ * @generated from message bytebase.v1.RowValue.Timestamp
+ */
+export declare type RowValue_Timestamp = Message<"bytebase.v1.RowValue.Timestamp"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp google_timestamp = 1;
+ */
+ googleTimestamp?: Timestamp;
+
+ /**
+ * The accuracy is the number of digits after the decimal point.
+ *
+ * @generated from field: int32 accuracy = 2;
+ */
+ accuracy: number;
+};
+
+/**
+ * Describes the message bytebase.v1.RowValue.Timestamp.
+ * Use `create(RowValue_TimestampSchema)` to create a new message.
+ */
+export declare const RowValue_TimestampSchema: GenMessage<RowValue_Timestamp>;
+
+/**
+ * @generated from message bytebase.v1.RowValue.TimestampTZ
+ */
+export declare type RowValue_TimestampTZ = Message<"bytebase.v1.RowValue.TimestampTZ"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp google_timestamp = 1;
+ */
+ googleTimestamp?: Timestamp;
+
+ /**
+ * Zone is the time zone abbreviations in timezone database such as "PDT",
+ * "PST". https://en.wikipedia.org/wiki/List_of_tz_database_time_zones We
+ * retrieve the time zone information from the timestamptz field in the
+ * database. A timestamp is in UTC or epoch time, and with zone info, we can
+ * convert it to a local time string. Zone and offset are returned by
+ * time.Time.Zone()
+ *
+ * @generated from field: string zone = 2;
+ */
+ zone: string;
+
+ /**
+ * The offset is in seconds east of UTC
+ *
+ * @generated from field: int32 offset = 3;
+ */
+ offset: number;
+
+ /**
+ * @generated from field: int32 accuracy = 4;
+ */
+ accuracy: number;
+};
+
+/**
+ * Describes the message bytebase.v1.RowValue.TimestampTZ.
+ * Use `create(RowValue_TimestampTZSchema)` to create a new message.
+ */
+export declare const RowValue_TimestampTZSchema: GenMessage<RowValue_TimestampTZ>;
+
+/**
+ * @generated from message bytebase.v1.Advice
+ */
+export declare type Advice = Message<"bytebase.v1.Advice"> & {
+ /**
+ * The advice status.
+ *
+ * @generated from field: bytebase.v1.Advice.Status status = 1;
+ */
+ status: Advice_Status;
+
+ /**
+ * The advice code.
+ *
+ * @generated from field: int32 code = 2;
+ */
+ code: number;
+
+ /**
+ * The advice title.
+ *
+ * @generated from field: string title = 3;
+ */
+ title: string;
+
+ /**
+ * The advice content.
+ *
+ * @generated from field: string content = 4;
+ */
+ content: string;
+
+ /**
+ * The start_position is inclusive and the end_position is exclusive.
+ * TODO: use range instead
+ *
+ * @generated from field: bytebase.v1.Position start_position = 8;
+ */
+ startPosition?: Position;
+
+ /**
+ * @generated from field: bytebase.v1.Position end_position = 9;
+ */
+ endPosition?: Position;
+};
+
+/**
+ * Describes the message bytebase.v1.Advice.
+ * Use `create(AdviceSchema)` to create a new message.
+ */
+export declare const AdviceSchema: GenMessage<Advice>;
+
+/**
+ * @generated from enum bytebase.v1.Advice.Status
+ */
+export enum Advice_Status {
+ /**
+ * Unspecified.
+ *
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
+ */
+ STATUS_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: SUCCESS = 1;
+ */
+ SUCCESS = 1,
+
+ /**
+ * @generated from enum value: WARNING = 2;
+ */
+ WARNING = 2,
+
+ /**
+ * @generated from enum value: ERROR = 3;
+ */
+ ERROR = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Advice.Status.
+ */
+export declare const Advice_StatusSchema: GenEnum<Advice_Status>;
+
+/**
+ * @generated from message bytebase.v1.ExportRequest
+ */
+export declare type ExportRequest = Message<"bytebase.v1.ExportRequest"> & {
+ /**
+ * The name is the instance name to execute the query against.
+ * Format: instances/{instance}/databases/{databaseName}
+ * Format: projects/{project}/issues/{issue} for data export issue.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The SQL statement to execute.
+ *
+ * @generated from field: string statement = 3;
+ */
+ statement: string;
+
+ /**
+ * The maximum number of rows to return.
+ *
+ * @generated from field: int32 limit = 4;
+ */
+ limit: number;
+
+ /**
+ * The export format.
+ *
+ * @generated from field: bytebase.v1.ExportFormat format = 5;
+ */
+ format: ExportFormat;
+
+ /**
+ * The admin is used for workspace owner and DBA for exporting data from SQL
+ * Editor Admin mode. The exported data is not masked.
+ *
+ * @generated from field: bool admin = 6;
+ */
+ admin: boolean;
+
+ /**
+ * The zip password provide by users.
+ *
+ * @generated from field: string password = 7;
+ */
+ password: string;
+
+ /**
+ * The id of data source.
+ * It is used for querying admin data source even if the instance has
+ * read-only data sources. Or it can be used to query a specific read-only
+ * data source.
+ *
+ * @generated from field: string data_source_id = 8;
+ */
+ dataSourceId: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ExportRequest.
+ * Use `create(ExportRequestSchema)` to create a new message.
+ */
+export declare const ExportRequestSchema: GenMessage<ExportRequest>;
+
+/**
+ * @generated from message bytebase.v1.ExportResponse
+ */
+export declare type ExportResponse = Message<"bytebase.v1.ExportResponse"> & {
+ /**
+ * The export file content.
+ *
+ * @generated from field: bytes content = 1;
+ */
+ content: Uint8Array;
+};
+
+/**
+ * Describes the message bytebase.v1.ExportResponse.
+ * Use `create(ExportResponseSchema)` to create a new message.
+ */
+export declare const ExportResponseSchema: GenMessage<ExportResponse>;
+
+/**
+ * @generated from message bytebase.v1.PrettyRequest
+ */
+export declare type PrettyRequest = Message<"bytebase.v1.PrettyRequest"> & {
+ /**
+ * @generated from field: bytebase.v1.Engine engine = 1;
+ */
+ engine: Engine;
+
+ /**
+ * The SDL format SQL schema information that was dumped from a database
+ * engine. This information will be sorted to match the order of statements in
+ * the userSchema.
+ *
+ * @generated from field: string current_schema = 2;
+ */
+ currentSchema: string;
+
+ /**
+ * The expected SDL schema. This schema will be checked for correctness and
+ * normalized.
+ *
+ * @generated from field: string expected_schema = 3;
+ */
+ expectedSchema: string;
+};
+
+/**
+ * Describes the message bytebase.v1.PrettyRequest.
+ * Use `create(PrettyRequestSchema)` to create a new message.
+ */
+export declare const PrettyRequestSchema: GenMessage<PrettyRequest>;
+
+/**
+ * @generated from message bytebase.v1.PrettyResponse
+ */
+export declare type PrettyResponse = Message<"bytebase.v1.PrettyResponse"> & {
+ /**
+ * The pretty-formatted version of current schema.
+ *
+ * @generated from field: string current_schema = 1;
+ */
+ currentSchema: string;
+
+ /**
+ * The expected SDL schema after normalizing.
+ *
+ * @generated from field: string expected_schema = 2;
+ */
+ expectedSchema: string;
+};
+
+/**
+ * Describes the message bytebase.v1.PrettyResponse.
+ * Use `create(PrettyResponseSchema)` to create a new message.
+ */
+export declare const PrettyResponseSchema: GenMessage<PrettyResponse>;
+
+/**
+ * @generated from message bytebase.v1.CheckRequest
+ */
+export declare type CheckRequest = Message<"bytebase.v1.CheckRequest"> & {
+ /**
+ * The database name to check against.
+ * Format: instances/{instance}/databases/{database}
+ *
+ * @generated from field: string name = 2;
+ */
+ name: string;
+
+ /**
+ * @generated from field: string statement = 1;
+ */
+ statement: string;
+
+ /**
+ * @generated from field: bytebase.v1.CheckRequest.ChangeType change_type = 4;
+ */
+ changeType: CheckRequest_ChangeType;
+};
+
+/**
+ * Describes the message bytebase.v1.CheckRequest.
+ * Use `create(CheckRequestSchema)` to create a new message.
+ */
+export declare const CheckRequestSchema: GenMessage<CheckRequest>;
+
+/**
+ * @generated from enum bytebase.v1.CheckRequest.ChangeType
+ */
+export enum CheckRequest_ChangeType {
+ /**
+ * @generated from enum value: CHANGE_TYPE_UNSPECIFIED = 0;
+ */
+ CHANGE_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: DDL = 1;
+ */
+ DDL = 1,
+
+ /**
+ * @generated from enum value: DDL_GHOST = 2;
+ */
+ DDL_GHOST = 2,
+
+ /**
+ * @generated from enum value: DML = 3;
+ */
+ DML = 3,
+
+ /**
+ * @generated from enum value: SQL_EDITOR = 4;
+ */
+ SQL_EDITOR = 4,
+}
+
+/**
+ * Describes the enum bytebase.v1.CheckRequest.ChangeType.
+ */
+export declare const CheckRequest_ChangeTypeSchema: GenEnum<CheckRequest_ChangeType>;
+
+/**
+ * @generated from message bytebase.v1.CheckResponse
+ */
+export declare type CheckResponse = Message<"bytebase.v1.CheckResponse"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.Advice advices = 1;
+ */
+ advices: Advice[];
+
+ /**
+ * The count of affected rows of the statement on the target database.
+ *
+ * @generated from field: int32 affected_rows = 2;
+ */
+ affectedRows: number;
+};
+
+/**
+ * Describes the message bytebase.v1.CheckResponse.
+ * Use `create(CheckResponseSchema)` to create a new message.
+ */
+export declare const CheckResponseSchema: GenMessage<CheckResponse>;
+
+/**
+ * @generated from message bytebase.v1.ParseMyBatisMapperRequest
+ */
+export declare type ParseMyBatisMapperRequest = Message<"bytebase.v1.ParseMyBatisMapperRequest"> & {
+ /**
+ * @generated from field: bytes content = 1;
+ */
+ content: Uint8Array;
+};
+
+/**
+ * Describes the message bytebase.v1.ParseMyBatisMapperRequest.
+ * Use `create(ParseMyBatisMapperRequestSchema)` to create a new message.
+ */
+export declare const ParseMyBatisMapperRequestSchema: GenMessage<ParseMyBatisMapperRequest>;
+
+/**
+ * @generated from message bytebase.v1.ParseMyBatisMapperResponse
+ */
+export declare type ParseMyBatisMapperResponse = Message<"bytebase.v1.ParseMyBatisMapperResponse"> & {
+ /**
+ * @generated from field: repeated string statements = 1;
+ */
+ statements: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.ParseMyBatisMapperResponse.
+ * Use `create(ParseMyBatisMapperResponseSchema)` to create a new message.
+ */
+export declare const ParseMyBatisMapperResponseSchema: GenMessage<ParseMyBatisMapperResponse>;
+
+/**
+ * @generated from message bytebase.v1.DiffMetadataRequest
+ */
+export declare type DiffMetadataRequest = Message<"bytebase.v1.DiffMetadataRequest"> & {
+ /**
+ * The metadata of the source schema.
+ *
+ * @generated from field: bytebase.v1.DatabaseMetadata source_metadata = 1;
+ */
+ sourceMetadata?: DatabaseMetadata;
+
+ /**
+ * The metadata of the target schema.
+ *
+ * @generated from field: bytebase.v1.DatabaseMetadata target_metadata = 2;
+ */
+ targetMetadata?: DatabaseMetadata;
+
+ /**
+ * @generated from field: bytebase.v1.DatabaseCatalog source_catalog = 5;
+ */
+ sourceCatalog?: DatabaseCatalog;
+
+ /**
+ * @generated from field: bytebase.v1.DatabaseCatalog target_catalog = 6;
+ */
+ targetCatalog?: DatabaseCatalog;
+
+ /**
+ * The database engine of the schema.
+ *
+ * @generated from field: bytebase.v1.Engine engine = 3;
+ */
+ engine: Engine;
+
+ /**
+ * If false, we will build the raw common by classification in database
+ * config.
+ *
+ * @generated from field: bool classification_from_config = 4;
+ */
+ classificationFromConfig: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.DiffMetadataRequest.
+ * Use `create(DiffMetadataRequestSchema)` to create a new message.
+ */
+export declare const DiffMetadataRequestSchema: GenMessage<DiffMetadataRequest>;
+
+/**
+ * @generated from message bytebase.v1.DiffMetadataResponse
+ */
+export declare type DiffMetadataResponse = Message<"bytebase.v1.DiffMetadataResponse"> & {
+ /**
+ * The diff of the metadata.
+ *
+ * @generated from field: string diff = 1;
+ */
+ diff: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DiffMetadataResponse.
+ * Use `create(DiffMetadataResponseSchema)` to create a new message.
+ */
+export declare const DiffMetadataResponseSchema: GenMessage<DiffMetadataResponse>;
+
+/**
+ * @generated from message bytebase.v1.SearchQueryHistoriesRequest
+ */
+export declare type SearchQueryHistoriesRequest = Message<"bytebase.v1.SearchQueryHistoriesRequest"> & {
+ /**
+ * The maximum number of histories to return.
+ * The service may return fewer than this value.
+ * If unspecified, at most 10 history entries will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListQueryHistory` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+
+ /**
+ * Filter is the filter to apply on the search query history
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filter:
+ * - project: the project full name in "projects/{id}" format, support "==" operator.
+ * - database: the database full name in "instances/{id}/databases/{name}" format, support "==" operator.
+ * - instance: the instance full name in "instances/{id}" format, support "==" operator.
+ * - type: the type, should be "QUERY" or "EXPORT", support "==" operator.
+ * - statement: the SQL statemnt, support ".matches()" operator.
+ *
+ * For example:
+ * project == "projects/{project}"
+ * database == "instances/{instance}/databases/{database}"
+ * instance == "instances/{instance}"
+ * type == "QUERY"
+ * type == "EXPORT"
+ * statement.matches("select")
+ * type == "QUERY" && statement.matches("select")
+ *
+ * @generated from field: string filter = 3;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchQueryHistoriesRequest.
+ * Use `create(SearchQueryHistoriesRequestSchema)` to create a new message.
+ */
+export declare const SearchQueryHistoriesRequestSchema: GenMessage<SearchQueryHistoriesRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchQueryHistoriesResponse
+ */
+export declare type SearchQueryHistoriesResponse = Message<"bytebase.v1.SearchQueryHistoriesResponse"> & {
+ /**
+ * The list of history.
+ *
+ * @generated from field: repeated bytebase.v1.QueryHistory query_histories = 1;
+ */
+ queryHistories: QueryHistory[];
+
+ /**
+ * A token to retrieve next page of history.
+ * Pass this value in the page_token field in the subsequent call to
+ * `ListQueryHistory` method to retrieve the next page of history.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchQueryHistoriesResponse.
+ * Use `create(SearchQueryHistoriesResponseSchema)` to create a new message.
+ */
+export declare const SearchQueryHistoriesResponseSchema: GenMessage<SearchQueryHistoriesResponse>;
+
+/**
+ * @generated from message bytebase.v1.QueryHistory
+ */
+export declare type QueryHistory = Message<"bytebase.v1.QueryHistory"> & {
+ /**
+ * The name for the query history.
+ * Format: queryHistories/{uid}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The database name to execute the query.
+ * Format: instances/{instance}/databases/{databaseName}
+ *
+ * @generated from field: string database = 2;
+ */
+ database: string;
+
+ /**
+ * @generated from field: string creator = 3;
+ */
+ creator: string;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp create_time = 4;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * @generated from field: string statement = 5;
+ */
+ statement: string;
+
+ /**
+ * @generated from field: optional string error = 6;
+ */
+ error?: string;
+
+ /**
+ * @generated from field: google.protobuf.Duration duration = 7;
+ */
+ duration?: Duration;
+
+ /**
+ * @generated from field: bytebase.v1.QueryHistory.Type type = 8;
+ */
+ type: QueryHistory_Type;
+};
+
+/**
+ * Describes the message bytebase.v1.QueryHistory.
+ * Use `create(QueryHistorySchema)` to create a new message.
+ */
+export declare const QueryHistorySchema: GenMessage<QueryHistory>;
+
+/**
+ * @generated from enum bytebase.v1.QueryHistory.Type
+ */
+export enum QueryHistory_Type {
+ /**
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: QUERY = 1;
+ */
+ QUERY = 1,
+
+ /**
+ * @generated from enum value: EXPORT = 2;
+ */
+ EXPORT = 2,
+}
+
+/**
+ * Describes the enum bytebase.v1.QueryHistory.Type.
+ */
+export declare const QueryHistory_TypeSchema: GenEnum<QueryHistory_Type>;
+
+/**
+ * @generated from message bytebase.v1.AICompletionRequest
+ */
+export declare type AICompletionRequest = Message<"bytebase.v1.AICompletionRequest"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.AICompletionRequest.Message messages = 1;
+ */
+ messages: AICompletionRequest_Message[];
+};
+
+/**
+ * Describes the message bytebase.v1.AICompletionRequest.
+ * Use `create(AICompletionRequestSchema)` to create a new message.
+ */
+export declare const AICompletionRequestSchema: GenMessage<AICompletionRequest>;
+
+/**
+ * @generated from message bytebase.v1.AICompletionRequest.Message
+ */
+export declare type AICompletionRequest_Message = Message<"bytebase.v1.AICompletionRequest.Message"> & {
+ /**
+ * @generated from field: string role = 1;
+ */
+ role: string;
+
+ /**
+ * @generated from field: string content = 2;
+ */
+ content: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AICompletionRequest.Message.
+ * Use `create(AICompletionRequest_MessageSchema)` to create a new message.
+ */
+export declare const AICompletionRequest_MessageSchema: GenMessage<AICompletionRequest_Message>;
+
+/**
+ * @generated from message bytebase.v1.AICompletionResponse
+ */
+export declare type AICompletionResponse = Message<"bytebase.v1.AICompletionResponse"> & {
+ /**
+ * candidates is used for results with multiple choices and candidates. Used
+ * for OpenAI and Gemini.
+ *
+ * @generated from field: repeated bytebase.v1.AICompletionResponse.Candidate candidates = 1;
+ */
+ candidates: AICompletionResponse_Candidate[];
+};
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.
+ * Use `create(AICompletionResponseSchema)` to create a new message.
+ */
+export declare const AICompletionResponseSchema: GenMessage<AICompletionResponse>;
+
+/**
+ * @generated from message bytebase.v1.AICompletionResponse.Candidate
+ */
+export declare type AICompletionResponse_Candidate = Message<"bytebase.v1.AICompletionResponse.Candidate"> & {
+ /**
+ * @generated from field: bytebase.v1.AICompletionResponse.Candidate.Content content = 1;
+ */
+ content?: AICompletionResponse_Candidate_Content;
+};
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.Candidate.
+ * Use `create(AICompletionResponse_CandidateSchema)` to create a new message.
+ */
+export declare const AICompletionResponse_CandidateSchema: GenMessage<AICompletionResponse_Candidate>;
+
+/**
+ * @generated from message bytebase.v1.AICompletionResponse.Candidate.Content
+ */
+export declare type AICompletionResponse_Candidate_Content = Message<"bytebase.v1.AICompletionResponse.Candidate.Content"> & {
+ /**
+ * parts is used for a result content with multiple parts.
+ *
+ * @generated from field: repeated bytebase.v1.AICompletionResponse.Candidate.Content.Part parts = 1;
+ */
+ parts: AICompletionResponse_Candidate_Content_Part[];
+};
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.Candidate.Content.
+ * Use `create(AICompletionResponse_Candidate_ContentSchema)` to create a new message.
+ */
+export declare const AICompletionResponse_Candidate_ContentSchema: GenMessage<AICompletionResponse_Candidate_Content>;
+
+/**
+ * @generated from message bytebase.v1.AICompletionResponse.Candidate.Content.Part
+ */
+export declare type AICompletionResponse_Candidate_Content_Part = Message<"bytebase.v1.AICompletionResponse.Candidate.Content.Part"> & {
+ /**
+ * @generated from field: string text = 1;
+ */
+ text: string;
+};
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.Candidate.Content.Part.
+ * Use `create(AICompletionResponse_Candidate_Content_PartSchema)` to create a new message.
+ */
+export declare const AICompletionResponse_Candidate_Content_PartSchema: GenMessage<AICompletionResponse_Candidate_Content_Part>;
+
+/**
+ * @generated from service bytebase.v1.SQLService
+ */
+export declare const SQLService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.SQLService.Query
+ */
+ query: {
+ methodKind: "unary";
+ input: typeof QueryRequestSchema;
+ output: typeof QueryResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.AdminExecute
+ */
+ adminExecute: {
+ methodKind: "bidi_streaming";
+ input: typeof AdminExecuteRequestSchema;
+ output: typeof AdminExecuteResponseSchema;
+ },
+ /**
+ * SearchQueryHistories searches query histories for the caller.
+ *
+ * @generated from rpc bytebase.v1.SQLService.SearchQueryHistories
+ */
+ searchQueryHistories: {
+ methodKind: "unary";
+ input: typeof SearchQueryHistoriesRequestSchema;
+ output: typeof SearchQueryHistoriesResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.Export
+ */
+ export: {
+ methodKind: "unary";
+ input: typeof ExportRequestSchema;
+ output: typeof ExportResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.Check
+ */
+ check: {
+ methodKind: "unary";
+ input: typeof CheckRequestSchema;
+ output: typeof CheckResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.ParseMyBatisMapper
+ */
+ parseMyBatisMapper: {
+ methodKind: "unary";
+ input: typeof ParseMyBatisMapperRequestSchema;
+ output: typeof ParseMyBatisMapperResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.Pretty
+ */
+ pretty: {
+ methodKind: "unary";
+ input: typeof PrettyRequestSchema;
+ output: typeof PrettyResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.DiffMetadata
+ */
+ diffMetadata: {
+ methodKind: "unary";
+ input: typeof DiffMetadataRequestSchema;
+ output: typeof DiffMetadataResponseSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SQLService.AICompletion
+ */
+ aICompletion: {
+ methodKind: "unary";
+ input: typeof AICompletionRequestSchema;
+ output: typeof AICompletionResponseSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/sql_service_pb.js b/frontend/src/types/proto-es/v1/sql_service_pb.js
new file mode 100644
index 0000000000..ad92ff51a3
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/sql_service_pb.js
@@ -0,0 +1,310 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/sql_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+import { file_v1_database_catalog_service } from "./database_catalog_service_pb";
+import { file_v1_database_service } from "./database_service_pb";
+
+/**
+ * Describes the file v1/sql_service.proto.
+ */
+export const file_v1_sql_service = /*@__PURE__*/
+ fileDesc("ChR2MS9zcWxfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEisQEKE0FkbWluRXhlY3V0ZVJlcXVlc3QSLAoEbmFtZRgBIAEoCUIe4kEBAvpBFwoVYnl0ZWJhc2UuY29tL0RhdGFiYXNlEhEKCXN0YXRlbWVudBgDIAEoCRINCgVsaW1pdBgEIAEoBRITCgZzY2hlbWEYBiABKAlIAIgBARIWCgljb250YWluZXIYByABKAlIAYgBAUIJCgdfc2NoZW1hQgwKCl9jb250YWluZXJKBAgCEAMiQQoUQWRtaW5FeGVjdXRlUmVzcG9uc2USKQoHcmVzdWx0cxgBIAMoCzIYLmJ5dGViYXNlLnYxLlF1ZXJ5UmVzdWx0IokCCgxRdWVyeVJlcXVlc3QSLAoEbmFtZRgBIAEoCUIe4kEBAvpBFwoVYnl0ZWJhc2UuY29tL0RhdGFiYXNlEhEKCXN0YXRlbWVudBgDIAEoCRINCgVsaW1pdBgEIAEoBRIcCg5kYXRhX3NvdXJjZV9pZBgGIAEoCUIE4kEBAhIPCgdleHBsYWluGAcgASgIEhMKBnNjaGVtYRgIIAEoCUgAiAEBEi4KDHF1ZXJ5X29wdGlvbhgJIAEoCzIYLmJ5dGViYXNlLnYxLlF1ZXJ5T3B0aW9uEhYKCWNvbnRhaW5lchgKIAEoCUgBiAEBQgkKB19zY2hlbWFCDAoKX2NvbnRhaW5lckoECAIQAyJACg1RdWVyeVJlc3BvbnNlEikKB3Jlc3VsdHMYASADKAsyGC5ieXRlYmFzZS52MS5RdWVyeVJlc3VsdEoECAIQAyK2AQoLUXVlcnlPcHRpb24SSgoVcmVkaXNfcnVuX2NvbW1hbmRzX29uGAEgASgOM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YmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_database_catalog_service, file_v1_database_service]);
+
+/**
+ * Describes the message bytebase.v1.AdminExecuteRequest.
+ * Use `create(AdminExecuteRequestSchema)` to create a new message.
+ */
+export const AdminExecuteRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 0);
+
+/**
+ * Describes the message bytebase.v1.AdminExecuteResponse.
+ * Use `create(AdminExecuteResponseSchema)` to create a new message.
+ */
+export const AdminExecuteResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 1);
+
+/**
+ * Describes the message bytebase.v1.QueryRequest.
+ * Use `create(QueryRequestSchema)` to create a new message.
+ */
+export const QueryRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 2);
+
+/**
+ * Describes the message bytebase.v1.QueryResponse.
+ * Use `create(QueryResponseSchema)` to create a new message.
+ */
+export const QueryResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 3);
+
+/**
+ * Describes the message bytebase.v1.QueryOption.
+ * Use `create(QueryOptionSchema)` to create a new message.
+ */
+export const QueryOptionSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 4);
+
+/**
+ * Describes the enum bytebase.v1.QueryOption.RedisRunCommandsOn.
+ */
+export const QueryOption_RedisRunCommandsOnSchema = /*@__PURE__*/
+ enumDesc(file_v1_sql_service, 4, 0);
+
+/**
+ * @generated from enum bytebase.v1.QueryOption.RedisRunCommandsOn
+ */
+export const QueryOption_RedisRunCommandsOn = /*@__PURE__*/
+ tsEnum(QueryOption_RedisRunCommandsOnSchema);
+
+/**
+ * Describes the message bytebase.v1.QueryResult.
+ * Use `create(QueryResultSchema)` to create a new message.
+ */
+export const QueryResultSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 5);
+
+/**
+ * Describes the message bytebase.v1.QueryResult.PostgresError.
+ * Use `create(QueryResult_PostgresErrorSchema)` to create a new message.
+ */
+export const QueryResult_PostgresErrorSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 5, 0);
+
+/**
+ * Describes the message bytebase.v1.QueryResult.Message.
+ * Use `create(QueryResult_MessageSchema)` to create a new message.
+ */
+export const QueryResult_MessageSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 5, 1);
+
+/**
+ * Describes the enum bytebase.v1.QueryResult.Message.Level.
+ */
+export const QueryResult_Message_LevelSchema = /*@__PURE__*/
+ enumDesc(file_v1_sql_service, 5, 1, 0);
+
+/**
+ * @generated from enum bytebase.v1.QueryResult.Message.Level
+ */
+export const QueryResult_Message_Level = /*@__PURE__*/
+ tsEnum(QueryResult_Message_LevelSchema);
+
+/**
+ * Describes the message bytebase.v1.QueryRow.
+ * Use `create(QueryRowSchema)` to create a new message.
+ */
+export const QueryRowSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 6);
+
+/**
+ * Describes the message bytebase.v1.RowValue.
+ * Use `create(RowValueSchema)` to create a new message.
+ */
+export const RowValueSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 7);
+
+/**
+ * Describes the message bytebase.v1.RowValue.Timestamp.
+ * Use `create(RowValue_TimestampSchema)` to create a new message.
+ */
+export const RowValue_TimestampSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 7, 0);
+
+/**
+ * Describes the message bytebase.v1.RowValue.TimestampTZ.
+ * Use `create(RowValue_TimestampTZSchema)` to create a new message.
+ */
+export const RowValue_TimestampTZSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 7, 1);
+
+/**
+ * Describes the message bytebase.v1.Advice.
+ * Use `create(AdviceSchema)` to create a new message.
+ */
+export const AdviceSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 8);
+
+/**
+ * Describes the enum bytebase.v1.Advice.Status.
+ */
+export const Advice_StatusSchema = /*@__PURE__*/
+ enumDesc(file_v1_sql_service, 8, 0);
+
+/**
+ * @generated from enum bytebase.v1.Advice.Status
+ */
+export const Advice_Status = /*@__PURE__*/
+ tsEnum(Advice_StatusSchema);
+
+/**
+ * Describes the message bytebase.v1.ExportRequest.
+ * Use `create(ExportRequestSchema)` to create a new message.
+ */
+export const ExportRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 9);
+
+/**
+ * Describes the message bytebase.v1.ExportResponse.
+ * Use `create(ExportResponseSchema)` to create a new message.
+ */
+export const ExportResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 10);
+
+/**
+ * Describes the message bytebase.v1.PrettyRequest.
+ * Use `create(PrettyRequestSchema)` to create a new message.
+ */
+export const PrettyRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 11);
+
+/**
+ * Describes the message bytebase.v1.PrettyResponse.
+ * Use `create(PrettyResponseSchema)` to create a new message.
+ */
+export const PrettyResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 12);
+
+/**
+ * Describes the message bytebase.v1.CheckRequest.
+ * Use `create(CheckRequestSchema)` to create a new message.
+ */
+export const CheckRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 13);
+
+/**
+ * Describes the enum bytebase.v1.CheckRequest.ChangeType.
+ */
+export const CheckRequest_ChangeTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_sql_service, 13, 0);
+
+/**
+ * @generated from enum bytebase.v1.CheckRequest.ChangeType
+ */
+export const CheckRequest_ChangeType = /*@__PURE__*/
+ tsEnum(CheckRequest_ChangeTypeSchema);
+
+/**
+ * Describes the message bytebase.v1.CheckResponse.
+ * Use `create(CheckResponseSchema)` to create a new message.
+ */
+export const CheckResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 14);
+
+/**
+ * Describes the message bytebase.v1.ParseMyBatisMapperRequest.
+ * Use `create(ParseMyBatisMapperRequestSchema)` to create a new message.
+ */
+export const ParseMyBatisMapperRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 15);
+
+/**
+ * Describes the message bytebase.v1.ParseMyBatisMapperResponse.
+ * Use `create(ParseMyBatisMapperResponseSchema)` to create a new message.
+ */
+export const ParseMyBatisMapperResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 16);
+
+/**
+ * Describes the message bytebase.v1.DiffMetadataRequest.
+ * Use `create(DiffMetadataRequestSchema)` to create a new message.
+ */
+export const DiffMetadataRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 17);
+
+/**
+ * Describes the message bytebase.v1.DiffMetadataResponse.
+ * Use `create(DiffMetadataResponseSchema)` to create a new message.
+ */
+export const DiffMetadataResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 18);
+
+/**
+ * Describes the message bytebase.v1.SearchQueryHistoriesRequest.
+ * Use `create(SearchQueryHistoriesRequestSchema)` to create a new message.
+ */
+export const SearchQueryHistoriesRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 19);
+
+/**
+ * Describes the message bytebase.v1.SearchQueryHistoriesResponse.
+ * Use `create(SearchQueryHistoriesResponseSchema)` to create a new message.
+ */
+export const SearchQueryHistoriesResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 20);
+
+/**
+ * Describes the message bytebase.v1.QueryHistory.
+ * Use `create(QueryHistorySchema)` to create a new message.
+ */
+export const QueryHistorySchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 21);
+
+/**
+ * Describes the enum bytebase.v1.QueryHistory.Type.
+ */
+export const QueryHistory_TypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_sql_service, 21, 0);
+
+/**
+ * @generated from enum bytebase.v1.QueryHistory.Type
+ */
+export const QueryHistory_Type = /*@__PURE__*/
+ tsEnum(QueryHistory_TypeSchema);
+
+/**
+ * Describes the message bytebase.v1.AICompletionRequest.
+ * Use `create(AICompletionRequestSchema)` to create a new message.
+ */
+export const AICompletionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 22);
+
+/**
+ * Describes the message bytebase.v1.AICompletionRequest.Message.
+ * Use `create(AICompletionRequest_MessageSchema)` to create a new message.
+ */
+export const AICompletionRequest_MessageSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 22, 0);
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.
+ * Use `create(AICompletionResponseSchema)` to create a new message.
+ */
+export const AICompletionResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 23);
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.Candidate.
+ * Use `create(AICompletionResponse_CandidateSchema)` to create a new message.
+ */
+export const AICompletionResponse_CandidateSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 23, 0);
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.Candidate.Content.
+ * Use `create(AICompletionResponse_Candidate_ContentSchema)` to create a new message.
+ */
+export const AICompletionResponse_Candidate_ContentSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 23, 0, 0);
+
+/**
+ * Describes the message bytebase.v1.AICompletionResponse.Candidate.Content.Part.
+ * Use `create(AICompletionResponse_Candidate_Content_PartSchema)` to create a new message.
+ */
+export const AICompletionResponse_Candidate_Content_PartSchema = /*@__PURE__*/
+ messageDesc(file_v1_sql_service, 23, 0, 0, 0);
+
+/**
+ * @generated from service bytebase.v1.SQLService
+ */
+export const SQLService = /*@__PURE__*/
+ serviceDesc(file_v1_sql_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts b/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts
new file mode 100644
index 0000000000..8860255143
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts
@@ -0,0 +1,606 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/subscription_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { Timestamp } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/subscription_service.proto.
+ */
+export declare const file_v1_subscription_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetSubscriptionRequest
+ */
+export declare type GetSubscriptionRequest = Message<"bytebase.v1.GetSubscriptionRequest"> & {
+};
+
+/**
+ * Describes the message bytebase.v1.GetSubscriptionRequest.
+ * Use `create(GetSubscriptionRequestSchema)` to create a new message.
+ */
+export declare const GetSubscriptionRequestSchema: GenMessage<GetSubscriptionRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateSubscriptionRequest
+ */
+export declare type UpdateSubscriptionRequest = Message<"bytebase.v1.UpdateSubscriptionRequest"> & {
+ /**
+ * @generated from field: bytebase.v1.PatchSubscription patch = 1;
+ */
+ patch?: PatchSubscription;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateSubscriptionRequest.
+ * Use `create(UpdateSubscriptionRequestSchema)` to create a new message.
+ */
+export declare const UpdateSubscriptionRequestSchema: GenMessage<UpdateSubscriptionRequest>;
+
+/**
+ * @generated from message bytebase.v1.PatchSubscription
+ */
+export declare type PatchSubscription = Message<"bytebase.v1.PatchSubscription"> & {
+ /**
+ * @generated from field: string license = 1;
+ */
+ license: string;
+};
+
+/**
+ * Describes the message bytebase.v1.PatchSubscription.
+ * Use `create(PatchSubscriptionSchema)` to create a new message.
+ */
+export declare const PatchSubscriptionSchema: GenMessage<PatchSubscription>;
+
+/**
+ * @generated from message bytebase.v1.Subscription
+ */
+export declare type Subscription = Message<"bytebase.v1.Subscription"> & {
+ /**
+ * @generated from field: int32 seat_count = 1;
+ */
+ seatCount: number;
+
+ /**
+ * @generated from field: int32 instance_count = 2;
+ */
+ instanceCount: number;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp expires_time = 3;
+ */
+ expiresTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp started_time = 4;
+ */
+ startedTime?: Timestamp;
+
+ /**
+ * @generated from field: bytebase.v1.PlanType plan = 5;
+ */
+ plan: PlanType;
+
+ /**
+ * @generated from field: bool trialing = 6;
+ */
+ trialing: boolean;
+
+ /**
+ * @generated from field: string org_id = 7;
+ */
+ orgId: string;
+
+ /**
+ * @generated from field: string org_name = 8;
+ */
+ orgName: string;
+};
+
+/**
+ * Describes the message bytebase.v1.Subscription.
+ * Use `create(SubscriptionSchema)` to create a new message.
+ */
+export declare const SubscriptionSchema: GenMessage<Subscription>;
+
+/**
+ * PlanConfig represents the configuration for all plans loaded from plan.yaml
+ *
+ * @generated from message bytebase.v1.PlanConfig
+ */
+export declare type PlanConfig = Message<"bytebase.v1.PlanConfig"> & {
+ /**
+ * @generated from field: repeated bytebase.v1.PlanLimitConfig plans = 1;
+ */
+ plans: PlanLimitConfig[];
+
+ /**
+ * @generated from field: repeated bytebase.v1.PlanFeature instance_features = 2;
+ */
+ instanceFeatures: PlanFeature[];
+};
+
+/**
+ * Describes the message bytebase.v1.PlanConfig.
+ * Use `create(PlanConfigSchema)` to create a new message.
+ */
+export declare const PlanConfigSchema: GenMessage<PlanConfig>;
+
+/**
+ * PlanLimitConfig represents a single plan's configuration
+ *
+ * @generated from message bytebase.v1.PlanLimitConfig
+ */
+export declare type PlanLimitConfig = Message<"bytebase.v1.PlanLimitConfig"> & {
+ /**
+ * @generated from field: bytebase.v1.PlanType type = 1;
+ */
+ type: PlanType;
+
+ /**
+ * @generated from field: int32 maximum_instance_count = 2;
+ */
+ maximumInstanceCount: number;
+
+ /**
+ * @generated from field: int32 maximum_seat_count = 3;
+ */
+ maximumSeatCount: number;
+
+ /**
+ * @generated from field: repeated bytebase.v1.PlanFeature features = 4;
+ */
+ features: PlanFeature[];
+};
+
+/**
+ * Describes the message bytebase.v1.PlanLimitConfig.
+ * Use `create(PlanLimitConfigSchema)` to create a new message.
+ */
+export declare const PlanLimitConfigSchema: GenMessage<PlanLimitConfig>;
+
+/**
+ * @generated from enum bytebase.v1.PlanType
+ */
+export enum PlanType {
+ /**
+ * @generated from enum value: PLAN_TYPE_UNSPECIFIED = 0;
+ */
+ PLAN_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: FREE = 1;
+ */
+ FREE = 1,
+
+ /**
+ * @generated from enum value: TEAM = 2;
+ */
+ TEAM = 2,
+
+ /**
+ * @generated from enum value: ENTERPRISE = 3;
+ */
+ ENTERPRISE = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.PlanType.
+ */
+export declare const PlanTypeSchema: GenEnum<PlanType>;
+
+/**
+ * PlanFeature represents the available features in Bytebase
+ *
+ * @generated from enum bytebase.v1.PlanFeature
+ */
+export enum PlanFeature {
+ /**
+ * @generated from enum value: FEATURE_UNSPECIFIED = 0;
+ */
+ FEATURE_UNSPECIFIED = 0,
+
+ /**
+ * Database Change Management
+ *
+ * @generated from enum value: FEATURE_DATABASE_CHANGE = 1;
+ */
+ FEATURE_DATABASE_CHANGE = 1,
+
+ /**
+ * @generated from enum value: FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL = 2;
+ */
+ FEATURE_GIT_BASED_SCHEMA_VERSION_CONTROL = 2,
+
+ /**
+ * @generated from enum value: FEATURE_DECLARATIVE_SCHEMA_MIGRATION = 3;
+ */
+ FEATURE_DECLARATIVE_SCHEMA_MIGRATION = 3,
+
+ /**
+ * @generated from enum value: FEATURE_COMPARE_AND_SYNC_SCHEMA = 4;
+ */
+ FEATURE_COMPARE_AND_SYNC_SCHEMA = 4,
+
+ /**
+ * @generated from enum value: FEATURE_ONLINE_SCHEMA_CHANGE = 5;
+ */
+ FEATURE_ONLINE_SCHEMA_CHANGE = 5,
+
+ /**
+ * @generated from enum value: FEATURE_PRE_DEPLOYMENT_SQL_REVIEW = 6;
+ */
+ FEATURE_PRE_DEPLOYMENT_SQL_REVIEW = 6,
+
+ /**
+ * @generated from enum value: FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES = 7;
+ */
+ FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES = 7,
+
+ /**
+ * @generated from enum value: FEATURE_ONE_CLICK_DATA_ROLLBACK = 8;
+ */
+ FEATURE_ONE_CLICK_DATA_ROLLBACK = 8,
+
+ /**
+ * @generated from enum value: FEATURE_MULTI_DATABASE_BATCH_CHANGES = 9;
+ */
+ FEATURE_MULTI_DATABASE_BATCH_CHANGES = 9,
+
+ /**
+ * @generated from enum value: FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT = 10;
+ */
+ FEATURE_PROGRESSIVE_ENVIRONMENT_DEPLOYMENT = 10,
+
+ /**
+ * @generated from enum value: FEATURE_SCHEDULED_ROLLOUT_TIME = 11;
+ */
+ FEATURE_SCHEDULED_ROLLOUT_TIME = 11,
+
+ /**
+ * @generated from enum value: FEATURE_DATABASE_CHANGELOG = 12;
+ */
+ FEATURE_DATABASE_CHANGELOG = 12,
+
+ /**
+ * @generated from enum value: FEATURE_SCHEMA_DRIFT_DETECTION = 13;
+ */
+ FEATURE_SCHEMA_DRIFT_DETECTION = 13,
+
+ /**
+ * @generated from enum value: FEATURE_CHANGELIST = 14;
+ */
+ FEATURE_CHANGELIST = 14,
+
+ /**
+ * @generated from enum value: FEATURE_SCHEMA_TEMPLATE = 15;
+ */
+ FEATURE_SCHEMA_TEMPLATE = 15,
+
+ /**
+ * @generated from enum value: FEATURE_ROLLOUT_POLICY = 16;
+ */
+ FEATURE_ROLLOUT_POLICY = 16,
+
+ /**
+ * SQL Editor & Development
+ *
+ * @generated from enum value: FEATURE_WEB_BASED_SQL_EDITOR = 17;
+ */
+ FEATURE_WEB_BASED_SQL_EDITOR = 17,
+
+ /**
+ * @generated from enum value: FEATURE_SQL_EDITOR_ADMIN_MODE = 18;
+ */
+ FEATURE_SQL_EDITOR_ADMIN_MODE = 18,
+
+ /**
+ * @generated from enum value: FEATURE_NATURAL_LANGUAGE_TO_SQL = 19;
+ */
+ FEATURE_NATURAL_LANGUAGE_TO_SQL = 19,
+
+ /**
+ * @generated from enum value: FEATURE_AI_QUERY_EXPLANATION = 20;
+ */
+ FEATURE_AI_QUERY_EXPLANATION = 20,
+
+ /**
+ * @generated from enum value: FEATURE_AI_QUERY_SUGGESTIONS = 21;
+ */
+ FEATURE_AI_QUERY_SUGGESTIONS = 21,
+
+ /**
+ * @generated from enum value: FEATURE_AUTO_COMPLETE = 22;
+ */
+ FEATURE_AUTO_COMPLETE = 22,
+
+ /**
+ * @generated from enum value: FEATURE_SCHEMA_DIAGRAM = 23;
+ */
+ FEATURE_SCHEMA_DIAGRAM = 23,
+
+ /**
+ * @generated from enum value: FEATURE_SCHEMA_EDITOR = 24;
+ */
+ FEATURE_SCHEMA_EDITOR = 24,
+
+ /**
+ * @generated from enum value: FEATURE_DATA_EXPORT = 25;
+ */
+ FEATURE_DATA_EXPORT = 25,
+
+ /**
+ * @generated from enum value: FEATURE_QUERY_HISTORY = 26;
+ */
+ FEATURE_QUERY_HISTORY = 26,
+
+ /**
+ * @generated from enum value: FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS = 27;
+ */
+ FEATURE_SAVED_AND_SHARED_SQL_SCRIPTS = 27,
+
+ /**
+ * @generated from enum value: FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION = 28;
+ */
+ FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION = 28,
+
+ /**
+ * @generated from enum value: FEATURE_BATCH_QUERY = 29;
+ */
+ FEATURE_BATCH_QUERY = 29,
+
+ /**
+ * @generated from enum value: FEATURE_INSTANCE_READ_ONLY_CONNECTION = 30;
+ */
+ FEATURE_INSTANCE_READ_ONLY_CONNECTION = 30,
+
+ /**
+ * @generated from enum value: FEATURE_QUERY_POLICY = 31;
+ */
+ FEATURE_QUERY_POLICY = 31,
+
+ /**
+ * @generated from enum value: FEATURE_RESTRICT_COPYING_DATA = 32;
+ */
+ FEATURE_RESTRICT_COPYING_DATA = 32,
+
+ /**
+ * Security & Compliance
+ *
+ * @generated from enum value: FEATURE_IAM = 33;
+ */
+ FEATURE_IAM = 33,
+
+ /**
+ * @generated from enum value: FEATURE_INSTANCE_SSL_CONNECTION = 34;
+ */
+ FEATURE_INSTANCE_SSL_CONNECTION = 34,
+
+ /**
+ * @generated from enum value: FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL = 35;
+ */
+ FEATURE_INSTANCE_CONNECTION_OVER_SSH_TUNNEL = 35,
+
+ /**
+ * @generated from enum value: FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION = 36;
+ */
+ FEATURE_INSTANCE_CONNECTION_IAM_AUTHENTICATION = 36,
+
+ /**
+ * @generated from enum value: FEATURE_GOOGLE_AND_GITHUB_SSO = 37;
+ */
+ FEATURE_GOOGLE_AND_GITHUB_SSO = 37,
+
+ /**
+ * @generated from enum value: FEATURE_USER_GROUPS = 38;
+ */
+ FEATURE_USER_GROUPS = 38,
+
+ /**
+ * @generated from enum value: FEATURE_DISALLOW_SELF_SERVICE_SIGNUP = 39;
+ */
+ FEATURE_DISALLOW_SELF_SERVICE_SIGNUP = 39,
+
+ /**
+ * @generated from enum value: FEATURE_DATABASE_SECRET_VARIABLES = 40;
+ */
+ FEATURE_DATABASE_SECRET_VARIABLES = 40,
+
+ /**
+ * @generated from enum value: FEATURE_QUERY_DATASOURCE_RESTRICTION = 41;
+ */
+ FEATURE_QUERY_DATASOURCE_RESTRICTION = 41,
+
+ /**
+ * @generated from enum value: FEATURE_CUSTOM_INSTANCE_SYNC_TIME = 42;
+ */
+ FEATURE_CUSTOM_INSTANCE_SYNC_TIME = 42,
+
+ /**
+ * @generated from enum value: FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT = 43;
+ */
+ FEATURE_CUSTOM_INSTANCE_CONNECTION_LIMIT = 43,
+
+ /**
+ * @generated from enum value: FEATURE_RISK_ASSESSMENT = 44;
+ */
+ FEATURE_RISK_ASSESSMENT = 44,
+
+ /**
+ * @generated from enum value: FEATURE_APPROVAL_WORKFLOW = 45;
+ */
+ FEATURE_APPROVAL_WORKFLOW = 45,
+
+ /**
+ * @generated from enum value: FEATURE_AUDIT_LOG = 46;
+ */
+ FEATURE_AUDIT_LOG = 46,
+
+ /**
+ * @generated from enum value: FEATURE_ENTERPRISE_SSO = 47;
+ */
+ FEATURE_ENTERPRISE_SSO = 47,
+
+ /**
+ * @generated from enum value: FEATURE_TWO_FA = 48;
+ */
+ FEATURE_TWO_FA = 48,
+
+ /**
+ * @generated from enum value: FEATURE_PASSWORD_RESTRICTIONS = 49;
+ */
+ FEATURE_PASSWORD_RESTRICTIONS = 49,
+
+ /**
+ * @generated from enum value: FEATURE_DISALLOW_PASSWORD_SIGNIN = 50;
+ */
+ FEATURE_DISALLOW_PASSWORD_SIGNIN = 50,
+
+ /**
+ * @generated from enum value: FEATURE_CUSTOM_ROLES = 51;
+ */
+ FEATURE_CUSTOM_ROLES = 51,
+
+ /**
+ * @generated from enum value: FEATURE_REQUEST_ROLE_WORKFLOW = 52;
+ */
+ FEATURE_REQUEST_ROLE_WORKFLOW = 52,
+
+ /**
+ * @generated from enum value: FEATURE_DATA_MASKING = 53;
+ */
+ FEATURE_DATA_MASKING = 53,
+
+ /**
+ * @generated from enum value: FEATURE_DATA_CLASSIFICATION = 54;
+ */
+ FEATURE_DATA_CLASSIFICATION = 54,
+
+ /**
+ * @generated from enum value: FEATURE_SCIM = 55;
+ */
+ FEATURE_SCIM = 55,
+
+ /**
+ * @generated from enum value: FEATURE_DIRECTORY_SYNC = 56;
+ */
+ FEATURE_DIRECTORY_SYNC = 56,
+
+ /**
+ * @generated from enum value: FEATURE_SIGN_IN_FREQUENCY_CONTROL = 57;
+ */
+ FEATURE_SIGN_IN_FREQUENCY_CONTROL = 57,
+
+ /**
+ * @generated from enum value: FEATURE_EXTERNAL_SECRET_MANAGER = 58;
+ */
+ FEATURE_EXTERNAL_SECRET_MANAGER = 58,
+
+ /**
+ * @generated from enum value: FEATURE_USER_EMAIL_DOMAIN_RESTRICTION = 59;
+ */
+ FEATURE_USER_EMAIL_DOMAIN_RESTRICTION = 59,
+
+ /**
+ * Administration & Support
+ *
+ * @generated from enum value: FEATURE_ENVIRONMENT_MANAGEMENT = 60;
+ */
+ FEATURE_ENVIRONMENT_MANAGEMENT = 60,
+
+ /**
+ * @generated from enum value: FEATURE_IM_NOTIFICATIONS = 61;
+ */
+ FEATURE_IM_NOTIFICATIONS = 61,
+
+ /**
+ * @generated from enum value: FEATURE_TERRAFORM_PROVIDER = 62;
+ */
+ FEATURE_TERRAFORM_PROVIDER = 62,
+
+ /**
+ * @generated from enum value: FEATURE_DATABASE_GROUPS = 63;
+ */
+ FEATURE_DATABASE_GROUPS = 63,
+
+ /**
+ * @generated from enum value: FEATURE_ENVIRONMENT_TIERS = 64;
+ */
+ FEATURE_ENVIRONMENT_TIERS = 64,
+
+ /**
+ * @generated from enum value: FEATURE_DASHBOARD_ANNOUNCEMENT = 65;
+ */
+ FEATURE_DASHBOARD_ANNOUNCEMENT = 65,
+
+ /**
+ * @generated from enum value: FEATURE_API_INTEGRATION_GUIDANCE = 66;
+ */
+ FEATURE_API_INTEGRATION_GUIDANCE = 66,
+
+ /**
+ * @generated from enum value: FEATURE_CUSTOM_LOGO = 67;
+ */
+ FEATURE_CUSTOM_LOGO = 67,
+
+ /**
+ * @generated from enum value: FEATURE_WATERMARK = 68;
+ */
+ FEATURE_WATERMARK = 68,
+
+ /**
+ * @generated from enum value: FEATURE_ROADMAP_PRIORITIZATION = 69;
+ */
+ FEATURE_ROADMAP_PRIORITIZATION = 69,
+
+ /**
+ * @generated from enum value: FEATURE_CUSTOM_MSA = 70;
+ */
+ FEATURE_CUSTOM_MSA = 70,
+
+ /**
+ * @generated from enum value: FEATURE_COMMUNITY_SUPPORT = 71;
+ */
+ FEATURE_COMMUNITY_SUPPORT = 71,
+
+ /**
+ * @generated from enum value: FEATURE_EMAIL_SUPPORT = 72;
+ */
+ FEATURE_EMAIL_SUPPORT = 72,
+
+ /**
+ * @generated from enum value: FEATURE_DEDICATED_SUPPORT_WITH_SLA = 73;
+ */
+ FEATURE_DEDICATED_SUPPORT_WITH_SLA = 73,
+}
+
+/**
+ * Describes the enum bytebase.v1.PlanFeature.
+ */
+export declare const PlanFeatureSchema: GenEnum<PlanFeature>;
+
+/**
+ * @generated from service bytebase.v1.SubscriptionService
+ */
+export declare const SubscriptionService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.SubscriptionService.GetSubscription
+ */
+ getSubscription: {
+ methodKind: "unary";
+ input: typeof GetSubscriptionRequestSchema;
+ output: typeof SubscriptionSchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.SubscriptionService.UpdateSubscription
+ */
+ updateSubscription: {
+ methodKind: "unary";
+ input: typeof UpdateSubscriptionRequestSchema;
+ output: typeof SubscriptionSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/subscription_service_pb.js b/frontend/src/types/proto-es/v1/subscription_service_pb.js
new file mode 100644
index 0000000000..6d2e9fa03e
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/subscription_service_pb.js
@@ -0,0 +1,91 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/subscription_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/subscription_service.proto.
+ */
+export const file_v1_subscription_service = /*@__PURE__*/
+ fileDesc("Ch12MS9zdWJzY3JpcHRpb25fc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiGAoWR2V0U3Vic2NyaXB0aW9uUmVxdWVzdCJKChlVcGRhdGVTdWJzY3JpcHRpb25SZXF1ZXN0Ei0KB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T1JUEEgSJgoiRkVBVFVSRV9ERURJQ0FURURfU1VQUE9SVF9XSVRIX1NMQRBJMqMCChNTdWJzY3JpcHRpb25TZXJ2aWNlEnIKD0dldFN1YnNjcmlwdGlvbhIjLmJ5dGViYXNlLnYxLkdldFN1YnNjcmlwdGlvblJlcXVlc3QaGS5ieXRlYmFzZS52MS5TdWJzY3JpcHRpb24iH9pBAIDqMAGC0+STAhISEC92MS9zdWJzY3JpcHRpb24SlwEKElVwZGF0ZVN1YnNjcmlwdGlvbhImLmJ5dGViYXNlLnYxLlVwZGF0ZVN1YnNjcmlwdGlvblJlcXVlc3QaGS5ieXRlYmFzZS52MS5TdWJzY3JpcHRpb24iPtpBBXBhdGNoiuowD2JiLnNldHRpbmdzLnNldJDqMAGC0+STAhk6BXBhdGNoMhAvdjEvc3Vic2NyaXB0aW9uQjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_protobuf_timestamp, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.GetSubscriptionRequest.
+ * Use `create(GetSubscriptionRequestSchema)` to create a new message.
+ */
+export const GetSubscriptionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 0);
+
+/**
+ * Describes the message bytebase.v1.UpdateSubscriptionRequest.
+ * Use `create(UpdateSubscriptionRequestSchema)` to create a new message.
+ */
+export const UpdateSubscriptionRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 1);
+
+/**
+ * Describes the message bytebase.v1.PatchSubscription.
+ * Use `create(PatchSubscriptionSchema)` to create a new message.
+ */
+export const PatchSubscriptionSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 2);
+
+/**
+ * Describes the message bytebase.v1.Subscription.
+ * Use `create(SubscriptionSchema)` to create a new message.
+ */
+export const SubscriptionSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 3);
+
+/**
+ * Describes the message bytebase.v1.PlanConfig.
+ * Use `create(PlanConfigSchema)` to create a new message.
+ */
+export const PlanConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 4);
+
+/**
+ * Describes the message bytebase.v1.PlanLimitConfig.
+ * Use `create(PlanLimitConfigSchema)` to create a new message.
+ */
+export const PlanLimitConfigSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 5);
+
+/**
+ * Describes the enum bytebase.v1.PlanType.
+ */
+export const PlanTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_subscription_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.PlanType
+ */
+export const PlanType = /*@__PURE__*/
+ tsEnum(PlanTypeSchema);
+
+/**
+ * Describes the enum bytebase.v1.PlanFeature.
+ */
+export const PlanFeatureSchema = /*@__PURE__*/
+ enumDesc(file_v1_subscription_service, 1);
+
+/**
+ * PlanFeature represents the available features in Bytebase
+ *
+ * @generated from enum bytebase.v1.PlanFeature
+ */
+export const PlanFeature = /*@__PURE__*/
+ tsEnum(PlanFeatureSchema);
+
+/**
+ * @generated from service bytebase.v1.SubscriptionService
+ */
+export const SubscriptionService = /*@__PURE__*/
+ serviceDesc(file_v1_subscription_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/user_service_pb.d.ts b/frontend/src/types/proto-es/v1/user_service_pb.d.ts
new file mode 100644
index 0000000000..78fa4a487e
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/user_service_pb.d.ts
@@ -0,0 +1,503 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/user_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+import type { State } from "./common_pb";
+
+/**
+ * Describes the file v1/user_service.proto.
+ */
+export declare const file_v1_user_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.GetUserRequest
+ */
+export declare type GetUserRequest = Message<"bytebase.v1.GetUserRequest"> & {
+ /**
+ * The name of the user to retrieve.
+ * Format: users/{user uid or user email}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetUserRequest.
+ * Use `create(GetUserRequestSchema)` to create a new message.
+ */
+export declare const GetUserRequestSchema: GenMessage<GetUserRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetUsersRequest
+ */
+export declare type BatchGetUsersRequest = Message<"bytebase.v1.BatchGetUsersRequest"> & {
+ /**
+ * The user names to retrieve.
+ * Format: users/{user uid or user email}
+ *
+ * @generated from field: repeated string names = 1;
+ */
+ names: string[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetUsersRequest.
+ * Use `create(BatchGetUsersRequestSchema)` to create a new message.
+ */
+export declare const BatchGetUsersRequestSchema: GenMessage<BatchGetUsersRequest>;
+
+/**
+ * @generated from message bytebase.v1.BatchGetUsersResponse
+ */
+export declare type BatchGetUsersResponse = Message<"bytebase.v1.BatchGetUsersResponse"> & {
+ /**
+ * The users from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.User users = 1;
+ */
+ users: User[];
+};
+
+/**
+ * Describes the message bytebase.v1.BatchGetUsersResponse.
+ * Use `create(BatchGetUsersResponseSchema)` to create a new message.
+ */
+export declare const BatchGetUsersResponseSchema: GenMessage<BatchGetUsersResponse>;
+
+/**
+ * @generated from message bytebase.v1.ListUsersRequest
+ */
+export declare type ListUsersRequest = Message<"bytebase.v1.ListUsersRequest"> & {
+ /**
+ * The maximum number of users to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 users will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 1;
+ */
+ pageSize: number;
+
+ /**
+ * A page token, received from a previous `ListUsers` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListUsers` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 2;
+ */
+ pageToken: string;
+
+ /**
+ * Show deleted users if specified.
+ *
+ * @generated from field: bool show_deleted = 3;
+ */
+ showDeleted: boolean;
+
+ /**
+ * Filter is used to filter users returned in the list.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filter:
+ * - name: the user name, support "==" and ".matches()" operator.
+ * - email: the user email, support "==" and ".matches()" operator.
+ * - user_type: the type, check UserType enum for values, support "==", "in [xx]", "!(in [xx])" operator.
+ * - state: check State enum for values, support "==" operator.
+ * - project: the project full name in "projects/{id}" format, support "==" operator.
+ *
+ * For example:
+ * name == "ed"
+ * name.matches("ed")
+ * email == "[email protected]"
+ * email.matches("ed")
+ * user_type == "SERVICE_ACCOUNT"
+ * user_type in ["SERVICE_ACCOUNT", "USER"]
+ * !(user_type in ["SERVICE_ACCOUNT", "USER"])
+ * state == "DELETED"
+ * project == "projects/sample-project"
+ * You can combine filter conditions like:
+ * name.matches("ed") && project == "projects/sample-project"
+ * (name == "ed" || email == "[email protected]") && project == "projects/sample-project"
+ *
+ * @generated from field: string filter = 4;
+ */
+ filter: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListUsersRequest.
+ * Use `create(ListUsersRequestSchema)` to create a new message.
+ */
+export declare const ListUsersRequestSchema: GenMessage<ListUsersRequest>;
+
+/**
+ * @generated from message bytebase.v1.ListUsersResponse
+ */
+export declare type ListUsersResponse = Message<"bytebase.v1.ListUsersResponse"> & {
+ /**
+ * The users from the specified request.
+ *
+ * @generated from field: repeated bytebase.v1.User users = 1;
+ */
+ users: User[];
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.ListUsersResponse.
+ * Use `create(ListUsersResponseSchema)` to create a new message.
+ */
+export declare const ListUsersResponseSchema: GenMessage<ListUsersResponse>;
+
+/**
+ * @generated from message bytebase.v1.CreateUserRequest
+ */
+export declare type CreateUserRequest = Message<"bytebase.v1.CreateUserRequest"> & {
+ /**
+ * The user to create.
+ *
+ * @generated from field: bytebase.v1.User user = 1;
+ */
+ user?: User;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateUserRequest.
+ * Use `create(CreateUserRequestSchema)` to create a new message.
+ */
+export declare const CreateUserRequestSchema: GenMessage<CreateUserRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateUserRequest
+ */
+export declare type UpdateUserRequest = Message<"bytebase.v1.UpdateUserRequest"> & {
+ /**
+ * The user to update.
+ *
+ * The user's `name` field is used to identify the user to update.
+ * Format: users/{user}
+ *
+ * @generated from field: bytebase.v1.User user = 1;
+ */
+ user?: User;
+
+ /**
+ * The list of fields to update.
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+
+ /**
+ * The otp_code is used to verify the user's identity by MFA.
+ *
+ * @generated from field: optional string otp_code = 3;
+ */
+ otpCode?: string;
+
+ /**
+ * The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user.
+ * This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response.
+ *
+ * @generated from field: bool regenerate_temp_mfa_secret = 4;
+ */
+ regenerateTempMfaSecret: boolean;
+
+ /**
+ * The regenerate_recovery_codes flag means to regenerate recovery codes for user.
+ *
+ * @generated from field: bool regenerate_recovery_codes = 5;
+ */
+ regenerateRecoveryCodes: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateUserRequest.
+ * Use `create(UpdateUserRequestSchema)` to create a new message.
+ */
+export declare const UpdateUserRequestSchema: GenMessage<UpdateUserRequest>;
+
+/**
+ * @generated from message bytebase.v1.DeleteUserRequest
+ */
+export declare type DeleteUserRequest = Message<"bytebase.v1.DeleteUserRequest"> & {
+ /**
+ * The name of the user to delete.
+ * Format: users/{user}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteUserRequest.
+ * Use `create(DeleteUserRequestSchema)` to create a new message.
+ */
+export declare const DeleteUserRequestSchema: GenMessage<DeleteUserRequest>;
+
+/**
+ * @generated from message bytebase.v1.UndeleteUserRequest
+ */
+export declare type UndeleteUserRequest = Message<"bytebase.v1.UndeleteUserRequest"> & {
+ /**
+ * The name of the deleted user.
+ * Format: users/{user}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.UndeleteUserRequest.
+ * Use `create(UndeleteUserRequestSchema)` to create a new message.
+ */
+export declare const UndeleteUserRequestSchema: GenMessage<UndeleteUserRequest>;
+
+/**
+ * @generated from message bytebase.v1.User
+ */
+export declare type User = Message<"bytebase.v1.User"> & {
+ /**
+ * The name of the user.
+ * Format: users/{user}. {user} is a system-generated unique ID.
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * @generated from field: bytebase.v1.State state = 2;
+ */
+ state: State;
+
+ /**
+ * @generated from field: string email = 3;
+ */
+ email: string;
+
+ /**
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * @generated from field: bytebase.v1.UserType user_type = 5;
+ */
+ userType: UserType;
+
+ /**
+ * @generated from field: string password = 7;
+ */
+ password: string;
+
+ /**
+ * @generated from field: string service_key = 8;
+ */
+ serviceKey: string;
+
+ /**
+ * The mfa_enabled flag means if the user has enabled MFA.
+ *
+ * @generated from field: bool mfa_enabled = 9;
+ */
+ mfaEnabled: boolean;
+
+ /**
+ * The mfa_secret is the temporary secret using in two phase verification.
+ *
+ * @generated from field: string mfa_secret = 10;
+ */
+ mfaSecret: string;
+
+ /**
+ * The recovery_codes is the temporary recovery codes using in two phase verification.
+ *
+ * @generated from field: repeated string recovery_codes = 11;
+ */
+ recoveryCodes: string[];
+
+ /**
+ * Should be a valid E.164 compliant phone number.
+ * Could be empty.
+ *
+ * @generated from field: string phone = 12;
+ */
+ phone: string;
+
+ /**
+ * @generated from field: bytebase.v1.User.Profile profile = 13;
+ */
+ profile?: User_Profile;
+};
+
+/**
+ * Describes the message bytebase.v1.User.
+ * Use `create(UserSchema)` to create a new message.
+ */
+export declare const UserSchema: GenMessage<User>;
+
+/**
+ * @generated from message bytebase.v1.User.Profile
+ */
+export declare type User_Profile = Message<"bytebase.v1.User.Profile"> & {
+ /**
+ * @generated from field: google.protobuf.Timestamp last_login_time = 1;
+ */
+ lastLoginTime?: Timestamp;
+
+ /**
+ * @generated from field: google.protobuf.Timestamp last_change_password_time = 2;
+ */
+ lastChangePasswordTime?: Timestamp;
+
+ /**
+ * source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID.
+ *
+ * @generated from field: string source = 3;
+ */
+ source: string;
+};
+
+/**
+ * Describes the message bytebase.v1.User.Profile.
+ * Use `create(User_ProfileSchema)` to create a new message.
+ */
+export declare const User_ProfileSchema: GenMessage<User_Profile>;
+
+/**
+ * @generated from enum bytebase.v1.UserType
+ */
+export enum UserType {
+ /**
+ * @generated from enum value: USER_TYPE_UNSPECIFIED = 0;
+ */
+ USER_TYPE_UNSPECIFIED = 0,
+
+ /**
+ * @generated from enum value: USER = 1;
+ */
+ USER = 1,
+
+ /**
+ * @generated from enum value: SYSTEM_BOT = 2;
+ */
+ SYSTEM_BOT = 2,
+
+ /**
+ * @generated from enum value: SERVICE_ACCOUNT = 3;
+ */
+ SERVICE_ACCOUNT = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.UserType.
+ */
+export declare const UserTypeSchema: GenEnum<UserType>;
+
+/**
+ * @generated from service bytebase.v1.UserService
+ */
+export declare const UserService: GenService<{
+ /**
+ * Get the user.
+ * Any authenticated user can get the user.
+ *
+ * @generated from rpc bytebase.v1.UserService.GetUser
+ */
+ getUser: {
+ methodKind: "unary";
+ input: typeof GetUserRequestSchema;
+ output: typeof UserSchema;
+ },
+ /**
+ * Get the users in batch.
+ * Any authenticated user can batch get users.
+ *
+ * @generated from rpc bytebase.v1.UserService.BatchGetUsers
+ */
+ batchGetUsers: {
+ methodKind: "unary";
+ input: typeof BatchGetUsersRequestSchema;
+ output: typeof BatchGetUsersResponseSchema;
+ },
+ /**
+ * Get the current authenticated user.
+ *
+ * @generated from rpc bytebase.v1.UserService.GetCurrentUser
+ */
+ getCurrentUser: {
+ methodKind: "unary";
+ input: typeof EmptySchema;
+ output: typeof UserSchema;
+ },
+ /**
+ * List all users.
+ * Any authenticated user can list users.
+ *
+ * @generated from rpc bytebase.v1.UserService.ListUsers
+ */
+ listUsers: {
+ methodKind: "unary";
+ input: typeof ListUsersRequestSchema;
+ output: typeof ListUsersResponseSchema;
+ },
+ /**
+ * Create a user.
+ * When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user.
+ * Otherwise, any unauthenticated user can create a user.
+ *
+ * @generated from rpc bytebase.v1.UserService.CreateUser
+ */
+ createUser: {
+ methodKind: "unary";
+ input: typeof CreateUserRequestSchema;
+ output: typeof UserSchema;
+ },
+ /**
+ * Only the user itself and the user with bb.users.update permission on the workspace can update the user.
+ *
+ * @generated from rpc bytebase.v1.UserService.UpdateUser
+ */
+ updateUser: {
+ methodKind: "unary";
+ input: typeof UpdateUserRequestSchema;
+ output: typeof UserSchema;
+ },
+ /**
+ * Only the user with bb.users.delete permission on the workspace can delete the user.
+ * The last remaining workspace admin cannot be deleted.
+ *
+ * @generated from rpc bytebase.v1.UserService.DeleteUser
+ */
+ deleteUser: {
+ methodKind: "unary";
+ input: typeof DeleteUserRequestSchema;
+ output: typeof EmptySchema;
+ },
+ /**
+ * Only the user with bb.users.undelete permission on the workspace can undelete the user.
+ *
+ * @generated from rpc bytebase.v1.UserService.UndeleteUser
+ */
+ undeleteUser: {
+ methodKind: "unary";
+ input: typeof UndeleteUserRequestSchema;
+ output: typeof UserSchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/user_service_pb.js b/frontend/src/types/proto-es/v1/user_service_pb.js
new file mode 100644
index 0000000000..fae2c6402d
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/user_service_pb.js
@@ -0,0 +1,114 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/user_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_api_resource } from "../google/api/resource_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_common } from "./common_pb";
+
+/**
+ * Describes the file v1/user_service.proto.
+ */
+export const file_v1_user_service = /*@__PURE__*/
+ fileDesc("ChV2MS91c2VyX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjoKDkdldFVzZXJSZXF1ZXN0EigKBG5hbWUYASABKAlCGuJBAQL6QRMKEWJ5dGViYXNlLmNvbS9Vc2VyIkEKFEJhdGNoR2V0VXNlcnNSZXF1ZXN0EikKBW5hbWVzGAEgAygJQhriQQEC+kETChFieXRlYmFzZS5jb20vVXNlciI5ChVCYXRjaEdldFVzZXJzUmVzcG9uc2USIAoFdXNlcnMYASADKAsyES5ieXRlYmFzZS52MS5Vc2VyIl8KEExpc3RVc2Vyc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkSFAoMc2hvd19kZWxldGVkGAMgASgIEg4KBmZpbHRlchgEIAEoCSJOChFMaXN0VXNlcnNSZXNwb25zZRIgCgV1c2VycxgBIAMoCzIRLmJ5dGViYXNlLnYxLlVzZXISFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIjoKEUNyZWF0ZVVzZXJSZXF1ZXN0EiUKBHVzZXIYASABK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3YxL3t1c2VyLm5hbWU9dXNlcnMvKn0SbwoKRGVsZXRlVXNlchIeLmJ5dGViYXNlLnYxLkRlbGV0ZVVzZXJSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IinaQQRuYW1lkOowApjqMAGC0+STAhQqEi92MS97bmFtZT11c2Vycy8qfRJzCgxVbmRlbGV0ZVVzZXISIC5ieXRlYmFzZS52MS5VbmRlbGV0ZVVzZXJSZXF1ZXN0GhEuYnl0ZWJhc2UudjEuVXNlciIukOowApjqMAGC0+STAiA6ASoiGy92MS97bmFtZT11c2Vycy8qfTp1bmRlbGV0ZUI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
+
+/**
+ * Describes the message bytebase.v1.GetUserRequest.
+ * Use `create(GetUserRequestSchema)` to create a new message.
+ */
+export const GetUserRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 0);
+
+/**
+ * Describes the message bytebase.v1.BatchGetUsersRequest.
+ * Use `create(BatchGetUsersRequestSchema)` to create a new message.
+ */
+export const BatchGetUsersRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 1);
+
+/**
+ * Describes the message bytebase.v1.BatchGetUsersResponse.
+ * Use `create(BatchGetUsersResponseSchema)` to create a new message.
+ */
+export const BatchGetUsersResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 2);
+
+/**
+ * Describes the message bytebase.v1.ListUsersRequest.
+ * Use `create(ListUsersRequestSchema)` to create a new message.
+ */
+export const ListUsersRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 3);
+
+/**
+ * Describes the message bytebase.v1.ListUsersResponse.
+ * Use `create(ListUsersResponseSchema)` to create a new message.
+ */
+export const ListUsersResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 4);
+
+/**
+ * Describes the message bytebase.v1.CreateUserRequest.
+ * Use `create(CreateUserRequestSchema)` to create a new message.
+ */
+export const CreateUserRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 5);
+
+/**
+ * Describes the message bytebase.v1.UpdateUserRequest.
+ * Use `create(UpdateUserRequestSchema)` to create a new message.
+ */
+export const UpdateUserRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 6);
+
+/**
+ * Describes the message bytebase.v1.DeleteUserRequest.
+ * Use `create(DeleteUserRequestSchema)` to create a new message.
+ */
+export const DeleteUserRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 7);
+
+/**
+ * Describes the message bytebase.v1.UndeleteUserRequest.
+ * Use `create(UndeleteUserRequestSchema)` to create a new message.
+ */
+export const UndeleteUserRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 8);
+
+/**
+ * Describes the message bytebase.v1.User.
+ * Use `create(UserSchema)` to create a new message.
+ */
+export const UserSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 9);
+
+/**
+ * Describes the message bytebase.v1.User.Profile.
+ * Use `create(User_ProfileSchema)` to create a new message.
+ */
+export const User_ProfileSchema = /*@__PURE__*/
+ messageDesc(file_v1_user_service, 9, 0);
+
+/**
+ * Describes the enum bytebase.v1.UserType.
+ */
+export const UserTypeSchema = /*@__PURE__*/
+ enumDesc(file_v1_user_service, 0);
+
+/**
+ * @generated from enum bytebase.v1.UserType
+ */
+export const UserType = /*@__PURE__*/
+ tsEnum(UserTypeSchema);
+
+/**
+ * @generated from service bytebase.v1.UserService
+ */
+export const UserService = /*@__PURE__*/
+ serviceDesc(file_v1_user_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/worksheet_service_pb.d.ts b/frontend/src/types/proto-es/v1/worksheet_service_pb.d.ts
new file mode 100644
index 0000000000..8e09d27798
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/worksheet_service_pb.d.ts
@@ -0,0 +1,450 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/worksheet_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { Message } from "@bufbuild/protobuf";
+import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
+
+/**
+ * Describes the file v1/worksheet_service.proto.
+ */
+export declare const file_v1_worksheet_service: GenFile;
+
+/**
+ * @generated from message bytebase.v1.CreateWorksheetRequest
+ */
+export declare type CreateWorksheetRequest = Message<"bytebase.v1.CreateWorksheetRequest"> & {
+ /**
+ * The worksheet to create.
+ *
+ * @generated from field: bytebase.v1.Worksheet worksheet = 1;
+ */
+ worksheet?: Worksheet;
+};
+
+/**
+ * Describes the message bytebase.v1.CreateWorksheetRequest.
+ * Use `create(CreateWorksheetRequestSchema)` to create a new message.
+ */
+export declare const CreateWorksheetRequestSchema: GenMessage<CreateWorksheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.GetWorksheetRequest
+ */
+export declare type GetWorksheetRequest = Message<"bytebase.v1.GetWorksheetRequest"> & {
+ /**
+ * The name of the worksheet to retrieve.
+ * Format: worksheets/{worksheet}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.GetWorksheetRequest.
+ * Use `create(GetWorksheetRequestSchema)` to create a new message.
+ */
+export declare const GetWorksheetRequestSchema: GenMessage<GetWorksheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateWorksheetRequest
+ */
+export declare type UpdateWorksheetRequest = Message<"bytebase.v1.UpdateWorksheetRequest"> & {
+ /**
+ * The worksheet to update.
+ *
+ * The worksheet's `name` field is used to identify the worksheet to update.
+ * Format: worksheets/{worksheet}
+ *
+ * @generated from field: bytebase.v1.Worksheet worksheet = 1;
+ */
+ worksheet?: Worksheet;
+
+ /**
+ * The list of fields to be updated.
+ * Fields are specified relative to the worksheet.
+ * (e.g. `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`)
+ * Only support update the following fields for now:
+ * - `title`
+ * - `statement`
+ * - `starred`
+ * - `visibility`
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateWorksheetRequest.
+ * Use `create(UpdateWorksheetRequestSchema)` to create a new message.
+ */
+export declare const UpdateWorksheetRequestSchema: GenMessage<UpdateWorksheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.UpdateWorksheetOrganizerRequest
+ */
+export declare type UpdateWorksheetOrganizerRequest = Message<"bytebase.v1.UpdateWorksheetOrganizerRequest"> & {
+ /**
+ * The organizer to update.
+ *
+ * The organizer's `worksheet` field is used to identify the worksheet.
+ * Format: worksheets/{worksheet}
+ *
+ * @generated from field: bytebase.v1.WorksheetOrganizer organizer = 1;
+ */
+ organizer?: WorksheetOrganizer;
+
+ /**
+ * The list of fields to be updated.
+ * Fields are specified relative to the worksheet organizer.
+ * Only support update the following fields for now:
+ * - `starred`
+ *
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
+ */
+ updateMask?: FieldMask;
+};
+
+/**
+ * Describes the message bytebase.v1.UpdateWorksheetOrganizerRequest.
+ * Use `create(UpdateWorksheetOrganizerRequestSchema)` to create a new message.
+ */
+export declare const UpdateWorksheetOrganizerRequestSchema: GenMessage<UpdateWorksheetOrganizerRequest>;
+
+/**
+ * @generated from message bytebase.v1.WorksheetOrganizer
+ */
+export declare type WorksheetOrganizer = Message<"bytebase.v1.WorksheetOrganizer"> & {
+ /**
+ * The name of the worksheet.
+ * Format: worksheets/{worksheet}
+ *
+ * @generated from field: string worksheet = 1;
+ */
+ worksheet: string;
+
+ /**
+ * starred means if the worksheet is starred.
+ *
+ * @generated from field: bool starred = 2;
+ */
+ starred: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.WorksheetOrganizer.
+ * Use `create(WorksheetOrganizerSchema)` to create a new message.
+ */
+export declare const WorksheetOrganizerSchema: GenMessage<WorksheetOrganizer>;
+
+/**
+ * @generated from message bytebase.v1.DeleteWorksheetRequest
+ */
+export declare type DeleteWorksheetRequest = Message<"bytebase.v1.DeleteWorksheetRequest"> & {
+ /**
+ * The name of the worksheet to delete.
+ * Format: worksheets/{worksheet}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+};
+
+/**
+ * Describes the message bytebase.v1.DeleteWorksheetRequest.
+ * Use `create(DeleteWorksheetRequestSchema)` to create a new message.
+ */
+export declare const DeleteWorksheetRequestSchema: GenMessage<DeleteWorksheetRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchWorksheetsRequest
+ */
+export declare type SearchWorksheetsRequest = Message<"bytebase.v1.SearchWorksheetsRequest"> & {
+ /**
+ * To filter the search result.
+ * The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
+ *
+ * Supported filter:
+ * - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
+ * - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
+ * - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
+ *
+ * For example:
+ * creator == "users/{email}"
+ * creator != "users/{email}"
+ * starred == true
+ * starred == false
+ * visibility in ["VISIBILITY_PRIVATE", "VISIBILITY_PROJECT_READ", "VISIBILITY_PROJECT_WRITE"]
+ * visibility == "VISIBILITY_PRIVATE"
+ *
+ * @generated from field: string filter = 1;
+ */
+ filter: string;
+
+ /**
+ * Not used.
+ * The maximum number of worksheets to return. The service may return fewer than
+ * this value.
+ * If unspecified, at most 10 worksheets will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ *
+ * @generated from field: int32 page_size = 2;
+ */
+ pageSize: number;
+
+ /**
+ * Not used.
+ * A page token, received from a previous `SearchWorksheets` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `SearchWorksheets` must match
+ * the call that provided the page token.
+ *
+ * @generated from field: string page_token = 3;
+ */
+ pageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchWorksheetsRequest.
+ * Use `create(SearchWorksheetsRequestSchema)` to create a new message.
+ */
+export declare const SearchWorksheetsRequestSchema: GenMessage<SearchWorksheetsRequest>;
+
+/**
+ * @generated from message bytebase.v1.SearchWorksheetsResponse
+ */
+export declare type SearchWorksheetsResponse = Message<"bytebase.v1.SearchWorksheetsResponse"> & {
+ /**
+ * The worksheets that matched the search criteria.
+ *
+ * @generated from field: repeated bytebase.v1.Worksheet worksheets = 1;
+ */
+ worksheets: Worksheet[];
+
+ /**
+ * Not used. A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * @generated from field: string next_page_token = 2;
+ */
+ nextPageToken: string;
+};
+
+/**
+ * Describes the message bytebase.v1.SearchWorksheetsResponse.
+ * Use `create(SearchWorksheetsResponseSchema)` to create a new message.
+ */
+export declare const SearchWorksheetsResponseSchema: GenMessage<SearchWorksheetsResponse>;
+
+/**
+ * @generated from message bytebase.v1.Worksheet
+ */
+export declare type Worksheet = Message<"bytebase.v1.Worksheet"> & {
+ /**
+ * The name of the worksheet resource, generated by the server.
+ * Canonical parent is project.
+ * Format: worksheets/{worksheet}
+ *
+ * @generated from field: string name = 1;
+ */
+ name: string;
+
+ /**
+ * The project resource name.
+ * Format: projects/{project}
+ *
+ * @generated from field: string project = 2;
+ */
+ project: string;
+
+ /**
+ * The database resource name.
+ * Format: instances/{instance}/databases/{database}
+ * If the database parent doesn't exist, the database field is empty.
+ *
+ * @generated from field: string database = 3;
+ */
+ database: string;
+
+ /**
+ * The title of the worksheet.
+ *
+ * @generated from field: string title = 4;
+ */
+ title: string;
+
+ /**
+ * The creator of the Worksheet.
+ * Format: users/{email}
+ *
+ * @generated from field: string creator = 5;
+ */
+ creator: string;
+
+ /**
+ * The create time of the worksheet.
+ *
+ * @generated from field: google.protobuf.Timestamp create_time = 6;
+ */
+ createTime?: Timestamp;
+
+ /**
+ * The last update time of the worksheet.
+ *
+ * @generated from field: google.protobuf.Timestamp update_time = 7;
+ */
+ updateTime?: Timestamp;
+
+ /**
+ * The content of the worksheet.
+ * By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can
+ * use GetWorksheet() request to retrieve the full content.
+ *
+ * @generated from field: bytes content = 8;
+ */
+ content: Uint8Array;
+
+ /**
+ * content_size is the full size of the content, may not match the size of the `content` field.
+ *
+ * @generated from field: int64 content_size = 9;
+ */
+ contentSize: bigint;
+
+ /**
+ * @generated from field: bytebase.v1.Worksheet.Visibility visibility = 10;
+ */
+ visibility: Worksheet_Visibility;
+
+ /**
+ * starred indicates whether the worksheet is starred by the current authenticated user.
+ *
+ * @generated from field: bool starred = 11;
+ */
+ starred: boolean;
+};
+
+/**
+ * Describes the message bytebase.v1.Worksheet.
+ * Use `create(WorksheetSchema)` to create a new message.
+ */
+export declare const WorksheetSchema: GenMessage<Worksheet>;
+
+/**
+ * @generated from enum bytebase.v1.Worksheet.Visibility
+ */
+export enum Worksheet_Visibility {
+ /**
+ * @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
+ */
+ UNSPECIFIED = 0,
+
+ /**
+ * Read access in project scope, worksheet OWNER/DBA and project OWNER can read/write, other project members can read.
+ *
+ * @generated from enum value: VISIBILITY_PROJECT_READ = 1;
+ */
+ PROJECT_READ = 1,
+
+ /**
+ * Write access in project scope, worksheet OWNER/DBA and all members in the project can write the worksheet.
+ *
+ * @generated from enum value: VISIBILITY_PROJECT_WRITE = 2;
+ */
+ PROJECT_WRITE = 2,
+
+ /**
+ * Private, only worksheet OWNER can read/write.
+ *
+ * @generated from enum value: VISIBILITY_PRIVATE = 3;
+ */
+ PRIVATE = 3,
+}
+
+/**
+ * Describes the enum bytebase.v1.Worksheet.Visibility.
+ */
+export declare const Worksheet_VisibilitySchema: GenEnum<Worksheet_Visibility>;
+
+/**
+ * @generated from service bytebase.v1.WorksheetService
+ */
+export declare const WorksheetService: GenService<{
+ /**
+ * Create a personal worksheet used in SQL Editor.
+ *
+ * @generated from rpc bytebase.v1.WorksheetService.CreateWorksheet
+ */
+ createWorksheet: {
+ methodKind: "unary";
+ input: typeof CreateWorksheetRequestSchema;
+ output: typeof WorksheetSchema;
+ },
+ /**
+ * Get a worksheet by name.
+ * The users can access this method if,
+ * - they are the creator of the worksheet;
+ * - they have bb.worksheets.get permission on the workspace;
+ * - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
+ *
+ * @generated from rpc bytebase.v1.WorksheetService.GetWorksheet
+ */
+ getWorksheet: {
+ methodKind: "unary";
+ input: typeof GetWorksheetRequestSchema;
+ output: typeof WorksheetSchema;
+ },
+ /**
+ * Search for worksheets.
+ * This is used for finding my worksheets or worksheets shared by other people.
+ * The sheet accessibility is the same as GetWorksheet().
+ *
+ * @generated from rpc bytebase.v1.WorksheetService.SearchWorksheets
+ */
+ searchWorksheets: {
+ methodKind: "unary";
+ input: typeof SearchWorksheetsRequestSchema;
+ output: typeof SearchWorksheetsResponseSchema;
+ },
+ /**
+ * Update a worksheet.
+ * The users can access this method if,
+ * - they are the creator of the worksheet;
+ * - they have bb.worksheets.manage permission on the workspace;
+ * - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
+ *
+ * @generated from rpc bytebase.v1.WorksheetService.UpdateWorksheet
+ */
+ updateWorksheet: {
+ methodKind: "unary";
+ input: typeof UpdateWorksheetRequestSchema;
+ output: typeof WorksheetSchema;
+ },
+ /**
+ * Update the organizer of a worksheet.
+ * The access is the same as UpdateWorksheet method.
+ *
+ * @generated from rpc bytebase.v1.WorksheetService.UpdateWorksheetOrganizer
+ */
+ updateWorksheetOrganizer: {
+ methodKind: "unary";
+ input: typeof UpdateWorksheetOrganizerRequestSchema;
+ output: typeof WorksheetOrganizerSchema;
+ },
+ /**
+ * Delete a worksheet.
+ * The access is the same as UpdateWorksheet method.
+ *
+ * @generated from rpc bytebase.v1.WorksheetService.DeleteWorksheet
+ */
+ deleteWorksheet: {
+ methodKind: "unary";
+ input: typeof DeleteWorksheetRequestSchema;
+ output: typeof EmptySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/worksheet_service_pb.js b/frontend/src/types/proto-es/v1/worksheet_service_pb.js
new file mode 100644
index 0000000000..700e7c0d96
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/worksheet_service_pb.js
@@ -0,0 +1,98 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/worksheet_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_google_api_client } from "../google/api/client_pb";
+import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
+import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
+import { file_v1_annotation } from "./annotation_pb";
+
+/**
+ * Describes the file v1/worksheet_service.proto.
+ */
+export const file_v1_worksheet_service = /*@__PURE__*/
+ fileDesc("Chp2MS93b3Jrc2hlZXRfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiSQoWQ3JlYXRlV29ya3NoZWV0UmVxdWVzdBIvCgl3b3Jrc2hlZXQYASABKAsyFi5ieXRlYmFzZS52MS5Xb3Jrc2hlZXRCBOJBAQIiKQoTR2V0V29ya3NoZWV0UmVxdWVzdBISCgRuYW1lGAEgASgJQgTiQQECInoKFlVwZGF0ZVdvcmtzaGVldFJlcXVlc3QSLwoJd29ya3NoZWV0GAEgASgLMhYuYnl0ZWJhc2UudjEuV29ya3NoZWV0QgTiQQECEi8KC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzayKMAQofVXBkYXRlV29ya3NoZWV0T3JnYW5pemVyUmVxdWVzdBI4Cglv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jACgtPkkwI9Oglvcmdhbml6ZXIyMC92MS97b3JnYW5pemVyLndvcmtzaGVldD13b3Jrc2hlZXRzLyp9L29yZ2FuaXplchJ6Cg9EZWxldGVXb3Jrc2hlZXQSIy5ieXRlYmFzZS52MS5EZWxldGVXb3Jrc2hlZXRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiraQQRuYW1lkOowAoLT5JMCGSoXL3YxL3tuYW1lPXdvcmtzaGVldHMvKn1CNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation]);
+
+/**
+ * Describes the message bytebase.v1.CreateWorksheetRequest.
+ * Use `create(CreateWorksheetRequestSchema)` to create a new message.
+ */
+export const CreateWorksheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 0);
+
+/**
+ * Describes the message bytebase.v1.GetWorksheetRequest.
+ * Use `create(GetWorksheetRequestSchema)` to create a new message.
+ */
+export const GetWorksheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 1);
+
+/**
+ * Describes the message bytebase.v1.UpdateWorksheetRequest.
+ * Use `create(UpdateWorksheetRequestSchema)` to create a new message.
+ */
+export const UpdateWorksheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 2);
+
+/**
+ * Describes the message bytebase.v1.UpdateWorksheetOrganizerRequest.
+ * Use `create(UpdateWorksheetOrganizerRequestSchema)` to create a new message.
+ */
+export const UpdateWorksheetOrganizerRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 3);
+
+/**
+ * Describes the message bytebase.v1.WorksheetOrganizer.
+ * Use `create(WorksheetOrganizerSchema)` to create a new message.
+ */
+export const WorksheetOrganizerSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 4);
+
+/**
+ * Describes the message bytebase.v1.DeleteWorksheetRequest.
+ * Use `create(DeleteWorksheetRequestSchema)` to create a new message.
+ */
+export const DeleteWorksheetRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 5);
+
+/**
+ * Describes the message bytebase.v1.SearchWorksheetsRequest.
+ * Use `create(SearchWorksheetsRequestSchema)` to create a new message.
+ */
+export const SearchWorksheetsRequestSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 6);
+
+/**
+ * Describes the message bytebase.v1.SearchWorksheetsResponse.
+ * Use `create(SearchWorksheetsResponseSchema)` to create a new message.
+ */
+export const SearchWorksheetsResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 7);
+
+/**
+ * Describes the message bytebase.v1.Worksheet.
+ * Use `create(WorksheetSchema)` to create a new message.
+ */
+export const WorksheetSchema = /*@__PURE__*/
+ messageDesc(file_v1_worksheet_service, 8);
+
+/**
+ * Describes the enum bytebase.v1.Worksheet.Visibility.
+ */
+export const Worksheet_VisibilitySchema = /*@__PURE__*/
+ enumDesc(file_v1_worksheet_service, 8, 0);
+
+/**
+ * @generated from enum bytebase.v1.Worksheet.Visibility
+ */
+export const Worksheet_Visibility = /*@__PURE__*/
+ tsEnum(Worksheet_VisibilitySchema);
+
+/**
+ * @generated from service bytebase.v1.WorksheetService
+ */
+export const WorksheetService = /*@__PURE__*/
+ serviceDesc(file_v1_worksheet_service, 0);
+
diff --git a/frontend/src/types/proto-es/v1/workspace_service_pb.d.ts b/frontend/src/types/proto-es/v1/workspace_service_pb.d.ts
new file mode 100644
index 0000000000..a4a7f2d5b9
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/workspace_service_pb.d.ts
@@ -0,0 +1,34 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/workspace_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv2";
+import type { GetIamPolicyRequestSchema, IamPolicySchema, SetIamPolicyRequestSchema } from "./iam_policy_pb";
+
+/**
+ * Describes the file v1/workspace_service.proto.
+ */
+export declare const file_v1_workspace_service: GenFile;
+
+/**
+ * @generated from service bytebase.v1.WorkspaceService
+ */
+export declare const WorkspaceService: GenService<{
+ /**
+ * @generated from rpc bytebase.v1.WorkspaceService.GetIamPolicy
+ */
+ getIamPolicy: {
+ methodKind: "unary";
+ input: typeof GetIamPolicyRequestSchema;
+ output: typeof IamPolicySchema;
+ },
+ /**
+ * @generated from rpc bytebase.v1.WorkspaceService.SetIamPolicy
+ */
+ setIamPolicy: {
+ methodKind: "unary";
+ input: typeof SetIamPolicyRequestSchema;
+ output: typeof IamPolicySchema;
+ },
+}>;
+
diff --git a/frontend/src/types/proto-es/v1/workspace_service_pb.js b/frontend/src/types/proto-es/v1/workspace_service_pb.js
new file mode 100644
index 0000000000..df1e63b729
--- /dev/null
+++ b/frontend/src/types/proto-es/v1/workspace_service_pb.js
@@ -0,0 +1,21 @@
+// @generated by protoc-gen-es v2.5.2
+// @generated from file v1/workspace_service.proto (package bytebase.v1, syntax proto3)
+/* eslint-disable */
+
+import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
+import { file_google_api_annotations } from "../google/api/annotations_pb";
+import { file_v1_annotation } from "./annotation_pb";
+import { file_v1_iam_policy } from "./iam_policy_pb";
+
+/**
+ * Describes the file v1/workspace_service.proto.
+ */
+export const file_v1_workspace_service = /*@__PURE__*/
+ fileDesc("Chp2MS93b3Jrc3BhY2Vfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEy1wIKEFdvcmtzcGFjZVNlcnZpY2USnAEKDEdldElhbVBvbGljeRIgLmJ5dGViYXNlLnYxLkdldElhbVBvbGljeVJlcXVlc3QaFi5ieXRlYmFzZS52MS5JYW1Qb2xpY3kiUorqMBpiYi53b3Jrc3BhY2VzLmdldElhbVBvbGljeZDqMAGC0+STAioSKC92MS97cmVzb3VyY2U9d29ya3NwYWNlcy8qfTpnZXRJYW1Qb2xpY3kSowEKDFNldElhbVBvbGljeRIgLmJ5dGViYXNlLnYxLlNldElhbVBvbGljeVJlcXVlc3QaFi5ieXRlYmFzZS52MS5JYW1Qb2xpY3kiWYrqMBpiYi53b3Jrc3BhY2VzLnNldElhbVBvbGljeZDqMAGY6jABgtPkkwItOgEqIigvdjEve3Jlc291cmNlPXdvcmtzcGFjZXMvKn06c2V0SWFtUG9saWN5QjRaMmdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvcHJvdG8vZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [file_google_api_annotations, file_v1_annotation, file_v1_iam_policy]);
+
+/**
+ * @generated from service bytebase.v1.WorkspaceService
+ */
+export const WorkspaceService = /*@__PURE__*/
+ serviceDesc(file_v1_workspace_service, 0);
+
diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vue
index 45ced6f908..03205b24ca 100644
--- a/frontend/src/views/auth/Signup.vue
+++ b/frontend/src/views/auth/Signup.vue
@@ -48,7 +48,12 @@
v-model:password="state.password"
v-model:password-confirm="state.passwordConfirm"
:show-learn-more="false"
- :password-restriction="passwordRestriction"
+ :password-restriction="
+ PasswordRestrictionSetting.fromJSON(
+ toJson(PasswordRestrictionSettingSchema, passwordRestriction)
+ )
+ // TODO(es): remove after migration
+ "
/>
<div>
@@ -140,6 +145,7 @@
</template>
<script lang="ts" setup>
+import { toJson } from "@bufbuild/protobuf";
import { NButton, NCheckbox } from "naive-ui";
import { storeToRefs } from "pinia";
import { computed, onMounted, reactive, ref } from "vue";
@@ -149,6 +155,8 @@ import RequiredStar from "@/components/RequiredStar.vue";
import UserPassword from "@/components/User/Settings/UserPassword.vue";
import { AUTH_SIGNIN_MODULE } from "@/router/auth";
import { useActuatorV1Store, useAuthStore } from "@/store";
+import { PasswordRestrictionSettingSchema } from "@/types/proto-es/v1/setting_service_pb";
+import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";
import type { User } from "@/types/proto/v1/user_service";
import { isValidEmail } from "@/utils";
import AuthFooter from "./AuthFooter.vue";
diff --git a/go.mod b/go.mod
index d877500ded..f8350d9c70 100644
--- a/go.mod
+++ b/go.mod
@@ -11,6 +11,8 @@ require (
cloud.google.com/go/cloudsqlconn v1.17.1
cloud.google.com/go/secretmanager v1.14.7
cloud.google.com/go/spanner v1.82.0
+ connectrpc.com/connect v1.18.1
+ connectrpc.com/cors v0.1.0
gitee.com/chunanyong/dm v1.8.20
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.0
@@ -350,7 +352,7 @@ require (
github.com/prometheus/common v0.63.0 // indirect
github.com/prometheus/procfs v0.16.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
- github.com/rs/cors v1.7.0 // indirect
+ github.com/rs/cors v1.7.0
github.com/segmentio/asm v1.2.0 // indirect
github.com/segmentio/backo-go v1.0.1 // indirect
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
diff --git a/go.sum b/go.sum
index 8cfc5dfc45..74dfc489e9 100644
--- a/go.sum
+++ b/go.sum
@@ -620,6 +620,10 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS
cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M=
cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA=
cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
+connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw=
+connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8=
+connectrpc.com/cors v0.1.0 h1:f3gTXJyDZPrDIZCQ567jxfD9PAIpopHiRDnJRt3QuOQ=
+connectrpc.com/cors v0.1.0/go.mod h1:v8SJZCPfHtGH1zsm+Ttajpozd4cYIUryl4dFB6QEpfg=
dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s=
dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml
index 1d0168f257..41db2e0bb8 100644
--- a/proto/buf.gen.yaml
+++ b/proto/buf.gen.yaml
@@ -7,12 +7,21 @@ plugins:
- remote: buf.build/grpc/go
out: generated-go
opt: paths=source_relative
+ - remote: buf.build/connectrpc/go:v1.18.1
+ out: generated-go
+ opt:
+ - paths=source_relative
- remote: buf.build/grpc-ecosystem/gateway
out: generated-go
opt: paths=source_relative
- remote: buf.build/community/pseudomuto-doc:v1.5.1
out: gen/grpc-doc
opt: markdown,README.md,source_relative
+ - remote: buf.build/bufbuild/es:v2.5.2
+ out: ../frontend/src/types/proto-es
+ include_imports: true
+ types:
+ - bytebase.v1
- remote: buf.build/community/stephenh-ts-proto:v2.3.0
out: ../frontend/src/types/proto
opt:
diff --git a/proto/generated-go/v1/actuator_service.pb.go b/proto/generated-go/v1/actuator_service.pb.go
index bc03cef925..d29c450c78 100644
--- a/proto/generated-go/v1/actuator_service.pb.go
+++ b/proto/generated-go/v1/actuator_service.pb.go
@@ -611,7 +611,7 @@ const file_v1_actuator_service_proto_rawDesc = "" +
"\x12UpdateActuatorInfo\x12&.bytebase.v1.UpdateActuatorInfoRequest\x1a\x19.bytebase.v1.ActuatorInfo\"Q\xdaA\x14actuator,update_mask\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\bactuator2\x11/v1/actuator/info\x12\x82\x01\n" +
"\vSetupSample\x12\x1f.bytebase.v1.SetupSampleRequest\x1a\x16.google.protobuf.Empty\":\x8a\xea0\x12bb.projects.create\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1a\"\x18/v1/actuator:setupSample\x12f\n" +
"\vDeleteCache\x12\x1f.bytebase.v1.DeleteCacheRequest\x1a\x16.google.protobuf.Empty\"\x1e\x80\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/actuator/cache\x12\x81\x01\n" +
- "\x12GetResourcePackage\x12&.bytebase.v1.GetResourcePackageRequest\x1a\x1c.bytebase.v1.ResourcePackage\"%\xdaA\x00\x80\xea0\x01\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/actuator/resourcesB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x12GetResourcePackage\x12&.bytebase.v1.GetResourcePackageRequest\x1a\x1c.bytebase.v1.ResourcePackage\"%\xdaA\x00\x80\xea0\x01\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/actuator/resourcesB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_actuator_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/annotation.pb.go b/proto/generated-go/v1/annotation.pb.go
index 334177ee3f..c71fa02fec 100644
--- a/proto/generated-go/v1/annotation.pb.go
+++ b/proto/generated-go/v1/annotation.pb.go
@@ -137,7 +137,7 @@ const file_v1_annotation_proto_rawDesc = "" +
"permission:Z\n" +
"\vauth_method\x12\x1e.google.protobuf.MethodOptions\x18\xa2\x8d\x06 \x01(\x0e2\x17.bytebase.v1.AuthMethodR\n" +
"authMethod:6\n" +
- "\x05audit\x12\x1e.google.protobuf.MethodOptions\x18\xa3\x8d\x06 \x01(\bR\x05auditB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x05audit\x12\x1e.google.protobuf.MethodOptions\x18\xa3\x8d\x06 \x01(\bR\x05auditB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_annotation_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/audit_log_service.pb.go b/proto/generated-go/v1/audit_log_service.pb.go
index 2866059ae4..a16e63d577 100644
--- a/proto/generated-go/v1/audit_log_service.pb.go
+++ b/proto/generated-go/v1/audit_log_service.pb.go
@@ -696,7 +696,7 @@ const file_v1_audit_log_service_proto_rawDesc = "" +
"\x1acaller_supplied_user_agent\x18\x02 \x01(\tR\x17callerSuppliedUserAgent2\xa5\x03\n" +
"\x0fAuditLogService\x12\xc7\x01\n" +
"\x0fSearchAuditLogs\x12#.bytebase.v1.SearchAuditLogsRequest\x1a$.bytebase.v1.SearchAuditLogsResponse\"i\x8a\xea0\x13bb.auditLogs.search\x90\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:search\"(/v1/{parent=projects/*}/auditLogs:search\x12\xc7\x01\n" +
- "\x0fExportAuditLogs\x12#.bytebase.v1.ExportAuditLogsRequest\x1a$.bytebase.v1.ExportAuditLogsResponse\"i\x8a\xea0\x13bb.auditLogs.export\x90\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:export\"(/v1/{parent=projects/*}/auditLogs:exportB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x0fExportAuditLogs\x12#.bytebase.v1.ExportAuditLogsRequest\x1a$.bytebase.v1.ExportAuditLogsResponse\"i\x8a\xea0\x13bb.auditLogs.export\x90\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:export\"(/v1/{parent=projects/*}/auditLogs:exportB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_audit_log_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/auth_service.pb.go b/proto/generated-go/v1/auth_service.pb.go
index f8a6c42208..d4e0dd603e 100644
--- a/proto/generated-go/v1/auth_service.pb.go
+++ b/proto/generated-go/v1/auth_service.pb.go
@@ -431,7 +431,7 @@ const file_v1_auth_service_proto_rawDesc = "" +
"\rLogoutRequest2\xd2\x01\n" +
"\vAuthService\x12a\n" +
"\x05Login\x12\x19.bytebase.v1.LoginRequest\x1a\x1a.bytebase.v1.LoginResponse\"!\x80\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/v1/auth/login\x12`\n" +
- "\x06Logout\x12\x1a.bytebase.v1.LogoutRequest\x1a\x16.google.protobuf.Empty\"\"\x80\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/auth/logoutB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x06Logout\x12\x1a.bytebase.v1.LogoutRequest\x1a\x16.google.protobuf.Empty\"\"\x80\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/auth/logoutB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_auth_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/cel_service.pb.go b/proto/generated-go/v1/cel_service.pb.go
index d55ebdcbe8..c021bf279b 100644
--- a/proto/generated-go/v1/cel_service.pb.go
+++ b/proto/generated-go/v1/cel_service.pb.go
@@ -216,7 +216,7 @@ const file_v1_cel_service_proto_rawDesc = "" +
"CelService\x12p\n" +
"\n" +
"BatchParse\x12\x1e.bytebase.v1.BatchParseRequest\x1a\x1f.bytebase.v1.BatchParseResponse\"!\x80\xea0\x01\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/v1/cel/batchParse\x12x\n" +
- "\fBatchDeparse\x12 .bytebase.v1.BatchDeparseRequest\x1a!.bytebase.v1.BatchDeparseResponse\"#\x80\xea0\x01\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/v1/cel/batchDeparseB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fBatchDeparse\x12 .bytebase.v1.BatchDeparseRequest\x1a!.bytebase.v1.BatchDeparseResponse\"#\x80\xea0\x01\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/v1/cel/batchDeparseB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_cel_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/changelist_service.pb.go b/proto/generated-go/v1/changelist_service.pb.go
index 9651d85d97..968da114a8 100644
--- a/proto/generated-go/v1/changelist_service.pb.go
+++ b/proto/generated-go/v1/changelist_service.pb.go
@@ -560,7 +560,7 @@ const file_v1_changelist_service_proto_rawDesc = "" +
"\x0fListChangelists\x12#.bytebase.v1.ListChangelistsRequest\x1a$.bytebase.v1.ListChangelistsResponse\"O\xdaA\x06parent\x8a\xea0\x13bb.changelists.list\x90\xea0\x01\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=projects/*}/changelists\x12\xcb\x01\n" +
"\x10UpdateChangelist\x12$.bytebase.v1.UpdateChangelistRequest\x1a\x17.bytebase.v1.Changelist\"x\xdaA\x16changelist,update_mask\x8a\xea0\x15bb.changelists.update\x90\xea0\x01\x82\xd3\xe4\x93\x02<:\n" +
"changelist2./v1/{changelist.name=projects/*/changelists/*}\x12\xa1\x01\n" +
- "\x10DeleteChangelist\x12$.bytebase.v1.DeleteChangelistRequest\x1a\x16.google.protobuf.Empty\"O\xdaA\x04name\x8a\xea0\x15bb.changelists.delete\x90\xea0\x01\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/changelists/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x10DeleteChangelist\x12$.bytebase.v1.DeleteChangelistRequest\x1a\x16.google.protobuf.Empty\"O\xdaA\x04name\x8a\xea0\x15bb.changelists.delete\x90\xea0\x01\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/changelists/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_changelist_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/common.pb.go b/proto/generated-go/v1/common.pb.go
index 477b687f75..5768966bea 100644
--- a/proto/generated-go/v1/common.pb.go
+++ b/proto/generated-go/v1/common.pb.go
@@ -480,7 +480,7 @@ const file_v1_common_proto_rawDesc = "" +
"\x03CSV\x10\x01\x12\b\n" +
"\x04JSON\x10\x02\x12\a\n" +
"\x03SQL\x10\x03\x12\b\n" +
- "\x04XLSX\x10\x04B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x04XLSX\x10\x04B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_common_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/database_catalog_service.pb.go b/proto/generated-go/v1/database_catalog_service.pb.go
index 505584ee13..1f55a08e9c 100644
--- a/proto/generated-go/v1/database_catalog_service.pb.go
+++ b/proto/generated-go/v1/database_catalog_service.pb.go
@@ -750,7 +750,7 @@ const file_v1_database_catalog_service_proto_rawDesc = "" +
"\x04kind2\xb3\x03\n" +
"\x16DatabaseCatalogService\x12\xb4\x01\n" +
"\x12GetDatabaseCatalog\x12&.bytebase.v1.GetDatabaseCatalogRequest\x1a\x1c.bytebase.v1.DatabaseCatalog\"X\xdaA\x04name\x8a\xea0\x17bb.databaseCatalogs.get\x90\xea0\x01\x82\xd3\xe4\x93\x02,\x12*/v1/{name=instances/*/databases/*/catalog}\x12\xe1\x01\n" +
- "\x15UpdateDatabaseCatalog\x12).bytebase.v1.UpdateDatabaseCatalogRequest\x1a\x1c.bytebase.v1.DatabaseCatalog\"\x7f\xdaA\x13catalog,update_mask\x8a\xea0\x1abb.databaseCatalogs.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02=:\acatalog22/v1/{catalog.name=instances/*/databases/*/catalog}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x15UpdateDatabaseCatalog\x12).bytebase.v1.UpdateDatabaseCatalogRequest\x1a\x1c.bytebase.v1.DatabaseCatalog\"\x7f\xdaA\x13catalog,update_mask\x8a\xea0\x1abb.databaseCatalogs.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02=:\acatalog22/v1/{catalog.name=instances/*/databases/*/catalog}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_database_catalog_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/database_group_service.pb.go b/proto/generated-go/v1/database_group_service.pb.go
index 0ec2808315..eb35961360 100644
--- a/proto/generated-go/v1/database_group_service.pb.go
+++ b/proto/generated-go/v1/database_group_service.pb.go
@@ -638,7 +638,7 @@ const file_v1_database_group_service_proto_rawDesc = "" +
"\x10GetDatabaseGroup\x12$.bytebase.v1.GetDatabaseGroupRequest\x1a\x1a.bytebase.v1.DatabaseGroup\"L\xdaA\x04name\x8a\xea0\x0fbb.projects.get\x90\xea0\x01\x82\xd3\xe4\x93\x02(\x12&/v1/{name=projects/*/databaseGroups/*}\x12\xcf\x01\n" +
"\x13CreateDatabaseGroup\x12'.bytebase.v1.CreateDatabaseGroupRequest\x1a\x1a.bytebase.v1.DatabaseGroup\"s\xdaA\x14parent,databaseGroup\x8a\xea0\x12bb.projects.update\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x028:\x0edatabase_group\"&/v1/{parent=projects/*}/databaseGroups\x12\xe5\x01\n" +
"\x13UpdateDatabaseGroup\x12'.bytebase.v1.UpdateDatabaseGroupRequest\x1a\x1a.bytebase.v1.DatabaseGroup\"\x88\x01\xdaA\x1adatabase_group,update_mask\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02G:\x0edatabase_group25/v1/{database_group.name=projects/*/databaseGroups/*}\x12\xab\x01\n" +
- "\x13DeleteDatabaseGroup\x12'.bytebase.v1.DeleteDatabaseGroupRequest\x1a\x16.google.protobuf.Empty\"S\xdaA\x04name\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02(*&/v1/{name=projects/*/databaseGroups/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x13DeleteDatabaseGroup\x12'.bytebase.v1.DeleteDatabaseGroupRequest\x1a\x16.google.protobuf.Empty\"S\xdaA\x04name\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02(*&/v1/{name=projects/*/databaseGroups/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_database_group_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.go
index a88165fa03..fbc6578070 100644
--- a/proto/generated-go/v1/database_service.pb.go
+++ b/proto/generated-go/v1/database_service.pb.go
@@ -6136,7 +6136,7 @@ const file_v1_database_service_proto_rawDesc = "" +
"\fDeleteSecret\x12 .bytebase.v1.DeleteSecretRequest\x1a\x16.google.protobuf.Empty\"Y\x8a\xea0\x19bb.databaseSecrets.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02.*,/v1/{name=instances/*/databases/*/secrets/*}\x12\xb5\x01\n" +
"\x0eListChangelogs\x12\".bytebase.v1.ListChangelogsRequest\x1a#.bytebase.v1.ListChangelogsResponse\"Z\xdaA\x06parent\x8a\xea0\x12bb.changelogs.list\x90\xea0\x01\x82\xd3\xe4\x93\x021\x12//v1/{parent=instances/*/databases/*}/changelogs\x12\xa1\x01\n" +
"\fGetChangelog\x12 .bytebase.v1.GetChangelogRequest\x1a\x16.bytebase.v1.Changelog\"W\xdaA\x04name\x8a\xea0\x11bb.changelogs.get\x90\xea0\x01\x82\xd3\xe4\x93\x021\x12//v1/{name=instances/*/databases/*/changelogs/*}\x12\xba\x01\n" +
- "\x0fGetSchemaString\x12#.bytebase.v1.GetSchemaStringRequest\x1a$.bytebase.v1.GetSchemaStringResponse\"\\\xdaA\x04name\x8a\xea0\x16bb.databases.getSchema\x90\xea0\x01\x82\xd3\xe4\x93\x021\x12//v1/{name=instances/*/databases/*/schemaString}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x0fGetSchemaString\x12#.bytebase.v1.GetSchemaStringRequest\x1a$.bytebase.v1.GetSchemaStringResponse\"\\\xdaA\x04name\x8a\xea0\x16bb.databases.getSchema\x90\xea0\x01\x82\xd3\xe4\x93\x021\x12//v1/{name=instances/*/databases/*/schemaString}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_database_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/group_service.pb.go b/proto/generated-go/v1/group_service.pb.go
index 29be5c083d..223a4abd2e 100644
--- a/proto/generated-go/v1/group_service.pb.go
+++ b/proto/generated-go/v1/group_service.pb.go
@@ -589,7 +589,7 @@ const file_v1_group_service_proto_rawDesc = "" +
"\vCreateGroup\x12\x1f.bytebase.v1.CreateGroupRequest\x1a\x12.bytebase.v1.Group\"=\xdaA\x05group\x8a\xea0\x10bb.groups.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x13:\x05group\"\n" +
"/v1/groups\x12\x9c\x01\n" +
"\vUpdateGroup\x12\x1f.bytebase.v1.UpdateGroupRequest\x1a\x12.bytebase.v1.Group\"X\xdaA\x11group,update_mask\x8a\xea0\x10bb.groups.update\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02\":\x05group2\x19/v1/{group.name=groups/*}\x12\x86\x01\n" +
- "\vDeleteGroup\x12\x1f.bytebase.v1.DeleteGroupRequest\x1a\x16.google.protobuf.Empty\">\xdaA\x04name\x8a\xea0\x10bb.groups.delete\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=groups/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\vDeleteGroup\x12\x1f.bytebase.v1.DeleteGroupRequest\x1a\x16.google.protobuf.Empty\">\xdaA\x04name\x8a\xea0\x10bb.groups.delete\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=groups/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_group_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/iam_policy.pb.go b/proto/generated-go/v1/iam_policy.pb.go
index 8bbce1b49a..8b4701f6d6 100644
--- a/proto/generated-go/v1/iam_policy.pb.go
+++ b/proto/generated-go/v1/iam_policy.pb.go
@@ -484,7 +484,7 @@ const file_v1_iam_policy_proto_rawDesc = "" +
"\x12ACTION_UNSPECIFIED\x10\x00\x12\a\n" +
"\x03ADD\x10\x01\x12\n" +
"\n" +
- "\x06REMOVE\x10\x02B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x06REMOVE\x10\x02B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_iam_policy_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/idp_service.pb.go b/proto/generated-go/v1/idp_service.pb.go
index e9e3acafdd..e07d6dafe3 100644
--- a/proto/generated-go/v1/idp_service.pb.go
+++ b/proto/generated-go/v1/idp_service.pb.go
@@ -1311,7 +1311,7 @@ const file_v1_idp_service_proto_rawDesc = "" +
"\x16CreateIdentityProvider\x12*.bytebase.v1.CreateIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"M\xdaA\x00\x8a\xea0\x1bbb.identityProviders.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\x11identity_provider\"\b/v1/idps\x12\xeb\x01\n" +
"\x16UpdateIdentityProvider\x12*.bytebase.v1.UpdateIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"\x85\x01\xdaA\x1didentity_provider,update_mask\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x028:\x11identity_provider2#/v1/{identity_provider.name=idps/*}\x12\xa5\x01\n" +
"\x16DeleteIdentityProvider\x12*.bytebase.v1.DeleteIdentityProviderRequest\x1a\x16.google.protobuf.Empty\"G\xdaA\x04name\x8a\xea0\x1bbb.identityProviders.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=idps/*}\x12\xaa\x01\n" +
- "\x14TestIdentityProvider\x12(.bytebase.v1.TestIdentityProviderRequest\x1a).bytebase.v1.TestIdentityProviderResponse\"=\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/idps/*:testB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x14TestIdentityProvider\x12(.bytebase.v1.TestIdentityProviderRequest\x1a).bytebase.v1.TestIdentityProviderResponse\"=\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/idps/*:testB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_idp_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/instance_role_service.pb.go b/proto/generated-go/v1/instance_role_service.pb.go
index 9ffb3d1752..f5fbb4e30e 100644
--- a/proto/generated-go/v1/instance_role_service.pb.go
+++ b/proto/generated-go/v1/instance_role_service.pb.go
@@ -335,7 +335,7 @@ const file_v1_instance_role_service_proto_rawDesc = "" +
"_attribute2\xe6\x02\n" +
"\x13InstanceRoleService\x12\x9c\x01\n" +
"\x0fGetInstanceRole\x12#.bytebase.v1.GetInstanceRoleRequest\x1a\x19.bytebase.v1.InstanceRole\"I\xdaA\x04name\x8a\xea0\x14bb.instanceRoles.get\x90\xea0\x01\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=instances/*/roles/*}\x12\xaf\x01\n" +
- "\x11ListInstanceRoles\x12%.bytebase.v1.ListInstanceRolesRequest\x1a&.bytebase.v1.ListInstanceRolesResponse\"K\xdaA\x06parent\x8a\xea0\x14bb.instanceRoles.get\x90\xea0\x01\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=instances/*}/rolesB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x11ListInstanceRoles\x12%.bytebase.v1.ListInstanceRolesRequest\x1a&.bytebase.v1.ListInstanceRolesResponse\"K\xdaA\x06parent\x8a\xea0\x14bb.instanceRoles.get\x90\xea0\x01\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=instances/*}/rolesB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_instance_role_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.go
index 336af95d47..a1e6628275 100644
--- a/proto/generated-go/v1/instance_service.pb.go
+++ b/proto/generated-go/v1/instance_service.pb.go
@@ -2657,7 +2657,7 @@ const file_v1_instance_service_proto_rawDesc = "" +
"\x14BatchUpdateInstances\x12(.bytebase.v1.BatchUpdateInstancesRequest\x1a).bytebase.v1.BatchUpdateInstancesResponse\"C\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/v1/instances:batchUpdate\x12\x99\x01\n" +
"\rAddDataSource\x12!.bytebase.v1.AddDataSourceRequest\x1a\x15.bytebase.v1.Instance\"N\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02):\x01*\"$/v1/{name=instances/*}:addDataSource\x12\xa2\x01\n" +
"\x10RemoveDataSource\x12$.bytebase.v1.RemoveDataSourceRequest\x1a\x15.bytebase.v1.Instance\"Q\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02,:\x01*\"'/v1/{name=instances/*}:removeDataSource\x12\xa2\x01\n" +
- "\x10UpdateDataSource\x12$.bytebase.v1.UpdateDataSourceRequest\x1a\x15.bytebase.v1.Instance\"Q\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02,:\x01*2'/v1/{name=instances/*}:updateDataSourceB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x10UpdateDataSource\x12$.bytebase.v1.UpdateDataSourceRequest\x1a\x15.bytebase.v1.Instance\"Q\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02,:\x01*2'/v1/{name=instances/*}:updateDataSourceB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_instance_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/issue_service.pb.go b/proto/generated-go/v1/issue_service.pb.go
index cecbc1caa4..a448f1dcd9 100644
--- a/proto/generated-go/v1/issue_service.pb.go
+++ b/proto/generated-go/v1/issue_service.pb.go
@@ -2811,7 +2811,7 @@ const file_v1_issue_service_proto_rawDesc = "" +
"\x17BatchUpdateIssuesStatus\x12+.bytebase.v1.BatchUpdateIssuesStatusRequest\x1a,.bytebase.v1.BatchUpdateIssuesStatusResponse\"W\x8a\xea0\x10bb.issues.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x025:\x01*\"0/v1/{parent=projects/*}/issues:batchUpdateStatus\x12\x7f\n" +
"\fApproveIssue\x12 .bytebase.v1.ApproveIssueRequest\x1a\x12.bytebase.v1.Issue\"9\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{name=projects/*/issues/*}:approve\x12|\n" +
"\vRejectIssue\x12\x1f.bytebase.v1.RejectIssueRequest\x1a\x12.bytebase.v1.Issue\"8\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02*:\x01*\"%/v1/{name=projects/*/issues/*}:reject\x12\x7f\n" +
- "\fRequestIssue\x12 .bytebase.v1.RequestIssueRequest\x1a\x12.bytebase.v1.Issue\"9\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{name=projects/*/issues/*}:requestB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fRequestIssue\x12 .bytebase.v1.RequestIssueRequest\x1a\x12.bytebase.v1.Issue\"9\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{name=projects/*/issues/*}:requestB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_issue_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.go
index 75899d9ad2..0398ecbf90 100644
--- a/proto/generated-go/v1/org_policy_service.pb.go
+++ b/proto/generated-go/v1/org_policy_service.pb.go
@@ -1728,7 +1728,7 @@ const file_v1_org_policy_service_proto_rawDesc = "" +
"\fListPolicies\x12 .bytebase.v1.ListPoliciesRequest\x1a!.bytebase.v1.ListPoliciesResponse\"\xd2\x01\xdaA\x00\x8a\xea0\x10bb.policies.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\xb0\x01Z\"\x12 /v1/{parent=projects/*}/policiesZ&\x12$/v1/{parent=environments/*}/policiesZ#\x12!/v1/{parent=instances/*}/policiesZ/\x12-/v1/{parent=instances/*/databases/*}/policies\x12\f/v1/policies\x12\xd5\x02\n" +
"\fCreatePolicy\x12 .bytebase.v1.CreatePolicyRequest\x1a\x13.bytebase.v1.Policy\"\x8d\x02\xdaA\rparent,policy\x8a\xea0\x12bb.policies.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\xd8\x01:\x06policyZ*:\x06policy\" /v1/{parent=projects/*}/policiesZ.:\x06policy\"$/v1/{parent=environments/*}/policiesZ+:\x06policy\"!/v1/{parent=instances/*}/policiesZ7:\x06policy\"-/v1/{parent=instances/*/databases/*}/policies\"\f/v1/policies\x12\x86\x03\n" +
"\fUpdatePolicy\x12 .bytebase.v1.UpdatePolicyRequest\x1a\x13.bytebase.v1.Policy\"\xbe\x02\xdaA\x12policy,update_mask\x8a\xea0\x12bb.policies.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x84\x02:\x06policyZ1:\x06policy2'/v1/{policy.name=projects/*/policies/*}Z5:\x06policy2+/v1/{policy.name=environments/*/policies/*}Z2:\x06policy2(/v1/{policy.name=instances/*/policies/*}Z>:\x06policy24/v1/{policy.name=instances/*/databases/*/policies/*}2\x1c/v1/{policy.name=policies/*}\x12\xb0\x02\n" +
- "\fDeletePolicy\x12 .bytebase.v1.DeletePolicyRequest\x1a\x16.google.protobuf.Empty\"\xe5\x01\xdaA\x04name\x8a\xea0\x12bb.policies.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\xb9\x01Z\"* /v1/{name=projects/*/policies/*}Z&*$/v1/{name=environments/*/policies/*}Z#*!/v1/{name=instances/*/policies/*}Z/*-/v1/{name=instances/*/databases/*/policies/*}*\x15/v1/{name=policies/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fDeletePolicy\x12 .bytebase.v1.DeletePolicyRequest\x1a\x16.google.protobuf.Empty\"\xe5\x01\xdaA\x04name\x8a\xea0\x12bb.policies.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\xb9\x01Z\"* /v1/{name=projects/*/policies/*}Z&*$/v1/{name=environments/*/policies/*}Z#*!/v1/{name=instances/*/policies/*}Z/*-/v1/{name=instances/*/databases/*/policies/*}*\x15/v1/{name=policies/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_org_policy_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/plan_service.pb.go b/proto/generated-go/v1/plan_service.pb.go
index a75787dba7..6442c9a22f 100644
--- a/proto/generated-go/v1/plan_service.pb.go
+++ b/proto/generated-go/v1/plan_service.pb.go
@@ -2168,7 +2168,7 @@ const file_v1_plan_service_proto_rawDesc = "" +
"UpdatePlan\x12\x1e.bytebase.v1.UpdatePlanRequest\x1a\x11.bytebase.v1.Plan\"^\xdaA\x10plan,update_mask\x8a\xea0\x0fbb.plans.update\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02*:\x04plan2\"/v1/{plan.name=projects/*/plans/*}\x12\xbf\x01\n" +
"\x11ListPlanCheckRuns\x12%.bytebase.v1.ListPlanCheckRunsRequest\x1a&.bytebase.v1.ListPlanCheckRunsResponse\"[\xdaA\x06parent\x8a\xea0\x15bb.planCheckRuns.list\x90\xea0\x01\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/plans/*}/planCheckRuns\x12\xb1\x01\n" +
"\rRunPlanChecks\x12!.bytebase.v1.RunPlanChecksRequest\x1a\".bytebase.v1.RunPlanChecksResponse\"Y\xdaA\x04name\x8a\xea0\x14bb.planCheckRuns.run\x90\xea0\x01\x82\xd3\xe4\x93\x020:\x01*\"+/v1/{name=projects/*/plans/*}:runPlanChecks\x12\xe2\x01\n" +
- "\x18BatchCancelPlanCheckRuns\x12,.bytebase.v1.BatchCancelPlanCheckRunsRequest\x1a-.bytebase.v1.BatchCancelPlanCheckRunsResponse\"i\xdaA\x06parent\x8a\xea0\x14bb.planCheckRuns.run\x90\xea0\x01\x82\xd3\xe4\x93\x02>:\x01*\"9/v1/{parent=projects/*/plans/*}/planCheckRuns:batchCancelB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x18BatchCancelPlanCheckRuns\x12,.bytebase.v1.BatchCancelPlanCheckRunsRequest\x1a-.bytebase.v1.BatchCancelPlanCheckRunsResponse\"i\xdaA\x06parent\x8a\xea0\x14bb.planCheckRuns.run\x90\xea0\x01\x82\xd3\xe4\x93\x02>:\x01*\"9/v1/{parent=projects/*/plans/*}/planCheckRuns:batchCancelB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_plan_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.go
index f8340bfe47..0d02788e4a 100644
--- a/proto/generated-go/v1/project_service.pb.go
+++ b/proto/generated-go/v1/project_service.pb.go
@@ -1690,7 +1690,7 @@ const file_v1_project_service_proto_rawDesc = "" +
"AddWebhook\x12\x1e.bytebase.v1.AddWebhookRequest\x1a\x14.bytebase.v1.Project\"H\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/{project=projects/*}:addWebhook\x12\xbb\x01\n" +
"\rUpdateWebhook\x12!.bytebase.v1.UpdateWebhookRequest\x1a\x14.bytebase.v1.Project\"q\xdaA\x13webhook,update_mask\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02;:\x01*\"6/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook\x12\xa5\x01\n" +
"\rRemoveWebhook\x12!.bytebase.v1.RemoveWebhookRequest\x1a\x14.bytebase.v1.Project\"[\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02;:\x01*\"6/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook\x12\x9b\x01\n" +
- "\vTestWebhook\x12\x1f.bytebase.v1.TestWebhookRequest\x1a .bytebase.v1.TestWebhookResponse\"I\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02):\x01*\"$/v1/{project=projects/*}:testWebhookB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\vTestWebhook\x12\x1f.bytebase.v1.TestWebhookRequest\x1a .bytebase.v1.TestWebhookResponse\"I\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02):\x01*\"$/v1/{project=projects/*}:testWebhookB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_project_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/release_service.pb.go b/proto/generated-go/v1/release_service.pb.go
index b2bd5cb185..bc44bfe70d 100644
--- a/proto/generated-go/v1/release_service.pb.go
+++ b/proto/generated-go/v1/release_service.pb.go
@@ -1126,7 +1126,7 @@ const file_v1_release_service_proto_rawDesc = "" +
"\rUpdateRelease\x12!.bytebase.v1.UpdateReleaseRequest\x1a\x14.bytebase.v1.Release\"i\xdaA\x13release,update_mask\x8a\xea0\x12bb.releases.update\x90\xea0\x01\x82\xd3\xe4\x93\x023:\arelease2(/v1/{release.name=projects/*/releases/*}\x12\x95\x01\n" +
"\rDeleteRelease\x12!.bytebase.v1.DeleteReleaseRequest\x1a\x16.google.protobuf.Empty\"I\xdaA\x04name\x8a\xea0\x12bb.releases.delete\x90\xea0\x01\x82\xd3\xe4\x93\x02\"* /v1/{name=projects/*/releases/*}\x12\x9b\x01\n" +
"\x0fUndeleteRelease\x12#.bytebase.v1.UndeleteReleaseRequest\x1a\x14.bytebase.v1.Release\"M\x8a\xea0\x14bb.releases.undelete\x90\xea0\x01\x82\xd3\xe4\x93\x02+\")/v1/{name=projects/*/releases/*}:undelete\x12\x9f\x01\n" +
- "\fCheckRelease\x12 .bytebase.v1.CheckReleaseRequest\x1a!.bytebase.v1.CheckReleaseResponse\"J\x8a\xea0\x11bb.releases.check\x90\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{parent=projects/*}/releases:checkB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fCheckRelease\x12 .bytebase.v1.CheckReleaseRequest\x1a!.bytebase.v1.CheckReleaseResponse\"J\x8a\xea0\x11bb.releases.check\x90\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{parent=projects/*}/releases:checkB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_release_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/review_config_service.pb.go b/proto/generated-go/v1/review_config_service.pb.go
index 9f16392d85..192d49b78a 100644
--- a/proto/generated-go/v1/review_config_service.pb.go
+++ b/proto/generated-go/v1/review_config_service.pb.go
@@ -461,7 +461,7 @@ const file_v1_review_config_service_proto_rawDesc = "" +
"\x11ListReviewConfigs\x12%.bytebase.v1.ListReviewConfigsRequest\x1a&.bytebase.v1.ListReviewConfigsResponse\"9\xdaA\x00\x8a\xea0\x15bb.reviewConfigs.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/reviewConfigs\x12\x98\x01\n" +
"\x0fGetReviewConfig\x12#.bytebase.v1.GetReviewConfigRequest\x1a\x19.bytebase.v1.ReviewConfig\"E\xdaA\x04name\x8a\xea0\x14bb.reviewConfigs.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1/{name=reviewConfigs/*}\x12\xd3\x01\n" +
"\x12UpdateReviewConfig\x12&.bytebase.v1.UpdateReviewConfigRequest\x1a\x19.bytebase.v1.ReviewConfig\"z\xdaA\x19review_config,update_mask\x8a\xea0\x17bb.reviewConfigs.update\x90\xea0\x01\x82\xd3\xe4\x93\x029:\rreview_config2(/v1/{review_config.name=reviewConfigs/*}\x12\x9e\x01\n" +
- "\x12DeleteReviewConfig\x12&.bytebase.v1.DeleteReviewConfigRequest\x1a\x16.google.protobuf.Empty\"H\xdaA\x04name\x8a\xea0\x17bb.reviewConfigs.delete\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1c*\x1a/v1/{name=reviewConfigs/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x12DeleteReviewConfig\x12&.bytebase.v1.DeleteReviewConfigRequest\x1a\x16.google.protobuf.Empty\"H\xdaA\x04name\x8a\xea0\x17bb.reviewConfigs.delete\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1c*\x1a/v1/{name=reviewConfigs/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_review_config_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/revision_service.pb.go b/proto/generated-go/v1/revision_service.pb.go
index f52f570c38..da571cfe55 100644
--- a/proto/generated-go/v1/revision_service.pb.go
+++ b/proto/generated-go/v1/revision_service.pb.go
@@ -620,7 +620,7 @@ const file_v1_revision_service_proto_rawDesc = "" +
"\vGetRevision\x12\x1f.bytebase.v1.GetRevisionRequest\x1a\x15.bytebase.v1.Revision\"U\xdaA\x04name\x8a\xea0\x10bb.revisions.get\x90\xea0\x01\x82\xd3\xe4\x93\x020\x12./v1/{name=instances/*/databases/*/revisions/*}\x12\xa8\x01\n" +
"\x0eCreateRevision\x12\".bytebase.v1.CreateRevisionRequest\x1a\x15.bytebase.v1.Revision\"[\x8a\xea0\x13bb.revisions.create\x90\xea0\x01\x82\xd3\xe4\x93\x02::\brevision\"./v1/{parent=instances/*/databases/*}/revisions\x12\xcd\x01\n" +
"\x14BatchCreateRevisions\x12(.bytebase.v1.BatchCreateRevisionsRequest\x1a).bytebase.v1.BatchCreateRevisionsResponse\"`\x8a\xea0\x13bb.revisions.create\x90\xea0\x01\x82\xd3\xe4\x93\x02?:\x01*\":/v1/{parent=instances/*/databases/*}/revisions:batchCreate\x12\xa6\x01\n" +
- "\x0eDeleteRevision\x12\".bytebase.v1.DeleteRevisionRequest\x1a\x16.google.protobuf.Empty\"X\xdaA\x04name\x8a\xea0\x13bb.revisions.delete\x90\xea0\x01\x82\xd3\xe4\x93\x020*./v1/{name=instances/*/databases/*/revisions/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x0eDeleteRevision\x12\".bytebase.v1.DeleteRevisionRequest\x1a\x16.google.protobuf.Empty\"X\xdaA\x04name\x8a\xea0\x13bb.revisions.delete\x90\xea0\x01\x82\xd3\xe4\x93\x020*./v1/{name=instances/*/databases/*/revisions/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_revision_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/risk_service.pb.go b/proto/generated-go/v1/risk_service.pb.go
index 6a0a52a000..e3ed57ae07 100644
--- a/proto/generated-go/v1/risk_service.pb.go
+++ b/proto/generated-go/v1/risk_service.pb.go
@@ -598,7 +598,7 @@ const file_v1_risk_service_proto_rawDesc = "" +
"\n" +
"UpdateRisk\x12\x1e.bytebase.v1.UpdateRiskRequest\x1a\x11.bytebase.v1.Risk\"S\xdaA\x10risk,update_mask\x8a\xea0\x0fbb.risks.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1f:\x04risk2\x17/v1/{risk.name=risks/*}\x12{\n" +
"\n" +
- "DeleteRisk\x12\x1e.bytebase.v1.DeleteRiskRequest\x1a\x16.google.protobuf.Empty\"5\x8a\xea0\x0fbb.risks.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/{name=risks/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "DeleteRisk\x12\x1e.bytebase.v1.DeleteRiskRequest\x1a\x16.google.protobuf.Empty\"5\x8a\xea0\x0fbb.risks.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/{name=risks/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_risk_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/role_service.pb.go b/proto/generated-go/v1/role_service.pb.go
index 738530dcef..326b5e86cf 100644
--- a/proto/generated-go/v1/role_service.pb.go
+++ b/proto/generated-go/v1/role_service.pb.go
@@ -522,7 +522,7 @@ const file_v1_role_service_proto_rawDesc = "" +
"\n" +
"UpdateRole\x12\x1e.bytebase.v1.UpdateRoleRequest\x1a\x11.bytebase.v1.Role\"S\xdaA\x10role,update_mask\x8a\xea0\x0fbb.roles.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1f:\x04role2\x17/v1/{role.name=roles/*}\x12\x82\x01\n" +
"\n" +
- "DeleteRole\x12\x1e.bytebase.v1.DeleteRoleRequest\x1a\x16.google.protobuf.Empty\"<\xdaA\x04name\x8a\xea0\x0fbb.roles.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/{name=roles/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "DeleteRole\x12\x1e.bytebase.v1.DeleteRoleRequest\x1a\x16.google.protobuf.Empty\"<\xdaA\x04name\x8a\xea0\x0fbb.roles.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/{name=roles/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_role_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index 829322fbc3..d43391bb90 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -3809,7 +3809,7 @@ const file_v1_rollout_service_proto_rawDesc = "" +
"\rBatchRunTasks\x12!.bytebase.v1.BatchRunTasksRequest\x1a\".bytebase.v1.BatchRunTasksResponse\"R\xdaA\x06parent\x90\xea0\x02\x82\xd3\xe4\x93\x02?:\x01*\":/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun\x12\xae\x01\n" +
"\x0eBatchSkipTasks\x12\".bytebase.v1.BatchSkipTasksRequest\x1a#.bytebase.v1.BatchSkipTasksResponse\"S\xdaA\x06parent\x90\xea0\x02\x82\xd3\xe4\x93\x02@:\x01*\";/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip\x12\xca\x01\n" +
"\x13BatchCancelTaskRuns\x12'.bytebase.v1.BatchCancelTaskRunsRequest\x1a(.bytebase.v1.BatchCancelTaskRunsResponse\"`\xdaA\x06parent\x90\xea0\x02\x82\xd3\xe4\x93\x02M:\x01*\"H/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel\x12\xe9\x01\n" +
- "\x16PreviewTaskRunRollback\x12*.bytebase.v1.PreviewTaskRunRollbackRequest\x1a+.bytebase.v1.PreviewTaskRunRollbackResponse\"v\xdaA\x04name\x8a\xea0\x10bb.taskRuns.list\x90\xea0\x01\x82\xd3\xe4\x93\x02Q:\x01*\"L/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollbackB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x16PreviewTaskRunRollback\x12*.bytebase.v1.PreviewTaskRunRollbackRequest\x1a+.bytebase.v1.PreviewTaskRunRollbackResponse\"v\xdaA\x04name\x8a\xea0\x10bb.taskRuns.list\x90\xea0\x01\x82\xd3\xe4\x93\x02Q:\x01*\"L/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollbackB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_rollout_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.go
index ba34d3c313..db7b05e751 100644
--- a/proto/generated-go/v1/setting_service.pb.go
+++ b/proto/generated-go/v1/setting_service.pb.go
@@ -3756,7 +3756,7 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\fListSettings\x12 .bytebase.v1.ListSettingsRequest\x1a!.bytebase.v1.ListSettingsResponse\"/\xdaA\x00\x8a\xea0\x10bb.settings.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\x0e\x12\f/v1/settings\x12\x7f\n" +
"\n" +
"GetSetting\x12\x1e.bytebase.v1.GetSettingRequest\x1a\x14.bytebase.v1.Setting\";\xdaA\x04name\x8a\xea0\x0fbb.settings.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=settings/*}\x12\x93\x01\n" +
- "\rUpdateSetting\x12!.bytebase.v1.UpdateSettingRequest\x1a\x14.bytebase.v1.Setting\"I\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02(:\asetting2\x1d/v1/{setting.name=settings/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\rUpdateSetting\x12!.bytebase.v1.UpdateSettingRequest\x1a\x14.bytebase.v1.Setting\"I\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02(:\asetting2\x1d/v1/{setting.name=settings/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_setting_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/sheet_service.pb.go b/proto/generated-go/v1/sheet_service.pb.go
index 9da1872a10..9846f58a4f 100644
--- a/proto/generated-go/v1/sheet_service.pb.go
+++ b/proto/generated-go/v1/sheet_service.pb.go
@@ -605,7 +605,7 @@ const file_v1_sheet_service_proto_rawDesc = "" +
"\vCreateSheet\x12\x1f.bytebase.v1.CreateSheetRequest\x1a\x12.bytebase.v1.Sheet\"T\xdaA\fparent,sheet\x8a\xea0\x10bb.sheets.create\x90\xea0\x01\x82\xd3\xe4\x93\x02':\x05sheet\"\x1e/v1/{parent=projects/*}/sheets\x12\xb1\x01\n" +
"\x11BatchCreateSheets\x12%.bytebase.v1.BatchCreateSheetsRequest\x1a&.bytebase.v1.BatchCreateSheetsResponse\"M\x8a\xea0\x10bb.sheets.create\x90\xea0\x01\x82\xd3\xe4\x93\x02/:\x01*\"*/v1/{parent=projects/*}/sheets:batchCreate\x12\x80\x01\n" +
"\bGetSheet\x12\x1c.bytebase.v1.GetSheetRequest\x1a\x12.bytebase.v1.Sheet\"B\xdaA\x04name\x8a\xea0\rbb.sheets.get\x90\xea0\x01\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=projects/*/sheets/*}\x12\xa3\x01\n" +
- "\vUpdateSheet\x12\x1f.bytebase.v1.UpdateSheetRequest\x1a\x12.bytebase.v1.Sheet\"_\xdaA\x11sheet,update_mask\x8a\xea0\x10bb.sheets.update\x90\xea0\x01\x82\xd3\xe4\x93\x02-:\x05sheet2$/v1/{sheet.name=projects/*/sheets/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\vUpdateSheet\x12\x1f.bytebase.v1.UpdateSheetRequest\x1a\x12.bytebase.v1.Sheet\"_\xdaA\x11sheet,update_mask\x8a\xea0\x10bb.sheets.update\x90\xea0\x01\x82\xd3\xe4\x93\x02-:\x05sheet2$/v1/{sheet.name=projects/*/sheets/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_sheet_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/sql_service.pb.go b/proto/generated-go/v1/sql_service.pb.go
index f9944a9a62..57da430ee1 100644
--- a/proto/generated-go/v1/sql_service.pb.go
+++ b/proto/generated-go/v1/sql_service.pb.go
@@ -2904,7 +2904,7 @@ const file_v1_sql_service_proto_rawDesc = "" +
"\x12ParseMyBatisMapper\x12&.bytebase.v1.ParseMyBatisMapperRequest\x1a'.bytebase.v1.ParseMyBatisMapperResponse\")\x80\xea0\x01\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/v1/sql/parseMyBatisMapper\x12`\n" +
"\x06Pretty\x12\x1a.bytebase.v1.PrettyRequest\x1a\x1b.bytebase.v1.PrettyResponse\"\x1d\x80\xea0\x01\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/v1/sql/pretty\x12\x81\x01\n" +
"\fDiffMetadata\x12 .bytebase.v1.DiffMetadataRequest\x1a!.bytebase.v1.DiffMetadataResponse\",\x80\xea0\x01\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/schemaDesign:diffMetadata\x12x\n" +
- "\fAICompletion\x12 .bytebase.v1.AICompletionRequest\x1a!.bytebase.v1.AICompletionResponse\"#\x90\xea0\x02\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/v1/sql/aiCompletionB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fAICompletion\x12 .bytebase.v1.AICompletionRequest\x1a!.bytebase.v1.AICompletionResponse\"#\x90\xea0\x02\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/v1/sql/aiCompletionB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_sql_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/subscription_service.pb.go b/proto/generated-go/v1/subscription_service.pb.go
index 908193e0dc..dfa2720759 100644
--- a/proto/generated-go/v1/subscription_service.pb.go
+++ b/proto/generated-go/v1/subscription_service.pb.go
@@ -801,7 +801,7 @@ const file_v1_subscription_service_proto_rawDesc = "" +
"\"FEATURE_DEDICATED_SUPPORT_WITH_SLA\x10I2\xa3\x02\n" +
"\x13SubscriptionService\x12r\n" +
"\x0fGetSubscription\x12#.bytebase.v1.GetSubscriptionRequest\x1a\x19.bytebase.v1.Subscription\"\x1f\xdaA\x00\x80\xea0\x01\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/subscription\x12\x97\x01\n" +
- "\x12UpdateSubscription\x12&.bytebase.v1.UpdateSubscriptionRequest\x1a\x19.bytebase.v1.Subscription\">\xdaA\x05patch\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\x82\xd3\xe4\x93\x02\x19:\x05patch2\x10/v1/subscriptionB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x12UpdateSubscription\x12&.bytebase.v1.UpdateSubscriptionRequest\x1a\x19.bytebase.v1.Subscription\">\xdaA\x05patch\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\x82\xd3\xe4\x93\x02\x19:\x05patch2\x10/v1/subscriptionB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_subscription_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/user_service.pb.go b/proto/generated-go/v1/user_service.pb.go
index d83d01f3d4..f5ce6515e6 100644
--- a/proto/generated-go/v1/user_service.pb.go
+++ b/proto/generated-go/v1/user_service.pb.go
@@ -869,7 +869,7 @@ const file_v1_user_service_proto_rawDesc = "" +
"UpdateUser\x12\x1e.bytebase.v1.UpdateUserRequest\x1a\x11.bytebase.v1.User\"@\xdaA\x10user,update_mask\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1f:\x04user2\x17/v1/{user.name=users/*}\x12o\n" +
"\n" +
"DeleteUser\x12\x1e.bytebase.v1.DeleteUserRequest\x1a\x16.google.protobuf.Empty\")\xdaA\x04name\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/{name=users/*}\x12s\n" +
- "\fUndeleteUser\x12 .bytebase.v1.UndeleteUserRequest\x1a\x11.bytebase.v1.User\".\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/{name=users/*}:undeleteB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fUndeleteUser\x12 .bytebase.v1.UndeleteUserRequest\x1a\x11.bytebase.v1.User\".\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/{name=users/*}:undeleteB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_user_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/v1connect/actuator_service.connect.go b/proto/generated-go/v1/v1connect/actuator_service.connect.go
new file mode 100644
index 0000000000..d4acf1ac46
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/actuator_service.connect.go
@@ -0,0 +1,226 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/actuator_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // ActuatorServiceName is the fully-qualified name of the ActuatorService service.
+ ActuatorServiceName = "bytebase.v1.ActuatorService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // ActuatorServiceGetActuatorInfoProcedure is the fully-qualified name of the ActuatorService's
+ // GetActuatorInfo RPC.
+ ActuatorServiceGetActuatorInfoProcedure = "/bytebase.v1.ActuatorService/GetActuatorInfo"
+ // ActuatorServiceUpdateActuatorInfoProcedure is the fully-qualified name of the ActuatorService's
+ // UpdateActuatorInfo RPC.
+ ActuatorServiceUpdateActuatorInfoProcedure = "/bytebase.v1.ActuatorService/UpdateActuatorInfo"
+ // ActuatorServiceSetupSampleProcedure is the fully-qualified name of the ActuatorService's
+ // SetupSample RPC.
+ ActuatorServiceSetupSampleProcedure = "/bytebase.v1.ActuatorService/SetupSample"
+ // ActuatorServiceDeleteCacheProcedure is the fully-qualified name of the ActuatorService's
+ // DeleteCache RPC.
+ ActuatorServiceDeleteCacheProcedure = "/bytebase.v1.ActuatorService/DeleteCache"
+ // ActuatorServiceGetResourcePackageProcedure is the fully-qualified name of the ActuatorService's
+ // GetResourcePackage RPC.
+ ActuatorServiceGetResourcePackageProcedure = "/bytebase.v1.ActuatorService/GetResourcePackage"
+)
+
+// ActuatorServiceClient is a client for the bytebase.v1.ActuatorService service.
+type ActuatorServiceClient interface {
+ GetActuatorInfo(context.Context, *connect.Request[v1.GetActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error)
+ UpdateActuatorInfo(context.Context, *connect.Request[v1.UpdateActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error)
+ SetupSample(context.Context, *connect.Request[v1.SetupSampleRequest]) (*connect.Response[emptypb.Empty], error)
+ DeleteCache(context.Context, *connect.Request[v1.DeleteCacheRequest]) (*connect.Response[emptypb.Empty], error)
+ GetResourcePackage(context.Context, *connect.Request[v1.GetResourcePackageRequest]) (*connect.Response[v1.ResourcePackage], error)
+}
+
+// NewActuatorServiceClient constructs a client for the bytebase.v1.ActuatorService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewActuatorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ActuatorServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ actuatorServiceMethods := v1.File_v1_actuator_service_proto.Services().ByName("ActuatorService").Methods()
+ return &actuatorServiceClient{
+ getActuatorInfo: connect.NewClient[v1.GetActuatorInfoRequest, v1.ActuatorInfo](
+ httpClient,
+ baseURL+ActuatorServiceGetActuatorInfoProcedure,
+ connect.WithSchema(actuatorServiceMethods.ByName("GetActuatorInfo")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateActuatorInfo: connect.NewClient[v1.UpdateActuatorInfoRequest, v1.ActuatorInfo](
+ httpClient,
+ baseURL+ActuatorServiceUpdateActuatorInfoProcedure,
+ connect.WithSchema(actuatorServiceMethods.ByName("UpdateActuatorInfo")),
+ connect.WithClientOptions(opts...),
+ ),
+ setupSample: connect.NewClient[v1.SetupSampleRequest, emptypb.Empty](
+ httpClient,
+ baseURL+ActuatorServiceSetupSampleProcedure,
+ connect.WithSchema(actuatorServiceMethods.ByName("SetupSample")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteCache: connect.NewClient[v1.DeleteCacheRequest, emptypb.Empty](
+ httpClient,
+ baseURL+ActuatorServiceDeleteCacheProcedure,
+ connect.WithSchema(actuatorServiceMethods.ByName("DeleteCache")),
+ connect.WithClientOptions(opts...),
+ ),
+ getResourcePackage: connect.NewClient[v1.GetResourcePackageRequest, v1.ResourcePackage](
+ httpClient,
+ baseURL+ActuatorServiceGetResourcePackageProcedure,
+ connect.WithSchema(actuatorServiceMethods.ByName("GetResourcePackage")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// actuatorServiceClient implements ActuatorServiceClient.
+type actuatorServiceClient struct {
+ getActuatorInfo *connect.Client[v1.GetActuatorInfoRequest, v1.ActuatorInfo]
+ updateActuatorInfo *connect.Client[v1.UpdateActuatorInfoRequest, v1.ActuatorInfo]
+ setupSample *connect.Client[v1.SetupSampleRequest, emptypb.Empty]
+ deleteCache *connect.Client[v1.DeleteCacheRequest, emptypb.Empty]
+ getResourcePackage *connect.Client[v1.GetResourcePackageRequest, v1.ResourcePackage]
+}
+
+// GetActuatorInfo calls bytebase.v1.ActuatorService.GetActuatorInfo.
+func (c *actuatorServiceClient) GetActuatorInfo(ctx context.Context, req *connect.Request[v1.GetActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error) {
+ return c.getActuatorInfo.CallUnary(ctx, req)
+}
+
+// UpdateActuatorInfo calls bytebase.v1.ActuatorService.UpdateActuatorInfo.
+func (c *actuatorServiceClient) UpdateActuatorInfo(ctx context.Context, req *connect.Request[v1.UpdateActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error) {
+ return c.updateActuatorInfo.CallUnary(ctx, req)
+}
+
+// SetupSample calls bytebase.v1.ActuatorService.SetupSample.
+func (c *actuatorServiceClient) SetupSample(ctx context.Context, req *connect.Request[v1.SetupSampleRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.setupSample.CallUnary(ctx, req)
+}
+
+// DeleteCache calls bytebase.v1.ActuatorService.DeleteCache.
+func (c *actuatorServiceClient) DeleteCache(ctx context.Context, req *connect.Request[v1.DeleteCacheRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteCache.CallUnary(ctx, req)
+}
+
+// GetResourcePackage calls bytebase.v1.ActuatorService.GetResourcePackage.
+func (c *actuatorServiceClient) GetResourcePackage(ctx context.Context, req *connect.Request[v1.GetResourcePackageRequest]) (*connect.Response[v1.ResourcePackage], error) {
+ return c.getResourcePackage.CallUnary(ctx, req)
+}
+
+// ActuatorServiceHandler is an implementation of the bytebase.v1.ActuatorService service.
+type ActuatorServiceHandler interface {
+ GetActuatorInfo(context.Context, *connect.Request[v1.GetActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error)
+ UpdateActuatorInfo(context.Context, *connect.Request[v1.UpdateActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error)
+ SetupSample(context.Context, *connect.Request[v1.SetupSampleRequest]) (*connect.Response[emptypb.Empty], error)
+ DeleteCache(context.Context, *connect.Request[v1.DeleteCacheRequest]) (*connect.Response[emptypb.Empty], error)
+ GetResourcePackage(context.Context, *connect.Request[v1.GetResourcePackageRequest]) (*connect.Response[v1.ResourcePackage], error)
+}
+
+// NewActuatorServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewActuatorServiceHandler(svc ActuatorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ actuatorServiceMethods := v1.File_v1_actuator_service_proto.Services().ByName("ActuatorService").Methods()
+ actuatorServiceGetActuatorInfoHandler := connect.NewUnaryHandler(
+ ActuatorServiceGetActuatorInfoProcedure,
+ svc.GetActuatorInfo,
+ connect.WithSchema(actuatorServiceMethods.ByName("GetActuatorInfo")),
+ connect.WithHandlerOptions(opts...),
+ )
+ actuatorServiceUpdateActuatorInfoHandler := connect.NewUnaryHandler(
+ ActuatorServiceUpdateActuatorInfoProcedure,
+ svc.UpdateActuatorInfo,
+ connect.WithSchema(actuatorServiceMethods.ByName("UpdateActuatorInfo")),
+ connect.WithHandlerOptions(opts...),
+ )
+ actuatorServiceSetupSampleHandler := connect.NewUnaryHandler(
+ ActuatorServiceSetupSampleProcedure,
+ svc.SetupSample,
+ connect.WithSchema(actuatorServiceMethods.ByName("SetupSample")),
+ connect.WithHandlerOptions(opts...),
+ )
+ actuatorServiceDeleteCacheHandler := connect.NewUnaryHandler(
+ ActuatorServiceDeleteCacheProcedure,
+ svc.DeleteCache,
+ connect.WithSchema(actuatorServiceMethods.ByName("DeleteCache")),
+ connect.WithHandlerOptions(opts...),
+ )
+ actuatorServiceGetResourcePackageHandler := connect.NewUnaryHandler(
+ ActuatorServiceGetResourcePackageProcedure,
+ svc.GetResourcePackage,
+ connect.WithSchema(actuatorServiceMethods.ByName("GetResourcePackage")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.ActuatorService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case ActuatorServiceGetActuatorInfoProcedure:
+ actuatorServiceGetActuatorInfoHandler.ServeHTTP(w, r)
+ case ActuatorServiceUpdateActuatorInfoProcedure:
+ actuatorServiceUpdateActuatorInfoHandler.ServeHTTP(w, r)
+ case ActuatorServiceSetupSampleProcedure:
+ actuatorServiceSetupSampleHandler.ServeHTTP(w, r)
+ case ActuatorServiceDeleteCacheProcedure:
+ actuatorServiceDeleteCacheHandler.ServeHTTP(w, r)
+ case ActuatorServiceGetResourcePackageProcedure:
+ actuatorServiceGetResourcePackageHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedActuatorServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedActuatorServiceHandler struct{}
+
+func (UnimplementedActuatorServiceHandler) GetActuatorInfo(context.Context, *connect.Request[v1.GetActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ActuatorService.GetActuatorInfo is not implemented"))
+}
+
+func (UnimplementedActuatorServiceHandler) UpdateActuatorInfo(context.Context, *connect.Request[v1.UpdateActuatorInfoRequest]) (*connect.Response[v1.ActuatorInfo], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ActuatorService.UpdateActuatorInfo is not implemented"))
+}
+
+func (UnimplementedActuatorServiceHandler) SetupSample(context.Context, *connect.Request[v1.SetupSampleRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ActuatorService.SetupSample is not implemented"))
+}
+
+func (UnimplementedActuatorServiceHandler) DeleteCache(context.Context, *connect.Request[v1.DeleteCacheRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ActuatorService.DeleteCache is not implemented"))
+}
+
+func (UnimplementedActuatorServiceHandler) GetResourcePackage(context.Context, *connect.Request[v1.GetResourcePackageRequest]) (*connect.Response[v1.ResourcePackage], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ActuatorService.GetResourcePackage is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/audit_log_service.connect.go b/proto/generated-go/v1/v1connect/audit_log_service.connect.go
new file mode 100644
index 0000000000..bde08c7268
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/audit_log_service.connect.go
@@ -0,0 +1,138 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/audit_log_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // AuditLogServiceName is the fully-qualified name of the AuditLogService service.
+ AuditLogServiceName = "bytebase.v1.AuditLogService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // AuditLogServiceSearchAuditLogsProcedure is the fully-qualified name of the AuditLogService's
+ // SearchAuditLogs RPC.
+ AuditLogServiceSearchAuditLogsProcedure = "/bytebase.v1.AuditLogService/SearchAuditLogs"
+ // AuditLogServiceExportAuditLogsProcedure is the fully-qualified name of the AuditLogService's
+ // ExportAuditLogs RPC.
+ AuditLogServiceExportAuditLogsProcedure = "/bytebase.v1.AuditLogService/ExportAuditLogs"
+)
+
+// AuditLogServiceClient is a client for the bytebase.v1.AuditLogService service.
+type AuditLogServiceClient interface {
+ SearchAuditLogs(context.Context, *connect.Request[v1.SearchAuditLogsRequest]) (*connect.Response[v1.SearchAuditLogsResponse], error)
+ ExportAuditLogs(context.Context, *connect.Request[v1.ExportAuditLogsRequest]) (*connect.Response[v1.ExportAuditLogsResponse], error)
+}
+
+// NewAuditLogServiceClient constructs a client for the bytebase.v1.AuditLogService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewAuditLogServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuditLogServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ auditLogServiceMethods := v1.File_v1_audit_log_service_proto.Services().ByName("AuditLogService").Methods()
+ return &auditLogServiceClient{
+ searchAuditLogs: connect.NewClient[v1.SearchAuditLogsRequest, v1.SearchAuditLogsResponse](
+ httpClient,
+ baseURL+AuditLogServiceSearchAuditLogsProcedure,
+ connect.WithSchema(auditLogServiceMethods.ByName("SearchAuditLogs")),
+ connect.WithClientOptions(opts...),
+ ),
+ exportAuditLogs: connect.NewClient[v1.ExportAuditLogsRequest, v1.ExportAuditLogsResponse](
+ httpClient,
+ baseURL+AuditLogServiceExportAuditLogsProcedure,
+ connect.WithSchema(auditLogServiceMethods.ByName("ExportAuditLogs")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// auditLogServiceClient implements AuditLogServiceClient.
+type auditLogServiceClient struct {
+ searchAuditLogs *connect.Client[v1.SearchAuditLogsRequest, v1.SearchAuditLogsResponse]
+ exportAuditLogs *connect.Client[v1.ExportAuditLogsRequest, v1.ExportAuditLogsResponse]
+}
+
+// SearchAuditLogs calls bytebase.v1.AuditLogService.SearchAuditLogs.
+func (c *auditLogServiceClient) SearchAuditLogs(ctx context.Context, req *connect.Request[v1.SearchAuditLogsRequest]) (*connect.Response[v1.SearchAuditLogsResponse], error) {
+ return c.searchAuditLogs.CallUnary(ctx, req)
+}
+
+// ExportAuditLogs calls bytebase.v1.AuditLogService.ExportAuditLogs.
+func (c *auditLogServiceClient) ExportAuditLogs(ctx context.Context, req *connect.Request[v1.ExportAuditLogsRequest]) (*connect.Response[v1.ExportAuditLogsResponse], error) {
+ return c.exportAuditLogs.CallUnary(ctx, req)
+}
+
+// AuditLogServiceHandler is an implementation of the bytebase.v1.AuditLogService service.
+type AuditLogServiceHandler interface {
+ SearchAuditLogs(context.Context, *connect.Request[v1.SearchAuditLogsRequest]) (*connect.Response[v1.SearchAuditLogsResponse], error)
+ ExportAuditLogs(context.Context, *connect.Request[v1.ExportAuditLogsRequest]) (*connect.Response[v1.ExportAuditLogsResponse], error)
+}
+
+// NewAuditLogServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewAuditLogServiceHandler(svc AuditLogServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ auditLogServiceMethods := v1.File_v1_audit_log_service_proto.Services().ByName("AuditLogService").Methods()
+ auditLogServiceSearchAuditLogsHandler := connect.NewUnaryHandler(
+ AuditLogServiceSearchAuditLogsProcedure,
+ svc.SearchAuditLogs,
+ connect.WithSchema(auditLogServiceMethods.ByName("SearchAuditLogs")),
+ connect.WithHandlerOptions(opts...),
+ )
+ auditLogServiceExportAuditLogsHandler := connect.NewUnaryHandler(
+ AuditLogServiceExportAuditLogsProcedure,
+ svc.ExportAuditLogs,
+ connect.WithSchema(auditLogServiceMethods.ByName("ExportAuditLogs")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.AuditLogService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case AuditLogServiceSearchAuditLogsProcedure:
+ auditLogServiceSearchAuditLogsHandler.ServeHTTP(w, r)
+ case AuditLogServiceExportAuditLogsProcedure:
+ auditLogServiceExportAuditLogsHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedAuditLogServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedAuditLogServiceHandler struct{}
+
+func (UnimplementedAuditLogServiceHandler) SearchAuditLogs(context.Context, *connect.Request[v1.SearchAuditLogsRequest]) (*connect.Response[v1.SearchAuditLogsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.AuditLogService.SearchAuditLogs is not implemented"))
+}
+
+func (UnimplementedAuditLogServiceHandler) ExportAuditLogs(context.Context, *connect.Request[v1.ExportAuditLogsRequest]) (*connect.Response[v1.ExportAuditLogsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.AuditLogService.ExportAuditLogs is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/auth_service.connect.go b/proto/generated-go/v1/v1connect/auth_service.connect.go
new file mode 100644
index 0000000000..0b68d9ec18
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/auth_service.connect.go
@@ -0,0 +1,137 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/auth_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // AuthServiceName is the fully-qualified name of the AuthService service.
+ AuthServiceName = "bytebase.v1.AuthService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // AuthServiceLoginProcedure is the fully-qualified name of the AuthService's Login RPC.
+ AuthServiceLoginProcedure = "/bytebase.v1.AuthService/Login"
+ // AuthServiceLogoutProcedure is the fully-qualified name of the AuthService's Logout RPC.
+ AuthServiceLogoutProcedure = "/bytebase.v1.AuthService/Logout"
+)
+
+// AuthServiceClient is a client for the bytebase.v1.AuthService service.
+type AuthServiceClient interface {
+ Login(context.Context, *connect.Request[v1.LoginRequest]) (*connect.Response[v1.LoginResponse], error)
+ Logout(context.Context, *connect.Request[v1.LogoutRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewAuthServiceClient constructs a client for the bytebase.v1.AuthService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewAuthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ authServiceMethods := v1.File_v1_auth_service_proto.Services().ByName("AuthService").Methods()
+ return &authServiceClient{
+ login: connect.NewClient[v1.LoginRequest, v1.LoginResponse](
+ httpClient,
+ baseURL+AuthServiceLoginProcedure,
+ connect.WithSchema(authServiceMethods.ByName("Login")),
+ connect.WithClientOptions(opts...),
+ ),
+ logout: connect.NewClient[v1.LogoutRequest, emptypb.Empty](
+ httpClient,
+ baseURL+AuthServiceLogoutProcedure,
+ connect.WithSchema(authServiceMethods.ByName("Logout")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// authServiceClient implements AuthServiceClient.
+type authServiceClient struct {
+ login *connect.Client[v1.LoginRequest, v1.LoginResponse]
+ logout *connect.Client[v1.LogoutRequest, emptypb.Empty]
+}
+
+// Login calls bytebase.v1.AuthService.Login.
+func (c *authServiceClient) Login(ctx context.Context, req *connect.Request[v1.LoginRequest]) (*connect.Response[v1.LoginResponse], error) {
+ return c.login.CallUnary(ctx, req)
+}
+
+// Logout calls bytebase.v1.AuthService.Logout.
+func (c *authServiceClient) Logout(ctx context.Context, req *connect.Request[v1.LogoutRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.logout.CallUnary(ctx, req)
+}
+
+// AuthServiceHandler is an implementation of the bytebase.v1.AuthService service.
+type AuthServiceHandler interface {
+ Login(context.Context, *connect.Request[v1.LoginRequest]) (*connect.Response[v1.LoginResponse], error)
+ Logout(context.Context, *connect.Request[v1.LogoutRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ authServiceMethods := v1.File_v1_auth_service_proto.Services().ByName("AuthService").Methods()
+ authServiceLoginHandler := connect.NewUnaryHandler(
+ AuthServiceLoginProcedure,
+ svc.Login,
+ connect.WithSchema(authServiceMethods.ByName("Login")),
+ connect.WithHandlerOptions(opts...),
+ )
+ authServiceLogoutHandler := connect.NewUnaryHandler(
+ AuthServiceLogoutProcedure,
+ svc.Logout,
+ connect.WithSchema(authServiceMethods.ByName("Logout")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.AuthService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case AuthServiceLoginProcedure:
+ authServiceLoginHandler.ServeHTTP(w, r)
+ case AuthServiceLogoutProcedure:
+ authServiceLogoutHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedAuthServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedAuthServiceHandler struct{}
+
+func (UnimplementedAuthServiceHandler) Login(context.Context, *connect.Request[v1.LoginRequest]) (*connect.Response[v1.LoginResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.AuthService.Login is not implemented"))
+}
+
+func (UnimplementedAuthServiceHandler) Logout(context.Context, *connect.Request[v1.LogoutRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.AuthService.Logout is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/cel_service.connect.go b/proto/generated-go/v1/v1connect/cel_service.connect.go
new file mode 100644
index 0000000000..e3ce394c00
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/cel_service.connect.go
@@ -0,0 +1,136 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/cel_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // CelServiceName is the fully-qualified name of the CelService service.
+ CelServiceName = "bytebase.v1.CelService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // CelServiceBatchParseProcedure is the fully-qualified name of the CelService's BatchParse RPC.
+ CelServiceBatchParseProcedure = "/bytebase.v1.CelService/BatchParse"
+ // CelServiceBatchDeparseProcedure is the fully-qualified name of the CelService's BatchDeparse RPC.
+ CelServiceBatchDeparseProcedure = "/bytebase.v1.CelService/BatchDeparse"
+)
+
+// CelServiceClient is a client for the bytebase.v1.CelService service.
+type CelServiceClient interface {
+ BatchParse(context.Context, *connect.Request[v1.BatchParseRequest]) (*connect.Response[v1.BatchParseResponse], error)
+ BatchDeparse(context.Context, *connect.Request[v1.BatchDeparseRequest]) (*connect.Response[v1.BatchDeparseResponse], error)
+}
+
+// NewCelServiceClient constructs a client for the bytebase.v1.CelService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewCelServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CelServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ celServiceMethods := v1.File_v1_cel_service_proto.Services().ByName("CelService").Methods()
+ return &celServiceClient{
+ batchParse: connect.NewClient[v1.BatchParseRequest, v1.BatchParseResponse](
+ httpClient,
+ baseURL+CelServiceBatchParseProcedure,
+ connect.WithSchema(celServiceMethods.ByName("BatchParse")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchDeparse: connect.NewClient[v1.BatchDeparseRequest, v1.BatchDeparseResponse](
+ httpClient,
+ baseURL+CelServiceBatchDeparseProcedure,
+ connect.WithSchema(celServiceMethods.ByName("BatchDeparse")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// celServiceClient implements CelServiceClient.
+type celServiceClient struct {
+ batchParse *connect.Client[v1.BatchParseRequest, v1.BatchParseResponse]
+ batchDeparse *connect.Client[v1.BatchDeparseRequest, v1.BatchDeparseResponse]
+}
+
+// BatchParse calls bytebase.v1.CelService.BatchParse.
+func (c *celServiceClient) BatchParse(ctx context.Context, req *connect.Request[v1.BatchParseRequest]) (*connect.Response[v1.BatchParseResponse], error) {
+ return c.batchParse.CallUnary(ctx, req)
+}
+
+// BatchDeparse calls bytebase.v1.CelService.BatchDeparse.
+func (c *celServiceClient) BatchDeparse(ctx context.Context, req *connect.Request[v1.BatchDeparseRequest]) (*connect.Response[v1.BatchDeparseResponse], error) {
+ return c.batchDeparse.CallUnary(ctx, req)
+}
+
+// CelServiceHandler is an implementation of the bytebase.v1.CelService service.
+type CelServiceHandler interface {
+ BatchParse(context.Context, *connect.Request[v1.BatchParseRequest]) (*connect.Response[v1.BatchParseResponse], error)
+ BatchDeparse(context.Context, *connect.Request[v1.BatchDeparseRequest]) (*connect.Response[v1.BatchDeparseResponse], error)
+}
+
+// NewCelServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewCelServiceHandler(svc CelServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ celServiceMethods := v1.File_v1_cel_service_proto.Services().ByName("CelService").Methods()
+ celServiceBatchParseHandler := connect.NewUnaryHandler(
+ CelServiceBatchParseProcedure,
+ svc.BatchParse,
+ connect.WithSchema(celServiceMethods.ByName("BatchParse")),
+ connect.WithHandlerOptions(opts...),
+ )
+ celServiceBatchDeparseHandler := connect.NewUnaryHandler(
+ CelServiceBatchDeparseProcedure,
+ svc.BatchDeparse,
+ connect.WithSchema(celServiceMethods.ByName("BatchDeparse")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.CelService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case CelServiceBatchParseProcedure:
+ celServiceBatchParseHandler.ServeHTTP(w, r)
+ case CelServiceBatchDeparseProcedure:
+ celServiceBatchDeparseHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedCelServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedCelServiceHandler struct{}
+
+func (UnimplementedCelServiceHandler) BatchParse(context.Context, *connect.Request[v1.BatchParseRequest]) (*connect.Response[v1.BatchParseResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.CelService.BatchParse is not implemented"))
+}
+
+func (UnimplementedCelServiceHandler) BatchDeparse(context.Context, *connect.Request[v1.BatchDeparseRequest]) (*connect.Response[v1.BatchDeparseResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.CelService.BatchDeparse is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/changelist_service.connect.go b/proto/generated-go/v1/v1connect/changelist_service.connect.go
new file mode 100644
index 0000000000..44c8ab2114
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/changelist_service.connect.go
@@ -0,0 +1,226 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/changelist_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // ChangelistServiceName is the fully-qualified name of the ChangelistService service.
+ ChangelistServiceName = "bytebase.v1.ChangelistService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // ChangelistServiceCreateChangelistProcedure is the fully-qualified name of the ChangelistService's
+ // CreateChangelist RPC.
+ ChangelistServiceCreateChangelistProcedure = "/bytebase.v1.ChangelistService/CreateChangelist"
+ // ChangelistServiceGetChangelistProcedure is the fully-qualified name of the ChangelistService's
+ // GetChangelist RPC.
+ ChangelistServiceGetChangelistProcedure = "/bytebase.v1.ChangelistService/GetChangelist"
+ // ChangelistServiceListChangelistsProcedure is the fully-qualified name of the ChangelistService's
+ // ListChangelists RPC.
+ ChangelistServiceListChangelistsProcedure = "/bytebase.v1.ChangelistService/ListChangelists"
+ // ChangelistServiceUpdateChangelistProcedure is the fully-qualified name of the ChangelistService's
+ // UpdateChangelist RPC.
+ ChangelistServiceUpdateChangelistProcedure = "/bytebase.v1.ChangelistService/UpdateChangelist"
+ // ChangelistServiceDeleteChangelistProcedure is the fully-qualified name of the ChangelistService's
+ // DeleteChangelist RPC.
+ ChangelistServiceDeleteChangelistProcedure = "/bytebase.v1.ChangelistService/DeleteChangelist"
+)
+
+// ChangelistServiceClient is a client for the bytebase.v1.ChangelistService service.
+type ChangelistServiceClient interface {
+ CreateChangelist(context.Context, *connect.Request[v1.CreateChangelistRequest]) (*connect.Response[v1.Changelist], error)
+ GetChangelist(context.Context, *connect.Request[v1.GetChangelistRequest]) (*connect.Response[v1.Changelist], error)
+ ListChangelists(context.Context, *connect.Request[v1.ListChangelistsRequest]) (*connect.Response[v1.ListChangelistsResponse], error)
+ UpdateChangelist(context.Context, *connect.Request[v1.UpdateChangelistRequest]) (*connect.Response[v1.Changelist], error)
+ DeleteChangelist(context.Context, *connect.Request[v1.DeleteChangelistRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewChangelistServiceClient constructs a client for the bytebase.v1.ChangelistService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewChangelistServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ChangelistServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ changelistServiceMethods := v1.File_v1_changelist_service_proto.Services().ByName("ChangelistService").Methods()
+ return &changelistServiceClient{
+ createChangelist: connect.NewClient[v1.CreateChangelistRequest, v1.Changelist](
+ httpClient,
+ baseURL+ChangelistServiceCreateChangelistProcedure,
+ connect.WithSchema(changelistServiceMethods.ByName("CreateChangelist")),
+ connect.WithClientOptions(opts...),
+ ),
+ getChangelist: connect.NewClient[v1.GetChangelistRequest, v1.Changelist](
+ httpClient,
+ baseURL+ChangelistServiceGetChangelistProcedure,
+ connect.WithSchema(changelistServiceMethods.ByName("GetChangelist")),
+ connect.WithClientOptions(opts...),
+ ),
+ listChangelists: connect.NewClient[v1.ListChangelistsRequest, v1.ListChangelistsResponse](
+ httpClient,
+ baseURL+ChangelistServiceListChangelistsProcedure,
+ connect.WithSchema(changelistServiceMethods.ByName("ListChangelists")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateChangelist: connect.NewClient[v1.UpdateChangelistRequest, v1.Changelist](
+ httpClient,
+ baseURL+ChangelistServiceUpdateChangelistProcedure,
+ connect.WithSchema(changelistServiceMethods.ByName("UpdateChangelist")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteChangelist: connect.NewClient[v1.DeleteChangelistRequest, emptypb.Empty](
+ httpClient,
+ baseURL+ChangelistServiceDeleteChangelistProcedure,
+ connect.WithSchema(changelistServiceMethods.ByName("DeleteChangelist")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// changelistServiceClient implements ChangelistServiceClient.
+type changelistServiceClient struct {
+ createChangelist *connect.Client[v1.CreateChangelistRequest, v1.Changelist]
+ getChangelist *connect.Client[v1.GetChangelistRequest, v1.Changelist]
+ listChangelists *connect.Client[v1.ListChangelistsRequest, v1.ListChangelistsResponse]
+ updateChangelist *connect.Client[v1.UpdateChangelistRequest, v1.Changelist]
+ deleteChangelist *connect.Client[v1.DeleteChangelistRequest, emptypb.Empty]
+}
+
+// CreateChangelist calls bytebase.v1.ChangelistService.CreateChangelist.
+func (c *changelistServiceClient) CreateChangelist(ctx context.Context, req *connect.Request[v1.CreateChangelistRequest]) (*connect.Response[v1.Changelist], error) {
+ return c.createChangelist.CallUnary(ctx, req)
+}
+
+// GetChangelist calls bytebase.v1.ChangelistService.GetChangelist.
+func (c *changelistServiceClient) GetChangelist(ctx context.Context, req *connect.Request[v1.GetChangelistRequest]) (*connect.Response[v1.Changelist], error) {
+ return c.getChangelist.CallUnary(ctx, req)
+}
+
+// ListChangelists calls bytebase.v1.ChangelistService.ListChangelists.
+func (c *changelistServiceClient) ListChangelists(ctx context.Context, req *connect.Request[v1.ListChangelistsRequest]) (*connect.Response[v1.ListChangelistsResponse], error) {
+ return c.listChangelists.CallUnary(ctx, req)
+}
+
+// UpdateChangelist calls bytebase.v1.ChangelistService.UpdateChangelist.
+func (c *changelistServiceClient) UpdateChangelist(ctx context.Context, req *connect.Request[v1.UpdateChangelistRequest]) (*connect.Response[v1.Changelist], error) {
+ return c.updateChangelist.CallUnary(ctx, req)
+}
+
+// DeleteChangelist calls bytebase.v1.ChangelistService.DeleteChangelist.
+func (c *changelistServiceClient) DeleteChangelist(ctx context.Context, req *connect.Request[v1.DeleteChangelistRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteChangelist.CallUnary(ctx, req)
+}
+
+// ChangelistServiceHandler is an implementation of the bytebase.v1.ChangelistService service.
+type ChangelistServiceHandler interface {
+ CreateChangelist(context.Context, *connect.Request[v1.CreateChangelistRequest]) (*connect.Response[v1.Changelist], error)
+ GetChangelist(context.Context, *connect.Request[v1.GetChangelistRequest]) (*connect.Response[v1.Changelist], error)
+ ListChangelists(context.Context, *connect.Request[v1.ListChangelistsRequest]) (*connect.Response[v1.ListChangelistsResponse], error)
+ UpdateChangelist(context.Context, *connect.Request[v1.UpdateChangelistRequest]) (*connect.Response[v1.Changelist], error)
+ DeleteChangelist(context.Context, *connect.Request[v1.DeleteChangelistRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewChangelistServiceHandler builds an HTTP handler from the service implementation. It returns
+// the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewChangelistServiceHandler(svc ChangelistServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ changelistServiceMethods := v1.File_v1_changelist_service_proto.Services().ByName("ChangelistService").Methods()
+ changelistServiceCreateChangelistHandler := connect.NewUnaryHandler(
+ ChangelistServiceCreateChangelistProcedure,
+ svc.CreateChangelist,
+ connect.WithSchema(changelistServiceMethods.ByName("CreateChangelist")),
+ connect.WithHandlerOptions(opts...),
+ )
+ changelistServiceGetChangelistHandler := connect.NewUnaryHandler(
+ ChangelistServiceGetChangelistProcedure,
+ svc.GetChangelist,
+ connect.WithSchema(changelistServiceMethods.ByName("GetChangelist")),
+ connect.WithHandlerOptions(opts...),
+ )
+ changelistServiceListChangelistsHandler := connect.NewUnaryHandler(
+ ChangelistServiceListChangelistsProcedure,
+ svc.ListChangelists,
+ connect.WithSchema(changelistServiceMethods.ByName("ListChangelists")),
+ connect.WithHandlerOptions(opts...),
+ )
+ changelistServiceUpdateChangelistHandler := connect.NewUnaryHandler(
+ ChangelistServiceUpdateChangelistProcedure,
+ svc.UpdateChangelist,
+ connect.WithSchema(changelistServiceMethods.ByName("UpdateChangelist")),
+ connect.WithHandlerOptions(opts...),
+ )
+ changelistServiceDeleteChangelistHandler := connect.NewUnaryHandler(
+ ChangelistServiceDeleteChangelistProcedure,
+ svc.DeleteChangelist,
+ connect.WithSchema(changelistServiceMethods.ByName("DeleteChangelist")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.ChangelistService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case ChangelistServiceCreateChangelistProcedure:
+ changelistServiceCreateChangelistHandler.ServeHTTP(w, r)
+ case ChangelistServiceGetChangelistProcedure:
+ changelistServiceGetChangelistHandler.ServeHTTP(w, r)
+ case ChangelistServiceListChangelistsProcedure:
+ changelistServiceListChangelistsHandler.ServeHTTP(w, r)
+ case ChangelistServiceUpdateChangelistProcedure:
+ changelistServiceUpdateChangelistHandler.ServeHTTP(w, r)
+ case ChangelistServiceDeleteChangelistProcedure:
+ changelistServiceDeleteChangelistHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedChangelistServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedChangelistServiceHandler struct{}
+
+func (UnimplementedChangelistServiceHandler) CreateChangelist(context.Context, *connect.Request[v1.CreateChangelistRequest]) (*connect.Response[v1.Changelist], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ChangelistService.CreateChangelist is not implemented"))
+}
+
+func (UnimplementedChangelistServiceHandler) GetChangelist(context.Context, *connect.Request[v1.GetChangelistRequest]) (*connect.Response[v1.Changelist], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ChangelistService.GetChangelist is not implemented"))
+}
+
+func (UnimplementedChangelistServiceHandler) ListChangelists(context.Context, *connect.Request[v1.ListChangelistsRequest]) (*connect.Response[v1.ListChangelistsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ChangelistService.ListChangelists is not implemented"))
+}
+
+func (UnimplementedChangelistServiceHandler) UpdateChangelist(context.Context, *connect.Request[v1.UpdateChangelistRequest]) (*connect.Response[v1.Changelist], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ChangelistService.UpdateChangelist is not implemented"))
+}
+
+func (UnimplementedChangelistServiceHandler) DeleteChangelist(context.Context, *connect.Request[v1.DeleteChangelistRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ChangelistService.DeleteChangelist is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/database_catalog_service.connect.go b/proto/generated-go/v1/v1connect/database_catalog_service.connect.go
new file mode 100644
index 0000000000..ff7811a133
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/database_catalog_service.connect.go
@@ -0,0 +1,139 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/database_catalog_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // DatabaseCatalogServiceName is the fully-qualified name of the DatabaseCatalogService service.
+ DatabaseCatalogServiceName = "bytebase.v1.DatabaseCatalogService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // DatabaseCatalogServiceGetDatabaseCatalogProcedure is the fully-qualified name of the
+ // DatabaseCatalogService's GetDatabaseCatalog RPC.
+ DatabaseCatalogServiceGetDatabaseCatalogProcedure = "/bytebase.v1.DatabaseCatalogService/GetDatabaseCatalog"
+ // DatabaseCatalogServiceUpdateDatabaseCatalogProcedure is the fully-qualified name of the
+ // DatabaseCatalogService's UpdateDatabaseCatalog RPC.
+ DatabaseCatalogServiceUpdateDatabaseCatalogProcedure = "/bytebase.v1.DatabaseCatalogService/UpdateDatabaseCatalog"
+)
+
+// DatabaseCatalogServiceClient is a client for the bytebase.v1.DatabaseCatalogService service.
+type DatabaseCatalogServiceClient interface {
+ GetDatabaseCatalog(context.Context, *connect.Request[v1.GetDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error)
+ UpdateDatabaseCatalog(context.Context, *connect.Request[v1.UpdateDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error)
+}
+
+// NewDatabaseCatalogServiceClient constructs a client for the bytebase.v1.DatabaseCatalogService
+// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for
+// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply
+// the connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewDatabaseCatalogServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DatabaseCatalogServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ databaseCatalogServiceMethods := v1.File_v1_database_catalog_service_proto.Services().ByName("DatabaseCatalogService").Methods()
+ return &databaseCatalogServiceClient{
+ getDatabaseCatalog: connect.NewClient[v1.GetDatabaseCatalogRequest, v1.DatabaseCatalog](
+ httpClient,
+ baseURL+DatabaseCatalogServiceGetDatabaseCatalogProcedure,
+ connect.WithSchema(databaseCatalogServiceMethods.ByName("GetDatabaseCatalog")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateDatabaseCatalog: connect.NewClient[v1.UpdateDatabaseCatalogRequest, v1.DatabaseCatalog](
+ httpClient,
+ baseURL+DatabaseCatalogServiceUpdateDatabaseCatalogProcedure,
+ connect.WithSchema(databaseCatalogServiceMethods.ByName("UpdateDatabaseCatalog")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// databaseCatalogServiceClient implements DatabaseCatalogServiceClient.
+type databaseCatalogServiceClient struct {
+ getDatabaseCatalog *connect.Client[v1.GetDatabaseCatalogRequest, v1.DatabaseCatalog]
+ updateDatabaseCatalog *connect.Client[v1.UpdateDatabaseCatalogRequest, v1.DatabaseCatalog]
+}
+
+// GetDatabaseCatalog calls bytebase.v1.DatabaseCatalogService.GetDatabaseCatalog.
+func (c *databaseCatalogServiceClient) GetDatabaseCatalog(ctx context.Context, req *connect.Request[v1.GetDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error) {
+ return c.getDatabaseCatalog.CallUnary(ctx, req)
+}
+
+// UpdateDatabaseCatalog calls bytebase.v1.DatabaseCatalogService.UpdateDatabaseCatalog.
+func (c *databaseCatalogServiceClient) UpdateDatabaseCatalog(ctx context.Context, req *connect.Request[v1.UpdateDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error) {
+ return c.updateDatabaseCatalog.CallUnary(ctx, req)
+}
+
+// DatabaseCatalogServiceHandler is an implementation of the bytebase.v1.DatabaseCatalogService
+// service.
+type DatabaseCatalogServiceHandler interface {
+ GetDatabaseCatalog(context.Context, *connect.Request[v1.GetDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error)
+ UpdateDatabaseCatalog(context.Context, *connect.Request[v1.UpdateDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error)
+}
+
+// NewDatabaseCatalogServiceHandler builds an HTTP handler from the service implementation. It
+// returns the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewDatabaseCatalogServiceHandler(svc DatabaseCatalogServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ databaseCatalogServiceMethods := v1.File_v1_database_catalog_service_proto.Services().ByName("DatabaseCatalogService").Methods()
+ databaseCatalogServiceGetDatabaseCatalogHandler := connect.NewUnaryHandler(
+ DatabaseCatalogServiceGetDatabaseCatalogProcedure,
+ svc.GetDatabaseCatalog,
+ connect.WithSchema(databaseCatalogServiceMethods.ByName("GetDatabaseCatalog")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseCatalogServiceUpdateDatabaseCatalogHandler := connect.NewUnaryHandler(
+ DatabaseCatalogServiceUpdateDatabaseCatalogProcedure,
+ svc.UpdateDatabaseCatalog,
+ connect.WithSchema(databaseCatalogServiceMethods.ByName("UpdateDatabaseCatalog")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.DatabaseCatalogService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case DatabaseCatalogServiceGetDatabaseCatalogProcedure:
+ databaseCatalogServiceGetDatabaseCatalogHandler.ServeHTTP(w, r)
+ case DatabaseCatalogServiceUpdateDatabaseCatalogProcedure:
+ databaseCatalogServiceUpdateDatabaseCatalogHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedDatabaseCatalogServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedDatabaseCatalogServiceHandler struct{}
+
+func (UnimplementedDatabaseCatalogServiceHandler) GetDatabaseCatalog(context.Context, *connect.Request[v1.GetDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseCatalogService.GetDatabaseCatalog is not implemented"))
+}
+
+func (UnimplementedDatabaseCatalogServiceHandler) UpdateDatabaseCatalog(context.Context, *connect.Request[v1.UpdateDatabaseCatalogRequest]) (*connect.Response[v1.DatabaseCatalog], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseCatalogService.UpdateDatabaseCatalog is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/database_group_service.connect.go b/proto/generated-go/v1/v1connect/database_group_service.connect.go
new file mode 100644
index 0000000000..2b453b7777
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/database_group_service.connect.go
@@ -0,0 +1,226 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/database_group_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // DatabaseGroupServiceName is the fully-qualified name of the DatabaseGroupService service.
+ DatabaseGroupServiceName = "bytebase.v1.DatabaseGroupService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // DatabaseGroupServiceListDatabaseGroupsProcedure is the fully-qualified name of the
+ // DatabaseGroupService's ListDatabaseGroups RPC.
+ DatabaseGroupServiceListDatabaseGroupsProcedure = "/bytebase.v1.DatabaseGroupService/ListDatabaseGroups"
+ // DatabaseGroupServiceGetDatabaseGroupProcedure is the fully-qualified name of the
+ // DatabaseGroupService's GetDatabaseGroup RPC.
+ DatabaseGroupServiceGetDatabaseGroupProcedure = "/bytebase.v1.DatabaseGroupService/GetDatabaseGroup"
+ // DatabaseGroupServiceCreateDatabaseGroupProcedure is the fully-qualified name of the
+ // DatabaseGroupService's CreateDatabaseGroup RPC.
+ DatabaseGroupServiceCreateDatabaseGroupProcedure = "/bytebase.v1.DatabaseGroupService/CreateDatabaseGroup"
+ // DatabaseGroupServiceUpdateDatabaseGroupProcedure is the fully-qualified name of the
+ // DatabaseGroupService's UpdateDatabaseGroup RPC.
+ DatabaseGroupServiceUpdateDatabaseGroupProcedure = "/bytebase.v1.DatabaseGroupService/UpdateDatabaseGroup"
+ // DatabaseGroupServiceDeleteDatabaseGroupProcedure is the fully-qualified name of the
+ // DatabaseGroupService's DeleteDatabaseGroup RPC.
+ DatabaseGroupServiceDeleteDatabaseGroupProcedure = "/bytebase.v1.DatabaseGroupService/DeleteDatabaseGroup"
+)
+
+// DatabaseGroupServiceClient is a client for the bytebase.v1.DatabaseGroupService service.
+type DatabaseGroupServiceClient interface {
+ ListDatabaseGroups(context.Context, *connect.Request[v1.ListDatabaseGroupsRequest]) (*connect.Response[v1.ListDatabaseGroupsResponse], error)
+ GetDatabaseGroup(context.Context, *connect.Request[v1.GetDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error)
+ CreateDatabaseGroup(context.Context, *connect.Request[v1.CreateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error)
+ UpdateDatabaseGroup(context.Context, *connect.Request[v1.UpdateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error)
+ DeleteDatabaseGroup(context.Context, *connect.Request[v1.DeleteDatabaseGroupRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewDatabaseGroupServiceClient constructs a client for the bytebase.v1.DatabaseGroupService
+// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for
+// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply
+// the connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewDatabaseGroupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DatabaseGroupServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ databaseGroupServiceMethods := v1.File_v1_database_group_service_proto.Services().ByName("DatabaseGroupService").Methods()
+ return &databaseGroupServiceClient{
+ listDatabaseGroups: connect.NewClient[v1.ListDatabaseGroupsRequest, v1.ListDatabaseGroupsResponse](
+ httpClient,
+ baseURL+DatabaseGroupServiceListDatabaseGroupsProcedure,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("ListDatabaseGroups")),
+ connect.WithClientOptions(opts...),
+ ),
+ getDatabaseGroup: connect.NewClient[v1.GetDatabaseGroupRequest, v1.DatabaseGroup](
+ httpClient,
+ baseURL+DatabaseGroupServiceGetDatabaseGroupProcedure,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("GetDatabaseGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ createDatabaseGroup: connect.NewClient[v1.CreateDatabaseGroupRequest, v1.DatabaseGroup](
+ httpClient,
+ baseURL+DatabaseGroupServiceCreateDatabaseGroupProcedure,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("CreateDatabaseGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateDatabaseGroup: connect.NewClient[v1.UpdateDatabaseGroupRequest, v1.DatabaseGroup](
+ httpClient,
+ baseURL+DatabaseGroupServiceUpdateDatabaseGroupProcedure,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("UpdateDatabaseGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteDatabaseGroup: connect.NewClient[v1.DeleteDatabaseGroupRequest, emptypb.Empty](
+ httpClient,
+ baseURL+DatabaseGroupServiceDeleteDatabaseGroupProcedure,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("DeleteDatabaseGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// databaseGroupServiceClient implements DatabaseGroupServiceClient.
+type databaseGroupServiceClient struct {
+ listDatabaseGroups *connect.Client[v1.ListDatabaseGroupsRequest, v1.ListDatabaseGroupsResponse]
+ getDatabaseGroup *connect.Client[v1.GetDatabaseGroupRequest, v1.DatabaseGroup]
+ createDatabaseGroup *connect.Client[v1.CreateDatabaseGroupRequest, v1.DatabaseGroup]
+ updateDatabaseGroup *connect.Client[v1.UpdateDatabaseGroupRequest, v1.DatabaseGroup]
+ deleteDatabaseGroup *connect.Client[v1.DeleteDatabaseGroupRequest, emptypb.Empty]
+}
+
+// ListDatabaseGroups calls bytebase.v1.DatabaseGroupService.ListDatabaseGroups.
+func (c *databaseGroupServiceClient) ListDatabaseGroups(ctx context.Context, req *connect.Request[v1.ListDatabaseGroupsRequest]) (*connect.Response[v1.ListDatabaseGroupsResponse], error) {
+ return c.listDatabaseGroups.CallUnary(ctx, req)
+}
+
+// GetDatabaseGroup calls bytebase.v1.DatabaseGroupService.GetDatabaseGroup.
+func (c *databaseGroupServiceClient) GetDatabaseGroup(ctx context.Context, req *connect.Request[v1.GetDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error) {
+ return c.getDatabaseGroup.CallUnary(ctx, req)
+}
+
+// CreateDatabaseGroup calls bytebase.v1.DatabaseGroupService.CreateDatabaseGroup.
+func (c *databaseGroupServiceClient) CreateDatabaseGroup(ctx context.Context, req *connect.Request[v1.CreateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error) {
+ return c.createDatabaseGroup.CallUnary(ctx, req)
+}
+
+// UpdateDatabaseGroup calls bytebase.v1.DatabaseGroupService.UpdateDatabaseGroup.
+func (c *databaseGroupServiceClient) UpdateDatabaseGroup(ctx context.Context, req *connect.Request[v1.UpdateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error) {
+ return c.updateDatabaseGroup.CallUnary(ctx, req)
+}
+
+// DeleteDatabaseGroup calls bytebase.v1.DatabaseGroupService.DeleteDatabaseGroup.
+func (c *databaseGroupServiceClient) DeleteDatabaseGroup(ctx context.Context, req *connect.Request[v1.DeleteDatabaseGroupRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteDatabaseGroup.CallUnary(ctx, req)
+}
+
+// DatabaseGroupServiceHandler is an implementation of the bytebase.v1.DatabaseGroupService service.
+type DatabaseGroupServiceHandler interface {
+ ListDatabaseGroups(context.Context, *connect.Request[v1.ListDatabaseGroupsRequest]) (*connect.Response[v1.ListDatabaseGroupsResponse], error)
+ GetDatabaseGroup(context.Context, *connect.Request[v1.GetDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error)
+ CreateDatabaseGroup(context.Context, *connect.Request[v1.CreateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error)
+ UpdateDatabaseGroup(context.Context, *connect.Request[v1.UpdateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error)
+ DeleteDatabaseGroup(context.Context, *connect.Request[v1.DeleteDatabaseGroupRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewDatabaseGroupServiceHandler builds an HTTP handler from the service implementation. It returns
+// the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewDatabaseGroupServiceHandler(svc DatabaseGroupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ databaseGroupServiceMethods := v1.File_v1_database_group_service_proto.Services().ByName("DatabaseGroupService").Methods()
+ databaseGroupServiceListDatabaseGroupsHandler := connect.NewUnaryHandler(
+ DatabaseGroupServiceListDatabaseGroupsProcedure,
+ svc.ListDatabaseGroups,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("ListDatabaseGroups")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseGroupServiceGetDatabaseGroupHandler := connect.NewUnaryHandler(
+ DatabaseGroupServiceGetDatabaseGroupProcedure,
+ svc.GetDatabaseGroup,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("GetDatabaseGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseGroupServiceCreateDatabaseGroupHandler := connect.NewUnaryHandler(
+ DatabaseGroupServiceCreateDatabaseGroupProcedure,
+ svc.CreateDatabaseGroup,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("CreateDatabaseGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseGroupServiceUpdateDatabaseGroupHandler := connect.NewUnaryHandler(
+ DatabaseGroupServiceUpdateDatabaseGroupProcedure,
+ svc.UpdateDatabaseGroup,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("UpdateDatabaseGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseGroupServiceDeleteDatabaseGroupHandler := connect.NewUnaryHandler(
+ DatabaseGroupServiceDeleteDatabaseGroupProcedure,
+ svc.DeleteDatabaseGroup,
+ connect.WithSchema(databaseGroupServiceMethods.ByName("DeleteDatabaseGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.DatabaseGroupService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case DatabaseGroupServiceListDatabaseGroupsProcedure:
+ databaseGroupServiceListDatabaseGroupsHandler.ServeHTTP(w, r)
+ case DatabaseGroupServiceGetDatabaseGroupProcedure:
+ databaseGroupServiceGetDatabaseGroupHandler.ServeHTTP(w, r)
+ case DatabaseGroupServiceCreateDatabaseGroupProcedure:
+ databaseGroupServiceCreateDatabaseGroupHandler.ServeHTTP(w, r)
+ case DatabaseGroupServiceUpdateDatabaseGroupProcedure:
+ databaseGroupServiceUpdateDatabaseGroupHandler.ServeHTTP(w, r)
+ case DatabaseGroupServiceDeleteDatabaseGroupProcedure:
+ databaseGroupServiceDeleteDatabaseGroupHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedDatabaseGroupServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedDatabaseGroupServiceHandler struct{}
+
+func (UnimplementedDatabaseGroupServiceHandler) ListDatabaseGroups(context.Context, *connect.Request[v1.ListDatabaseGroupsRequest]) (*connect.Response[v1.ListDatabaseGroupsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseGroupService.ListDatabaseGroups is not implemented"))
+}
+
+func (UnimplementedDatabaseGroupServiceHandler) GetDatabaseGroup(context.Context, *connect.Request[v1.GetDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseGroupService.GetDatabaseGroup is not implemented"))
+}
+
+func (UnimplementedDatabaseGroupServiceHandler) CreateDatabaseGroup(context.Context, *connect.Request[v1.CreateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseGroupService.CreateDatabaseGroup is not implemented"))
+}
+
+func (UnimplementedDatabaseGroupServiceHandler) UpdateDatabaseGroup(context.Context, *connect.Request[v1.UpdateDatabaseGroupRequest]) (*connect.Response[v1.DatabaseGroup], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseGroupService.UpdateDatabaseGroup is not implemented"))
+}
+
+func (UnimplementedDatabaseGroupServiceHandler) DeleteDatabaseGroup(context.Context, *connect.Request[v1.DeleteDatabaseGroupRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseGroupService.DeleteDatabaseGroup is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/database_service.connect.go b/proto/generated-go/v1/v1connect/database_service.connect.go
new file mode 100644
index 0000000000..769b996563
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/database_service.connect.go
@@ -0,0 +1,545 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/database_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // DatabaseServiceName is the fully-qualified name of the DatabaseService service.
+ DatabaseServiceName = "bytebase.v1.DatabaseService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // DatabaseServiceGetDatabaseProcedure is the fully-qualified name of the DatabaseService's
+ // GetDatabase RPC.
+ DatabaseServiceGetDatabaseProcedure = "/bytebase.v1.DatabaseService/GetDatabase"
+ // DatabaseServiceBatchGetDatabasesProcedure is the fully-qualified name of the DatabaseService's
+ // BatchGetDatabases RPC.
+ DatabaseServiceBatchGetDatabasesProcedure = "/bytebase.v1.DatabaseService/BatchGetDatabases"
+ // DatabaseServiceListDatabasesProcedure is the fully-qualified name of the DatabaseService's
+ // ListDatabases RPC.
+ DatabaseServiceListDatabasesProcedure = "/bytebase.v1.DatabaseService/ListDatabases"
+ // DatabaseServiceUpdateDatabaseProcedure is the fully-qualified name of the DatabaseService's
+ // UpdateDatabase RPC.
+ DatabaseServiceUpdateDatabaseProcedure = "/bytebase.v1.DatabaseService/UpdateDatabase"
+ // DatabaseServiceBatchUpdateDatabasesProcedure is the fully-qualified name of the DatabaseService's
+ // BatchUpdateDatabases RPC.
+ DatabaseServiceBatchUpdateDatabasesProcedure = "/bytebase.v1.DatabaseService/BatchUpdateDatabases"
+ // DatabaseServiceSyncDatabaseProcedure is the fully-qualified name of the DatabaseService's
+ // SyncDatabase RPC.
+ DatabaseServiceSyncDatabaseProcedure = "/bytebase.v1.DatabaseService/SyncDatabase"
+ // DatabaseServiceBatchSyncDatabasesProcedure is the fully-qualified name of the DatabaseService's
+ // BatchSyncDatabases RPC.
+ DatabaseServiceBatchSyncDatabasesProcedure = "/bytebase.v1.DatabaseService/BatchSyncDatabases"
+ // DatabaseServiceGetDatabaseMetadataProcedure is the fully-qualified name of the DatabaseService's
+ // GetDatabaseMetadata RPC.
+ DatabaseServiceGetDatabaseMetadataProcedure = "/bytebase.v1.DatabaseService/GetDatabaseMetadata"
+ // DatabaseServiceGetDatabaseSchemaProcedure is the fully-qualified name of the DatabaseService's
+ // GetDatabaseSchema RPC.
+ DatabaseServiceGetDatabaseSchemaProcedure = "/bytebase.v1.DatabaseService/GetDatabaseSchema"
+ // DatabaseServiceDiffSchemaProcedure is the fully-qualified name of the DatabaseService's
+ // DiffSchema RPC.
+ DatabaseServiceDiffSchemaProcedure = "/bytebase.v1.DatabaseService/DiffSchema"
+ // DatabaseServiceListSecretsProcedure is the fully-qualified name of the DatabaseService's
+ // ListSecrets RPC.
+ DatabaseServiceListSecretsProcedure = "/bytebase.v1.DatabaseService/ListSecrets"
+ // DatabaseServiceUpdateSecretProcedure is the fully-qualified name of the DatabaseService's
+ // UpdateSecret RPC.
+ DatabaseServiceUpdateSecretProcedure = "/bytebase.v1.DatabaseService/UpdateSecret"
+ // DatabaseServiceDeleteSecretProcedure is the fully-qualified name of the DatabaseService's
+ // DeleteSecret RPC.
+ DatabaseServiceDeleteSecretProcedure = "/bytebase.v1.DatabaseService/DeleteSecret"
+ // DatabaseServiceListChangelogsProcedure is the fully-qualified name of the DatabaseService's
+ // ListChangelogs RPC.
+ DatabaseServiceListChangelogsProcedure = "/bytebase.v1.DatabaseService/ListChangelogs"
+ // DatabaseServiceGetChangelogProcedure is the fully-qualified name of the DatabaseService's
+ // GetChangelog RPC.
+ DatabaseServiceGetChangelogProcedure = "/bytebase.v1.DatabaseService/GetChangelog"
+ // DatabaseServiceGetSchemaStringProcedure is the fully-qualified name of the DatabaseService's
+ // GetSchemaString RPC.
+ DatabaseServiceGetSchemaStringProcedure = "/bytebase.v1.DatabaseService/GetSchemaString"
+)
+
+// DatabaseServiceClient is a client for the bytebase.v1.DatabaseService service.
+type DatabaseServiceClient interface {
+ GetDatabase(context.Context, *connect.Request[v1.GetDatabaseRequest]) (*connect.Response[v1.Database], error)
+ BatchGetDatabases(context.Context, *connect.Request[v1.BatchGetDatabasesRequest]) (*connect.Response[v1.BatchGetDatabasesResponse], error)
+ ListDatabases(context.Context, *connect.Request[v1.ListDatabasesRequest]) (*connect.Response[v1.ListDatabasesResponse], error)
+ UpdateDatabase(context.Context, *connect.Request[v1.UpdateDatabaseRequest]) (*connect.Response[v1.Database], error)
+ BatchUpdateDatabases(context.Context, *connect.Request[v1.BatchUpdateDatabasesRequest]) (*connect.Response[v1.BatchUpdateDatabasesResponse], error)
+ SyncDatabase(context.Context, *connect.Request[v1.SyncDatabaseRequest]) (*connect.Response[v1.SyncDatabaseResponse], error)
+ BatchSyncDatabases(context.Context, *connect.Request[v1.BatchSyncDatabasesRequest]) (*connect.Response[v1.BatchSyncDatabasesResponse], error)
+ GetDatabaseMetadata(context.Context, *connect.Request[v1.GetDatabaseMetadataRequest]) (*connect.Response[v1.DatabaseMetadata], error)
+ GetDatabaseSchema(context.Context, *connect.Request[v1.GetDatabaseSchemaRequest]) (*connect.Response[v1.DatabaseSchema], error)
+ DiffSchema(context.Context, *connect.Request[v1.DiffSchemaRequest]) (*connect.Response[v1.DiffSchemaResponse], error)
+ ListSecrets(context.Context, *connect.Request[v1.ListSecretsRequest]) (*connect.Response[v1.ListSecretsResponse], error)
+ UpdateSecret(context.Context, *connect.Request[v1.UpdateSecretRequest]) (*connect.Response[v1.Secret], error)
+ DeleteSecret(context.Context, *connect.Request[v1.DeleteSecretRequest]) (*connect.Response[emptypb.Empty], error)
+ ListChangelogs(context.Context, *connect.Request[v1.ListChangelogsRequest]) (*connect.Response[v1.ListChangelogsResponse], error)
+ GetChangelog(context.Context, *connect.Request[v1.GetChangelogRequest]) (*connect.Response[v1.Changelog], error)
+ GetSchemaString(context.Context, *connect.Request[v1.GetSchemaStringRequest]) (*connect.Response[v1.GetSchemaStringResponse], error)
+}
+
+// NewDatabaseServiceClient constructs a client for the bytebase.v1.DatabaseService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewDatabaseServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DatabaseServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ databaseServiceMethods := v1.File_v1_database_service_proto.Services().ByName("DatabaseService").Methods()
+ return &databaseServiceClient{
+ getDatabase: connect.NewClient[v1.GetDatabaseRequest, v1.Database](
+ httpClient,
+ baseURL+DatabaseServiceGetDatabaseProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("GetDatabase")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchGetDatabases: connect.NewClient[v1.BatchGetDatabasesRequest, v1.BatchGetDatabasesResponse](
+ httpClient,
+ baseURL+DatabaseServiceBatchGetDatabasesProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("BatchGetDatabases")),
+ connect.WithClientOptions(opts...),
+ ),
+ listDatabases: connect.NewClient[v1.ListDatabasesRequest, v1.ListDatabasesResponse](
+ httpClient,
+ baseURL+DatabaseServiceListDatabasesProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("ListDatabases")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateDatabase: connect.NewClient[v1.UpdateDatabaseRequest, v1.Database](
+ httpClient,
+ baseURL+DatabaseServiceUpdateDatabaseProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("UpdateDatabase")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchUpdateDatabases: connect.NewClient[v1.BatchUpdateDatabasesRequest, v1.BatchUpdateDatabasesResponse](
+ httpClient,
+ baseURL+DatabaseServiceBatchUpdateDatabasesProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("BatchUpdateDatabases")),
+ connect.WithClientOptions(opts...),
+ ),
+ syncDatabase: connect.NewClient[v1.SyncDatabaseRequest, v1.SyncDatabaseResponse](
+ httpClient,
+ baseURL+DatabaseServiceSyncDatabaseProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("SyncDatabase")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchSyncDatabases: connect.NewClient[v1.BatchSyncDatabasesRequest, v1.BatchSyncDatabasesResponse](
+ httpClient,
+ baseURL+DatabaseServiceBatchSyncDatabasesProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("BatchSyncDatabases")),
+ connect.WithClientOptions(opts...),
+ ),
+ getDatabaseMetadata: connect.NewClient[v1.GetDatabaseMetadataRequest, v1.DatabaseMetadata](
+ httpClient,
+ baseURL+DatabaseServiceGetDatabaseMetadataProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("GetDatabaseMetadata")),
+ connect.WithClientOptions(opts...),
+ ),
+ getDatabaseSchema: connect.NewClient[v1.GetDatabaseSchemaRequest, v1.DatabaseSchema](
+ httpClient,
+ baseURL+DatabaseServiceGetDatabaseSchemaProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("GetDatabaseSchema")),
+ connect.WithClientOptions(opts...),
+ ),
+ diffSchema: connect.NewClient[v1.DiffSchemaRequest, v1.DiffSchemaResponse](
+ httpClient,
+ baseURL+DatabaseServiceDiffSchemaProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("DiffSchema")),
+ connect.WithClientOptions(opts...),
+ ),
+ listSecrets: connect.NewClient[v1.ListSecretsRequest, v1.ListSecretsResponse](
+ httpClient,
+ baseURL+DatabaseServiceListSecretsProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("ListSecrets")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateSecret: connect.NewClient[v1.UpdateSecretRequest, v1.Secret](
+ httpClient,
+ baseURL+DatabaseServiceUpdateSecretProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("UpdateSecret")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteSecret: connect.NewClient[v1.DeleteSecretRequest, emptypb.Empty](
+ httpClient,
+ baseURL+DatabaseServiceDeleteSecretProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("DeleteSecret")),
+ connect.WithClientOptions(opts...),
+ ),
+ listChangelogs: connect.NewClient[v1.ListChangelogsRequest, v1.ListChangelogsResponse](
+ httpClient,
+ baseURL+DatabaseServiceListChangelogsProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("ListChangelogs")),
+ connect.WithClientOptions(opts...),
+ ),
+ getChangelog: connect.NewClient[v1.GetChangelogRequest, v1.Changelog](
+ httpClient,
+ baseURL+DatabaseServiceGetChangelogProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("GetChangelog")),
+ connect.WithClientOptions(opts...),
+ ),
+ getSchemaString: connect.NewClient[v1.GetSchemaStringRequest, v1.GetSchemaStringResponse](
+ httpClient,
+ baseURL+DatabaseServiceGetSchemaStringProcedure,
+ connect.WithSchema(databaseServiceMethods.ByName("GetSchemaString")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// databaseServiceClient implements DatabaseServiceClient.
+type databaseServiceClient struct {
+ getDatabase *connect.Client[v1.GetDatabaseRequest, v1.Database]
+ batchGetDatabases *connect.Client[v1.BatchGetDatabasesRequest, v1.BatchGetDatabasesResponse]
+ listDatabases *connect.Client[v1.ListDatabasesRequest, v1.ListDatabasesResponse]
+ updateDatabase *connect.Client[v1.UpdateDatabaseRequest, v1.Database]
+ batchUpdateDatabases *connect.Client[v1.BatchUpdateDatabasesRequest, v1.BatchUpdateDatabasesResponse]
+ syncDatabase *connect.Client[v1.SyncDatabaseRequest, v1.SyncDatabaseResponse]
+ batchSyncDatabases *connect.Client[v1.BatchSyncDatabasesRequest, v1.BatchSyncDatabasesResponse]
+ getDatabaseMetadata *connect.Client[v1.GetDatabaseMetadataRequest, v1.DatabaseMetadata]
+ getDatabaseSchema *connect.Client[v1.GetDatabaseSchemaRequest, v1.DatabaseSchema]
+ diffSchema *connect.Client[v1.DiffSchemaRequest, v1.DiffSchemaResponse]
+ listSecrets *connect.Client[v1.ListSecretsRequest, v1.ListSecretsResponse]
+ updateSecret *connect.Client[v1.UpdateSecretRequest, v1.Secret]
+ deleteSecret *connect.Client[v1.DeleteSecretRequest, emptypb.Empty]
+ listChangelogs *connect.Client[v1.ListChangelogsRequest, v1.ListChangelogsResponse]
+ getChangelog *connect.Client[v1.GetChangelogRequest, v1.Changelog]
+ getSchemaString *connect.Client[v1.GetSchemaStringRequest, v1.GetSchemaStringResponse]
+}
+
+// GetDatabase calls bytebase.v1.DatabaseService.GetDatabase.
+func (c *databaseServiceClient) GetDatabase(ctx context.Context, req *connect.Request[v1.GetDatabaseRequest]) (*connect.Response[v1.Database], error) {
+ return c.getDatabase.CallUnary(ctx, req)
+}
+
+// BatchGetDatabases calls bytebase.v1.DatabaseService.BatchGetDatabases.
+func (c *databaseServiceClient) BatchGetDatabases(ctx context.Context, req *connect.Request[v1.BatchGetDatabasesRequest]) (*connect.Response[v1.BatchGetDatabasesResponse], error) {
+ return c.batchGetDatabases.CallUnary(ctx, req)
+}
+
+// ListDatabases calls bytebase.v1.DatabaseService.ListDatabases.
+func (c *databaseServiceClient) ListDatabases(ctx context.Context, req *connect.Request[v1.ListDatabasesRequest]) (*connect.Response[v1.ListDatabasesResponse], error) {
+ return c.listDatabases.CallUnary(ctx, req)
+}
+
+// UpdateDatabase calls bytebase.v1.DatabaseService.UpdateDatabase.
+func (c *databaseServiceClient) UpdateDatabase(ctx context.Context, req *connect.Request[v1.UpdateDatabaseRequest]) (*connect.Response[v1.Database], error) {
+ return c.updateDatabase.CallUnary(ctx, req)
+}
+
+// BatchUpdateDatabases calls bytebase.v1.DatabaseService.BatchUpdateDatabases.
+func (c *databaseServiceClient) BatchUpdateDatabases(ctx context.Context, req *connect.Request[v1.BatchUpdateDatabasesRequest]) (*connect.Response[v1.BatchUpdateDatabasesResponse], error) {
+ return c.batchUpdateDatabases.CallUnary(ctx, req)
+}
+
+// SyncDatabase calls bytebase.v1.DatabaseService.SyncDatabase.
+func (c *databaseServiceClient) SyncDatabase(ctx context.Context, req *connect.Request[v1.SyncDatabaseRequest]) (*connect.Response[v1.SyncDatabaseResponse], error) {
+ return c.syncDatabase.CallUnary(ctx, req)
+}
+
+// BatchSyncDatabases calls bytebase.v1.DatabaseService.BatchSyncDatabases.
+func (c *databaseServiceClient) BatchSyncDatabases(ctx context.Context, req *connect.Request[v1.BatchSyncDatabasesRequest]) (*connect.Response[v1.BatchSyncDatabasesResponse], error) {
+ return c.batchSyncDatabases.CallUnary(ctx, req)
+}
+
+// GetDatabaseMetadata calls bytebase.v1.DatabaseService.GetDatabaseMetadata.
+func (c *databaseServiceClient) GetDatabaseMetadata(ctx context.Context, req *connect.Request[v1.GetDatabaseMetadataRequest]) (*connect.Response[v1.DatabaseMetadata], error) {
+ return c.getDatabaseMetadata.CallUnary(ctx, req)
+}
+
+// GetDatabaseSchema calls bytebase.v1.DatabaseService.GetDatabaseSchema.
+func (c *databaseServiceClient) GetDatabaseSchema(ctx context.Context, req *connect.Request[v1.GetDatabaseSchemaRequest]) (*connect.Response[v1.DatabaseSchema], error) {
+ return c.getDatabaseSchema.CallUnary(ctx, req)
+}
+
+// DiffSchema calls bytebase.v1.DatabaseService.DiffSchema.
+func (c *databaseServiceClient) DiffSchema(ctx context.Context, req *connect.Request[v1.DiffSchemaRequest]) (*connect.Response[v1.DiffSchemaResponse], error) {
+ return c.diffSchema.CallUnary(ctx, req)
+}
+
+// ListSecrets calls bytebase.v1.DatabaseService.ListSecrets.
+func (c *databaseServiceClient) ListSecrets(ctx context.Context, req *connect.Request[v1.ListSecretsRequest]) (*connect.Response[v1.ListSecretsResponse], error) {
+ return c.listSecrets.CallUnary(ctx, req)
+}
+
+// UpdateSecret calls bytebase.v1.DatabaseService.UpdateSecret.
+func (c *databaseServiceClient) UpdateSecret(ctx context.Context, req *connect.Request[v1.UpdateSecretRequest]) (*connect.Response[v1.Secret], error) {
+ return c.updateSecret.CallUnary(ctx, req)
+}
+
+// DeleteSecret calls bytebase.v1.DatabaseService.DeleteSecret.
+func (c *databaseServiceClient) DeleteSecret(ctx context.Context, req *connect.Request[v1.DeleteSecretRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteSecret.CallUnary(ctx, req)
+}
+
+// ListChangelogs calls bytebase.v1.DatabaseService.ListChangelogs.
+func (c *databaseServiceClient) ListChangelogs(ctx context.Context, req *connect.Request[v1.ListChangelogsRequest]) (*connect.Response[v1.ListChangelogsResponse], error) {
+ return c.listChangelogs.CallUnary(ctx, req)
+}
+
+// GetChangelog calls bytebase.v1.DatabaseService.GetChangelog.
+func (c *databaseServiceClient) GetChangelog(ctx context.Context, req *connect.Request[v1.GetChangelogRequest]) (*connect.Response[v1.Changelog], error) {
+ return c.getChangelog.CallUnary(ctx, req)
+}
+
+// GetSchemaString calls bytebase.v1.DatabaseService.GetSchemaString.
+func (c *databaseServiceClient) GetSchemaString(ctx context.Context, req *connect.Request[v1.GetSchemaStringRequest]) (*connect.Response[v1.GetSchemaStringResponse], error) {
+ return c.getSchemaString.CallUnary(ctx, req)
+}
+
+// DatabaseServiceHandler is an implementation of the bytebase.v1.DatabaseService service.
+type DatabaseServiceHandler interface {
+ GetDatabase(context.Context, *connect.Request[v1.GetDatabaseRequest]) (*connect.Response[v1.Database], error)
+ BatchGetDatabases(context.Context, *connect.Request[v1.BatchGetDatabasesRequest]) (*connect.Response[v1.BatchGetDatabasesResponse], error)
+ ListDatabases(context.Context, *connect.Request[v1.ListDatabasesRequest]) (*connect.Response[v1.ListDatabasesResponse], error)
+ UpdateDatabase(context.Context, *connect.Request[v1.UpdateDatabaseRequest]) (*connect.Response[v1.Database], error)
+ BatchUpdateDatabases(context.Context, *connect.Request[v1.BatchUpdateDatabasesRequest]) (*connect.Response[v1.BatchUpdateDatabasesResponse], error)
+ SyncDatabase(context.Context, *connect.Request[v1.SyncDatabaseRequest]) (*connect.Response[v1.SyncDatabaseResponse], error)
+ BatchSyncDatabases(context.Context, *connect.Request[v1.BatchSyncDatabasesRequest]) (*connect.Response[v1.BatchSyncDatabasesResponse], error)
+ GetDatabaseMetadata(context.Context, *connect.Request[v1.GetDatabaseMetadataRequest]) (*connect.Response[v1.DatabaseMetadata], error)
+ GetDatabaseSchema(context.Context, *connect.Request[v1.GetDatabaseSchemaRequest]) (*connect.Response[v1.DatabaseSchema], error)
+ DiffSchema(context.Context, *connect.Request[v1.DiffSchemaRequest]) (*connect.Response[v1.DiffSchemaResponse], error)
+ ListSecrets(context.Context, *connect.Request[v1.ListSecretsRequest]) (*connect.Response[v1.ListSecretsResponse], error)
+ UpdateSecret(context.Context, *connect.Request[v1.UpdateSecretRequest]) (*connect.Response[v1.Secret], error)
+ DeleteSecret(context.Context, *connect.Request[v1.DeleteSecretRequest]) (*connect.Response[emptypb.Empty], error)
+ ListChangelogs(context.Context, *connect.Request[v1.ListChangelogsRequest]) (*connect.Response[v1.ListChangelogsResponse], error)
+ GetChangelog(context.Context, *connect.Request[v1.GetChangelogRequest]) (*connect.Response[v1.Changelog], error)
+ GetSchemaString(context.Context, *connect.Request[v1.GetSchemaStringRequest]) (*connect.Response[v1.GetSchemaStringResponse], error)
+}
+
+// NewDatabaseServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewDatabaseServiceHandler(svc DatabaseServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ databaseServiceMethods := v1.File_v1_database_service_proto.Services().ByName("DatabaseService").Methods()
+ databaseServiceGetDatabaseHandler := connect.NewUnaryHandler(
+ DatabaseServiceGetDatabaseProcedure,
+ svc.GetDatabase,
+ connect.WithSchema(databaseServiceMethods.ByName("GetDatabase")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceBatchGetDatabasesHandler := connect.NewUnaryHandler(
+ DatabaseServiceBatchGetDatabasesProcedure,
+ svc.BatchGetDatabases,
+ connect.WithSchema(databaseServiceMethods.ByName("BatchGetDatabases")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceListDatabasesHandler := connect.NewUnaryHandler(
+ DatabaseServiceListDatabasesProcedure,
+ svc.ListDatabases,
+ connect.WithSchema(databaseServiceMethods.ByName("ListDatabases")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceUpdateDatabaseHandler := connect.NewUnaryHandler(
+ DatabaseServiceUpdateDatabaseProcedure,
+ svc.UpdateDatabase,
+ connect.WithSchema(databaseServiceMethods.ByName("UpdateDatabase")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceBatchUpdateDatabasesHandler := connect.NewUnaryHandler(
+ DatabaseServiceBatchUpdateDatabasesProcedure,
+ svc.BatchUpdateDatabases,
+ connect.WithSchema(databaseServiceMethods.ByName("BatchUpdateDatabases")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceSyncDatabaseHandler := connect.NewUnaryHandler(
+ DatabaseServiceSyncDatabaseProcedure,
+ svc.SyncDatabase,
+ connect.WithSchema(databaseServiceMethods.ByName("SyncDatabase")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceBatchSyncDatabasesHandler := connect.NewUnaryHandler(
+ DatabaseServiceBatchSyncDatabasesProcedure,
+ svc.BatchSyncDatabases,
+ connect.WithSchema(databaseServiceMethods.ByName("BatchSyncDatabases")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceGetDatabaseMetadataHandler := connect.NewUnaryHandler(
+ DatabaseServiceGetDatabaseMetadataProcedure,
+ svc.GetDatabaseMetadata,
+ connect.WithSchema(databaseServiceMethods.ByName("GetDatabaseMetadata")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceGetDatabaseSchemaHandler := connect.NewUnaryHandler(
+ DatabaseServiceGetDatabaseSchemaProcedure,
+ svc.GetDatabaseSchema,
+ connect.WithSchema(databaseServiceMethods.ByName("GetDatabaseSchema")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceDiffSchemaHandler := connect.NewUnaryHandler(
+ DatabaseServiceDiffSchemaProcedure,
+ svc.DiffSchema,
+ connect.WithSchema(databaseServiceMethods.ByName("DiffSchema")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceListSecretsHandler := connect.NewUnaryHandler(
+ DatabaseServiceListSecretsProcedure,
+ svc.ListSecrets,
+ connect.WithSchema(databaseServiceMethods.ByName("ListSecrets")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceUpdateSecretHandler := connect.NewUnaryHandler(
+ DatabaseServiceUpdateSecretProcedure,
+ svc.UpdateSecret,
+ connect.WithSchema(databaseServiceMethods.ByName("UpdateSecret")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceDeleteSecretHandler := connect.NewUnaryHandler(
+ DatabaseServiceDeleteSecretProcedure,
+ svc.DeleteSecret,
+ connect.WithSchema(databaseServiceMethods.ByName("DeleteSecret")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceListChangelogsHandler := connect.NewUnaryHandler(
+ DatabaseServiceListChangelogsProcedure,
+ svc.ListChangelogs,
+ connect.WithSchema(databaseServiceMethods.ByName("ListChangelogs")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceGetChangelogHandler := connect.NewUnaryHandler(
+ DatabaseServiceGetChangelogProcedure,
+ svc.GetChangelog,
+ connect.WithSchema(databaseServiceMethods.ByName("GetChangelog")),
+ connect.WithHandlerOptions(opts...),
+ )
+ databaseServiceGetSchemaStringHandler := connect.NewUnaryHandler(
+ DatabaseServiceGetSchemaStringProcedure,
+ svc.GetSchemaString,
+ connect.WithSchema(databaseServiceMethods.ByName("GetSchemaString")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.DatabaseService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case DatabaseServiceGetDatabaseProcedure:
+ databaseServiceGetDatabaseHandler.ServeHTTP(w, r)
+ case DatabaseServiceBatchGetDatabasesProcedure:
+ databaseServiceBatchGetDatabasesHandler.ServeHTTP(w, r)
+ case DatabaseServiceListDatabasesProcedure:
+ databaseServiceListDatabasesHandler.ServeHTTP(w, r)
+ case DatabaseServiceUpdateDatabaseProcedure:
+ databaseServiceUpdateDatabaseHandler.ServeHTTP(w, r)
+ case DatabaseServiceBatchUpdateDatabasesProcedure:
+ databaseServiceBatchUpdateDatabasesHandler.ServeHTTP(w, r)
+ case DatabaseServiceSyncDatabaseProcedure:
+ databaseServiceSyncDatabaseHandler.ServeHTTP(w, r)
+ case DatabaseServiceBatchSyncDatabasesProcedure:
+ databaseServiceBatchSyncDatabasesHandler.ServeHTTP(w, r)
+ case DatabaseServiceGetDatabaseMetadataProcedure:
+ databaseServiceGetDatabaseMetadataHandler.ServeHTTP(w, r)
+ case DatabaseServiceGetDatabaseSchemaProcedure:
+ databaseServiceGetDatabaseSchemaHandler.ServeHTTP(w, r)
+ case DatabaseServiceDiffSchemaProcedure:
+ databaseServiceDiffSchemaHandler.ServeHTTP(w, r)
+ case DatabaseServiceListSecretsProcedure:
+ databaseServiceListSecretsHandler.ServeHTTP(w, r)
+ case DatabaseServiceUpdateSecretProcedure:
+ databaseServiceUpdateSecretHandler.ServeHTTP(w, r)
+ case DatabaseServiceDeleteSecretProcedure:
+ databaseServiceDeleteSecretHandler.ServeHTTP(w, r)
+ case DatabaseServiceListChangelogsProcedure:
+ databaseServiceListChangelogsHandler.ServeHTTP(w, r)
+ case DatabaseServiceGetChangelogProcedure:
+ databaseServiceGetChangelogHandler.ServeHTTP(w, r)
+ case DatabaseServiceGetSchemaStringProcedure:
+ databaseServiceGetSchemaStringHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedDatabaseServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedDatabaseServiceHandler struct{}
+
+func (UnimplementedDatabaseServiceHandler) GetDatabase(context.Context, *connect.Request[v1.GetDatabaseRequest]) (*connect.Response[v1.Database], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.GetDatabase is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) BatchGetDatabases(context.Context, *connect.Request[v1.BatchGetDatabasesRequest]) (*connect.Response[v1.BatchGetDatabasesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.BatchGetDatabases is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) ListDatabases(context.Context, *connect.Request[v1.ListDatabasesRequest]) (*connect.Response[v1.ListDatabasesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.ListDatabases is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) UpdateDatabase(context.Context, *connect.Request[v1.UpdateDatabaseRequest]) (*connect.Response[v1.Database], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.UpdateDatabase is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) BatchUpdateDatabases(context.Context, *connect.Request[v1.BatchUpdateDatabasesRequest]) (*connect.Response[v1.BatchUpdateDatabasesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.BatchUpdateDatabases is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) SyncDatabase(context.Context, *connect.Request[v1.SyncDatabaseRequest]) (*connect.Response[v1.SyncDatabaseResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.SyncDatabase is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) BatchSyncDatabases(context.Context, *connect.Request[v1.BatchSyncDatabasesRequest]) (*connect.Response[v1.BatchSyncDatabasesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.BatchSyncDatabases is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) GetDatabaseMetadata(context.Context, *connect.Request[v1.GetDatabaseMetadataRequest]) (*connect.Response[v1.DatabaseMetadata], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.GetDatabaseMetadata is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) GetDatabaseSchema(context.Context, *connect.Request[v1.GetDatabaseSchemaRequest]) (*connect.Response[v1.DatabaseSchema], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.GetDatabaseSchema is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) DiffSchema(context.Context, *connect.Request[v1.DiffSchemaRequest]) (*connect.Response[v1.DiffSchemaResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.DiffSchema is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) ListSecrets(context.Context, *connect.Request[v1.ListSecretsRequest]) (*connect.Response[v1.ListSecretsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.ListSecrets is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) UpdateSecret(context.Context, *connect.Request[v1.UpdateSecretRequest]) (*connect.Response[v1.Secret], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.UpdateSecret is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) DeleteSecret(context.Context, *connect.Request[v1.DeleteSecretRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.DeleteSecret is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) ListChangelogs(context.Context, *connect.Request[v1.ListChangelogsRequest]) (*connect.Response[v1.ListChangelogsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.ListChangelogs is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) GetChangelog(context.Context, *connect.Request[v1.GetChangelogRequest]) (*connect.Response[v1.Changelog], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.GetChangelog is not implemented"))
+}
+
+func (UnimplementedDatabaseServiceHandler) GetSchemaString(context.Context, *connect.Request[v1.GetSchemaStringRequest]) (*connect.Response[v1.GetSchemaStringResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.DatabaseService.GetSchemaString is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/group_service.connect.go b/proto/generated-go/v1/v1connect/group_service.connect.go
new file mode 100644
index 0000000000..ccdc61d5eb
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/group_service.connect.go
@@ -0,0 +1,228 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/group_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // GroupServiceName is the fully-qualified name of the GroupService service.
+ GroupServiceName = "bytebase.v1.GroupService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // GroupServiceGetGroupProcedure is the fully-qualified name of the GroupService's GetGroup RPC.
+ GroupServiceGetGroupProcedure = "/bytebase.v1.GroupService/GetGroup"
+ // GroupServiceListGroupsProcedure is the fully-qualified name of the GroupService's ListGroups RPC.
+ GroupServiceListGroupsProcedure = "/bytebase.v1.GroupService/ListGroups"
+ // GroupServiceCreateGroupProcedure is the fully-qualified name of the GroupService's CreateGroup
+ // RPC.
+ GroupServiceCreateGroupProcedure = "/bytebase.v1.GroupService/CreateGroup"
+ // GroupServiceUpdateGroupProcedure is the fully-qualified name of the GroupService's UpdateGroup
+ // RPC.
+ GroupServiceUpdateGroupProcedure = "/bytebase.v1.GroupService/UpdateGroup"
+ // GroupServiceDeleteGroupProcedure is the fully-qualified name of the GroupService's DeleteGroup
+ // RPC.
+ GroupServiceDeleteGroupProcedure = "/bytebase.v1.GroupService/DeleteGroup"
+)
+
+// GroupServiceClient is a client for the bytebase.v1.GroupService service.
+type GroupServiceClient interface {
+ GetGroup(context.Context, *connect.Request[v1.GetGroupRequest]) (*connect.Response[v1.Group], error)
+ ListGroups(context.Context, *connect.Request[v1.ListGroupsRequest]) (*connect.Response[v1.ListGroupsResponse], error)
+ CreateGroup(context.Context, *connect.Request[v1.CreateGroupRequest]) (*connect.Response[v1.Group], error)
+ // UpdateGroup updates the group.
+ // Users with "bb.groups.update" permission on the workspace or the group owner can access this method.
+ UpdateGroup(context.Context, *connect.Request[v1.UpdateGroupRequest]) (*connect.Response[v1.Group], error)
+ DeleteGroup(context.Context, *connect.Request[v1.DeleteGroupRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewGroupServiceClient constructs a client for the bytebase.v1.GroupService service. By default,
+// it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and
+// sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC()
+// or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewGroupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GroupServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ groupServiceMethods := v1.File_v1_group_service_proto.Services().ByName("GroupService").Methods()
+ return &groupServiceClient{
+ getGroup: connect.NewClient[v1.GetGroupRequest, v1.Group](
+ httpClient,
+ baseURL+GroupServiceGetGroupProcedure,
+ connect.WithSchema(groupServiceMethods.ByName("GetGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ listGroups: connect.NewClient[v1.ListGroupsRequest, v1.ListGroupsResponse](
+ httpClient,
+ baseURL+GroupServiceListGroupsProcedure,
+ connect.WithSchema(groupServiceMethods.ByName("ListGroups")),
+ connect.WithClientOptions(opts...),
+ ),
+ createGroup: connect.NewClient[v1.CreateGroupRequest, v1.Group](
+ httpClient,
+ baseURL+GroupServiceCreateGroupProcedure,
+ connect.WithSchema(groupServiceMethods.ByName("CreateGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateGroup: connect.NewClient[v1.UpdateGroupRequest, v1.Group](
+ httpClient,
+ baseURL+GroupServiceUpdateGroupProcedure,
+ connect.WithSchema(groupServiceMethods.ByName("UpdateGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteGroup: connect.NewClient[v1.DeleteGroupRequest, emptypb.Empty](
+ httpClient,
+ baseURL+GroupServiceDeleteGroupProcedure,
+ connect.WithSchema(groupServiceMethods.ByName("DeleteGroup")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// groupServiceClient implements GroupServiceClient.
+type groupServiceClient struct {
+ getGroup *connect.Client[v1.GetGroupRequest, v1.Group]
+ listGroups *connect.Client[v1.ListGroupsRequest, v1.ListGroupsResponse]
+ createGroup *connect.Client[v1.CreateGroupRequest, v1.Group]
+ updateGroup *connect.Client[v1.UpdateGroupRequest, v1.Group]
+ deleteGroup *connect.Client[v1.DeleteGroupRequest, emptypb.Empty]
+}
+
+// GetGroup calls bytebase.v1.GroupService.GetGroup.
+func (c *groupServiceClient) GetGroup(ctx context.Context, req *connect.Request[v1.GetGroupRequest]) (*connect.Response[v1.Group], error) {
+ return c.getGroup.CallUnary(ctx, req)
+}
+
+// ListGroups calls bytebase.v1.GroupService.ListGroups.
+func (c *groupServiceClient) ListGroups(ctx context.Context, req *connect.Request[v1.ListGroupsRequest]) (*connect.Response[v1.ListGroupsResponse], error) {
+ return c.listGroups.CallUnary(ctx, req)
+}
+
+// CreateGroup calls bytebase.v1.GroupService.CreateGroup.
+func (c *groupServiceClient) CreateGroup(ctx context.Context, req *connect.Request[v1.CreateGroupRequest]) (*connect.Response[v1.Group], error) {
+ return c.createGroup.CallUnary(ctx, req)
+}
+
+// UpdateGroup calls bytebase.v1.GroupService.UpdateGroup.
+func (c *groupServiceClient) UpdateGroup(ctx context.Context, req *connect.Request[v1.UpdateGroupRequest]) (*connect.Response[v1.Group], error) {
+ return c.updateGroup.CallUnary(ctx, req)
+}
+
+// DeleteGroup calls bytebase.v1.GroupService.DeleteGroup.
+func (c *groupServiceClient) DeleteGroup(ctx context.Context, req *connect.Request[v1.DeleteGroupRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteGroup.CallUnary(ctx, req)
+}
+
+// GroupServiceHandler is an implementation of the bytebase.v1.GroupService service.
+type GroupServiceHandler interface {
+ GetGroup(context.Context, *connect.Request[v1.GetGroupRequest]) (*connect.Response[v1.Group], error)
+ ListGroups(context.Context, *connect.Request[v1.ListGroupsRequest]) (*connect.Response[v1.ListGroupsResponse], error)
+ CreateGroup(context.Context, *connect.Request[v1.CreateGroupRequest]) (*connect.Response[v1.Group], error)
+ // UpdateGroup updates the group.
+ // Users with "bb.groups.update" permission on the workspace or the group owner can access this method.
+ UpdateGroup(context.Context, *connect.Request[v1.UpdateGroupRequest]) (*connect.Response[v1.Group], error)
+ DeleteGroup(context.Context, *connect.Request[v1.DeleteGroupRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewGroupServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewGroupServiceHandler(svc GroupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ groupServiceMethods := v1.File_v1_group_service_proto.Services().ByName("GroupService").Methods()
+ groupServiceGetGroupHandler := connect.NewUnaryHandler(
+ GroupServiceGetGroupProcedure,
+ svc.GetGroup,
+ connect.WithSchema(groupServiceMethods.ByName("GetGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ groupServiceListGroupsHandler := connect.NewUnaryHandler(
+ GroupServiceListGroupsProcedure,
+ svc.ListGroups,
+ connect.WithSchema(groupServiceMethods.ByName("ListGroups")),
+ connect.WithHandlerOptions(opts...),
+ )
+ groupServiceCreateGroupHandler := connect.NewUnaryHandler(
+ GroupServiceCreateGroupProcedure,
+ svc.CreateGroup,
+ connect.WithSchema(groupServiceMethods.ByName("CreateGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ groupServiceUpdateGroupHandler := connect.NewUnaryHandler(
+ GroupServiceUpdateGroupProcedure,
+ svc.UpdateGroup,
+ connect.WithSchema(groupServiceMethods.ByName("UpdateGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ groupServiceDeleteGroupHandler := connect.NewUnaryHandler(
+ GroupServiceDeleteGroupProcedure,
+ svc.DeleteGroup,
+ connect.WithSchema(groupServiceMethods.ByName("DeleteGroup")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.GroupService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case GroupServiceGetGroupProcedure:
+ groupServiceGetGroupHandler.ServeHTTP(w, r)
+ case GroupServiceListGroupsProcedure:
+ groupServiceListGroupsHandler.ServeHTTP(w, r)
+ case GroupServiceCreateGroupProcedure:
+ groupServiceCreateGroupHandler.ServeHTTP(w, r)
+ case GroupServiceUpdateGroupProcedure:
+ groupServiceUpdateGroupHandler.ServeHTTP(w, r)
+ case GroupServiceDeleteGroupProcedure:
+ groupServiceDeleteGroupHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedGroupServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedGroupServiceHandler struct{}
+
+func (UnimplementedGroupServiceHandler) GetGroup(context.Context, *connect.Request[v1.GetGroupRequest]) (*connect.Response[v1.Group], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.GroupService.GetGroup is not implemented"))
+}
+
+func (UnimplementedGroupServiceHandler) ListGroups(context.Context, *connect.Request[v1.ListGroupsRequest]) (*connect.Response[v1.ListGroupsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.GroupService.ListGroups is not implemented"))
+}
+
+func (UnimplementedGroupServiceHandler) CreateGroup(context.Context, *connect.Request[v1.CreateGroupRequest]) (*connect.Response[v1.Group], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.GroupService.CreateGroup is not implemented"))
+}
+
+func (UnimplementedGroupServiceHandler) UpdateGroup(context.Context, *connect.Request[v1.UpdateGroupRequest]) (*connect.Response[v1.Group], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.GroupService.UpdateGroup is not implemented"))
+}
+
+func (UnimplementedGroupServiceHandler) DeleteGroup(context.Context, *connect.Request[v1.DeleteGroupRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.GroupService.DeleteGroup is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/idp_service.connect.go b/proto/generated-go/v1/v1connect/idp_service.connect.go
new file mode 100644
index 0000000000..36acf57eb8
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/idp_service.connect.go
@@ -0,0 +1,256 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/idp_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // IdentityProviderServiceName is the fully-qualified name of the IdentityProviderService service.
+ IdentityProviderServiceName = "bytebase.v1.IdentityProviderService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // IdentityProviderServiceGetIdentityProviderProcedure is the fully-qualified name of the
+ // IdentityProviderService's GetIdentityProvider RPC.
+ IdentityProviderServiceGetIdentityProviderProcedure = "/bytebase.v1.IdentityProviderService/GetIdentityProvider"
+ // IdentityProviderServiceListIdentityProvidersProcedure is the fully-qualified name of the
+ // IdentityProviderService's ListIdentityProviders RPC.
+ IdentityProviderServiceListIdentityProvidersProcedure = "/bytebase.v1.IdentityProviderService/ListIdentityProviders"
+ // IdentityProviderServiceCreateIdentityProviderProcedure is the fully-qualified name of the
+ // IdentityProviderService's CreateIdentityProvider RPC.
+ IdentityProviderServiceCreateIdentityProviderProcedure = "/bytebase.v1.IdentityProviderService/CreateIdentityProvider"
+ // IdentityProviderServiceUpdateIdentityProviderProcedure is the fully-qualified name of the
+ // IdentityProviderService's UpdateIdentityProvider RPC.
+ IdentityProviderServiceUpdateIdentityProviderProcedure = "/bytebase.v1.IdentityProviderService/UpdateIdentityProvider"
+ // IdentityProviderServiceDeleteIdentityProviderProcedure is the fully-qualified name of the
+ // IdentityProviderService's DeleteIdentityProvider RPC.
+ IdentityProviderServiceDeleteIdentityProviderProcedure = "/bytebase.v1.IdentityProviderService/DeleteIdentityProvider"
+ // IdentityProviderServiceTestIdentityProviderProcedure is the fully-qualified name of the
+ // IdentityProviderService's TestIdentityProvider RPC.
+ IdentityProviderServiceTestIdentityProviderProcedure = "/bytebase.v1.IdentityProviderService/TestIdentityProvider"
+)
+
+// IdentityProviderServiceClient is a client for the bytebase.v1.IdentityProviderService service.
+type IdentityProviderServiceClient interface {
+ GetIdentityProvider(context.Context, *connect.Request[v1.GetIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error)
+ ListIdentityProviders(context.Context, *connect.Request[v1.ListIdentityProvidersRequest]) (*connect.Response[v1.ListIdentityProvidersResponse], error)
+ CreateIdentityProvider(context.Context, *connect.Request[v1.CreateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error)
+ UpdateIdentityProvider(context.Context, *connect.Request[v1.UpdateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error)
+ DeleteIdentityProvider(context.Context, *connect.Request[v1.DeleteIdentityProviderRequest]) (*connect.Response[emptypb.Empty], error)
+ TestIdentityProvider(context.Context, *connect.Request[v1.TestIdentityProviderRequest]) (*connect.Response[v1.TestIdentityProviderResponse], error)
+}
+
+// NewIdentityProviderServiceClient constructs a client for the bytebase.v1.IdentityProviderService
+// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for
+// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply
+// the connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewIdentityProviderServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IdentityProviderServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ identityProviderServiceMethods := v1.File_v1_idp_service_proto.Services().ByName("IdentityProviderService").Methods()
+ return &identityProviderServiceClient{
+ getIdentityProvider: connect.NewClient[v1.GetIdentityProviderRequest, v1.IdentityProvider](
+ httpClient,
+ baseURL+IdentityProviderServiceGetIdentityProviderProcedure,
+ connect.WithSchema(identityProviderServiceMethods.ByName("GetIdentityProvider")),
+ connect.WithClientOptions(opts...),
+ ),
+ listIdentityProviders: connect.NewClient[v1.ListIdentityProvidersRequest, v1.ListIdentityProvidersResponse](
+ httpClient,
+ baseURL+IdentityProviderServiceListIdentityProvidersProcedure,
+ connect.WithSchema(identityProviderServiceMethods.ByName("ListIdentityProviders")),
+ connect.WithClientOptions(opts...),
+ ),
+ createIdentityProvider: connect.NewClient[v1.CreateIdentityProviderRequest, v1.IdentityProvider](
+ httpClient,
+ baseURL+IdentityProviderServiceCreateIdentityProviderProcedure,
+ connect.WithSchema(identityProviderServiceMethods.ByName("CreateIdentityProvider")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateIdentityProvider: connect.NewClient[v1.UpdateIdentityProviderRequest, v1.IdentityProvider](
+ httpClient,
+ baseURL+IdentityProviderServiceUpdateIdentityProviderProcedure,
+ connect.WithSchema(identityProviderServiceMethods.ByName("UpdateIdentityProvider")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteIdentityProvider: connect.NewClient[v1.DeleteIdentityProviderRequest, emptypb.Empty](
+ httpClient,
+ baseURL+IdentityProviderServiceDeleteIdentityProviderProcedure,
+ connect.WithSchema(identityProviderServiceMethods.ByName("DeleteIdentityProvider")),
+ connect.WithClientOptions(opts...),
+ ),
+ testIdentityProvider: connect.NewClient[v1.TestIdentityProviderRequest, v1.TestIdentityProviderResponse](
+ httpClient,
+ baseURL+IdentityProviderServiceTestIdentityProviderProcedure,
+ connect.WithSchema(identityProviderServiceMethods.ByName("TestIdentityProvider")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// identityProviderServiceClient implements IdentityProviderServiceClient.
+type identityProviderServiceClient struct {
+ getIdentityProvider *connect.Client[v1.GetIdentityProviderRequest, v1.IdentityProvider]
+ listIdentityProviders *connect.Client[v1.ListIdentityProvidersRequest, v1.ListIdentityProvidersResponse]
+ createIdentityProvider *connect.Client[v1.CreateIdentityProviderRequest, v1.IdentityProvider]
+ updateIdentityProvider *connect.Client[v1.UpdateIdentityProviderRequest, v1.IdentityProvider]
+ deleteIdentityProvider *connect.Client[v1.DeleteIdentityProviderRequest, emptypb.Empty]
+ testIdentityProvider *connect.Client[v1.TestIdentityProviderRequest, v1.TestIdentityProviderResponse]
+}
+
+// GetIdentityProvider calls bytebase.v1.IdentityProviderService.GetIdentityProvider.
+func (c *identityProviderServiceClient) GetIdentityProvider(ctx context.Context, req *connect.Request[v1.GetIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error) {
+ return c.getIdentityProvider.CallUnary(ctx, req)
+}
+
+// ListIdentityProviders calls bytebase.v1.IdentityProviderService.ListIdentityProviders.
+func (c *identityProviderServiceClient) ListIdentityProviders(ctx context.Context, req *connect.Request[v1.ListIdentityProvidersRequest]) (*connect.Response[v1.ListIdentityProvidersResponse], error) {
+ return c.listIdentityProviders.CallUnary(ctx, req)
+}
+
+// CreateIdentityProvider calls bytebase.v1.IdentityProviderService.CreateIdentityProvider.
+func (c *identityProviderServiceClient) CreateIdentityProvider(ctx context.Context, req *connect.Request[v1.CreateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error) {
+ return c.createIdentityProvider.CallUnary(ctx, req)
+}
+
+// UpdateIdentityProvider calls bytebase.v1.IdentityProviderService.UpdateIdentityProvider.
+func (c *identityProviderServiceClient) UpdateIdentityProvider(ctx context.Context, req *connect.Request[v1.UpdateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error) {
+ return c.updateIdentityProvider.CallUnary(ctx, req)
+}
+
+// DeleteIdentityProvider calls bytebase.v1.IdentityProviderService.DeleteIdentityProvider.
+func (c *identityProviderServiceClient) DeleteIdentityProvider(ctx context.Context, req *connect.Request[v1.DeleteIdentityProviderRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteIdentityProvider.CallUnary(ctx, req)
+}
+
+// TestIdentityProvider calls bytebase.v1.IdentityProviderService.TestIdentityProvider.
+func (c *identityProviderServiceClient) TestIdentityProvider(ctx context.Context, req *connect.Request[v1.TestIdentityProviderRequest]) (*connect.Response[v1.TestIdentityProviderResponse], error) {
+ return c.testIdentityProvider.CallUnary(ctx, req)
+}
+
+// IdentityProviderServiceHandler is an implementation of the bytebase.v1.IdentityProviderService
+// service.
+type IdentityProviderServiceHandler interface {
+ GetIdentityProvider(context.Context, *connect.Request[v1.GetIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error)
+ ListIdentityProviders(context.Context, *connect.Request[v1.ListIdentityProvidersRequest]) (*connect.Response[v1.ListIdentityProvidersResponse], error)
+ CreateIdentityProvider(context.Context, *connect.Request[v1.CreateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error)
+ UpdateIdentityProvider(context.Context, *connect.Request[v1.UpdateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error)
+ DeleteIdentityProvider(context.Context, *connect.Request[v1.DeleteIdentityProviderRequest]) (*connect.Response[emptypb.Empty], error)
+ TestIdentityProvider(context.Context, *connect.Request[v1.TestIdentityProviderRequest]) (*connect.Response[v1.TestIdentityProviderResponse], error)
+}
+
+// NewIdentityProviderServiceHandler builds an HTTP handler from the service implementation. It
+// returns the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewIdentityProviderServiceHandler(svc IdentityProviderServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ identityProviderServiceMethods := v1.File_v1_idp_service_proto.Services().ByName("IdentityProviderService").Methods()
+ identityProviderServiceGetIdentityProviderHandler := connect.NewUnaryHandler(
+ IdentityProviderServiceGetIdentityProviderProcedure,
+ svc.GetIdentityProvider,
+ connect.WithSchema(identityProviderServiceMethods.ByName("GetIdentityProvider")),
+ connect.WithHandlerOptions(opts...),
+ )
+ identityProviderServiceListIdentityProvidersHandler := connect.NewUnaryHandler(
+ IdentityProviderServiceListIdentityProvidersProcedure,
+ svc.ListIdentityProviders,
+ connect.WithSchema(identityProviderServiceMethods.ByName("ListIdentityProviders")),
+ connect.WithHandlerOptions(opts...),
+ )
+ identityProviderServiceCreateIdentityProviderHandler := connect.NewUnaryHandler(
+ IdentityProviderServiceCreateIdentityProviderProcedure,
+ svc.CreateIdentityProvider,
+ connect.WithSchema(identityProviderServiceMethods.ByName("CreateIdentityProvider")),
+ connect.WithHandlerOptions(opts...),
+ )
+ identityProviderServiceUpdateIdentityProviderHandler := connect.NewUnaryHandler(
+ IdentityProviderServiceUpdateIdentityProviderProcedure,
+ svc.UpdateIdentityProvider,
+ connect.WithSchema(identityProviderServiceMethods.ByName("UpdateIdentityProvider")),
+ connect.WithHandlerOptions(opts...),
+ )
+ identityProviderServiceDeleteIdentityProviderHandler := connect.NewUnaryHandler(
+ IdentityProviderServiceDeleteIdentityProviderProcedure,
+ svc.DeleteIdentityProvider,
+ connect.WithSchema(identityProviderServiceMethods.ByName("DeleteIdentityProvider")),
+ connect.WithHandlerOptions(opts...),
+ )
+ identityProviderServiceTestIdentityProviderHandler := connect.NewUnaryHandler(
+ IdentityProviderServiceTestIdentityProviderProcedure,
+ svc.TestIdentityProvider,
+ connect.WithSchema(identityProviderServiceMethods.ByName("TestIdentityProvider")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.IdentityProviderService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case IdentityProviderServiceGetIdentityProviderProcedure:
+ identityProviderServiceGetIdentityProviderHandler.ServeHTTP(w, r)
+ case IdentityProviderServiceListIdentityProvidersProcedure:
+ identityProviderServiceListIdentityProvidersHandler.ServeHTTP(w, r)
+ case IdentityProviderServiceCreateIdentityProviderProcedure:
+ identityProviderServiceCreateIdentityProviderHandler.ServeHTTP(w, r)
+ case IdentityProviderServiceUpdateIdentityProviderProcedure:
+ identityProviderServiceUpdateIdentityProviderHandler.ServeHTTP(w, r)
+ case IdentityProviderServiceDeleteIdentityProviderProcedure:
+ identityProviderServiceDeleteIdentityProviderHandler.ServeHTTP(w, r)
+ case IdentityProviderServiceTestIdentityProviderProcedure:
+ identityProviderServiceTestIdentityProviderHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedIdentityProviderServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedIdentityProviderServiceHandler struct{}
+
+func (UnimplementedIdentityProviderServiceHandler) GetIdentityProvider(context.Context, *connect.Request[v1.GetIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IdentityProviderService.GetIdentityProvider is not implemented"))
+}
+
+func (UnimplementedIdentityProviderServiceHandler) ListIdentityProviders(context.Context, *connect.Request[v1.ListIdentityProvidersRequest]) (*connect.Response[v1.ListIdentityProvidersResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IdentityProviderService.ListIdentityProviders is not implemented"))
+}
+
+func (UnimplementedIdentityProviderServiceHandler) CreateIdentityProvider(context.Context, *connect.Request[v1.CreateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IdentityProviderService.CreateIdentityProvider is not implemented"))
+}
+
+func (UnimplementedIdentityProviderServiceHandler) UpdateIdentityProvider(context.Context, *connect.Request[v1.UpdateIdentityProviderRequest]) (*connect.Response[v1.IdentityProvider], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IdentityProviderService.UpdateIdentityProvider is not implemented"))
+}
+
+func (UnimplementedIdentityProviderServiceHandler) DeleteIdentityProvider(context.Context, *connect.Request[v1.DeleteIdentityProviderRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IdentityProviderService.DeleteIdentityProvider is not implemented"))
+}
+
+func (UnimplementedIdentityProviderServiceHandler) TestIdentityProvider(context.Context, *connect.Request[v1.TestIdentityProviderRequest]) (*connect.Response[v1.TestIdentityProviderResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IdentityProviderService.TestIdentityProvider is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/instance_role_service.connect.go b/proto/generated-go/v1/v1connect/instance_role_service.connect.go
new file mode 100644
index 0000000000..3e4561aa6f
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/instance_role_service.connect.go
@@ -0,0 +1,138 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/instance_role_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // InstanceRoleServiceName is the fully-qualified name of the InstanceRoleService service.
+ InstanceRoleServiceName = "bytebase.v1.InstanceRoleService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // InstanceRoleServiceGetInstanceRoleProcedure is the fully-qualified name of the
+ // InstanceRoleService's GetInstanceRole RPC.
+ InstanceRoleServiceGetInstanceRoleProcedure = "/bytebase.v1.InstanceRoleService/GetInstanceRole"
+ // InstanceRoleServiceListInstanceRolesProcedure is the fully-qualified name of the
+ // InstanceRoleService's ListInstanceRoles RPC.
+ InstanceRoleServiceListInstanceRolesProcedure = "/bytebase.v1.InstanceRoleService/ListInstanceRoles"
+)
+
+// InstanceRoleServiceClient is a client for the bytebase.v1.InstanceRoleService service.
+type InstanceRoleServiceClient interface {
+ GetInstanceRole(context.Context, *connect.Request[v1.GetInstanceRoleRequest]) (*connect.Response[v1.InstanceRole], error)
+ ListInstanceRoles(context.Context, *connect.Request[v1.ListInstanceRolesRequest]) (*connect.Response[v1.ListInstanceRolesResponse], error)
+}
+
+// NewInstanceRoleServiceClient constructs a client for the bytebase.v1.InstanceRoleService service.
+// By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped
+// responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewInstanceRoleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InstanceRoleServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ instanceRoleServiceMethods := v1.File_v1_instance_role_service_proto.Services().ByName("InstanceRoleService").Methods()
+ return &instanceRoleServiceClient{
+ getInstanceRole: connect.NewClient[v1.GetInstanceRoleRequest, v1.InstanceRole](
+ httpClient,
+ baseURL+InstanceRoleServiceGetInstanceRoleProcedure,
+ connect.WithSchema(instanceRoleServiceMethods.ByName("GetInstanceRole")),
+ connect.WithClientOptions(opts...),
+ ),
+ listInstanceRoles: connect.NewClient[v1.ListInstanceRolesRequest, v1.ListInstanceRolesResponse](
+ httpClient,
+ baseURL+InstanceRoleServiceListInstanceRolesProcedure,
+ connect.WithSchema(instanceRoleServiceMethods.ByName("ListInstanceRoles")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// instanceRoleServiceClient implements InstanceRoleServiceClient.
+type instanceRoleServiceClient struct {
+ getInstanceRole *connect.Client[v1.GetInstanceRoleRequest, v1.InstanceRole]
+ listInstanceRoles *connect.Client[v1.ListInstanceRolesRequest, v1.ListInstanceRolesResponse]
+}
+
+// GetInstanceRole calls bytebase.v1.InstanceRoleService.GetInstanceRole.
+func (c *instanceRoleServiceClient) GetInstanceRole(ctx context.Context, req *connect.Request[v1.GetInstanceRoleRequest]) (*connect.Response[v1.InstanceRole], error) {
+ return c.getInstanceRole.CallUnary(ctx, req)
+}
+
+// ListInstanceRoles calls bytebase.v1.InstanceRoleService.ListInstanceRoles.
+func (c *instanceRoleServiceClient) ListInstanceRoles(ctx context.Context, req *connect.Request[v1.ListInstanceRolesRequest]) (*connect.Response[v1.ListInstanceRolesResponse], error) {
+ return c.listInstanceRoles.CallUnary(ctx, req)
+}
+
+// InstanceRoleServiceHandler is an implementation of the bytebase.v1.InstanceRoleService service.
+type InstanceRoleServiceHandler interface {
+ GetInstanceRole(context.Context, *connect.Request[v1.GetInstanceRoleRequest]) (*connect.Response[v1.InstanceRole], error)
+ ListInstanceRoles(context.Context, *connect.Request[v1.ListInstanceRolesRequest]) (*connect.Response[v1.ListInstanceRolesResponse], error)
+}
+
+// NewInstanceRoleServiceHandler builds an HTTP handler from the service implementation. It returns
+// the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewInstanceRoleServiceHandler(svc InstanceRoleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ instanceRoleServiceMethods := v1.File_v1_instance_role_service_proto.Services().ByName("InstanceRoleService").Methods()
+ instanceRoleServiceGetInstanceRoleHandler := connect.NewUnaryHandler(
+ InstanceRoleServiceGetInstanceRoleProcedure,
+ svc.GetInstanceRole,
+ connect.WithSchema(instanceRoleServiceMethods.ByName("GetInstanceRole")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceRoleServiceListInstanceRolesHandler := connect.NewUnaryHandler(
+ InstanceRoleServiceListInstanceRolesProcedure,
+ svc.ListInstanceRoles,
+ connect.WithSchema(instanceRoleServiceMethods.ByName("ListInstanceRoles")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.InstanceRoleService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case InstanceRoleServiceGetInstanceRoleProcedure:
+ instanceRoleServiceGetInstanceRoleHandler.ServeHTTP(w, r)
+ case InstanceRoleServiceListInstanceRolesProcedure:
+ instanceRoleServiceListInstanceRolesHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedInstanceRoleServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedInstanceRoleServiceHandler struct{}
+
+func (UnimplementedInstanceRoleServiceHandler) GetInstanceRole(context.Context, *connect.Request[v1.GetInstanceRoleRequest]) (*connect.Response[v1.InstanceRole], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceRoleService.GetInstanceRole is not implemented"))
+}
+
+func (UnimplementedInstanceRoleServiceHandler) ListInstanceRoles(context.Context, *connect.Request[v1.ListInstanceRolesRequest]) (*connect.Response[v1.ListInstanceRolesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceRoleService.ListInstanceRoles is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/instance_service.connect.go b/proto/generated-go/v1/v1connect/instance_service.connect.go
new file mode 100644
index 0000000000..8e0755250a
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/instance_service.connect.go
@@ -0,0 +1,458 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/instance_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // InstanceServiceName is the fully-qualified name of the InstanceService service.
+ InstanceServiceName = "bytebase.v1.InstanceService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // InstanceServiceGetInstanceProcedure is the fully-qualified name of the InstanceService's
+ // GetInstance RPC.
+ InstanceServiceGetInstanceProcedure = "/bytebase.v1.InstanceService/GetInstance"
+ // InstanceServiceListInstancesProcedure is the fully-qualified name of the InstanceService's
+ // ListInstances RPC.
+ InstanceServiceListInstancesProcedure = "/bytebase.v1.InstanceService/ListInstances"
+ // InstanceServiceCreateInstanceProcedure is the fully-qualified name of the InstanceService's
+ // CreateInstance RPC.
+ InstanceServiceCreateInstanceProcedure = "/bytebase.v1.InstanceService/CreateInstance"
+ // InstanceServiceUpdateInstanceProcedure is the fully-qualified name of the InstanceService's
+ // UpdateInstance RPC.
+ InstanceServiceUpdateInstanceProcedure = "/bytebase.v1.InstanceService/UpdateInstance"
+ // InstanceServiceDeleteInstanceProcedure is the fully-qualified name of the InstanceService's
+ // DeleteInstance RPC.
+ InstanceServiceDeleteInstanceProcedure = "/bytebase.v1.InstanceService/DeleteInstance"
+ // InstanceServiceUndeleteInstanceProcedure is the fully-qualified name of the InstanceService's
+ // UndeleteInstance RPC.
+ InstanceServiceUndeleteInstanceProcedure = "/bytebase.v1.InstanceService/UndeleteInstance"
+ // InstanceServiceSyncInstanceProcedure is the fully-qualified name of the InstanceService's
+ // SyncInstance RPC.
+ InstanceServiceSyncInstanceProcedure = "/bytebase.v1.InstanceService/SyncInstance"
+ // InstanceServiceListInstanceDatabaseProcedure is the fully-qualified name of the InstanceService's
+ // ListInstanceDatabase RPC.
+ InstanceServiceListInstanceDatabaseProcedure = "/bytebase.v1.InstanceService/ListInstanceDatabase"
+ // InstanceServiceBatchSyncInstancesProcedure is the fully-qualified name of the InstanceService's
+ // BatchSyncInstances RPC.
+ InstanceServiceBatchSyncInstancesProcedure = "/bytebase.v1.InstanceService/BatchSyncInstances"
+ // InstanceServiceBatchUpdateInstancesProcedure is the fully-qualified name of the InstanceService's
+ // BatchUpdateInstances RPC.
+ InstanceServiceBatchUpdateInstancesProcedure = "/bytebase.v1.InstanceService/BatchUpdateInstances"
+ // InstanceServiceAddDataSourceProcedure is the fully-qualified name of the InstanceService's
+ // AddDataSource RPC.
+ InstanceServiceAddDataSourceProcedure = "/bytebase.v1.InstanceService/AddDataSource"
+ // InstanceServiceRemoveDataSourceProcedure is the fully-qualified name of the InstanceService's
+ // RemoveDataSource RPC.
+ InstanceServiceRemoveDataSourceProcedure = "/bytebase.v1.InstanceService/RemoveDataSource"
+ // InstanceServiceUpdateDataSourceProcedure is the fully-qualified name of the InstanceService's
+ // UpdateDataSource RPC.
+ InstanceServiceUpdateDataSourceProcedure = "/bytebase.v1.InstanceService/UpdateDataSource"
+)
+
+// InstanceServiceClient is a client for the bytebase.v1.InstanceService service.
+type InstanceServiceClient interface {
+ GetInstance(context.Context, *connect.Request[v1.GetInstanceRequest]) (*connect.Response[v1.Instance], error)
+ ListInstances(context.Context, *connect.Request[v1.ListInstancesRequest]) (*connect.Response[v1.ListInstancesResponse], error)
+ CreateInstance(context.Context, *connect.Request[v1.CreateInstanceRequest]) (*connect.Response[v1.Instance], error)
+ UpdateInstance(context.Context, *connect.Request[v1.UpdateInstanceRequest]) (*connect.Response[v1.Instance], error)
+ DeleteInstance(context.Context, *connect.Request[v1.DeleteInstanceRequest]) (*connect.Response[emptypb.Empty], error)
+ UndeleteInstance(context.Context, *connect.Request[v1.UndeleteInstanceRequest]) (*connect.Response[v1.Instance], error)
+ SyncInstance(context.Context, *connect.Request[v1.SyncInstanceRequest]) (*connect.Response[v1.SyncInstanceResponse], error)
+ ListInstanceDatabase(context.Context, *connect.Request[v1.ListInstanceDatabaseRequest]) (*connect.Response[v1.ListInstanceDatabaseResponse], error)
+ BatchSyncInstances(context.Context, *connect.Request[v1.BatchSyncInstancesRequest]) (*connect.Response[v1.BatchSyncInstancesResponse], error)
+ BatchUpdateInstances(context.Context, *connect.Request[v1.BatchUpdateInstancesRequest]) (*connect.Response[v1.BatchUpdateInstancesResponse], error)
+ AddDataSource(context.Context, *connect.Request[v1.AddDataSourceRequest]) (*connect.Response[v1.Instance], error)
+ RemoveDataSource(context.Context, *connect.Request[v1.RemoveDataSourceRequest]) (*connect.Response[v1.Instance], error)
+ UpdateDataSource(context.Context, *connect.Request[v1.UpdateDataSourceRequest]) (*connect.Response[v1.Instance], error)
+}
+
+// NewInstanceServiceClient constructs a client for the bytebase.v1.InstanceService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewInstanceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InstanceServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ instanceServiceMethods := v1.File_v1_instance_service_proto.Services().ByName("InstanceService").Methods()
+ return &instanceServiceClient{
+ getInstance: connect.NewClient[v1.GetInstanceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceGetInstanceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("GetInstance")),
+ connect.WithClientOptions(opts...),
+ ),
+ listInstances: connect.NewClient[v1.ListInstancesRequest, v1.ListInstancesResponse](
+ httpClient,
+ baseURL+InstanceServiceListInstancesProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("ListInstances")),
+ connect.WithClientOptions(opts...),
+ ),
+ createInstance: connect.NewClient[v1.CreateInstanceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceCreateInstanceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("CreateInstance")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateInstance: connect.NewClient[v1.UpdateInstanceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceUpdateInstanceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("UpdateInstance")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteInstance: connect.NewClient[v1.DeleteInstanceRequest, emptypb.Empty](
+ httpClient,
+ baseURL+InstanceServiceDeleteInstanceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("DeleteInstance")),
+ connect.WithClientOptions(opts...),
+ ),
+ undeleteInstance: connect.NewClient[v1.UndeleteInstanceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceUndeleteInstanceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("UndeleteInstance")),
+ connect.WithClientOptions(opts...),
+ ),
+ syncInstance: connect.NewClient[v1.SyncInstanceRequest, v1.SyncInstanceResponse](
+ httpClient,
+ baseURL+InstanceServiceSyncInstanceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("SyncInstance")),
+ connect.WithClientOptions(opts...),
+ ),
+ listInstanceDatabase: connect.NewClient[v1.ListInstanceDatabaseRequest, v1.ListInstanceDatabaseResponse](
+ httpClient,
+ baseURL+InstanceServiceListInstanceDatabaseProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("ListInstanceDatabase")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchSyncInstances: connect.NewClient[v1.BatchSyncInstancesRequest, v1.BatchSyncInstancesResponse](
+ httpClient,
+ baseURL+InstanceServiceBatchSyncInstancesProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("BatchSyncInstances")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchUpdateInstances: connect.NewClient[v1.BatchUpdateInstancesRequest, v1.BatchUpdateInstancesResponse](
+ httpClient,
+ baseURL+InstanceServiceBatchUpdateInstancesProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("BatchUpdateInstances")),
+ connect.WithClientOptions(opts...),
+ ),
+ addDataSource: connect.NewClient[v1.AddDataSourceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceAddDataSourceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("AddDataSource")),
+ connect.WithClientOptions(opts...),
+ ),
+ removeDataSource: connect.NewClient[v1.RemoveDataSourceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceRemoveDataSourceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("RemoveDataSource")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateDataSource: connect.NewClient[v1.UpdateDataSourceRequest, v1.Instance](
+ httpClient,
+ baseURL+InstanceServiceUpdateDataSourceProcedure,
+ connect.WithSchema(instanceServiceMethods.ByName("UpdateDataSource")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// instanceServiceClient implements InstanceServiceClient.
+type instanceServiceClient struct {
+ getInstance *connect.Client[v1.GetInstanceRequest, v1.Instance]
+ listInstances *connect.Client[v1.ListInstancesRequest, v1.ListInstancesResponse]
+ createInstance *connect.Client[v1.CreateInstanceRequest, v1.Instance]
+ updateInstance *connect.Client[v1.UpdateInstanceRequest, v1.Instance]
+ deleteInstance *connect.Client[v1.DeleteInstanceRequest, emptypb.Empty]
+ undeleteInstance *connect.Client[v1.UndeleteInstanceRequest, v1.Instance]
+ syncInstance *connect.Client[v1.SyncInstanceRequest, v1.SyncInstanceResponse]
+ listInstanceDatabase *connect.Client[v1.ListInstanceDatabaseRequest, v1.ListInstanceDatabaseResponse]
+ batchSyncInstances *connect.Client[v1.BatchSyncInstancesRequest, v1.BatchSyncInstancesResponse]
+ batchUpdateInstances *connect.Client[v1.BatchUpdateInstancesRequest, v1.BatchUpdateInstancesResponse]
+ addDataSource *connect.Client[v1.AddDataSourceRequest, v1.Instance]
+ removeDataSource *connect.Client[v1.RemoveDataSourceRequest, v1.Instance]
+ updateDataSource *connect.Client[v1.UpdateDataSourceRequest, v1.Instance]
+}
+
+// GetInstance calls bytebase.v1.InstanceService.GetInstance.
+func (c *instanceServiceClient) GetInstance(ctx context.Context, req *connect.Request[v1.GetInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.getInstance.CallUnary(ctx, req)
+}
+
+// ListInstances calls bytebase.v1.InstanceService.ListInstances.
+func (c *instanceServiceClient) ListInstances(ctx context.Context, req *connect.Request[v1.ListInstancesRequest]) (*connect.Response[v1.ListInstancesResponse], error) {
+ return c.listInstances.CallUnary(ctx, req)
+}
+
+// CreateInstance calls bytebase.v1.InstanceService.CreateInstance.
+func (c *instanceServiceClient) CreateInstance(ctx context.Context, req *connect.Request[v1.CreateInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.createInstance.CallUnary(ctx, req)
+}
+
+// UpdateInstance calls bytebase.v1.InstanceService.UpdateInstance.
+func (c *instanceServiceClient) UpdateInstance(ctx context.Context, req *connect.Request[v1.UpdateInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.updateInstance.CallUnary(ctx, req)
+}
+
+// DeleteInstance calls bytebase.v1.InstanceService.DeleteInstance.
+func (c *instanceServiceClient) DeleteInstance(ctx context.Context, req *connect.Request[v1.DeleteInstanceRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteInstance.CallUnary(ctx, req)
+}
+
+// UndeleteInstance calls bytebase.v1.InstanceService.UndeleteInstance.
+func (c *instanceServiceClient) UndeleteInstance(ctx context.Context, req *connect.Request[v1.UndeleteInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.undeleteInstance.CallUnary(ctx, req)
+}
+
+// SyncInstance calls bytebase.v1.InstanceService.SyncInstance.
+func (c *instanceServiceClient) SyncInstance(ctx context.Context, req *connect.Request[v1.SyncInstanceRequest]) (*connect.Response[v1.SyncInstanceResponse], error) {
+ return c.syncInstance.CallUnary(ctx, req)
+}
+
+// ListInstanceDatabase calls bytebase.v1.InstanceService.ListInstanceDatabase.
+func (c *instanceServiceClient) ListInstanceDatabase(ctx context.Context, req *connect.Request[v1.ListInstanceDatabaseRequest]) (*connect.Response[v1.ListInstanceDatabaseResponse], error) {
+ return c.listInstanceDatabase.CallUnary(ctx, req)
+}
+
+// BatchSyncInstances calls bytebase.v1.InstanceService.BatchSyncInstances.
+func (c *instanceServiceClient) BatchSyncInstances(ctx context.Context, req *connect.Request[v1.BatchSyncInstancesRequest]) (*connect.Response[v1.BatchSyncInstancesResponse], error) {
+ return c.batchSyncInstances.CallUnary(ctx, req)
+}
+
+// BatchUpdateInstances calls bytebase.v1.InstanceService.BatchUpdateInstances.
+func (c *instanceServiceClient) BatchUpdateInstances(ctx context.Context, req *connect.Request[v1.BatchUpdateInstancesRequest]) (*connect.Response[v1.BatchUpdateInstancesResponse], error) {
+ return c.batchUpdateInstances.CallUnary(ctx, req)
+}
+
+// AddDataSource calls bytebase.v1.InstanceService.AddDataSource.
+func (c *instanceServiceClient) AddDataSource(ctx context.Context, req *connect.Request[v1.AddDataSourceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.addDataSource.CallUnary(ctx, req)
+}
+
+// RemoveDataSource calls bytebase.v1.InstanceService.RemoveDataSource.
+func (c *instanceServiceClient) RemoveDataSource(ctx context.Context, req *connect.Request[v1.RemoveDataSourceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.removeDataSource.CallUnary(ctx, req)
+}
+
+// UpdateDataSource calls bytebase.v1.InstanceService.UpdateDataSource.
+func (c *instanceServiceClient) UpdateDataSource(ctx context.Context, req *connect.Request[v1.UpdateDataSourceRequest]) (*connect.Response[v1.Instance], error) {
+ return c.updateDataSource.CallUnary(ctx, req)
+}
+
+// InstanceServiceHandler is an implementation of the bytebase.v1.InstanceService service.
+type InstanceServiceHandler interface {
+ GetInstance(context.Context, *connect.Request[v1.GetInstanceRequest]) (*connect.Response[v1.Instance], error)
+ ListInstances(context.Context, *connect.Request[v1.ListInstancesRequest]) (*connect.Response[v1.ListInstancesResponse], error)
+ CreateInstance(context.Context, *connect.Request[v1.CreateInstanceRequest]) (*connect.Response[v1.Instance], error)
+ UpdateInstance(context.Context, *connect.Request[v1.UpdateInstanceRequest]) (*connect.Response[v1.Instance], error)
+ DeleteInstance(context.Context, *connect.Request[v1.DeleteInstanceRequest]) (*connect.Response[emptypb.Empty], error)
+ UndeleteInstance(context.Context, *connect.Request[v1.UndeleteInstanceRequest]) (*connect.Response[v1.Instance], error)
+ SyncInstance(context.Context, *connect.Request[v1.SyncInstanceRequest]) (*connect.Response[v1.SyncInstanceResponse], error)
+ ListInstanceDatabase(context.Context, *connect.Request[v1.ListInstanceDatabaseRequest]) (*connect.Response[v1.ListInstanceDatabaseResponse], error)
+ BatchSyncInstances(context.Context, *connect.Request[v1.BatchSyncInstancesRequest]) (*connect.Response[v1.BatchSyncInstancesResponse], error)
+ BatchUpdateInstances(context.Context, *connect.Request[v1.BatchUpdateInstancesRequest]) (*connect.Response[v1.BatchUpdateInstancesResponse], error)
+ AddDataSource(context.Context, *connect.Request[v1.AddDataSourceRequest]) (*connect.Response[v1.Instance], error)
+ RemoveDataSource(context.Context, *connect.Request[v1.RemoveDataSourceRequest]) (*connect.Response[v1.Instance], error)
+ UpdateDataSource(context.Context, *connect.Request[v1.UpdateDataSourceRequest]) (*connect.Response[v1.Instance], error)
+}
+
+// NewInstanceServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewInstanceServiceHandler(svc InstanceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ instanceServiceMethods := v1.File_v1_instance_service_proto.Services().ByName("InstanceService").Methods()
+ instanceServiceGetInstanceHandler := connect.NewUnaryHandler(
+ InstanceServiceGetInstanceProcedure,
+ svc.GetInstance,
+ connect.WithSchema(instanceServiceMethods.ByName("GetInstance")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceListInstancesHandler := connect.NewUnaryHandler(
+ InstanceServiceListInstancesProcedure,
+ svc.ListInstances,
+ connect.WithSchema(instanceServiceMethods.ByName("ListInstances")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceCreateInstanceHandler := connect.NewUnaryHandler(
+ InstanceServiceCreateInstanceProcedure,
+ svc.CreateInstance,
+ connect.WithSchema(instanceServiceMethods.ByName("CreateInstance")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceUpdateInstanceHandler := connect.NewUnaryHandler(
+ InstanceServiceUpdateInstanceProcedure,
+ svc.UpdateInstance,
+ connect.WithSchema(instanceServiceMethods.ByName("UpdateInstance")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceDeleteInstanceHandler := connect.NewUnaryHandler(
+ InstanceServiceDeleteInstanceProcedure,
+ svc.DeleteInstance,
+ connect.WithSchema(instanceServiceMethods.ByName("DeleteInstance")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceUndeleteInstanceHandler := connect.NewUnaryHandler(
+ InstanceServiceUndeleteInstanceProcedure,
+ svc.UndeleteInstance,
+ connect.WithSchema(instanceServiceMethods.ByName("UndeleteInstance")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceSyncInstanceHandler := connect.NewUnaryHandler(
+ InstanceServiceSyncInstanceProcedure,
+ svc.SyncInstance,
+ connect.WithSchema(instanceServiceMethods.ByName("SyncInstance")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceListInstanceDatabaseHandler := connect.NewUnaryHandler(
+ InstanceServiceListInstanceDatabaseProcedure,
+ svc.ListInstanceDatabase,
+ connect.WithSchema(instanceServiceMethods.ByName("ListInstanceDatabase")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceBatchSyncInstancesHandler := connect.NewUnaryHandler(
+ InstanceServiceBatchSyncInstancesProcedure,
+ svc.BatchSyncInstances,
+ connect.WithSchema(instanceServiceMethods.ByName("BatchSyncInstances")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceBatchUpdateInstancesHandler := connect.NewUnaryHandler(
+ InstanceServiceBatchUpdateInstancesProcedure,
+ svc.BatchUpdateInstances,
+ connect.WithSchema(instanceServiceMethods.ByName("BatchUpdateInstances")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceAddDataSourceHandler := connect.NewUnaryHandler(
+ InstanceServiceAddDataSourceProcedure,
+ svc.AddDataSource,
+ connect.WithSchema(instanceServiceMethods.ByName("AddDataSource")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceRemoveDataSourceHandler := connect.NewUnaryHandler(
+ InstanceServiceRemoveDataSourceProcedure,
+ svc.RemoveDataSource,
+ connect.WithSchema(instanceServiceMethods.ByName("RemoveDataSource")),
+ connect.WithHandlerOptions(opts...),
+ )
+ instanceServiceUpdateDataSourceHandler := connect.NewUnaryHandler(
+ InstanceServiceUpdateDataSourceProcedure,
+ svc.UpdateDataSource,
+ connect.WithSchema(instanceServiceMethods.ByName("UpdateDataSource")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.InstanceService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case InstanceServiceGetInstanceProcedure:
+ instanceServiceGetInstanceHandler.ServeHTTP(w, r)
+ case InstanceServiceListInstancesProcedure:
+ instanceServiceListInstancesHandler.ServeHTTP(w, r)
+ case InstanceServiceCreateInstanceProcedure:
+ instanceServiceCreateInstanceHandler.ServeHTTP(w, r)
+ case InstanceServiceUpdateInstanceProcedure:
+ instanceServiceUpdateInstanceHandler.ServeHTTP(w, r)
+ case InstanceServiceDeleteInstanceProcedure:
+ instanceServiceDeleteInstanceHandler.ServeHTTP(w, r)
+ case InstanceServiceUndeleteInstanceProcedure:
+ instanceServiceUndeleteInstanceHandler.ServeHTTP(w, r)
+ case InstanceServiceSyncInstanceProcedure:
+ instanceServiceSyncInstanceHandler.ServeHTTP(w, r)
+ case InstanceServiceListInstanceDatabaseProcedure:
+ instanceServiceListInstanceDatabaseHandler.ServeHTTP(w, r)
+ case InstanceServiceBatchSyncInstancesProcedure:
+ instanceServiceBatchSyncInstancesHandler.ServeHTTP(w, r)
+ case InstanceServiceBatchUpdateInstancesProcedure:
+ instanceServiceBatchUpdateInstancesHandler.ServeHTTP(w, r)
+ case InstanceServiceAddDataSourceProcedure:
+ instanceServiceAddDataSourceHandler.ServeHTTP(w, r)
+ case InstanceServiceRemoveDataSourceProcedure:
+ instanceServiceRemoveDataSourceHandler.ServeHTTP(w, r)
+ case InstanceServiceUpdateDataSourceProcedure:
+ instanceServiceUpdateDataSourceHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedInstanceServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedInstanceServiceHandler struct{}
+
+func (UnimplementedInstanceServiceHandler) GetInstance(context.Context, *connect.Request[v1.GetInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.GetInstance is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) ListInstances(context.Context, *connect.Request[v1.ListInstancesRequest]) (*connect.Response[v1.ListInstancesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.ListInstances is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) CreateInstance(context.Context, *connect.Request[v1.CreateInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.CreateInstance is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) UpdateInstance(context.Context, *connect.Request[v1.UpdateInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.UpdateInstance is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) DeleteInstance(context.Context, *connect.Request[v1.DeleteInstanceRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.DeleteInstance is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) UndeleteInstance(context.Context, *connect.Request[v1.UndeleteInstanceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.UndeleteInstance is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) SyncInstance(context.Context, *connect.Request[v1.SyncInstanceRequest]) (*connect.Response[v1.SyncInstanceResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.SyncInstance is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) ListInstanceDatabase(context.Context, *connect.Request[v1.ListInstanceDatabaseRequest]) (*connect.Response[v1.ListInstanceDatabaseResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.ListInstanceDatabase is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) BatchSyncInstances(context.Context, *connect.Request[v1.BatchSyncInstancesRequest]) (*connect.Response[v1.BatchSyncInstancesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.BatchSyncInstances is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) BatchUpdateInstances(context.Context, *connect.Request[v1.BatchUpdateInstancesRequest]) (*connect.Response[v1.BatchUpdateInstancesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.BatchUpdateInstances is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) AddDataSource(context.Context, *connect.Request[v1.AddDataSourceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.AddDataSource is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) RemoveDataSource(context.Context, *connect.Request[v1.RemoveDataSourceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.RemoveDataSource is not implemented"))
+}
+
+func (UnimplementedInstanceServiceHandler) UpdateDataSource(context.Context, *connect.Request[v1.UpdateDataSourceRequest]) (*connect.Response[v1.Instance], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.InstanceService.UpdateDataSource is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/issue_service.connect.go b/proto/generated-go/v1/v1connect/issue_service.connect.go
new file mode 100644
index 0000000000..3f829bffb1
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/issue_service.connect.go
@@ -0,0 +1,440 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/issue_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // IssueServiceName is the fully-qualified name of the IssueService service.
+ IssueServiceName = "bytebase.v1.IssueService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // IssueServiceGetIssueProcedure is the fully-qualified name of the IssueService's GetIssue RPC.
+ IssueServiceGetIssueProcedure = "/bytebase.v1.IssueService/GetIssue"
+ // IssueServiceCreateIssueProcedure is the fully-qualified name of the IssueService's CreateIssue
+ // RPC.
+ IssueServiceCreateIssueProcedure = "/bytebase.v1.IssueService/CreateIssue"
+ // IssueServiceListIssuesProcedure is the fully-qualified name of the IssueService's ListIssues RPC.
+ IssueServiceListIssuesProcedure = "/bytebase.v1.IssueService/ListIssues"
+ // IssueServiceSearchIssuesProcedure is the fully-qualified name of the IssueService's SearchIssues
+ // RPC.
+ IssueServiceSearchIssuesProcedure = "/bytebase.v1.IssueService/SearchIssues"
+ // IssueServiceUpdateIssueProcedure is the fully-qualified name of the IssueService's UpdateIssue
+ // RPC.
+ IssueServiceUpdateIssueProcedure = "/bytebase.v1.IssueService/UpdateIssue"
+ // IssueServiceListIssueCommentsProcedure is the fully-qualified name of the IssueService's
+ // ListIssueComments RPC.
+ IssueServiceListIssueCommentsProcedure = "/bytebase.v1.IssueService/ListIssueComments"
+ // IssueServiceCreateIssueCommentProcedure is the fully-qualified name of the IssueService's
+ // CreateIssueComment RPC.
+ IssueServiceCreateIssueCommentProcedure = "/bytebase.v1.IssueService/CreateIssueComment"
+ // IssueServiceUpdateIssueCommentProcedure is the fully-qualified name of the IssueService's
+ // UpdateIssueComment RPC.
+ IssueServiceUpdateIssueCommentProcedure = "/bytebase.v1.IssueService/UpdateIssueComment"
+ // IssueServiceBatchUpdateIssuesStatusProcedure is the fully-qualified name of the IssueService's
+ // BatchUpdateIssuesStatus RPC.
+ IssueServiceBatchUpdateIssuesStatusProcedure = "/bytebase.v1.IssueService/BatchUpdateIssuesStatus"
+ // IssueServiceApproveIssueProcedure is the fully-qualified name of the IssueService's ApproveIssue
+ // RPC.
+ IssueServiceApproveIssueProcedure = "/bytebase.v1.IssueService/ApproveIssue"
+ // IssueServiceRejectIssueProcedure is the fully-qualified name of the IssueService's RejectIssue
+ // RPC.
+ IssueServiceRejectIssueProcedure = "/bytebase.v1.IssueService/RejectIssue"
+ // IssueServiceRequestIssueProcedure is the fully-qualified name of the IssueService's RequestIssue
+ // RPC.
+ IssueServiceRequestIssueProcedure = "/bytebase.v1.IssueService/RequestIssue"
+)
+
+// IssueServiceClient is a client for the bytebase.v1.IssueService service.
+type IssueServiceClient interface {
+ GetIssue(context.Context, *connect.Request[v1.GetIssueRequest]) (*connect.Response[v1.Issue], error)
+ CreateIssue(context.Context, *connect.Request[v1.CreateIssueRequest]) (*connect.Response[v1.Issue], error)
+ ListIssues(context.Context, *connect.Request[v1.ListIssuesRequest]) (*connect.Response[v1.ListIssuesResponse], error)
+ // Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.
+ SearchIssues(context.Context, *connect.Request[v1.SearchIssuesRequest]) (*connect.Response[v1.SearchIssuesResponse], error)
+ UpdateIssue(context.Context, *connect.Request[v1.UpdateIssueRequest]) (*connect.Response[v1.Issue], error)
+ ListIssueComments(context.Context, *connect.Request[v1.ListIssueCommentsRequest]) (*connect.Response[v1.ListIssueCommentsResponse], error)
+ CreateIssueComment(context.Context, *connect.Request[v1.CreateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error)
+ UpdateIssueComment(context.Context, *connect.Request[v1.UpdateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error)
+ BatchUpdateIssuesStatus(context.Context, *connect.Request[v1.BatchUpdateIssuesStatusRequest]) (*connect.Response[v1.BatchUpdateIssuesStatusResponse], error)
+ // ApproveIssue approves the issue.
+ // The access is based on approval flow.
+ ApproveIssue(context.Context, *connect.Request[v1.ApproveIssueRequest]) (*connect.Response[v1.Issue], error)
+ // RejectIssue rejects the issue.
+ // The access is based on approval flow.
+ RejectIssue(context.Context, *connect.Request[v1.RejectIssueRequest]) (*connect.Response[v1.Issue], error)
+ // RequestIssue requests the issue.
+ // The access is based on approval flow.
+ RequestIssue(context.Context, *connect.Request[v1.RequestIssueRequest]) (*connect.Response[v1.Issue], error)
+}
+
+// NewIssueServiceClient constructs a client for the bytebase.v1.IssueService service. By default,
+// it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and
+// sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC()
+// or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewIssueServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IssueServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ issueServiceMethods := v1.File_v1_issue_service_proto.Services().ByName("IssueService").Methods()
+ return &issueServiceClient{
+ getIssue: connect.NewClient[v1.GetIssueRequest, v1.Issue](
+ httpClient,
+ baseURL+IssueServiceGetIssueProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("GetIssue")),
+ connect.WithClientOptions(opts...),
+ ),
+ createIssue: connect.NewClient[v1.CreateIssueRequest, v1.Issue](
+ httpClient,
+ baseURL+IssueServiceCreateIssueProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("CreateIssue")),
+ connect.WithClientOptions(opts...),
+ ),
+ listIssues: connect.NewClient[v1.ListIssuesRequest, v1.ListIssuesResponse](
+ httpClient,
+ baseURL+IssueServiceListIssuesProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("ListIssues")),
+ connect.WithClientOptions(opts...),
+ ),
+ searchIssues: connect.NewClient[v1.SearchIssuesRequest, v1.SearchIssuesResponse](
+ httpClient,
+ baseURL+IssueServiceSearchIssuesProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("SearchIssues")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateIssue: connect.NewClient[v1.UpdateIssueRequest, v1.Issue](
+ httpClient,
+ baseURL+IssueServiceUpdateIssueProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("UpdateIssue")),
+ connect.WithClientOptions(opts...),
+ ),
+ listIssueComments: connect.NewClient[v1.ListIssueCommentsRequest, v1.ListIssueCommentsResponse](
+ httpClient,
+ baseURL+IssueServiceListIssueCommentsProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("ListIssueComments")),
+ connect.WithClientOptions(opts...),
+ ),
+ createIssueComment: connect.NewClient[v1.CreateIssueCommentRequest, v1.IssueComment](
+ httpClient,
+ baseURL+IssueServiceCreateIssueCommentProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("CreateIssueComment")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateIssueComment: connect.NewClient[v1.UpdateIssueCommentRequest, v1.IssueComment](
+ httpClient,
+ baseURL+IssueServiceUpdateIssueCommentProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("UpdateIssueComment")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchUpdateIssuesStatus: connect.NewClient[v1.BatchUpdateIssuesStatusRequest, v1.BatchUpdateIssuesStatusResponse](
+ httpClient,
+ baseURL+IssueServiceBatchUpdateIssuesStatusProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("BatchUpdateIssuesStatus")),
+ connect.WithClientOptions(opts...),
+ ),
+ approveIssue: connect.NewClient[v1.ApproveIssueRequest, v1.Issue](
+ httpClient,
+ baseURL+IssueServiceApproveIssueProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("ApproveIssue")),
+ connect.WithClientOptions(opts...),
+ ),
+ rejectIssue: connect.NewClient[v1.RejectIssueRequest, v1.Issue](
+ httpClient,
+ baseURL+IssueServiceRejectIssueProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("RejectIssue")),
+ connect.WithClientOptions(opts...),
+ ),
+ requestIssue: connect.NewClient[v1.RequestIssueRequest, v1.Issue](
+ httpClient,
+ baseURL+IssueServiceRequestIssueProcedure,
+ connect.WithSchema(issueServiceMethods.ByName("RequestIssue")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// issueServiceClient implements IssueServiceClient.
+type issueServiceClient struct {
+ getIssue *connect.Client[v1.GetIssueRequest, v1.Issue]
+ createIssue *connect.Client[v1.CreateIssueRequest, v1.Issue]
+ listIssues *connect.Client[v1.ListIssuesRequest, v1.ListIssuesResponse]
+ searchIssues *connect.Client[v1.SearchIssuesRequest, v1.SearchIssuesResponse]
+ updateIssue *connect.Client[v1.UpdateIssueRequest, v1.Issue]
+ listIssueComments *connect.Client[v1.ListIssueCommentsRequest, v1.ListIssueCommentsResponse]
+ createIssueComment *connect.Client[v1.CreateIssueCommentRequest, v1.IssueComment]
+ updateIssueComment *connect.Client[v1.UpdateIssueCommentRequest, v1.IssueComment]
+ batchUpdateIssuesStatus *connect.Client[v1.BatchUpdateIssuesStatusRequest, v1.BatchUpdateIssuesStatusResponse]
+ approveIssue *connect.Client[v1.ApproveIssueRequest, v1.Issue]
+ rejectIssue *connect.Client[v1.RejectIssueRequest, v1.Issue]
+ requestIssue *connect.Client[v1.RequestIssueRequest, v1.Issue]
+}
+
+// GetIssue calls bytebase.v1.IssueService.GetIssue.
+func (c *issueServiceClient) GetIssue(ctx context.Context, req *connect.Request[v1.GetIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return c.getIssue.CallUnary(ctx, req)
+}
+
+// CreateIssue calls bytebase.v1.IssueService.CreateIssue.
+func (c *issueServiceClient) CreateIssue(ctx context.Context, req *connect.Request[v1.CreateIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return c.createIssue.CallUnary(ctx, req)
+}
+
+// ListIssues calls bytebase.v1.IssueService.ListIssues.
+func (c *issueServiceClient) ListIssues(ctx context.Context, req *connect.Request[v1.ListIssuesRequest]) (*connect.Response[v1.ListIssuesResponse], error) {
+ return c.listIssues.CallUnary(ctx, req)
+}
+
+// SearchIssues calls bytebase.v1.IssueService.SearchIssues.
+func (c *issueServiceClient) SearchIssues(ctx context.Context, req *connect.Request[v1.SearchIssuesRequest]) (*connect.Response[v1.SearchIssuesResponse], error) {
+ return c.searchIssues.CallUnary(ctx, req)
+}
+
+// UpdateIssue calls bytebase.v1.IssueService.UpdateIssue.
+func (c *issueServiceClient) UpdateIssue(ctx context.Context, req *connect.Request[v1.UpdateIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return c.updateIssue.CallUnary(ctx, req)
+}
+
+// ListIssueComments calls bytebase.v1.IssueService.ListIssueComments.
+func (c *issueServiceClient) ListIssueComments(ctx context.Context, req *connect.Request[v1.ListIssueCommentsRequest]) (*connect.Response[v1.ListIssueCommentsResponse], error) {
+ return c.listIssueComments.CallUnary(ctx, req)
+}
+
+// CreateIssueComment calls bytebase.v1.IssueService.CreateIssueComment.
+func (c *issueServiceClient) CreateIssueComment(ctx context.Context, req *connect.Request[v1.CreateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error) {
+ return c.createIssueComment.CallUnary(ctx, req)
+}
+
+// UpdateIssueComment calls bytebase.v1.IssueService.UpdateIssueComment.
+func (c *issueServiceClient) UpdateIssueComment(ctx context.Context, req *connect.Request[v1.UpdateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error) {
+ return c.updateIssueComment.CallUnary(ctx, req)
+}
+
+// BatchUpdateIssuesStatus calls bytebase.v1.IssueService.BatchUpdateIssuesStatus.
+func (c *issueServiceClient) BatchUpdateIssuesStatus(ctx context.Context, req *connect.Request[v1.BatchUpdateIssuesStatusRequest]) (*connect.Response[v1.BatchUpdateIssuesStatusResponse], error) {
+ return c.batchUpdateIssuesStatus.CallUnary(ctx, req)
+}
+
+// ApproveIssue calls bytebase.v1.IssueService.ApproveIssue.
+func (c *issueServiceClient) ApproveIssue(ctx context.Context, req *connect.Request[v1.ApproveIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return c.approveIssue.CallUnary(ctx, req)
+}
+
+// RejectIssue calls bytebase.v1.IssueService.RejectIssue.
+func (c *issueServiceClient) RejectIssue(ctx context.Context, req *connect.Request[v1.RejectIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return c.rejectIssue.CallUnary(ctx, req)
+}
+
+// RequestIssue calls bytebase.v1.IssueService.RequestIssue.
+func (c *issueServiceClient) RequestIssue(ctx context.Context, req *connect.Request[v1.RequestIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return c.requestIssue.CallUnary(ctx, req)
+}
+
+// IssueServiceHandler is an implementation of the bytebase.v1.IssueService service.
+type IssueServiceHandler interface {
+ GetIssue(context.Context, *connect.Request[v1.GetIssueRequest]) (*connect.Response[v1.Issue], error)
+ CreateIssue(context.Context, *connect.Request[v1.CreateIssueRequest]) (*connect.Response[v1.Issue], error)
+ ListIssues(context.Context, *connect.Request[v1.ListIssuesRequest]) (*connect.Response[v1.ListIssuesResponse], error)
+ // Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.
+ SearchIssues(context.Context, *connect.Request[v1.SearchIssuesRequest]) (*connect.Response[v1.SearchIssuesResponse], error)
+ UpdateIssue(context.Context, *connect.Request[v1.UpdateIssueRequest]) (*connect.Response[v1.Issue], error)
+ ListIssueComments(context.Context, *connect.Request[v1.ListIssueCommentsRequest]) (*connect.Response[v1.ListIssueCommentsResponse], error)
+ CreateIssueComment(context.Context, *connect.Request[v1.CreateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error)
+ UpdateIssueComment(context.Context, *connect.Request[v1.UpdateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error)
+ BatchUpdateIssuesStatus(context.Context, *connect.Request[v1.BatchUpdateIssuesStatusRequest]) (*connect.Response[v1.BatchUpdateIssuesStatusResponse], error)
+ // ApproveIssue approves the issue.
+ // The access is based on approval flow.
+ ApproveIssue(context.Context, *connect.Request[v1.ApproveIssueRequest]) (*connect.Response[v1.Issue], error)
+ // RejectIssue rejects the issue.
+ // The access is based on approval flow.
+ RejectIssue(context.Context, *connect.Request[v1.RejectIssueRequest]) (*connect.Response[v1.Issue], error)
+ // RequestIssue requests the issue.
+ // The access is based on approval flow.
+ RequestIssue(context.Context, *connect.Request[v1.RequestIssueRequest]) (*connect.Response[v1.Issue], error)
+}
+
+// NewIssueServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewIssueServiceHandler(svc IssueServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ issueServiceMethods := v1.File_v1_issue_service_proto.Services().ByName("IssueService").Methods()
+ issueServiceGetIssueHandler := connect.NewUnaryHandler(
+ IssueServiceGetIssueProcedure,
+ svc.GetIssue,
+ connect.WithSchema(issueServiceMethods.ByName("GetIssue")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceCreateIssueHandler := connect.NewUnaryHandler(
+ IssueServiceCreateIssueProcedure,
+ svc.CreateIssue,
+ connect.WithSchema(issueServiceMethods.ByName("CreateIssue")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceListIssuesHandler := connect.NewUnaryHandler(
+ IssueServiceListIssuesProcedure,
+ svc.ListIssues,
+ connect.WithSchema(issueServiceMethods.ByName("ListIssues")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceSearchIssuesHandler := connect.NewUnaryHandler(
+ IssueServiceSearchIssuesProcedure,
+ svc.SearchIssues,
+ connect.WithSchema(issueServiceMethods.ByName("SearchIssues")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceUpdateIssueHandler := connect.NewUnaryHandler(
+ IssueServiceUpdateIssueProcedure,
+ svc.UpdateIssue,
+ connect.WithSchema(issueServiceMethods.ByName("UpdateIssue")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceListIssueCommentsHandler := connect.NewUnaryHandler(
+ IssueServiceListIssueCommentsProcedure,
+ svc.ListIssueComments,
+ connect.WithSchema(issueServiceMethods.ByName("ListIssueComments")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceCreateIssueCommentHandler := connect.NewUnaryHandler(
+ IssueServiceCreateIssueCommentProcedure,
+ svc.CreateIssueComment,
+ connect.WithSchema(issueServiceMethods.ByName("CreateIssueComment")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceUpdateIssueCommentHandler := connect.NewUnaryHandler(
+ IssueServiceUpdateIssueCommentProcedure,
+ svc.UpdateIssueComment,
+ connect.WithSchema(issueServiceMethods.ByName("UpdateIssueComment")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceBatchUpdateIssuesStatusHandler := connect.NewUnaryHandler(
+ IssueServiceBatchUpdateIssuesStatusProcedure,
+ svc.BatchUpdateIssuesStatus,
+ connect.WithSchema(issueServiceMethods.ByName("BatchUpdateIssuesStatus")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceApproveIssueHandler := connect.NewUnaryHandler(
+ IssueServiceApproveIssueProcedure,
+ svc.ApproveIssue,
+ connect.WithSchema(issueServiceMethods.ByName("ApproveIssue")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceRejectIssueHandler := connect.NewUnaryHandler(
+ IssueServiceRejectIssueProcedure,
+ svc.RejectIssue,
+ connect.WithSchema(issueServiceMethods.ByName("RejectIssue")),
+ connect.WithHandlerOptions(opts...),
+ )
+ issueServiceRequestIssueHandler := connect.NewUnaryHandler(
+ IssueServiceRequestIssueProcedure,
+ svc.RequestIssue,
+ connect.WithSchema(issueServiceMethods.ByName("RequestIssue")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.IssueService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case IssueServiceGetIssueProcedure:
+ issueServiceGetIssueHandler.ServeHTTP(w, r)
+ case IssueServiceCreateIssueProcedure:
+ issueServiceCreateIssueHandler.ServeHTTP(w, r)
+ case IssueServiceListIssuesProcedure:
+ issueServiceListIssuesHandler.ServeHTTP(w, r)
+ case IssueServiceSearchIssuesProcedure:
+ issueServiceSearchIssuesHandler.ServeHTTP(w, r)
+ case IssueServiceUpdateIssueProcedure:
+ issueServiceUpdateIssueHandler.ServeHTTP(w, r)
+ case IssueServiceListIssueCommentsProcedure:
+ issueServiceListIssueCommentsHandler.ServeHTTP(w, r)
+ case IssueServiceCreateIssueCommentProcedure:
+ issueServiceCreateIssueCommentHandler.ServeHTTP(w, r)
+ case IssueServiceUpdateIssueCommentProcedure:
+ issueServiceUpdateIssueCommentHandler.ServeHTTP(w, r)
+ case IssueServiceBatchUpdateIssuesStatusProcedure:
+ issueServiceBatchUpdateIssuesStatusHandler.ServeHTTP(w, r)
+ case IssueServiceApproveIssueProcedure:
+ issueServiceApproveIssueHandler.ServeHTTP(w, r)
+ case IssueServiceRejectIssueProcedure:
+ issueServiceRejectIssueHandler.ServeHTTP(w, r)
+ case IssueServiceRequestIssueProcedure:
+ issueServiceRequestIssueHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedIssueServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedIssueServiceHandler struct{}
+
+func (UnimplementedIssueServiceHandler) GetIssue(context.Context, *connect.Request[v1.GetIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.GetIssue is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) CreateIssue(context.Context, *connect.Request[v1.CreateIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.CreateIssue is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) ListIssues(context.Context, *connect.Request[v1.ListIssuesRequest]) (*connect.Response[v1.ListIssuesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.ListIssues is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) SearchIssues(context.Context, *connect.Request[v1.SearchIssuesRequest]) (*connect.Response[v1.SearchIssuesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.SearchIssues is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) UpdateIssue(context.Context, *connect.Request[v1.UpdateIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.UpdateIssue is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) ListIssueComments(context.Context, *connect.Request[v1.ListIssueCommentsRequest]) (*connect.Response[v1.ListIssueCommentsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.ListIssueComments is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) CreateIssueComment(context.Context, *connect.Request[v1.CreateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.CreateIssueComment is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) UpdateIssueComment(context.Context, *connect.Request[v1.UpdateIssueCommentRequest]) (*connect.Response[v1.IssueComment], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.UpdateIssueComment is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) BatchUpdateIssuesStatus(context.Context, *connect.Request[v1.BatchUpdateIssuesStatusRequest]) (*connect.Response[v1.BatchUpdateIssuesStatusResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.BatchUpdateIssuesStatus is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) ApproveIssue(context.Context, *connect.Request[v1.ApproveIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.ApproveIssue is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) RejectIssue(context.Context, *connect.Request[v1.RejectIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.RejectIssue is not implemented"))
+}
+
+func (UnimplementedIssueServiceHandler) RequestIssue(context.Context, *connect.Request[v1.RequestIssueRequest]) (*connect.Response[v1.Issue], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.IssueService.RequestIssue is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/org_policy_service.connect.go b/proto/generated-go/v1/v1connect/org_policy_service.connect.go
new file mode 100644
index 0000000000..ab8df4ff22
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/org_policy_service.connect.go
@@ -0,0 +1,226 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/org_policy_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // OrgPolicyServiceName is the fully-qualified name of the OrgPolicyService service.
+ OrgPolicyServiceName = "bytebase.v1.OrgPolicyService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // OrgPolicyServiceGetPolicyProcedure is the fully-qualified name of the OrgPolicyService's
+ // GetPolicy RPC.
+ OrgPolicyServiceGetPolicyProcedure = "/bytebase.v1.OrgPolicyService/GetPolicy"
+ // OrgPolicyServiceListPoliciesProcedure is the fully-qualified name of the OrgPolicyService's
+ // ListPolicies RPC.
+ OrgPolicyServiceListPoliciesProcedure = "/bytebase.v1.OrgPolicyService/ListPolicies"
+ // OrgPolicyServiceCreatePolicyProcedure is the fully-qualified name of the OrgPolicyService's
+ // CreatePolicy RPC.
+ OrgPolicyServiceCreatePolicyProcedure = "/bytebase.v1.OrgPolicyService/CreatePolicy"
+ // OrgPolicyServiceUpdatePolicyProcedure is the fully-qualified name of the OrgPolicyService's
+ // UpdatePolicy RPC.
+ OrgPolicyServiceUpdatePolicyProcedure = "/bytebase.v1.OrgPolicyService/UpdatePolicy"
+ // OrgPolicyServiceDeletePolicyProcedure is the fully-qualified name of the OrgPolicyService's
+ // DeletePolicy RPC.
+ OrgPolicyServiceDeletePolicyProcedure = "/bytebase.v1.OrgPolicyService/DeletePolicy"
+)
+
+// OrgPolicyServiceClient is a client for the bytebase.v1.OrgPolicyService service.
+type OrgPolicyServiceClient interface {
+ GetPolicy(context.Context, *connect.Request[v1.GetPolicyRequest]) (*connect.Response[v1.Policy], error)
+ ListPolicies(context.Context, *connect.Request[v1.ListPoliciesRequest]) (*connect.Response[v1.ListPoliciesResponse], error)
+ CreatePolicy(context.Context, *connect.Request[v1.CreatePolicyRequest]) (*connect.Response[v1.Policy], error)
+ UpdatePolicy(context.Context, *connect.Request[v1.UpdatePolicyRequest]) (*connect.Response[v1.Policy], error)
+ DeletePolicy(context.Context, *connect.Request[v1.DeletePolicyRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewOrgPolicyServiceClient constructs a client for the bytebase.v1.OrgPolicyService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewOrgPolicyServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OrgPolicyServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ orgPolicyServiceMethods := v1.File_v1_org_policy_service_proto.Services().ByName("OrgPolicyService").Methods()
+ return &orgPolicyServiceClient{
+ getPolicy: connect.NewClient[v1.GetPolicyRequest, v1.Policy](
+ httpClient,
+ baseURL+OrgPolicyServiceGetPolicyProcedure,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("GetPolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ listPolicies: connect.NewClient[v1.ListPoliciesRequest, v1.ListPoliciesResponse](
+ httpClient,
+ baseURL+OrgPolicyServiceListPoliciesProcedure,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("ListPolicies")),
+ connect.WithClientOptions(opts...),
+ ),
+ createPolicy: connect.NewClient[v1.CreatePolicyRequest, v1.Policy](
+ httpClient,
+ baseURL+OrgPolicyServiceCreatePolicyProcedure,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("CreatePolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ updatePolicy: connect.NewClient[v1.UpdatePolicyRequest, v1.Policy](
+ httpClient,
+ baseURL+OrgPolicyServiceUpdatePolicyProcedure,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("UpdatePolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ deletePolicy: connect.NewClient[v1.DeletePolicyRequest, emptypb.Empty](
+ httpClient,
+ baseURL+OrgPolicyServiceDeletePolicyProcedure,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("DeletePolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// orgPolicyServiceClient implements OrgPolicyServiceClient.
+type orgPolicyServiceClient struct {
+ getPolicy *connect.Client[v1.GetPolicyRequest, v1.Policy]
+ listPolicies *connect.Client[v1.ListPoliciesRequest, v1.ListPoliciesResponse]
+ createPolicy *connect.Client[v1.CreatePolicyRequest, v1.Policy]
+ updatePolicy *connect.Client[v1.UpdatePolicyRequest, v1.Policy]
+ deletePolicy *connect.Client[v1.DeletePolicyRequest, emptypb.Empty]
+}
+
+// GetPolicy calls bytebase.v1.OrgPolicyService.GetPolicy.
+func (c *orgPolicyServiceClient) GetPolicy(ctx context.Context, req *connect.Request[v1.GetPolicyRequest]) (*connect.Response[v1.Policy], error) {
+ return c.getPolicy.CallUnary(ctx, req)
+}
+
+// ListPolicies calls bytebase.v1.OrgPolicyService.ListPolicies.
+func (c *orgPolicyServiceClient) ListPolicies(ctx context.Context, req *connect.Request[v1.ListPoliciesRequest]) (*connect.Response[v1.ListPoliciesResponse], error) {
+ return c.listPolicies.CallUnary(ctx, req)
+}
+
+// CreatePolicy calls bytebase.v1.OrgPolicyService.CreatePolicy.
+func (c *orgPolicyServiceClient) CreatePolicy(ctx context.Context, req *connect.Request[v1.CreatePolicyRequest]) (*connect.Response[v1.Policy], error) {
+ return c.createPolicy.CallUnary(ctx, req)
+}
+
+// UpdatePolicy calls bytebase.v1.OrgPolicyService.UpdatePolicy.
+func (c *orgPolicyServiceClient) UpdatePolicy(ctx context.Context, req *connect.Request[v1.UpdatePolicyRequest]) (*connect.Response[v1.Policy], error) {
+ return c.updatePolicy.CallUnary(ctx, req)
+}
+
+// DeletePolicy calls bytebase.v1.OrgPolicyService.DeletePolicy.
+func (c *orgPolicyServiceClient) DeletePolicy(ctx context.Context, req *connect.Request[v1.DeletePolicyRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deletePolicy.CallUnary(ctx, req)
+}
+
+// OrgPolicyServiceHandler is an implementation of the bytebase.v1.OrgPolicyService service.
+type OrgPolicyServiceHandler interface {
+ GetPolicy(context.Context, *connect.Request[v1.GetPolicyRequest]) (*connect.Response[v1.Policy], error)
+ ListPolicies(context.Context, *connect.Request[v1.ListPoliciesRequest]) (*connect.Response[v1.ListPoliciesResponse], error)
+ CreatePolicy(context.Context, *connect.Request[v1.CreatePolicyRequest]) (*connect.Response[v1.Policy], error)
+ UpdatePolicy(context.Context, *connect.Request[v1.UpdatePolicyRequest]) (*connect.Response[v1.Policy], error)
+ DeletePolicy(context.Context, *connect.Request[v1.DeletePolicyRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewOrgPolicyServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewOrgPolicyServiceHandler(svc OrgPolicyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ orgPolicyServiceMethods := v1.File_v1_org_policy_service_proto.Services().ByName("OrgPolicyService").Methods()
+ orgPolicyServiceGetPolicyHandler := connect.NewUnaryHandler(
+ OrgPolicyServiceGetPolicyProcedure,
+ svc.GetPolicy,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("GetPolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ orgPolicyServiceListPoliciesHandler := connect.NewUnaryHandler(
+ OrgPolicyServiceListPoliciesProcedure,
+ svc.ListPolicies,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("ListPolicies")),
+ connect.WithHandlerOptions(opts...),
+ )
+ orgPolicyServiceCreatePolicyHandler := connect.NewUnaryHandler(
+ OrgPolicyServiceCreatePolicyProcedure,
+ svc.CreatePolicy,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("CreatePolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ orgPolicyServiceUpdatePolicyHandler := connect.NewUnaryHandler(
+ OrgPolicyServiceUpdatePolicyProcedure,
+ svc.UpdatePolicy,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("UpdatePolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ orgPolicyServiceDeletePolicyHandler := connect.NewUnaryHandler(
+ OrgPolicyServiceDeletePolicyProcedure,
+ svc.DeletePolicy,
+ connect.WithSchema(orgPolicyServiceMethods.ByName("DeletePolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.OrgPolicyService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case OrgPolicyServiceGetPolicyProcedure:
+ orgPolicyServiceGetPolicyHandler.ServeHTTP(w, r)
+ case OrgPolicyServiceListPoliciesProcedure:
+ orgPolicyServiceListPoliciesHandler.ServeHTTP(w, r)
+ case OrgPolicyServiceCreatePolicyProcedure:
+ orgPolicyServiceCreatePolicyHandler.ServeHTTP(w, r)
+ case OrgPolicyServiceUpdatePolicyProcedure:
+ orgPolicyServiceUpdatePolicyHandler.ServeHTTP(w, r)
+ case OrgPolicyServiceDeletePolicyProcedure:
+ orgPolicyServiceDeletePolicyHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedOrgPolicyServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedOrgPolicyServiceHandler struct{}
+
+func (UnimplementedOrgPolicyServiceHandler) GetPolicy(context.Context, *connect.Request[v1.GetPolicyRequest]) (*connect.Response[v1.Policy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.OrgPolicyService.GetPolicy is not implemented"))
+}
+
+func (UnimplementedOrgPolicyServiceHandler) ListPolicies(context.Context, *connect.Request[v1.ListPoliciesRequest]) (*connect.Response[v1.ListPoliciesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.OrgPolicyService.ListPolicies is not implemented"))
+}
+
+func (UnimplementedOrgPolicyServiceHandler) CreatePolicy(context.Context, *connect.Request[v1.CreatePolicyRequest]) (*connect.Response[v1.Policy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.OrgPolicyService.CreatePolicy is not implemented"))
+}
+
+func (UnimplementedOrgPolicyServiceHandler) UpdatePolicy(context.Context, *connect.Request[v1.UpdatePolicyRequest]) (*connect.Response[v1.Policy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.OrgPolicyService.UpdatePolicy is not implemented"))
+}
+
+func (UnimplementedOrgPolicyServiceHandler) DeletePolicy(context.Context, *connect.Request[v1.DeletePolicyRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.OrgPolicyService.DeletePolicy is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/plan_service.connect.go b/proto/generated-go/v1/v1connect/plan_service.connect.go
new file mode 100644
index 0000000000..a87387892d
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/plan_service.connect.go
@@ -0,0 +1,313 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/plan_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // PlanServiceName is the fully-qualified name of the PlanService service.
+ PlanServiceName = "bytebase.v1.PlanService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // PlanServiceGetPlanProcedure is the fully-qualified name of the PlanService's GetPlan RPC.
+ PlanServiceGetPlanProcedure = "/bytebase.v1.PlanService/GetPlan"
+ // PlanServiceListPlansProcedure is the fully-qualified name of the PlanService's ListPlans RPC.
+ PlanServiceListPlansProcedure = "/bytebase.v1.PlanService/ListPlans"
+ // PlanServiceSearchPlansProcedure is the fully-qualified name of the PlanService's SearchPlans RPC.
+ PlanServiceSearchPlansProcedure = "/bytebase.v1.PlanService/SearchPlans"
+ // PlanServiceCreatePlanProcedure is the fully-qualified name of the PlanService's CreatePlan RPC.
+ PlanServiceCreatePlanProcedure = "/bytebase.v1.PlanService/CreatePlan"
+ // PlanServiceUpdatePlanProcedure is the fully-qualified name of the PlanService's UpdatePlan RPC.
+ PlanServiceUpdatePlanProcedure = "/bytebase.v1.PlanService/UpdatePlan"
+ // PlanServiceListPlanCheckRunsProcedure is the fully-qualified name of the PlanService's
+ // ListPlanCheckRuns RPC.
+ PlanServiceListPlanCheckRunsProcedure = "/bytebase.v1.PlanService/ListPlanCheckRuns"
+ // PlanServiceRunPlanChecksProcedure is the fully-qualified name of the PlanService's RunPlanChecks
+ // RPC.
+ PlanServiceRunPlanChecksProcedure = "/bytebase.v1.PlanService/RunPlanChecks"
+ // PlanServiceBatchCancelPlanCheckRunsProcedure is the fully-qualified name of the PlanService's
+ // BatchCancelPlanCheckRuns RPC.
+ PlanServiceBatchCancelPlanCheckRunsProcedure = "/bytebase.v1.PlanService/BatchCancelPlanCheckRuns"
+)
+
+// PlanServiceClient is a client for the bytebase.v1.PlanService service.
+type PlanServiceClient interface {
+ GetPlan(context.Context, *connect.Request[v1.GetPlanRequest]) (*connect.Response[v1.Plan], error)
+ ListPlans(context.Context, *connect.Request[v1.ListPlansRequest]) (*connect.Response[v1.ListPlansResponse], error)
+ // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.
+ SearchPlans(context.Context, *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error)
+ CreatePlan(context.Context, *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error)
+ // UpdatePlan updates the plan.
+ // The plan creator and the user with bb.plans.update permission on the project can update the plan.
+ UpdatePlan(context.Context, *connect.Request[v1.UpdatePlanRequest]) (*connect.Response[v1.Plan], error)
+ ListPlanCheckRuns(context.Context, *connect.Request[v1.ListPlanCheckRunsRequest]) (*connect.Response[v1.ListPlanCheckRunsResponse], error)
+ RunPlanChecks(context.Context, *connect.Request[v1.RunPlanChecksRequest]) (*connect.Response[v1.RunPlanChecksResponse], error)
+ BatchCancelPlanCheckRuns(context.Context, *connect.Request[v1.BatchCancelPlanCheckRunsRequest]) (*connect.Response[v1.BatchCancelPlanCheckRunsResponse], error)
+}
+
+// NewPlanServiceClient constructs a client for the bytebase.v1.PlanService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewPlanServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PlanServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ planServiceMethods := v1.File_v1_plan_service_proto.Services().ByName("PlanService").Methods()
+ return &planServiceClient{
+ getPlan: connect.NewClient[v1.GetPlanRequest, v1.Plan](
+ httpClient,
+ baseURL+PlanServiceGetPlanProcedure,
+ connect.WithSchema(planServiceMethods.ByName("GetPlan")),
+ connect.WithClientOptions(opts...),
+ ),
+ listPlans: connect.NewClient[v1.ListPlansRequest, v1.ListPlansResponse](
+ httpClient,
+ baseURL+PlanServiceListPlansProcedure,
+ connect.WithSchema(planServiceMethods.ByName("ListPlans")),
+ connect.WithClientOptions(opts...),
+ ),
+ searchPlans: connect.NewClient[v1.SearchPlansRequest, v1.SearchPlansResponse](
+ httpClient,
+ baseURL+PlanServiceSearchPlansProcedure,
+ connect.WithSchema(planServiceMethods.ByName("SearchPlans")),
+ connect.WithClientOptions(opts...),
+ ),
+ createPlan: connect.NewClient[v1.CreatePlanRequest, v1.Plan](
+ httpClient,
+ baseURL+PlanServiceCreatePlanProcedure,
+ connect.WithSchema(planServiceMethods.ByName("CreatePlan")),
+ connect.WithClientOptions(opts...),
+ ),
+ updatePlan: connect.NewClient[v1.UpdatePlanRequest, v1.Plan](
+ httpClient,
+ baseURL+PlanServiceUpdatePlanProcedure,
+ connect.WithSchema(planServiceMethods.ByName("UpdatePlan")),
+ connect.WithClientOptions(opts...),
+ ),
+ listPlanCheckRuns: connect.NewClient[v1.ListPlanCheckRunsRequest, v1.ListPlanCheckRunsResponse](
+ httpClient,
+ baseURL+PlanServiceListPlanCheckRunsProcedure,
+ connect.WithSchema(planServiceMethods.ByName("ListPlanCheckRuns")),
+ connect.WithClientOptions(opts...),
+ ),
+ runPlanChecks: connect.NewClient[v1.RunPlanChecksRequest, v1.RunPlanChecksResponse](
+ httpClient,
+ baseURL+PlanServiceRunPlanChecksProcedure,
+ connect.WithSchema(planServiceMethods.ByName("RunPlanChecks")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchCancelPlanCheckRuns: connect.NewClient[v1.BatchCancelPlanCheckRunsRequest, v1.BatchCancelPlanCheckRunsResponse](
+ httpClient,
+ baseURL+PlanServiceBatchCancelPlanCheckRunsProcedure,
+ connect.WithSchema(planServiceMethods.ByName("BatchCancelPlanCheckRuns")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// planServiceClient implements PlanServiceClient.
+type planServiceClient struct {
+ getPlan *connect.Client[v1.GetPlanRequest, v1.Plan]
+ listPlans *connect.Client[v1.ListPlansRequest, v1.ListPlansResponse]
+ searchPlans *connect.Client[v1.SearchPlansRequest, v1.SearchPlansResponse]
+ createPlan *connect.Client[v1.CreatePlanRequest, v1.Plan]
+ updatePlan *connect.Client[v1.UpdatePlanRequest, v1.Plan]
+ listPlanCheckRuns *connect.Client[v1.ListPlanCheckRunsRequest, v1.ListPlanCheckRunsResponse]
+ runPlanChecks *connect.Client[v1.RunPlanChecksRequest, v1.RunPlanChecksResponse]
+ batchCancelPlanCheckRuns *connect.Client[v1.BatchCancelPlanCheckRunsRequest, v1.BatchCancelPlanCheckRunsResponse]
+}
+
+// GetPlan calls bytebase.v1.PlanService.GetPlan.
+func (c *planServiceClient) GetPlan(ctx context.Context, req *connect.Request[v1.GetPlanRequest]) (*connect.Response[v1.Plan], error) {
+ return c.getPlan.CallUnary(ctx, req)
+}
+
+// ListPlans calls bytebase.v1.PlanService.ListPlans.
+func (c *planServiceClient) ListPlans(ctx context.Context, req *connect.Request[v1.ListPlansRequest]) (*connect.Response[v1.ListPlansResponse], error) {
+ return c.listPlans.CallUnary(ctx, req)
+}
+
+// SearchPlans calls bytebase.v1.PlanService.SearchPlans.
+func (c *planServiceClient) SearchPlans(ctx context.Context, req *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error) {
+ return c.searchPlans.CallUnary(ctx, req)
+}
+
+// CreatePlan calls bytebase.v1.PlanService.CreatePlan.
+func (c *planServiceClient) CreatePlan(ctx context.Context, req *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error) {
+ return c.createPlan.CallUnary(ctx, req)
+}
+
+// UpdatePlan calls bytebase.v1.PlanService.UpdatePlan.
+func (c *planServiceClient) UpdatePlan(ctx context.Context, req *connect.Request[v1.UpdatePlanRequest]) (*connect.Response[v1.Plan], error) {
+ return c.updatePlan.CallUnary(ctx, req)
+}
+
+// ListPlanCheckRuns calls bytebase.v1.PlanService.ListPlanCheckRuns.
+func (c *planServiceClient) ListPlanCheckRuns(ctx context.Context, req *connect.Request[v1.ListPlanCheckRunsRequest]) (*connect.Response[v1.ListPlanCheckRunsResponse], error) {
+ return c.listPlanCheckRuns.CallUnary(ctx, req)
+}
+
+// RunPlanChecks calls bytebase.v1.PlanService.RunPlanChecks.
+func (c *planServiceClient) RunPlanChecks(ctx context.Context, req *connect.Request[v1.RunPlanChecksRequest]) (*connect.Response[v1.RunPlanChecksResponse], error) {
+ return c.runPlanChecks.CallUnary(ctx, req)
+}
+
+// BatchCancelPlanCheckRuns calls bytebase.v1.PlanService.BatchCancelPlanCheckRuns.
+func (c *planServiceClient) BatchCancelPlanCheckRuns(ctx context.Context, req *connect.Request[v1.BatchCancelPlanCheckRunsRequest]) (*connect.Response[v1.BatchCancelPlanCheckRunsResponse], error) {
+ return c.batchCancelPlanCheckRuns.CallUnary(ctx, req)
+}
+
+// PlanServiceHandler is an implementation of the bytebase.v1.PlanService service.
+type PlanServiceHandler interface {
+ GetPlan(context.Context, *connect.Request[v1.GetPlanRequest]) (*connect.Response[v1.Plan], error)
+ ListPlans(context.Context, *connect.Request[v1.ListPlansRequest]) (*connect.Response[v1.ListPlansResponse], error)
+ // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.
+ SearchPlans(context.Context, *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error)
+ CreatePlan(context.Context, *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error)
+ // UpdatePlan updates the plan.
+ // The plan creator and the user with bb.plans.update permission on the project can update the plan.
+ UpdatePlan(context.Context, *connect.Request[v1.UpdatePlanRequest]) (*connect.Response[v1.Plan], error)
+ ListPlanCheckRuns(context.Context, *connect.Request[v1.ListPlanCheckRunsRequest]) (*connect.Response[v1.ListPlanCheckRunsResponse], error)
+ RunPlanChecks(context.Context, *connect.Request[v1.RunPlanChecksRequest]) (*connect.Response[v1.RunPlanChecksResponse], error)
+ BatchCancelPlanCheckRuns(context.Context, *connect.Request[v1.BatchCancelPlanCheckRunsRequest]) (*connect.Response[v1.BatchCancelPlanCheckRunsResponse], error)
+}
+
+// NewPlanServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewPlanServiceHandler(svc PlanServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ planServiceMethods := v1.File_v1_plan_service_proto.Services().ByName("PlanService").Methods()
+ planServiceGetPlanHandler := connect.NewUnaryHandler(
+ PlanServiceGetPlanProcedure,
+ svc.GetPlan,
+ connect.WithSchema(planServiceMethods.ByName("GetPlan")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceListPlansHandler := connect.NewUnaryHandler(
+ PlanServiceListPlansProcedure,
+ svc.ListPlans,
+ connect.WithSchema(planServiceMethods.ByName("ListPlans")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceSearchPlansHandler := connect.NewUnaryHandler(
+ PlanServiceSearchPlansProcedure,
+ svc.SearchPlans,
+ connect.WithSchema(planServiceMethods.ByName("SearchPlans")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceCreatePlanHandler := connect.NewUnaryHandler(
+ PlanServiceCreatePlanProcedure,
+ svc.CreatePlan,
+ connect.WithSchema(planServiceMethods.ByName("CreatePlan")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceUpdatePlanHandler := connect.NewUnaryHandler(
+ PlanServiceUpdatePlanProcedure,
+ svc.UpdatePlan,
+ connect.WithSchema(planServiceMethods.ByName("UpdatePlan")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceListPlanCheckRunsHandler := connect.NewUnaryHandler(
+ PlanServiceListPlanCheckRunsProcedure,
+ svc.ListPlanCheckRuns,
+ connect.WithSchema(planServiceMethods.ByName("ListPlanCheckRuns")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceRunPlanChecksHandler := connect.NewUnaryHandler(
+ PlanServiceRunPlanChecksProcedure,
+ svc.RunPlanChecks,
+ connect.WithSchema(planServiceMethods.ByName("RunPlanChecks")),
+ connect.WithHandlerOptions(opts...),
+ )
+ planServiceBatchCancelPlanCheckRunsHandler := connect.NewUnaryHandler(
+ PlanServiceBatchCancelPlanCheckRunsProcedure,
+ svc.BatchCancelPlanCheckRuns,
+ connect.WithSchema(planServiceMethods.ByName("BatchCancelPlanCheckRuns")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.PlanService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case PlanServiceGetPlanProcedure:
+ planServiceGetPlanHandler.ServeHTTP(w, r)
+ case PlanServiceListPlansProcedure:
+ planServiceListPlansHandler.ServeHTTP(w, r)
+ case PlanServiceSearchPlansProcedure:
+ planServiceSearchPlansHandler.ServeHTTP(w, r)
+ case PlanServiceCreatePlanProcedure:
+ planServiceCreatePlanHandler.ServeHTTP(w, r)
+ case PlanServiceUpdatePlanProcedure:
+ planServiceUpdatePlanHandler.ServeHTTP(w, r)
+ case PlanServiceListPlanCheckRunsProcedure:
+ planServiceListPlanCheckRunsHandler.ServeHTTP(w, r)
+ case PlanServiceRunPlanChecksProcedure:
+ planServiceRunPlanChecksHandler.ServeHTTP(w, r)
+ case PlanServiceBatchCancelPlanCheckRunsProcedure:
+ planServiceBatchCancelPlanCheckRunsHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedPlanServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedPlanServiceHandler struct{}
+
+func (UnimplementedPlanServiceHandler) GetPlan(context.Context, *connect.Request[v1.GetPlanRequest]) (*connect.Response[v1.Plan], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.GetPlan is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) ListPlans(context.Context, *connect.Request[v1.ListPlansRequest]) (*connect.Response[v1.ListPlansResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.ListPlans is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) SearchPlans(context.Context, *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.SearchPlans is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) CreatePlan(context.Context, *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.CreatePlan is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) UpdatePlan(context.Context, *connect.Request[v1.UpdatePlanRequest]) (*connect.Response[v1.Plan], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.UpdatePlan is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) ListPlanCheckRuns(context.Context, *connect.Request[v1.ListPlanCheckRunsRequest]) (*connect.Response[v1.ListPlanCheckRunsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.ListPlanCheckRuns is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) RunPlanChecks(context.Context, *connect.Request[v1.RunPlanChecksRequest]) (*connect.Response[v1.RunPlanChecksResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.RunPlanChecks is not implemented"))
+}
+
+func (UnimplementedPlanServiceHandler) BatchCancelPlanCheckRuns(context.Context, *connect.Request[v1.BatchCancelPlanCheckRunsRequest]) (*connect.Response[v1.BatchCancelPlanCheckRunsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.BatchCancelPlanCheckRuns is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/project_service.connect.go b/proto/generated-go/v1/v1connect/project_service.connect.go
new file mode 100644
index 0000000000..11b99628b5
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/project_service.connect.go
@@ -0,0 +1,489 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/project_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // ProjectServiceName is the fully-qualified name of the ProjectService service.
+ ProjectServiceName = "bytebase.v1.ProjectService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // ProjectServiceGetProjectProcedure is the fully-qualified name of the ProjectService's GetProject
+ // RPC.
+ ProjectServiceGetProjectProcedure = "/bytebase.v1.ProjectService/GetProject"
+ // ProjectServiceListProjectsProcedure is the fully-qualified name of the ProjectService's
+ // ListProjects RPC.
+ ProjectServiceListProjectsProcedure = "/bytebase.v1.ProjectService/ListProjects"
+ // ProjectServiceSearchProjectsProcedure is the fully-qualified name of the ProjectService's
+ // SearchProjects RPC.
+ ProjectServiceSearchProjectsProcedure = "/bytebase.v1.ProjectService/SearchProjects"
+ // ProjectServiceCreateProjectProcedure is the fully-qualified name of the ProjectService's
+ // CreateProject RPC.
+ ProjectServiceCreateProjectProcedure = "/bytebase.v1.ProjectService/CreateProject"
+ // ProjectServiceUpdateProjectProcedure is the fully-qualified name of the ProjectService's
+ // UpdateProject RPC.
+ ProjectServiceUpdateProjectProcedure = "/bytebase.v1.ProjectService/UpdateProject"
+ // ProjectServiceDeleteProjectProcedure is the fully-qualified name of the ProjectService's
+ // DeleteProject RPC.
+ ProjectServiceDeleteProjectProcedure = "/bytebase.v1.ProjectService/DeleteProject"
+ // ProjectServiceUndeleteProjectProcedure is the fully-qualified name of the ProjectService's
+ // UndeleteProject RPC.
+ ProjectServiceUndeleteProjectProcedure = "/bytebase.v1.ProjectService/UndeleteProject"
+ // ProjectServiceGetIamPolicyProcedure is the fully-qualified name of the ProjectService's
+ // GetIamPolicy RPC.
+ ProjectServiceGetIamPolicyProcedure = "/bytebase.v1.ProjectService/GetIamPolicy"
+ // ProjectServiceBatchGetIamPolicyProcedure is the fully-qualified name of the ProjectService's
+ // BatchGetIamPolicy RPC.
+ ProjectServiceBatchGetIamPolicyProcedure = "/bytebase.v1.ProjectService/BatchGetIamPolicy"
+ // ProjectServiceSetIamPolicyProcedure is the fully-qualified name of the ProjectService's
+ // SetIamPolicy RPC.
+ ProjectServiceSetIamPolicyProcedure = "/bytebase.v1.ProjectService/SetIamPolicy"
+ // ProjectServiceAddWebhookProcedure is the fully-qualified name of the ProjectService's AddWebhook
+ // RPC.
+ ProjectServiceAddWebhookProcedure = "/bytebase.v1.ProjectService/AddWebhook"
+ // ProjectServiceUpdateWebhookProcedure is the fully-qualified name of the ProjectService's
+ // UpdateWebhook RPC.
+ ProjectServiceUpdateWebhookProcedure = "/bytebase.v1.ProjectService/UpdateWebhook"
+ // ProjectServiceRemoveWebhookProcedure is the fully-qualified name of the ProjectService's
+ // RemoveWebhook RPC.
+ ProjectServiceRemoveWebhookProcedure = "/bytebase.v1.ProjectService/RemoveWebhook"
+ // ProjectServiceTestWebhookProcedure is the fully-qualified name of the ProjectService's
+ // TestWebhook RPC.
+ ProjectServiceTestWebhookProcedure = "/bytebase.v1.ProjectService/TestWebhook"
+)
+
+// ProjectServiceClient is a client for the bytebase.v1.ProjectService service.
+type ProjectServiceClient interface {
+ GetProject(context.Context, *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error)
+ ListProjects(context.Context, *connect.Request[v1.ListProjectsRequest]) (*connect.Response[v1.ListProjectsResponse], error)
+ SearchProjects(context.Context, *connect.Request[v1.SearchProjectsRequest]) (*connect.Response[v1.SearchProjectsResponse], error)
+ CreateProject(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error)
+ UpdateProject(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error)
+ DeleteProject(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[emptypb.Empty], error)
+ UndeleteProject(context.Context, *connect.Request[v1.UndeleteProjectRequest]) (*connect.Response[v1.Project], error)
+ GetIamPolicy(context.Context, *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+ // Deprecated.
+ BatchGetIamPolicy(context.Context, *connect.Request[v1.BatchGetIamPolicyRequest]) (*connect.Response[v1.BatchGetIamPolicyResponse], error)
+ SetIamPolicy(context.Context, *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+ AddWebhook(context.Context, *connect.Request[v1.AddWebhookRequest]) (*connect.Response[v1.Project], error)
+ UpdateWebhook(context.Context, *connect.Request[v1.UpdateWebhookRequest]) (*connect.Response[v1.Project], error)
+ RemoveWebhook(context.Context, *connect.Request[v1.RemoveWebhookRequest]) (*connect.Response[v1.Project], error)
+ TestWebhook(context.Context, *connect.Request[v1.TestWebhookRequest]) (*connect.Response[v1.TestWebhookResponse], error)
+}
+
+// NewProjectServiceClient constructs a client for the bytebase.v1.ProjectService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewProjectServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProjectServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ projectServiceMethods := v1.File_v1_project_service_proto.Services().ByName("ProjectService").Methods()
+ return &projectServiceClient{
+ getProject: connect.NewClient[v1.GetProjectRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceGetProjectProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("GetProject")),
+ connect.WithClientOptions(opts...),
+ ),
+ listProjects: connect.NewClient[v1.ListProjectsRequest, v1.ListProjectsResponse](
+ httpClient,
+ baseURL+ProjectServiceListProjectsProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("ListProjects")),
+ connect.WithClientOptions(opts...),
+ ),
+ searchProjects: connect.NewClient[v1.SearchProjectsRequest, v1.SearchProjectsResponse](
+ httpClient,
+ baseURL+ProjectServiceSearchProjectsProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("SearchProjects")),
+ connect.WithClientOptions(opts...),
+ ),
+ createProject: connect.NewClient[v1.CreateProjectRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceCreateProjectProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("CreateProject")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateProject: connect.NewClient[v1.UpdateProjectRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceUpdateProjectProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("UpdateProject")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteProject: connect.NewClient[v1.DeleteProjectRequest, emptypb.Empty](
+ httpClient,
+ baseURL+ProjectServiceDeleteProjectProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("DeleteProject")),
+ connect.WithClientOptions(opts...),
+ ),
+ undeleteProject: connect.NewClient[v1.UndeleteProjectRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceUndeleteProjectProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("UndeleteProject")),
+ connect.WithClientOptions(opts...),
+ ),
+ getIamPolicy: connect.NewClient[v1.GetIamPolicyRequest, v1.IamPolicy](
+ httpClient,
+ baseURL+ProjectServiceGetIamPolicyProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("GetIamPolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchGetIamPolicy: connect.NewClient[v1.BatchGetIamPolicyRequest, v1.BatchGetIamPolicyResponse](
+ httpClient,
+ baseURL+ProjectServiceBatchGetIamPolicyProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("BatchGetIamPolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ setIamPolicy: connect.NewClient[v1.SetIamPolicyRequest, v1.IamPolicy](
+ httpClient,
+ baseURL+ProjectServiceSetIamPolicyProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("SetIamPolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ addWebhook: connect.NewClient[v1.AddWebhookRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceAddWebhookProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("AddWebhook")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateWebhook: connect.NewClient[v1.UpdateWebhookRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceUpdateWebhookProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("UpdateWebhook")),
+ connect.WithClientOptions(opts...),
+ ),
+ removeWebhook: connect.NewClient[v1.RemoveWebhookRequest, v1.Project](
+ httpClient,
+ baseURL+ProjectServiceRemoveWebhookProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("RemoveWebhook")),
+ connect.WithClientOptions(opts...),
+ ),
+ testWebhook: connect.NewClient[v1.TestWebhookRequest, v1.TestWebhookResponse](
+ httpClient,
+ baseURL+ProjectServiceTestWebhookProcedure,
+ connect.WithSchema(projectServiceMethods.ByName("TestWebhook")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// projectServiceClient implements ProjectServiceClient.
+type projectServiceClient struct {
+ getProject *connect.Client[v1.GetProjectRequest, v1.Project]
+ listProjects *connect.Client[v1.ListProjectsRequest, v1.ListProjectsResponse]
+ searchProjects *connect.Client[v1.SearchProjectsRequest, v1.SearchProjectsResponse]
+ createProject *connect.Client[v1.CreateProjectRequest, v1.Project]
+ updateProject *connect.Client[v1.UpdateProjectRequest, v1.Project]
+ deleteProject *connect.Client[v1.DeleteProjectRequest, emptypb.Empty]
+ undeleteProject *connect.Client[v1.UndeleteProjectRequest, v1.Project]
+ getIamPolicy *connect.Client[v1.GetIamPolicyRequest, v1.IamPolicy]
+ batchGetIamPolicy *connect.Client[v1.BatchGetIamPolicyRequest, v1.BatchGetIamPolicyResponse]
+ setIamPolicy *connect.Client[v1.SetIamPolicyRequest, v1.IamPolicy]
+ addWebhook *connect.Client[v1.AddWebhookRequest, v1.Project]
+ updateWebhook *connect.Client[v1.UpdateWebhookRequest, v1.Project]
+ removeWebhook *connect.Client[v1.RemoveWebhookRequest, v1.Project]
+ testWebhook *connect.Client[v1.TestWebhookRequest, v1.TestWebhookResponse]
+}
+
+// GetProject calls bytebase.v1.ProjectService.GetProject.
+func (c *projectServiceClient) GetProject(ctx context.Context, req *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error) {
+ return c.getProject.CallUnary(ctx, req)
+}
+
+// ListProjects calls bytebase.v1.ProjectService.ListProjects.
+func (c *projectServiceClient) ListProjects(ctx context.Context, req *connect.Request[v1.ListProjectsRequest]) (*connect.Response[v1.ListProjectsResponse], error) {
+ return c.listProjects.CallUnary(ctx, req)
+}
+
+// SearchProjects calls bytebase.v1.ProjectService.SearchProjects.
+func (c *projectServiceClient) SearchProjects(ctx context.Context, req *connect.Request[v1.SearchProjectsRequest]) (*connect.Response[v1.SearchProjectsResponse], error) {
+ return c.searchProjects.CallUnary(ctx, req)
+}
+
+// CreateProject calls bytebase.v1.ProjectService.CreateProject.
+func (c *projectServiceClient) CreateProject(ctx context.Context, req *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error) {
+ return c.createProject.CallUnary(ctx, req)
+}
+
+// UpdateProject calls bytebase.v1.ProjectService.UpdateProject.
+func (c *projectServiceClient) UpdateProject(ctx context.Context, req *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error) {
+ return c.updateProject.CallUnary(ctx, req)
+}
+
+// DeleteProject calls bytebase.v1.ProjectService.DeleteProject.
+func (c *projectServiceClient) DeleteProject(ctx context.Context, req *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteProject.CallUnary(ctx, req)
+}
+
+// UndeleteProject calls bytebase.v1.ProjectService.UndeleteProject.
+func (c *projectServiceClient) UndeleteProject(ctx context.Context, req *connect.Request[v1.UndeleteProjectRequest]) (*connect.Response[v1.Project], error) {
+ return c.undeleteProject.CallUnary(ctx, req)
+}
+
+// GetIamPolicy calls bytebase.v1.ProjectService.GetIamPolicy.
+func (c *projectServiceClient) GetIamPolicy(ctx context.Context, req *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return c.getIamPolicy.CallUnary(ctx, req)
+}
+
+// BatchGetIamPolicy calls bytebase.v1.ProjectService.BatchGetIamPolicy.
+func (c *projectServiceClient) BatchGetIamPolicy(ctx context.Context, req *connect.Request[v1.BatchGetIamPolicyRequest]) (*connect.Response[v1.BatchGetIamPolicyResponse], error) {
+ return c.batchGetIamPolicy.CallUnary(ctx, req)
+}
+
+// SetIamPolicy calls bytebase.v1.ProjectService.SetIamPolicy.
+func (c *projectServiceClient) SetIamPolicy(ctx context.Context, req *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return c.setIamPolicy.CallUnary(ctx, req)
+}
+
+// AddWebhook calls bytebase.v1.ProjectService.AddWebhook.
+func (c *projectServiceClient) AddWebhook(ctx context.Context, req *connect.Request[v1.AddWebhookRequest]) (*connect.Response[v1.Project], error) {
+ return c.addWebhook.CallUnary(ctx, req)
+}
+
+// UpdateWebhook calls bytebase.v1.ProjectService.UpdateWebhook.
+func (c *projectServiceClient) UpdateWebhook(ctx context.Context, req *connect.Request[v1.UpdateWebhookRequest]) (*connect.Response[v1.Project], error) {
+ return c.updateWebhook.CallUnary(ctx, req)
+}
+
+// RemoveWebhook calls bytebase.v1.ProjectService.RemoveWebhook.
+func (c *projectServiceClient) RemoveWebhook(ctx context.Context, req *connect.Request[v1.RemoveWebhookRequest]) (*connect.Response[v1.Project], error) {
+ return c.removeWebhook.CallUnary(ctx, req)
+}
+
+// TestWebhook calls bytebase.v1.ProjectService.TestWebhook.
+func (c *projectServiceClient) TestWebhook(ctx context.Context, req *connect.Request[v1.TestWebhookRequest]) (*connect.Response[v1.TestWebhookResponse], error) {
+ return c.testWebhook.CallUnary(ctx, req)
+}
+
+// ProjectServiceHandler is an implementation of the bytebase.v1.ProjectService service.
+type ProjectServiceHandler interface {
+ GetProject(context.Context, *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error)
+ ListProjects(context.Context, *connect.Request[v1.ListProjectsRequest]) (*connect.Response[v1.ListProjectsResponse], error)
+ SearchProjects(context.Context, *connect.Request[v1.SearchProjectsRequest]) (*connect.Response[v1.SearchProjectsResponse], error)
+ CreateProject(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error)
+ UpdateProject(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error)
+ DeleteProject(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[emptypb.Empty], error)
+ UndeleteProject(context.Context, *connect.Request[v1.UndeleteProjectRequest]) (*connect.Response[v1.Project], error)
+ GetIamPolicy(context.Context, *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+ // Deprecated.
+ BatchGetIamPolicy(context.Context, *connect.Request[v1.BatchGetIamPolicyRequest]) (*connect.Response[v1.BatchGetIamPolicyResponse], error)
+ SetIamPolicy(context.Context, *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+ AddWebhook(context.Context, *connect.Request[v1.AddWebhookRequest]) (*connect.Response[v1.Project], error)
+ UpdateWebhook(context.Context, *connect.Request[v1.UpdateWebhookRequest]) (*connect.Response[v1.Project], error)
+ RemoveWebhook(context.Context, *connect.Request[v1.RemoveWebhookRequest]) (*connect.Response[v1.Project], error)
+ TestWebhook(context.Context, *connect.Request[v1.TestWebhookRequest]) (*connect.Response[v1.TestWebhookResponse], error)
+}
+
+// NewProjectServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ projectServiceMethods := v1.File_v1_project_service_proto.Services().ByName("ProjectService").Methods()
+ projectServiceGetProjectHandler := connect.NewUnaryHandler(
+ ProjectServiceGetProjectProcedure,
+ svc.GetProject,
+ connect.WithSchema(projectServiceMethods.ByName("GetProject")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceListProjectsHandler := connect.NewUnaryHandler(
+ ProjectServiceListProjectsProcedure,
+ svc.ListProjects,
+ connect.WithSchema(projectServiceMethods.ByName("ListProjects")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceSearchProjectsHandler := connect.NewUnaryHandler(
+ ProjectServiceSearchProjectsProcedure,
+ svc.SearchProjects,
+ connect.WithSchema(projectServiceMethods.ByName("SearchProjects")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceCreateProjectHandler := connect.NewUnaryHandler(
+ ProjectServiceCreateProjectProcedure,
+ svc.CreateProject,
+ connect.WithSchema(projectServiceMethods.ByName("CreateProject")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceUpdateProjectHandler := connect.NewUnaryHandler(
+ ProjectServiceUpdateProjectProcedure,
+ svc.UpdateProject,
+ connect.WithSchema(projectServiceMethods.ByName("UpdateProject")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceDeleteProjectHandler := connect.NewUnaryHandler(
+ ProjectServiceDeleteProjectProcedure,
+ svc.DeleteProject,
+ connect.WithSchema(projectServiceMethods.ByName("DeleteProject")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceUndeleteProjectHandler := connect.NewUnaryHandler(
+ ProjectServiceUndeleteProjectProcedure,
+ svc.UndeleteProject,
+ connect.WithSchema(projectServiceMethods.ByName("UndeleteProject")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceGetIamPolicyHandler := connect.NewUnaryHandler(
+ ProjectServiceGetIamPolicyProcedure,
+ svc.GetIamPolicy,
+ connect.WithSchema(projectServiceMethods.ByName("GetIamPolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceBatchGetIamPolicyHandler := connect.NewUnaryHandler(
+ ProjectServiceBatchGetIamPolicyProcedure,
+ svc.BatchGetIamPolicy,
+ connect.WithSchema(projectServiceMethods.ByName("BatchGetIamPolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceSetIamPolicyHandler := connect.NewUnaryHandler(
+ ProjectServiceSetIamPolicyProcedure,
+ svc.SetIamPolicy,
+ connect.WithSchema(projectServiceMethods.ByName("SetIamPolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceAddWebhookHandler := connect.NewUnaryHandler(
+ ProjectServiceAddWebhookProcedure,
+ svc.AddWebhook,
+ connect.WithSchema(projectServiceMethods.ByName("AddWebhook")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceUpdateWebhookHandler := connect.NewUnaryHandler(
+ ProjectServiceUpdateWebhookProcedure,
+ svc.UpdateWebhook,
+ connect.WithSchema(projectServiceMethods.ByName("UpdateWebhook")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceRemoveWebhookHandler := connect.NewUnaryHandler(
+ ProjectServiceRemoveWebhookProcedure,
+ svc.RemoveWebhook,
+ connect.WithSchema(projectServiceMethods.ByName("RemoveWebhook")),
+ connect.WithHandlerOptions(opts...),
+ )
+ projectServiceTestWebhookHandler := connect.NewUnaryHandler(
+ ProjectServiceTestWebhookProcedure,
+ svc.TestWebhook,
+ connect.WithSchema(projectServiceMethods.ByName("TestWebhook")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.ProjectService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case ProjectServiceGetProjectProcedure:
+ projectServiceGetProjectHandler.ServeHTTP(w, r)
+ case ProjectServiceListProjectsProcedure:
+ projectServiceListProjectsHandler.ServeHTTP(w, r)
+ case ProjectServiceSearchProjectsProcedure:
+ projectServiceSearchProjectsHandler.ServeHTTP(w, r)
+ case ProjectServiceCreateProjectProcedure:
+ projectServiceCreateProjectHandler.ServeHTTP(w, r)
+ case ProjectServiceUpdateProjectProcedure:
+ projectServiceUpdateProjectHandler.ServeHTTP(w, r)
+ case ProjectServiceDeleteProjectProcedure:
+ projectServiceDeleteProjectHandler.ServeHTTP(w, r)
+ case ProjectServiceUndeleteProjectProcedure:
+ projectServiceUndeleteProjectHandler.ServeHTTP(w, r)
+ case ProjectServiceGetIamPolicyProcedure:
+ projectServiceGetIamPolicyHandler.ServeHTTP(w, r)
+ case ProjectServiceBatchGetIamPolicyProcedure:
+ projectServiceBatchGetIamPolicyHandler.ServeHTTP(w, r)
+ case ProjectServiceSetIamPolicyProcedure:
+ projectServiceSetIamPolicyHandler.ServeHTTP(w, r)
+ case ProjectServiceAddWebhookProcedure:
+ projectServiceAddWebhookHandler.ServeHTTP(w, r)
+ case ProjectServiceUpdateWebhookProcedure:
+ projectServiceUpdateWebhookHandler.ServeHTTP(w, r)
+ case ProjectServiceRemoveWebhookProcedure:
+ projectServiceRemoveWebhookHandler.ServeHTTP(w, r)
+ case ProjectServiceTestWebhookProcedure:
+ projectServiceTestWebhookHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedProjectServiceHandler struct{}
+
+func (UnimplementedProjectServiceHandler) GetProject(context.Context, *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.GetProject is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) ListProjects(context.Context, *connect.Request[v1.ListProjectsRequest]) (*connect.Response[v1.ListProjectsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.ListProjects is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) SearchProjects(context.Context, *connect.Request[v1.SearchProjectsRequest]) (*connect.Response[v1.SearchProjectsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.SearchProjects is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) CreateProject(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.CreateProject is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) UpdateProject(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.UpdateProject is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) DeleteProject(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.DeleteProject is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) UndeleteProject(context.Context, *connect.Request[v1.UndeleteProjectRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.UndeleteProject is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) GetIamPolicy(context.Context, *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.GetIamPolicy is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) BatchGetIamPolicy(context.Context, *connect.Request[v1.BatchGetIamPolicyRequest]) (*connect.Response[v1.BatchGetIamPolicyResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.BatchGetIamPolicy is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) SetIamPolicy(context.Context, *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.SetIamPolicy is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) AddWebhook(context.Context, *connect.Request[v1.AddWebhookRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.AddWebhook is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) UpdateWebhook(context.Context, *connect.Request[v1.UpdateWebhookRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.UpdateWebhook is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) RemoveWebhook(context.Context, *connect.Request[v1.RemoveWebhookRequest]) (*connect.Response[v1.Project], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.RemoveWebhook is not implemented"))
+}
+
+func (UnimplementedProjectServiceHandler) TestWebhook(context.Context, *connect.Request[v1.TestWebhookRequest]) (*connect.Response[v1.TestWebhookResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ProjectService.TestWebhook is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/release_service.connect.go b/proto/generated-go/v1/v1connect/release_service.connect.go
new file mode 100644
index 0000000000..26e44c103c
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/release_service.connect.go
@@ -0,0 +1,284 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/release_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // ReleaseServiceName is the fully-qualified name of the ReleaseService service.
+ ReleaseServiceName = "bytebase.v1.ReleaseService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // ReleaseServiceGetReleaseProcedure is the fully-qualified name of the ReleaseService's GetRelease
+ // RPC.
+ ReleaseServiceGetReleaseProcedure = "/bytebase.v1.ReleaseService/GetRelease"
+ // ReleaseServiceListReleasesProcedure is the fully-qualified name of the ReleaseService's
+ // ListReleases RPC.
+ ReleaseServiceListReleasesProcedure = "/bytebase.v1.ReleaseService/ListReleases"
+ // ReleaseServiceCreateReleaseProcedure is the fully-qualified name of the ReleaseService's
+ // CreateRelease RPC.
+ ReleaseServiceCreateReleaseProcedure = "/bytebase.v1.ReleaseService/CreateRelease"
+ // ReleaseServiceUpdateReleaseProcedure is the fully-qualified name of the ReleaseService's
+ // UpdateRelease RPC.
+ ReleaseServiceUpdateReleaseProcedure = "/bytebase.v1.ReleaseService/UpdateRelease"
+ // ReleaseServiceDeleteReleaseProcedure is the fully-qualified name of the ReleaseService's
+ // DeleteRelease RPC.
+ ReleaseServiceDeleteReleaseProcedure = "/bytebase.v1.ReleaseService/DeleteRelease"
+ // ReleaseServiceUndeleteReleaseProcedure is the fully-qualified name of the ReleaseService's
+ // UndeleteRelease RPC.
+ ReleaseServiceUndeleteReleaseProcedure = "/bytebase.v1.ReleaseService/UndeleteRelease"
+ // ReleaseServiceCheckReleaseProcedure is the fully-qualified name of the ReleaseService's
+ // CheckRelease RPC.
+ ReleaseServiceCheckReleaseProcedure = "/bytebase.v1.ReleaseService/CheckRelease"
+)
+
+// ReleaseServiceClient is a client for the bytebase.v1.ReleaseService service.
+type ReleaseServiceClient interface {
+ GetRelease(context.Context, *connect.Request[v1.GetReleaseRequest]) (*connect.Response[v1.Release], error)
+ ListReleases(context.Context, *connect.Request[v1.ListReleasesRequest]) (*connect.Response[v1.ListReleasesResponse], error)
+ CreateRelease(context.Context, *connect.Request[v1.CreateReleaseRequest]) (*connect.Response[v1.Release], error)
+ UpdateRelease(context.Context, *connect.Request[v1.UpdateReleaseRequest]) (*connect.Response[v1.Release], error)
+ DeleteRelease(context.Context, *connect.Request[v1.DeleteReleaseRequest]) (*connect.Response[emptypb.Empty], error)
+ UndeleteRelease(context.Context, *connect.Request[v1.UndeleteReleaseRequest]) (*connect.Response[v1.Release], error)
+ CheckRelease(context.Context, *connect.Request[v1.CheckReleaseRequest]) (*connect.Response[v1.CheckReleaseResponse], error)
+}
+
+// NewReleaseServiceClient constructs a client for the bytebase.v1.ReleaseService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewReleaseServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ReleaseServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ releaseServiceMethods := v1.File_v1_release_service_proto.Services().ByName("ReleaseService").Methods()
+ return &releaseServiceClient{
+ getRelease: connect.NewClient[v1.GetReleaseRequest, v1.Release](
+ httpClient,
+ baseURL+ReleaseServiceGetReleaseProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("GetRelease")),
+ connect.WithClientOptions(opts...),
+ ),
+ listReleases: connect.NewClient[v1.ListReleasesRequest, v1.ListReleasesResponse](
+ httpClient,
+ baseURL+ReleaseServiceListReleasesProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("ListReleases")),
+ connect.WithClientOptions(opts...),
+ ),
+ createRelease: connect.NewClient[v1.CreateReleaseRequest, v1.Release](
+ httpClient,
+ baseURL+ReleaseServiceCreateReleaseProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("CreateRelease")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateRelease: connect.NewClient[v1.UpdateReleaseRequest, v1.Release](
+ httpClient,
+ baseURL+ReleaseServiceUpdateReleaseProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("UpdateRelease")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteRelease: connect.NewClient[v1.DeleteReleaseRequest, emptypb.Empty](
+ httpClient,
+ baseURL+ReleaseServiceDeleteReleaseProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("DeleteRelease")),
+ connect.WithClientOptions(opts...),
+ ),
+ undeleteRelease: connect.NewClient[v1.UndeleteReleaseRequest, v1.Release](
+ httpClient,
+ baseURL+ReleaseServiceUndeleteReleaseProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("UndeleteRelease")),
+ connect.WithClientOptions(opts...),
+ ),
+ checkRelease: connect.NewClient[v1.CheckReleaseRequest, v1.CheckReleaseResponse](
+ httpClient,
+ baseURL+ReleaseServiceCheckReleaseProcedure,
+ connect.WithSchema(releaseServiceMethods.ByName("CheckRelease")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// releaseServiceClient implements ReleaseServiceClient.
+type releaseServiceClient struct {
+ getRelease *connect.Client[v1.GetReleaseRequest, v1.Release]
+ listReleases *connect.Client[v1.ListReleasesRequest, v1.ListReleasesResponse]
+ createRelease *connect.Client[v1.CreateReleaseRequest, v1.Release]
+ updateRelease *connect.Client[v1.UpdateReleaseRequest, v1.Release]
+ deleteRelease *connect.Client[v1.DeleteReleaseRequest, emptypb.Empty]
+ undeleteRelease *connect.Client[v1.UndeleteReleaseRequest, v1.Release]
+ checkRelease *connect.Client[v1.CheckReleaseRequest, v1.CheckReleaseResponse]
+}
+
+// GetRelease calls bytebase.v1.ReleaseService.GetRelease.
+func (c *releaseServiceClient) GetRelease(ctx context.Context, req *connect.Request[v1.GetReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return c.getRelease.CallUnary(ctx, req)
+}
+
+// ListReleases calls bytebase.v1.ReleaseService.ListReleases.
+func (c *releaseServiceClient) ListReleases(ctx context.Context, req *connect.Request[v1.ListReleasesRequest]) (*connect.Response[v1.ListReleasesResponse], error) {
+ return c.listReleases.CallUnary(ctx, req)
+}
+
+// CreateRelease calls bytebase.v1.ReleaseService.CreateRelease.
+func (c *releaseServiceClient) CreateRelease(ctx context.Context, req *connect.Request[v1.CreateReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return c.createRelease.CallUnary(ctx, req)
+}
+
+// UpdateRelease calls bytebase.v1.ReleaseService.UpdateRelease.
+func (c *releaseServiceClient) UpdateRelease(ctx context.Context, req *connect.Request[v1.UpdateReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return c.updateRelease.CallUnary(ctx, req)
+}
+
+// DeleteRelease calls bytebase.v1.ReleaseService.DeleteRelease.
+func (c *releaseServiceClient) DeleteRelease(ctx context.Context, req *connect.Request[v1.DeleteReleaseRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteRelease.CallUnary(ctx, req)
+}
+
+// UndeleteRelease calls bytebase.v1.ReleaseService.UndeleteRelease.
+func (c *releaseServiceClient) UndeleteRelease(ctx context.Context, req *connect.Request[v1.UndeleteReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return c.undeleteRelease.CallUnary(ctx, req)
+}
+
+// CheckRelease calls bytebase.v1.ReleaseService.CheckRelease.
+func (c *releaseServiceClient) CheckRelease(ctx context.Context, req *connect.Request[v1.CheckReleaseRequest]) (*connect.Response[v1.CheckReleaseResponse], error) {
+ return c.checkRelease.CallUnary(ctx, req)
+}
+
+// ReleaseServiceHandler is an implementation of the bytebase.v1.ReleaseService service.
+type ReleaseServiceHandler interface {
+ GetRelease(context.Context, *connect.Request[v1.GetReleaseRequest]) (*connect.Response[v1.Release], error)
+ ListReleases(context.Context, *connect.Request[v1.ListReleasesRequest]) (*connect.Response[v1.ListReleasesResponse], error)
+ CreateRelease(context.Context, *connect.Request[v1.CreateReleaseRequest]) (*connect.Response[v1.Release], error)
+ UpdateRelease(context.Context, *connect.Request[v1.UpdateReleaseRequest]) (*connect.Response[v1.Release], error)
+ DeleteRelease(context.Context, *connect.Request[v1.DeleteReleaseRequest]) (*connect.Response[emptypb.Empty], error)
+ UndeleteRelease(context.Context, *connect.Request[v1.UndeleteReleaseRequest]) (*connect.Response[v1.Release], error)
+ CheckRelease(context.Context, *connect.Request[v1.CheckReleaseRequest]) (*connect.Response[v1.CheckReleaseResponse], error)
+}
+
+// NewReleaseServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewReleaseServiceHandler(svc ReleaseServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ releaseServiceMethods := v1.File_v1_release_service_proto.Services().ByName("ReleaseService").Methods()
+ releaseServiceGetReleaseHandler := connect.NewUnaryHandler(
+ ReleaseServiceGetReleaseProcedure,
+ svc.GetRelease,
+ connect.WithSchema(releaseServiceMethods.ByName("GetRelease")),
+ connect.WithHandlerOptions(opts...),
+ )
+ releaseServiceListReleasesHandler := connect.NewUnaryHandler(
+ ReleaseServiceListReleasesProcedure,
+ svc.ListReleases,
+ connect.WithSchema(releaseServiceMethods.ByName("ListReleases")),
+ connect.WithHandlerOptions(opts...),
+ )
+ releaseServiceCreateReleaseHandler := connect.NewUnaryHandler(
+ ReleaseServiceCreateReleaseProcedure,
+ svc.CreateRelease,
+ connect.WithSchema(releaseServiceMethods.ByName("CreateRelease")),
+ connect.WithHandlerOptions(opts...),
+ )
+ releaseServiceUpdateReleaseHandler := connect.NewUnaryHandler(
+ ReleaseServiceUpdateReleaseProcedure,
+ svc.UpdateRelease,
+ connect.WithSchema(releaseServiceMethods.ByName("UpdateRelease")),
+ connect.WithHandlerOptions(opts...),
+ )
+ releaseServiceDeleteReleaseHandler := connect.NewUnaryHandler(
+ ReleaseServiceDeleteReleaseProcedure,
+ svc.DeleteRelease,
+ connect.WithSchema(releaseServiceMethods.ByName("DeleteRelease")),
+ connect.WithHandlerOptions(opts...),
+ )
+ releaseServiceUndeleteReleaseHandler := connect.NewUnaryHandler(
+ ReleaseServiceUndeleteReleaseProcedure,
+ svc.UndeleteRelease,
+ connect.WithSchema(releaseServiceMethods.ByName("UndeleteRelease")),
+ connect.WithHandlerOptions(opts...),
+ )
+ releaseServiceCheckReleaseHandler := connect.NewUnaryHandler(
+ ReleaseServiceCheckReleaseProcedure,
+ svc.CheckRelease,
+ connect.WithSchema(releaseServiceMethods.ByName("CheckRelease")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.ReleaseService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case ReleaseServiceGetReleaseProcedure:
+ releaseServiceGetReleaseHandler.ServeHTTP(w, r)
+ case ReleaseServiceListReleasesProcedure:
+ releaseServiceListReleasesHandler.ServeHTTP(w, r)
+ case ReleaseServiceCreateReleaseProcedure:
+ releaseServiceCreateReleaseHandler.ServeHTTP(w, r)
+ case ReleaseServiceUpdateReleaseProcedure:
+ releaseServiceUpdateReleaseHandler.ServeHTTP(w, r)
+ case ReleaseServiceDeleteReleaseProcedure:
+ releaseServiceDeleteReleaseHandler.ServeHTTP(w, r)
+ case ReleaseServiceUndeleteReleaseProcedure:
+ releaseServiceUndeleteReleaseHandler.ServeHTTP(w, r)
+ case ReleaseServiceCheckReleaseProcedure:
+ releaseServiceCheckReleaseHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedReleaseServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedReleaseServiceHandler struct{}
+
+func (UnimplementedReleaseServiceHandler) GetRelease(context.Context, *connect.Request[v1.GetReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.GetRelease is not implemented"))
+}
+
+func (UnimplementedReleaseServiceHandler) ListReleases(context.Context, *connect.Request[v1.ListReleasesRequest]) (*connect.Response[v1.ListReleasesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.ListReleases is not implemented"))
+}
+
+func (UnimplementedReleaseServiceHandler) CreateRelease(context.Context, *connect.Request[v1.CreateReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.CreateRelease is not implemented"))
+}
+
+func (UnimplementedReleaseServiceHandler) UpdateRelease(context.Context, *connect.Request[v1.UpdateReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.UpdateRelease is not implemented"))
+}
+
+func (UnimplementedReleaseServiceHandler) DeleteRelease(context.Context, *connect.Request[v1.DeleteReleaseRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.DeleteRelease is not implemented"))
+}
+
+func (UnimplementedReleaseServiceHandler) UndeleteRelease(context.Context, *connect.Request[v1.UndeleteReleaseRequest]) (*connect.Response[v1.Release], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.UndeleteRelease is not implemented"))
+}
+
+func (UnimplementedReleaseServiceHandler) CheckRelease(context.Context, *connect.Request[v1.CheckReleaseRequest]) (*connect.Response[v1.CheckReleaseResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReleaseService.CheckRelease is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/review_config_service.connect.go b/proto/generated-go/v1/v1connect/review_config_service.connect.go
new file mode 100644
index 0000000000..b91034edda
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/review_config_service.connect.go
@@ -0,0 +1,226 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/review_config_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // ReviewConfigServiceName is the fully-qualified name of the ReviewConfigService service.
+ ReviewConfigServiceName = "bytebase.v1.ReviewConfigService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // ReviewConfigServiceCreateReviewConfigProcedure is the fully-qualified name of the
+ // ReviewConfigService's CreateReviewConfig RPC.
+ ReviewConfigServiceCreateReviewConfigProcedure = "/bytebase.v1.ReviewConfigService/CreateReviewConfig"
+ // ReviewConfigServiceListReviewConfigsProcedure is the fully-qualified name of the
+ // ReviewConfigService's ListReviewConfigs RPC.
+ ReviewConfigServiceListReviewConfigsProcedure = "/bytebase.v1.ReviewConfigService/ListReviewConfigs"
+ // ReviewConfigServiceGetReviewConfigProcedure is the fully-qualified name of the
+ // ReviewConfigService's GetReviewConfig RPC.
+ ReviewConfigServiceGetReviewConfigProcedure = "/bytebase.v1.ReviewConfigService/GetReviewConfig"
+ // ReviewConfigServiceUpdateReviewConfigProcedure is the fully-qualified name of the
+ // ReviewConfigService's UpdateReviewConfig RPC.
+ ReviewConfigServiceUpdateReviewConfigProcedure = "/bytebase.v1.ReviewConfigService/UpdateReviewConfig"
+ // ReviewConfigServiceDeleteReviewConfigProcedure is the fully-qualified name of the
+ // ReviewConfigService's DeleteReviewConfig RPC.
+ ReviewConfigServiceDeleteReviewConfigProcedure = "/bytebase.v1.ReviewConfigService/DeleteReviewConfig"
+)
+
+// ReviewConfigServiceClient is a client for the bytebase.v1.ReviewConfigService service.
+type ReviewConfigServiceClient interface {
+ CreateReviewConfig(context.Context, *connect.Request[v1.CreateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error)
+ ListReviewConfigs(context.Context, *connect.Request[v1.ListReviewConfigsRequest]) (*connect.Response[v1.ListReviewConfigsResponse], error)
+ GetReviewConfig(context.Context, *connect.Request[v1.GetReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error)
+ UpdateReviewConfig(context.Context, *connect.Request[v1.UpdateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error)
+ DeleteReviewConfig(context.Context, *connect.Request[v1.DeleteReviewConfigRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewReviewConfigServiceClient constructs a client for the bytebase.v1.ReviewConfigService service.
+// By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped
+// responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewReviewConfigServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ReviewConfigServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ reviewConfigServiceMethods := v1.File_v1_review_config_service_proto.Services().ByName("ReviewConfigService").Methods()
+ return &reviewConfigServiceClient{
+ createReviewConfig: connect.NewClient[v1.CreateReviewConfigRequest, v1.ReviewConfig](
+ httpClient,
+ baseURL+ReviewConfigServiceCreateReviewConfigProcedure,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("CreateReviewConfig")),
+ connect.WithClientOptions(opts...),
+ ),
+ listReviewConfigs: connect.NewClient[v1.ListReviewConfigsRequest, v1.ListReviewConfigsResponse](
+ httpClient,
+ baseURL+ReviewConfigServiceListReviewConfigsProcedure,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("ListReviewConfigs")),
+ connect.WithClientOptions(opts...),
+ ),
+ getReviewConfig: connect.NewClient[v1.GetReviewConfigRequest, v1.ReviewConfig](
+ httpClient,
+ baseURL+ReviewConfigServiceGetReviewConfigProcedure,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("GetReviewConfig")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateReviewConfig: connect.NewClient[v1.UpdateReviewConfigRequest, v1.ReviewConfig](
+ httpClient,
+ baseURL+ReviewConfigServiceUpdateReviewConfigProcedure,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("UpdateReviewConfig")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteReviewConfig: connect.NewClient[v1.DeleteReviewConfigRequest, emptypb.Empty](
+ httpClient,
+ baseURL+ReviewConfigServiceDeleteReviewConfigProcedure,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("DeleteReviewConfig")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// reviewConfigServiceClient implements ReviewConfigServiceClient.
+type reviewConfigServiceClient struct {
+ createReviewConfig *connect.Client[v1.CreateReviewConfigRequest, v1.ReviewConfig]
+ listReviewConfigs *connect.Client[v1.ListReviewConfigsRequest, v1.ListReviewConfigsResponse]
+ getReviewConfig *connect.Client[v1.GetReviewConfigRequest, v1.ReviewConfig]
+ updateReviewConfig *connect.Client[v1.UpdateReviewConfigRequest, v1.ReviewConfig]
+ deleteReviewConfig *connect.Client[v1.DeleteReviewConfigRequest, emptypb.Empty]
+}
+
+// CreateReviewConfig calls bytebase.v1.ReviewConfigService.CreateReviewConfig.
+func (c *reviewConfigServiceClient) CreateReviewConfig(ctx context.Context, req *connect.Request[v1.CreateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error) {
+ return c.createReviewConfig.CallUnary(ctx, req)
+}
+
+// ListReviewConfigs calls bytebase.v1.ReviewConfigService.ListReviewConfigs.
+func (c *reviewConfigServiceClient) ListReviewConfigs(ctx context.Context, req *connect.Request[v1.ListReviewConfigsRequest]) (*connect.Response[v1.ListReviewConfigsResponse], error) {
+ return c.listReviewConfigs.CallUnary(ctx, req)
+}
+
+// GetReviewConfig calls bytebase.v1.ReviewConfigService.GetReviewConfig.
+func (c *reviewConfigServiceClient) GetReviewConfig(ctx context.Context, req *connect.Request[v1.GetReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error) {
+ return c.getReviewConfig.CallUnary(ctx, req)
+}
+
+// UpdateReviewConfig calls bytebase.v1.ReviewConfigService.UpdateReviewConfig.
+func (c *reviewConfigServiceClient) UpdateReviewConfig(ctx context.Context, req *connect.Request[v1.UpdateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error) {
+ return c.updateReviewConfig.CallUnary(ctx, req)
+}
+
+// DeleteReviewConfig calls bytebase.v1.ReviewConfigService.DeleteReviewConfig.
+func (c *reviewConfigServiceClient) DeleteReviewConfig(ctx context.Context, req *connect.Request[v1.DeleteReviewConfigRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteReviewConfig.CallUnary(ctx, req)
+}
+
+// ReviewConfigServiceHandler is an implementation of the bytebase.v1.ReviewConfigService service.
+type ReviewConfigServiceHandler interface {
+ CreateReviewConfig(context.Context, *connect.Request[v1.CreateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error)
+ ListReviewConfigs(context.Context, *connect.Request[v1.ListReviewConfigsRequest]) (*connect.Response[v1.ListReviewConfigsResponse], error)
+ GetReviewConfig(context.Context, *connect.Request[v1.GetReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error)
+ UpdateReviewConfig(context.Context, *connect.Request[v1.UpdateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error)
+ DeleteReviewConfig(context.Context, *connect.Request[v1.DeleteReviewConfigRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewReviewConfigServiceHandler builds an HTTP handler from the service implementation. It returns
+// the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewReviewConfigServiceHandler(svc ReviewConfigServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ reviewConfigServiceMethods := v1.File_v1_review_config_service_proto.Services().ByName("ReviewConfigService").Methods()
+ reviewConfigServiceCreateReviewConfigHandler := connect.NewUnaryHandler(
+ ReviewConfigServiceCreateReviewConfigProcedure,
+ svc.CreateReviewConfig,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("CreateReviewConfig")),
+ connect.WithHandlerOptions(opts...),
+ )
+ reviewConfigServiceListReviewConfigsHandler := connect.NewUnaryHandler(
+ ReviewConfigServiceListReviewConfigsProcedure,
+ svc.ListReviewConfigs,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("ListReviewConfigs")),
+ connect.WithHandlerOptions(opts...),
+ )
+ reviewConfigServiceGetReviewConfigHandler := connect.NewUnaryHandler(
+ ReviewConfigServiceGetReviewConfigProcedure,
+ svc.GetReviewConfig,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("GetReviewConfig")),
+ connect.WithHandlerOptions(opts...),
+ )
+ reviewConfigServiceUpdateReviewConfigHandler := connect.NewUnaryHandler(
+ ReviewConfigServiceUpdateReviewConfigProcedure,
+ svc.UpdateReviewConfig,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("UpdateReviewConfig")),
+ connect.WithHandlerOptions(opts...),
+ )
+ reviewConfigServiceDeleteReviewConfigHandler := connect.NewUnaryHandler(
+ ReviewConfigServiceDeleteReviewConfigProcedure,
+ svc.DeleteReviewConfig,
+ connect.WithSchema(reviewConfigServiceMethods.ByName("DeleteReviewConfig")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.ReviewConfigService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case ReviewConfigServiceCreateReviewConfigProcedure:
+ reviewConfigServiceCreateReviewConfigHandler.ServeHTTP(w, r)
+ case ReviewConfigServiceListReviewConfigsProcedure:
+ reviewConfigServiceListReviewConfigsHandler.ServeHTTP(w, r)
+ case ReviewConfigServiceGetReviewConfigProcedure:
+ reviewConfigServiceGetReviewConfigHandler.ServeHTTP(w, r)
+ case ReviewConfigServiceUpdateReviewConfigProcedure:
+ reviewConfigServiceUpdateReviewConfigHandler.ServeHTTP(w, r)
+ case ReviewConfigServiceDeleteReviewConfigProcedure:
+ reviewConfigServiceDeleteReviewConfigHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedReviewConfigServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedReviewConfigServiceHandler struct{}
+
+func (UnimplementedReviewConfigServiceHandler) CreateReviewConfig(context.Context, *connect.Request[v1.CreateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReviewConfigService.CreateReviewConfig is not implemented"))
+}
+
+func (UnimplementedReviewConfigServiceHandler) ListReviewConfigs(context.Context, *connect.Request[v1.ListReviewConfigsRequest]) (*connect.Response[v1.ListReviewConfigsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReviewConfigService.ListReviewConfigs is not implemented"))
+}
+
+func (UnimplementedReviewConfigServiceHandler) GetReviewConfig(context.Context, *connect.Request[v1.GetReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReviewConfigService.GetReviewConfig is not implemented"))
+}
+
+func (UnimplementedReviewConfigServiceHandler) UpdateReviewConfig(context.Context, *connect.Request[v1.UpdateReviewConfigRequest]) (*connect.Response[v1.ReviewConfig], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReviewConfigService.UpdateReviewConfig is not implemented"))
+}
+
+func (UnimplementedReviewConfigServiceHandler) DeleteReviewConfig(context.Context, *connect.Request[v1.DeleteReviewConfigRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.ReviewConfigService.DeleteReviewConfig is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/revision_service.connect.go b/proto/generated-go/v1/v1connect/revision_service.connect.go
new file mode 100644
index 0000000000..926e92f330
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/revision_service.connect.go
@@ -0,0 +1,226 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/revision_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // RevisionServiceName is the fully-qualified name of the RevisionService service.
+ RevisionServiceName = "bytebase.v1.RevisionService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // RevisionServiceListRevisionsProcedure is the fully-qualified name of the RevisionService's
+ // ListRevisions RPC.
+ RevisionServiceListRevisionsProcedure = "/bytebase.v1.RevisionService/ListRevisions"
+ // RevisionServiceGetRevisionProcedure is the fully-qualified name of the RevisionService's
+ // GetRevision RPC.
+ RevisionServiceGetRevisionProcedure = "/bytebase.v1.RevisionService/GetRevision"
+ // RevisionServiceCreateRevisionProcedure is the fully-qualified name of the RevisionService's
+ // CreateRevision RPC.
+ RevisionServiceCreateRevisionProcedure = "/bytebase.v1.RevisionService/CreateRevision"
+ // RevisionServiceBatchCreateRevisionsProcedure is the fully-qualified name of the RevisionService's
+ // BatchCreateRevisions RPC.
+ RevisionServiceBatchCreateRevisionsProcedure = "/bytebase.v1.RevisionService/BatchCreateRevisions"
+ // RevisionServiceDeleteRevisionProcedure is the fully-qualified name of the RevisionService's
+ // DeleteRevision RPC.
+ RevisionServiceDeleteRevisionProcedure = "/bytebase.v1.RevisionService/DeleteRevision"
+)
+
+// RevisionServiceClient is a client for the bytebase.v1.RevisionService service.
+type RevisionServiceClient interface {
+ ListRevisions(context.Context, *connect.Request[v1.ListRevisionsRequest]) (*connect.Response[v1.ListRevisionsResponse], error)
+ GetRevision(context.Context, *connect.Request[v1.GetRevisionRequest]) (*connect.Response[v1.Revision], error)
+ CreateRevision(context.Context, *connect.Request[v1.CreateRevisionRequest]) (*connect.Response[v1.Revision], error)
+ BatchCreateRevisions(context.Context, *connect.Request[v1.BatchCreateRevisionsRequest]) (*connect.Response[v1.BatchCreateRevisionsResponse], error)
+ DeleteRevision(context.Context, *connect.Request[v1.DeleteRevisionRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewRevisionServiceClient constructs a client for the bytebase.v1.RevisionService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewRevisionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RevisionServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ revisionServiceMethods := v1.File_v1_revision_service_proto.Services().ByName("RevisionService").Methods()
+ return &revisionServiceClient{
+ listRevisions: connect.NewClient[v1.ListRevisionsRequest, v1.ListRevisionsResponse](
+ httpClient,
+ baseURL+RevisionServiceListRevisionsProcedure,
+ connect.WithSchema(revisionServiceMethods.ByName("ListRevisions")),
+ connect.WithClientOptions(opts...),
+ ),
+ getRevision: connect.NewClient[v1.GetRevisionRequest, v1.Revision](
+ httpClient,
+ baseURL+RevisionServiceGetRevisionProcedure,
+ connect.WithSchema(revisionServiceMethods.ByName("GetRevision")),
+ connect.WithClientOptions(opts...),
+ ),
+ createRevision: connect.NewClient[v1.CreateRevisionRequest, v1.Revision](
+ httpClient,
+ baseURL+RevisionServiceCreateRevisionProcedure,
+ connect.WithSchema(revisionServiceMethods.ByName("CreateRevision")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchCreateRevisions: connect.NewClient[v1.BatchCreateRevisionsRequest, v1.BatchCreateRevisionsResponse](
+ httpClient,
+ baseURL+RevisionServiceBatchCreateRevisionsProcedure,
+ connect.WithSchema(revisionServiceMethods.ByName("BatchCreateRevisions")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteRevision: connect.NewClient[v1.DeleteRevisionRequest, emptypb.Empty](
+ httpClient,
+ baseURL+RevisionServiceDeleteRevisionProcedure,
+ connect.WithSchema(revisionServiceMethods.ByName("DeleteRevision")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// revisionServiceClient implements RevisionServiceClient.
+type revisionServiceClient struct {
+ listRevisions *connect.Client[v1.ListRevisionsRequest, v1.ListRevisionsResponse]
+ getRevision *connect.Client[v1.GetRevisionRequest, v1.Revision]
+ createRevision *connect.Client[v1.CreateRevisionRequest, v1.Revision]
+ batchCreateRevisions *connect.Client[v1.BatchCreateRevisionsRequest, v1.BatchCreateRevisionsResponse]
+ deleteRevision *connect.Client[v1.DeleteRevisionRequest, emptypb.Empty]
+}
+
+// ListRevisions calls bytebase.v1.RevisionService.ListRevisions.
+func (c *revisionServiceClient) ListRevisions(ctx context.Context, req *connect.Request[v1.ListRevisionsRequest]) (*connect.Response[v1.ListRevisionsResponse], error) {
+ return c.listRevisions.CallUnary(ctx, req)
+}
+
+// GetRevision calls bytebase.v1.RevisionService.GetRevision.
+func (c *revisionServiceClient) GetRevision(ctx context.Context, req *connect.Request[v1.GetRevisionRequest]) (*connect.Response[v1.Revision], error) {
+ return c.getRevision.CallUnary(ctx, req)
+}
+
+// CreateRevision calls bytebase.v1.RevisionService.CreateRevision.
+func (c *revisionServiceClient) CreateRevision(ctx context.Context, req *connect.Request[v1.CreateRevisionRequest]) (*connect.Response[v1.Revision], error) {
+ return c.createRevision.CallUnary(ctx, req)
+}
+
+// BatchCreateRevisions calls bytebase.v1.RevisionService.BatchCreateRevisions.
+func (c *revisionServiceClient) BatchCreateRevisions(ctx context.Context, req *connect.Request[v1.BatchCreateRevisionsRequest]) (*connect.Response[v1.BatchCreateRevisionsResponse], error) {
+ return c.batchCreateRevisions.CallUnary(ctx, req)
+}
+
+// DeleteRevision calls bytebase.v1.RevisionService.DeleteRevision.
+func (c *revisionServiceClient) DeleteRevision(ctx context.Context, req *connect.Request[v1.DeleteRevisionRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteRevision.CallUnary(ctx, req)
+}
+
+// RevisionServiceHandler is an implementation of the bytebase.v1.RevisionService service.
+type RevisionServiceHandler interface {
+ ListRevisions(context.Context, *connect.Request[v1.ListRevisionsRequest]) (*connect.Response[v1.ListRevisionsResponse], error)
+ GetRevision(context.Context, *connect.Request[v1.GetRevisionRequest]) (*connect.Response[v1.Revision], error)
+ CreateRevision(context.Context, *connect.Request[v1.CreateRevisionRequest]) (*connect.Response[v1.Revision], error)
+ BatchCreateRevisions(context.Context, *connect.Request[v1.BatchCreateRevisionsRequest]) (*connect.Response[v1.BatchCreateRevisionsResponse], error)
+ DeleteRevision(context.Context, *connect.Request[v1.DeleteRevisionRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewRevisionServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewRevisionServiceHandler(svc RevisionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ revisionServiceMethods := v1.File_v1_revision_service_proto.Services().ByName("RevisionService").Methods()
+ revisionServiceListRevisionsHandler := connect.NewUnaryHandler(
+ RevisionServiceListRevisionsProcedure,
+ svc.ListRevisions,
+ connect.WithSchema(revisionServiceMethods.ByName("ListRevisions")),
+ connect.WithHandlerOptions(opts...),
+ )
+ revisionServiceGetRevisionHandler := connect.NewUnaryHandler(
+ RevisionServiceGetRevisionProcedure,
+ svc.GetRevision,
+ connect.WithSchema(revisionServiceMethods.ByName("GetRevision")),
+ connect.WithHandlerOptions(opts...),
+ )
+ revisionServiceCreateRevisionHandler := connect.NewUnaryHandler(
+ RevisionServiceCreateRevisionProcedure,
+ svc.CreateRevision,
+ connect.WithSchema(revisionServiceMethods.ByName("CreateRevision")),
+ connect.WithHandlerOptions(opts...),
+ )
+ revisionServiceBatchCreateRevisionsHandler := connect.NewUnaryHandler(
+ RevisionServiceBatchCreateRevisionsProcedure,
+ svc.BatchCreateRevisions,
+ connect.WithSchema(revisionServiceMethods.ByName("BatchCreateRevisions")),
+ connect.WithHandlerOptions(opts...),
+ )
+ revisionServiceDeleteRevisionHandler := connect.NewUnaryHandler(
+ RevisionServiceDeleteRevisionProcedure,
+ svc.DeleteRevision,
+ connect.WithSchema(revisionServiceMethods.ByName("DeleteRevision")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.RevisionService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case RevisionServiceListRevisionsProcedure:
+ revisionServiceListRevisionsHandler.ServeHTTP(w, r)
+ case RevisionServiceGetRevisionProcedure:
+ revisionServiceGetRevisionHandler.ServeHTTP(w, r)
+ case RevisionServiceCreateRevisionProcedure:
+ revisionServiceCreateRevisionHandler.ServeHTTP(w, r)
+ case RevisionServiceBatchCreateRevisionsProcedure:
+ revisionServiceBatchCreateRevisionsHandler.ServeHTTP(w, r)
+ case RevisionServiceDeleteRevisionProcedure:
+ revisionServiceDeleteRevisionHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedRevisionServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedRevisionServiceHandler struct{}
+
+func (UnimplementedRevisionServiceHandler) ListRevisions(context.Context, *connect.Request[v1.ListRevisionsRequest]) (*connect.Response[v1.ListRevisionsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RevisionService.ListRevisions is not implemented"))
+}
+
+func (UnimplementedRevisionServiceHandler) GetRevision(context.Context, *connect.Request[v1.GetRevisionRequest]) (*connect.Response[v1.Revision], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RevisionService.GetRevision is not implemented"))
+}
+
+func (UnimplementedRevisionServiceHandler) CreateRevision(context.Context, *connect.Request[v1.CreateRevisionRequest]) (*connect.Response[v1.Revision], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RevisionService.CreateRevision is not implemented"))
+}
+
+func (UnimplementedRevisionServiceHandler) BatchCreateRevisions(context.Context, *connect.Request[v1.BatchCreateRevisionsRequest]) (*connect.Response[v1.BatchCreateRevisionsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RevisionService.BatchCreateRevisions is not implemented"))
+}
+
+func (UnimplementedRevisionServiceHandler) DeleteRevision(context.Context, *connect.Request[v1.DeleteRevisionRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RevisionService.DeleteRevision is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/risk_service.connect.go b/proto/generated-go/v1/v1connect/risk_service.connect.go
new file mode 100644
index 0000000000..24c251d0bc
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/risk_service.connect.go
@@ -0,0 +1,221 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/risk_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // RiskServiceName is the fully-qualified name of the RiskService service.
+ RiskServiceName = "bytebase.v1.RiskService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // RiskServiceListRisksProcedure is the fully-qualified name of the RiskService's ListRisks RPC.
+ RiskServiceListRisksProcedure = "/bytebase.v1.RiskService/ListRisks"
+ // RiskServiceCreateRiskProcedure is the fully-qualified name of the RiskService's CreateRisk RPC.
+ RiskServiceCreateRiskProcedure = "/bytebase.v1.RiskService/CreateRisk"
+ // RiskServiceGetRiskProcedure is the fully-qualified name of the RiskService's GetRisk RPC.
+ RiskServiceGetRiskProcedure = "/bytebase.v1.RiskService/GetRisk"
+ // RiskServiceUpdateRiskProcedure is the fully-qualified name of the RiskService's UpdateRisk RPC.
+ RiskServiceUpdateRiskProcedure = "/bytebase.v1.RiskService/UpdateRisk"
+ // RiskServiceDeleteRiskProcedure is the fully-qualified name of the RiskService's DeleteRisk RPC.
+ RiskServiceDeleteRiskProcedure = "/bytebase.v1.RiskService/DeleteRisk"
+)
+
+// RiskServiceClient is a client for the bytebase.v1.RiskService service.
+type RiskServiceClient interface {
+ ListRisks(context.Context, *connect.Request[v1.ListRisksRequest]) (*connect.Response[v1.ListRisksResponse], error)
+ CreateRisk(context.Context, *connect.Request[v1.CreateRiskRequest]) (*connect.Response[v1.Risk], error)
+ GetRisk(context.Context, *connect.Request[v1.GetRiskRequest]) (*connect.Response[v1.Risk], error)
+ UpdateRisk(context.Context, *connect.Request[v1.UpdateRiskRequest]) (*connect.Response[v1.Risk], error)
+ DeleteRisk(context.Context, *connect.Request[v1.DeleteRiskRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewRiskServiceClient constructs a client for the bytebase.v1.RiskService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewRiskServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RiskServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ riskServiceMethods := v1.File_v1_risk_service_proto.Services().ByName("RiskService").Methods()
+ return &riskServiceClient{
+ listRisks: connect.NewClient[v1.ListRisksRequest, v1.ListRisksResponse](
+ httpClient,
+ baseURL+RiskServiceListRisksProcedure,
+ connect.WithSchema(riskServiceMethods.ByName("ListRisks")),
+ connect.WithClientOptions(opts...),
+ ),
+ createRisk: connect.NewClient[v1.CreateRiskRequest, v1.Risk](
+ httpClient,
+ baseURL+RiskServiceCreateRiskProcedure,
+ connect.WithSchema(riskServiceMethods.ByName("CreateRisk")),
+ connect.WithClientOptions(opts...),
+ ),
+ getRisk: connect.NewClient[v1.GetRiskRequest, v1.Risk](
+ httpClient,
+ baseURL+RiskServiceGetRiskProcedure,
+ connect.WithSchema(riskServiceMethods.ByName("GetRisk")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateRisk: connect.NewClient[v1.UpdateRiskRequest, v1.Risk](
+ httpClient,
+ baseURL+RiskServiceUpdateRiskProcedure,
+ connect.WithSchema(riskServiceMethods.ByName("UpdateRisk")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteRisk: connect.NewClient[v1.DeleteRiskRequest, emptypb.Empty](
+ httpClient,
+ baseURL+RiskServiceDeleteRiskProcedure,
+ connect.WithSchema(riskServiceMethods.ByName("DeleteRisk")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// riskServiceClient implements RiskServiceClient.
+type riskServiceClient struct {
+ listRisks *connect.Client[v1.ListRisksRequest, v1.ListRisksResponse]
+ createRisk *connect.Client[v1.CreateRiskRequest, v1.Risk]
+ getRisk *connect.Client[v1.GetRiskRequest, v1.Risk]
+ updateRisk *connect.Client[v1.UpdateRiskRequest, v1.Risk]
+ deleteRisk *connect.Client[v1.DeleteRiskRequest, emptypb.Empty]
+}
+
+// ListRisks calls bytebase.v1.RiskService.ListRisks.
+func (c *riskServiceClient) ListRisks(ctx context.Context, req *connect.Request[v1.ListRisksRequest]) (*connect.Response[v1.ListRisksResponse], error) {
+ return c.listRisks.CallUnary(ctx, req)
+}
+
+// CreateRisk calls bytebase.v1.RiskService.CreateRisk.
+func (c *riskServiceClient) CreateRisk(ctx context.Context, req *connect.Request[v1.CreateRiskRequest]) (*connect.Response[v1.Risk], error) {
+ return c.createRisk.CallUnary(ctx, req)
+}
+
+// GetRisk calls bytebase.v1.RiskService.GetRisk.
+func (c *riskServiceClient) GetRisk(ctx context.Context, req *connect.Request[v1.GetRiskRequest]) (*connect.Response[v1.Risk], error) {
+ return c.getRisk.CallUnary(ctx, req)
+}
+
+// UpdateRisk calls bytebase.v1.RiskService.UpdateRisk.
+func (c *riskServiceClient) UpdateRisk(ctx context.Context, req *connect.Request[v1.UpdateRiskRequest]) (*connect.Response[v1.Risk], error) {
+ return c.updateRisk.CallUnary(ctx, req)
+}
+
+// DeleteRisk calls bytebase.v1.RiskService.DeleteRisk.
+func (c *riskServiceClient) DeleteRisk(ctx context.Context, req *connect.Request[v1.DeleteRiskRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteRisk.CallUnary(ctx, req)
+}
+
+// RiskServiceHandler is an implementation of the bytebase.v1.RiskService service.
+type RiskServiceHandler interface {
+ ListRisks(context.Context, *connect.Request[v1.ListRisksRequest]) (*connect.Response[v1.ListRisksResponse], error)
+ CreateRisk(context.Context, *connect.Request[v1.CreateRiskRequest]) (*connect.Response[v1.Risk], error)
+ GetRisk(context.Context, *connect.Request[v1.GetRiskRequest]) (*connect.Response[v1.Risk], error)
+ UpdateRisk(context.Context, *connect.Request[v1.UpdateRiskRequest]) (*connect.Response[v1.Risk], error)
+ DeleteRisk(context.Context, *connect.Request[v1.DeleteRiskRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewRiskServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewRiskServiceHandler(svc RiskServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ riskServiceMethods := v1.File_v1_risk_service_proto.Services().ByName("RiskService").Methods()
+ riskServiceListRisksHandler := connect.NewUnaryHandler(
+ RiskServiceListRisksProcedure,
+ svc.ListRisks,
+ connect.WithSchema(riskServiceMethods.ByName("ListRisks")),
+ connect.WithHandlerOptions(opts...),
+ )
+ riskServiceCreateRiskHandler := connect.NewUnaryHandler(
+ RiskServiceCreateRiskProcedure,
+ svc.CreateRisk,
+ connect.WithSchema(riskServiceMethods.ByName("CreateRisk")),
+ connect.WithHandlerOptions(opts...),
+ )
+ riskServiceGetRiskHandler := connect.NewUnaryHandler(
+ RiskServiceGetRiskProcedure,
+ svc.GetRisk,
+ connect.WithSchema(riskServiceMethods.ByName("GetRisk")),
+ connect.WithHandlerOptions(opts...),
+ )
+ riskServiceUpdateRiskHandler := connect.NewUnaryHandler(
+ RiskServiceUpdateRiskProcedure,
+ svc.UpdateRisk,
+ connect.WithSchema(riskServiceMethods.ByName("UpdateRisk")),
+ connect.WithHandlerOptions(opts...),
+ )
+ riskServiceDeleteRiskHandler := connect.NewUnaryHandler(
+ RiskServiceDeleteRiskProcedure,
+ svc.DeleteRisk,
+ connect.WithSchema(riskServiceMethods.ByName("DeleteRisk")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.RiskService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case RiskServiceListRisksProcedure:
+ riskServiceListRisksHandler.ServeHTTP(w, r)
+ case RiskServiceCreateRiskProcedure:
+ riskServiceCreateRiskHandler.ServeHTTP(w, r)
+ case RiskServiceGetRiskProcedure:
+ riskServiceGetRiskHandler.ServeHTTP(w, r)
+ case RiskServiceUpdateRiskProcedure:
+ riskServiceUpdateRiskHandler.ServeHTTP(w, r)
+ case RiskServiceDeleteRiskProcedure:
+ riskServiceDeleteRiskHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedRiskServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedRiskServiceHandler struct{}
+
+func (UnimplementedRiskServiceHandler) ListRisks(context.Context, *connect.Request[v1.ListRisksRequest]) (*connect.Response[v1.ListRisksResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RiskService.ListRisks is not implemented"))
+}
+
+func (UnimplementedRiskServiceHandler) CreateRisk(context.Context, *connect.Request[v1.CreateRiskRequest]) (*connect.Response[v1.Risk], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RiskService.CreateRisk is not implemented"))
+}
+
+func (UnimplementedRiskServiceHandler) GetRisk(context.Context, *connect.Request[v1.GetRiskRequest]) (*connect.Response[v1.Risk], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RiskService.GetRisk is not implemented"))
+}
+
+func (UnimplementedRiskServiceHandler) UpdateRisk(context.Context, *connect.Request[v1.UpdateRiskRequest]) (*connect.Response[v1.Risk], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RiskService.UpdateRisk is not implemented"))
+}
+
+func (UnimplementedRiskServiceHandler) DeleteRisk(context.Context, *connect.Request[v1.DeleteRiskRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RiskService.DeleteRisk is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/role_service.connect.go b/proto/generated-go/v1/v1connect/role_service.connect.go
new file mode 100644
index 0000000000..fdabf0801e
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/role_service.connect.go
@@ -0,0 +1,221 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/role_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // RoleServiceName is the fully-qualified name of the RoleService service.
+ RoleServiceName = "bytebase.v1.RoleService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // RoleServiceListRolesProcedure is the fully-qualified name of the RoleService's ListRoles RPC.
+ RoleServiceListRolesProcedure = "/bytebase.v1.RoleService/ListRoles"
+ // RoleServiceGetRoleProcedure is the fully-qualified name of the RoleService's GetRole RPC.
+ RoleServiceGetRoleProcedure = "/bytebase.v1.RoleService/GetRole"
+ // RoleServiceCreateRoleProcedure is the fully-qualified name of the RoleService's CreateRole RPC.
+ RoleServiceCreateRoleProcedure = "/bytebase.v1.RoleService/CreateRole"
+ // RoleServiceUpdateRoleProcedure is the fully-qualified name of the RoleService's UpdateRole RPC.
+ RoleServiceUpdateRoleProcedure = "/bytebase.v1.RoleService/UpdateRole"
+ // RoleServiceDeleteRoleProcedure is the fully-qualified name of the RoleService's DeleteRole RPC.
+ RoleServiceDeleteRoleProcedure = "/bytebase.v1.RoleService/DeleteRole"
+)
+
+// RoleServiceClient is a client for the bytebase.v1.RoleService service.
+type RoleServiceClient interface {
+ ListRoles(context.Context, *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error)
+ GetRole(context.Context, *connect.Request[v1.GetRoleRequest]) (*connect.Response[v1.Role], error)
+ CreateRole(context.Context, *connect.Request[v1.CreateRoleRequest]) (*connect.Response[v1.Role], error)
+ UpdateRole(context.Context, *connect.Request[v1.UpdateRoleRequest]) (*connect.Response[v1.Role], error)
+ DeleteRole(context.Context, *connect.Request[v1.DeleteRoleRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewRoleServiceClient constructs a client for the bytebase.v1.RoleService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewRoleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RoleServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ roleServiceMethods := v1.File_v1_role_service_proto.Services().ByName("RoleService").Methods()
+ return &roleServiceClient{
+ listRoles: connect.NewClient[v1.ListRolesRequest, v1.ListRolesResponse](
+ httpClient,
+ baseURL+RoleServiceListRolesProcedure,
+ connect.WithSchema(roleServiceMethods.ByName("ListRoles")),
+ connect.WithClientOptions(opts...),
+ ),
+ getRole: connect.NewClient[v1.GetRoleRequest, v1.Role](
+ httpClient,
+ baseURL+RoleServiceGetRoleProcedure,
+ connect.WithSchema(roleServiceMethods.ByName("GetRole")),
+ connect.WithClientOptions(opts...),
+ ),
+ createRole: connect.NewClient[v1.CreateRoleRequest, v1.Role](
+ httpClient,
+ baseURL+RoleServiceCreateRoleProcedure,
+ connect.WithSchema(roleServiceMethods.ByName("CreateRole")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateRole: connect.NewClient[v1.UpdateRoleRequest, v1.Role](
+ httpClient,
+ baseURL+RoleServiceUpdateRoleProcedure,
+ connect.WithSchema(roleServiceMethods.ByName("UpdateRole")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteRole: connect.NewClient[v1.DeleteRoleRequest, emptypb.Empty](
+ httpClient,
+ baseURL+RoleServiceDeleteRoleProcedure,
+ connect.WithSchema(roleServiceMethods.ByName("DeleteRole")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// roleServiceClient implements RoleServiceClient.
+type roleServiceClient struct {
+ listRoles *connect.Client[v1.ListRolesRequest, v1.ListRolesResponse]
+ getRole *connect.Client[v1.GetRoleRequest, v1.Role]
+ createRole *connect.Client[v1.CreateRoleRequest, v1.Role]
+ updateRole *connect.Client[v1.UpdateRoleRequest, v1.Role]
+ deleteRole *connect.Client[v1.DeleteRoleRequest, emptypb.Empty]
+}
+
+// ListRoles calls bytebase.v1.RoleService.ListRoles.
+func (c *roleServiceClient) ListRoles(ctx context.Context, req *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error) {
+ return c.listRoles.CallUnary(ctx, req)
+}
+
+// GetRole calls bytebase.v1.RoleService.GetRole.
+func (c *roleServiceClient) GetRole(ctx context.Context, req *connect.Request[v1.GetRoleRequest]) (*connect.Response[v1.Role], error) {
+ return c.getRole.CallUnary(ctx, req)
+}
+
+// CreateRole calls bytebase.v1.RoleService.CreateRole.
+func (c *roleServiceClient) CreateRole(ctx context.Context, req *connect.Request[v1.CreateRoleRequest]) (*connect.Response[v1.Role], error) {
+ return c.createRole.CallUnary(ctx, req)
+}
+
+// UpdateRole calls bytebase.v1.RoleService.UpdateRole.
+func (c *roleServiceClient) UpdateRole(ctx context.Context, req *connect.Request[v1.UpdateRoleRequest]) (*connect.Response[v1.Role], error) {
+ return c.updateRole.CallUnary(ctx, req)
+}
+
+// DeleteRole calls bytebase.v1.RoleService.DeleteRole.
+func (c *roleServiceClient) DeleteRole(ctx context.Context, req *connect.Request[v1.DeleteRoleRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteRole.CallUnary(ctx, req)
+}
+
+// RoleServiceHandler is an implementation of the bytebase.v1.RoleService service.
+type RoleServiceHandler interface {
+ ListRoles(context.Context, *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error)
+ GetRole(context.Context, *connect.Request[v1.GetRoleRequest]) (*connect.Response[v1.Role], error)
+ CreateRole(context.Context, *connect.Request[v1.CreateRoleRequest]) (*connect.Response[v1.Role], error)
+ UpdateRole(context.Context, *connect.Request[v1.UpdateRoleRequest]) (*connect.Response[v1.Role], error)
+ DeleteRole(context.Context, *connect.Request[v1.DeleteRoleRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewRoleServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewRoleServiceHandler(svc RoleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ roleServiceMethods := v1.File_v1_role_service_proto.Services().ByName("RoleService").Methods()
+ roleServiceListRolesHandler := connect.NewUnaryHandler(
+ RoleServiceListRolesProcedure,
+ svc.ListRoles,
+ connect.WithSchema(roleServiceMethods.ByName("ListRoles")),
+ connect.WithHandlerOptions(opts...),
+ )
+ roleServiceGetRoleHandler := connect.NewUnaryHandler(
+ RoleServiceGetRoleProcedure,
+ svc.GetRole,
+ connect.WithSchema(roleServiceMethods.ByName("GetRole")),
+ connect.WithHandlerOptions(opts...),
+ )
+ roleServiceCreateRoleHandler := connect.NewUnaryHandler(
+ RoleServiceCreateRoleProcedure,
+ svc.CreateRole,
+ connect.WithSchema(roleServiceMethods.ByName("CreateRole")),
+ connect.WithHandlerOptions(opts...),
+ )
+ roleServiceUpdateRoleHandler := connect.NewUnaryHandler(
+ RoleServiceUpdateRoleProcedure,
+ svc.UpdateRole,
+ connect.WithSchema(roleServiceMethods.ByName("UpdateRole")),
+ connect.WithHandlerOptions(opts...),
+ )
+ roleServiceDeleteRoleHandler := connect.NewUnaryHandler(
+ RoleServiceDeleteRoleProcedure,
+ svc.DeleteRole,
+ connect.WithSchema(roleServiceMethods.ByName("DeleteRole")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.RoleService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case RoleServiceListRolesProcedure:
+ roleServiceListRolesHandler.ServeHTTP(w, r)
+ case RoleServiceGetRoleProcedure:
+ roleServiceGetRoleHandler.ServeHTTP(w, r)
+ case RoleServiceCreateRoleProcedure:
+ roleServiceCreateRoleHandler.ServeHTTP(w, r)
+ case RoleServiceUpdateRoleProcedure:
+ roleServiceUpdateRoleHandler.ServeHTTP(w, r)
+ case RoleServiceDeleteRoleProcedure:
+ roleServiceDeleteRoleHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedRoleServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedRoleServiceHandler struct{}
+
+func (UnimplementedRoleServiceHandler) ListRoles(context.Context, *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RoleService.ListRoles is not implemented"))
+}
+
+func (UnimplementedRoleServiceHandler) GetRole(context.Context, *connect.Request[v1.GetRoleRequest]) (*connect.Response[v1.Role], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RoleService.GetRole is not implemented"))
+}
+
+func (UnimplementedRoleServiceHandler) CreateRole(context.Context, *connect.Request[v1.CreateRoleRequest]) (*connect.Response[v1.Role], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RoleService.CreateRole is not implemented"))
+}
+
+func (UnimplementedRoleServiceHandler) UpdateRole(context.Context, *connect.Request[v1.UpdateRoleRequest]) (*connect.Response[v1.Role], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RoleService.UpdateRole is not implemented"))
+}
+
+func (UnimplementedRoleServiceHandler) DeleteRole(context.Context, *connect.Request[v1.DeleteRoleRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RoleService.DeleteRole is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/rollout_service.connect.go b/proto/generated-go/v1/v1connect/rollout_service.connect.go
new file mode 100644
index 0000000000..e7538c641b
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/rollout_service.connect.go
@@ -0,0 +1,446 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/rollout_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // RolloutServiceName is the fully-qualified name of the RolloutService service.
+ RolloutServiceName = "bytebase.v1.RolloutService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // RolloutServiceGetRolloutProcedure is the fully-qualified name of the RolloutService's GetRollout
+ // RPC.
+ RolloutServiceGetRolloutProcedure = "/bytebase.v1.RolloutService/GetRollout"
+ // RolloutServiceListRolloutsProcedure is the fully-qualified name of the RolloutService's
+ // ListRollouts RPC.
+ RolloutServiceListRolloutsProcedure = "/bytebase.v1.RolloutService/ListRollouts"
+ // RolloutServiceCreateRolloutProcedure is the fully-qualified name of the RolloutService's
+ // CreateRollout RPC.
+ RolloutServiceCreateRolloutProcedure = "/bytebase.v1.RolloutService/CreateRollout"
+ // RolloutServicePreviewRolloutProcedure is the fully-qualified name of the RolloutService's
+ // PreviewRollout RPC.
+ RolloutServicePreviewRolloutProcedure = "/bytebase.v1.RolloutService/PreviewRollout"
+ // RolloutServiceListTaskRunsProcedure is the fully-qualified name of the RolloutService's
+ // ListTaskRuns RPC.
+ RolloutServiceListTaskRunsProcedure = "/bytebase.v1.RolloutService/ListTaskRuns"
+ // RolloutServiceGetTaskRunProcedure is the fully-qualified name of the RolloutService's GetTaskRun
+ // RPC.
+ RolloutServiceGetTaskRunProcedure = "/bytebase.v1.RolloutService/GetTaskRun"
+ // RolloutServiceGetTaskRunLogProcedure is the fully-qualified name of the RolloutService's
+ // GetTaskRunLog RPC.
+ RolloutServiceGetTaskRunLogProcedure = "/bytebase.v1.RolloutService/GetTaskRunLog"
+ // RolloutServiceGetTaskRunSessionProcedure is the fully-qualified name of the RolloutService's
+ // GetTaskRunSession RPC.
+ RolloutServiceGetTaskRunSessionProcedure = "/bytebase.v1.RolloutService/GetTaskRunSession"
+ // RolloutServiceBatchRunTasksProcedure is the fully-qualified name of the RolloutService's
+ // BatchRunTasks RPC.
+ RolloutServiceBatchRunTasksProcedure = "/bytebase.v1.RolloutService/BatchRunTasks"
+ // RolloutServiceBatchSkipTasksProcedure is the fully-qualified name of the RolloutService's
+ // BatchSkipTasks RPC.
+ RolloutServiceBatchSkipTasksProcedure = "/bytebase.v1.RolloutService/BatchSkipTasks"
+ // RolloutServiceBatchCancelTaskRunsProcedure is the fully-qualified name of the RolloutService's
+ // BatchCancelTaskRuns RPC.
+ RolloutServiceBatchCancelTaskRunsProcedure = "/bytebase.v1.RolloutService/BatchCancelTaskRuns"
+ // RolloutServicePreviewTaskRunRollbackProcedure is the fully-qualified name of the RolloutService's
+ // PreviewTaskRunRollback RPC.
+ RolloutServicePreviewTaskRunRollbackProcedure = "/bytebase.v1.RolloutService/PreviewTaskRunRollback"
+)
+
+// RolloutServiceClient is a client for the bytebase.v1.RolloutService service.
+type RolloutServiceClient interface {
+ GetRollout(context.Context, *connect.Request[v1.GetRolloutRequest]) (*connect.Response[v1.Rollout], error)
+ ListRollouts(context.Context, *connect.Request[v1.ListRolloutsRequest]) (*connect.Response[v1.ListRolloutsResponse], error)
+ // CreateRollout can be called multiple times with the same rollout.plan but different stage_id to promote rollout stages.
+ CreateRollout(context.Context, *connect.Request[v1.CreateRolloutRequest]) (*connect.Response[v1.Rollout], error)
+ PreviewRollout(context.Context, *connect.Request[v1.PreviewRolloutRequest]) (*connect.Response[v1.Rollout], error)
+ ListTaskRuns(context.Context, *connect.Request[v1.ListTaskRunsRequest]) (*connect.Response[v1.ListTaskRunsResponse], error)
+ GetTaskRun(context.Context, *connect.Request[v1.GetTaskRunRequest]) (*connect.Response[v1.TaskRun], error)
+ GetTaskRunLog(context.Context, *connect.Request[v1.GetTaskRunLogRequest]) (*connect.Response[v1.TaskRunLog], error)
+ GetTaskRunSession(context.Context, *connect.Request[v1.GetTaskRunSessionRequest]) (*connect.Response[v1.TaskRunSession], error)
+ // BatchRunTasks creates task runs for the specified tasks.
+ // DataExport issue only allows the creator to run the task.
+ // Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.
+ // Follow role-based rollout policy for the environment.
+ BatchRunTasks(context.Context, *connect.Request[v1.BatchRunTasksRequest]) (*connect.Response[v1.BatchRunTasksResponse], error)
+ // BatchSkipTasks skips the specified tasks.
+ // The access is the same as BatchRunTasks().
+ BatchSkipTasks(context.Context, *connect.Request[v1.BatchSkipTasksRequest]) (*connect.Response[v1.BatchSkipTasksResponse], error)
+ // BatchCancelTaskRuns cancels the specified task runs in batch.
+ // The access is the same as BatchRunTasks().
+ BatchCancelTaskRuns(context.Context, *connect.Request[v1.BatchCancelTaskRunsRequest]) (*connect.Response[v1.BatchCancelTaskRunsResponse], error)
+ PreviewTaskRunRollback(context.Context, *connect.Request[v1.PreviewTaskRunRollbackRequest]) (*connect.Response[v1.PreviewTaskRunRollbackResponse], error)
+}
+
+// NewRolloutServiceClient constructs a client for the bytebase.v1.RolloutService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewRolloutServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RolloutServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ rolloutServiceMethods := v1.File_v1_rollout_service_proto.Services().ByName("RolloutService").Methods()
+ return &rolloutServiceClient{
+ getRollout: connect.NewClient[v1.GetRolloutRequest, v1.Rollout](
+ httpClient,
+ baseURL+RolloutServiceGetRolloutProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetRollout")),
+ connect.WithClientOptions(opts...),
+ ),
+ listRollouts: connect.NewClient[v1.ListRolloutsRequest, v1.ListRolloutsResponse](
+ httpClient,
+ baseURL+RolloutServiceListRolloutsProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("ListRollouts")),
+ connect.WithClientOptions(opts...),
+ ),
+ createRollout: connect.NewClient[v1.CreateRolloutRequest, v1.Rollout](
+ httpClient,
+ baseURL+RolloutServiceCreateRolloutProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("CreateRollout")),
+ connect.WithClientOptions(opts...),
+ ),
+ previewRollout: connect.NewClient[v1.PreviewRolloutRequest, v1.Rollout](
+ httpClient,
+ baseURL+RolloutServicePreviewRolloutProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("PreviewRollout")),
+ connect.WithClientOptions(opts...),
+ ),
+ listTaskRuns: connect.NewClient[v1.ListTaskRunsRequest, v1.ListTaskRunsResponse](
+ httpClient,
+ baseURL+RolloutServiceListTaskRunsProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("ListTaskRuns")),
+ connect.WithClientOptions(opts...),
+ ),
+ getTaskRun: connect.NewClient[v1.GetTaskRunRequest, v1.TaskRun](
+ httpClient,
+ baseURL+RolloutServiceGetTaskRunProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetTaskRun")),
+ connect.WithClientOptions(opts...),
+ ),
+ getTaskRunLog: connect.NewClient[v1.GetTaskRunLogRequest, v1.TaskRunLog](
+ httpClient,
+ baseURL+RolloutServiceGetTaskRunLogProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetTaskRunLog")),
+ connect.WithClientOptions(opts...),
+ ),
+ getTaskRunSession: connect.NewClient[v1.GetTaskRunSessionRequest, v1.TaskRunSession](
+ httpClient,
+ baseURL+RolloutServiceGetTaskRunSessionProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetTaskRunSession")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchRunTasks: connect.NewClient[v1.BatchRunTasksRequest, v1.BatchRunTasksResponse](
+ httpClient,
+ baseURL+RolloutServiceBatchRunTasksProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("BatchRunTasks")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchSkipTasks: connect.NewClient[v1.BatchSkipTasksRequest, v1.BatchSkipTasksResponse](
+ httpClient,
+ baseURL+RolloutServiceBatchSkipTasksProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("BatchSkipTasks")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchCancelTaskRuns: connect.NewClient[v1.BatchCancelTaskRunsRequest, v1.BatchCancelTaskRunsResponse](
+ httpClient,
+ baseURL+RolloutServiceBatchCancelTaskRunsProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("BatchCancelTaskRuns")),
+ connect.WithClientOptions(opts...),
+ ),
+ previewTaskRunRollback: connect.NewClient[v1.PreviewTaskRunRollbackRequest, v1.PreviewTaskRunRollbackResponse](
+ httpClient,
+ baseURL+RolloutServicePreviewTaskRunRollbackProcedure,
+ connect.WithSchema(rolloutServiceMethods.ByName("PreviewTaskRunRollback")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// rolloutServiceClient implements RolloutServiceClient.
+type rolloutServiceClient struct {
+ getRollout *connect.Client[v1.GetRolloutRequest, v1.Rollout]
+ listRollouts *connect.Client[v1.ListRolloutsRequest, v1.ListRolloutsResponse]
+ createRollout *connect.Client[v1.CreateRolloutRequest, v1.Rollout]
+ previewRollout *connect.Client[v1.PreviewRolloutRequest, v1.Rollout]
+ listTaskRuns *connect.Client[v1.ListTaskRunsRequest, v1.ListTaskRunsResponse]
+ getTaskRun *connect.Client[v1.GetTaskRunRequest, v1.TaskRun]
+ getTaskRunLog *connect.Client[v1.GetTaskRunLogRequest, v1.TaskRunLog]
+ getTaskRunSession *connect.Client[v1.GetTaskRunSessionRequest, v1.TaskRunSession]
+ batchRunTasks *connect.Client[v1.BatchRunTasksRequest, v1.BatchRunTasksResponse]
+ batchSkipTasks *connect.Client[v1.BatchSkipTasksRequest, v1.BatchSkipTasksResponse]
+ batchCancelTaskRuns *connect.Client[v1.BatchCancelTaskRunsRequest, v1.BatchCancelTaskRunsResponse]
+ previewTaskRunRollback *connect.Client[v1.PreviewTaskRunRollbackRequest, v1.PreviewTaskRunRollbackResponse]
+}
+
+// GetRollout calls bytebase.v1.RolloutService.GetRollout.
+func (c *rolloutServiceClient) GetRollout(ctx context.Context, req *connect.Request[v1.GetRolloutRequest]) (*connect.Response[v1.Rollout], error) {
+ return c.getRollout.CallUnary(ctx, req)
+}
+
+// ListRollouts calls bytebase.v1.RolloutService.ListRollouts.
+func (c *rolloutServiceClient) ListRollouts(ctx context.Context, req *connect.Request[v1.ListRolloutsRequest]) (*connect.Response[v1.ListRolloutsResponse], error) {
+ return c.listRollouts.CallUnary(ctx, req)
+}
+
+// CreateRollout calls bytebase.v1.RolloutService.CreateRollout.
+func (c *rolloutServiceClient) CreateRollout(ctx context.Context, req *connect.Request[v1.CreateRolloutRequest]) (*connect.Response[v1.Rollout], error) {
+ return c.createRollout.CallUnary(ctx, req)
+}
+
+// PreviewRollout calls bytebase.v1.RolloutService.PreviewRollout.
+func (c *rolloutServiceClient) PreviewRollout(ctx context.Context, req *connect.Request[v1.PreviewRolloutRequest]) (*connect.Response[v1.Rollout], error) {
+ return c.previewRollout.CallUnary(ctx, req)
+}
+
+// ListTaskRuns calls bytebase.v1.RolloutService.ListTaskRuns.
+func (c *rolloutServiceClient) ListTaskRuns(ctx context.Context, req *connect.Request[v1.ListTaskRunsRequest]) (*connect.Response[v1.ListTaskRunsResponse], error) {
+ return c.listTaskRuns.CallUnary(ctx, req)
+}
+
+// GetTaskRun calls bytebase.v1.RolloutService.GetTaskRun.
+func (c *rolloutServiceClient) GetTaskRun(ctx context.Context, req *connect.Request[v1.GetTaskRunRequest]) (*connect.Response[v1.TaskRun], error) {
+ return c.getTaskRun.CallUnary(ctx, req)
+}
+
+// GetTaskRunLog calls bytebase.v1.RolloutService.GetTaskRunLog.
+func (c *rolloutServiceClient) GetTaskRunLog(ctx context.Context, req *connect.Request[v1.GetTaskRunLogRequest]) (*connect.Response[v1.TaskRunLog], error) {
+ return c.getTaskRunLog.CallUnary(ctx, req)
+}
+
+// GetTaskRunSession calls bytebase.v1.RolloutService.GetTaskRunSession.
+func (c *rolloutServiceClient) GetTaskRunSession(ctx context.Context, req *connect.Request[v1.GetTaskRunSessionRequest]) (*connect.Response[v1.TaskRunSession], error) {
+ return c.getTaskRunSession.CallUnary(ctx, req)
+}
+
+// BatchRunTasks calls bytebase.v1.RolloutService.BatchRunTasks.
+func (c *rolloutServiceClient) BatchRunTasks(ctx context.Context, req *connect.Request[v1.BatchRunTasksRequest]) (*connect.Response[v1.BatchRunTasksResponse], error) {
+ return c.batchRunTasks.CallUnary(ctx, req)
+}
+
+// BatchSkipTasks calls bytebase.v1.RolloutService.BatchSkipTasks.
+func (c *rolloutServiceClient) BatchSkipTasks(ctx context.Context, req *connect.Request[v1.BatchSkipTasksRequest]) (*connect.Response[v1.BatchSkipTasksResponse], error) {
+ return c.batchSkipTasks.CallUnary(ctx, req)
+}
+
+// BatchCancelTaskRuns calls bytebase.v1.RolloutService.BatchCancelTaskRuns.
+func (c *rolloutServiceClient) BatchCancelTaskRuns(ctx context.Context, req *connect.Request[v1.BatchCancelTaskRunsRequest]) (*connect.Response[v1.BatchCancelTaskRunsResponse], error) {
+ return c.batchCancelTaskRuns.CallUnary(ctx, req)
+}
+
+// PreviewTaskRunRollback calls bytebase.v1.RolloutService.PreviewTaskRunRollback.
+func (c *rolloutServiceClient) PreviewTaskRunRollback(ctx context.Context, req *connect.Request[v1.PreviewTaskRunRollbackRequest]) (*connect.Response[v1.PreviewTaskRunRollbackResponse], error) {
+ return c.previewTaskRunRollback.CallUnary(ctx, req)
+}
+
+// RolloutServiceHandler is an implementation of the bytebase.v1.RolloutService service.
+type RolloutServiceHandler interface {
+ GetRollout(context.Context, *connect.Request[v1.GetRolloutRequest]) (*connect.Response[v1.Rollout], error)
+ ListRollouts(context.Context, *connect.Request[v1.ListRolloutsRequest]) (*connect.Response[v1.ListRolloutsResponse], error)
+ // CreateRollout can be called multiple times with the same rollout.plan but different stage_id to promote rollout stages.
+ CreateRollout(context.Context, *connect.Request[v1.CreateRolloutRequest]) (*connect.Response[v1.Rollout], error)
+ PreviewRollout(context.Context, *connect.Request[v1.PreviewRolloutRequest]) (*connect.Response[v1.Rollout], error)
+ ListTaskRuns(context.Context, *connect.Request[v1.ListTaskRunsRequest]) (*connect.Response[v1.ListTaskRunsResponse], error)
+ GetTaskRun(context.Context, *connect.Request[v1.GetTaskRunRequest]) (*connect.Response[v1.TaskRun], error)
+ GetTaskRunLog(context.Context, *connect.Request[v1.GetTaskRunLogRequest]) (*connect.Response[v1.TaskRunLog], error)
+ GetTaskRunSession(context.Context, *connect.Request[v1.GetTaskRunSessionRequest]) (*connect.Response[v1.TaskRunSession], error)
+ // BatchRunTasks creates task runs for the specified tasks.
+ // DataExport issue only allows the creator to run the task.
+ // Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.
+ // Follow role-based rollout policy for the environment.
+ BatchRunTasks(context.Context, *connect.Request[v1.BatchRunTasksRequest]) (*connect.Response[v1.BatchRunTasksResponse], error)
+ // BatchSkipTasks skips the specified tasks.
+ // The access is the same as BatchRunTasks().
+ BatchSkipTasks(context.Context, *connect.Request[v1.BatchSkipTasksRequest]) (*connect.Response[v1.BatchSkipTasksResponse], error)
+ // BatchCancelTaskRuns cancels the specified task runs in batch.
+ // The access is the same as BatchRunTasks().
+ BatchCancelTaskRuns(context.Context, *connect.Request[v1.BatchCancelTaskRunsRequest]) (*connect.Response[v1.BatchCancelTaskRunsResponse], error)
+ PreviewTaskRunRollback(context.Context, *connect.Request[v1.PreviewTaskRunRollbackRequest]) (*connect.Response[v1.PreviewTaskRunRollbackResponse], error)
+}
+
+// NewRolloutServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewRolloutServiceHandler(svc RolloutServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ rolloutServiceMethods := v1.File_v1_rollout_service_proto.Services().ByName("RolloutService").Methods()
+ rolloutServiceGetRolloutHandler := connect.NewUnaryHandler(
+ RolloutServiceGetRolloutProcedure,
+ svc.GetRollout,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetRollout")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceListRolloutsHandler := connect.NewUnaryHandler(
+ RolloutServiceListRolloutsProcedure,
+ svc.ListRollouts,
+ connect.WithSchema(rolloutServiceMethods.ByName("ListRollouts")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceCreateRolloutHandler := connect.NewUnaryHandler(
+ RolloutServiceCreateRolloutProcedure,
+ svc.CreateRollout,
+ connect.WithSchema(rolloutServiceMethods.ByName("CreateRollout")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServicePreviewRolloutHandler := connect.NewUnaryHandler(
+ RolloutServicePreviewRolloutProcedure,
+ svc.PreviewRollout,
+ connect.WithSchema(rolloutServiceMethods.ByName("PreviewRollout")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceListTaskRunsHandler := connect.NewUnaryHandler(
+ RolloutServiceListTaskRunsProcedure,
+ svc.ListTaskRuns,
+ connect.WithSchema(rolloutServiceMethods.ByName("ListTaskRuns")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceGetTaskRunHandler := connect.NewUnaryHandler(
+ RolloutServiceGetTaskRunProcedure,
+ svc.GetTaskRun,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetTaskRun")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceGetTaskRunLogHandler := connect.NewUnaryHandler(
+ RolloutServiceGetTaskRunLogProcedure,
+ svc.GetTaskRunLog,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetTaskRunLog")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceGetTaskRunSessionHandler := connect.NewUnaryHandler(
+ RolloutServiceGetTaskRunSessionProcedure,
+ svc.GetTaskRunSession,
+ connect.WithSchema(rolloutServiceMethods.ByName("GetTaskRunSession")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceBatchRunTasksHandler := connect.NewUnaryHandler(
+ RolloutServiceBatchRunTasksProcedure,
+ svc.BatchRunTasks,
+ connect.WithSchema(rolloutServiceMethods.ByName("BatchRunTasks")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceBatchSkipTasksHandler := connect.NewUnaryHandler(
+ RolloutServiceBatchSkipTasksProcedure,
+ svc.BatchSkipTasks,
+ connect.WithSchema(rolloutServiceMethods.ByName("BatchSkipTasks")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServiceBatchCancelTaskRunsHandler := connect.NewUnaryHandler(
+ RolloutServiceBatchCancelTaskRunsProcedure,
+ svc.BatchCancelTaskRuns,
+ connect.WithSchema(rolloutServiceMethods.ByName("BatchCancelTaskRuns")),
+ connect.WithHandlerOptions(opts...),
+ )
+ rolloutServicePreviewTaskRunRollbackHandler := connect.NewUnaryHandler(
+ RolloutServicePreviewTaskRunRollbackProcedure,
+ svc.PreviewTaskRunRollback,
+ connect.WithSchema(rolloutServiceMethods.ByName("PreviewTaskRunRollback")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.RolloutService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case RolloutServiceGetRolloutProcedure:
+ rolloutServiceGetRolloutHandler.ServeHTTP(w, r)
+ case RolloutServiceListRolloutsProcedure:
+ rolloutServiceListRolloutsHandler.ServeHTTP(w, r)
+ case RolloutServiceCreateRolloutProcedure:
+ rolloutServiceCreateRolloutHandler.ServeHTTP(w, r)
+ case RolloutServicePreviewRolloutProcedure:
+ rolloutServicePreviewRolloutHandler.ServeHTTP(w, r)
+ case RolloutServiceListTaskRunsProcedure:
+ rolloutServiceListTaskRunsHandler.ServeHTTP(w, r)
+ case RolloutServiceGetTaskRunProcedure:
+ rolloutServiceGetTaskRunHandler.ServeHTTP(w, r)
+ case RolloutServiceGetTaskRunLogProcedure:
+ rolloutServiceGetTaskRunLogHandler.ServeHTTP(w, r)
+ case RolloutServiceGetTaskRunSessionProcedure:
+ rolloutServiceGetTaskRunSessionHandler.ServeHTTP(w, r)
+ case RolloutServiceBatchRunTasksProcedure:
+ rolloutServiceBatchRunTasksHandler.ServeHTTP(w, r)
+ case RolloutServiceBatchSkipTasksProcedure:
+ rolloutServiceBatchSkipTasksHandler.ServeHTTP(w, r)
+ case RolloutServiceBatchCancelTaskRunsProcedure:
+ rolloutServiceBatchCancelTaskRunsHandler.ServeHTTP(w, r)
+ case RolloutServicePreviewTaskRunRollbackProcedure:
+ rolloutServicePreviewTaskRunRollbackHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedRolloutServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedRolloutServiceHandler struct{}
+
+func (UnimplementedRolloutServiceHandler) GetRollout(context.Context, *connect.Request[v1.GetRolloutRequest]) (*connect.Response[v1.Rollout], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.GetRollout is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) ListRollouts(context.Context, *connect.Request[v1.ListRolloutsRequest]) (*connect.Response[v1.ListRolloutsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.ListRollouts is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) CreateRollout(context.Context, *connect.Request[v1.CreateRolloutRequest]) (*connect.Response[v1.Rollout], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.CreateRollout is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) PreviewRollout(context.Context, *connect.Request[v1.PreviewRolloutRequest]) (*connect.Response[v1.Rollout], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.PreviewRollout is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) ListTaskRuns(context.Context, *connect.Request[v1.ListTaskRunsRequest]) (*connect.Response[v1.ListTaskRunsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.ListTaskRuns is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) GetTaskRun(context.Context, *connect.Request[v1.GetTaskRunRequest]) (*connect.Response[v1.TaskRun], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.GetTaskRun is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) GetTaskRunLog(context.Context, *connect.Request[v1.GetTaskRunLogRequest]) (*connect.Response[v1.TaskRunLog], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.GetTaskRunLog is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) GetTaskRunSession(context.Context, *connect.Request[v1.GetTaskRunSessionRequest]) (*connect.Response[v1.TaskRunSession], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.GetTaskRunSession is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) BatchRunTasks(context.Context, *connect.Request[v1.BatchRunTasksRequest]) (*connect.Response[v1.BatchRunTasksResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.BatchRunTasks is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) BatchSkipTasks(context.Context, *connect.Request[v1.BatchSkipTasksRequest]) (*connect.Response[v1.BatchSkipTasksResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.BatchSkipTasks is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) BatchCancelTaskRuns(context.Context, *connect.Request[v1.BatchCancelTaskRunsRequest]) (*connect.Response[v1.BatchCancelTaskRunsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.BatchCancelTaskRuns is not implemented"))
+}
+
+func (UnimplementedRolloutServiceHandler) PreviewTaskRunRollback(context.Context, *connect.Request[v1.PreviewTaskRunRollbackRequest]) (*connect.Response[v1.PreviewTaskRunRollbackResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.RolloutService.PreviewTaskRunRollback is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/setting_service.connect.go b/proto/generated-go/v1/v1connect/setting_service.connect.go
new file mode 100644
index 0000000000..628d1eb87e
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/setting_service.connect.go
@@ -0,0 +1,167 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/setting_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // SettingServiceName is the fully-qualified name of the SettingService service.
+ SettingServiceName = "bytebase.v1.SettingService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // SettingServiceListSettingsProcedure is the fully-qualified name of the SettingService's
+ // ListSettings RPC.
+ SettingServiceListSettingsProcedure = "/bytebase.v1.SettingService/ListSettings"
+ // SettingServiceGetSettingProcedure is the fully-qualified name of the SettingService's GetSetting
+ // RPC.
+ SettingServiceGetSettingProcedure = "/bytebase.v1.SettingService/GetSetting"
+ // SettingServiceUpdateSettingProcedure is the fully-qualified name of the SettingService's
+ // UpdateSetting RPC.
+ SettingServiceUpdateSettingProcedure = "/bytebase.v1.SettingService/UpdateSetting"
+)
+
+// SettingServiceClient is a client for the bytebase.v1.SettingService service.
+type SettingServiceClient interface {
+ ListSettings(context.Context, *connect.Request[v1.ListSettingsRequest]) (*connect.Response[v1.ListSettingsResponse], error)
+ GetSetting(context.Context, *connect.Request[v1.GetSettingRequest]) (*connect.Response[v1.Setting], error)
+ UpdateSetting(context.Context, *connect.Request[v1.UpdateSettingRequest]) (*connect.Response[v1.Setting], error)
+}
+
+// NewSettingServiceClient constructs a client for the bytebase.v1.SettingService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewSettingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SettingServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ settingServiceMethods := v1.File_v1_setting_service_proto.Services().ByName("SettingService").Methods()
+ return &settingServiceClient{
+ listSettings: connect.NewClient[v1.ListSettingsRequest, v1.ListSettingsResponse](
+ httpClient,
+ baseURL+SettingServiceListSettingsProcedure,
+ connect.WithSchema(settingServiceMethods.ByName("ListSettings")),
+ connect.WithClientOptions(opts...),
+ ),
+ getSetting: connect.NewClient[v1.GetSettingRequest, v1.Setting](
+ httpClient,
+ baseURL+SettingServiceGetSettingProcedure,
+ connect.WithSchema(settingServiceMethods.ByName("GetSetting")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateSetting: connect.NewClient[v1.UpdateSettingRequest, v1.Setting](
+ httpClient,
+ baseURL+SettingServiceUpdateSettingProcedure,
+ connect.WithSchema(settingServiceMethods.ByName("UpdateSetting")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// settingServiceClient implements SettingServiceClient.
+type settingServiceClient struct {
+ listSettings *connect.Client[v1.ListSettingsRequest, v1.ListSettingsResponse]
+ getSetting *connect.Client[v1.GetSettingRequest, v1.Setting]
+ updateSetting *connect.Client[v1.UpdateSettingRequest, v1.Setting]
+}
+
+// ListSettings calls bytebase.v1.SettingService.ListSettings.
+func (c *settingServiceClient) ListSettings(ctx context.Context, req *connect.Request[v1.ListSettingsRequest]) (*connect.Response[v1.ListSettingsResponse], error) {
+ return c.listSettings.CallUnary(ctx, req)
+}
+
+// GetSetting calls bytebase.v1.SettingService.GetSetting.
+func (c *settingServiceClient) GetSetting(ctx context.Context, req *connect.Request[v1.GetSettingRequest]) (*connect.Response[v1.Setting], error) {
+ return c.getSetting.CallUnary(ctx, req)
+}
+
+// UpdateSetting calls bytebase.v1.SettingService.UpdateSetting.
+func (c *settingServiceClient) UpdateSetting(ctx context.Context, req *connect.Request[v1.UpdateSettingRequest]) (*connect.Response[v1.Setting], error) {
+ return c.updateSetting.CallUnary(ctx, req)
+}
+
+// SettingServiceHandler is an implementation of the bytebase.v1.SettingService service.
+type SettingServiceHandler interface {
+ ListSettings(context.Context, *connect.Request[v1.ListSettingsRequest]) (*connect.Response[v1.ListSettingsResponse], error)
+ GetSetting(context.Context, *connect.Request[v1.GetSettingRequest]) (*connect.Response[v1.Setting], error)
+ UpdateSetting(context.Context, *connect.Request[v1.UpdateSettingRequest]) (*connect.Response[v1.Setting], error)
+}
+
+// NewSettingServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewSettingServiceHandler(svc SettingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ settingServiceMethods := v1.File_v1_setting_service_proto.Services().ByName("SettingService").Methods()
+ settingServiceListSettingsHandler := connect.NewUnaryHandler(
+ SettingServiceListSettingsProcedure,
+ svc.ListSettings,
+ connect.WithSchema(settingServiceMethods.ByName("ListSettings")),
+ connect.WithHandlerOptions(opts...),
+ )
+ settingServiceGetSettingHandler := connect.NewUnaryHandler(
+ SettingServiceGetSettingProcedure,
+ svc.GetSetting,
+ connect.WithSchema(settingServiceMethods.ByName("GetSetting")),
+ connect.WithHandlerOptions(opts...),
+ )
+ settingServiceUpdateSettingHandler := connect.NewUnaryHandler(
+ SettingServiceUpdateSettingProcedure,
+ svc.UpdateSetting,
+ connect.WithSchema(settingServiceMethods.ByName("UpdateSetting")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.SettingService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case SettingServiceListSettingsProcedure:
+ settingServiceListSettingsHandler.ServeHTTP(w, r)
+ case SettingServiceGetSettingProcedure:
+ settingServiceGetSettingHandler.ServeHTTP(w, r)
+ case SettingServiceUpdateSettingProcedure:
+ settingServiceUpdateSettingHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedSettingServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedSettingServiceHandler struct{}
+
+func (UnimplementedSettingServiceHandler) ListSettings(context.Context, *connect.Request[v1.ListSettingsRequest]) (*connect.Response[v1.ListSettingsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SettingService.ListSettings is not implemented"))
+}
+
+func (UnimplementedSettingServiceHandler) GetSetting(context.Context, *connect.Request[v1.GetSettingRequest]) (*connect.Response[v1.Setting], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SettingService.GetSetting is not implemented"))
+}
+
+func (UnimplementedSettingServiceHandler) UpdateSetting(context.Context, *connect.Request[v1.UpdateSettingRequest]) (*connect.Response[v1.Setting], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SettingService.UpdateSetting is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/sheet_service.connect.go b/proto/generated-go/v1/v1connect/sheet_service.connect.go
new file mode 100644
index 0000000000..82506e9b2d
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/sheet_service.connect.go
@@ -0,0 +1,195 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/sheet_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // SheetServiceName is the fully-qualified name of the SheetService service.
+ SheetServiceName = "bytebase.v1.SheetService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // SheetServiceCreateSheetProcedure is the fully-qualified name of the SheetService's CreateSheet
+ // RPC.
+ SheetServiceCreateSheetProcedure = "/bytebase.v1.SheetService/CreateSheet"
+ // SheetServiceBatchCreateSheetsProcedure is the fully-qualified name of the SheetService's
+ // BatchCreateSheets RPC.
+ SheetServiceBatchCreateSheetsProcedure = "/bytebase.v1.SheetService/BatchCreateSheets"
+ // SheetServiceGetSheetProcedure is the fully-qualified name of the SheetService's GetSheet RPC.
+ SheetServiceGetSheetProcedure = "/bytebase.v1.SheetService/GetSheet"
+ // SheetServiceUpdateSheetProcedure is the fully-qualified name of the SheetService's UpdateSheet
+ // RPC.
+ SheetServiceUpdateSheetProcedure = "/bytebase.v1.SheetService/UpdateSheet"
+)
+
+// SheetServiceClient is a client for the bytebase.v1.SheetService service.
+type SheetServiceClient interface {
+ CreateSheet(context.Context, *connect.Request[v1.CreateSheetRequest]) (*connect.Response[v1.Sheet], error)
+ BatchCreateSheets(context.Context, *connect.Request[v1.BatchCreateSheetsRequest]) (*connect.Response[v1.BatchCreateSheetsResponse], error)
+ GetSheet(context.Context, *connect.Request[v1.GetSheetRequest]) (*connect.Response[v1.Sheet], error)
+ UpdateSheet(context.Context, *connect.Request[v1.UpdateSheetRequest]) (*connect.Response[v1.Sheet], error)
+}
+
+// NewSheetServiceClient constructs a client for the bytebase.v1.SheetService service. By default,
+// it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and
+// sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC()
+// or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewSheetServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SheetServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ sheetServiceMethods := v1.File_v1_sheet_service_proto.Services().ByName("SheetService").Methods()
+ return &sheetServiceClient{
+ createSheet: connect.NewClient[v1.CreateSheetRequest, v1.Sheet](
+ httpClient,
+ baseURL+SheetServiceCreateSheetProcedure,
+ connect.WithSchema(sheetServiceMethods.ByName("CreateSheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchCreateSheets: connect.NewClient[v1.BatchCreateSheetsRequest, v1.BatchCreateSheetsResponse](
+ httpClient,
+ baseURL+SheetServiceBatchCreateSheetsProcedure,
+ connect.WithSchema(sheetServiceMethods.ByName("BatchCreateSheets")),
+ connect.WithClientOptions(opts...),
+ ),
+ getSheet: connect.NewClient[v1.GetSheetRequest, v1.Sheet](
+ httpClient,
+ baseURL+SheetServiceGetSheetProcedure,
+ connect.WithSchema(sheetServiceMethods.ByName("GetSheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateSheet: connect.NewClient[v1.UpdateSheetRequest, v1.Sheet](
+ httpClient,
+ baseURL+SheetServiceUpdateSheetProcedure,
+ connect.WithSchema(sheetServiceMethods.ByName("UpdateSheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// sheetServiceClient implements SheetServiceClient.
+type sheetServiceClient struct {
+ createSheet *connect.Client[v1.CreateSheetRequest, v1.Sheet]
+ batchCreateSheets *connect.Client[v1.BatchCreateSheetsRequest, v1.BatchCreateSheetsResponse]
+ getSheet *connect.Client[v1.GetSheetRequest, v1.Sheet]
+ updateSheet *connect.Client[v1.UpdateSheetRequest, v1.Sheet]
+}
+
+// CreateSheet calls bytebase.v1.SheetService.CreateSheet.
+func (c *sheetServiceClient) CreateSheet(ctx context.Context, req *connect.Request[v1.CreateSheetRequest]) (*connect.Response[v1.Sheet], error) {
+ return c.createSheet.CallUnary(ctx, req)
+}
+
+// BatchCreateSheets calls bytebase.v1.SheetService.BatchCreateSheets.
+func (c *sheetServiceClient) BatchCreateSheets(ctx context.Context, req *connect.Request[v1.BatchCreateSheetsRequest]) (*connect.Response[v1.BatchCreateSheetsResponse], error) {
+ return c.batchCreateSheets.CallUnary(ctx, req)
+}
+
+// GetSheet calls bytebase.v1.SheetService.GetSheet.
+func (c *sheetServiceClient) GetSheet(ctx context.Context, req *connect.Request[v1.GetSheetRequest]) (*connect.Response[v1.Sheet], error) {
+ return c.getSheet.CallUnary(ctx, req)
+}
+
+// UpdateSheet calls bytebase.v1.SheetService.UpdateSheet.
+func (c *sheetServiceClient) UpdateSheet(ctx context.Context, req *connect.Request[v1.UpdateSheetRequest]) (*connect.Response[v1.Sheet], error) {
+ return c.updateSheet.CallUnary(ctx, req)
+}
+
+// SheetServiceHandler is an implementation of the bytebase.v1.SheetService service.
+type SheetServiceHandler interface {
+ CreateSheet(context.Context, *connect.Request[v1.CreateSheetRequest]) (*connect.Response[v1.Sheet], error)
+ BatchCreateSheets(context.Context, *connect.Request[v1.BatchCreateSheetsRequest]) (*connect.Response[v1.BatchCreateSheetsResponse], error)
+ GetSheet(context.Context, *connect.Request[v1.GetSheetRequest]) (*connect.Response[v1.Sheet], error)
+ UpdateSheet(context.Context, *connect.Request[v1.UpdateSheetRequest]) (*connect.Response[v1.Sheet], error)
+}
+
+// NewSheetServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewSheetServiceHandler(svc SheetServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ sheetServiceMethods := v1.File_v1_sheet_service_proto.Services().ByName("SheetService").Methods()
+ sheetServiceCreateSheetHandler := connect.NewUnaryHandler(
+ SheetServiceCreateSheetProcedure,
+ svc.CreateSheet,
+ connect.WithSchema(sheetServiceMethods.ByName("CreateSheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sheetServiceBatchCreateSheetsHandler := connect.NewUnaryHandler(
+ SheetServiceBatchCreateSheetsProcedure,
+ svc.BatchCreateSheets,
+ connect.WithSchema(sheetServiceMethods.ByName("BatchCreateSheets")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sheetServiceGetSheetHandler := connect.NewUnaryHandler(
+ SheetServiceGetSheetProcedure,
+ svc.GetSheet,
+ connect.WithSchema(sheetServiceMethods.ByName("GetSheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sheetServiceUpdateSheetHandler := connect.NewUnaryHandler(
+ SheetServiceUpdateSheetProcedure,
+ svc.UpdateSheet,
+ connect.WithSchema(sheetServiceMethods.ByName("UpdateSheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.SheetService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case SheetServiceCreateSheetProcedure:
+ sheetServiceCreateSheetHandler.ServeHTTP(w, r)
+ case SheetServiceBatchCreateSheetsProcedure:
+ sheetServiceBatchCreateSheetsHandler.ServeHTTP(w, r)
+ case SheetServiceGetSheetProcedure:
+ sheetServiceGetSheetHandler.ServeHTTP(w, r)
+ case SheetServiceUpdateSheetProcedure:
+ sheetServiceUpdateSheetHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedSheetServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedSheetServiceHandler struct{}
+
+func (UnimplementedSheetServiceHandler) CreateSheet(context.Context, *connect.Request[v1.CreateSheetRequest]) (*connect.Response[v1.Sheet], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SheetService.CreateSheet is not implemented"))
+}
+
+func (UnimplementedSheetServiceHandler) BatchCreateSheets(context.Context, *connect.Request[v1.BatchCreateSheetsRequest]) (*connect.Response[v1.BatchCreateSheetsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SheetService.BatchCreateSheets is not implemented"))
+}
+
+func (UnimplementedSheetServiceHandler) GetSheet(context.Context, *connect.Request[v1.GetSheetRequest]) (*connect.Response[v1.Sheet], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SheetService.GetSheet is not implemented"))
+}
+
+func (UnimplementedSheetServiceHandler) UpdateSheet(context.Context, *connect.Request[v1.UpdateSheetRequest]) (*connect.Response[v1.Sheet], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SheetService.UpdateSheet is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/sql_service.connect.go b/proto/generated-go/v1/v1connect/sql_service.connect.go
new file mode 100644
index 0000000000..8d69488df0
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/sql_service.connect.go
@@ -0,0 +1,336 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/sql_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // SQLServiceName is the fully-qualified name of the SQLService service.
+ SQLServiceName = "bytebase.v1.SQLService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // SQLServiceQueryProcedure is the fully-qualified name of the SQLService's Query RPC.
+ SQLServiceQueryProcedure = "/bytebase.v1.SQLService/Query"
+ // SQLServiceAdminExecuteProcedure is the fully-qualified name of the SQLService's AdminExecute RPC.
+ SQLServiceAdminExecuteProcedure = "/bytebase.v1.SQLService/AdminExecute"
+ // SQLServiceSearchQueryHistoriesProcedure is the fully-qualified name of the SQLService's
+ // SearchQueryHistories RPC.
+ SQLServiceSearchQueryHistoriesProcedure = "/bytebase.v1.SQLService/SearchQueryHistories"
+ // SQLServiceExportProcedure is the fully-qualified name of the SQLService's Export RPC.
+ SQLServiceExportProcedure = "/bytebase.v1.SQLService/Export"
+ // SQLServiceCheckProcedure is the fully-qualified name of the SQLService's Check RPC.
+ SQLServiceCheckProcedure = "/bytebase.v1.SQLService/Check"
+ // SQLServiceParseMyBatisMapperProcedure is the fully-qualified name of the SQLService's
+ // ParseMyBatisMapper RPC.
+ SQLServiceParseMyBatisMapperProcedure = "/bytebase.v1.SQLService/ParseMyBatisMapper"
+ // SQLServicePrettyProcedure is the fully-qualified name of the SQLService's Pretty RPC.
+ SQLServicePrettyProcedure = "/bytebase.v1.SQLService/Pretty"
+ // SQLServiceDiffMetadataProcedure is the fully-qualified name of the SQLService's DiffMetadata RPC.
+ SQLServiceDiffMetadataProcedure = "/bytebase.v1.SQLService/DiffMetadata"
+ // SQLServiceAICompletionProcedure is the fully-qualified name of the SQLService's AICompletion RPC.
+ SQLServiceAICompletionProcedure = "/bytebase.v1.SQLService/AICompletion"
+)
+
+// SQLServiceClient is a client for the bytebase.v1.SQLService service.
+type SQLServiceClient interface {
+ Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
+ AdminExecute(context.Context) *connect.BidiStreamForClient[v1.AdminExecuteRequest, v1.AdminExecuteResponse]
+ // SearchQueryHistories searches query histories for the caller.
+ SearchQueryHistories(context.Context, *connect.Request[v1.SearchQueryHistoriesRequest]) (*connect.Response[v1.SearchQueryHistoriesResponse], error)
+ Export(context.Context, *connect.Request[v1.ExportRequest]) (*connect.Response[v1.ExportResponse], error)
+ Check(context.Context, *connect.Request[v1.CheckRequest]) (*connect.Response[v1.CheckResponse], error)
+ ParseMyBatisMapper(context.Context, *connect.Request[v1.ParseMyBatisMapperRequest]) (*connect.Response[v1.ParseMyBatisMapperResponse], error)
+ Pretty(context.Context, *connect.Request[v1.PrettyRequest]) (*connect.Response[v1.PrettyResponse], error)
+ DiffMetadata(context.Context, *connect.Request[v1.DiffMetadataRequest]) (*connect.Response[v1.DiffMetadataResponse], error)
+ AICompletion(context.Context, *connect.Request[v1.AICompletionRequest]) (*connect.Response[v1.AICompletionResponse], error)
+}
+
+// NewSQLServiceClient constructs a client for the bytebase.v1.SQLService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewSQLServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SQLServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ sQLServiceMethods := v1.File_v1_sql_service_proto.Services().ByName("SQLService").Methods()
+ return &sQLServiceClient{
+ query: connect.NewClient[v1.QueryRequest, v1.QueryResponse](
+ httpClient,
+ baseURL+SQLServiceQueryProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("Query")),
+ connect.WithClientOptions(opts...),
+ ),
+ adminExecute: connect.NewClient[v1.AdminExecuteRequest, v1.AdminExecuteResponse](
+ httpClient,
+ baseURL+SQLServiceAdminExecuteProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("AdminExecute")),
+ connect.WithClientOptions(opts...),
+ ),
+ searchQueryHistories: connect.NewClient[v1.SearchQueryHistoriesRequest, v1.SearchQueryHistoriesResponse](
+ httpClient,
+ baseURL+SQLServiceSearchQueryHistoriesProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("SearchQueryHistories")),
+ connect.WithClientOptions(opts...),
+ ),
+ export: connect.NewClient[v1.ExportRequest, v1.ExportResponse](
+ httpClient,
+ baseURL+SQLServiceExportProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("Export")),
+ connect.WithClientOptions(opts...),
+ ),
+ check: connect.NewClient[v1.CheckRequest, v1.CheckResponse](
+ httpClient,
+ baseURL+SQLServiceCheckProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("Check")),
+ connect.WithClientOptions(opts...),
+ ),
+ parseMyBatisMapper: connect.NewClient[v1.ParseMyBatisMapperRequest, v1.ParseMyBatisMapperResponse](
+ httpClient,
+ baseURL+SQLServiceParseMyBatisMapperProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("ParseMyBatisMapper")),
+ connect.WithClientOptions(opts...),
+ ),
+ pretty: connect.NewClient[v1.PrettyRequest, v1.PrettyResponse](
+ httpClient,
+ baseURL+SQLServicePrettyProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("Pretty")),
+ connect.WithClientOptions(opts...),
+ ),
+ diffMetadata: connect.NewClient[v1.DiffMetadataRequest, v1.DiffMetadataResponse](
+ httpClient,
+ baseURL+SQLServiceDiffMetadataProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("DiffMetadata")),
+ connect.WithClientOptions(opts...),
+ ),
+ aICompletion: connect.NewClient[v1.AICompletionRequest, v1.AICompletionResponse](
+ httpClient,
+ baseURL+SQLServiceAICompletionProcedure,
+ connect.WithSchema(sQLServiceMethods.ByName("AICompletion")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// sQLServiceClient implements SQLServiceClient.
+type sQLServiceClient struct {
+ query *connect.Client[v1.QueryRequest, v1.QueryResponse]
+ adminExecute *connect.Client[v1.AdminExecuteRequest, v1.AdminExecuteResponse]
+ searchQueryHistories *connect.Client[v1.SearchQueryHistoriesRequest, v1.SearchQueryHistoriesResponse]
+ export *connect.Client[v1.ExportRequest, v1.ExportResponse]
+ check *connect.Client[v1.CheckRequest, v1.CheckResponse]
+ parseMyBatisMapper *connect.Client[v1.ParseMyBatisMapperRequest, v1.ParseMyBatisMapperResponse]
+ pretty *connect.Client[v1.PrettyRequest, v1.PrettyResponse]
+ diffMetadata *connect.Client[v1.DiffMetadataRequest, v1.DiffMetadataResponse]
+ aICompletion *connect.Client[v1.AICompletionRequest, v1.AICompletionResponse]
+}
+
+// Query calls bytebase.v1.SQLService.Query.
+func (c *sQLServiceClient) Query(ctx context.Context, req *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error) {
+ return c.query.CallUnary(ctx, req)
+}
+
+// AdminExecute calls bytebase.v1.SQLService.AdminExecute.
+func (c *sQLServiceClient) AdminExecute(ctx context.Context) *connect.BidiStreamForClient[v1.AdminExecuteRequest, v1.AdminExecuteResponse] {
+ return c.adminExecute.CallBidiStream(ctx)
+}
+
+// SearchQueryHistories calls bytebase.v1.SQLService.SearchQueryHistories.
+func (c *sQLServiceClient) SearchQueryHistories(ctx context.Context, req *connect.Request[v1.SearchQueryHistoriesRequest]) (*connect.Response[v1.SearchQueryHistoriesResponse], error) {
+ return c.searchQueryHistories.CallUnary(ctx, req)
+}
+
+// Export calls bytebase.v1.SQLService.Export.
+func (c *sQLServiceClient) Export(ctx context.Context, req *connect.Request[v1.ExportRequest]) (*connect.Response[v1.ExportResponse], error) {
+ return c.export.CallUnary(ctx, req)
+}
+
+// Check calls bytebase.v1.SQLService.Check.
+func (c *sQLServiceClient) Check(ctx context.Context, req *connect.Request[v1.CheckRequest]) (*connect.Response[v1.CheckResponse], error) {
+ return c.check.CallUnary(ctx, req)
+}
+
+// ParseMyBatisMapper calls bytebase.v1.SQLService.ParseMyBatisMapper.
+func (c *sQLServiceClient) ParseMyBatisMapper(ctx context.Context, req *connect.Request[v1.ParseMyBatisMapperRequest]) (*connect.Response[v1.ParseMyBatisMapperResponse], error) {
+ return c.parseMyBatisMapper.CallUnary(ctx, req)
+}
+
+// Pretty calls bytebase.v1.SQLService.Pretty.
+func (c *sQLServiceClient) Pretty(ctx context.Context, req *connect.Request[v1.PrettyRequest]) (*connect.Response[v1.PrettyResponse], error) {
+ return c.pretty.CallUnary(ctx, req)
+}
+
+// DiffMetadata calls bytebase.v1.SQLService.DiffMetadata.
+func (c *sQLServiceClient) DiffMetadata(ctx context.Context, req *connect.Request[v1.DiffMetadataRequest]) (*connect.Response[v1.DiffMetadataResponse], error) {
+ return c.diffMetadata.CallUnary(ctx, req)
+}
+
+// AICompletion calls bytebase.v1.SQLService.AICompletion.
+func (c *sQLServiceClient) AICompletion(ctx context.Context, req *connect.Request[v1.AICompletionRequest]) (*connect.Response[v1.AICompletionResponse], error) {
+ return c.aICompletion.CallUnary(ctx, req)
+}
+
+// SQLServiceHandler is an implementation of the bytebase.v1.SQLService service.
+type SQLServiceHandler interface {
+ Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
+ AdminExecute(context.Context, *connect.BidiStream[v1.AdminExecuteRequest, v1.AdminExecuteResponse]) error
+ // SearchQueryHistories searches query histories for the caller.
+ SearchQueryHistories(context.Context, *connect.Request[v1.SearchQueryHistoriesRequest]) (*connect.Response[v1.SearchQueryHistoriesResponse], error)
+ Export(context.Context, *connect.Request[v1.ExportRequest]) (*connect.Response[v1.ExportResponse], error)
+ Check(context.Context, *connect.Request[v1.CheckRequest]) (*connect.Response[v1.CheckResponse], error)
+ ParseMyBatisMapper(context.Context, *connect.Request[v1.ParseMyBatisMapperRequest]) (*connect.Response[v1.ParseMyBatisMapperResponse], error)
+ Pretty(context.Context, *connect.Request[v1.PrettyRequest]) (*connect.Response[v1.PrettyResponse], error)
+ DiffMetadata(context.Context, *connect.Request[v1.DiffMetadataRequest]) (*connect.Response[v1.DiffMetadataResponse], error)
+ AICompletion(context.Context, *connect.Request[v1.AICompletionRequest]) (*connect.Response[v1.AICompletionResponse], error)
+}
+
+// NewSQLServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewSQLServiceHandler(svc SQLServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ sQLServiceMethods := v1.File_v1_sql_service_proto.Services().ByName("SQLService").Methods()
+ sQLServiceQueryHandler := connect.NewUnaryHandler(
+ SQLServiceQueryProcedure,
+ svc.Query,
+ connect.WithSchema(sQLServiceMethods.ByName("Query")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceAdminExecuteHandler := connect.NewBidiStreamHandler(
+ SQLServiceAdminExecuteProcedure,
+ svc.AdminExecute,
+ connect.WithSchema(sQLServiceMethods.ByName("AdminExecute")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceSearchQueryHistoriesHandler := connect.NewUnaryHandler(
+ SQLServiceSearchQueryHistoriesProcedure,
+ svc.SearchQueryHistories,
+ connect.WithSchema(sQLServiceMethods.ByName("SearchQueryHistories")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceExportHandler := connect.NewUnaryHandler(
+ SQLServiceExportProcedure,
+ svc.Export,
+ connect.WithSchema(sQLServiceMethods.ByName("Export")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceCheckHandler := connect.NewUnaryHandler(
+ SQLServiceCheckProcedure,
+ svc.Check,
+ connect.WithSchema(sQLServiceMethods.ByName("Check")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceParseMyBatisMapperHandler := connect.NewUnaryHandler(
+ SQLServiceParseMyBatisMapperProcedure,
+ svc.ParseMyBatisMapper,
+ connect.WithSchema(sQLServiceMethods.ByName("ParseMyBatisMapper")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServicePrettyHandler := connect.NewUnaryHandler(
+ SQLServicePrettyProcedure,
+ svc.Pretty,
+ connect.WithSchema(sQLServiceMethods.ByName("Pretty")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceDiffMetadataHandler := connect.NewUnaryHandler(
+ SQLServiceDiffMetadataProcedure,
+ svc.DiffMetadata,
+ connect.WithSchema(sQLServiceMethods.ByName("DiffMetadata")),
+ connect.WithHandlerOptions(opts...),
+ )
+ sQLServiceAICompletionHandler := connect.NewUnaryHandler(
+ SQLServiceAICompletionProcedure,
+ svc.AICompletion,
+ connect.WithSchema(sQLServiceMethods.ByName("AICompletion")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.SQLService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case SQLServiceQueryProcedure:
+ sQLServiceQueryHandler.ServeHTTP(w, r)
+ case SQLServiceAdminExecuteProcedure:
+ sQLServiceAdminExecuteHandler.ServeHTTP(w, r)
+ case SQLServiceSearchQueryHistoriesProcedure:
+ sQLServiceSearchQueryHistoriesHandler.ServeHTTP(w, r)
+ case SQLServiceExportProcedure:
+ sQLServiceExportHandler.ServeHTTP(w, r)
+ case SQLServiceCheckProcedure:
+ sQLServiceCheckHandler.ServeHTTP(w, r)
+ case SQLServiceParseMyBatisMapperProcedure:
+ sQLServiceParseMyBatisMapperHandler.ServeHTTP(w, r)
+ case SQLServicePrettyProcedure:
+ sQLServicePrettyHandler.ServeHTTP(w, r)
+ case SQLServiceDiffMetadataProcedure:
+ sQLServiceDiffMetadataHandler.ServeHTTP(w, r)
+ case SQLServiceAICompletionProcedure:
+ sQLServiceAICompletionHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedSQLServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedSQLServiceHandler struct{}
+
+func (UnimplementedSQLServiceHandler) Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.Query is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) AdminExecute(context.Context, *connect.BidiStream[v1.AdminExecuteRequest, v1.AdminExecuteResponse]) error {
+ return connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.AdminExecute is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) SearchQueryHistories(context.Context, *connect.Request[v1.SearchQueryHistoriesRequest]) (*connect.Response[v1.SearchQueryHistoriesResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.SearchQueryHistories is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) Export(context.Context, *connect.Request[v1.ExportRequest]) (*connect.Response[v1.ExportResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.Export is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) Check(context.Context, *connect.Request[v1.CheckRequest]) (*connect.Response[v1.CheckResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.Check is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) ParseMyBatisMapper(context.Context, *connect.Request[v1.ParseMyBatisMapperRequest]) (*connect.Response[v1.ParseMyBatisMapperResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.ParseMyBatisMapper is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) Pretty(context.Context, *connect.Request[v1.PrettyRequest]) (*connect.Response[v1.PrettyResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.Pretty is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) DiffMetadata(context.Context, *connect.Request[v1.DiffMetadataRequest]) (*connect.Response[v1.DiffMetadataResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.DiffMetadata is not implemented"))
+}
+
+func (UnimplementedSQLServiceHandler) AICompletion(context.Context, *connect.Request[v1.AICompletionRequest]) (*connect.Response[v1.AICompletionResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SQLService.AICompletion is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/subscription_service.connect.go b/proto/generated-go/v1/v1connect/subscription_service.connect.go
new file mode 100644
index 0000000000..c92b88ce59
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/subscription_service.connect.go
@@ -0,0 +1,138 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/subscription_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // SubscriptionServiceName is the fully-qualified name of the SubscriptionService service.
+ SubscriptionServiceName = "bytebase.v1.SubscriptionService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // SubscriptionServiceGetSubscriptionProcedure is the fully-qualified name of the
+ // SubscriptionService's GetSubscription RPC.
+ SubscriptionServiceGetSubscriptionProcedure = "/bytebase.v1.SubscriptionService/GetSubscription"
+ // SubscriptionServiceUpdateSubscriptionProcedure is the fully-qualified name of the
+ // SubscriptionService's UpdateSubscription RPC.
+ SubscriptionServiceUpdateSubscriptionProcedure = "/bytebase.v1.SubscriptionService/UpdateSubscription"
+)
+
+// SubscriptionServiceClient is a client for the bytebase.v1.SubscriptionService service.
+type SubscriptionServiceClient interface {
+ GetSubscription(context.Context, *connect.Request[v1.GetSubscriptionRequest]) (*connect.Response[v1.Subscription], error)
+ UpdateSubscription(context.Context, *connect.Request[v1.UpdateSubscriptionRequest]) (*connect.Response[v1.Subscription], error)
+}
+
+// NewSubscriptionServiceClient constructs a client for the bytebase.v1.SubscriptionService service.
+// By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped
+// responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewSubscriptionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SubscriptionServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ subscriptionServiceMethods := v1.File_v1_subscription_service_proto.Services().ByName("SubscriptionService").Methods()
+ return &subscriptionServiceClient{
+ getSubscription: connect.NewClient[v1.GetSubscriptionRequest, v1.Subscription](
+ httpClient,
+ baseURL+SubscriptionServiceGetSubscriptionProcedure,
+ connect.WithSchema(subscriptionServiceMethods.ByName("GetSubscription")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateSubscription: connect.NewClient[v1.UpdateSubscriptionRequest, v1.Subscription](
+ httpClient,
+ baseURL+SubscriptionServiceUpdateSubscriptionProcedure,
+ connect.WithSchema(subscriptionServiceMethods.ByName("UpdateSubscription")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// subscriptionServiceClient implements SubscriptionServiceClient.
+type subscriptionServiceClient struct {
+ getSubscription *connect.Client[v1.GetSubscriptionRequest, v1.Subscription]
+ updateSubscription *connect.Client[v1.UpdateSubscriptionRequest, v1.Subscription]
+}
+
+// GetSubscription calls bytebase.v1.SubscriptionService.GetSubscription.
+func (c *subscriptionServiceClient) GetSubscription(ctx context.Context, req *connect.Request[v1.GetSubscriptionRequest]) (*connect.Response[v1.Subscription], error) {
+ return c.getSubscription.CallUnary(ctx, req)
+}
+
+// UpdateSubscription calls bytebase.v1.SubscriptionService.UpdateSubscription.
+func (c *subscriptionServiceClient) UpdateSubscription(ctx context.Context, req *connect.Request[v1.UpdateSubscriptionRequest]) (*connect.Response[v1.Subscription], error) {
+ return c.updateSubscription.CallUnary(ctx, req)
+}
+
+// SubscriptionServiceHandler is an implementation of the bytebase.v1.SubscriptionService service.
+type SubscriptionServiceHandler interface {
+ GetSubscription(context.Context, *connect.Request[v1.GetSubscriptionRequest]) (*connect.Response[v1.Subscription], error)
+ UpdateSubscription(context.Context, *connect.Request[v1.UpdateSubscriptionRequest]) (*connect.Response[v1.Subscription], error)
+}
+
+// NewSubscriptionServiceHandler builds an HTTP handler from the service implementation. It returns
+// the path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewSubscriptionServiceHandler(svc SubscriptionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ subscriptionServiceMethods := v1.File_v1_subscription_service_proto.Services().ByName("SubscriptionService").Methods()
+ subscriptionServiceGetSubscriptionHandler := connect.NewUnaryHandler(
+ SubscriptionServiceGetSubscriptionProcedure,
+ svc.GetSubscription,
+ connect.WithSchema(subscriptionServiceMethods.ByName("GetSubscription")),
+ connect.WithHandlerOptions(opts...),
+ )
+ subscriptionServiceUpdateSubscriptionHandler := connect.NewUnaryHandler(
+ SubscriptionServiceUpdateSubscriptionProcedure,
+ svc.UpdateSubscription,
+ connect.WithSchema(subscriptionServiceMethods.ByName("UpdateSubscription")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.SubscriptionService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case SubscriptionServiceGetSubscriptionProcedure:
+ subscriptionServiceGetSubscriptionHandler.ServeHTTP(w, r)
+ case SubscriptionServiceUpdateSubscriptionProcedure:
+ subscriptionServiceUpdateSubscriptionHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedSubscriptionServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedSubscriptionServiceHandler struct{}
+
+func (UnimplementedSubscriptionServiceHandler) GetSubscription(context.Context, *connect.Request[v1.GetSubscriptionRequest]) (*connect.Response[v1.Subscription], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SubscriptionService.GetSubscription is not implemented"))
+}
+
+func (UnimplementedSubscriptionServiceHandler) UpdateSubscription(context.Context, *connect.Request[v1.UpdateSubscriptionRequest]) (*connect.Response[v1.Subscription], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SubscriptionService.UpdateSubscription is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/user_service.connect.go b/proto/generated-go/v1/v1connect/user_service.connect.go
new file mode 100644
index 0000000000..5fda3cbc49
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/user_service.connect.go
@@ -0,0 +1,336 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/user_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // UserServiceName is the fully-qualified name of the UserService service.
+ UserServiceName = "bytebase.v1.UserService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // UserServiceGetUserProcedure is the fully-qualified name of the UserService's GetUser RPC.
+ UserServiceGetUserProcedure = "/bytebase.v1.UserService/GetUser"
+ // UserServiceBatchGetUsersProcedure is the fully-qualified name of the UserService's BatchGetUsers
+ // RPC.
+ UserServiceBatchGetUsersProcedure = "/bytebase.v1.UserService/BatchGetUsers"
+ // UserServiceGetCurrentUserProcedure is the fully-qualified name of the UserService's
+ // GetCurrentUser RPC.
+ UserServiceGetCurrentUserProcedure = "/bytebase.v1.UserService/GetCurrentUser"
+ // UserServiceListUsersProcedure is the fully-qualified name of the UserService's ListUsers RPC.
+ UserServiceListUsersProcedure = "/bytebase.v1.UserService/ListUsers"
+ // UserServiceCreateUserProcedure is the fully-qualified name of the UserService's CreateUser RPC.
+ UserServiceCreateUserProcedure = "/bytebase.v1.UserService/CreateUser"
+ // UserServiceUpdateUserProcedure is the fully-qualified name of the UserService's UpdateUser RPC.
+ UserServiceUpdateUserProcedure = "/bytebase.v1.UserService/UpdateUser"
+ // UserServiceDeleteUserProcedure is the fully-qualified name of the UserService's DeleteUser RPC.
+ UserServiceDeleteUserProcedure = "/bytebase.v1.UserService/DeleteUser"
+ // UserServiceUndeleteUserProcedure is the fully-qualified name of the UserService's UndeleteUser
+ // RPC.
+ UserServiceUndeleteUserProcedure = "/bytebase.v1.UserService/UndeleteUser"
+)
+
+// UserServiceClient is a client for the bytebase.v1.UserService service.
+type UserServiceClient interface {
+ // Get the user.
+ // Any authenticated user can get the user.
+ GetUser(context.Context, *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.User], error)
+ // Get the users in batch.
+ // Any authenticated user can batch get users.
+ BatchGetUsers(context.Context, *connect.Request[v1.BatchGetUsersRequest]) (*connect.Response[v1.BatchGetUsersResponse], error)
+ // Get the current authenticated user.
+ GetCurrentUser(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.User], error)
+ // List all users.
+ // Any authenticated user can list users.
+ ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
+ // Create a user.
+ // When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user.
+ // Otherwise, any unauthenticated user can create a user.
+ CreateUser(context.Context, *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.User], error)
+ // Only the user itself and the user with bb.users.update permission on the workspace can update the user.
+ UpdateUser(context.Context, *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.User], error)
+ // Only the user with bb.users.delete permission on the workspace can delete the user.
+ // The last remaining workspace admin cannot be deleted.
+ DeleteUser(context.Context, *connect.Request[v1.DeleteUserRequest]) (*connect.Response[emptypb.Empty], error)
+ // Only the user with bb.users.undelete permission on the workspace can undelete the user.
+ UndeleteUser(context.Context, *connect.Request[v1.UndeleteUserRequest]) (*connect.Response[v1.User], error)
+}
+
+// NewUserServiceClient constructs a client for the bytebase.v1.UserService service. By default, it
+// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends
+// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or
+// connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ userServiceMethods := v1.File_v1_user_service_proto.Services().ByName("UserService").Methods()
+ return &userServiceClient{
+ getUser: connect.NewClient[v1.GetUserRequest, v1.User](
+ httpClient,
+ baseURL+UserServiceGetUserProcedure,
+ connect.WithSchema(userServiceMethods.ByName("GetUser")),
+ connect.WithClientOptions(opts...),
+ ),
+ batchGetUsers: connect.NewClient[v1.BatchGetUsersRequest, v1.BatchGetUsersResponse](
+ httpClient,
+ baseURL+UserServiceBatchGetUsersProcedure,
+ connect.WithSchema(userServiceMethods.ByName("BatchGetUsers")),
+ connect.WithClientOptions(opts...),
+ ),
+ getCurrentUser: connect.NewClient[emptypb.Empty, v1.User](
+ httpClient,
+ baseURL+UserServiceGetCurrentUserProcedure,
+ connect.WithSchema(userServiceMethods.ByName("GetCurrentUser")),
+ connect.WithClientOptions(opts...),
+ ),
+ listUsers: connect.NewClient[v1.ListUsersRequest, v1.ListUsersResponse](
+ httpClient,
+ baseURL+UserServiceListUsersProcedure,
+ connect.WithSchema(userServiceMethods.ByName("ListUsers")),
+ connect.WithClientOptions(opts...),
+ ),
+ createUser: connect.NewClient[v1.CreateUserRequest, v1.User](
+ httpClient,
+ baseURL+UserServiceCreateUserProcedure,
+ connect.WithSchema(userServiceMethods.ByName("CreateUser")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateUser: connect.NewClient[v1.UpdateUserRequest, v1.User](
+ httpClient,
+ baseURL+UserServiceUpdateUserProcedure,
+ connect.WithSchema(userServiceMethods.ByName("UpdateUser")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteUser: connect.NewClient[v1.DeleteUserRequest, emptypb.Empty](
+ httpClient,
+ baseURL+UserServiceDeleteUserProcedure,
+ connect.WithSchema(userServiceMethods.ByName("DeleteUser")),
+ connect.WithClientOptions(opts...),
+ ),
+ undeleteUser: connect.NewClient[v1.UndeleteUserRequest, v1.User](
+ httpClient,
+ baseURL+UserServiceUndeleteUserProcedure,
+ connect.WithSchema(userServiceMethods.ByName("UndeleteUser")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// userServiceClient implements UserServiceClient.
+type userServiceClient struct {
+ getUser *connect.Client[v1.GetUserRequest, v1.User]
+ batchGetUsers *connect.Client[v1.BatchGetUsersRequest, v1.BatchGetUsersResponse]
+ getCurrentUser *connect.Client[emptypb.Empty, v1.User]
+ listUsers *connect.Client[v1.ListUsersRequest, v1.ListUsersResponse]
+ createUser *connect.Client[v1.CreateUserRequest, v1.User]
+ updateUser *connect.Client[v1.UpdateUserRequest, v1.User]
+ deleteUser *connect.Client[v1.DeleteUserRequest, emptypb.Empty]
+ undeleteUser *connect.Client[v1.UndeleteUserRequest, v1.User]
+}
+
+// GetUser calls bytebase.v1.UserService.GetUser.
+func (c *userServiceClient) GetUser(ctx context.Context, req *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.User], error) {
+ return c.getUser.CallUnary(ctx, req)
+}
+
+// BatchGetUsers calls bytebase.v1.UserService.BatchGetUsers.
+func (c *userServiceClient) BatchGetUsers(ctx context.Context, req *connect.Request[v1.BatchGetUsersRequest]) (*connect.Response[v1.BatchGetUsersResponse], error) {
+ return c.batchGetUsers.CallUnary(ctx, req)
+}
+
+// GetCurrentUser calls bytebase.v1.UserService.GetCurrentUser.
+func (c *userServiceClient) GetCurrentUser(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[v1.User], error) {
+ return c.getCurrentUser.CallUnary(ctx, req)
+}
+
+// ListUsers calls bytebase.v1.UserService.ListUsers.
+func (c *userServiceClient) ListUsers(ctx context.Context, req *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error) {
+ return c.listUsers.CallUnary(ctx, req)
+}
+
+// CreateUser calls bytebase.v1.UserService.CreateUser.
+func (c *userServiceClient) CreateUser(ctx context.Context, req *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.User], error) {
+ return c.createUser.CallUnary(ctx, req)
+}
+
+// UpdateUser calls bytebase.v1.UserService.UpdateUser.
+func (c *userServiceClient) UpdateUser(ctx context.Context, req *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.User], error) {
+ return c.updateUser.CallUnary(ctx, req)
+}
+
+// DeleteUser calls bytebase.v1.UserService.DeleteUser.
+func (c *userServiceClient) DeleteUser(ctx context.Context, req *connect.Request[v1.DeleteUserRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteUser.CallUnary(ctx, req)
+}
+
+// UndeleteUser calls bytebase.v1.UserService.UndeleteUser.
+func (c *userServiceClient) UndeleteUser(ctx context.Context, req *connect.Request[v1.UndeleteUserRequest]) (*connect.Response[v1.User], error) {
+ return c.undeleteUser.CallUnary(ctx, req)
+}
+
+// UserServiceHandler is an implementation of the bytebase.v1.UserService service.
+type UserServiceHandler interface {
+ // Get the user.
+ // Any authenticated user can get the user.
+ GetUser(context.Context, *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.User], error)
+ // Get the users in batch.
+ // Any authenticated user can batch get users.
+ BatchGetUsers(context.Context, *connect.Request[v1.BatchGetUsersRequest]) (*connect.Response[v1.BatchGetUsersResponse], error)
+ // Get the current authenticated user.
+ GetCurrentUser(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.User], error)
+ // List all users.
+ // Any authenticated user can list users.
+ ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
+ // Create a user.
+ // When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user.
+ // Otherwise, any unauthenticated user can create a user.
+ CreateUser(context.Context, *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.User], error)
+ // Only the user itself and the user with bb.users.update permission on the workspace can update the user.
+ UpdateUser(context.Context, *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.User], error)
+ // Only the user with bb.users.delete permission on the workspace can delete the user.
+ // The last remaining workspace admin cannot be deleted.
+ DeleteUser(context.Context, *connect.Request[v1.DeleteUserRequest]) (*connect.Response[emptypb.Empty], error)
+ // Only the user with bb.users.undelete permission on the workspace can undelete the user.
+ UndeleteUser(context.Context, *connect.Request[v1.UndeleteUserRequest]) (*connect.Response[v1.User], error)
+}
+
+// NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path
+// on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ userServiceMethods := v1.File_v1_user_service_proto.Services().ByName("UserService").Methods()
+ userServiceGetUserHandler := connect.NewUnaryHandler(
+ UserServiceGetUserProcedure,
+ svc.GetUser,
+ connect.WithSchema(userServiceMethods.ByName("GetUser")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceBatchGetUsersHandler := connect.NewUnaryHandler(
+ UserServiceBatchGetUsersProcedure,
+ svc.BatchGetUsers,
+ connect.WithSchema(userServiceMethods.ByName("BatchGetUsers")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceGetCurrentUserHandler := connect.NewUnaryHandler(
+ UserServiceGetCurrentUserProcedure,
+ svc.GetCurrentUser,
+ connect.WithSchema(userServiceMethods.ByName("GetCurrentUser")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceListUsersHandler := connect.NewUnaryHandler(
+ UserServiceListUsersProcedure,
+ svc.ListUsers,
+ connect.WithSchema(userServiceMethods.ByName("ListUsers")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceCreateUserHandler := connect.NewUnaryHandler(
+ UserServiceCreateUserProcedure,
+ svc.CreateUser,
+ connect.WithSchema(userServiceMethods.ByName("CreateUser")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceUpdateUserHandler := connect.NewUnaryHandler(
+ UserServiceUpdateUserProcedure,
+ svc.UpdateUser,
+ connect.WithSchema(userServiceMethods.ByName("UpdateUser")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceDeleteUserHandler := connect.NewUnaryHandler(
+ UserServiceDeleteUserProcedure,
+ svc.DeleteUser,
+ connect.WithSchema(userServiceMethods.ByName("DeleteUser")),
+ connect.WithHandlerOptions(opts...),
+ )
+ userServiceUndeleteUserHandler := connect.NewUnaryHandler(
+ UserServiceUndeleteUserProcedure,
+ svc.UndeleteUser,
+ connect.WithSchema(userServiceMethods.ByName("UndeleteUser")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.UserService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case UserServiceGetUserProcedure:
+ userServiceGetUserHandler.ServeHTTP(w, r)
+ case UserServiceBatchGetUsersProcedure:
+ userServiceBatchGetUsersHandler.ServeHTTP(w, r)
+ case UserServiceGetCurrentUserProcedure:
+ userServiceGetCurrentUserHandler.ServeHTTP(w, r)
+ case UserServiceListUsersProcedure:
+ userServiceListUsersHandler.ServeHTTP(w, r)
+ case UserServiceCreateUserProcedure:
+ userServiceCreateUserHandler.ServeHTTP(w, r)
+ case UserServiceUpdateUserProcedure:
+ userServiceUpdateUserHandler.ServeHTTP(w, r)
+ case UserServiceDeleteUserProcedure:
+ userServiceDeleteUserHandler.ServeHTTP(w, r)
+ case UserServiceUndeleteUserProcedure:
+ userServiceUndeleteUserHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedUserServiceHandler struct{}
+
+func (UnimplementedUserServiceHandler) GetUser(context.Context, *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.GetUser is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) BatchGetUsers(context.Context, *connect.Request[v1.BatchGetUsersRequest]) (*connect.Response[v1.BatchGetUsersResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.BatchGetUsers is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) GetCurrentUser(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.GetCurrentUser is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.ListUsers is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) CreateUser(context.Context, *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.CreateUser is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) UpdateUser(context.Context, *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.UpdateUser is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) DeleteUser(context.Context, *connect.Request[v1.DeleteUserRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.DeleteUser is not implemented"))
+}
+
+func (UnimplementedUserServiceHandler) UndeleteUser(context.Context, *connect.Request[v1.UndeleteUserRequest]) (*connect.Response[v1.User], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.UserService.UndeleteUser is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/worksheet_service.connect.go b/proto/generated-go/v1/v1connect/worksheet_service.connect.go
new file mode 100644
index 0000000000..14579839b6
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/worksheet_service.connect.go
@@ -0,0 +1,291 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/worksheet_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // WorksheetServiceName is the fully-qualified name of the WorksheetService service.
+ WorksheetServiceName = "bytebase.v1.WorksheetService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // WorksheetServiceCreateWorksheetProcedure is the fully-qualified name of the WorksheetService's
+ // CreateWorksheet RPC.
+ WorksheetServiceCreateWorksheetProcedure = "/bytebase.v1.WorksheetService/CreateWorksheet"
+ // WorksheetServiceGetWorksheetProcedure is the fully-qualified name of the WorksheetService's
+ // GetWorksheet RPC.
+ WorksheetServiceGetWorksheetProcedure = "/bytebase.v1.WorksheetService/GetWorksheet"
+ // WorksheetServiceSearchWorksheetsProcedure is the fully-qualified name of the WorksheetService's
+ // SearchWorksheets RPC.
+ WorksheetServiceSearchWorksheetsProcedure = "/bytebase.v1.WorksheetService/SearchWorksheets"
+ // WorksheetServiceUpdateWorksheetProcedure is the fully-qualified name of the WorksheetService's
+ // UpdateWorksheet RPC.
+ WorksheetServiceUpdateWorksheetProcedure = "/bytebase.v1.WorksheetService/UpdateWorksheet"
+ // WorksheetServiceUpdateWorksheetOrganizerProcedure is the fully-qualified name of the
+ // WorksheetService's UpdateWorksheetOrganizer RPC.
+ WorksheetServiceUpdateWorksheetOrganizerProcedure = "/bytebase.v1.WorksheetService/UpdateWorksheetOrganizer"
+ // WorksheetServiceDeleteWorksheetProcedure is the fully-qualified name of the WorksheetService's
+ // DeleteWorksheet RPC.
+ WorksheetServiceDeleteWorksheetProcedure = "/bytebase.v1.WorksheetService/DeleteWorksheet"
+)
+
+// WorksheetServiceClient is a client for the bytebase.v1.WorksheetService service.
+type WorksheetServiceClient interface {
+ // Create a personal worksheet used in SQL Editor.
+ CreateWorksheet(context.Context, *connect.Request[v1.CreateWorksheetRequest]) (*connect.Response[v1.Worksheet], error)
+ // Get a worksheet by name.
+ // The users can access this method if,
+ // - they are the creator of the worksheet;
+ // - they have bb.worksheets.get permission on the workspace;
+ // - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
+ GetWorksheet(context.Context, *connect.Request[v1.GetWorksheetRequest]) (*connect.Response[v1.Worksheet], error)
+ // Search for worksheets.
+ // This is used for finding my worksheets or worksheets shared by other people.
+ // The sheet accessibility is the same as GetWorksheet().
+ SearchWorksheets(context.Context, *connect.Request[v1.SearchWorksheetsRequest]) (*connect.Response[v1.SearchWorksheetsResponse], error)
+ // Update a worksheet.
+ // The users can access this method if,
+ // - they are the creator of the worksheet;
+ // - they have bb.worksheets.manage permission on the workspace;
+ // - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
+ UpdateWorksheet(context.Context, *connect.Request[v1.UpdateWorksheetRequest]) (*connect.Response[v1.Worksheet], error)
+ // Update the organizer of a worksheet.
+ // The access is the same as UpdateWorksheet method.
+ UpdateWorksheetOrganizer(context.Context, *connect.Request[v1.UpdateWorksheetOrganizerRequest]) (*connect.Response[v1.WorksheetOrganizer], error)
+ // Delete a worksheet.
+ // The access is the same as UpdateWorksheet method.
+ DeleteWorksheet(context.Context, *connect.Request[v1.DeleteWorksheetRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewWorksheetServiceClient constructs a client for the bytebase.v1.WorksheetService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewWorksheetServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WorksheetServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ worksheetServiceMethods := v1.File_v1_worksheet_service_proto.Services().ByName("WorksheetService").Methods()
+ return &worksheetServiceClient{
+ createWorksheet: connect.NewClient[v1.CreateWorksheetRequest, v1.Worksheet](
+ httpClient,
+ baseURL+WorksheetServiceCreateWorksheetProcedure,
+ connect.WithSchema(worksheetServiceMethods.ByName("CreateWorksheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ getWorksheet: connect.NewClient[v1.GetWorksheetRequest, v1.Worksheet](
+ httpClient,
+ baseURL+WorksheetServiceGetWorksheetProcedure,
+ connect.WithSchema(worksheetServiceMethods.ByName("GetWorksheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ searchWorksheets: connect.NewClient[v1.SearchWorksheetsRequest, v1.SearchWorksheetsResponse](
+ httpClient,
+ baseURL+WorksheetServiceSearchWorksheetsProcedure,
+ connect.WithSchema(worksheetServiceMethods.ByName("SearchWorksheets")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateWorksheet: connect.NewClient[v1.UpdateWorksheetRequest, v1.Worksheet](
+ httpClient,
+ baseURL+WorksheetServiceUpdateWorksheetProcedure,
+ connect.WithSchema(worksheetServiceMethods.ByName("UpdateWorksheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ updateWorksheetOrganizer: connect.NewClient[v1.UpdateWorksheetOrganizerRequest, v1.WorksheetOrganizer](
+ httpClient,
+ baseURL+WorksheetServiceUpdateWorksheetOrganizerProcedure,
+ connect.WithSchema(worksheetServiceMethods.ByName("UpdateWorksheetOrganizer")),
+ connect.WithClientOptions(opts...),
+ ),
+ deleteWorksheet: connect.NewClient[v1.DeleteWorksheetRequest, emptypb.Empty](
+ httpClient,
+ baseURL+WorksheetServiceDeleteWorksheetProcedure,
+ connect.WithSchema(worksheetServiceMethods.ByName("DeleteWorksheet")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// worksheetServiceClient implements WorksheetServiceClient.
+type worksheetServiceClient struct {
+ createWorksheet *connect.Client[v1.CreateWorksheetRequest, v1.Worksheet]
+ getWorksheet *connect.Client[v1.GetWorksheetRequest, v1.Worksheet]
+ searchWorksheets *connect.Client[v1.SearchWorksheetsRequest, v1.SearchWorksheetsResponse]
+ updateWorksheet *connect.Client[v1.UpdateWorksheetRequest, v1.Worksheet]
+ updateWorksheetOrganizer *connect.Client[v1.UpdateWorksheetOrganizerRequest, v1.WorksheetOrganizer]
+ deleteWorksheet *connect.Client[v1.DeleteWorksheetRequest, emptypb.Empty]
+}
+
+// CreateWorksheet calls bytebase.v1.WorksheetService.CreateWorksheet.
+func (c *worksheetServiceClient) CreateWorksheet(ctx context.Context, req *connect.Request[v1.CreateWorksheetRequest]) (*connect.Response[v1.Worksheet], error) {
+ return c.createWorksheet.CallUnary(ctx, req)
+}
+
+// GetWorksheet calls bytebase.v1.WorksheetService.GetWorksheet.
+func (c *worksheetServiceClient) GetWorksheet(ctx context.Context, req *connect.Request[v1.GetWorksheetRequest]) (*connect.Response[v1.Worksheet], error) {
+ return c.getWorksheet.CallUnary(ctx, req)
+}
+
+// SearchWorksheets calls bytebase.v1.WorksheetService.SearchWorksheets.
+func (c *worksheetServiceClient) SearchWorksheets(ctx context.Context, req *connect.Request[v1.SearchWorksheetsRequest]) (*connect.Response[v1.SearchWorksheetsResponse], error) {
+ return c.searchWorksheets.CallUnary(ctx, req)
+}
+
+// UpdateWorksheet calls bytebase.v1.WorksheetService.UpdateWorksheet.
+func (c *worksheetServiceClient) UpdateWorksheet(ctx context.Context, req *connect.Request[v1.UpdateWorksheetRequest]) (*connect.Response[v1.Worksheet], error) {
+ return c.updateWorksheet.CallUnary(ctx, req)
+}
+
+// UpdateWorksheetOrganizer calls bytebase.v1.WorksheetService.UpdateWorksheetOrganizer.
+func (c *worksheetServiceClient) UpdateWorksheetOrganizer(ctx context.Context, req *connect.Request[v1.UpdateWorksheetOrganizerRequest]) (*connect.Response[v1.WorksheetOrganizer], error) {
+ return c.updateWorksheetOrganizer.CallUnary(ctx, req)
+}
+
+// DeleteWorksheet calls bytebase.v1.WorksheetService.DeleteWorksheet.
+func (c *worksheetServiceClient) DeleteWorksheet(ctx context.Context, req *connect.Request[v1.DeleteWorksheetRequest]) (*connect.Response[emptypb.Empty], error) {
+ return c.deleteWorksheet.CallUnary(ctx, req)
+}
+
+// WorksheetServiceHandler is an implementation of the bytebase.v1.WorksheetService service.
+type WorksheetServiceHandler interface {
+ // Create a personal worksheet used in SQL Editor.
+ CreateWorksheet(context.Context, *connect.Request[v1.CreateWorksheetRequest]) (*connect.Response[v1.Worksheet], error)
+ // Get a worksheet by name.
+ // The users can access this method if,
+ // - they are the creator of the worksheet;
+ // - they have bb.worksheets.get permission on the workspace;
+ // - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
+ GetWorksheet(context.Context, *connect.Request[v1.GetWorksheetRequest]) (*connect.Response[v1.Worksheet], error)
+ // Search for worksheets.
+ // This is used for finding my worksheets or worksheets shared by other people.
+ // The sheet accessibility is the same as GetWorksheet().
+ SearchWorksheets(context.Context, *connect.Request[v1.SearchWorksheetsRequest]) (*connect.Response[v1.SearchWorksheetsResponse], error)
+ // Update a worksheet.
+ // The users can access this method if,
+ // - they are the creator of the worksheet;
+ // - they have bb.worksheets.manage permission on the workspace;
+ // - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
+ UpdateWorksheet(context.Context, *connect.Request[v1.UpdateWorksheetRequest]) (*connect.Response[v1.Worksheet], error)
+ // Update the organizer of a worksheet.
+ // The access is the same as UpdateWorksheet method.
+ UpdateWorksheetOrganizer(context.Context, *connect.Request[v1.UpdateWorksheetOrganizerRequest]) (*connect.Response[v1.WorksheetOrganizer], error)
+ // Delete a worksheet.
+ // The access is the same as UpdateWorksheet method.
+ DeleteWorksheet(context.Context, *connect.Request[v1.DeleteWorksheetRequest]) (*connect.Response[emptypb.Empty], error)
+}
+
+// NewWorksheetServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewWorksheetServiceHandler(svc WorksheetServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ worksheetServiceMethods := v1.File_v1_worksheet_service_proto.Services().ByName("WorksheetService").Methods()
+ worksheetServiceCreateWorksheetHandler := connect.NewUnaryHandler(
+ WorksheetServiceCreateWorksheetProcedure,
+ svc.CreateWorksheet,
+ connect.WithSchema(worksheetServiceMethods.ByName("CreateWorksheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ worksheetServiceGetWorksheetHandler := connect.NewUnaryHandler(
+ WorksheetServiceGetWorksheetProcedure,
+ svc.GetWorksheet,
+ connect.WithSchema(worksheetServiceMethods.ByName("GetWorksheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ worksheetServiceSearchWorksheetsHandler := connect.NewUnaryHandler(
+ WorksheetServiceSearchWorksheetsProcedure,
+ svc.SearchWorksheets,
+ connect.WithSchema(worksheetServiceMethods.ByName("SearchWorksheets")),
+ connect.WithHandlerOptions(opts...),
+ )
+ worksheetServiceUpdateWorksheetHandler := connect.NewUnaryHandler(
+ WorksheetServiceUpdateWorksheetProcedure,
+ svc.UpdateWorksheet,
+ connect.WithSchema(worksheetServiceMethods.ByName("UpdateWorksheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ worksheetServiceUpdateWorksheetOrganizerHandler := connect.NewUnaryHandler(
+ WorksheetServiceUpdateWorksheetOrganizerProcedure,
+ svc.UpdateWorksheetOrganizer,
+ connect.WithSchema(worksheetServiceMethods.ByName("UpdateWorksheetOrganizer")),
+ connect.WithHandlerOptions(opts...),
+ )
+ worksheetServiceDeleteWorksheetHandler := connect.NewUnaryHandler(
+ WorksheetServiceDeleteWorksheetProcedure,
+ svc.DeleteWorksheet,
+ connect.WithSchema(worksheetServiceMethods.ByName("DeleteWorksheet")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.WorksheetService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case WorksheetServiceCreateWorksheetProcedure:
+ worksheetServiceCreateWorksheetHandler.ServeHTTP(w, r)
+ case WorksheetServiceGetWorksheetProcedure:
+ worksheetServiceGetWorksheetHandler.ServeHTTP(w, r)
+ case WorksheetServiceSearchWorksheetsProcedure:
+ worksheetServiceSearchWorksheetsHandler.ServeHTTP(w, r)
+ case WorksheetServiceUpdateWorksheetProcedure:
+ worksheetServiceUpdateWorksheetHandler.ServeHTTP(w, r)
+ case WorksheetServiceUpdateWorksheetOrganizerProcedure:
+ worksheetServiceUpdateWorksheetOrganizerHandler.ServeHTTP(w, r)
+ case WorksheetServiceDeleteWorksheetProcedure:
+ worksheetServiceDeleteWorksheetHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedWorksheetServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedWorksheetServiceHandler struct{}
+
+func (UnimplementedWorksheetServiceHandler) CreateWorksheet(context.Context, *connect.Request[v1.CreateWorksheetRequest]) (*connect.Response[v1.Worksheet], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorksheetService.CreateWorksheet is not implemented"))
+}
+
+func (UnimplementedWorksheetServiceHandler) GetWorksheet(context.Context, *connect.Request[v1.GetWorksheetRequest]) (*connect.Response[v1.Worksheet], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorksheetService.GetWorksheet is not implemented"))
+}
+
+func (UnimplementedWorksheetServiceHandler) SearchWorksheets(context.Context, *connect.Request[v1.SearchWorksheetsRequest]) (*connect.Response[v1.SearchWorksheetsResponse], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorksheetService.SearchWorksheets is not implemented"))
+}
+
+func (UnimplementedWorksheetServiceHandler) UpdateWorksheet(context.Context, *connect.Request[v1.UpdateWorksheetRequest]) (*connect.Response[v1.Worksheet], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorksheetService.UpdateWorksheet is not implemented"))
+}
+
+func (UnimplementedWorksheetServiceHandler) UpdateWorksheetOrganizer(context.Context, *connect.Request[v1.UpdateWorksheetOrganizerRequest]) (*connect.Response[v1.WorksheetOrganizer], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorksheetService.UpdateWorksheetOrganizer is not implemented"))
+}
+
+func (UnimplementedWorksheetServiceHandler) DeleteWorksheet(context.Context, *connect.Request[v1.DeleteWorksheetRequest]) (*connect.Response[emptypb.Empty], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorksheetService.DeleteWorksheet is not implemented"))
+}
diff --git a/proto/generated-go/v1/v1connect/workspace_service.connect.go b/proto/generated-go/v1/v1connect/workspace_service.connect.go
new file mode 100644
index 0000000000..fe59d6c656
--- /dev/null
+++ b/proto/generated-go/v1/v1connect/workspace_service.connect.go
@@ -0,0 +1,138 @@
+// Code generated by protoc-gen-connect-go. DO NOT EDIT.
+//
+// Source: v1/workspace_service.proto
+
+package v1connect
+
+import (
+ connect "connectrpc.com/connect"
+ context "context"
+ errors "errors"
+ v1 "github.com/bytebase/bytebase/proto/generated-go/v1"
+ http "net/http"
+ strings "strings"
+)
+
+// This is a compile-time assertion to ensure that this generated file and the connect package are
+// compatible. If you get a compiler error that this constant is not defined, this code was
+// generated with a version of connect newer than the one compiled into your binary. You can fix the
+// problem by either regenerating this code with an older version of connect or updating the connect
+// version compiled into your binary.
+const _ = connect.IsAtLeastVersion1_13_0
+
+const (
+ // WorkspaceServiceName is the fully-qualified name of the WorkspaceService service.
+ WorkspaceServiceName = "bytebase.v1.WorkspaceService"
+)
+
+// These constants are the fully-qualified names of the RPCs defined in this package. They're
+// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
+//
+// Note that these are different from the fully-qualified method names used by
+// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
+// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
+// period.
+const (
+ // WorkspaceServiceGetIamPolicyProcedure is the fully-qualified name of the WorkspaceService's
+ // GetIamPolicy RPC.
+ WorkspaceServiceGetIamPolicyProcedure = "/bytebase.v1.WorkspaceService/GetIamPolicy"
+ // WorkspaceServiceSetIamPolicyProcedure is the fully-qualified name of the WorkspaceService's
+ // SetIamPolicy RPC.
+ WorkspaceServiceSetIamPolicyProcedure = "/bytebase.v1.WorkspaceService/SetIamPolicy"
+)
+
+// WorkspaceServiceClient is a client for the bytebase.v1.WorkspaceService service.
+type WorkspaceServiceClient interface {
+ GetIamPolicy(context.Context, *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+ SetIamPolicy(context.Context, *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+}
+
+// NewWorkspaceServiceClient constructs a client for the bytebase.v1.WorkspaceService service. By
+// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
+// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
+// connect.WithGRPC() or connect.WithGRPCWeb() options.
+//
+// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
+// http://api.acme.com or https://acme.com/grpc).
+func NewWorkspaceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WorkspaceServiceClient {
+ baseURL = strings.TrimRight(baseURL, "/")
+ workspaceServiceMethods := v1.File_v1_workspace_service_proto.Services().ByName("WorkspaceService").Methods()
+ return &workspaceServiceClient{
+ getIamPolicy: connect.NewClient[v1.GetIamPolicyRequest, v1.IamPolicy](
+ httpClient,
+ baseURL+WorkspaceServiceGetIamPolicyProcedure,
+ connect.WithSchema(workspaceServiceMethods.ByName("GetIamPolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ setIamPolicy: connect.NewClient[v1.SetIamPolicyRequest, v1.IamPolicy](
+ httpClient,
+ baseURL+WorkspaceServiceSetIamPolicyProcedure,
+ connect.WithSchema(workspaceServiceMethods.ByName("SetIamPolicy")),
+ connect.WithClientOptions(opts...),
+ ),
+ }
+}
+
+// workspaceServiceClient implements WorkspaceServiceClient.
+type workspaceServiceClient struct {
+ getIamPolicy *connect.Client[v1.GetIamPolicyRequest, v1.IamPolicy]
+ setIamPolicy *connect.Client[v1.SetIamPolicyRequest, v1.IamPolicy]
+}
+
+// GetIamPolicy calls bytebase.v1.WorkspaceService.GetIamPolicy.
+func (c *workspaceServiceClient) GetIamPolicy(ctx context.Context, req *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return c.getIamPolicy.CallUnary(ctx, req)
+}
+
+// SetIamPolicy calls bytebase.v1.WorkspaceService.SetIamPolicy.
+func (c *workspaceServiceClient) SetIamPolicy(ctx context.Context, req *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return c.setIamPolicy.CallUnary(ctx, req)
+}
+
+// WorkspaceServiceHandler is an implementation of the bytebase.v1.WorkspaceService service.
+type WorkspaceServiceHandler interface {
+ GetIamPolicy(context.Context, *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+ SetIamPolicy(context.Context, *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error)
+}
+
+// NewWorkspaceServiceHandler builds an HTTP handler from the service implementation. It returns the
+// path on which to mount the handler and the handler itself.
+//
+// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
+// and JSON codecs. They also support gzip compression.
+func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
+ workspaceServiceMethods := v1.File_v1_workspace_service_proto.Services().ByName("WorkspaceService").Methods()
+ workspaceServiceGetIamPolicyHandler := connect.NewUnaryHandler(
+ WorkspaceServiceGetIamPolicyProcedure,
+ svc.GetIamPolicy,
+ connect.WithSchema(workspaceServiceMethods.ByName("GetIamPolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ workspaceServiceSetIamPolicyHandler := connect.NewUnaryHandler(
+ WorkspaceServiceSetIamPolicyProcedure,
+ svc.SetIamPolicy,
+ connect.WithSchema(workspaceServiceMethods.ByName("SetIamPolicy")),
+ connect.WithHandlerOptions(opts...),
+ )
+ return "/bytebase.v1.WorkspaceService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ switch r.URL.Path {
+ case WorkspaceServiceGetIamPolicyProcedure:
+ workspaceServiceGetIamPolicyHandler.ServeHTTP(w, r)
+ case WorkspaceServiceSetIamPolicyProcedure:
+ workspaceServiceSetIamPolicyHandler.ServeHTTP(w, r)
+ default:
+ http.NotFound(w, r)
+ }
+ })
+}
+
+// UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.
+type UnimplementedWorkspaceServiceHandler struct{}
+
+func (UnimplementedWorkspaceServiceHandler) GetIamPolicy(context.Context, *connect.Request[v1.GetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorkspaceService.GetIamPolicy is not implemented"))
+}
+
+func (UnimplementedWorkspaceServiceHandler) SetIamPolicy(context.Context, *connect.Request[v1.SetIamPolicyRequest]) (*connect.Response[v1.IamPolicy], error) {
+ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.WorkspaceService.SetIamPolicy is not implemented"))
+}
diff --git a/proto/generated-go/v1/worksheet_service.pb.go b/proto/generated-go/v1/worksheet_service.pb.go
index 8d929a1065..858651f083 100644
--- a/proto/generated-go/v1/worksheet_service.pb.go
+++ b/proto/generated-go/v1/worksheet_service.pb.go
@@ -740,7 +740,7 @@ const file_v1_worksheet_service_proto_rawDesc = "" +
"\x10SearchWorksheets\x12$.bytebase.v1.SearchWorksheetsRequest\x1a%.bytebase.v1.SearchWorksheetsResponse\"$\x90\xea0\x02\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/v1/worksheets:search\x12\xa0\x01\n" +
"\x0fUpdateWorksheet\x12#.bytebase.v1.UpdateWorksheetRequest\x1a\x16.bytebase.v1.Worksheet\"P\xdaA\x15worksheet,update_mask\x90\xea0\x02\x82\xd3\xe4\x93\x02.:\tworksheet2!/v1/{worksheet.name=worksheets/*}\x12\xca\x01\n" +
"\x18UpdateWorksheetOrganizer\x12,.bytebase.v1.UpdateWorksheetOrganizerRequest\x1a\x1f.bytebase.v1.WorksheetOrganizer\"_\xdaA\x15organizer,update_mask\x90\xea0\x02\x82\xd3\xe4\x93\x02=:\torganizer20/v1/{organizer.worksheet=worksheets/*}/organizer\x12z\n" +
- "\x0fDeleteWorksheet\x12#.bytebase.v1.DeleteWorksheetRequest\x1a\x16.google.protobuf.Empty\"*\xdaA\x04name\x90\xea0\x02\x82\xd3\xe4\x93\x02\x19*\x17/v1/{name=worksheets/*}B\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\x0fDeleteWorksheet\x12#.bytebase.v1.DeleteWorksheetRequest\x1a\x16.google.protobuf.Empty\"*\xdaA\x04name\x90\xea0\x02\x82\xd3\xe4\x93\x02\x19*\x17/v1/{name=worksheets/*}B4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var (
file_v1_worksheet_service_proto_rawDescOnce sync.Once
diff --git a/proto/generated-go/v1/workspace_service.pb.go b/proto/generated-go/v1/workspace_service.pb.go
index 5c3821e98f..82564c01e9 100644
--- a/proto/generated-go/v1/workspace_service.pb.go
+++ b/proto/generated-go/v1/workspace_service.pb.go
@@ -28,7 +28,7 @@ const file_v1_workspace_service_proto_rawDesc = "" +
"\x1av1/workspace_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x13v1/annotation.proto\x1a\x13v1/iam_policy.proto2\xd7\x02\n" +
"\x10WorkspaceService\x12\x9c\x01\n" +
"\fGetIamPolicy\x12 .bytebase.v1.GetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"R\x8a\xea0\x1abb.workspaces.getIamPolicy\x90\xea0\x01\x82\xd3\xe4\x93\x02*\x12(/v1/{resource=workspaces/*}:getIamPolicy\x12\xa3\x01\n" +
- "\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"Y\x8a\xea0\x1abb.workspaces.setIamPolicy\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02-:\x01*\"(/v1/{resource=workspaces/*}:setIamPolicyB\x11Z\x0fgenerated-go/v1b\x06proto3"
+ "\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"Y\x8a\xea0\x1abb.workspaces.setIamPolicy\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02-:\x01*\"(/v1/{resource=workspaces/*}:setIamPolicyB4Z2github.com/bytebase/bytebase/proto/generated-go/v1b\x06proto3"
var file_v1_workspace_service_proto_goTypes = []any{
(*GetIamPolicyRequest)(nil), // 0: bytebase.v1.GetIamPolicyRequest
diff --git a/proto/v1/v1/actuator_service.proto b/proto/v1/v1/actuator_service.proto
index aa54e46c8c..f1e1fd7852 100644
--- a/proto/v1/v1/actuator_service.proto
+++ b/proto/v1/v1/actuator_service.proto
@@ -13,7 +13,7 @@ import "v1/common.proto";
import "v1/setting_service.proto";
import "v1/user_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service ActuatorService {
rpc GetActuatorInfo(GetActuatorInfoRequest) returns (ActuatorInfo) {
diff --git a/proto/v1/v1/annotation.proto b/proto/v1/v1/annotation.proto
index 4302685457..fd2cee3b89 100644
--- a/proto/v1/v1/annotation.proto
+++ b/proto/v1/v1/annotation.proto
@@ -4,7 +4,7 @@ package bytebase.v1;
import "google/protobuf/descriptor.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
extend google.protobuf.MethodOptions {
bool allow_without_credential = 100000;
diff --git a/proto/v1/v1/audit_log_service.proto b/proto/v1/v1/audit_log_service.proto
index 7a913c56e0..ca8e523e0a 100644
--- a/proto/v1/v1/audit_log_service.proto
+++ b/proto/v1/v1/audit_log_service.proto
@@ -12,7 +12,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/iam_policy.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service AuditLogService {
rpc SearchAuditLogs(SearchAuditLogsRequest) returns (SearchAuditLogsResponse) {
diff --git a/proto/v1/v1/auth_service.proto b/proto/v1/v1/auth_service.proto
index 5a8debd286..f4f7a17532 100644
--- a/proto/v1/v1/auth_service.proto
+++ b/proto/v1/v1/auth_service.proto
@@ -7,7 +7,7 @@ import "google/protobuf/empty.proto";
import "v1/annotation.proto";
import "v1/user_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service AuthService {
rpc Login(LoginRequest) returns (LoginResponse) {
diff --git a/proto/v1/v1/cel_service.proto b/proto/v1/v1/cel_service.proto
index b8cce66558..bc4735bc71 100644
--- a/proto/v1/v1/cel_service.proto
+++ b/proto/v1/v1/cel_service.proto
@@ -6,7 +6,7 @@ import "google/api/annotations.proto";
import "google/api/expr/v1alpha1/syntax.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service CelService {
rpc BatchParse(BatchParseRequest) returns (BatchParseResponse) {
diff --git a/proto/v1/v1/changelist_service.proto b/proto/v1/v1/changelist_service.proto
index f7aaffdb62..930b693ed3 100644
--- a/proto/v1/v1/changelist_service.proto
+++ b/proto/v1/v1/changelist_service.proto
@@ -11,7 +11,7 @@ import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service ChangelistService {
rpc CreateChangelist(CreateChangelistRequest) returns (Changelist) {
diff --git a/proto/v1/v1/common.proto b/proto/v1/v1/common.proto
index 66709b9571..3b14b5f353 100644
--- a/proto/v1/v1/common.proto
+++ b/proto/v1/v1/common.proto
@@ -2,7 +2,7 @@ syntax = "proto3";
package bytebase.v1;
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
enum State {
STATE_UNSPECIFIED = 0;
diff --git a/proto/v1/v1/database_catalog_service.proto b/proto/v1/v1/database_catalog_service.proto
index a313a06955..61d814be77 100644
--- a/proto/v1/v1/database_catalog_service.proto
+++ b/proto/v1/v1/database_catalog_service.proto
@@ -8,7 +8,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service DatabaseCatalogService {
rpc GetDatabaseCatalog(GetDatabaseCatalogRequest) returns (DatabaseCatalog) {
diff --git a/proto/v1/v1/database_group_service.proto b/proto/v1/v1/database_group_service.proto
index 018e4c6f24..0cce0852cc 100644
--- a/proto/v1/v1/database_group_service.proto
+++ b/proto/v1/v1/database_group_service.proto
@@ -11,7 +11,7 @@ import "google/protobuf/field_mask.proto";
import "google/type/expr.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service DatabaseGroupService {
rpc ListDatabaseGroups(ListDatabaseGroupsRequest) returns (ListDatabaseGroupsResponse) {
diff --git a/proto/v1/v1/database_service.proto b/proto/v1/v1/database_service.proto
index f65e924c60..a616f08d9f 100644
--- a/proto/v1/v1/database_service.proto
+++ b/proto/v1/v1/database_service.proto
@@ -13,7 +13,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/instance_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service DatabaseService {
rpc GetDatabase(GetDatabaseRequest) returns (Database) {
diff --git a/proto/v1/v1/group_service.proto b/proto/v1/v1/group_service.proto
index 61322362db..3d20321608 100644
--- a/proto/v1/v1/group_service.proto
+++ b/proto/v1/v1/group_service.proto
@@ -10,7 +10,7 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service GroupService {
rpc GetGroup(GetGroupRequest) returns (Group) {
diff --git a/proto/v1/v1/iam_policy.proto b/proto/v1/v1/iam_policy.proto
index 4c265f3363..d5dba0c2f5 100644
--- a/proto/v1/v1/iam_policy.proto
+++ b/proto/v1/v1/iam_policy.proto
@@ -7,7 +7,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/type/expr.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
message GetIamPolicyRequest {
// The name of the resource to get the IAM policy.
diff --git a/proto/v1/v1/idp_service.proto b/proto/v1/v1/idp_service.proto
index 42c7724b41..29f03a1ba4 100644
--- a/proto/v1/v1/idp_service.proto
+++ b/proto/v1/v1/idp_service.proto
@@ -10,7 +10,7 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service IdentityProviderService {
rpc GetIdentityProvider(GetIdentityProviderRequest) returns (IdentityProvider) {
diff --git a/proto/v1/v1/instance_role_service.proto b/proto/v1/v1/instance_role_service.proto
index 64fc73af66..d2e5ba948e 100644
--- a/proto/v1/v1/instance_role_service.proto
+++ b/proto/v1/v1/instance_role_service.proto
@@ -8,7 +8,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service InstanceRoleService {
rpc GetInstanceRole(GetInstanceRoleRequest) returns (InstanceRole) {
diff --git a/proto/v1/v1/instance_service.proto b/proto/v1/v1/instance_service.proto
index 668faac57e..7e2472f286 100644
--- a/proto/v1/v1/instance_service.proto
+++ b/proto/v1/v1/instance_service.proto
@@ -13,7 +13,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/instance_role_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service InstanceService {
rpc GetInstance(GetInstanceRequest) returns (Instance) {
diff --git a/proto/v1/v1/issue_service.proto b/proto/v1/v1/issue_service.proto
index df94da6332..aa2ff3f4bf 100644
--- a/proto/v1/v1/issue_service.proto
+++ b/proto/v1/v1/issue_service.proto
@@ -12,7 +12,7 @@ import "google/protobuf/timestamp.proto";
import "google/type/expr.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service IssueService {
rpc GetIssue(GetIssueRequest) returns (Issue) {
diff --git a/proto/v1/v1/org_policy_service.proto b/proto/v1/v1/org_policy_service.proto
index 33608c533b..b1e2e97984 100644
--- a/proto/v1/v1/org_policy_service.proto
+++ b/proto/v1/v1/org_policy_service.proto
@@ -13,7 +13,7 @@ import "google/type/expr.proto";
import "v1/annotation.proto";
import "v1/common.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service OrgPolicyService {
rpc GetPolicy(GetPolicyRequest) returns (Policy) {
diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.proto
index f63e074931..df3cf8d53d 100644
--- a/proto/v1/v1/plan_service.proto
+++ b/proto/v1/v1/plan_service.proto
@@ -12,7 +12,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/database_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service PlanService {
rpc GetPlan(GetPlanRequest) returns (Plan) {
diff --git a/proto/v1/v1/project_service.proto b/proto/v1/v1/project_service.proto
index ffc4c10a72..094e5e4508 100644
--- a/proto/v1/v1/project_service.proto
+++ b/proto/v1/v1/project_service.proto
@@ -12,7 +12,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/iam_policy.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service ProjectService {
rpc GetProject(GetProjectRequest) returns (Project) {
diff --git a/proto/v1/v1/release_service.proto b/proto/v1/v1/release_service.proto
index f71ec9e495..429f361be8 100644
--- a/proto/v1/v1/release_service.proto
+++ b/proto/v1/v1/release_service.proto
@@ -13,7 +13,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/sql_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service ReleaseService {
rpc GetRelease(GetReleaseRequest) returns (Release) {
diff --git a/proto/v1/v1/review_config_service.proto b/proto/v1/v1/review_config_service.proto
index 86c448fc4a..026e961042 100644
--- a/proto/v1/v1/review_config_service.proto
+++ b/proto/v1/v1/review_config_service.proto
@@ -11,7 +11,7 @@ import "google/protobuf/field_mask.proto";
import "v1/annotation.proto";
import "v1/org_policy_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service ReviewConfigService {
rpc CreateReviewConfig(CreateReviewConfigRequest) returns (ReviewConfig) {
diff --git a/proto/v1/v1/revision_service.proto b/proto/v1/v1/revision_service.proto
index 617e7cfb2f..671501816c 100644
--- a/proto/v1/v1/revision_service.proto
+++ b/proto/v1/v1/revision_service.proto
@@ -10,7 +10,7 @@ import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service RevisionService {
rpc ListRevisions(ListRevisionsRequest) returns (ListRevisionsResponse) {
diff --git a/proto/v1/v1/risk_service.proto b/proto/v1/v1/risk_service.proto
index f8be7b27de..a4e2575198 100644
--- a/proto/v1/v1/risk_service.proto
+++ b/proto/v1/v1/risk_service.proto
@@ -11,7 +11,7 @@ import "google/protobuf/field_mask.proto";
import "google/type/expr.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service RiskService {
rpc ListRisks(ListRisksRequest) returns (ListRisksResponse) {
diff --git a/proto/v1/v1/role_service.proto b/proto/v1/v1/role_service.proto
index a8ee58d88f..8559e9f1ae 100644
--- a/proto/v1/v1/role_service.proto
+++ b/proto/v1/v1/role_service.proto
@@ -10,7 +10,7 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service RoleService {
rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {
diff --git a/proto/v1/v1/rollout_service.proto b/proto/v1/v1/rollout_service.proto
index 76048362aa..ca750b183d 100644
--- a/proto/v1/v1/rollout_service.proto
+++ b/proto/v1/v1/rollout_service.proto
@@ -11,7 +11,7 @@ import "v1/annotation.proto";
import "v1/common.proto";
import "v1/plan_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service RolloutService {
rpc GetRollout(GetRolloutRequest) returns (Rollout) {
diff --git a/proto/v1/v1/setting_service.proto b/proto/v1/v1/setting_service.proto
index 506c473def..ca1a1c9993 100644
--- a/proto/v1/v1/setting_service.proto
+++ b/proto/v1/v1/setting_service.proto
@@ -17,7 +17,7 @@ import "v1/database_service.proto";
import "v1/issue_service.proto";
import "v1/subscription_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service SettingService {
rpc ListSettings(ListSettingsRequest) returns (ListSettingsResponse) {
diff --git a/proto/v1/v1/sheet_service.proto b/proto/v1/v1/sheet_service.proto
index ca150c5ee8..4cb2385d89 100644
--- a/proto/v1/v1/sheet_service.proto
+++ b/proto/v1/v1/sheet_service.proto
@@ -11,7 +11,7 @@ import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
import "v1/common.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service SheetService {
rpc CreateSheet(CreateSheetRequest) returns (Sheet) {
diff --git a/proto/v1/v1/sql_service.proto b/proto/v1/v1/sql_service.proto
index 55b81db300..da6395ca83 100644
--- a/proto/v1/v1/sql_service.proto
+++ b/proto/v1/v1/sql_service.proto
@@ -13,7 +13,7 @@ import "v1/common.proto";
import "v1/database_catalog_service.proto";
import "v1/database_service.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service SQLService {
rpc Query(QueryRequest) returns (QueryResponse) {
diff --git a/proto/v1/v1/subscription_service.proto b/proto/v1/v1/subscription_service.proto
index d546ef7b17..e2629cc37e 100644
--- a/proto/v1/v1/subscription_service.proto
+++ b/proto/v1/v1/subscription_service.proto
@@ -8,7 +8,7 @@ import "google/api/field_behavior.proto";
import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service SubscriptionService {
rpc GetSubscription(GetSubscriptionRequest) returns (Subscription) {
diff --git a/proto/v1/v1/user_service.proto b/proto/v1/v1/user_service.proto
index 9845ff2a85..bb5eec52af 100644
--- a/proto/v1/v1/user_service.proto
+++ b/proto/v1/v1/user_service.proto
@@ -12,7 +12,7 @@ import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
import "v1/common.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service UserService {
// Get the user.
diff --git a/proto/v1/v1/worksheet_service.proto b/proto/v1/v1/worksheet_service.proto
index b71a93981d..1deaf4378e 100644
--- a/proto/v1/v1/worksheet_service.proto
+++ b/proto/v1/v1/worksheet_service.proto
@@ -10,7 +10,7 @@ import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service WorksheetService {
// Create a personal worksheet used in SQL Editor.
diff --git a/proto/v1/v1/workspace_service.proto b/proto/v1/v1/workspace_service.proto
index 78aa7b7d13..9fe4194fa8 100644
--- a/proto/v1/v1/workspace_service.proto
+++ b/proto/v1/v1/workspace_service.proto
@@ -6,7 +6,7 @@ import "google/api/annotations.proto";
import "v1/annotation.proto";
import "v1/iam_policy.proto";
-option go_package = "generated-go/v1";
+option go_package = "github.com/bytebase/bytebase/proto/generated-go/v1";
service WorkspaceService {
rpc GetIamPolicy(GetIamPolicyRequest) returns (IamPolicy) {