diff --git a/.gitattributes b/.gitattributes
index 29587f87c3b5b..25e3302a42b40 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -8,3 +8,4 @@ docs/theme/js/theme.js linguist-vendored=false
*_pb.d.ts linguist-generated
*_pb.ts linguist-generated
*_pb.grpc-*.ts linguist-generated
+*_pb.client.ts linguist-generated
diff --git a/buf-ts.gen.yaml b/buf-ts.gen.yaml
index b071c061c073c..1a91c918b634d 100644
--- a/buf-ts.gen.yaml
+++ b/buf-ts.gen.yaml
@@ -1,13 +1,13 @@
-version: v1
-plugins:
- - name: typescript
- out: gen/proto/ts
- opt: long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
- path:
- - npm
- - exec
- - --yes
- - --package=@protobuf-ts/plugin@2.9.3
- - --
- - protoc-gen-ts
- strategy: all
+version: v1
+plugins:
+ - name: typescript
+ out: gen/proto/ts
+ opt: long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
+ path:
+ - npm
+ - exec
+ - --yes
+ - --package=@protobuf-ts/plugin@2.9.3
+ - --
+ - protoc-gen-ts
+ strategy: all
diff --git a/gen/proto/ts/google/protobuf/descriptor_pb.ts b/gen/proto/ts/google/protobuf/descriptor_pb.ts
index 8fef6a8d9d882..723f0d97d1466 100644
--- a/gen/proto/ts/google/protobuf/descriptor_pb.ts
+++ b/gen/proto/ts/google/protobuf/descriptor_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/google/protobuf/duration_pb.ts b/gen/proto/ts/google/protobuf/duration_pb.ts
index 5f07ed652a25a..bb7570d77a656 100644
--- a/gen/proto/ts/google/protobuf/duration_pb.ts
+++ b/gen/proto/ts/google/protobuf/duration_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/google/protobuf/empty_pb.ts b/gen/proto/ts/google/protobuf/empty_pb.ts
index 19cf9f8511daf..bd29d7a6f5118 100644
--- a/gen/proto/ts/google/protobuf/empty_pb.ts
+++ b/gen/proto/ts/google/protobuf/empty_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "google/protobuf/empty.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/google/protobuf/timestamp_pb.ts b/gen/proto/ts/google/protobuf/timestamp_pb.ts
index 58d6243515cbf..bcf2a502d4c47 100644
--- a/gen/proto/ts/google/protobuf/timestamp_pb.ts
+++ b/gen/proto/ts/google/protobuf/timestamp_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1/teleport_pb.grpc-client.ts b/gen/proto/ts/prehog/v1/teleport_pb.client.ts
similarity index 54%
rename from gen/proto/ts/prehog/v1/teleport_pb.grpc-client.ts
rename to gen/proto/ts/prehog/v1/teleport_pb.client.ts
index ac0e793af3a00..f5bd040856195 100644
--- a/gen/proto/ts/prehog/v1/teleport_pb.grpc-client.ts
+++ b/gen/proto/ts/prehog/v1/teleport_pb.client.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1/teleport.proto" (package "prehog.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
@@ -21,12 +21,14 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
+import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
+import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { TeleportReportingService } from "./teleport_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { SubmitUsageReportsResponse } from "./teleport_pb";
import type { SubmitUsageReportsRequest } from "./teleport_pb";
-import * as grpc from "@grpc/grpc-js";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service prehog.v1.TeleportReportingService
*/
@@ -44,19 +46,16 @@ export interface ITeleportReportingServiceClient {
*
* @generated from protobuf rpc: SubmitUsageReports(prehog.v1.SubmitUsageReportsRequest) returns (prehog.v1.SubmitUsageReportsResponse);
*/
- submitUsageReports(input: SubmitUsageReportsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void): grpc.ClientUnaryCall;
- submitUsageReports(input: SubmitUsageReportsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void): grpc.ClientUnaryCall;
- submitUsageReports(input: SubmitUsageReportsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void): grpc.ClientUnaryCall;
- submitUsageReports(input: SubmitUsageReportsRequest, callback: (err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void): grpc.ClientUnaryCall;
+ submitUsageReports(input: SubmitUsageReportsRequest, options?: RpcOptions): UnaryCall;
}
/**
* @generated from protobuf service prehog.v1.TeleportReportingService
*/
-export class TeleportReportingServiceClient extends grpc.Client implements ITeleportReportingServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
+export class TeleportReportingServiceClient implements ITeleportReportingServiceClient, ServiceInfo {
+ typeName = TeleportReportingService.typeName;
+ methods = TeleportReportingService.methods;
+ options = TeleportReportingService.options;
+ constructor(private readonly _transport: RpcTransport) {
}
/**
* encodes and forwards usage reports to the PostHog event database; each
@@ -71,8 +70,8 @@ export class TeleportReportingServiceClient extends grpc.Client implements ITele
*
* @generated from protobuf rpc: SubmitUsageReports(prehog.v1.SubmitUsageReportsRequest) returns (prehog.v1.SubmitUsageReportsResponse);
*/
- submitUsageReports(input: SubmitUsageReportsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: SubmitUsageReportsResponse) => void)): grpc.ClientUnaryCall {
- const method = TeleportReportingService.methods[0];
- return this.makeUnaryRequest(`/${TeleportReportingService.typeName}/${method.name}`, (value: SubmitUsageReportsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): SubmitUsageReportsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
+ submitUsageReports(input: SubmitUsageReportsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
}
}
diff --git a/gen/proto/ts/prehog/v1/teleport_pb.grpc-server.ts b/gen/proto/ts/prehog/v1/teleport_pb.grpc-server.ts
index dd82f58fbe9f9..19affccf5c328 100644
--- a/gen/proto/ts/prehog/v1/teleport_pb.grpc-server.ts
+++ b/gen/proto/ts/prehog/v1/teleport_pb.grpc-server.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1/teleport.proto" (package "prehog.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1/teleport_pb.ts b/gen/proto/ts/prehog/v1/teleport_pb.ts
index e88cf4a2b88bf..a7b63ce987896 100644
--- a/gen/proto/ts/prehog/v1/teleport_pb.ts
+++ b/gen/proto/ts/prehog/v1/teleport_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1/teleport.proto" (package "prehog.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1alpha/connect_pb.client.ts b/gen/proto/ts/prehog/v1alpha/connect_pb.client.ts
new file mode 100644
index 0000000000000..4413810d3c1f1
--- /dev/null
+++ b/gen/proto/ts/prehog/v1alpha/connect_pb.client.ts
@@ -0,0 +1,57 @@
+/* eslint-disable */
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
+// @generated from protobuf file "prehog/v1alpha/connect.proto" (package "prehog.v1alpha", syntax proto3)
+// tslint:disable
+// @ts-nocheck
+//
+//
+// Teleport
+// Copyright (C) 2023 Gravitational, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+//
+import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
+import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
+import { ConnectReportingService } from "./connect_pb";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
+import type { SubmitConnectEventResponse } from "./connect_pb";
+import type { SubmitConnectEventRequest } from "./connect_pb";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
+/**
+ * @generated from protobuf service prehog.v1alpha.ConnectReportingService
+ */
+export interface IConnectReportingServiceClient {
+ /**
+ * @generated from protobuf rpc: SubmitConnectEvent(prehog.v1alpha.SubmitConnectEventRequest) returns (prehog.v1alpha.SubmitConnectEventResponse);
+ */
+ submitConnectEvent(input: SubmitConnectEventRequest, options?: RpcOptions): UnaryCall;
+}
+/**
+ * @generated from protobuf service prehog.v1alpha.ConnectReportingService
+ */
+export class ConnectReportingServiceClient implements IConnectReportingServiceClient, ServiceInfo {
+ typeName = ConnectReportingService.typeName;
+ methods = ConnectReportingService.methods;
+ options = ConnectReportingService.options;
+ constructor(private readonly _transport: RpcTransport) {
+ }
+ /**
+ * @generated from protobuf rpc: SubmitConnectEvent(prehog.v1alpha.SubmitConnectEventRequest) returns (prehog.v1alpha.SubmitConnectEventResponse);
+ */
+ submitConnectEvent(input: SubmitConnectEventRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+}
diff --git a/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-client.ts b/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-client.ts
deleted file mode 100644
index 8c23af5b4c02f..0000000000000
--- a/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-client.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
-// @generated from protobuf file "prehog/v1alpha/connect.proto" (package "prehog.v1alpha", syntax proto3)
-// tslint:disable
-// @ts-nocheck
-//
-//
-// Teleport
-// Copyright (C) 2023 Gravitational, Inc.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see .
-//
-import { ConnectReportingService } from "./connect_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
-import type { SubmitConnectEventResponse } from "./connect_pb";
-import type { SubmitConnectEventRequest } from "./connect_pb";
-import * as grpc from "@grpc/grpc-js";
-/**
- * @generated from protobuf service prehog.v1alpha.ConnectReportingService
- */
-export interface IConnectReportingServiceClient {
- /**
- * @generated from protobuf rpc: SubmitConnectEvent(prehog.v1alpha.SubmitConnectEventRequest) returns (prehog.v1alpha.SubmitConnectEventResponse);
- */
- submitConnectEvent(input: SubmitConnectEventRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void): grpc.ClientUnaryCall;
- submitConnectEvent(input: SubmitConnectEventRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void): grpc.ClientUnaryCall;
- submitConnectEvent(input: SubmitConnectEventRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void): grpc.ClientUnaryCall;
- submitConnectEvent(input: SubmitConnectEventRequest, callback: (err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void): grpc.ClientUnaryCall;
-}
-/**
- * @generated from protobuf service prehog.v1alpha.ConnectReportingService
- */
-export class ConnectReportingServiceClient extends grpc.Client implements IConnectReportingServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
- }
- /**
- * @generated from protobuf rpc: SubmitConnectEvent(prehog.v1alpha.SubmitConnectEventRequest) returns (prehog.v1alpha.SubmitConnectEventResponse);
- */
- submitConnectEvent(input: SubmitConnectEventRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: SubmitConnectEventResponse) => void)): grpc.ClientUnaryCall {
- const method = ConnectReportingService.methods[0];
- return this.makeUnaryRequest(`/${ConnectReportingService.typeName}/${method.name}`, (value: SubmitConnectEventRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): SubmitConnectEventResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
-}
diff --git a/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-server.ts b/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-server.ts
index acb24bc61f5a5..8dcfc212c7d26 100644
--- a/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-server.ts
+++ b/gen/proto/ts/prehog/v1alpha/connect_pb.grpc-server.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1alpha/connect.proto" (package "prehog.v1alpha", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1alpha/connect_pb.ts b/gen/proto/ts/prehog/v1alpha/connect_pb.ts
index b4c5028c73699..ff25fae53db57 100644
--- a/gen/proto/ts/prehog/v1alpha/connect_pb.ts
+++ b/gen/proto/ts/prehog/v1alpha/connect_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1alpha/connect.proto" (package "prehog.v1alpha", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1alpha/tbot_pb.client.ts b/gen/proto/ts/prehog/v1alpha/tbot_pb.client.ts
new file mode 100644
index 0000000000000..6a19de046d1fb
--- /dev/null
+++ b/gen/proto/ts/prehog/v1alpha/tbot_pb.client.ts
@@ -0,0 +1,57 @@
+/* eslint-disable */
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
+// @generated from protobuf file "prehog/v1alpha/tbot.proto" (package "prehog.v1alpha", syntax proto3)
+// tslint:disable
+// @ts-nocheck
+//
+//
+// Teleport
+// Copyright (C) 2023 Gravitational, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+//
+import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
+import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
+import { TbotReportingService } from "./tbot_pb";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
+import type { SubmitTbotEventResponse } from "./tbot_pb";
+import type { SubmitTbotEventRequest } from "./tbot_pb";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
+/**
+ * @generated from protobuf service prehog.v1alpha.TbotReportingService
+ */
+export interface ITbotReportingServiceClient {
+ /**
+ * @generated from protobuf rpc: SubmitTbotEvent(prehog.v1alpha.SubmitTbotEventRequest) returns (prehog.v1alpha.SubmitTbotEventResponse);
+ */
+ submitTbotEvent(input: SubmitTbotEventRequest, options?: RpcOptions): UnaryCall;
+}
+/**
+ * @generated from protobuf service prehog.v1alpha.TbotReportingService
+ */
+export class TbotReportingServiceClient implements ITbotReportingServiceClient, ServiceInfo {
+ typeName = TbotReportingService.typeName;
+ methods = TbotReportingService.methods;
+ options = TbotReportingService.options;
+ constructor(private readonly _transport: RpcTransport) {
+ }
+ /**
+ * @generated from protobuf rpc: SubmitTbotEvent(prehog.v1alpha.SubmitTbotEventRequest) returns (prehog.v1alpha.SubmitTbotEventResponse);
+ */
+ submitTbotEvent(input: SubmitTbotEventRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+}
diff --git a/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-client.ts b/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-client.ts
deleted file mode 100644
index e45aa73120e62..0000000000000
--- a/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-client.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
-// @generated from protobuf file "prehog/v1alpha/tbot.proto" (package "prehog.v1alpha", syntax proto3)
-// tslint:disable
-// @ts-nocheck
-//
-//
-// Teleport
-// Copyright (C) 2023 Gravitational, Inc.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see .
-//
-import { TbotReportingService } from "./tbot_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
-import type { SubmitTbotEventResponse } from "./tbot_pb";
-import type { SubmitTbotEventRequest } from "./tbot_pb";
-import * as grpc from "@grpc/grpc-js";
-/**
- * @generated from protobuf service prehog.v1alpha.TbotReportingService
- */
-export interface ITbotReportingServiceClient {
- /**
- * @generated from protobuf rpc: SubmitTbotEvent(prehog.v1alpha.SubmitTbotEventRequest) returns (prehog.v1alpha.SubmitTbotEventResponse);
- */
- submitTbotEvent(input: SubmitTbotEventRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void): grpc.ClientUnaryCall;
- submitTbotEvent(input: SubmitTbotEventRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void): grpc.ClientUnaryCall;
- submitTbotEvent(input: SubmitTbotEventRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void): grpc.ClientUnaryCall;
- submitTbotEvent(input: SubmitTbotEventRequest, callback: (err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void): grpc.ClientUnaryCall;
-}
-/**
- * @generated from protobuf service prehog.v1alpha.TbotReportingService
- */
-export class TbotReportingServiceClient extends grpc.Client implements ITbotReportingServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
- }
- /**
- * @generated from protobuf rpc: SubmitTbotEvent(prehog.v1alpha.SubmitTbotEventRequest) returns (prehog.v1alpha.SubmitTbotEventResponse);
- */
- submitTbotEvent(input: SubmitTbotEventRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: SubmitTbotEventResponse) => void)): grpc.ClientUnaryCall {
- const method = TbotReportingService.methods[0];
- return this.makeUnaryRequest(`/${TbotReportingService.typeName}/${method.name}`, (value: SubmitTbotEventRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): SubmitTbotEventResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
-}
diff --git a/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-server.ts b/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-server.ts
index baa4f634e854c..88302425bac5e 100644
--- a/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-server.ts
+++ b/gen/proto/ts/prehog/v1alpha/tbot_pb.grpc-server.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1alpha/tbot.proto" (package "prehog.v1alpha", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1alpha/tbot_pb.ts b/gen/proto/ts/prehog/v1alpha/tbot_pb.ts
index 294a8bfe3eac5..0b0863121b6e7 100644
--- a/gen/proto/ts/prehog/v1alpha/tbot_pb.ts
+++ b/gen/proto/ts/prehog/v1alpha/tbot_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1alpha/tbot.proto" (package "prehog.v1alpha", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1alpha/teleport_pb.client.ts b/gen/proto/ts/prehog/v1alpha/teleport_pb.client.ts
new file mode 100644
index 0000000000000..3fc202395c860
--- /dev/null
+++ b/gen/proto/ts/prehog/v1alpha/teleport_pb.client.ts
@@ -0,0 +1,109 @@
+/* eslint-disable */
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
+// @generated from protobuf file "prehog/v1alpha/teleport.proto" (package "prehog.v1alpha", syntax proto3)
+// tslint:disable
+// @ts-nocheck
+//
+//
+// Teleport
+// Copyright (C) 2023 Gravitational, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+//
+import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
+import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
+import { TeleportReportingService } from "./teleport_pb";
+import type { HelloTeleportResponse } from "./teleport_pb";
+import type { HelloTeleportRequest } from "./teleport_pb";
+import type { SubmitEventsResponse } from "./teleport_pb";
+import type { SubmitEventsRequest } from "./teleport_pb";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
+import type { SubmitEventResponse } from "./teleport_pb";
+import type { SubmitEventRequest } from "./teleport_pb";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
+/**
+ * @generated from protobuf service prehog.v1alpha.TeleportReportingService
+ */
+export interface ITeleportReportingServiceClient {
+ /**
+ * equivalent to SubmitEvents with a single event, should be unused by now
+ *
+ * @deprecated
+ * @generated from protobuf rpc: SubmitEvent(prehog.v1alpha.SubmitEventRequest) returns (prehog.v1alpha.SubmitEventResponse);
+ */
+ submitEvent(input: SubmitEventRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * encodes and forwards usage events to the PostHog event database; each
+ * event is annotated with some properties that depend on the identity of the
+ * caller:
+ * - tp.account_id (UUID in string form, can be empty if missing from the
+ * license)
+ * - tp.license_name (should always be a UUID)
+ * - tp.license_authority (name of the authority that signed the license file
+ * used for authentication)
+ * - tp.is_cloud (boolean)
+ *
+ * @generated from protobuf rpc: SubmitEvents(prehog.v1alpha.SubmitEventsRequest) returns (prehog.v1alpha.SubmitEventsResponse);
+ */
+ submitEvents(input: SubmitEventsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * @generated from protobuf rpc: HelloTeleport(prehog.v1alpha.HelloTeleportRequest) returns (prehog.v1alpha.HelloTeleportResponse);
+ */
+ helloTeleport(input: HelloTeleportRequest, options?: RpcOptions): UnaryCall;
+}
+/**
+ * @generated from protobuf service prehog.v1alpha.TeleportReportingService
+ */
+export class TeleportReportingServiceClient implements ITeleportReportingServiceClient, ServiceInfo {
+ typeName = TeleportReportingService.typeName;
+ methods = TeleportReportingService.methods;
+ options = TeleportReportingService.options;
+ constructor(private readonly _transport: RpcTransport) {
+ }
+ /**
+ * equivalent to SubmitEvents with a single event, should be unused by now
+ *
+ * @deprecated
+ * @generated from protobuf rpc: SubmitEvent(prehog.v1alpha.SubmitEventRequest) returns (prehog.v1alpha.SubmitEventResponse);
+ */
+ submitEvent(input: SubmitEventRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * encodes and forwards usage events to the PostHog event database; each
+ * event is annotated with some properties that depend on the identity of the
+ * caller:
+ * - tp.account_id (UUID in string form, can be empty if missing from the
+ * license)
+ * - tp.license_name (should always be a UUID)
+ * - tp.license_authority (name of the authority that signed the license file
+ * used for authentication)
+ * - tp.is_cloud (boolean)
+ *
+ * @generated from protobuf rpc: SubmitEvents(prehog.v1alpha.SubmitEventsRequest) returns (prehog.v1alpha.SubmitEventsResponse);
+ */
+ submitEvents(input: SubmitEventsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * @generated from protobuf rpc: HelloTeleport(prehog.v1alpha.HelloTeleportRequest) returns (prehog.v1alpha.HelloTeleportResponse);
+ */
+ helloTeleport(input: HelloTeleportRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+}
diff --git a/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-client.ts b/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-client.ts
deleted file mode 100644
index 8d84a4839ab2c..0000000000000
--- a/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-client.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
-// @generated from protobuf file "prehog/v1alpha/teleport.proto" (package "prehog.v1alpha", syntax proto3)
-// tslint:disable
-// @ts-nocheck
-//
-//
-// Teleport
-// Copyright (C) 2023 Gravitational, Inc.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see .
-//
-import { TeleportReportingService } from "./teleport_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
-import type { HelloTeleportResponse } from "./teleport_pb";
-import type { HelloTeleportRequest } from "./teleport_pb";
-import type { SubmitEventsResponse } from "./teleport_pb";
-import type { SubmitEventsRequest } from "./teleport_pb";
-import type { SubmitEventResponse } from "./teleport_pb";
-import type { SubmitEventRequest } from "./teleport_pb";
-import * as grpc from "@grpc/grpc-js";
-/**
- * @generated from protobuf service prehog.v1alpha.TeleportReportingService
- */
-export interface ITeleportReportingServiceClient {
- /**
- * equivalent to SubmitEvents with a single event, should be unused by now
- *
- * @deprecated
- * @generated from protobuf rpc: SubmitEvent(prehog.v1alpha.SubmitEventRequest) returns (prehog.v1alpha.SubmitEventResponse);
- */
- submitEvent(input: SubmitEventRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitEventResponse) => void): grpc.ClientUnaryCall;
- submitEvent(input: SubmitEventRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: SubmitEventResponse) => void): grpc.ClientUnaryCall;
- submitEvent(input: SubmitEventRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitEventResponse) => void): grpc.ClientUnaryCall;
- submitEvent(input: SubmitEventRequest, callback: (err: grpc.ServiceError | null, value?: SubmitEventResponse) => void): grpc.ClientUnaryCall;
- /**
- * encodes and forwards usage events to the PostHog event database; each
- * event is annotated with some properties that depend on the identity of the
- * caller:
- * - tp.account_id (UUID in string form, can be empty if missing from the
- * license)
- * - tp.license_name (should always be a UUID)
- * - tp.license_authority (name of the authority that signed the license file
- * used for authentication)
- * - tp.is_cloud (boolean)
- *
- * @generated from protobuf rpc: SubmitEvents(prehog.v1alpha.SubmitEventsRequest) returns (prehog.v1alpha.SubmitEventsResponse);
- */
- submitEvents(input: SubmitEventsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void): grpc.ClientUnaryCall;
- submitEvents(input: SubmitEventsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void): grpc.ClientUnaryCall;
- submitEvents(input: SubmitEventsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void): grpc.ClientUnaryCall;
- submitEvents(input: SubmitEventsRequest, callback: (err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void): grpc.ClientUnaryCall;
- /**
- * @generated from protobuf rpc: HelloTeleport(prehog.v1alpha.HelloTeleportRequest) returns (prehog.v1alpha.HelloTeleportResponse);
- */
- helloTeleport(input: HelloTeleportRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void): grpc.ClientUnaryCall;
- helloTeleport(input: HelloTeleportRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void): grpc.ClientUnaryCall;
- helloTeleport(input: HelloTeleportRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void): grpc.ClientUnaryCall;
- helloTeleport(input: HelloTeleportRequest, callback: (err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void): grpc.ClientUnaryCall;
-}
-/**
- * @generated from protobuf service prehog.v1alpha.TeleportReportingService
- */
-export class TeleportReportingServiceClient extends grpc.Client implements ITeleportReportingServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
- }
- /**
- * equivalent to SubmitEvents with a single event, should be unused by now
- *
- * @deprecated
- * @generated from protobuf rpc: SubmitEvent(prehog.v1alpha.SubmitEventRequest) returns (prehog.v1alpha.SubmitEventResponse);
- */
- submitEvent(input: SubmitEventRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitEventResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitEventResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: SubmitEventResponse) => void)): grpc.ClientUnaryCall {
- const method = TeleportReportingService.methods[0];
- return this.makeUnaryRequest(`/${TeleportReportingService.typeName}/${method.name}`, (value: SubmitEventRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): SubmitEventResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * encodes and forwards usage events to the PostHog event database; each
- * event is annotated with some properties that depend on the identity of the
- * caller:
- * - tp.account_id (UUID in string form, can be empty if missing from the
- * license)
- * - tp.license_name (should always be a UUID)
- * - tp.license_authority (name of the authority that signed the license file
- * used for authentication)
- * - tp.is_cloud (boolean)
- *
- * @generated from protobuf rpc: SubmitEvents(prehog.v1alpha.SubmitEventsRequest) returns (prehog.v1alpha.SubmitEventsResponse);
- */
- submitEvents(input: SubmitEventsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: SubmitEventsResponse) => void)): grpc.ClientUnaryCall {
- const method = TeleportReportingService.methods[1];
- return this.makeUnaryRequest(`/${TeleportReportingService.typeName}/${method.name}`, (value: SubmitEventsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): SubmitEventsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * @generated from protobuf rpc: HelloTeleport(prehog.v1alpha.HelloTeleportRequest) returns (prehog.v1alpha.HelloTeleportResponse);
- */
- helloTeleport(input: HelloTeleportRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: HelloTeleportResponse) => void)): grpc.ClientUnaryCall {
- const method = TeleportReportingService.methods[2];
- return this.makeUnaryRequest(`/${TeleportReportingService.typeName}/${method.name}`, (value: HelloTeleportRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): HelloTeleportResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
-}
diff --git a/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-server.ts b/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-server.ts
index 754fc9bbb9acb..bbd6bddd6013c 100644
--- a/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-server.ts
+++ b/gen/proto/ts/prehog/v1alpha/teleport_pb.grpc-server.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1alpha/teleport.proto" (package "prehog.v1alpha", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/prehog/v1alpha/teleport_pb.ts b/gen/proto/ts/prehog/v1alpha/teleport_pb.ts
index 2ee8e6f0f3053..7a1b3be117cb9 100644
--- a/gen/proto/ts/prehog/v1alpha/teleport_pb.ts
+++ b/gen/proto/ts/prehog/v1alpha/teleport_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "prehog/v1alpha/teleport.proto" (package "prehog.v1alpha", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/accesslist/v1/accesslist_pb.ts b/gen/proto/ts/teleport/accesslist/v1/accesslist_pb.ts
index 23aa8986ff6a1..d4cda17115390 100644
--- a/gen/proto/ts/teleport/accesslist/v1/accesslist_pb.ts
+++ b/gen/proto/ts/teleport/accesslist/v1/accesslist_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/accesslist/v1/accesslist.proto" (package "teleport.accesslist.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.client.ts b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.client.ts
new file mode 100644
index 0000000000000..52f44b8f241c1
--- /dev/null
+++ b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.client.ts
@@ -0,0 +1,434 @@
+/* eslint-disable */
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
+// @generated from protobuf file "teleport/accesslist/v1/accesslist_service.proto" (package "teleport.accesslist.v1", syntax proto3)
+// tslint:disable
+// @ts-nocheck
+//
+// Copyright 2023 Gravitational, Inc
+//
+// 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.
+//
+import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
+import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
+import { AccessListService } from "./accesslist_service_pb";
+import type { GetSuggestedAccessListsResponse } from "./accesslist_service_pb";
+import type { GetSuggestedAccessListsRequest } from "./accesslist_service_pb";
+import type { AccessRequestPromoteResponse } from "./accesslist_service_pb";
+import type { AccessRequestPromoteRequest } from "./accesslist_service_pb";
+import type { DeleteAccessListReviewRequest } from "./accesslist_service_pb";
+import type { CreateAccessListReviewResponse } from "./accesslist_service_pb";
+import type { CreateAccessListReviewRequest } from "./accesslist_service_pb";
+import type { ListAllAccessListReviewsResponse } from "./accesslist_service_pb";
+import type { ListAllAccessListReviewsRequest } from "./accesslist_service_pb";
+import type { ListAccessListReviewsResponse } from "./accesslist_service_pb";
+import type { ListAccessListReviewsRequest } from "./accesslist_service_pb";
+import type { UpsertAccessListWithMembersResponse } from "./accesslist_service_pb";
+import type { UpsertAccessListWithMembersRequest } from "./accesslist_service_pb";
+import type { DeleteAllAccessListMembersRequest } from "./accesslist_service_pb";
+import type { DeleteAllAccessListMembersForAccessListRequest } from "./accesslist_service_pb";
+import type { DeleteAccessListMemberRequest } from "./accesslist_service_pb";
+import type { UpsertAccessListMemberRequest } from "./accesslist_service_pb";
+import type { Member } from "./accesslist_pb";
+import type { GetAccessListMemberRequest } from "./accesslist_service_pb";
+import type { ListAllAccessListMembersResponse } from "./accesslist_service_pb";
+import type { ListAllAccessListMembersRequest } from "./accesslist_service_pb";
+import type { ListAccessListMembersResponse } from "./accesslist_service_pb";
+import type { ListAccessListMembersRequest } from "./accesslist_service_pb";
+import type { CountAccessListMembersResponse } from "./accesslist_service_pb";
+import type { CountAccessListMembersRequest } from "./accesslist_service_pb";
+import type { GetAccessListsToReviewResponse } from "./accesslist_service_pb";
+import type { GetAccessListsToReviewRequest } from "./accesslist_service_pb";
+import type { DeleteAllAccessListsRequest } from "./accesslist_service_pb";
+import type { Empty } from "../../../google/protobuf/empty_pb";
+import type { DeleteAccessListRequest } from "./accesslist_service_pb";
+import type { UpsertAccessListRequest } from "./accesslist_service_pb";
+import type { AccessList } from "./accesslist_pb";
+import type { GetAccessListRequest } from "./accesslist_service_pb";
+import type { ListAccessListsResponse } from "./accesslist_service_pb";
+import type { ListAccessListsRequest } from "./accesslist_service_pb";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
+import type { GetAccessListsResponse } from "./accesslist_service_pb";
+import type { GetAccessListsRequest } from "./accesslist_service_pb";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
+/**
+ * AccessListService provides CRUD methods for Access List resources.
+ *
+ * @generated from protobuf service teleport.accesslist.v1.AccessListService
+ */
+export interface IAccessListServiceClient {
+ /**
+ * GetAccessLists returns a list of all access lists.
+ *
+ * @generated from protobuf rpc: GetAccessLists(teleport.accesslist.v1.GetAccessListsRequest) returns (teleport.accesslist.v1.GetAccessListsResponse);
+ */
+ getAccessLists(input: GetAccessListsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListAccessLists returns a paginated list of all access lists.
+ *
+ * @generated from protobuf rpc: ListAccessLists(teleport.accesslist.v1.ListAccessListsRequest) returns (teleport.accesslist.v1.ListAccessListsResponse);
+ */
+ listAccessLists(input: ListAccessListsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetAccessList returns the specified access list resource.
+ *
+ * @generated from protobuf rpc: GetAccessList(teleport.accesslist.v1.GetAccessListRequest) returns (teleport.accesslist.v1.AccessList);
+ */
+ getAccessList(input: GetAccessListRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpsertAccessList creates or updates an access list resource.
+ *
+ * @generated from protobuf rpc: UpsertAccessList(teleport.accesslist.v1.UpsertAccessListRequest) returns (teleport.accesslist.v1.AccessList);
+ */
+ upsertAccessList(input: UpsertAccessListRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAccessList hard deletes the specified access list resource.
+ *
+ * @generated from protobuf rpc: DeleteAccessList(teleport.accesslist.v1.DeleteAccessListRequest) returns (google.protobuf.Empty);
+ */
+ deleteAccessList(input: DeleteAccessListRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAllAccessLists hard deletes all access lists.
+ *
+ * @generated from protobuf rpc: DeleteAllAccessLists(teleport.accesslist.v1.DeleteAllAccessListsRequest) returns (google.protobuf.Empty);
+ */
+ deleteAllAccessLists(input: DeleteAllAccessListsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetAccessListsToReview will return access lists that need to be reviewed by
+ * the current user.
+ *
+ * @generated from protobuf rpc: GetAccessListsToReview(teleport.accesslist.v1.GetAccessListsToReviewRequest) returns (teleport.accesslist.v1.GetAccessListsToReviewResponse);
+ */
+ getAccessListsToReview(input: GetAccessListsToReviewRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CountAccessListMembers returns the count of access list members in an
+ * access list.
+ *
+ * @generated from protobuf rpc: CountAccessListMembers(teleport.accesslist.v1.CountAccessListMembersRequest) returns (teleport.accesslist.v1.CountAccessListMembersResponse);
+ */
+ countAccessListMembers(input: CountAccessListMembersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListAccessListMembers returns a paginated list of all access list members.
+ *
+ * @generated from protobuf rpc: ListAccessListMembers(teleport.accesslist.v1.ListAccessListMembersRequest) returns (teleport.accesslist.v1.ListAccessListMembersResponse);
+ */
+ listAccessListMembers(input: ListAccessListMembersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListAllAccessListMembers returns a paginated list of all access list
+ * members for all access lists.
+ *
+ * @generated from protobuf rpc: ListAllAccessListMembers(teleport.accesslist.v1.ListAllAccessListMembersRequest) returns (teleport.accesslist.v1.ListAllAccessListMembersResponse);
+ */
+ listAllAccessListMembers(input: ListAllAccessListMembersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetAccessListMember returns the specified access list member resource.
+ *
+ * @generated from protobuf rpc: GetAccessListMember(teleport.accesslist.v1.GetAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
+ */
+ getAccessListMember(input: GetAccessListMemberRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpsertAccessListMember creates or updates an access list member resource.
+ *
+ * @generated from protobuf rpc: UpsertAccessListMember(teleport.accesslist.v1.UpsertAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
+ */
+ upsertAccessListMember(input: UpsertAccessListMemberRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAccessListMember hard deletes the specified access list member
+ * resource.
+ *
+ * @generated from protobuf rpc: DeleteAccessListMember(teleport.accesslist.v1.DeleteAccessListMemberRequest) returns (google.protobuf.Empty);
+ */
+ deleteAccessListMember(input: DeleteAccessListMemberRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAllAccessListMembers hard deletes all access list members for an
+ * access list.
+ *
+ * @generated from protobuf rpc: DeleteAllAccessListMembersForAccessList(teleport.accesslist.v1.DeleteAllAccessListMembersForAccessListRequest) returns (google.protobuf.Empty);
+ */
+ deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAllAccessListMembers hard deletes all access list members for an
+ * access list.
+ *
+ * @generated from protobuf rpc: DeleteAllAccessListMembers(teleport.accesslist.v1.DeleteAllAccessListMembersRequest) returns (google.protobuf.Empty);
+ */
+ deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpsertAccessListWithMembers creates or updates an access list with members.
+ *
+ * @generated from protobuf rpc: UpsertAccessListWithMembers(teleport.accesslist.v1.UpsertAccessListWithMembersRequest) returns (teleport.accesslist.v1.UpsertAccessListWithMembersResponse);
+ */
+ upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListAccessListReviews will list access list reviews for a particular access
+ * list.
+ *
+ * @generated from protobuf rpc: ListAccessListReviews(teleport.accesslist.v1.ListAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAccessListReviewsResponse);
+ */
+ listAccessListReviews(input: ListAccessListReviewsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListAllAccessListReviews will list access list reviews for all access
+ * lists.
+ *
+ * @generated from protobuf rpc: ListAllAccessListReviews(teleport.accesslist.v1.ListAllAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAllAccessListReviewsResponse);
+ */
+ listAllAccessListReviews(input: ListAllAccessListReviewsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CreateAccessListReview will create a new review for an access list. It will
+ * also modify the original access list and its members depending on the
+ * details of the review.
+ *
+ * @generated from protobuf rpc: CreateAccessListReview(teleport.accesslist.v1.CreateAccessListReviewRequest) returns (teleport.accesslist.v1.CreateAccessListReviewResponse);
+ */
+ createAccessListReview(input: CreateAccessListReviewRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAccessListReview will delete an access list review from the backend.
+ *
+ * @generated from protobuf rpc: DeleteAccessListReview(teleport.accesslist.v1.DeleteAccessListReviewRequest) returns (google.protobuf.Empty);
+ */
+ deleteAccessListReview(input: DeleteAccessListReviewRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * AccessRequestPromote promotes an access request to an access list.
+ *
+ * @generated from protobuf rpc: AccessRequestPromote(teleport.accesslist.v1.AccessRequestPromoteRequest) returns (teleport.accesslist.v1.AccessRequestPromoteResponse);
+ */
+ accessRequestPromote(input: AccessRequestPromoteRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetSuggestedAccessLists returns suggested access lists for an access
+ * request.
+ *
+ * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.accesslist.v1.GetSuggestedAccessListsRequest) returns (teleport.accesslist.v1.GetSuggestedAccessListsResponse);
+ */
+ getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, options?: RpcOptions): UnaryCall;
+}
+/**
+ * AccessListService provides CRUD methods for Access List resources.
+ *
+ * @generated from protobuf service teleport.accesslist.v1.AccessListService
+ */
+export class AccessListServiceClient implements IAccessListServiceClient, ServiceInfo {
+ typeName = AccessListService.typeName;
+ methods = AccessListService.methods;
+ options = AccessListService.options;
+ constructor(private readonly _transport: RpcTransport) {
+ }
+ /**
+ * GetAccessLists returns a list of all access lists.
+ *
+ * @generated from protobuf rpc: GetAccessLists(teleport.accesslist.v1.GetAccessListsRequest) returns (teleport.accesslist.v1.GetAccessListsResponse);
+ */
+ getAccessLists(input: GetAccessListsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListAccessLists returns a paginated list of all access lists.
+ *
+ * @generated from protobuf rpc: ListAccessLists(teleport.accesslist.v1.ListAccessListsRequest) returns (teleport.accesslist.v1.ListAccessListsResponse);
+ */
+ listAccessLists(input: ListAccessListsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetAccessList returns the specified access list resource.
+ *
+ * @generated from protobuf rpc: GetAccessList(teleport.accesslist.v1.GetAccessListRequest) returns (teleport.accesslist.v1.AccessList);
+ */
+ getAccessList(input: GetAccessListRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpsertAccessList creates or updates an access list resource.
+ *
+ * @generated from protobuf rpc: UpsertAccessList(teleport.accesslist.v1.UpsertAccessListRequest) returns (teleport.accesslist.v1.AccessList);
+ */
+ upsertAccessList(input: UpsertAccessListRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAccessList hard deletes the specified access list resource.
+ *
+ * @generated from protobuf rpc: DeleteAccessList(teleport.accesslist.v1.DeleteAccessListRequest) returns (google.protobuf.Empty);
+ */
+ deleteAccessList(input: DeleteAccessListRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAllAccessLists hard deletes all access lists.
+ *
+ * @generated from protobuf rpc: DeleteAllAccessLists(teleport.accesslist.v1.DeleteAllAccessListsRequest) returns (google.protobuf.Empty);
+ */
+ deleteAllAccessLists(input: DeleteAllAccessListsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetAccessListsToReview will return access lists that need to be reviewed by
+ * the current user.
+ *
+ * @generated from protobuf rpc: GetAccessListsToReview(teleport.accesslist.v1.GetAccessListsToReviewRequest) returns (teleport.accesslist.v1.GetAccessListsToReviewResponse);
+ */
+ getAccessListsToReview(input: GetAccessListsToReviewRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CountAccessListMembers returns the count of access list members in an
+ * access list.
+ *
+ * @generated from protobuf rpc: CountAccessListMembers(teleport.accesslist.v1.CountAccessListMembersRequest) returns (teleport.accesslist.v1.CountAccessListMembersResponse);
+ */
+ countAccessListMembers(input: CountAccessListMembersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListAccessListMembers returns a paginated list of all access list members.
+ *
+ * @generated from protobuf rpc: ListAccessListMembers(teleport.accesslist.v1.ListAccessListMembersRequest) returns (teleport.accesslist.v1.ListAccessListMembersResponse);
+ */
+ listAccessListMembers(input: ListAccessListMembersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListAllAccessListMembers returns a paginated list of all access list
+ * members for all access lists.
+ *
+ * @generated from protobuf rpc: ListAllAccessListMembers(teleport.accesslist.v1.ListAllAccessListMembersRequest) returns (teleport.accesslist.v1.ListAllAccessListMembersResponse);
+ */
+ listAllAccessListMembers(input: ListAllAccessListMembersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetAccessListMember returns the specified access list member resource.
+ *
+ * @generated from protobuf rpc: GetAccessListMember(teleport.accesslist.v1.GetAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
+ */
+ getAccessListMember(input: GetAccessListMemberRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpsertAccessListMember creates or updates an access list member resource.
+ *
+ * @generated from protobuf rpc: UpsertAccessListMember(teleport.accesslist.v1.UpsertAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
+ */
+ upsertAccessListMember(input: UpsertAccessListMemberRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAccessListMember hard deletes the specified access list member
+ * resource.
+ *
+ * @generated from protobuf rpc: DeleteAccessListMember(teleport.accesslist.v1.DeleteAccessListMemberRequest) returns (google.protobuf.Empty);
+ */
+ deleteAccessListMember(input: DeleteAccessListMemberRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAllAccessListMembers hard deletes all access list members for an
+ * access list.
+ *
+ * @generated from protobuf rpc: DeleteAllAccessListMembersForAccessList(teleport.accesslist.v1.DeleteAllAccessListMembersForAccessListRequest) returns (google.protobuf.Empty);
+ */
+ deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAllAccessListMembers hard deletes all access list members for an
+ * access list.
+ *
+ * @generated from protobuf rpc: DeleteAllAccessListMembers(teleport.accesslist.v1.DeleteAllAccessListMembersRequest) returns (google.protobuf.Empty);
+ */
+ deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpsertAccessListWithMembers creates or updates an access list with members.
+ *
+ * @generated from protobuf rpc: UpsertAccessListWithMembers(teleport.accesslist.v1.UpsertAccessListWithMembersRequest) returns (teleport.accesslist.v1.UpsertAccessListWithMembersResponse);
+ */
+ upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListAccessListReviews will list access list reviews for a particular access
+ * list.
+ *
+ * @generated from protobuf rpc: ListAccessListReviews(teleport.accesslist.v1.ListAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAccessListReviewsResponse);
+ */
+ listAccessListReviews(input: ListAccessListReviewsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListAllAccessListReviews will list access list reviews for all access
+ * lists.
+ *
+ * @generated from protobuf rpc: ListAllAccessListReviews(teleport.accesslist.v1.ListAllAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAllAccessListReviewsResponse);
+ */
+ listAllAccessListReviews(input: ListAllAccessListReviewsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CreateAccessListReview will create a new review for an access list. It will
+ * also modify the original access list and its members depending on the
+ * details of the review.
+ *
+ * @generated from protobuf rpc: CreateAccessListReview(teleport.accesslist.v1.CreateAccessListReviewRequest) returns (teleport.accesslist.v1.CreateAccessListReviewResponse);
+ */
+ createAccessListReview(input: CreateAccessListReviewRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAccessListReview will delete an access list review from the backend.
+ *
+ * @generated from protobuf rpc: DeleteAccessListReview(teleport.accesslist.v1.DeleteAccessListReviewRequest) returns (google.protobuf.Empty);
+ */
+ deleteAccessListReview(input: DeleteAccessListReviewRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * AccessRequestPromote promotes an access request to an access list.
+ *
+ * @generated from protobuf rpc: AccessRequestPromote(teleport.accesslist.v1.AccessRequestPromoteRequest) returns (teleport.accesslist.v1.AccessRequestPromoteResponse);
+ */
+ accessRequestPromote(input: AccessRequestPromoteRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetSuggestedAccessLists returns suggested access lists for an access
+ * request.
+ *
+ * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.accesslist.v1.GetSuggestedAccessListsRequest) returns (teleport.accesslist.v1.GetSuggestedAccessListsResponse);
+ */
+ getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+}
diff --git a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-client.ts b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-client.ts
deleted file mode 100644
index 48a0d394d9ece..0000000000000
--- a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-client.ts
+++ /dev/null
@@ -1,498 +0,0 @@
-/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
-// @generated from protobuf file "teleport/accesslist/v1/accesslist_service.proto" (package "teleport.accesslist.v1", syntax proto3)
-// tslint:disable
-// @ts-nocheck
-//
-// Copyright 2023 Gravitational, Inc
-//
-// 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.
-//
-import { AccessListService } from "./accesslist_service_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
-import type { GetSuggestedAccessListsResponse } from "./accesslist_service_pb";
-import type { GetSuggestedAccessListsRequest } from "./accesslist_service_pb";
-import type { AccessRequestPromoteResponse } from "./accesslist_service_pb";
-import type { AccessRequestPromoteRequest } from "./accesslist_service_pb";
-import type { DeleteAccessListReviewRequest } from "./accesslist_service_pb";
-import type { CreateAccessListReviewResponse } from "./accesslist_service_pb";
-import type { CreateAccessListReviewRequest } from "./accesslist_service_pb";
-import type { ListAllAccessListReviewsResponse } from "./accesslist_service_pb";
-import type { ListAllAccessListReviewsRequest } from "./accesslist_service_pb";
-import type { ListAccessListReviewsResponse } from "./accesslist_service_pb";
-import type { ListAccessListReviewsRequest } from "./accesslist_service_pb";
-import type { UpsertAccessListWithMembersResponse } from "./accesslist_service_pb";
-import type { UpsertAccessListWithMembersRequest } from "./accesslist_service_pb";
-import type { DeleteAllAccessListMembersRequest } from "./accesslist_service_pb";
-import type { DeleteAllAccessListMembersForAccessListRequest } from "./accesslist_service_pb";
-import type { DeleteAccessListMemberRequest } from "./accesslist_service_pb";
-import type { UpsertAccessListMemberRequest } from "./accesslist_service_pb";
-import type { Member } from "./accesslist_pb";
-import type { GetAccessListMemberRequest } from "./accesslist_service_pb";
-import type { ListAllAccessListMembersResponse } from "./accesslist_service_pb";
-import type { ListAllAccessListMembersRequest } from "./accesslist_service_pb";
-import type { ListAccessListMembersResponse } from "./accesslist_service_pb";
-import type { ListAccessListMembersRequest } from "./accesslist_service_pb";
-import type { CountAccessListMembersResponse } from "./accesslist_service_pb";
-import type { CountAccessListMembersRequest } from "./accesslist_service_pb";
-import type { GetAccessListsToReviewResponse } from "./accesslist_service_pb";
-import type { GetAccessListsToReviewRequest } from "./accesslist_service_pb";
-import type { DeleteAllAccessListsRequest } from "./accesslist_service_pb";
-import type { Empty } from "../../../google/protobuf/empty_pb";
-import type { DeleteAccessListRequest } from "./accesslist_service_pb";
-import type { UpsertAccessListRequest } from "./accesslist_service_pb";
-import type { AccessList } from "./accesslist_pb";
-import type { GetAccessListRequest } from "./accesslist_service_pb";
-import type { ListAccessListsResponse } from "./accesslist_service_pb";
-import type { ListAccessListsRequest } from "./accesslist_service_pb";
-import type { GetAccessListsResponse } from "./accesslist_service_pb";
-import type { GetAccessListsRequest } from "./accesslist_service_pb";
-import * as grpc from "@grpc/grpc-js";
-/**
- * AccessListService provides CRUD methods for Access List resources.
- *
- * @generated from protobuf service teleport.accesslist.v1.AccessListService
- */
-export interface IAccessListServiceClient {
- /**
- * GetAccessLists returns a list of all access lists.
- *
- * @generated from protobuf rpc: GetAccessLists(teleport.accesslist.v1.GetAccessListsRequest) returns (teleport.accesslist.v1.GetAccessListsResponse);
- */
- getAccessLists(input: GetAccessListsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void): grpc.ClientUnaryCall;
- getAccessLists(input: GetAccessListsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void): grpc.ClientUnaryCall;
- getAccessLists(input: GetAccessListsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void): grpc.ClientUnaryCall;
- getAccessLists(input: GetAccessListsRequest, callback: (err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListAccessLists returns a paginated list of all access lists.
- *
- * @generated from protobuf rpc: ListAccessLists(teleport.accesslist.v1.ListAccessListsRequest) returns (teleport.accesslist.v1.ListAccessListsResponse);
- */
- listAccessLists(input: ListAccessListsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void): grpc.ClientUnaryCall;
- listAccessLists(input: ListAccessListsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void): grpc.ClientUnaryCall;
- listAccessLists(input: ListAccessListsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void): grpc.ClientUnaryCall;
- listAccessLists(input: ListAccessListsRequest, callback: (err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetAccessList returns the specified access list resource.
- *
- * @generated from protobuf rpc: GetAccessList(teleport.accesslist.v1.GetAccessListRequest) returns (teleport.accesslist.v1.AccessList);
- */
- getAccessList(input: GetAccessListRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- getAccessList(input: GetAccessListRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- getAccessList(input: GetAccessListRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- getAccessList(input: GetAccessListRequest, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- /**
- * UpsertAccessList creates or updates an access list resource.
- *
- * @generated from protobuf rpc: UpsertAccessList(teleport.accesslist.v1.UpsertAccessListRequest) returns (teleport.accesslist.v1.AccessList);
- */
- upsertAccessList(input: UpsertAccessListRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- upsertAccessList(input: UpsertAccessListRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- upsertAccessList(input: UpsertAccessListRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- upsertAccessList(input: UpsertAccessListRequest, callback: (err: grpc.ServiceError | null, value?: AccessList) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAccessList hard deletes the specified access list resource.
- *
- * @generated from protobuf rpc: DeleteAccessList(teleport.accesslist.v1.DeleteAccessListRequest) returns (google.protobuf.Empty);
- */
- deleteAccessList(input: DeleteAccessListRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessList(input: DeleteAccessListRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessList(input: DeleteAccessListRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessList(input: DeleteAccessListRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAllAccessLists hard deletes all access lists.
- *
- * @generated from protobuf rpc: DeleteAllAccessLists(teleport.accesslist.v1.DeleteAllAccessListsRequest) returns (google.protobuf.Empty);
- */
- deleteAllAccessLists(input: DeleteAllAccessListsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessLists(input: DeleteAllAccessListsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessLists(input: DeleteAllAccessListsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessLists(input: DeleteAllAccessListsRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * GetAccessListsToReview will return access lists that need to be reviewed by
- * the current user.
- *
- * @generated from protobuf rpc: GetAccessListsToReview(teleport.accesslist.v1.GetAccessListsToReviewRequest) returns (teleport.accesslist.v1.GetAccessListsToReviewResponse);
- */
- getAccessListsToReview(input: GetAccessListsToReviewRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void): grpc.ClientUnaryCall;
- getAccessListsToReview(input: GetAccessListsToReviewRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void): grpc.ClientUnaryCall;
- getAccessListsToReview(input: GetAccessListsToReviewRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void): grpc.ClientUnaryCall;
- getAccessListsToReview(input: GetAccessListsToReviewRequest, callback: (err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void): grpc.ClientUnaryCall;
- /**
- * CountAccessListMembers returns the count of access list members in an
- * access list.
- *
- * @generated from protobuf rpc: CountAccessListMembers(teleport.accesslist.v1.CountAccessListMembersRequest) returns (teleport.accesslist.v1.CountAccessListMembersResponse);
- */
- countAccessListMembers(input: CountAccessListMembersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- countAccessListMembers(input: CountAccessListMembersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- countAccessListMembers(input: CountAccessListMembersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- countAccessListMembers(input: CountAccessListMembersRequest, callback: (err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListAccessListMembers returns a paginated list of all access list members.
- *
- * @generated from protobuf rpc: ListAccessListMembers(teleport.accesslist.v1.ListAccessListMembersRequest) returns (teleport.accesslist.v1.ListAccessListMembersResponse);
- */
- listAccessListMembers(input: ListAccessListMembersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- listAccessListMembers(input: ListAccessListMembersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- listAccessListMembers(input: ListAccessListMembersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- listAccessListMembers(input: ListAccessListMembersRequest, callback: (err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListAllAccessListMembers returns a paginated list of all access list
- * members for all access lists.
- *
- * @generated from protobuf rpc: ListAllAccessListMembers(teleport.accesslist.v1.ListAllAccessListMembersRequest) returns (teleport.accesslist.v1.ListAllAccessListMembersResponse);
- */
- listAllAccessListMembers(input: ListAllAccessListMembersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- listAllAccessListMembers(input: ListAllAccessListMembersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- listAllAccessListMembers(input: ListAllAccessListMembersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- listAllAccessListMembers(input: ListAllAccessListMembersRequest, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetAccessListMember returns the specified access list member resource.
- *
- * @generated from protobuf rpc: GetAccessListMember(teleport.accesslist.v1.GetAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
- */
- getAccessListMember(input: GetAccessListMemberRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- getAccessListMember(input: GetAccessListMemberRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- getAccessListMember(input: GetAccessListMemberRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- getAccessListMember(input: GetAccessListMemberRequest, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- /**
- * UpsertAccessListMember creates or updates an access list member resource.
- *
- * @generated from protobuf rpc: UpsertAccessListMember(teleport.accesslist.v1.UpsertAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
- */
- upsertAccessListMember(input: UpsertAccessListMemberRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- upsertAccessListMember(input: UpsertAccessListMemberRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- upsertAccessListMember(input: UpsertAccessListMemberRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- upsertAccessListMember(input: UpsertAccessListMemberRequest, callback: (err: grpc.ServiceError | null, value?: Member) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAccessListMember hard deletes the specified access list member
- * resource.
- *
- * @generated from protobuf rpc: DeleteAccessListMember(teleport.accesslist.v1.DeleteAccessListMemberRequest) returns (google.protobuf.Empty);
- */
- deleteAccessListMember(input: DeleteAccessListMemberRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessListMember(input: DeleteAccessListMemberRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessListMember(input: DeleteAccessListMemberRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessListMember(input: DeleteAccessListMemberRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAllAccessListMembers hard deletes all access list members for an
- * access list.
- *
- * @generated from protobuf rpc: DeleteAllAccessListMembersForAccessList(teleport.accesslist.v1.DeleteAllAccessListMembersForAccessListRequest) returns (google.protobuf.Empty);
- */
- deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAllAccessListMembers hard deletes all access list members for an
- * access list.
- *
- * @generated from protobuf rpc: DeleteAllAccessListMembers(teleport.accesslist.v1.DeleteAllAccessListMembersRequest) returns (google.protobuf.Empty);
- */
- deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * UpsertAccessListWithMembers creates or updates an access list with members.
- *
- * @generated from protobuf rpc: UpsertAccessListWithMembers(teleport.accesslist.v1.UpsertAccessListWithMembersRequest) returns (teleport.accesslist.v1.UpsertAccessListWithMembersResponse);
- */
- upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void): grpc.ClientUnaryCall;
- upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void): grpc.ClientUnaryCall;
- upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void): grpc.ClientUnaryCall;
- upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, callback: (err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListAccessListReviews will list access list reviews for a particular access
- * list.
- *
- * @generated from protobuf rpc: ListAccessListReviews(teleport.accesslist.v1.ListAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAccessListReviewsResponse);
- */
- listAccessListReviews(input: ListAccessListReviewsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- listAccessListReviews(input: ListAccessListReviewsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- listAccessListReviews(input: ListAccessListReviewsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- listAccessListReviews(input: ListAccessListReviewsRequest, callback: (err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListAllAccessListReviews will list access list reviews for all access
- * lists.
- *
- * @generated from protobuf rpc: ListAllAccessListReviews(teleport.accesslist.v1.ListAllAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAllAccessListReviewsResponse);
- */
- listAllAccessListReviews(input: ListAllAccessListReviewsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- listAllAccessListReviews(input: ListAllAccessListReviewsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- listAllAccessListReviews(input: ListAllAccessListReviewsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- listAllAccessListReviews(input: ListAllAccessListReviewsRequest, callback: (err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void): grpc.ClientUnaryCall;
- /**
- * CreateAccessListReview will create a new review for an access list. It will
- * also modify the original access list and its members depending on the
- * details of the review.
- *
- * @generated from protobuf rpc: CreateAccessListReview(teleport.accesslist.v1.CreateAccessListReviewRequest) returns (teleport.accesslist.v1.CreateAccessListReviewResponse);
- */
- createAccessListReview(input: CreateAccessListReviewRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void): grpc.ClientUnaryCall;
- createAccessListReview(input: CreateAccessListReviewRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void): grpc.ClientUnaryCall;
- createAccessListReview(input: CreateAccessListReviewRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void): grpc.ClientUnaryCall;
- createAccessListReview(input: CreateAccessListReviewRequest, callback: (err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAccessListReview will delete an access list review from the backend.
- *
- * @generated from protobuf rpc: DeleteAccessListReview(teleport.accesslist.v1.DeleteAccessListReviewRequest) returns (google.protobuf.Empty);
- */
- deleteAccessListReview(input: DeleteAccessListReviewRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessListReview(input: DeleteAccessListReviewRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessListReview(input: DeleteAccessListReviewRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteAccessListReview(input: DeleteAccessListReviewRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * AccessRequestPromote promotes an access request to an access list.
- *
- * @generated from protobuf rpc: AccessRequestPromote(teleport.accesslist.v1.AccessRequestPromoteRequest) returns (teleport.accesslist.v1.AccessRequestPromoteResponse);
- */
- accessRequestPromote(input: AccessRequestPromoteRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void): grpc.ClientUnaryCall;
- accessRequestPromote(input: AccessRequestPromoteRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void): grpc.ClientUnaryCall;
- accessRequestPromote(input: AccessRequestPromoteRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void): grpc.ClientUnaryCall;
- accessRequestPromote(input: AccessRequestPromoteRequest, callback: (err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetSuggestedAccessLists returns suggested access lists for an access
- * request.
- *
- * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.accesslist.v1.GetSuggestedAccessListsRequest) returns (teleport.accesslist.v1.GetSuggestedAccessListsResponse);
- */
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
-}
-/**
- * AccessListService provides CRUD methods for Access List resources.
- *
- * @generated from protobuf service teleport.accesslist.v1.AccessListService
- */
-export class AccessListServiceClient extends grpc.Client implements IAccessListServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
- }
- /**
- * GetAccessLists returns a list of all access lists.
- *
- * @generated from protobuf rpc: GetAccessLists(teleport.accesslist.v1.GetAccessListsRequest) returns (teleport.accesslist.v1.GetAccessListsResponse);
- */
- getAccessLists(input: GetAccessListsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetAccessListsResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[0];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: GetAccessListsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetAccessListsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListAccessLists returns a paginated list of all access lists.
- *
- * @generated from protobuf rpc: ListAccessLists(teleport.accesslist.v1.ListAccessListsRequest) returns (teleport.accesslist.v1.ListAccessListsResponse);
- */
- listAccessLists(input: ListAccessListsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListAccessListsResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[1];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: ListAccessListsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListAccessListsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * GetAccessList returns the specified access list resource.
- *
- * @generated from protobuf rpc: GetAccessList(teleport.accesslist.v1.GetAccessListRequest) returns (teleport.accesslist.v1.AccessList);
- */
- getAccessList(input: GetAccessListRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AccessList) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AccessList) => void), callback?: ((err: grpc.ServiceError | null, value?: AccessList) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[2];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: GetAccessListRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): AccessList => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * UpsertAccessList creates or updates an access list resource.
- *
- * @generated from protobuf rpc: UpsertAccessList(teleport.accesslist.v1.UpsertAccessListRequest) returns (teleport.accesslist.v1.AccessList);
- */
- upsertAccessList(input: UpsertAccessListRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AccessList) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AccessList) => void), callback?: ((err: grpc.ServiceError | null, value?: AccessList) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[3];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: UpsertAccessListRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): AccessList => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteAccessList hard deletes the specified access list resource.
- *
- * @generated from protobuf rpc: DeleteAccessList(teleport.accesslist.v1.DeleteAccessListRequest) returns (google.protobuf.Empty);
- */
- deleteAccessList(input: DeleteAccessListRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[4];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: DeleteAccessListRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Empty => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteAllAccessLists hard deletes all access lists.
- *
- * @generated from protobuf rpc: DeleteAllAccessLists(teleport.accesslist.v1.DeleteAllAccessListsRequest) returns (google.protobuf.Empty);
- */
- deleteAllAccessLists(input: DeleteAllAccessListsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[5];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: DeleteAllAccessListsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Empty => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * GetAccessListsToReview will return access lists that need to be reviewed by
- * the current user.
- *
- * @generated from protobuf rpc: GetAccessListsToReview(teleport.accesslist.v1.GetAccessListsToReviewRequest) returns (teleport.accesslist.v1.GetAccessListsToReviewResponse);
- */
- getAccessListsToReview(input: GetAccessListsToReviewRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetAccessListsToReviewResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[6];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: GetAccessListsToReviewRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetAccessListsToReviewResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * CountAccessListMembers returns the count of access list members in an
- * access list.
- *
- * @generated from protobuf rpc: CountAccessListMembers(teleport.accesslist.v1.CountAccessListMembersRequest) returns (teleport.accesslist.v1.CountAccessListMembersResponse);
- */
- countAccessListMembers(input: CountAccessListMembersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: CountAccessListMembersResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[7];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: CountAccessListMembersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): CountAccessListMembersResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListAccessListMembers returns a paginated list of all access list members.
- *
- * @generated from protobuf rpc: ListAccessListMembers(teleport.accesslist.v1.ListAccessListMembersRequest) returns (teleport.accesslist.v1.ListAccessListMembersResponse);
- */
- listAccessListMembers(input: ListAccessListMembersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListAccessListMembersResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[8];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: ListAccessListMembersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListAccessListMembersResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListAllAccessListMembers returns a paginated list of all access list
- * members for all access lists.
- *
- * @generated from protobuf rpc: ListAllAccessListMembers(teleport.accesslist.v1.ListAllAccessListMembersRequest) returns (teleport.accesslist.v1.ListAllAccessListMembersResponse);
- */
- listAllAccessListMembers(input: ListAllAccessListMembersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListAllAccessListMembersResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[9];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: ListAllAccessListMembersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListAllAccessListMembersResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * GetAccessListMember returns the specified access list member resource.
- *
- * @generated from protobuf rpc: GetAccessListMember(teleport.accesslist.v1.GetAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
- */
- getAccessListMember(input: GetAccessListMemberRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Member) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Member) => void), callback?: ((err: grpc.ServiceError | null, value?: Member) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[10];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: GetAccessListMemberRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Member => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * UpsertAccessListMember creates or updates an access list member resource.
- *
- * @generated from protobuf rpc: UpsertAccessListMember(teleport.accesslist.v1.UpsertAccessListMemberRequest) returns (teleport.accesslist.v1.Member);
- */
- upsertAccessListMember(input: UpsertAccessListMemberRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Member) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Member) => void), callback?: ((err: grpc.ServiceError | null, value?: Member) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[11];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: UpsertAccessListMemberRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Member => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteAccessListMember hard deletes the specified access list member
- * resource.
- *
- * @generated from protobuf rpc: DeleteAccessListMember(teleport.accesslist.v1.DeleteAccessListMemberRequest) returns (google.protobuf.Empty);
- */
- deleteAccessListMember(input: DeleteAccessListMemberRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[12];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: DeleteAccessListMemberRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Empty => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteAllAccessListMembers hard deletes all access list members for an
- * access list.
- *
- * @generated from protobuf rpc: DeleteAllAccessListMembersForAccessList(teleport.accesslist.v1.DeleteAllAccessListMembersForAccessListRequest) returns (google.protobuf.Empty);
- */
- deleteAllAccessListMembersForAccessList(input: DeleteAllAccessListMembersForAccessListRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[13];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: DeleteAllAccessListMembersForAccessListRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Empty => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteAllAccessListMembers hard deletes all access list members for an
- * access list.
- *
- * @generated from protobuf rpc: DeleteAllAccessListMembers(teleport.accesslist.v1.DeleteAllAccessListMembersRequest) returns (google.protobuf.Empty);
- */
- deleteAllAccessListMembers(input: DeleteAllAccessListMembersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[14];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: DeleteAllAccessListMembersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Empty => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * UpsertAccessListWithMembers creates or updates an access list with members.
- *
- * @generated from protobuf rpc: UpsertAccessListWithMembers(teleport.accesslist.v1.UpsertAccessListWithMembersRequest) returns (teleport.accesslist.v1.UpsertAccessListWithMembersResponse);
- */
- upsertAccessListWithMembers(input: UpsertAccessListWithMembersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: UpsertAccessListWithMembersResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[15];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: UpsertAccessListWithMembersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): UpsertAccessListWithMembersResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListAccessListReviews will list access list reviews for a particular access
- * list.
- *
- * @generated from protobuf rpc: ListAccessListReviews(teleport.accesslist.v1.ListAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAccessListReviewsResponse);
- */
- listAccessListReviews(input: ListAccessListReviewsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListAccessListReviewsResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[16];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: ListAccessListReviewsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListAccessListReviewsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListAllAccessListReviews will list access list reviews for all access
- * lists.
- *
- * @generated from protobuf rpc: ListAllAccessListReviews(teleport.accesslist.v1.ListAllAccessListReviewsRequest) returns (teleport.accesslist.v1.ListAllAccessListReviewsResponse);
- */
- listAllAccessListReviews(input: ListAllAccessListReviewsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListAllAccessListReviewsResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[17];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: ListAllAccessListReviewsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListAllAccessListReviewsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * CreateAccessListReview will create a new review for an access list. It will
- * also modify the original access list and its members depending on the
- * details of the review.
- *
- * @generated from protobuf rpc: CreateAccessListReview(teleport.accesslist.v1.CreateAccessListReviewRequest) returns (teleport.accesslist.v1.CreateAccessListReviewResponse);
- */
- createAccessListReview(input: CreateAccessListReviewRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: CreateAccessListReviewResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[18];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: CreateAccessListReviewRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): CreateAccessListReviewResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteAccessListReview will delete an access list review from the backend.
- *
- * @generated from protobuf rpc: DeleteAccessListReview(teleport.accesslist.v1.DeleteAccessListReviewRequest) returns (google.protobuf.Empty);
- */
- deleteAccessListReview(input: DeleteAccessListReviewRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[19];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: DeleteAccessListReviewRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Empty => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * AccessRequestPromote promotes an access request to an access list.
- *
- * @generated from protobuf rpc: AccessRequestPromote(teleport.accesslist.v1.AccessRequestPromoteRequest) returns (teleport.accesslist.v1.AccessRequestPromoteResponse);
- */
- accessRequestPromote(input: AccessRequestPromoteRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: AccessRequestPromoteResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[20];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: AccessRequestPromoteRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): AccessRequestPromoteResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * GetSuggestedAccessLists returns suggested access lists for an access
- * request.
- *
- * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.accesslist.v1.GetSuggestedAccessListsRequest) returns (teleport.accesslist.v1.GetSuggestedAccessListsResponse);
- */
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void)): grpc.ClientUnaryCall {
- const method = AccessListService.methods[21];
- return this.makeUnaryRequest(`/${AccessListService.typeName}/${method.name}`, (value: GetSuggestedAccessListsRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetSuggestedAccessListsResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
-}
diff --git a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-server.ts b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-server.ts
index 29cec5264e796..9559e8db63b24 100644
--- a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-server.ts
+++ b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.grpc-server.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/accesslist/v1/accesslist_service.proto" (package "teleport.accesslist.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.ts b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.ts
index 1b1e7872a6b87..0bcf05f877f3d 100644
--- a/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.ts
+++ b/gen/proto/ts/teleport/accesslist/v1/accesslist_service_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/accesslist/v1/accesslist_service.proto" (package "teleport.accesslist.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/header/v1/metadata_pb.ts b/gen/proto/ts/teleport/header/v1/metadata_pb.ts
index a6efa06e168ca..6e8d155108698 100644
--- a/gen/proto/ts/teleport/header/v1/metadata_pb.ts
+++ b/gen/proto/ts/teleport/header/v1/metadata_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/header/v1/metadata.proto" (package "teleport.header.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/header/v1/resourceheader_pb.ts b/gen/proto/ts/teleport/header/v1/resourceheader_pb.ts
index 72b493317d117..5b050c9064d0d 100644
--- a/gen/proto/ts/teleport/header/v1/resourceheader_pb.ts
+++ b/gen/proto/ts/teleport/header/v1/resourceheader_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/header/v1/resourceheader.proto" (package "teleport.header.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/access_request_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/access_request_pb.ts
index 6d397a16bbd13..41ab0cbcd00ec 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/access_request_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/access_request_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/access_request.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/app_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/app_pb.ts
index 6705c650256f2..132ad39c7b229 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/app_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/app_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/app.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/auth_settings_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/auth_settings_pb.ts
index b1ee9810bdd4b..da10c4801b9c7 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/auth_settings_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/auth_settings_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/auth_settings.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/cluster_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/cluster_pb.ts
index d8b71be887936..817774b40d487 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/cluster_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/cluster_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/cluster.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/database_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/database_pb.ts
index c2867d4b84e61..e70fe4b2d642f 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/database_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/database_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/database.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/gateway_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/gateway_pb.ts
index 97548b542556e..223c7083eb2a2 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/gateway_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/gateway_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/gateway.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/kube_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/kube_pb.ts
index ccd336350c625..bbbc8fbc39f21 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/kube_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/kube_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/kube.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/label_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/label_pb.ts
index 8c41b3de777aa..faa5641b84869 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/label_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/label_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/label.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/server_pb.ts b/gen/proto/ts/teleport/lib/teleterm/v1/server_pb.ts
index df8918903069d..9f4966c09e56f 100644
--- a/gen/proto/ts/teleport/lib/teleterm/v1/server_pb.ts
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/server_pb.ts
@@ -1,5 +1,5 @@
/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
// @generated from protobuf file "teleport/lib/teleterm/v1/server.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.client.ts b/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.client.ts
new file mode 100644
index 0000000000000..0cd2a68158fd8
--- /dev/null
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.client.ts
@@ -0,0 +1,800 @@
+/* eslint-disable */
+// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,server_grpc1,ts_nocheck
+// @generated from protobuf file "teleport/lib/teleterm/v1/service.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
+// tslint:disable
+// @ts-nocheck
+//
+//
+// Teleport
+// Copyright (C) 2023 Gravitational, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+//
+import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
+import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
+import { TerminalService } from "./service_pb";
+import type { UpdateUserPreferencesResponse } from "./service_pb";
+import type { UpdateUserPreferencesRequest } from "./service_pb";
+import type { GetUserPreferencesResponse } from "./service_pb";
+import type { GetUserPreferencesRequest } from "./service_pb";
+import type { ListUnifiedResourcesResponse } from "./service_pb";
+import type { ListUnifiedResourcesRequest } from "./service_pb";
+import type { GetConnectMyComputerNodeNameResponse } from "./service_pb";
+import type { GetConnectMyComputerNodeNameRequest } from "./service_pb";
+import type { DeleteConnectMyComputerNodeResponse } from "./service_pb";
+import type { DeleteConnectMyComputerNodeRequest } from "./service_pb";
+import type { WaitForConnectMyComputerNodeJoinResponse } from "./service_pb";
+import type { WaitForConnectMyComputerNodeJoinRequest } from "./service_pb";
+import type { CreateConnectMyComputerNodeTokenResponse } from "./service_pb";
+import type { CreateConnectMyComputerNodeTokenRequest } from "./service_pb";
+import type { CreateConnectMyComputerRoleResponse } from "./service_pb";
+import type { CreateConnectMyComputerRoleRequest } from "./service_pb";
+import type { UpdateHeadlessAuthenticationStateResponse } from "./service_pb";
+import type { UpdateHeadlessAuthenticationStateRequest } from "./service_pb";
+import type { ReportUsageEventRequest } from "./usage_events_pb";
+import type { FileTransferProgress } from "./service_pb";
+import type { FileTransferRequest } from "./service_pb";
+import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
+import type { LogoutRequest } from "./service_pb";
+import type { LoginPasswordlessResponse } from "./service_pb";
+import type { LoginPasswordlessRequest } from "./service_pb";
+import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
+import type { LoginRequest } from "./service_pb";
+import type { GetClusterRequest } from "./service_pb";
+import type { AuthSettings } from "./auth_settings_pb";
+import type { GetAuthSettingsRequest } from "./service_pb";
+import type { SetGatewayLocalPortRequest } from "./service_pb";
+import type { SetGatewayTargetSubresourceNameRequest } from "./service_pb";
+import type { RemoveGatewayRequest } from "./service_pb";
+import type { Gateway } from "./gateway_pb";
+import type { CreateGatewayRequest } from "./service_pb";
+import type { ListGatewaysResponse } from "./service_pb";
+import type { ListGatewaysRequest } from "./service_pb";
+import type { RemoveClusterRequest } from "./service_pb";
+import type { Cluster } from "./cluster_pb";
+import type { AddClusterRequest } from "./service_pb";
+import type { GetAppsResponse } from "./service_pb";
+import type { GetAppsRequest } from "./service_pb";
+import type { GetKubesResponse } from "./service_pb";
+import type { GetKubesRequest } from "./service_pb";
+import type { GetSuggestedAccessListsResponse } from "./service_pb";
+import type { GetSuggestedAccessListsRequest } from "./service_pb";
+import type { PromoteAccessRequestResponse } from "./service_pb";
+import type { PromoteAccessRequestRequest } from "./service_pb";
+import type { AssumeRoleRequest } from "./service_pb";
+import type { GetRequestableRolesResponse } from "./service_pb";
+import type { GetRequestableRolesRequest } from "./service_pb";
+import type { ReviewAccessRequestResponse } from "./service_pb";
+import type { ReviewAccessRequestRequest } from "./service_pb";
+import type { CreateAccessRequestResponse } from "./service_pb";
+import type { CreateAccessRequestRequest } from "./service_pb";
+import type { EmptyResponse } from "./service_pb";
+import type { DeleteAccessRequestRequest } from "./service_pb";
+import type { GetAccessRequestResponse } from "./service_pb";
+import type { GetAccessRequestRequest } from "./service_pb";
+import type { GetAccessRequestsResponse } from "./service_pb";
+import type { GetAccessRequestsRequest } from "./service_pb";
+import type { GetServersResponse } from "./service_pb";
+import type { GetServersRequest } from "./service_pb";
+import type { ListDatabaseUsersResponse } from "./service_pb";
+import type { ListDatabaseUsersRequest } from "./service_pb";
+import type { GetDatabasesResponse } from "./service_pb";
+import type { GetDatabasesRequest } from "./service_pb";
+import type { ListLeafClustersRequest } from "./service_pb";
+import type { ListClustersResponse } from "./service_pb";
+import type { ListClustersRequest } from "./service_pb";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
+import type { UpdateTshdEventsServerAddressResponse } from "./service_pb";
+import type { UpdateTshdEventsServerAddressRequest } from "./service_pb";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
+/**
+ * TerminalService is used by the Electron app to communicate with the tsh daemon.
+ *
+ * While we aim to preserve backwards compatibility in order to satisfy CI checks and follow the
+ * proto practices used within the company, this service is not guaranteed to be stable across
+ * versions. The packaging process of Teleport Connect ensures that the server and the client use
+ * the same version of the service.
+ *
+ * @generated from protobuf service teleport.lib.teleterm.v1.TerminalService
+ */
+export interface ITerminalServiceClient {
+ /**
+ * UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is
+ * supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made
+ * before any other from this service.
+ *
+ * The service is supposed to return a response from this call only after the client is ready.
+ *
+ * @generated from protobuf rpc: UpdateTshdEventsServerAddress(teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest) returns (teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse);
+ */
+ updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListRootClusters lists root clusters
+ * Does not include detailed cluster information that would require a network request.
+ *
+ * @generated from protobuf rpc: ListRootClusters(teleport.lib.teleterm.v1.ListClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
+ */
+ listRootClusters(input: ListClustersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListLeafClusters lists leaf clusters
+ * Does not include detailed cluster information that would require a network request.
+ *
+ * @generated from protobuf rpc: ListLeafClusters(teleport.lib.teleterm.v1.ListLeafClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
+ */
+ listLeafClusters(input: ListLeafClustersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetDatabases returns a filtered and paginated list of databases
+ *
+ * @generated from protobuf rpc: GetDatabases(teleport.lib.teleterm.v1.GetDatabasesRequest) returns (teleport.lib.teleterm.v1.GetDatabasesResponse);
+ */
+ getDatabases(input: GetDatabasesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListDatabaseUsers lists allowed users for the given database based on the role set.
+ *
+ * @generated from protobuf rpc: ListDatabaseUsers(teleport.lib.teleterm.v1.ListDatabaseUsersRequest) returns (teleport.lib.teleterm.v1.ListDatabaseUsersResponse);
+ */
+ listDatabaseUsers(input: ListDatabaseUsersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetServers returns filtered, sorted, and paginated servers
+ *
+ * @generated from protobuf rpc: GetServers(teleport.lib.teleterm.v1.GetServersRequest) returns (teleport.lib.teleterm.v1.GetServersResponse);
+ */
+ getServers(input: GetServersRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetAccessRequests lists filtered AccessRequests
+ *
+ * @generated from protobuf rpc: GetAccessRequests(teleport.lib.teleterm.v1.GetAccessRequestsRequest) returns (teleport.lib.teleterm.v1.GetAccessRequestsResponse);
+ */
+ getAccessRequests(input: GetAccessRequestsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetAccessRequest retreives a single Access Request
+ *
+ * @generated from protobuf rpc: GetAccessRequest(teleport.lib.teleterm.v1.GetAccessRequestRequest) returns (teleport.lib.teleterm.v1.GetAccessRequestResponse);
+ */
+ getAccessRequest(input: GetAccessRequestRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteAccessRequest deletes the access request by id
+ *
+ * @generated from protobuf rpc: DeleteAccessRequest(teleport.lib.teleterm.v1.DeleteAccessRequestRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ deleteAccessRequest(input: DeleteAccessRequestRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CreateAccessRequest creates an access request
+ *
+ * @generated from protobuf rpc: CreateAccessRequest(teleport.lib.teleterm.v1.CreateAccessRequestRequest) returns (teleport.lib.teleterm.v1.CreateAccessRequestResponse);
+ */
+ createAccessRequest(input: CreateAccessRequestRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ReviewAccessRequest submits a review for an Access Request
+ *
+ * @generated from protobuf rpc: ReviewAccessRequest(teleport.lib.teleterm.v1.ReviewAccessRequestRequest) returns (teleport.lib.teleterm.v1.ReviewAccessRequestResponse);
+ */
+ reviewAccessRequest(input: ReviewAccessRequestRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetRequestableRoles gets all requestable roles
+ *
+ * @generated from protobuf rpc: GetRequestableRoles(teleport.lib.teleterm.v1.GetRequestableRolesRequest) returns (teleport.lib.teleterm.v1.GetRequestableRolesResponse);
+ */
+ getRequestableRoles(input: GetRequestableRolesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * AssumeRole assumes the role of the given access request
+ *
+ * @generated from protobuf rpc: AssumeRole(teleport.lib.teleterm.v1.AssumeRoleRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ assumeRole(input: AssumeRoleRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * PromoteAccessRequest promotes an access request to an access list.
+ *
+ * @generated from protobuf rpc: PromoteAccessRequest(teleport.lib.teleterm.v1.PromoteAccessRequestRequest) returns (teleport.lib.teleterm.v1.PromoteAccessRequestResponse);
+ */
+ promoteAccessRequest(input: PromoteAccessRequestRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetSuggestedAccessLists returns suggested access lists for an access request.
+ *
+ * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.lib.teleterm.v1.GetSuggestedAccessListsRequest) returns (teleport.lib.teleterm.v1.GetSuggestedAccessListsResponse);
+ */
+ getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetKubes returns filtered, sorted, and paginated kubes
+ *
+ * @generated from protobuf rpc: GetKubes(teleport.lib.teleterm.v1.GetKubesRequest) returns (teleport.lib.teleterm.v1.GetKubesResponse);
+ */
+ getKubes(input: GetKubesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetApps returns a filtered and paginated list of apps.
+ *
+ * @generated from protobuf rpc: GetApps(teleport.lib.teleterm.v1.GetAppsRequest) returns (teleport.lib.teleterm.v1.GetAppsResponse);
+ */
+ getApps(input: GetAppsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * AddCluster adds a cluster to profile
+ *
+ * @generated from protobuf rpc: AddCluster(teleport.lib.teleterm.v1.AddClusterRequest) returns (teleport.lib.teleterm.v1.Cluster);
+ */
+ addCluster(input: AddClusterRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * RemoveCluster removes a cluster from profile
+ *
+ * @generated from protobuf rpc: RemoveCluster(teleport.lib.teleterm.v1.RemoveClusterRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ removeCluster(input: RemoveClusterRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListGateways lists gateways
+ *
+ * @generated from protobuf rpc: ListGateways(teleport.lib.teleterm.v1.ListGatewaysRequest) returns (teleport.lib.teleterm.v1.ListGatewaysResponse);
+ */
+ listGateways(input: ListGatewaysRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CreateGateway creates a gateway
+ *
+ * @generated from protobuf rpc: CreateGateway(teleport.lib.teleterm.v1.CreateGatewayRequest) returns (teleport.lib.teleterm.v1.Gateway);
+ */
+ createGateway(input: CreateGatewayRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * RemoveGateway removes a gateway
+ *
+ * @generated from protobuf rpc: RemoveGateway(teleport.lib.teleterm.v1.RemoveGatewayRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ removeGateway(input: RemoveGatewayRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * SetGatewayTargetSubresourceName changes the TargetSubresourceName field of gateway.Gateway
+ * and returns the updated version of gateway.Gateway.
+ *
+ * In Connect this is used to update the db name of a db connection along with the CLI command.
+ *
+ * @generated from protobuf rpc: SetGatewayTargetSubresourceName(teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest) returns (teleport.lib.teleterm.v1.Gateway);
+ */
+ setGatewayTargetSubresourceName(input: SetGatewayTargetSubresourceNameRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * SetGatewayLocalPort starts a new gateway on the new port, stops the old gateway and then
+ * assigns the URI of the old gateway to the new one. It does so without fetching a new db cert.
+ *
+ * @generated from protobuf rpc: SetGatewayLocalPort(teleport.lib.teleterm.v1.SetGatewayLocalPortRequest) returns (teleport.lib.teleterm.v1.Gateway);
+ */
+ setGatewayLocalPort(input: SetGatewayLocalPortRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetAuthSettings returns cluster auth settigns
+ *
+ * @generated from protobuf rpc: GetAuthSettings(teleport.lib.teleterm.v1.GetAuthSettingsRequest) returns (teleport.lib.teleterm.v1.AuthSettings);
+ */
+ getAuthSettings(input: GetAuthSettingsRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetCluster returns cluster. Makes a network request and includes detailed
+ * information about enterprise features availabed on the connected auth server
+ *
+ * @generated from protobuf rpc: GetCluster(teleport.lib.teleterm.v1.GetClusterRequest) returns (teleport.lib.teleterm.v1.Cluster);
+ */
+ getCluster(input: GetClusterRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * Login logs in a user to a cluster
+ *
+ * @generated from protobuf rpc: Login(teleport.lib.teleterm.v1.LoginRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ login(input: LoginRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * LoginPasswordless logs in a user to a cluster passwordlessly.
+ *
+ * The RPC is streaming both ways and the message sequence example for hardware keys are:
+ * (-> means client-to-server, <- means server-to-client)
+ *
+ * Hardware keys:
+ * -> Init
+ * <- Send PasswordlessPrompt enum TAP to choose a device
+ * -> Receive TAP device response
+ * <- Send PasswordlessPrompt enum PIN
+ * -> Receive PIN response
+ * <- Send PasswordlessPrompt enum RETAP to confirm
+ * -> Receive RETAP device response
+ * <- Send list of credentials (e.g. usernames) associated with device
+ * -> Receive the index number associated with the selected credential in list
+ * <- End
+ *
+ * @generated from protobuf rpc: LoginPasswordless(stream teleport.lib.teleterm.v1.LoginPasswordlessRequest) returns (stream teleport.lib.teleterm.v1.LoginPasswordlessResponse);
+ */
+ loginPasswordless(options?: RpcOptions): DuplexStreamingCall;
+ /**
+ * ClusterLogin logs out a user from cluster
+ *
+ * @generated from protobuf rpc: Logout(teleport.lib.teleterm.v1.LogoutRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ logout(input: LogoutRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * TransferFile sends a request to download/upload a file
+ *
+ * @generated from protobuf rpc: TransferFile(teleport.lib.teleterm.v1.FileTransferRequest) returns (stream teleport.lib.teleterm.v1.FileTransferProgress);
+ */
+ transferFile(input: FileTransferRequest, options?: RpcOptions): ServerStreamingCall;
+ /**
+ * ReportUsageEvent allows to send usage events that are then anonymized and forwarded to prehog
+ *
+ * @generated from protobuf rpc: ReportUsageEvent(teleport.lib.teleterm.v1.ReportUsageEventRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ reportUsageEvent(input: ReportUsageEventRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpdateHeadlessAuthenticationState updates a headless authentication resource's state.
+ * An MFA challenge will be prompted when approving a headless authentication.
+ *
+ * @generated from protobuf rpc: UpdateHeadlessAuthenticationState(teleport.lib.teleterm.v1.UpdateHeadlessAuthenticationStateRequest) returns (teleport.lib.teleterm.v1.UpdateHeadlessAuthenticationStateResponse);
+ */
+ updateHeadlessAuthenticationState(input: UpdateHeadlessAuthenticationStateRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CreateConnectMyComputerRole creates a role which allows access to nodes with the label
+ * teleport.dev/connect-my-computer/owner: and allows logging in to those nodes as
+ * the current system user.
+ *
+ * @generated from protobuf rpc: CreateConnectMyComputerRole(teleport.lib.teleterm.v1.CreateConnectMyComputerRoleRequest) returns (teleport.lib.teleterm.v1.CreateConnectMyComputerRoleResponse);
+ */
+ createConnectMyComputerRole(input: CreateConnectMyComputerRoleRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CreateConnectMyComputerNodeToken creates a node join token that is valid for 5 minutes
+ *
+ * @generated from protobuf rpc: CreateConnectMyComputerNodeToken(teleport.lib.teleterm.v1.CreateConnectMyComputerNodeTokenRequest) returns (teleport.lib.teleterm.v1.CreateConnectMyComputerNodeTokenResponse);
+ */
+ createConnectMyComputerNodeToken(input: CreateConnectMyComputerNodeTokenRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * WaitForConnectMyComputerNodeJoin sets up a watcher and returns a response only after detecting
+ * that the Connect My Computer node for the particular cluster has joined the cluster (the
+ * OpPut event).
+ *
+ * This RPC times out by itself after a minute to prevent the request from hanging forever, in
+ * case the client didn't set a deadline or doesn't abort the request.
+ *
+ * @generated from protobuf rpc: WaitForConnectMyComputerNodeJoin(teleport.lib.teleterm.v1.WaitForConnectMyComputerNodeJoinRequest) returns (teleport.lib.teleterm.v1.WaitForConnectMyComputerNodeJoinResponse);
+ */
+ waitForConnectMyComputerNodeJoin(input: WaitForConnectMyComputerNodeJoinRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteConnectMyComputerNode deletes the Connect My Computer node.
+ *
+ * @generated from protobuf rpc: DeleteConnectMyComputerNode(teleport.lib.teleterm.v1.DeleteConnectMyComputerNodeRequest) returns (teleport.lib.teleterm.v1.DeleteConnectMyComputerNodeResponse);
+ */
+ deleteConnectMyComputerNode(input: DeleteConnectMyComputerNodeRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetConnectMyComputerNodeName reads the Connect My Computer node name (UUID) from a disk.
+ *
+ * @generated from protobuf rpc: GetConnectMyComputerNodeName(teleport.lib.teleterm.v1.GetConnectMyComputerNodeNameRequest) returns (teleport.lib.teleterm.v1.GetConnectMyComputerNodeNameResponse);
+ */
+ getConnectMyComputerNodeName(input: GetConnectMyComputerNodeNameRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListUnifiedResources retrieves a paginated list of all resource types displayable in the UI.
+ *
+ * @generated from protobuf rpc: ListUnifiedResources(teleport.lib.teleterm.v1.ListUnifiedResourcesRequest) returns (teleport.lib.teleterm.v1.ListUnifiedResourcesResponse);
+ */
+ listUnifiedResources(input: ListUnifiedResourcesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetUserPreferences returns the combined (root + leaf cluster) preferences for a given user.
+ *
+ * @generated from protobuf rpc: GetUserPreferences(teleport.lib.teleterm.v1.GetUserPreferencesRequest) returns (teleport.lib.teleterm.v1.GetUserPreferencesResponse);
+ */
+ getUserPreferences(input: GetUserPreferencesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpdateUserPreferences updates the preferences for a given user in appropriate root and leaf clusters.
+ * Only the properties that are set (cluster_preferences, unified_resource_preferences) will be updated.
+ *
+ * @generated from protobuf rpc: UpdateUserPreferences(teleport.lib.teleterm.v1.UpdateUserPreferencesRequest) returns (teleport.lib.teleterm.v1.UpdateUserPreferencesResponse);
+ */
+ updateUserPreferences(input: UpdateUserPreferencesRequest, options?: RpcOptions): UnaryCall;
+}
+/**
+ * TerminalService is used by the Electron app to communicate with the tsh daemon.
+ *
+ * While we aim to preserve backwards compatibility in order to satisfy CI checks and follow the
+ * proto practices used within the company, this service is not guaranteed to be stable across
+ * versions. The packaging process of Teleport Connect ensures that the server and the client use
+ * the same version of the service.
+ *
+ * @generated from protobuf service teleport.lib.teleterm.v1.TerminalService
+ */
+export class TerminalServiceClient implements ITerminalServiceClient, ServiceInfo {
+ typeName = TerminalService.typeName;
+ methods = TerminalService.methods;
+ options = TerminalService.options;
+ constructor(private readonly _transport: RpcTransport) {
+ }
+ /**
+ * UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is
+ * supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made
+ * before any other from this service.
+ *
+ * The service is supposed to return a response from this call only after the client is ready.
+ *
+ * @generated from protobuf rpc: UpdateTshdEventsServerAddress(teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest) returns (teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse);
+ */
+ updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListRootClusters lists root clusters
+ * Does not include detailed cluster information that would require a network request.
+ *
+ * @generated from protobuf rpc: ListRootClusters(teleport.lib.teleterm.v1.ListClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
+ */
+ listRootClusters(input: ListClustersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListLeafClusters lists leaf clusters
+ * Does not include detailed cluster information that would require a network request.
+ *
+ * @generated from protobuf rpc: ListLeafClusters(teleport.lib.teleterm.v1.ListLeafClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
+ */
+ listLeafClusters(input: ListLeafClustersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetDatabases returns a filtered and paginated list of databases
+ *
+ * @generated from protobuf rpc: GetDatabases(teleport.lib.teleterm.v1.GetDatabasesRequest) returns (teleport.lib.teleterm.v1.GetDatabasesResponse);
+ */
+ getDatabases(input: GetDatabasesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListDatabaseUsers lists allowed users for the given database based on the role set.
+ *
+ * @generated from protobuf rpc: ListDatabaseUsers(teleport.lib.teleterm.v1.ListDatabaseUsersRequest) returns (teleport.lib.teleterm.v1.ListDatabaseUsersResponse);
+ */
+ listDatabaseUsers(input: ListDatabaseUsersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetServers returns filtered, sorted, and paginated servers
+ *
+ * @generated from protobuf rpc: GetServers(teleport.lib.teleterm.v1.GetServersRequest) returns (teleport.lib.teleterm.v1.GetServersResponse);
+ */
+ getServers(input: GetServersRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetAccessRequests lists filtered AccessRequests
+ *
+ * @generated from protobuf rpc: GetAccessRequests(teleport.lib.teleterm.v1.GetAccessRequestsRequest) returns (teleport.lib.teleterm.v1.GetAccessRequestsResponse);
+ */
+ getAccessRequests(input: GetAccessRequestsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetAccessRequest retreives a single Access Request
+ *
+ * @generated from protobuf rpc: GetAccessRequest(teleport.lib.teleterm.v1.GetAccessRequestRequest) returns (teleport.lib.teleterm.v1.GetAccessRequestResponse);
+ */
+ getAccessRequest(input: GetAccessRequestRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteAccessRequest deletes the access request by id
+ *
+ * @generated from protobuf rpc: DeleteAccessRequest(teleport.lib.teleterm.v1.DeleteAccessRequestRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ deleteAccessRequest(input: DeleteAccessRequestRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CreateAccessRequest creates an access request
+ *
+ * @generated from protobuf rpc: CreateAccessRequest(teleport.lib.teleterm.v1.CreateAccessRequestRequest) returns (teleport.lib.teleterm.v1.CreateAccessRequestResponse);
+ */
+ createAccessRequest(input: CreateAccessRequestRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ReviewAccessRequest submits a review for an Access Request
+ *
+ * @generated from protobuf rpc: ReviewAccessRequest(teleport.lib.teleterm.v1.ReviewAccessRequestRequest) returns (teleport.lib.teleterm.v1.ReviewAccessRequestResponse);
+ */
+ reviewAccessRequest(input: ReviewAccessRequestRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetRequestableRoles gets all requestable roles
+ *
+ * @generated from protobuf rpc: GetRequestableRoles(teleport.lib.teleterm.v1.GetRequestableRolesRequest) returns (teleport.lib.teleterm.v1.GetRequestableRolesResponse);
+ */
+ getRequestableRoles(input: GetRequestableRolesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * AssumeRole assumes the role of the given access request
+ *
+ * @generated from protobuf rpc: AssumeRole(teleport.lib.teleterm.v1.AssumeRoleRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ assumeRole(input: AssumeRoleRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * PromoteAccessRequest promotes an access request to an access list.
+ *
+ * @generated from protobuf rpc: PromoteAccessRequest(teleport.lib.teleterm.v1.PromoteAccessRequestRequest) returns (teleport.lib.teleterm.v1.PromoteAccessRequestResponse);
+ */
+ promoteAccessRequest(input: PromoteAccessRequestRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetSuggestedAccessLists returns suggested access lists for an access request.
+ *
+ * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.lib.teleterm.v1.GetSuggestedAccessListsRequest) returns (teleport.lib.teleterm.v1.GetSuggestedAccessListsResponse);
+ */
+ getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetKubes returns filtered, sorted, and paginated kubes
+ *
+ * @generated from protobuf rpc: GetKubes(teleport.lib.teleterm.v1.GetKubesRequest) returns (teleport.lib.teleterm.v1.GetKubesResponse);
+ */
+ getKubes(input: GetKubesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetApps returns a filtered and paginated list of apps.
+ *
+ * @generated from protobuf rpc: GetApps(teleport.lib.teleterm.v1.GetAppsRequest) returns (teleport.lib.teleterm.v1.GetAppsResponse);
+ */
+ getApps(input: GetAppsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * AddCluster adds a cluster to profile
+ *
+ * @generated from protobuf rpc: AddCluster(teleport.lib.teleterm.v1.AddClusterRequest) returns (teleport.lib.teleterm.v1.Cluster);
+ */
+ addCluster(input: AddClusterRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * RemoveCluster removes a cluster from profile
+ *
+ * @generated from protobuf rpc: RemoveCluster(teleport.lib.teleterm.v1.RemoveClusterRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ removeCluster(input: RemoveClusterRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListGateways lists gateways
+ *
+ * @generated from protobuf rpc: ListGateways(teleport.lib.teleterm.v1.ListGatewaysRequest) returns (teleport.lib.teleterm.v1.ListGatewaysResponse);
+ */
+ listGateways(input: ListGatewaysRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CreateGateway creates a gateway
+ *
+ * @generated from protobuf rpc: CreateGateway(teleport.lib.teleterm.v1.CreateGatewayRequest) returns (teleport.lib.teleterm.v1.Gateway);
+ */
+ createGateway(input: CreateGatewayRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * RemoveGateway removes a gateway
+ *
+ * @generated from protobuf rpc: RemoveGateway(teleport.lib.teleterm.v1.RemoveGatewayRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ removeGateway(input: RemoveGatewayRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * SetGatewayTargetSubresourceName changes the TargetSubresourceName field of gateway.Gateway
+ * and returns the updated version of gateway.Gateway.
+ *
+ * In Connect this is used to update the db name of a db connection along with the CLI command.
+ *
+ * @generated from protobuf rpc: SetGatewayTargetSubresourceName(teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest) returns (teleport.lib.teleterm.v1.Gateway);
+ */
+ setGatewayTargetSubresourceName(input: SetGatewayTargetSubresourceNameRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * SetGatewayLocalPort starts a new gateway on the new port, stops the old gateway and then
+ * assigns the URI of the old gateway to the new one. It does so without fetching a new db cert.
+ *
+ * @generated from protobuf rpc: SetGatewayLocalPort(teleport.lib.teleterm.v1.SetGatewayLocalPortRequest) returns (teleport.lib.teleterm.v1.Gateway);
+ */
+ setGatewayLocalPort(input: SetGatewayLocalPortRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetAuthSettings returns cluster auth settigns
+ *
+ * @generated from protobuf rpc: GetAuthSettings(teleport.lib.teleterm.v1.GetAuthSettingsRequest) returns (teleport.lib.teleterm.v1.AuthSettings);
+ */
+ getAuthSettings(input: GetAuthSettingsRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetCluster returns cluster. Makes a network request and includes detailed
+ * information about enterprise features availabed on the connected auth server
+ *
+ * @generated from protobuf rpc: GetCluster(teleport.lib.teleterm.v1.GetClusterRequest) returns (teleport.lib.teleterm.v1.Cluster);
+ */
+ getCluster(input: GetClusterRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * Login logs in a user to a cluster
+ *
+ * @generated from protobuf rpc: Login(teleport.lib.teleterm.v1.LoginRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ login(input: LoginRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[26], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * LoginPasswordless logs in a user to a cluster passwordlessly.
+ *
+ * The RPC is streaming both ways and the message sequence example for hardware keys are:
+ * (-> means client-to-server, <- means server-to-client)
+ *
+ * Hardware keys:
+ * -> Init
+ * <- Send PasswordlessPrompt enum TAP to choose a device
+ * -> Receive TAP device response
+ * <- Send PasswordlessPrompt enum PIN
+ * -> Receive PIN response
+ * <- Send PasswordlessPrompt enum RETAP to confirm
+ * -> Receive RETAP device response
+ * <- Send list of credentials (e.g. usernames) associated with device
+ * -> Receive the index number associated with the selected credential in list
+ * <- End
+ *
+ * @generated from protobuf rpc: LoginPasswordless(stream teleport.lib.teleterm.v1.LoginPasswordlessRequest) returns (stream teleport.lib.teleterm.v1.LoginPasswordlessResponse);
+ */
+ loginPasswordless(options?: RpcOptions): DuplexStreamingCall {
+ const method = this.methods[27], opt = this._transport.mergeOptions(options);
+ return stackIntercept("duplex", this._transport, method, opt);
+ }
+ /**
+ * ClusterLogin logs out a user from cluster
+ *
+ * @generated from protobuf rpc: Logout(teleport.lib.teleterm.v1.LogoutRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ logout(input: LogoutRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[28], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * TransferFile sends a request to download/upload a file
+ *
+ * @generated from protobuf rpc: TransferFile(teleport.lib.teleterm.v1.FileTransferRequest) returns (stream teleport.lib.teleterm.v1.FileTransferProgress);
+ */
+ transferFile(input: FileTransferRequest, options?: RpcOptions): ServerStreamingCall {
+ const method = this.methods[29], opt = this._transport.mergeOptions(options);
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
+ }
+ /**
+ * ReportUsageEvent allows to send usage events that are then anonymized and forwarded to prehog
+ *
+ * @generated from protobuf rpc: ReportUsageEvent(teleport.lib.teleterm.v1.ReportUsageEventRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
+ */
+ reportUsageEvent(input: ReportUsageEventRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[30], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpdateHeadlessAuthenticationState updates a headless authentication resource's state.
+ * An MFA challenge will be prompted when approving a headless authentication.
+ *
+ * @generated from protobuf rpc: UpdateHeadlessAuthenticationState(teleport.lib.teleterm.v1.UpdateHeadlessAuthenticationStateRequest) returns (teleport.lib.teleterm.v1.UpdateHeadlessAuthenticationStateResponse);
+ */
+ updateHeadlessAuthenticationState(input: UpdateHeadlessAuthenticationStateRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[31], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CreateConnectMyComputerRole creates a role which allows access to nodes with the label
+ * teleport.dev/connect-my-computer/owner: and allows logging in to those nodes as
+ * the current system user.
+ *
+ * @generated from protobuf rpc: CreateConnectMyComputerRole(teleport.lib.teleterm.v1.CreateConnectMyComputerRoleRequest) returns (teleport.lib.teleterm.v1.CreateConnectMyComputerRoleResponse);
+ */
+ createConnectMyComputerRole(input: CreateConnectMyComputerRoleRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[32], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CreateConnectMyComputerNodeToken creates a node join token that is valid for 5 minutes
+ *
+ * @generated from protobuf rpc: CreateConnectMyComputerNodeToken(teleport.lib.teleterm.v1.CreateConnectMyComputerNodeTokenRequest) returns (teleport.lib.teleterm.v1.CreateConnectMyComputerNodeTokenResponse);
+ */
+ createConnectMyComputerNodeToken(input: CreateConnectMyComputerNodeTokenRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[33], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * WaitForConnectMyComputerNodeJoin sets up a watcher and returns a response only after detecting
+ * that the Connect My Computer node for the particular cluster has joined the cluster (the
+ * OpPut event).
+ *
+ * This RPC times out by itself after a minute to prevent the request from hanging forever, in
+ * case the client didn't set a deadline or doesn't abort the request.
+ *
+ * @generated from protobuf rpc: WaitForConnectMyComputerNodeJoin(teleport.lib.teleterm.v1.WaitForConnectMyComputerNodeJoinRequest) returns (teleport.lib.teleterm.v1.WaitForConnectMyComputerNodeJoinResponse);
+ */
+ waitForConnectMyComputerNodeJoin(input: WaitForConnectMyComputerNodeJoinRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[34], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteConnectMyComputerNode deletes the Connect My Computer node.
+ *
+ * @generated from protobuf rpc: DeleteConnectMyComputerNode(teleport.lib.teleterm.v1.DeleteConnectMyComputerNodeRequest) returns (teleport.lib.teleterm.v1.DeleteConnectMyComputerNodeResponse);
+ */
+ deleteConnectMyComputerNode(input: DeleteConnectMyComputerNodeRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[35], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetConnectMyComputerNodeName reads the Connect My Computer node name (UUID) from a disk.
+ *
+ * @generated from protobuf rpc: GetConnectMyComputerNodeName(teleport.lib.teleterm.v1.GetConnectMyComputerNodeNameRequest) returns (teleport.lib.teleterm.v1.GetConnectMyComputerNodeNameResponse);
+ */
+ getConnectMyComputerNodeName(input: GetConnectMyComputerNodeNameRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[36], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListUnifiedResources retrieves a paginated list of all resource types displayable in the UI.
+ *
+ * @generated from protobuf rpc: ListUnifiedResources(teleport.lib.teleterm.v1.ListUnifiedResourcesRequest) returns (teleport.lib.teleterm.v1.ListUnifiedResourcesResponse);
+ */
+ listUnifiedResources(input: ListUnifiedResourcesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[37], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetUserPreferences returns the combined (root + leaf cluster) preferences for a given user.
+ *
+ * @generated from protobuf rpc: GetUserPreferences(teleport.lib.teleterm.v1.GetUserPreferencesRequest) returns (teleport.lib.teleterm.v1.GetUserPreferencesResponse);
+ */
+ getUserPreferences(input: GetUserPreferencesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[38], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpdateUserPreferences updates the preferences for a given user in appropriate root and leaf clusters.
+ * Only the properties that are set (cluster_preferences, unified_resource_preferences) will be updated.
+ *
+ * @generated from protobuf rpc: UpdateUserPreferences(teleport.lib.teleterm.v1.UpdateUserPreferencesRequest) returns (teleport.lib.teleterm.v1.UpdateUserPreferencesResponse);
+ */
+ updateUserPreferences(input: UpdateUserPreferencesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[39], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+}
diff --git a/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.grpc-client.ts b/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.grpc-client.ts
deleted file mode 100644
index 37759463d075f..0000000000000
--- a/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.grpc-client.ts
+++ /dev/null
@@ -1,912 +0,0 @@
-/* eslint-disable */
-// @generated by protobuf-ts 2.9.3 with parameter long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck
-// @generated from protobuf file "teleport/lib/teleterm/v1/service.proto" (package "teleport.lib.teleterm.v1", syntax proto3)
-// tslint:disable
-// @ts-nocheck
-//
-//
-// Teleport
-// Copyright (C) 2023 Gravitational, Inc.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see .
-//
-import { TerminalService } from "./service_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
-import type { UpdateUserPreferencesResponse } from "./service_pb";
-import type { UpdateUserPreferencesRequest } from "./service_pb";
-import type { GetUserPreferencesResponse } from "./service_pb";
-import type { GetUserPreferencesRequest } from "./service_pb";
-import type { ListUnifiedResourcesResponse } from "./service_pb";
-import type { ListUnifiedResourcesRequest } from "./service_pb";
-import type { GetConnectMyComputerNodeNameResponse } from "./service_pb";
-import type { GetConnectMyComputerNodeNameRequest } from "./service_pb";
-import type { DeleteConnectMyComputerNodeResponse } from "./service_pb";
-import type { DeleteConnectMyComputerNodeRequest } from "./service_pb";
-import type { WaitForConnectMyComputerNodeJoinResponse } from "./service_pb";
-import type { WaitForConnectMyComputerNodeJoinRequest } from "./service_pb";
-import type { CreateConnectMyComputerNodeTokenResponse } from "./service_pb";
-import type { CreateConnectMyComputerNodeTokenRequest } from "./service_pb";
-import type { CreateConnectMyComputerRoleResponse } from "./service_pb";
-import type { CreateConnectMyComputerRoleRequest } from "./service_pb";
-import type { UpdateHeadlessAuthenticationStateResponse } from "./service_pb";
-import type { UpdateHeadlessAuthenticationStateRequest } from "./service_pb";
-import type { ReportUsageEventRequest } from "./usage_events_pb";
-import type { FileTransferProgress } from "./service_pb";
-import type { FileTransferRequest } from "./service_pb";
-import type { LogoutRequest } from "./service_pb";
-import type { LoginPasswordlessResponse } from "./service_pb";
-import type { LoginPasswordlessRequest } from "./service_pb";
-import type { LoginRequest } from "./service_pb";
-import type { GetClusterRequest } from "./service_pb";
-import type { AuthSettings } from "./auth_settings_pb";
-import type { GetAuthSettingsRequest } from "./service_pb";
-import type { SetGatewayLocalPortRequest } from "./service_pb";
-import type { SetGatewayTargetSubresourceNameRequest } from "./service_pb";
-import type { RemoveGatewayRequest } from "./service_pb";
-import type { Gateway } from "./gateway_pb";
-import type { CreateGatewayRequest } from "./service_pb";
-import type { ListGatewaysResponse } from "./service_pb";
-import type { ListGatewaysRequest } from "./service_pb";
-import type { RemoveClusterRequest } from "./service_pb";
-import type { Cluster } from "./cluster_pb";
-import type { AddClusterRequest } from "./service_pb";
-import type { GetAppsResponse } from "./service_pb";
-import type { GetAppsRequest } from "./service_pb";
-import type { GetKubesResponse } from "./service_pb";
-import type { GetKubesRequest } from "./service_pb";
-import type { GetSuggestedAccessListsResponse } from "./service_pb";
-import type { GetSuggestedAccessListsRequest } from "./service_pb";
-import type { PromoteAccessRequestResponse } from "./service_pb";
-import type { PromoteAccessRequestRequest } from "./service_pb";
-import type { AssumeRoleRequest } from "./service_pb";
-import type { GetRequestableRolesResponse } from "./service_pb";
-import type { GetRequestableRolesRequest } from "./service_pb";
-import type { ReviewAccessRequestResponse } from "./service_pb";
-import type { ReviewAccessRequestRequest } from "./service_pb";
-import type { CreateAccessRequestResponse } from "./service_pb";
-import type { CreateAccessRequestRequest } from "./service_pb";
-import type { EmptyResponse } from "./service_pb";
-import type { DeleteAccessRequestRequest } from "./service_pb";
-import type { GetAccessRequestResponse } from "./service_pb";
-import type { GetAccessRequestRequest } from "./service_pb";
-import type { GetAccessRequestsResponse } from "./service_pb";
-import type { GetAccessRequestsRequest } from "./service_pb";
-import type { GetServersResponse } from "./service_pb";
-import type { GetServersRequest } from "./service_pb";
-import type { ListDatabaseUsersResponse } from "./service_pb";
-import type { ListDatabaseUsersRequest } from "./service_pb";
-import type { GetDatabasesResponse } from "./service_pb";
-import type { GetDatabasesRequest } from "./service_pb";
-import type { ListLeafClustersRequest } from "./service_pb";
-import type { ListClustersResponse } from "./service_pb";
-import type { ListClustersRequest } from "./service_pb";
-import type { UpdateTshdEventsServerAddressResponse } from "./service_pb";
-import type { UpdateTshdEventsServerAddressRequest } from "./service_pb";
-import * as grpc from "@grpc/grpc-js";
-/**
- * TerminalService is used by the Electron app to communicate with the tsh daemon.
- *
- * While we aim to preserve backwards compatibility in order to satisfy CI checks and follow the
- * proto practices used within the company, this service is not guaranteed to be stable across
- * versions. The packaging process of Teleport Connect ensures that the server and the client use
- * the same version of the service.
- *
- * @generated from protobuf service teleport.lib.teleterm.v1.TerminalService
- */
-export interface ITerminalServiceClient {
- /**
- * UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is
- * supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made
- * before any other from this service.
- *
- * The service is supposed to return a response from this call only after the client is ready.
- *
- * @generated from protobuf rpc: UpdateTshdEventsServerAddress(teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest) returns (teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse);
- */
- updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall;
- updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall;
- updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall;
- updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, callback: (err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListRootClusters lists root clusters
- * Does not include detailed cluster information that would require a network request.
- *
- * @generated from protobuf rpc: ListRootClusters(teleport.lib.teleterm.v1.ListClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
- */
- listRootClusters(input: ListClustersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- listRootClusters(input: ListClustersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- listRootClusters(input: ListClustersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- listRootClusters(input: ListClustersRequest, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListLeafClusters lists leaf clusters
- * Does not include detailed cluster information that would require a network request.
- *
- * @generated from protobuf rpc: ListLeafClusters(teleport.lib.teleterm.v1.ListLeafClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
- */
- listLeafClusters(input: ListLeafClustersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- listLeafClusters(input: ListLeafClustersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- listLeafClusters(input: ListLeafClustersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- listLeafClusters(input: ListLeafClustersRequest, callback: (err: grpc.ServiceError | null, value?: ListClustersResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetDatabases returns a filtered and paginated list of databases
- *
- * @generated from protobuf rpc: GetDatabases(teleport.lib.teleterm.v1.GetDatabasesRequest) returns (teleport.lib.teleterm.v1.GetDatabasesResponse);
- */
- getDatabases(input: GetDatabasesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void): grpc.ClientUnaryCall;
- getDatabases(input: GetDatabasesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void): grpc.ClientUnaryCall;
- getDatabases(input: GetDatabasesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void): grpc.ClientUnaryCall;
- getDatabases(input: GetDatabasesRequest, callback: (err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListDatabaseUsers lists allowed users for the given database based on the role set.
- *
- * @generated from protobuf rpc: ListDatabaseUsers(teleport.lib.teleterm.v1.ListDatabaseUsersRequest) returns (teleport.lib.teleterm.v1.ListDatabaseUsersResponse);
- */
- listDatabaseUsers(input: ListDatabaseUsersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall;
- listDatabaseUsers(input: ListDatabaseUsersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall;
- listDatabaseUsers(input: ListDatabaseUsersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall;
- listDatabaseUsers(input: ListDatabaseUsersRequest, callback: (err: grpc.ServiceError | null, value?: ListDatabaseUsersResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetServers returns filtered, sorted, and paginated servers
- *
- * @generated from protobuf rpc: GetServers(teleport.lib.teleterm.v1.GetServersRequest) returns (teleport.lib.teleterm.v1.GetServersResponse);
- */
- getServers(input: GetServersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetServersResponse) => void): grpc.ClientUnaryCall;
- getServers(input: GetServersRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetServersResponse) => void): grpc.ClientUnaryCall;
- getServers(input: GetServersRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetServersResponse) => void): grpc.ClientUnaryCall;
- getServers(input: GetServersRequest, callback: (err: grpc.ServiceError | null, value?: GetServersResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetAccessRequests lists filtered AccessRequests
- *
- * @generated from protobuf rpc: GetAccessRequests(teleport.lib.teleterm.v1.GetAccessRequestsRequest) returns (teleport.lib.teleterm.v1.GetAccessRequestsResponse);
- */
- getAccessRequests(input: GetAccessRequestsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestsResponse) => void): grpc.ClientUnaryCall;
- getAccessRequests(input: GetAccessRequestsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestsResponse) => void): grpc.ClientUnaryCall;
- getAccessRequests(input: GetAccessRequestsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestsResponse) => void): grpc.ClientUnaryCall;
- getAccessRequests(input: GetAccessRequestsRequest, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestsResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetAccessRequest retreives a single Access Request
- *
- * @generated from protobuf rpc: GetAccessRequest(teleport.lib.teleterm.v1.GetAccessRequestRequest) returns (teleport.lib.teleterm.v1.GetAccessRequestResponse);
- */
- getAccessRequest(input: GetAccessRequestRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestResponse) => void): grpc.ClientUnaryCall;
- getAccessRequest(input: GetAccessRequestRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestResponse) => void): grpc.ClientUnaryCall;
- getAccessRequest(input: GetAccessRequestRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestResponse) => void): grpc.ClientUnaryCall;
- getAccessRequest(input: GetAccessRequestRequest, callback: (err: grpc.ServiceError | null, value?: GetAccessRequestResponse) => void): grpc.ClientUnaryCall;
- /**
- * DeleteAccessRequest deletes the access request by id
- *
- * @generated from protobuf rpc: DeleteAccessRequest(teleport.lib.teleterm.v1.DeleteAccessRequestRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- deleteAccessRequest(input: DeleteAccessRequestRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- deleteAccessRequest(input: DeleteAccessRequestRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- deleteAccessRequest(input: DeleteAccessRequestRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- deleteAccessRequest(input: DeleteAccessRequestRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * CreateAccessRequest creates an access request
- *
- * @generated from protobuf rpc: CreateAccessRequest(teleport.lib.teleterm.v1.CreateAccessRequestRequest) returns (teleport.lib.teleterm.v1.CreateAccessRequestResponse);
- */
- createAccessRequest(input: CreateAccessRequestRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateAccessRequestResponse) => void): grpc.ClientUnaryCall;
- createAccessRequest(input: CreateAccessRequestRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: CreateAccessRequestResponse) => void): grpc.ClientUnaryCall;
- createAccessRequest(input: CreateAccessRequestRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateAccessRequestResponse) => void): grpc.ClientUnaryCall;
- createAccessRequest(input: CreateAccessRequestRequest, callback: (err: grpc.ServiceError | null, value?: CreateAccessRequestResponse) => void): grpc.ClientUnaryCall;
- /**
- * ReviewAccessRequest submits a review for an Access Request
- *
- * @generated from protobuf rpc: ReviewAccessRequest(teleport.lib.teleterm.v1.ReviewAccessRequestRequest) returns (teleport.lib.teleterm.v1.ReviewAccessRequestResponse);
- */
- reviewAccessRequest(input: ReviewAccessRequestRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall;
- reviewAccessRequest(input: ReviewAccessRequestRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall;
- reviewAccessRequest(input: ReviewAccessRequestRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall;
- reviewAccessRequest(input: ReviewAccessRequestRequest, callback: (err: grpc.ServiceError | null, value?: ReviewAccessRequestResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetRequestableRoles gets all requestable roles
- *
- * @generated from protobuf rpc: GetRequestableRoles(teleport.lib.teleterm.v1.GetRequestableRolesRequest) returns (teleport.lib.teleterm.v1.GetRequestableRolesResponse);
- */
- getRequestableRoles(input: GetRequestableRolesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetRequestableRolesResponse) => void): grpc.ClientUnaryCall;
- getRequestableRoles(input: GetRequestableRolesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetRequestableRolesResponse) => void): grpc.ClientUnaryCall;
- getRequestableRoles(input: GetRequestableRolesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetRequestableRolesResponse) => void): grpc.ClientUnaryCall;
- getRequestableRoles(input: GetRequestableRolesRequest, callback: (err: grpc.ServiceError | null, value?: GetRequestableRolesResponse) => void): grpc.ClientUnaryCall;
- /**
- * AssumeRole assumes the role of the given access request
- *
- * @generated from protobuf rpc: AssumeRole(teleport.lib.teleterm.v1.AssumeRoleRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- assumeRole(input: AssumeRoleRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- assumeRole(input: AssumeRoleRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- assumeRole(input: AssumeRoleRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- assumeRole(input: AssumeRoleRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * PromoteAccessRequest promotes an access request to an access list.
- *
- * @generated from protobuf rpc: PromoteAccessRequest(teleport.lib.teleterm.v1.PromoteAccessRequestRequest) returns (teleport.lib.teleterm.v1.PromoteAccessRequestResponse);
- */
- promoteAccessRequest(input: PromoteAccessRequestRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PromoteAccessRequestResponse) => void): grpc.ClientUnaryCall;
- promoteAccessRequest(input: PromoteAccessRequestRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PromoteAccessRequestResponse) => void): grpc.ClientUnaryCall;
- promoteAccessRequest(input: PromoteAccessRequestRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PromoteAccessRequestResponse) => void): grpc.ClientUnaryCall;
- promoteAccessRequest(input: PromoteAccessRequestRequest, callback: (err: grpc.ServiceError | null, value?: PromoteAccessRequestResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetSuggestedAccessLists returns suggested access lists for an access request.
- *
- * @generated from protobuf rpc: GetSuggestedAccessLists(teleport.lib.teleterm.v1.GetSuggestedAccessListsRequest) returns (teleport.lib.teleterm.v1.GetSuggestedAccessListsResponse);
- */
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- getSuggestedAccessLists(input: GetSuggestedAccessListsRequest, callback: (err: grpc.ServiceError | null, value?: GetSuggestedAccessListsResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetKubes returns filtered, sorted, and paginated kubes
- *
- * @generated from protobuf rpc: GetKubes(teleport.lib.teleterm.v1.GetKubesRequest) returns (teleport.lib.teleterm.v1.GetKubesResponse);
- */
- getKubes(input: GetKubesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetKubesResponse) => void): grpc.ClientUnaryCall;
- getKubes(input: GetKubesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetKubesResponse) => void): grpc.ClientUnaryCall;
- getKubes(input: GetKubesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetKubesResponse) => void): grpc.ClientUnaryCall;
- getKubes(input: GetKubesRequest, callback: (err: grpc.ServiceError | null, value?: GetKubesResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetApps returns a filtered and paginated list of apps.
- *
- * @generated from protobuf rpc: GetApps(teleport.lib.teleterm.v1.GetAppsRequest) returns (teleport.lib.teleterm.v1.GetAppsResponse);
- */
- getApps(input: GetAppsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAppsResponse) => void): grpc.ClientUnaryCall;
- getApps(input: GetAppsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetAppsResponse) => void): grpc.ClientUnaryCall;
- getApps(input: GetAppsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetAppsResponse) => void): grpc.ClientUnaryCall;
- getApps(input: GetAppsRequest, callback: (err: grpc.ServiceError | null, value?: GetAppsResponse) => void): grpc.ClientUnaryCall;
- /**
- * AddCluster adds a cluster to profile
- *
- * @generated from protobuf rpc: AddCluster(teleport.lib.teleterm.v1.AddClusterRequest) returns (teleport.lib.teleterm.v1.Cluster);
- */
- addCluster(input: AddClusterRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- addCluster(input: AddClusterRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- addCluster(input: AddClusterRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- addCluster(input: AddClusterRequest, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- /**
- * RemoveCluster removes a cluster from profile
- *
- * @generated from protobuf rpc: RemoveCluster(teleport.lib.teleterm.v1.RemoveClusterRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- removeCluster(input: RemoveClusterRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- removeCluster(input: RemoveClusterRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- removeCluster(input: RemoveClusterRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- removeCluster(input: RemoveClusterRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListGateways lists gateways
- *
- * @generated from protobuf rpc: ListGateways(teleport.lib.teleterm.v1.ListGatewaysRequest) returns (teleport.lib.teleterm.v1.ListGatewaysResponse);
- */
- listGateways(input: ListGatewaysRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListGatewaysResponse) => void): grpc.ClientUnaryCall;
- listGateways(input: ListGatewaysRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListGatewaysResponse) => void): grpc.ClientUnaryCall;
- listGateways(input: ListGatewaysRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListGatewaysResponse) => void): grpc.ClientUnaryCall;
- listGateways(input: ListGatewaysRequest, callback: (err: grpc.ServiceError | null, value?: ListGatewaysResponse) => void): grpc.ClientUnaryCall;
- /**
- * CreateGateway creates a gateway
- *
- * @generated from protobuf rpc: CreateGateway(teleport.lib.teleterm.v1.CreateGatewayRequest) returns (teleport.lib.teleterm.v1.Gateway);
- */
- createGateway(input: CreateGatewayRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- createGateway(input: CreateGatewayRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- createGateway(input: CreateGatewayRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- createGateway(input: CreateGatewayRequest, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- /**
- * RemoveGateway removes a gateway
- *
- * @generated from protobuf rpc: RemoveGateway(teleport.lib.teleterm.v1.RemoveGatewayRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- removeGateway(input: RemoveGatewayRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- removeGateway(input: RemoveGatewayRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- removeGateway(input: RemoveGatewayRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- removeGateway(input: RemoveGatewayRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * SetGatewayTargetSubresourceName changes the TargetSubresourceName field of gateway.Gateway
- * and returns the updated version of gateway.Gateway.
- *
- * In Connect this is used to update the db name of a db connection along with the CLI command.
- *
- * @generated from protobuf rpc: SetGatewayTargetSubresourceName(teleport.lib.teleterm.v1.SetGatewayTargetSubresourceNameRequest) returns (teleport.lib.teleterm.v1.Gateway);
- */
- setGatewayTargetSubresourceName(input: SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- setGatewayTargetSubresourceName(input: SetGatewayTargetSubresourceNameRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- setGatewayTargetSubresourceName(input: SetGatewayTargetSubresourceNameRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- setGatewayTargetSubresourceName(input: SetGatewayTargetSubresourceNameRequest, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- /**
- * SetGatewayLocalPort starts a new gateway on the new port, stops the old gateway and then
- * assigns the URI of the old gateway to the new one. It does so without fetching a new db cert.
- *
- * @generated from protobuf rpc: SetGatewayLocalPort(teleport.lib.teleterm.v1.SetGatewayLocalPortRequest) returns (teleport.lib.teleterm.v1.Gateway);
- */
- setGatewayLocalPort(input: SetGatewayLocalPortRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- setGatewayLocalPort(input: SetGatewayLocalPortRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- setGatewayLocalPort(input: SetGatewayLocalPortRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- setGatewayLocalPort(input: SetGatewayLocalPortRequest, callback: (err: grpc.ServiceError | null, value?: Gateway) => void): grpc.ClientUnaryCall;
- /**
- * GetAuthSettings returns cluster auth settigns
- *
- * @generated from protobuf rpc: GetAuthSettings(teleport.lib.teleterm.v1.GetAuthSettingsRequest) returns (teleport.lib.teleterm.v1.AuthSettings);
- */
- getAuthSettings(input: GetAuthSettingsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AuthSettings) => void): grpc.ClientUnaryCall;
- getAuthSettings(input: GetAuthSettingsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: AuthSettings) => void): grpc.ClientUnaryCall;
- getAuthSettings(input: GetAuthSettingsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AuthSettings) => void): grpc.ClientUnaryCall;
- getAuthSettings(input: GetAuthSettingsRequest, callback: (err: grpc.ServiceError | null, value?: AuthSettings) => void): grpc.ClientUnaryCall;
- /**
- * GetCluster returns cluster. Makes a network request and includes detailed
- * information about enterprise features availabed on the connected auth server
- *
- * @generated from protobuf rpc: GetCluster(teleport.lib.teleterm.v1.GetClusterRequest) returns (teleport.lib.teleterm.v1.Cluster);
- */
- getCluster(input: GetClusterRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- getCluster(input: GetClusterRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- getCluster(input: GetClusterRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- getCluster(input: GetClusterRequest, callback: (err: grpc.ServiceError | null, value?: Cluster) => void): grpc.ClientUnaryCall;
- /**
- * Login logs in a user to a cluster
- *
- * @generated from protobuf rpc: Login(teleport.lib.teleterm.v1.LoginRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- login(input: LoginRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- login(input: LoginRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- login(input: LoginRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- login(input: LoginRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * LoginPasswordless logs in a user to a cluster passwordlessly.
- *
- * The RPC is streaming both ways and the message sequence example for hardware keys are:
- * (-> means client-to-server, <- means server-to-client)
- *
- * Hardware keys:
- * -> Init
- * <- Send PasswordlessPrompt enum TAP to choose a device
- * -> Receive TAP device response
- * <- Send PasswordlessPrompt enum PIN
- * -> Receive PIN response
- * <- Send PasswordlessPrompt enum RETAP to confirm
- * -> Receive RETAP device response
- * <- Send list of credentials (e.g. usernames) associated with device
- * -> Receive the index number associated with the selected credential in list
- * <- End
- *
- * @generated from protobuf rpc: LoginPasswordless(stream teleport.lib.teleterm.v1.LoginPasswordlessRequest) returns (stream teleport.lib.teleterm.v1.LoginPasswordlessResponse);
- */
- loginPasswordless(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream;
- loginPasswordless(options?: grpc.CallOptions): grpc.ClientDuplexStream;
- /**
- * ClusterLogin logs out a user from cluster
- *
- * @generated from protobuf rpc: Logout(teleport.lib.teleterm.v1.LogoutRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- logout(input: LogoutRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- logout(input: LogoutRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- logout(input: LogoutRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- logout(input: LogoutRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * TransferFile sends a request to download/upload a file
- *
- * @generated from protobuf rpc: TransferFile(teleport.lib.teleterm.v1.FileTransferRequest) returns (stream teleport.lib.teleterm.v1.FileTransferProgress);
- */
- transferFile(input: FileTransferRequest, metadata?: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream;
- transferFile(input: FileTransferRequest, options?: grpc.CallOptions): grpc.ClientReadableStream;
- /**
- * ReportUsageEvent allows to send usage events that are then anonymized and forwarded to prehog
- *
- * @generated from protobuf rpc: ReportUsageEvent(teleport.lib.teleterm.v1.ReportUsageEventRequest) returns (teleport.lib.teleterm.v1.EmptyResponse);
- */
- reportUsageEvent(input: ReportUsageEventRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- reportUsageEvent(input: ReportUsageEventRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- reportUsageEvent(input: ReportUsageEventRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- reportUsageEvent(input: ReportUsageEventRequest, callback: (err: grpc.ServiceError | null, value?: EmptyResponse) => void): grpc.ClientUnaryCall;
- /**
- * UpdateHeadlessAuthenticationState updates a headless authentication resource's state.
- * An MFA challenge will be prompted when approving a headless authentication.
- *
- * @generated from protobuf rpc: UpdateHeadlessAuthenticationState(teleport.lib.teleterm.v1.UpdateHeadlessAuthenticationStateRequest) returns (teleport.lib.teleterm.v1.UpdateHeadlessAuthenticationStateResponse);
- */
- updateHeadlessAuthenticationState(input: UpdateHeadlessAuthenticationStateRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpdateHeadlessAuthenticationStateResponse) => void): grpc.ClientUnaryCall;
- updateHeadlessAuthenticationState(input: UpdateHeadlessAuthenticationStateRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: UpdateHeadlessAuthenticationStateResponse) => void): grpc.ClientUnaryCall;
- updateHeadlessAuthenticationState(input: UpdateHeadlessAuthenticationStateRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpdateHeadlessAuthenticationStateResponse) => void): grpc.ClientUnaryCall;
- updateHeadlessAuthenticationState(input: UpdateHeadlessAuthenticationStateRequest, callback: (err: grpc.ServiceError | null, value?: UpdateHeadlessAuthenticationStateResponse) => void): grpc.ClientUnaryCall;
- /**
- * CreateConnectMyComputerRole creates a role which allows access to nodes with the label
- * teleport.dev/connect-my-computer/owner: and allows logging in to those nodes as
- * the current system user.
- *
- * @generated from protobuf rpc: CreateConnectMyComputerRole(teleport.lib.teleterm.v1.CreateConnectMyComputerRoleRequest) returns (teleport.lib.teleterm.v1.CreateConnectMyComputerRoleResponse);
- */
- createConnectMyComputerRole(input: CreateConnectMyComputerRoleRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerRoleResponse) => void): grpc.ClientUnaryCall;
- createConnectMyComputerRole(input: CreateConnectMyComputerRoleRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerRoleResponse) => void): grpc.ClientUnaryCall;
- createConnectMyComputerRole(input: CreateConnectMyComputerRoleRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerRoleResponse) => void): grpc.ClientUnaryCall;
- createConnectMyComputerRole(input: CreateConnectMyComputerRoleRequest, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerRoleResponse) => void): grpc.ClientUnaryCall;
- /**
- * CreateConnectMyComputerNodeToken creates a node join token that is valid for 5 minutes
- *
- * @generated from protobuf rpc: CreateConnectMyComputerNodeToken(teleport.lib.teleterm.v1.CreateConnectMyComputerNodeTokenRequest) returns (teleport.lib.teleterm.v1.CreateConnectMyComputerNodeTokenResponse);
- */
- createConnectMyComputerNodeToken(input: CreateConnectMyComputerNodeTokenRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerNodeTokenResponse) => void): grpc.ClientUnaryCall;
- createConnectMyComputerNodeToken(input: CreateConnectMyComputerNodeTokenRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerNodeTokenResponse) => void): grpc.ClientUnaryCall;
- createConnectMyComputerNodeToken(input: CreateConnectMyComputerNodeTokenRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerNodeTokenResponse) => void): grpc.ClientUnaryCall;
- createConnectMyComputerNodeToken(input: CreateConnectMyComputerNodeTokenRequest, callback: (err: grpc.ServiceError | null, value?: CreateConnectMyComputerNodeTokenResponse) => void): grpc.ClientUnaryCall;
- /**
- * WaitForConnectMyComputerNodeJoin sets up a watcher and returns a response only after detecting
- * that the Connect My Computer node for the particular cluster has joined the cluster (the
- * OpPut event).
- *
- * This RPC times out by itself after a minute to prevent the request from hanging forever, in
- * case the client didn't set a deadline or doesn't abort the request.
- *
- * @generated from protobuf rpc: WaitForConnectMyComputerNodeJoin(teleport.lib.teleterm.v1.WaitForConnectMyComputerNodeJoinRequest) returns (teleport.lib.teleterm.v1.WaitForConnectMyComputerNodeJoinResponse);
- */
- waitForConnectMyComputerNodeJoin(input: WaitForConnectMyComputerNodeJoinRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: WaitForConnectMyComputerNodeJoinResponse) => void): grpc.ClientUnaryCall;
- waitForConnectMyComputerNodeJoin(input: WaitForConnectMyComputerNodeJoinRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: WaitForConnectMyComputerNodeJoinResponse) => void): grpc.ClientUnaryCall;
- waitForConnectMyComputerNodeJoin(input: WaitForConnectMyComputerNodeJoinRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: WaitForConnectMyComputerNodeJoinResponse) => void): grpc.ClientUnaryCall;
- waitForConnectMyComputerNodeJoin(input: WaitForConnectMyComputerNodeJoinRequest, callback: (err: grpc.ServiceError | null, value?: WaitForConnectMyComputerNodeJoinResponse) => void): grpc.ClientUnaryCall;
- /**
- * DeleteConnectMyComputerNode deletes the Connect My Computer node.
- *
- * @generated from protobuf rpc: DeleteConnectMyComputerNode(teleport.lib.teleterm.v1.DeleteConnectMyComputerNodeRequest) returns (teleport.lib.teleterm.v1.DeleteConnectMyComputerNodeResponse);
- */
- deleteConnectMyComputerNode(input: DeleteConnectMyComputerNodeRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: DeleteConnectMyComputerNodeResponse) => void): grpc.ClientUnaryCall;
- deleteConnectMyComputerNode(input: DeleteConnectMyComputerNodeRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: DeleteConnectMyComputerNodeResponse) => void): grpc.ClientUnaryCall;
- deleteConnectMyComputerNode(input: DeleteConnectMyComputerNodeRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: DeleteConnectMyComputerNodeResponse) => void): grpc.ClientUnaryCall;
- deleteConnectMyComputerNode(input: DeleteConnectMyComputerNodeRequest, callback: (err: grpc.ServiceError | null, value?: DeleteConnectMyComputerNodeResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetConnectMyComputerNodeName reads the Connect My Computer node name (UUID) from a disk.
- *
- * @generated from protobuf rpc: GetConnectMyComputerNodeName(teleport.lib.teleterm.v1.GetConnectMyComputerNodeNameRequest) returns (teleport.lib.teleterm.v1.GetConnectMyComputerNodeNameResponse);
- */
- getConnectMyComputerNodeName(input: GetConnectMyComputerNodeNameRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetConnectMyComputerNodeNameResponse) => void): grpc.ClientUnaryCall;
- getConnectMyComputerNodeName(input: GetConnectMyComputerNodeNameRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetConnectMyComputerNodeNameResponse) => void): grpc.ClientUnaryCall;
- getConnectMyComputerNodeName(input: GetConnectMyComputerNodeNameRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetConnectMyComputerNodeNameResponse) => void): grpc.ClientUnaryCall;
- getConnectMyComputerNodeName(input: GetConnectMyComputerNodeNameRequest, callback: (err: grpc.ServiceError | null, value?: GetConnectMyComputerNodeNameResponse) => void): grpc.ClientUnaryCall;
- /**
- * ListUnifiedResources retrieves a paginated list of all resource types displayable in the UI.
- *
- * @generated from protobuf rpc: ListUnifiedResources(teleport.lib.teleterm.v1.ListUnifiedResourcesRequest) returns (teleport.lib.teleterm.v1.ListUnifiedResourcesResponse);
- */
- listUnifiedResources(input: ListUnifiedResourcesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListUnifiedResourcesResponse) => void): grpc.ClientUnaryCall;
- listUnifiedResources(input: ListUnifiedResourcesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListUnifiedResourcesResponse) => void): grpc.ClientUnaryCall;
- listUnifiedResources(input: ListUnifiedResourcesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListUnifiedResourcesResponse) => void): grpc.ClientUnaryCall;
- listUnifiedResources(input: ListUnifiedResourcesRequest, callback: (err: grpc.ServiceError | null, value?: ListUnifiedResourcesResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetUserPreferences returns the combined (root + leaf cluster) preferences for a given user.
- *
- * @generated from protobuf rpc: GetUserPreferences(teleport.lib.teleterm.v1.GetUserPreferencesRequest) returns (teleport.lib.teleterm.v1.GetUserPreferencesResponse);
- */
- getUserPreferences(input: GetUserPreferencesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- getUserPreferences(input: GetUserPreferencesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- getUserPreferences(input: GetUserPreferencesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- getUserPreferences(input: GetUserPreferencesRequest, callback: (err: grpc.ServiceError | null, value?: GetUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- /**
- * UpdateUserPreferences updates the preferences for a given user in appropriate root and leaf clusters.
- * Only the properties that are set (cluster_preferences, unified_resource_preferences) will be updated.
- *
- * @generated from protobuf rpc: UpdateUserPreferences(teleport.lib.teleterm.v1.UpdateUserPreferencesRequest) returns (teleport.lib.teleterm.v1.UpdateUserPreferencesResponse);
- */
- updateUserPreferences(input: UpdateUserPreferencesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpdateUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- updateUserPreferences(input: UpdateUserPreferencesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: UpdateUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- updateUserPreferences(input: UpdateUserPreferencesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: UpdateUserPreferencesResponse) => void): grpc.ClientUnaryCall;
- updateUserPreferences(input: UpdateUserPreferencesRequest, callback: (err: grpc.ServiceError | null, value?: UpdateUserPreferencesResponse) => void): grpc.ClientUnaryCall;
-}
-/**
- * TerminalService is used by the Electron app to communicate with the tsh daemon.
- *
- * While we aim to preserve backwards compatibility in order to satisfy CI checks and follow the
- * proto practices used within the company, this service is not guaranteed to be stable across
- * versions. The packaging process of Teleport Connect ensures that the server and the client use
- * the same version of the service.
- *
- * @generated from protobuf service teleport.lib.teleterm.v1.TerminalService
- */
-export class TerminalServiceClient extends grpc.Client implements ITerminalServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
- }
- /**
- * UpdateTshdEventsServerAddress lets the Electron app update the address the tsh daemon is
- * supposed to use when connecting to the tshd events gRPC service. This RPC needs to be made
- * before any other from this service.
- *
- * The service is supposed to return a response from this call only after the client is ready.
- *
- * @generated from protobuf rpc: UpdateTshdEventsServerAddress(teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressRequest) returns (teleport.lib.teleterm.v1.UpdateTshdEventsServerAddressResponse);
- */
- updateTshdEventsServerAddress(input: UpdateTshdEventsServerAddressRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: UpdateTshdEventsServerAddressResponse) => void)): grpc.ClientUnaryCall {
- const method = TerminalService.methods[0];
- return this.makeUnaryRequest(`/${TerminalService.typeName}/${method.name}`, (value: UpdateTshdEventsServerAddressRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): UpdateTshdEventsServerAddressResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListRootClusters lists root clusters
- * Does not include detailed cluster information that would require a network request.
- *
- * @generated from protobuf rpc: ListRootClusters(teleport.lib.teleterm.v1.ListClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
- */
- listRootClusters(input: ListClustersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListClustersResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListClustersResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListClustersResponse) => void)): grpc.ClientUnaryCall {
- const method = TerminalService.methods[1];
- return this.makeUnaryRequest(`/${TerminalService.typeName}/${method.name}`, (value: ListClustersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListClustersResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListLeafClusters lists leaf clusters
- * Does not include detailed cluster information that would require a network request.
- *
- * @generated from protobuf rpc: ListLeafClusters(teleport.lib.teleterm.v1.ListLeafClustersRequest) returns (teleport.lib.teleterm.v1.ListClustersResponse);
- */
- listLeafClusters(input: ListLeafClustersRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListClustersResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListClustersResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListClustersResponse) => void)): grpc.ClientUnaryCall {
- const method = TerminalService.methods[2];
- return this.makeUnaryRequest(`/${TerminalService.typeName}/${method.name}`, (value: ListLeafClustersRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListClustersResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * GetDatabases returns a filtered and paginated list of databases
- *
- * @generated from protobuf rpc: GetDatabases(teleport.lib.teleterm.v1.GetDatabasesRequest) returns (teleport.lib.teleterm.v1.GetDatabasesResponse);
- */
- getDatabases(input: GetDatabasesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetDatabasesResponse) => void)): grpc.ClientUnaryCall {
- const method = TerminalService.methods[3];
- return this.makeUnaryRequest