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/field_mask_pb.ts b/gen/proto/ts/google/protobuf/field_mask_pb.ts
index 25598a5f064ce..4e3466d0d786c 100644
--- a/gen/proto/ts/google/protobuf/field_mask_pb.ts
+++ b/gen/proto/ts/google/protobuf/field_mask_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/field_mask.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 1be6e3ed478e7..99ad03ec1b565 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 6f2da082b8b83..e167b6e80b344 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/devicetrust/v1/device_collected_data_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/device_collected_data_pb.ts
index b0f5623a64565..bd452c962c4ea 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/device_collected_data_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/device_collected_data_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/devicetrust/v1/device_collected_data.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/device_enroll_token_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/device_enroll_token_pb.ts
index b29358385c031..8619d13b5203c 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/device_enroll_token_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/device_enroll_token_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/devicetrust/v1/device_enroll_token.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/device_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/device_pb.ts
index 070ef04164dfd..318b991230ecb 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/device_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/device_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/devicetrust/v1/device.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/device_profile_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/device_profile_pb.ts
index 47bcca4ebca68..f5d507aabdc0c 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/device_profile_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/device_profile_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/devicetrust/v1/device_profile.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/device_source_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/device_source_pb.ts
index ffea91cce803f..c4a8925445ee6 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/device_source_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/device_source_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/devicetrust/v1/device_source.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/device_web_token_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/device_web_token_pb.ts
index 87a6d4b342e9f..3aced42e79dd3 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/device_web_token_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/device_web_token_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/devicetrust/v1/device_web_token.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.client.ts b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.client.ts
new file mode 100644
index 0000000000000..8ccfa22524c44
--- /dev/null
+++ b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.client.ts
@@ -0,0 +1,420 @@
+/* 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/devicetrust/v1/devicetrust_service.proto" (package "teleport.devicetrust.v1", syntax proto3)
+// tslint:disable
+// @ts-nocheck
+//
+// Copyright 2022 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 { DeviceTrustService } from "./devicetrust_service_pb";
+import type { DevicesUsage } from "./usage_pb";
+import type { GetDevicesUsageRequest } from "./devicetrust_service_pb";
+import type { SyncInventoryResponse } from "./devicetrust_service_pb";
+import type { SyncInventoryRequest } from "./devicetrust_service_pb";
+import type { AuthenticateDeviceResponse } from "./devicetrust_service_pb";
+import type { AuthenticateDeviceRequest } from "./devicetrust_service_pb";
+import type { EnrollDeviceResponse } from "./devicetrust_service_pb";
+import type { EnrollDeviceRequest } from "./devicetrust_service_pb";
+import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
+import type { DeviceEnrollToken } from "./device_enroll_token_pb";
+import type { CreateDeviceEnrollTokenRequest } from "./devicetrust_service_pb";
+import type { BulkCreateDevicesResponse } from "./devicetrust_service_pb";
+import type { BulkCreateDevicesRequest } from "./devicetrust_service_pb";
+import type { ListDevicesResponse } from "./devicetrust_service_pb";
+import type { ListDevicesRequest } from "./devicetrust_service_pb";
+import type { GetDeviceRequest } from "./devicetrust_service_pb";
+import type { FindDevicesResponse } from "./devicetrust_service_pb";
+import type { FindDevicesRequest } from "./devicetrust_service_pb";
+import type { Empty } from "../../../google/protobuf/empty_pb";
+import type { DeleteDeviceRequest } from "./devicetrust_service_pb";
+import type { UpsertDeviceRequest } from "./devicetrust_service_pb";
+import type { UpdateDeviceRequest } from "./devicetrust_service_pb";
+import { stackIntercept } from "@protobuf-ts/runtime-rpc";
+import type { Device } from "./device_pb";
+import type { CreateDeviceRequest } from "./devicetrust_service_pb";
+import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
+import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
+/**
+ * DeviceTrustService provides methods to manage, enroll and authenticate
+ * trusted devices.
+ *
+ * A trusted device is a device that is registered and enrolled with Teleport,
+ * thus allowing the system to provide some guarantees about its provenance and
+ * state.
+ *
+ * Managing devices requires the corresponding CRUD "device" permission.
+ * Additionally, creating enrollment tokens requires the "create_enroll_token"
+ * permission and enrolling devices requires the "enroll" permission. See
+ * CreateDevice, CreateDeviceEnrollToken and EnrollDevice for reference.
+ *
+ * An authenticated, trusted device allows its user to perform device-aware
+ * actions. Such actions include accessing an SSH node, managing sensitive
+ * resources via `tctl`, etc. The enforcement mode is defined via cluster-wide
+ * and/or per-role toggles. Device authentication is automatic for enrolled
+ * devices communicating with Enterprise clusters. See AuthenticateDevice for
+ * reference.
+ *
+ * Device Trust is a Teleport Enterprise feature. Open Source Teleport clusters
+ * treat all Device RPCs as unimplemented (which, in fact, they are for OSS.)
+ *
+ * @generated from protobuf service teleport.devicetrust.v1.DeviceTrustService
+ */
+export interface IDeviceTrustServiceClient {
+ /**
+ * CreateDevice creates a device, effectively registering it on Teleport.
+ * Devices need to be registered before they can be enrolled.
+ *
+ * It is possible to create both a Device and a DeviceEnrollToken in a
+ * single invocation, see CreateDeviceRequest.create_enroll_token.
+ *
+ * @generated from protobuf rpc: CreateDevice(teleport.devicetrust.v1.CreateDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ createDevice(input: CreateDeviceRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpdateDevice is a masked device update.
+ *
+ * Only certain fields may be updated, see Device for details.
+ *
+ * @generated from protobuf rpc: UpdateDevice(teleport.devicetrust.v1.UpdateDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ updateDevice(input: UpdateDeviceRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * UpsertDevice creates or updates a device.
+ *
+ * UpsertDevice attempts a write of all mutable fields on updates, therefore
+ * reading a fresh copy of the device is recommended. Update semantics still
+ * apply.
+ *
+ * @generated from protobuf rpc: UpsertDevice(teleport.devicetrust.v1.UpsertDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ upsertDevice(input: UpsertDeviceRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * DeleteDevice hard-deletes a device, removing it and all collected data
+ * history from the system.
+ *
+ * Prefer locking the device instead (see the `tctl lock` command). Deleting a
+ * device doesn't invalidate existing device certificates, but does prevent
+ * new device authentication ceremonies from occurring.
+ *
+ * Use with caution.
+ *
+ * @generated from protobuf rpc: DeleteDevice(teleport.devicetrust.v1.DeleteDeviceRequest) returns (google.protobuf.Empty);
+ */
+ deleteDevice(input: DeleteDeviceRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * FindDevices retrieves devices by device ID and/or asset tag.
+ *
+ * It provides an in-between search between fetching a device by ID and
+ * listing all devices.
+ *
+ * ID matches are guaranteed to be present in the response.
+ *
+ * @generated from protobuf rpc: FindDevices(teleport.devicetrust.v1.FindDevicesRequest) returns (teleport.devicetrust.v1.FindDevicesResponse);
+ */
+ findDevices(input: FindDevicesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * GetDevice retrieves a device by ID.
+ *
+ * @generated from protobuf rpc: GetDevice(teleport.devicetrust.v1.GetDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ getDevice(input: GetDeviceRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * ListDevices lists all registered devices.
+ *
+ * @generated from protobuf rpc: ListDevices(teleport.devicetrust.v1.ListDevicesRequest) returns (teleport.devicetrust.v1.ListDevicesResponse);
+ */
+ listDevices(input: ListDevicesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * BulkCreateDevices is a bulk variant of CreateDevice.
+ *
+ * Unlike CreateDevice, it does not support creation of enrollment tokens, as
+ * it is meant for bulk inventory registration.
+ *
+ * @generated from protobuf rpc: BulkCreateDevices(teleport.devicetrust.v1.BulkCreateDevicesRequest) returns (teleport.devicetrust.v1.BulkCreateDevicesResponse);
+ */
+ bulkCreateDevices(input: BulkCreateDevicesRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * CreateDeviceEnrollToken creates a DeviceEnrollToken for a Device.
+ * An enrollment token is required for the enrollment ceremony. See
+ * EnrollDevice.
+ *
+ * @generated from protobuf rpc: CreateDeviceEnrollToken(teleport.devicetrust.v1.CreateDeviceEnrollTokenRequest) returns (teleport.devicetrust.v1.DeviceEnrollToken);
+ */
+ createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, options?: RpcOptions): UnaryCall;
+ /**
+ * EnrollDevice performs the device enrollment ceremony.
+ *
+ * Enrollment requires a previously-registered Device and a DeviceEnrollToken,
+ * see CreateDevice and CreateDeviceEnrollToken.
+ *
+ * An enrolled device is allowed, via AuthenticateDevice, to acquire
+ * certificates containing device extensions, thus gaining access to
+ * device-aware actions.
+ *
+ * macOS enrollment flow:
+ * -> EnrollDeviceInit (client)
+ * <- MacOSEnrollChallenge (server)
+ * -> MacOSEnrollChallengeResponse
+ * <- EnrollDeviceSuccess
+ *
+ * TPM enrollment flow:
+ * -> EnrollDeviceInit (client)
+ * <- TPMEnrollChallenge (server)
+ * -> TPMEnrollChallengeResponse
+ * <- EnrollDeviceSuccess
+ *
+ * @generated from protobuf rpc: EnrollDevice(stream teleport.devicetrust.v1.EnrollDeviceRequest) returns (stream teleport.devicetrust.v1.EnrollDeviceResponse);
+ */
+ enrollDevice(options?: RpcOptions): DuplexStreamingCall;
+ /**
+ * AuthenticateDevice performs the device authentication ceremony.
+ *
+ * Device authentication exchanges existing user certificates without device
+ * extensions for certificates augmented with device extensions. The new
+ * certificates allow the user to perform device-aware actions.
+ *
+ * Only registered and enrolled devices may perform device authentication.
+ *
+ * @generated from protobuf rpc: AuthenticateDevice(stream teleport.devicetrust.v1.AuthenticateDeviceRequest) returns (stream teleport.devicetrust.v1.AuthenticateDeviceResponse);
+ */
+ authenticateDevice(options?: RpcOptions): DuplexStreamingCall;
+ /**
+ * Syncs device inventory from a source exterior to Teleport, for example an
+ * MDM.
+ * Allows both partial and full syncs; for the latter, devices missing from
+ * the external inventory are handled as specified.
+ * Authorized either by a valid MDM service certificate or the appropriate
+ * "device" permissions (create/update/delete).
+ *
+ * @generated from protobuf rpc: SyncInventory(stream teleport.devicetrust.v1.SyncInventoryRequest) returns (stream teleport.devicetrust.v1.SyncInventoryResponse);
+ */
+ syncInventory(options?: RpcOptions): DuplexStreamingCall;
+ /**
+ * Superseded by ResourceUsageService.GetUsage.
+ *
+ * @deprecated
+ * @generated from protobuf rpc: GetDevicesUsage(teleport.devicetrust.v1.GetDevicesUsageRequest) returns (teleport.devicetrust.v1.DevicesUsage);
+ */
+ getDevicesUsage(input: GetDevicesUsageRequest, options?: RpcOptions): UnaryCall;
+}
+/**
+ * DeviceTrustService provides methods to manage, enroll and authenticate
+ * trusted devices.
+ *
+ * A trusted device is a device that is registered and enrolled with Teleport,
+ * thus allowing the system to provide some guarantees about its provenance and
+ * state.
+ *
+ * Managing devices requires the corresponding CRUD "device" permission.
+ * Additionally, creating enrollment tokens requires the "create_enroll_token"
+ * permission and enrolling devices requires the "enroll" permission. See
+ * CreateDevice, CreateDeviceEnrollToken and EnrollDevice for reference.
+ *
+ * An authenticated, trusted device allows its user to perform device-aware
+ * actions. Such actions include accessing an SSH node, managing sensitive
+ * resources via `tctl`, etc. The enforcement mode is defined via cluster-wide
+ * and/or per-role toggles. Device authentication is automatic for enrolled
+ * devices communicating with Enterprise clusters. See AuthenticateDevice for
+ * reference.
+ *
+ * Device Trust is a Teleport Enterprise feature. Open Source Teleport clusters
+ * treat all Device RPCs as unimplemented (which, in fact, they are for OSS.)
+ *
+ * @generated from protobuf service teleport.devicetrust.v1.DeviceTrustService
+ */
+export class DeviceTrustServiceClient implements IDeviceTrustServiceClient, ServiceInfo {
+ typeName = DeviceTrustService.typeName;
+ methods = DeviceTrustService.methods;
+ options = DeviceTrustService.options;
+ constructor(private readonly _transport: RpcTransport) {
+ }
+ /**
+ * CreateDevice creates a device, effectively registering it on Teleport.
+ * Devices need to be registered before they can be enrolled.
+ *
+ * It is possible to create both a Device and a DeviceEnrollToken in a
+ * single invocation, see CreateDeviceRequest.create_enroll_token.
+ *
+ * @generated from protobuf rpc: CreateDevice(teleport.devicetrust.v1.CreateDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ createDevice(input: CreateDeviceRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpdateDevice is a masked device update.
+ *
+ * Only certain fields may be updated, see Device for details.
+ *
+ * @generated from protobuf rpc: UpdateDevice(teleport.devicetrust.v1.UpdateDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ updateDevice(input: UpdateDeviceRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * UpsertDevice creates or updates a device.
+ *
+ * UpsertDevice attempts a write of all mutable fields on updates, therefore
+ * reading a fresh copy of the device is recommended. Update semantics still
+ * apply.
+ *
+ * @generated from protobuf rpc: UpsertDevice(teleport.devicetrust.v1.UpsertDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ upsertDevice(input: UpsertDeviceRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * DeleteDevice hard-deletes a device, removing it and all collected data
+ * history from the system.
+ *
+ * Prefer locking the device instead (see the `tctl lock` command). Deleting a
+ * device doesn't invalidate existing device certificates, but does prevent
+ * new device authentication ceremonies from occurring.
+ *
+ * Use with caution.
+ *
+ * @generated from protobuf rpc: DeleteDevice(teleport.devicetrust.v1.DeleteDeviceRequest) returns (google.protobuf.Empty);
+ */
+ deleteDevice(input: DeleteDeviceRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * FindDevices retrieves devices by device ID and/or asset tag.
+ *
+ * It provides an in-between search between fetching a device by ID and
+ * listing all devices.
+ *
+ * ID matches are guaranteed to be present in the response.
+ *
+ * @generated from protobuf rpc: FindDevices(teleport.devicetrust.v1.FindDevicesRequest) returns (teleport.devicetrust.v1.FindDevicesResponse);
+ */
+ findDevices(input: FindDevicesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * GetDevice retrieves a device by ID.
+ *
+ * @generated from protobuf rpc: GetDevice(teleport.devicetrust.v1.GetDeviceRequest) returns (teleport.devicetrust.v1.Device);
+ */
+ getDevice(input: GetDeviceRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * ListDevices lists all registered devices.
+ *
+ * @generated from protobuf rpc: ListDevices(teleport.devicetrust.v1.ListDevicesRequest) returns (teleport.devicetrust.v1.ListDevicesResponse);
+ */
+ listDevices(input: ListDevicesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * BulkCreateDevices is a bulk variant of CreateDevice.
+ *
+ * Unlike CreateDevice, it does not support creation of enrollment tokens, as
+ * it is meant for bulk inventory registration.
+ *
+ * @generated from protobuf rpc: BulkCreateDevices(teleport.devicetrust.v1.BulkCreateDevicesRequest) returns (teleport.devicetrust.v1.BulkCreateDevicesResponse);
+ */
+ bulkCreateDevices(input: BulkCreateDevicesRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * CreateDeviceEnrollToken creates a DeviceEnrollToken for a Device.
+ * An enrollment token is required for the enrollment ceremony. See
+ * EnrollDevice.
+ *
+ * @generated from protobuf rpc: CreateDeviceEnrollToken(teleport.devicetrust.v1.CreateDeviceEnrollTokenRequest) returns (teleport.devicetrust.v1.DeviceEnrollToken);
+ */
+ createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+ /**
+ * EnrollDevice performs the device enrollment ceremony.
+ *
+ * Enrollment requires a previously-registered Device and a DeviceEnrollToken,
+ * see CreateDevice and CreateDeviceEnrollToken.
+ *
+ * An enrolled device is allowed, via AuthenticateDevice, to acquire
+ * certificates containing device extensions, thus gaining access to
+ * device-aware actions.
+ *
+ * macOS enrollment flow:
+ * -> EnrollDeviceInit (client)
+ * <- MacOSEnrollChallenge (server)
+ * -> MacOSEnrollChallengeResponse
+ * <- EnrollDeviceSuccess
+ *
+ * TPM enrollment flow:
+ * -> EnrollDeviceInit (client)
+ * <- TPMEnrollChallenge (server)
+ * -> TPMEnrollChallengeResponse
+ * <- EnrollDeviceSuccess
+ *
+ * @generated from protobuf rpc: EnrollDevice(stream teleport.devicetrust.v1.EnrollDeviceRequest) returns (stream teleport.devicetrust.v1.EnrollDeviceResponse);
+ */
+ enrollDevice(options?: RpcOptions): DuplexStreamingCall {
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
+ return stackIntercept("duplex", this._transport, method, opt);
+ }
+ /**
+ * AuthenticateDevice performs the device authentication ceremony.
+ *
+ * Device authentication exchanges existing user certificates without device
+ * extensions for certificates augmented with device extensions. The new
+ * certificates allow the user to perform device-aware actions.
+ *
+ * Only registered and enrolled devices may perform device authentication.
+ *
+ * @generated from protobuf rpc: AuthenticateDevice(stream teleport.devicetrust.v1.AuthenticateDeviceRequest) returns (stream teleport.devicetrust.v1.AuthenticateDeviceResponse);
+ */
+ authenticateDevice(options?: RpcOptions): DuplexStreamingCall {
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
+ return stackIntercept("duplex", this._transport, method, opt);
+ }
+ /**
+ * Syncs device inventory from a source exterior to Teleport, for example an
+ * MDM.
+ * Allows both partial and full syncs; for the latter, devices missing from
+ * the external inventory are handled as specified.
+ * Authorized either by a valid MDM service certificate or the appropriate
+ * "device" permissions (create/update/delete).
+ *
+ * @generated from protobuf rpc: SyncInventory(stream teleport.devicetrust.v1.SyncInventoryRequest) returns (stream teleport.devicetrust.v1.SyncInventoryResponse);
+ */
+ syncInventory(options?: RpcOptions): DuplexStreamingCall {
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
+ return stackIntercept("duplex", this._transport, method, opt);
+ }
+ /**
+ * Superseded by ResourceUsageService.GetUsage.
+ *
+ * @deprecated
+ * @generated from protobuf rpc: GetDevicesUsage(teleport.devicetrust.v1.GetDevicesUsageRequest) returns (teleport.devicetrust.v1.DevicesUsage);
+ */
+ getDevicesUsage(input: GetDevicesUsageRequest, options?: RpcOptions): UnaryCall {
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
+ return stackIntercept("unary", this._transport, method, opt, input);
+ }
+}
diff --git a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.grpc-client.ts b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.grpc-client.ts
deleted file mode 100644
index 673eb816fd41c..0000000000000
--- a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.grpc-client.ts
+++ /dev/null
@@ -1,450 +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/devicetrust/v1/devicetrust_service.proto" (package "teleport.devicetrust.v1", syntax proto3)
-// tslint:disable
-// @ts-nocheck
-//
-// Copyright 2022 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 { DeviceTrustService } from "./devicetrust_service_pb";
-import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
-import type { BinaryReadOptions } from "@protobuf-ts/runtime";
-import type { DevicesUsage } from "./usage_pb";
-import type { GetDevicesUsageRequest } from "./devicetrust_service_pb";
-import type { SyncInventoryResponse } from "./devicetrust_service_pb";
-import type { SyncInventoryRequest } from "./devicetrust_service_pb";
-import type { AuthenticateDeviceResponse } from "./devicetrust_service_pb";
-import type { AuthenticateDeviceRequest } from "./devicetrust_service_pb";
-import type { EnrollDeviceResponse } from "./devicetrust_service_pb";
-import type { EnrollDeviceRequest } from "./devicetrust_service_pb";
-import type { DeviceEnrollToken } from "./device_enroll_token_pb";
-import type { CreateDeviceEnrollTokenRequest } from "./devicetrust_service_pb";
-import type { BulkCreateDevicesResponse } from "./devicetrust_service_pb";
-import type { BulkCreateDevicesRequest } from "./devicetrust_service_pb";
-import type { ListDevicesResponse } from "./devicetrust_service_pb";
-import type { ListDevicesRequest } from "./devicetrust_service_pb";
-import type { GetDeviceRequest } from "./devicetrust_service_pb";
-import type { FindDevicesResponse } from "./devicetrust_service_pb";
-import type { FindDevicesRequest } from "./devicetrust_service_pb";
-import type { Empty } from "../../../google/protobuf/empty_pb";
-import type { DeleteDeviceRequest } from "./devicetrust_service_pb";
-import type { UpsertDeviceRequest } from "./devicetrust_service_pb";
-import type { UpdateDeviceRequest } from "./devicetrust_service_pb";
-import type { Device } from "./device_pb";
-import type { CreateDeviceRequest } from "./devicetrust_service_pb";
-import * as grpc from "@grpc/grpc-js";
-/**
- * DeviceTrustService provides methods to manage, enroll and authenticate
- * trusted devices.
- *
- * A trusted device is a device that is registered and enrolled with Teleport,
- * thus allowing the system to provide some guarantees about its provenance and
- * state.
- *
- * Managing devices requires the corresponding CRUD "device" permission.
- * Additionally, creating enrollment tokens requires the "create_enroll_token"
- * permission and enrolling devices requires the "enroll" permission. See
- * CreateDevice, CreateDeviceEnrollToken and EnrollDevice for reference.
- *
- * An authenticated, trusted device allows its user to perform device-aware
- * actions. Such actions include accessing an SSH node, managing sensitive
- * resources via `tctl`, etc. The enforcement mode is defined via cluster-wide
- * and/or per-role toggles. Device authentication is automatic for enrolled
- * devices communicating with Enterprise clusters. See AuthenticateDevice for
- * reference.
- *
- * Device Trust is a Teleport Enterprise feature. Open Source Teleport clusters
- * treat all Device RPCs as unimplemented (which, in fact, they are for OSS.)
- *
- * @generated from protobuf service teleport.devicetrust.v1.DeviceTrustService
- */
-export interface IDeviceTrustServiceClient {
- /**
- * CreateDevice creates a device, effectively registering it on Teleport.
- * Devices need to be registered before they can be enrolled.
- *
- * It is possible to create both a Device and a DeviceEnrollToken in a
- * single invocation, see CreateDeviceRequest.create_enroll_token.
- *
- * @generated from protobuf rpc: CreateDevice(teleport.devicetrust.v1.CreateDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- createDevice(input: CreateDeviceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- createDevice(input: CreateDeviceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- createDevice(input: CreateDeviceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- createDevice(input: CreateDeviceRequest, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- /**
- * UpdateDevice is a masked device update.
- *
- * Only certain fields may be updated, see Device for details.
- *
- * @generated from protobuf rpc: UpdateDevice(teleport.devicetrust.v1.UpdateDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- updateDevice(input: UpdateDeviceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- updateDevice(input: UpdateDeviceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- updateDevice(input: UpdateDeviceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- updateDevice(input: UpdateDeviceRequest, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- /**
- * UpsertDevice creates or updates a device.
- *
- * UpsertDevice attempts a write of all mutable fields on updates, therefore
- * reading a fresh copy of the device is recommended. Update semantics still
- * apply.
- *
- * @generated from protobuf rpc: UpsertDevice(teleport.devicetrust.v1.UpsertDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- upsertDevice(input: UpsertDeviceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- upsertDevice(input: UpsertDeviceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- upsertDevice(input: UpsertDeviceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- upsertDevice(input: UpsertDeviceRequest, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- /**
- * DeleteDevice hard-deletes a device, removing it and all collected data
- * history from the system.
- *
- * Prefer locking the device instead (see the `tctl lock` command). Deleting a
- * device doesn't invalidate existing device certificates, but does prevent
- * new device authentication ceremonies from occurring.
- *
- * Use with caution.
- *
- * @generated from protobuf rpc: DeleteDevice(teleport.devicetrust.v1.DeleteDeviceRequest) returns (google.protobuf.Empty);
- */
- deleteDevice(input: DeleteDeviceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteDevice(input: DeleteDeviceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteDevice(input: DeleteDeviceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- deleteDevice(input: DeleteDeviceRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall;
- /**
- * FindDevices retrieves devices by device ID and/or asset tag.
- *
- * It provides an in-between search between fetching a device by ID and
- * listing all devices.
- *
- * ID matches are guaranteed to be present in the response.
- *
- * @generated from protobuf rpc: FindDevices(teleport.devicetrust.v1.FindDevicesRequest) returns (teleport.devicetrust.v1.FindDevicesResponse);
- */
- findDevices(input: FindDevicesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: FindDevicesResponse) => void): grpc.ClientUnaryCall;
- findDevices(input: FindDevicesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: FindDevicesResponse) => void): grpc.ClientUnaryCall;
- findDevices(input: FindDevicesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: FindDevicesResponse) => void): grpc.ClientUnaryCall;
- findDevices(input: FindDevicesRequest, callback: (err: grpc.ServiceError | null, value?: FindDevicesResponse) => void): grpc.ClientUnaryCall;
- /**
- * GetDevice retrieves a device by ID.
- *
- * @generated from protobuf rpc: GetDevice(teleport.devicetrust.v1.GetDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- getDevice(input: GetDeviceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- getDevice(input: GetDeviceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- getDevice(input: GetDeviceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- getDevice(input: GetDeviceRequest, callback: (err: grpc.ServiceError | null, value?: Device) => void): grpc.ClientUnaryCall;
- /**
- * ListDevices lists all registered devices.
- *
- * @generated from protobuf rpc: ListDevices(teleport.devicetrust.v1.ListDevicesRequest) returns (teleport.devicetrust.v1.ListDevicesResponse);
- */
- listDevices(input: ListDevicesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListDevicesResponse) => void): grpc.ClientUnaryCall;
- listDevices(input: ListDevicesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ListDevicesResponse) => void): grpc.ClientUnaryCall;
- listDevices(input: ListDevicesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ListDevicesResponse) => void): grpc.ClientUnaryCall;
- listDevices(input: ListDevicesRequest, callback: (err: grpc.ServiceError | null, value?: ListDevicesResponse) => void): grpc.ClientUnaryCall;
- /**
- * BulkCreateDevices is a bulk variant of CreateDevice.
- *
- * Unlike CreateDevice, it does not support creation of enrollment tokens, as
- * it is meant for bulk inventory registration.
- *
- * @generated from protobuf rpc: BulkCreateDevices(teleport.devicetrust.v1.BulkCreateDevicesRequest) returns (teleport.devicetrust.v1.BulkCreateDevicesResponse);
- */
- bulkCreateDevices(input: BulkCreateDevicesRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void): grpc.ClientUnaryCall;
- bulkCreateDevices(input: BulkCreateDevicesRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void): grpc.ClientUnaryCall;
- bulkCreateDevices(input: BulkCreateDevicesRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void): grpc.ClientUnaryCall;
- bulkCreateDevices(input: BulkCreateDevicesRequest, callback: (err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void): grpc.ClientUnaryCall;
- /**
- * CreateDeviceEnrollToken creates a DeviceEnrollToken for a Device.
- * An enrollment token is required for the enrollment ceremony. See
- * EnrollDevice.
- *
- * @generated from protobuf rpc: CreateDeviceEnrollToken(teleport.devicetrust.v1.CreateDeviceEnrollTokenRequest) returns (teleport.devicetrust.v1.DeviceEnrollToken);
- */
- createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void): grpc.ClientUnaryCall;
- createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void): grpc.ClientUnaryCall;
- createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void): grpc.ClientUnaryCall;
- createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, callback: (err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void): grpc.ClientUnaryCall;
- /**
- * EnrollDevice performs the device enrollment ceremony.
- *
- * Enrollment requires a previously-registered Device and a DeviceEnrollToken,
- * see CreateDevice and CreateDeviceEnrollToken.
- *
- * An enrolled device is allowed, via AuthenticateDevice, to acquire
- * certificates containing device extensions, thus gaining access to
- * device-aware actions.
- *
- * macOS enrollment flow:
- * -> EnrollDeviceInit (client)
- * <- MacOSEnrollChallenge (server)
- * -> MacOSEnrollChallengeResponse
- * <- EnrollDeviceSuccess
- *
- * TPM enrollment flow:
- * -> EnrollDeviceInit (client)
- * <- TPMEnrollChallenge (server)
- * -> TPMEnrollChallengeResponse
- * <- EnrollDeviceSuccess
- *
- * @generated from protobuf rpc: EnrollDevice(stream teleport.devicetrust.v1.EnrollDeviceRequest) returns (stream teleport.devicetrust.v1.EnrollDeviceResponse);
- */
- enrollDevice(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream;
- enrollDevice(options?: grpc.CallOptions): grpc.ClientDuplexStream;
- /**
- * AuthenticateDevice performs the device authentication ceremony.
- *
- * Device authentication exchanges existing user certificates without device
- * extensions for certificates augmented with device extensions. The new
- * certificates allow the user to perform device-aware actions.
- *
- * Only registered and enrolled devices may perform device authentication.
- *
- * @generated from protobuf rpc: AuthenticateDevice(stream teleport.devicetrust.v1.AuthenticateDeviceRequest) returns (stream teleport.devicetrust.v1.AuthenticateDeviceResponse);
- */
- authenticateDevice(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream;
- authenticateDevice(options?: grpc.CallOptions): grpc.ClientDuplexStream;
- /**
- * Syncs device inventory from a source exterior to Teleport, for example an
- * MDM.
- * Allows both partial and full syncs; for the latter, devices missing from
- * the external inventory are handled as specified.
- * Authorized either by a valid MDM service certificate or the appropriate
- * "device" permissions (create/update/delete).
- *
- * @generated from protobuf rpc: SyncInventory(stream teleport.devicetrust.v1.SyncInventoryRequest) returns (stream teleport.devicetrust.v1.SyncInventoryResponse);
- */
- syncInventory(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream;
- syncInventory(options?: grpc.CallOptions): grpc.ClientDuplexStream;
- /**
- * Superseded by ResourceUsageService.GetUsage.
- *
- * @deprecated
- * @generated from protobuf rpc: GetDevicesUsage(teleport.devicetrust.v1.GetDevicesUsageRequest) returns (teleport.devicetrust.v1.DevicesUsage);
- */
- getDevicesUsage(input: GetDevicesUsageRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: DevicesUsage) => void): grpc.ClientUnaryCall;
- getDevicesUsage(input: GetDevicesUsageRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: DevicesUsage) => void): grpc.ClientUnaryCall;
- getDevicesUsage(input: GetDevicesUsageRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: DevicesUsage) => void): grpc.ClientUnaryCall;
- getDevicesUsage(input: GetDevicesUsageRequest, callback: (err: grpc.ServiceError | null, value?: DevicesUsage) => void): grpc.ClientUnaryCall;
-}
-/**
- * DeviceTrustService provides methods to manage, enroll and authenticate
- * trusted devices.
- *
- * A trusted device is a device that is registered and enrolled with Teleport,
- * thus allowing the system to provide some guarantees about its provenance and
- * state.
- *
- * Managing devices requires the corresponding CRUD "device" permission.
- * Additionally, creating enrollment tokens requires the "create_enroll_token"
- * permission and enrolling devices requires the "enroll" permission. See
- * CreateDevice, CreateDeviceEnrollToken and EnrollDevice for reference.
- *
- * An authenticated, trusted device allows its user to perform device-aware
- * actions. Such actions include accessing an SSH node, managing sensitive
- * resources via `tctl`, etc. The enforcement mode is defined via cluster-wide
- * and/or per-role toggles. Device authentication is automatic for enrolled
- * devices communicating with Enterprise clusters. See AuthenticateDevice for
- * reference.
- *
- * Device Trust is a Teleport Enterprise feature. Open Source Teleport clusters
- * treat all Device RPCs as unimplemented (which, in fact, they are for OSS.)
- *
- * @generated from protobuf service teleport.devicetrust.v1.DeviceTrustService
- */
-export class DeviceTrustServiceClient extends grpc.Client implements IDeviceTrustServiceClient {
- private readonly _binaryOptions: Partial;
- constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial = {}) {
- super(address, credentials, options);
- this._binaryOptions = binaryOptions;
- }
- /**
- * CreateDevice creates a device, effectively registering it on Teleport.
- * Devices need to be registered before they can be enrolled.
- *
- * It is possible to create both a Device and a DeviceEnrollToken in a
- * single invocation, see CreateDeviceRequest.create_enroll_token.
- *
- * @generated from protobuf rpc: CreateDevice(teleport.devicetrust.v1.CreateDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- createDevice(input: CreateDeviceRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), callback?: ((err: grpc.ServiceError | null, value?: Device) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[0];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: CreateDeviceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Device => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * UpdateDevice is a masked device update.
- *
- * Only certain fields may be updated, see Device for details.
- *
- * @generated from protobuf rpc: UpdateDevice(teleport.devicetrust.v1.UpdateDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- updateDevice(input: UpdateDeviceRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), callback?: ((err: grpc.ServiceError | null, value?: Device) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[1];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: UpdateDeviceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Device => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * UpsertDevice creates or updates a device.
- *
- * UpsertDevice attempts a write of all mutable fields on updates, therefore
- * reading a fresh copy of the device is recommended. Update semantics still
- * apply.
- *
- * @generated from protobuf rpc: UpsertDevice(teleport.devicetrust.v1.UpsertDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- upsertDevice(input: UpsertDeviceRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), callback?: ((err: grpc.ServiceError | null, value?: Device) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[2];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: UpsertDeviceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Device => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * DeleteDevice hard-deletes a device, removing it and all collected data
- * history from the system.
- *
- * Prefer locking the device instead (see the `tctl lock` command). Deleting a
- * device doesn't invalidate existing device certificates, but does prevent
- * new device authentication ceremonies from occurring.
- *
- * Use with caution.
- *
- * @generated from protobuf rpc: DeleteDevice(teleport.devicetrust.v1.DeleteDeviceRequest) returns (google.protobuf.Empty);
- */
- deleteDevice(input: DeleteDeviceRequest, 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 = DeviceTrustService.methods[3];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: DeleteDeviceRequest): 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));
- }
- /**
- * FindDevices retrieves devices by device ID and/or asset tag.
- *
- * It provides an in-between search between fetching a device by ID and
- * listing all devices.
- *
- * ID matches are guaranteed to be present in the response.
- *
- * @generated from protobuf rpc: FindDevices(teleport.devicetrust.v1.FindDevicesRequest) returns (teleport.devicetrust.v1.FindDevicesResponse);
- */
- findDevices(input: FindDevicesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: FindDevicesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: FindDevicesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: FindDevicesResponse) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[4];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: FindDevicesRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): FindDevicesResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * GetDevice retrieves a device by ID.
- *
- * @generated from protobuf rpc: GetDevice(teleport.devicetrust.v1.GetDeviceRequest) returns (teleport.devicetrust.v1.Device);
- */
- getDevice(input: GetDeviceRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Device) => void), callback?: ((err: grpc.ServiceError | null, value?: Device) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[5];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: GetDeviceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): Device => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * ListDevices lists all registered devices.
- *
- * @generated from protobuf rpc: ListDevices(teleport.devicetrust.v1.ListDevicesRequest) returns (teleport.devicetrust.v1.ListDevicesResponse);
- */
- listDevices(input: ListDevicesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListDevicesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ListDevicesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ListDevicesResponse) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[6];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: ListDevicesRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ListDevicesResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * BulkCreateDevices is a bulk variant of CreateDevice.
- *
- * Unlike CreateDevice, it does not support creation of enrollment tokens, as
- * it is meant for bulk inventory registration.
- *
- * @generated from protobuf rpc: BulkCreateDevices(teleport.devicetrust.v1.BulkCreateDevicesRequest) returns (teleport.devicetrust.v1.BulkCreateDevicesResponse);
- */
- bulkCreateDevices(input: BulkCreateDevicesRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: BulkCreateDevicesResponse) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[7];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: BulkCreateDevicesRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): BulkCreateDevicesResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * CreateDeviceEnrollToken creates a DeviceEnrollToken for a Device.
- * An enrollment token is required for the enrollment ceremony. See
- * EnrollDevice.
- *
- * @generated from protobuf rpc: CreateDeviceEnrollToken(teleport.devicetrust.v1.CreateDeviceEnrollTokenRequest) returns (teleport.devicetrust.v1.DeviceEnrollToken);
- */
- createDeviceEnrollToken(input: CreateDeviceEnrollTokenRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void), callback?: ((err: grpc.ServiceError | null, value?: DeviceEnrollToken) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[8];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: CreateDeviceEnrollTokenRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): DeviceEnrollToken => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
- /**
- * EnrollDevice performs the device enrollment ceremony.
- *
- * Enrollment requires a previously-registered Device and a DeviceEnrollToken,
- * see CreateDevice and CreateDeviceEnrollToken.
- *
- * An enrolled device is allowed, via AuthenticateDevice, to acquire
- * certificates containing device extensions, thus gaining access to
- * device-aware actions.
- *
- * macOS enrollment flow:
- * -> EnrollDeviceInit (client)
- * <- MacOSEnrollChallenge (server)
- * -> MacOSEnrollChallengeResponse
- * <- EnrollDeviceSuccess
- *
- * TPM enrollment flow:
- * -> EnrollDeviceInit (client)
- * <- TPMEnrollChallenge (server)
- * -> TPMEnrollChallengeResponse
- * <- EnrollDeviceSuccess
- *
- * @generated from protobuf rpc: EnrollDevice(stream teleport.devicetrust.v1.EnrollDeviceRequest) returns (stream teleport.devicetrust.v1.EnrollDeviceResponse);
- */
- enrollDevice(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream {
- const method = DeviceTrustService.methods[9];
- return this.makeBidiStreamRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: EnrollDeviceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): EnrollDeviceResponse => method.O.fromBinary(value, this._binaryOptions), (metadata as any), options);
- }
- /**
- * AuthenticateDevice performs the device authentication ceremony.
- *
- * Device authentication exchanges existing user certificates without device
- * extensions for certificates augmented with device extensions. The new
- * certificates allow the user to perform device-aware actions.
- *
- * Only registered and enrolled devices may perform device authentication.
- *
- * @generated from protobuf rpc: AuthenticateDevice(stream teleport.devicetrust.v1.AuthenticateDeviceRequest) returns (stream teleport.devicetrust.v1.AuthenticateDeviceResponse);
- */
- authenticateDevice(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream {
- const method = DeviceTrustService.methods[10];
- return this.makeBidiStreamRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: AuthenticateDeviceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): AuthenticateDeviceResponse => method.O.fromBinary(value, this._binaryOptions), (metadata as any), options);
- }
- /**
- * Syncs device inventory from a source exterior to Teleport, for example an
- * MDM.
- * Allows both partial and full syncs; for the latter, devices missing from
- * the external inventory are handled as specified.
- * Authorized either by a valid MDM service certificate or the appropriate
- * "device" permissions (create/update/delete).
- *
- * @generated from protobuf rpc: SyncInventory(stream teleport.devicetrust.v1.SyncInventoryRequest) returns (stream teleport.devicetrust.v1.SyncInventoryResponse);
- */
- syncInventory(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream {
- const method = DeviceTrustService.methods[11];
- return this.makeBidiStreamRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: SyncInventoryRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): SyncInventoryResponse => method.O.fromBinary(value, this._binaryOptions), (metadata as any), options);
- }
- /**
- * Superseded by ResourceUsageService.GetUsage.
- *
- * @deprecated
- * @generated from protobuf rpc: GetDevicesUsage(teleport.devicetrust.v1.GetDevicesUsageRequest) returns (teleport.devicetrust.v1.DevicesUsage);
- */
- getDevicesUsage(input: GetDevicesUsageRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: DevicesUsage) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: DevicesUsage) => void), callback?: ((err: grpc.ServiceError | null, value?: DevicesUsage) => void)): grpc.ClientUnaryCall {
- const method = DeviceTrustService.methods[12];
- return this.makeUnaryRequest(`/${DeviceTrustService.typeName}/${method.name}`, (value: GetDevicesUsageRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): DevicesUsage => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
- }
-}
diff --git a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.grpc-server.ts b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.grpc-server.ts
index cd50153c18d8d..b010ca3aef954 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.grpc-server.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_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/devicetrust/v1/devicetrust_service.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.ts
index 314b79e23b925..f2226785beb52 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/devicetrust_service_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/devicetrust_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/devicetrust/v1/devicetrust_service.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/os_type_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/os_type_pb.ts
index 97ebf012a0e1e..3149f9498d800 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/os_type_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/os_type_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/devicetrust/v1/os_type.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/tpm_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/tpm_pb.ts
index f42ad0a8fd30f..c8f98e98210c3 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/tpm_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/tpm_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/devicetrust/v1/tpm.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/usage_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/usage_pb.ts
index f9f69980e3afb..0fa1ccf31fe80 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/usage_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/usage_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/devicetrust/v1/usage.proto" (package "teleport.devicetrust.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
diff --git a/gen/proto/ts/teleport/devicetrust/v1/user_certificates_pb.ts b/gen/proto/ts/teleport/devicetrust/v1/user_certificates_pb.ts
index cd350b51df6e8..ff1148e9577ca 100644
--- a/gen/proto/ts/teleport/devicetrust/v1/user_certificates_pb.ts
+++ b/gen/proto/ts/teleport/devicetrust/v1/user_certificates_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/devicetrust/v1/user_certificates.proto" (package "teleport.devicetrust.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..6643bebd3adad
--- /dev/null
+++ b/gen/proto/ts/teleport/lib/teleterm/v1/service_pb.client.ts
@@ -0,0 +1,825 @@
+/* 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 { AuthenticateWebDeviceResponse } from "./service_pb";
+import type { AuthenticateWebDeviceRequest } 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;
+ /**
+ * AuthenticateWebDevice blesses a web session with device trust by performing
+ * the on-behalf-of device authentication ceremony.
+ *
+ * See
+ * https://github.com/gravitational/teleport.e/blob/master/rfd/0009e-device-trust-web-support.md#device-web-authentication.
+ *
+ * @generated from protobuf rpc: AuthenticateWebDevice(teleport.lib.teleterm.v1.AuthenticateWebDeviceRequest) returns (teleport.lib.teleterm.v1.AuthenticateWebDeviceResponse);
+ */
+ authenticateWebDevice(input: AuthenticateWebDeviceRequest, 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