@toshicloud/sdk 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -510
- package/dist/client.d.ts +6 -4
- package/dist/client.js +4 -2
- package/dist/gen/toshi/permission_pb.d.ts +12 -0
- package/dist/gen/toshi/permission_pb.js +14 -2
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +213 -19
- package/dist/gen/toshi/workspace/v1/connections_pb.js +97 -25
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +26 -26
- package/dist/gen/toshi/workspace/v1/domains_pb.js +4 -4
- package/dist/gen/toshi/workspace/v1/{channels_pb.d.ts → endpoints_pb.d.ts} +945 -822
- package/dist/gen/toshi/workspace/v1/endpoints_pb.js +488 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +10 -10
- package/dist/gen/toshi/workspace/v1/grants_pb.js +3 -3
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +46 -22
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +110 -36
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.d.ts +654 -0
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.js +110 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +21 -2
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +19 -2
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +28 -28
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +6 -6
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +202 -202
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +46 -46
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +552 -29
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +85 -55
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +639 -119
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +174 -88
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +101 -4
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +20 -15
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/retry.js +33 -22
- package/dist/test/alarms.js +1 -1
- package/dist/test/procedures.js +35 -25
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.js +0 -483
|
@@ -6,7 +6,7 @@ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
|
6
6
|
/**
|
|
7
7
|
* Describes the file toshi/permission.proto.
|
|
8
8
|
*/
|
|
9
|
-
export const file_toshi_permission = /*@__PURE__*/ fileDesc("
|
|
9
|
+
export const file_toshi_permission = /*@__PURE__*/ fileDesc("ChZ0b3NoaS9wZXJtaXNzaW9uLnByb3RvEgV0b3NoaSInCgVBdWRpdBIOCgZhY3Rpb24YASABKAkSDgoGdGFyZ2V0GAIgASgJIrYBCgNNQ1ASFgoJcmVhZF9vbmx5GAEgASgISACIAQESGAoLZGVzdHJ1Y3RpdmUYAiABKAhIAYgBARIXCgppZGVtcG90ZW50GAMgASgISAKIAQESFwoKb3Blbl93b3JsZBgEIAEoCEgDiAEBEg8KB2V4Y2x1ZGUYBSABKAhCDAoKX3JlYWRfb25seUIOCgxfZGVzdHJ1Y3RpdmVCDQoLX2lkZW1wb3RlbnRCDQoLX29wZW5fd29ybGQ6QAoKcGVybWlzc2lvbhIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGLiOAyABKAlSCnBlcm1pc3Npb246NgoFc2NvcGUSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxi5jgMgASgJUgVzY29wZTpECgVhdWRpdBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGLqOAyABKAsyDC50b3NoaS5BdWRpdFIFYXVkaXQ6OwoIYnlfZmllbGQSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxi8jgMgASgIUgdieUZpZWxkOj4KA21jcBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGL2OAyABKAsyCi50b3NoaS5NQ1BSA21jcDoyCgNvd24SHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxi+jgMgASgIUgNvd246SgoQZmllbGRfcGVybWlzc2lvbhIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYu44DIAEoCVIPZmllbGRQZXJtaXNzaW9uQh5aHGdvLnRvc2hpY2xvdWQuaW8vYXBpL3Rvc2hpcGJiBnByb3RvMw", [file_google_protobuf_descriptor]);
|
|
10
10
|
/**
|
|
11
11
|
* Describes the message toshi.Audit.
|
|
12
12
|
* Use `create(AuditSchema)` to create a new message.
|
|
@@ -82,6 +82,18 @@ export const by_field = /*@__PURE__*/ extDesc(file_toshi_permission, 3);
|
|
|
82
82
|
* @generated from extension: toshi.MCP mcp = 51005;
|
|
83
83
|
*/
|
|
84
84
|
export const mcp = /*@__PURE__*/ extDesc(file_toshi_permission, 4);
|
|
85
|
+
/**
|
|
86
|
+
* own marks a call a member may make for what is their own with
|
|
87
|
+
* membership alone. A caller who holds a role in the workspace but not the
|
|
88
|
+
* method's permission is admitted for their own resources only: the
|
|
89
|
+
* handler refuses any other resource, as the permission check would, with
|
|
90
|
+
* PERMISSION_MISSING, and a list holds only the caller's own. A caller
|
|
91
|
+
* with the permission is admitted as usual. A call that acts for no
|
|
92
|
+
* person needs the permission.
|
|
93
|
+
*
|
|
94
|
+
* @generated from extension: bool own = 51006;
|
|
95
|
+
*/
|
|
96
|
+
export const own = /*@__PURE__*/ extDesc(file_toshi_permission, 5);
|
|
85
97
|
/**
|
|
86
98
|
* field_permission names what a caller needs to change the field through
|
|
87
99
|
* the mask of an update call marked by_field: a field group of its own,
|
|
@@ -91,4 +103,4 @@ export const mcp = /*@__PURE__*/ extDesc(file_toshi_permission, 4);
|
|
|
91
103
|
*
|
|
92
104
|
* @generated from extension: string field_permission = 51003;
|
|
93
105
|
*/
|
|
94
|
-
export const field_permission = /*@__PURE__*/ extDesc(file_toshi_permission,
|
|
106
|
+
export const field_permission = /*@__PURE__*/ extDesc(file_toshi_permission, 6);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Duration, DurationJson, FieldMask, FieldMaskJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { DomainRecord, DomainRecordJson } from "./domains_pb.js";
|
|
3
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
5
|
/**
|
|
5
6
|
* Describes the file toshi/workspace/v1/connections.proto.
|
|
@@ -226,25 +227,25 @@ export declare const ConnectionSchema: GenMessage<Connection, {
|
|
|
226
227
|
*/
|
|
227
228
|
export type MailConnection = Message<"toshi.workspace.v1.MailConnection"> & {
|
|
228
229
|
/**
|
|
229
|
-
* Output only. The address mail is received at: the connection's
|
|
230
|
-
*
|
|
231
|
-
*
|
|
230
|
+
* Output only. The lowercase address mail is received at: the connection's
|
|
231
|
+
* name at its custom domain, or at the workspace's name under the
|
|
232
|
+
* deployment's inbound mail domain when no custom domain is set.
|
|
232
233
|
*
|
|
233
234
|
* @generated from field: string address = 1;
|
|
234
235
|
*/
|
|
235
236
|
address: string;
|
|
236
237
|
/**
|
|
237
|
-
* The service, by its ID, whose event
|
|
238
|
+
* The service, by its ID, whose event endpoint the mail goes to.
|
|
238
239
|
*
|
|
239
240
|
* @generated from field: string service = 2;
|
|
240
241
|
*/
|
|
241
242
|
service: string;
|
|
242
243
|
/**
|
|
243
|
-
* The name of that service's event
|
|
244
|
+
* The name of that service's event endpoint.
|
|
244
245
|
*
|
|
245
|
-
* @generated from field: string
|
|
246
|
+
* @generated from field: string endpoint = 3;
|
|
246
247
|
*/
|
|
247
|
-
|
|
248
|
+
endpoint: string;
|
|
248
249
|
/**
|
|
249
250
|
* Output only. The mail provider that receives for the address, such as
|
|
250
251
|
* "ses".
|
|
@@ -252,6 +253,20 @@ export type MailConnection = Message<"toshi.workspace.v1.MailConnection"> & {
|
|
|
252
253
|
* @generated from field: string provider = 4;
|
|
253
254
|
*/
|
|
254
255
|
provider: string;
|
|
256
|
+
/**
|
|
257
|
+
* A custom mail domain, lowercase in ASCII. Empty uses the deployment's
|
|
258
|
+
* inbound mail domain.
|
|
259
|
+
*
|
|
260
|
+
* @generated from field: string domain = 5;
|
|
261
|
+
*/
|
|
262
|
+
domain: string;
|
|
263
|
+
/**
|
|
264
|
+
* Output only. The custom domain's checks and required DNS records; unset
|
|
265
|
+
* when the connection uses the deployment's inbound mail domain.
|
|
266
|
+
*
|
|
267
|
+
* @generated from field: toshi.workspace.v1.MailDomainStatus domain_status = 6;
|
|
268
|
+
*/
|
|
269
|
+
domainStatus?: MailDomainStatus | undefined;
|
|
255
270
|
};
|
|
256
271
|
/**
|
|
257
272
|
* MailConnection is where a MAIL connection receives mail and where it
|
|
@@ -261,25 +276,25 @@ export type MailConnection = Message<"toshi.workspace.v1.MailConnection"> & {
|
|
|
261
276
|
*/
|
|
262
277
|
export type MailConnectionJson = {
|
|
263
278
|
/**
|
|
264
|
-
* Output only. The address mail is received at: the connection's
|
|
265
|
-
*
|
|
266
|
-
*
|
|
279
|
+
* Output only. The lowercase address mail is received at: the connection's
|
|
280
|
+
* name at its custom domain, or at the workspace's name under the
|
|
281
|
+
* deployment's inbound mail domain when no custom domain is set.
|
|
267
282
|
*
|
|
268
283
|
* @generated from field: string address = 1;
|
|
269
284
|
*/
|
|
270
285
|
address?: string;
|
|
271
286
|
/**
|
|
272
|
-
* The service, by its ID, whose event
|
|
287
|
+
* The service, by its ID, whose event endpoint the mail goes to.
|
|
273
288
|
*
|
|
274
289
|
* @generated from field: string service = 2;
|
|
275
290
|
*/
|
|
276
291
|
service?: string;
|
|
277
292
|
/**
|
|
278
|
-
* The name of that service's event
|
|
293
|
+
* The name of that service's event endpoint.
|
|
279
294
|
*
|
|
280
|
-
* @generated from field: string
|
|
295
|
+
* @generated from field: string endpoint = 3;
|
|
281
296
|
*/
|
|
282
|
-
|
|
297
|
+
endpoint?: string;
|
|
283
298
|
/**
|
|
284
299
|
* Output only. The mail provider that receives for the address, such as
|
|
285
300
|
* "ses".
|
|
@@ -287,6 +302,20 @@ export type MailConnectionJson = {
|
|
|
287
302
|
* @generated from field: string provider = 4;
|
|
288
303
|
*/
|
|
289
304
|
provider?: string;
|
|
305
|
+
/**
|
|
306
|
+
* A custom mail domain, lowercase in ASCII. Empty uses the deployment's
|
|
307
|
+
* inbound mail domain.
|
|
308
|
+
*
|
|
309
|
+
* @generated from field: string domain = 5;
|
|
310
|
+
*/
|
|
311
|
+
domain?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Output only. The custom domain's checks and required DNS records; unset
|
|
314
|
+
* when the connection uses the deployment's inbound mail domain.
|
|
315
|
+
*
|
|
316
|
+
* @generated from field: toshi.workspace.v1.MailDomainStatus domain_status = 6;
|
|
317
|
+
*/
|
|
318
|
+
domainStatus?: MailDomainStatusJson;
|
|
290
319
|
};
|
|
291
320
|
/**
|
|
292
321
|
* Describes the message toshi.workspace.v1.MailConnection.
|
|
@@ -295,6 +324,95 @@ export type MailConnectionJson = {
|
|
|
295
324
|
export declare const MailConnectionSchema: GenMessage<MailConnection, {
|
|
296
325
|
jsonType: MailConnectionJson;
|
|
297
326
|
}>;
|
|
327
|
+
/**
|
|
328
|
+
* MailDomainStatus describes the checks and DNS records of a custom domain.
|
|
329
|
+
*
|
|
330
|
+
* @generated from message toshi.workspace.v1.MailDomainStatus
|
|
331
|
+
*/
|
|
332
|
+
export type MailDomainStatus = Message<"toshi.workspace.v1.MailDomainStatus"> & {
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: toshi.workspace.v1.MailDomainState state = 1;
|
|
335
|
+
*/
|
|
336
|
+
state: MailDomainState;
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: toshi.workspace.v1.MailDomainCheck ownership = 2;
|
|
339
|
+
*/
|
|
340
|
+
ownership: MailDomainCheck;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: toshi.workspace.v1.MailDomainCheck mx = 3;
|
|
343
|
+
*/
|
|
344
|
+
mx: MailDomainCheck;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: toshi.workspace.v1.MailDomainCheck provider = 4;
|
|
347
|
+
*/
|
|
348
|
+
provider: MailDomainCheck;
|
|
349
|
+
/**
|
|
350
|
+
* The ownership TXT, inbound MX and provider records, in that order.
|
|
351
|
+
*
|
|
352
|
+
* @generated from field: repeated toshi.workspace.v1.DomainRecord records = 5;
|
|
353
|
+
*/
|
|
354
|
+
records: DomainRecord[];
|
|
355
|
+
/**
|
|
356
|
+
* Why the domain is not ready, or why the last lookup failed.
|
|
357
|
+
*
|
|
358
|
+
* @generated from field: string reason = 6;
|
|
359
|
+
*/
|
|
360
|
+
reason: string;
|
|
361
|
+
/**
|
|
362
|
+
* Unset until the first check.
|
|
363
|
+
*
|
|
364
|
+
* @generated from field: google.protobuf.Timestamp checked_at = 7;
|
|
365
|
+
*/
|
|
366
|
+
checkedAt?: Timestamp | undefined;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* MailDomainStatus describes the checks and DNS records of a custom domain.
|
|
370
|
+
*
|
|
371
|
+
* @generated from message toshi.workspace.v1.MailDomainStatus
|
|
372
|
+
*/
|
|
373
|
+
export type MailDomainStatusJson = {
|
|
374
|
+
/**
|
|
375
|
+
* @generated from field: toshi.workspace.v1.MailDomainState state = 1;
|
|
376
|
+
*/
|
|
377
|
+
state?: MailDomainStateJson;
|
|
378
|
+
/**
|
|
379
|
+
* @generated from field: toshi.workspace.v1.MailDomainCheck ownership = 2;
|
|
380
|
+
*/
|
|
381
|
+
ownership?: MailDomainCheckJson;
|
|
382
|
+
/**
|
|
383
|
+
* @generated from field: toshi.workspace.v1.MailDomainCheck mx = 3;
|
|
384
|
+
*/
|
|
385
|
+
mx?: MailDomainCheckJson;
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: toshi.workspace.v1.MailDomainCheck provider = 4;
|
|
388
|
+
*/
|
|
389
|
+
provider?: MailDomainCheckJson;
|
|
390
|
+
/**
|
|
391
|
+
* The ownership TXT, inbound MX and provider records, in that order.
|
|
392
|
+
*
|
|
393
|
+
* @generated from field: repeated toshi.workspace.v1.DomainRecord records = 5;
|
|
394
|
+
*/
|
|
395
|
+
records?: DomainRecordJson[];
|
|
396
|
+
/**
|
|
397
|
+
* Why the domain is not ready, or why the last lookup failed.
|
|
398
|
+
*
|
|
399
|
+
* @generated from field: string reason = 6;
|
|
400
|
+
*/
|
|
401
|
+
reason?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Unset until the first check.
|
|
404
|
+
*
|
|
405
|
+
* @generated from field: google.protobuf.Timestamp checked_at = 7;
|
|
406
|
+
*/
|
|
407
|
+
checkedAt?: TimestampJson;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* Describes the message toshi.workspace.v1.MailDomainStatus.
|
|
411
|
+
* Use `create(MailDomainStatusSchema)` to create a new message.
|
|
412
|
+
*/
|
|
413
|
+
export declare const MailDomainStatusSchema: GenMessage<MailDomainStatus, {
|
|
414
|
+
jsonType: MailDomainStatusJson;
|
|
415
|
+
}>;
|
|
298
416
|
/**
|
|
299
417
|
* ConnectionTarget is the URL a WEBHOOK connection's deliveries are posted
|
|
300
418
|
* to: each delivery's event, as the event log would hold it, signed as
|
|
@@ -531,7 +649,7 @@ export type CreateConnectionRequest = Message<"toshi.workspace.v1.CreateConnecti
|
|
|
531
649
|
requestKey: string;
|
|
532
650
|
/**
|
|
533
651
|
* The mail address and where its mail goes, for a MAIL connection; unset
|
|
534
|
-
* for WEBHOOK. service and
|
|
652
|
+
* for WEBHOOK. service and endpoint are required; address and provider are
|
|
535
653
|
* output only, and ignored on input.
|
|
536
654
|
*
|
|
537
655
|
* @generated from field: toshi.workspace.v1.MailConnection mail = 6;
|
|
@@ -573,7 +691,7 @@ export type CreateConnectionRequestJson = {
|
|
|
573
691
|
requestKey?: string;
|
|
574
692
|
/**
|
|
575
693
|
* The mail address and where its mail goes, for a MAIL connection; unset
|
|
576
|
-
* for WEBHOOK. service and
|
|
694
|
+
* for WEBHOOK. service and endpoint are required; address and provider are
|
|
577
695
|
* output only, and ignored on input.
|
|
578
696
|
*
|
|
579
697
|
* @generated from field: toshi.workspace.v1.MailConnection mail = 6;
|
|
@@ -1389,7 +1507,7 @@ export declare enum ConnectionKind {
|
|
|
1389
1507
|
/**
|
|
1390
1508
|
* An inbound mail address. The deployment's mail provider receives the
|
|
1391
1509
|
* messages; each is stored as a receipt before it goes to a service's
|
|
1392
|
-
* event
|
|
1510
|
+
* event endpoint.
|
|
1393
1511
|
*
|
|
1394
1512
|
* @generated from enum value: CONNECTION_KIND_MAIL = 3;
|
|
1395
1513
|
*/
|
|
@@ -1405,6 +1523,82 @@ export type ConnectionKindJson = "CONNECTION_KIND_UNSPECIFIED" | "CONNECTION_KIN
|
|
|
1405
1523
|
* Describes the enum toshi.workspace.v1.ConnectionKind.
|
|
1406
1524
|
*/
|
|
1407
1525
|
export declare const ConnectionKindSchema: GenEnum<ConnectionKind, ConnectionKindJson>;
|
|
1526
|
+
/**
|
|
1527
|
+
* MailDomainState is whether a connection's custom mail domain receives mail.
|
|
1528
|
+
*
|
|
1529
|
+
* @generated from enum toshi.workspace.v1.MailDomainState
|
|
1530
|
+
*/
|
|
1531
|
+
export declare enum MailDomainState {
|
|
1532
|
+
/**
|
|
1533
|
+
* No custom domain is set.
|
|
1534
|
+
*
|
|
1535
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_UNSPECIFIED = 0;
|
|
1536
|
+
*/
|
|
1537
|
+
UNSPECIFIED = 0,
|
|
1538
|
+
/**
|
|
1539
|
+
* The domain has not yet passed all checks, or another workspace holds it.
|
|
1540
|
+
*
|
|
1541
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_PENDING = 1;
|
|
1542
|
+
*/
|
|
1543
|
+
PENDING = 1,
|
|
1544
|
+
/**
|
|
1545
|
+
* The ownership, MX and provider checks all pass.
|
|
1546
|
+
*
|
|
1547
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_READY = 2;
|
|
1548
|
+
*/
|
|
1549
|
+
READY = 2,
|
|
1550
|
+
/**
|
|
1551
|
+
* A previously ready domain no longer passes all checks.
|
|
1552
|
+
*
|
|
1553
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_FAILING = 3;
|
|
1554
|
+
*/
|
|
1555
|
+
FAILING = 3
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* MailDomainState is whether a connection's custom mail domain receives mail.
|
|
1559
|
+
*
|
|
1560
|
+
* @generated from enum toshi.workspace.v1.MailDomainState
|
|
1561
|
+
*/
|
|
1562
|
+
export type MailDomainStateJson = "MAIL_DOMAIN_STATE_UNSPECIFIED" | "MAIL_DOMAIN_STATE_PENDING" | "MAIL_DOMAIN_STATE_READY" | "MAIL_DOMAIN_STATE_FAILING";
|
|
1563
|
+
/**
|
|
1564
|
+
* Describes the enum toshi.workspace.v1.MailDomainState.
|
|
1565
|
+
*/
|
|
1566
|
+
export declare const MailDomainStateSchema: GenEnum<MailDomainState, MailDomainStateJson>;
|
|
1567
|
+
/**
|
|
1568
|
+
* MailDomainCheck is the result of one custom mail domain check.
|
|
1569
|
+
*
|
|
1570
|
+
* @generated from enum toshi.workspace.v1.MailDomainCheck
|
|
1571
|
+
*/
|
|
1572
|
+
export declare enum MailDomainCheck {
|
|
1573
|
+
/**
|
|
1574
|
+
* The check has not run yet.
|
|
1575
|
+
*
|
|
1576
|
+
* @generated from enum value: MAIL_DOMAIN_CHECK_UNSPECIFIED = 0;
|
|
1577
|
+
*/
|
|
1578
|
+
UNSPECIFIED = 0,
|
|
1579
|
+
/**
|
|
1580
|
+
* The check passed.
|
|
1581
|
+
*
|
|
1582
|
+
* @generated from enum value: MAIL_DOMAIN_CHECK_PASSED = 1;
|
|
1583
|
+
*/
|
|
1584
|
+
PASSED = 1,
|
|
1585
|
+
/**
|
|
1586
|
+
* The check failed.
|
|
1587
|
+
*
|
|
1588
|
+
* @generated from enum value: MAIL_DOMAIN_CHECK_FAILED = 2;
|
|
1589
|
+
*/
|
|
1590
|
+
FAILED = 2
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* MailDomainCheck is the result of one custom mail domain check.
|
|
1594
|
+
*
|
|
1595
|
+
* @generated from enum toshi.workspace.v1.MailDomainCheck
|
|
1596
|
+
*/
|
|
1597
|
+
export type MailDomainCheckJson = "MAIL_DOMAIN_CHECK_UNSPECIFIED" | "MAIL_DOMAIN_CHECK_PASSED" | "MAIL_DOMAIN_CHECK_FAILED";
|
|
1598
|
+
/**
|
|
1599
|
+
* Describes the enum toshi.workspace.v1.MailDomainCheck.
|
|
1600
|
+
*/
|
|
1601
|
+
export declare const MailDomainCheckSchema: GenEnum<MailDomainCheck, MailDomainCheckJson>;
|
|
1408
1602
|
/**
|
|
1409
1603
|
* ConnectionDeliveryState is where a WEBHOOK connection's delivery stands.
|
|
1410
1604
|
*
|
|
@@ -1460,7 +1654,7 @@ export declare const ConnectionDeliveryStateSchema: GenEnum<ConnectionDeliverySt
|
|
|
1460
1654
|
* Webhooks does, with a secret the connection keeps. A MAIL connection
|
|
1461
1655
|
* receives mail at an address the deployment's inbound mail provider
|
|
1462
1656
|
* serves; each message is stored as a receipt before it goes to a
|
|
1463
|
-
* service's event
|
|
1657
|
+
* service's event endpoint.
|
|
1464
1658
|
*
|
|
1465
1659
|
* The caller's credential names the workspace, as for WorkloadService.
|
|
1466
1660
|
* CreateConnection and RotateConnectionSecret require a request_key, which
|
|
@@ -1501,7 +1695,7 @@ export declare const ConnectionService: GenService<{
|
|
|
1501
1695
|
* connection's events belong to a project's environment, and the call
|
|
1502
1696
|
* returns it with its signing secret. A MAIL connection receives mail at
|
|
1503
1697
|
* an address the deployment's inbound mail provider serves and sends each
|
|
1504
|
-
* message to a service's event
|
|
1698
|
+
* message to a service's event endpoint; it has no secret. A kind other
|
|
1505
1699
|
* than WEBHOOK or MAIL fails with INVALID_ARGUMENT, as does a missing
|
|
1506
1700
|
* required field, a name a live connection of the workspace has with
|
|
1507
1701
|
* ALREADY_EXISTS, and an environment the project does not have with
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
6
|
import { file_toshi_permission } from "../../permission_pb.js";
|
|
7
|
+
import { file_toshi_workspace_v1_domains } from "./domains_pb.js";
|
|
7
8
|
/**
|
|
8
9
|
* Describes the file toshi/workspace/v1/connections.proto.
|
|
9
10
|
*/
|
|
10
|
-
export const file_toshi_workspace_v1_connections = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_toshi_workspace_v1_connections = /*@__PURE__*/ fileDesc("CiR0b3NoaS93b3Jrc3BhY2UvdjEvY29ubmVjdGlvbnMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSL7AwoKQ29ubmVjdGlvbhIKCgJpZBgBIAEoCRIwCgRraW5kGAIgASgOMiIudG9zaGkud29ya3NwYWNlLnYxLkNvbm5lY3Rpb25LaW5kEgwKBG5hbWUYAyABKAkSDwoHcHJvamVjdBgEIAEoCRITCgtlbnZpcm9ubWVudBgFIAEoCRIXCg9pbnN0YWxsYXRpb25faWQYBiABKAMSLgoKY3JlYXRlZF9hdBgHIAEoC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lbGl2ZXJ5LmNvbm5lY3Rpb25faWRCIlogZ28udG9zaGljbG91ZC5pby9hcGkvd29ya3NwYWNldjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_toshi_permission, file_toshi_workspace_v1_domains]);
|
|
11
12
|
/**
|
|
12
13
|
* Describes the message toshi.workspace.v1.Connection.
|
|
13
14
|
* Use `create(ConnectionSchema)` to create a new message.
|
|
@@ -18,111 +19,116 @@ export const ConnectionSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v
|
|
|
18
19
|
* Use `create(MailConnectionSchema)` to create a new message.
|
|
19
20
|
*/
|
|
20
21
|
export const MailConnectionSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message toshi.workspace.v1.MailDomainStatus.
|
|
24
|
+
* Use `create(MailDomainStatusSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const MailDomainStatusSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 2);
|
|
21
27
|
/**
|
|
22
28
|
* Describes the message toshi.workspace.v1.ConnectionTarget.
|
|
23
29
|
* Use `create(ConnectionTargetSchema)` to create a new message.
|
|
24
30
|
*/
|
|
25
|
-
export const ConnectionTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
31
|
+
export const ConnectionTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 3);
|
|
26
32
|
/**
|
|
27
33
|
* Describes the message toshi.workspace.v1.ListConnectionsRequest.
|
|
28
34
|
* Use `create(ListConnectionsRequestSchema)` to create a new message.
|
|
29
35
|
*/
|
|
30
|
-
export const ListConnectionsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
36
|
+
export const ListConnectionsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 4);
|
|
31
37
|
/**
|
|
32
38
|
* Describes the message toshi.workspace.v1.ListConnectionsResponse.
|
|
33
39
|
* Use `create(ListConnectionsResponseSchema)` to create a new message.
|
|
34
40
|
*/
|
|
35
|
-
export const ListConnectionsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
41
|
+
export const ListConnectionsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 5);
|
|
36
42
|
/**
|
|
37
43
|
* Describes the message toshi.workspace.v1.GetConnectionRequest.
|
|
38
44
|
* Use `create(GetConnectionRequestSchema)` to create a new message.
|
|
39
45
|
*/
|
|
40
|
-
export const GetConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
46
|
+
export const GetConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 6);
|
|
41
47
|
/**
|
|
42
48
|
* Describes the message toshi.workspace.v1.GetConnectionResponse.
|
|
43
49
|
* Use `create(GetConnectionResponseSchema)` to create a new message.
|
|
44
50
|
*/
|
|
45
|
-
export const GetConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
51
|
+
export const GetConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 7);
|
|
46
52
|
/**
|
|
47
53
|
* Describes the message toshi.workspace.v1.CreateConnectionRequest.
|
|
48
54
|
* Use `create(CreateConnectionRequestSchema)` to create a new message.
|
|
49
55
|
*/
|
|
50
|
-
export const CreateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
56
|
+
export const CreateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 8);
|
|
51
57
|
/**
|
|
52
58
|
* Describes the message toshi.workspace.v1.CreateConnectionResponse.
|
|
53
59
|
* Use `create(CreateConnectionResponseSchema)` to create a new message.
|
|
54
60
|
*/
|
|
55
|
-
export const CreateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
61
|
+
export const CreateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 9);
|
|
56
62
|
/**
|
|
57
63
|
* Describes the message toshi.workspace.v1.DeleteConnectionRequest.
|
|
58
64
|
* Use `create(DeleteConnectionRequestSchema)` to create a new message.
|
|
59
65
|
*/
|
|
60
|
-
export const DeleteConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
66
|
+
export const DeleteConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 10);
|
|
61
67
|
/**
|
|
62
68
|
* Describes the message toshi.workspace.v1.DeleteConnectionResponse.
|
|
63
69
|
* Use `create(DeleteConnectionResponseSchema)` to create a new message.
|
|
64
70
|
*/
|
|
65
|
-
export const DeleteConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
71
|
+
export const DeleteConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 11);
|
|
66
72
|
/**
|
|
67
73
|
* Describes the message toshi.workspace.v1.RotateConnectionSecretRequest.
|
|
68
74
|
* Use `create(RotateConnectionSecretRequestSchema)` to create a new message.
|
|
69
75
|
*/
|
|
70
|
-
export const RotateConnectionSecretRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
76
|
+
export const RotateConnectionSecretRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 12);
|
|
71
77
|
/**
|
|
72
78
|
* Describes the message toshi.workspace.v1.RotateConnectionSecretResponse.
|
|
73
79
|
* Use `create(RotateConnectionSecretResponseSchema)` to create a new message.
|
|
74
80
|
*/
|
|
75
|
-
export const RotateConnectionSecretResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
81
|
+
export const RotateConnectionSecretResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 13);
|
|
76
82
|
/**
|
|
77
83
|
* Describes the message toshi.workspace.v1.UpdateConnectionRequest.
|
|
78
84
|
* Use `create(UpdateConnectionRequestSchema)` to create a new message.
|
|
79
85
|
*/
|
|
80
|
-
export const UpdateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
86
|
+
export const UpdateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 14);
|
|
81
87
|
/**
|
|
82
88
|
* Describes the message toshi.workspace.v1.UpdateConnectionResponse.
|
|
83
89
|
* Use `create(UpdateConnectionResponseSchema)` to create a new message.
|
|
84
90
|
*/
|
|
85
|
-
export const UpdateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
91
|
+
export const UpdateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 15);
|
|
86
92
|
/**
|
|
87
93
|
* Describes the message toshi.workspace.v1.ConnectionDelivery.
|
|
88
94
|
* Use `create(ConnectionDeliverySchema)` to create a new message.
|
|
89
95
|
*/
|
|
90
|
-
export const ConnectionDeliverySchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
96
|
+
export const ConnectionDeliverySchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 16);
|
|
91
97
|
/**
|
|
92
98
|
* Describes the message toshi.workspace.v1.ConnectionDeliveryRun.
|
|
93
99
|
* Use `create(ConnectionDeliveryRunSchema)` to create a new message.
|
|
94
100
|
*/
|
|
95
|
-
export const ConnectionDeliveryRunSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
101
|
+
export const ConnectionDeliveryRunSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 17);
|
|
96
102
|
/**
|
|
97
103
|
* Describes the message toshi.workspace.v1.ListConnectionDeliveriesRequest.
|
|
98
104
|
* Use `create(ListConnectionDeliveriesRequestSchema)` to create a new message.
|
|
99
105
|
*/
|
|
100
|
-
export const ListConnectionDeliveriesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
106
|
+
export const ListConnectionDeliveriesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 18);
|
|
101
107
|
/**
|
|
102
108
|
* Describes the message toshi.workspace.v1.ListConnectionDeliveriesResponse.
|
|
103
109
|
* Use `create(ListConnectionDeliveriesResponseSchema)` to create a new message.
|
|
104
110
|
*/
|
|
105
|
-
export const ListConnectionDeliveriesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
111
|
+
export const ListConnectionDeliveriesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 19);
|
|
106
112
|
/**
|
|
107
113
|
* Describes the message toshi.workspace.v1.GetConnectionDeliveryRequest.
|
|
108
114
|
* Use `create(GetConnectionDeliveryRequestSchema)` to create a new message.
|
|
109
115
|
*/
|
|
110
|
-
export const GetConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
116
|
+
export const GetConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 20);
|
|
111
117
|
/**
|
|
112
118
|
* Describes the message toshi.workspace.v1.GetConnectionDeliveryResponse.
|
|
113
119
|
* Use `create(GetConnectionDeliveryResponseSchema)` to create a new message.
|
|
114
120
|
*/
|
|
115
|
-
export const GetConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
121
|
+
export const GetConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 21);
|
|
116
122
|
/**
|
|
117
123
|
* Describes the message toshi.workspace.v1.ReplayConnectionDeliveryRequest.
|
|
118
124
|
* Use `create(ReplayConnectionDeliveryRequestSchema)` to create a new message.
|
|
119
125
|
*/
|
|
120
|
-
export const ReplayConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
126
|
+
export const ReplayConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 22);
|
|
121
127
|
/**
|
|
122
128
|
* Describes the message toshi.workspace.v1.ReplayConnectionDeliveryResponse.
|
|
123
129
|
* Use `create(ReplayConnectionDeliveryResponseSchema)` to create a new message.
|
|
124
130
|
*/
|
|
125
|
-
export const ReplayConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections,
|
|
131
|
+
export const ReplayConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 23);
|
|
126
132
|
/**
|
|
127
133
|
* ConnectionKind is the kind of source a connection receives events from.
|
|
128
134
|
*
|
|
@@ -149,7 +155,7 @@ export var ConnectionKind;
|
|
|
149
155
|
/**
|
|
150
156
|
* An inbound mail address. The deployment's mail provider receives the
|
|
151
157
|
* messages; each is stored as a receipt before it goes to a service's
|
|
152
|
-
* event
|
|
158
|
+
* event endpoint.
|
|
153
159
|
*
|
|
154
160
|
* @generated from enum value: CONNECTION_KIND_MAIL = 3;
|
|
155
161
|
*/
|
|
@@ -159,6 +165,72 @@ export var ConnectionKind;
|
|
|
159
165
|
* Describes the enum toshi.workspace.v1.ConnectionKind.
|
|
160
166
|
*/
|
|
161
167
|
export const ConnectionKindSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 0);
|
|
168
|
+
/**
|
|
169
|
+
* MailDomainState is whether a connection's custom mail domain receives mail.
|
|
170
|
+
*
|
|
171
|
+
* @generated from enum toshi.workspace.v1.MailDomainState
|
|
172
|
+
*/
|
|
173
|
+
export var MailDomainState;
|
|
174
|
+
(function (MailDomainState) {
|
|
175
|
+
/**
|
|
176
|
+
* No custom domain is set.
|
|
177
|
+
*
|
|
178
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_UNSPECIFIED = 0;
|
|
179
|
+
*/
|
|
180
|
+
MailDomainState[MailDomainState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
181
|
+
/**
|
|
182
|
+
* The domain has not yet passed all checks, or another workspace holds it.
|
|
183
|
+
*
|
|
184
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_PENDING = 1;
|
|
185
|
+
*/
|
|
186
|
+
MailDomainState[MailDomainState["PENDING"] = 1] = "PENDING";
|
|
187
|
+
/**
|
|
188
|
+
* The ownership, MX and provider checks all pass.
|
|
189
|
+
*
|
|
190
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_READY = 2;
|
|
191
|
+
*/
|
|
192
|
+
MailDomainState[MailDomainState["READY"] = 2] = "READY";
|
|
193
|
+
/**
|
|
194
|
+
* A previously ready domain no longer passes all checks.
|
|
195
|
+
*
|
|
196
|
+
* @generated from enum value: MAIL_DOMAIN_STATE_FAILING = 3;
|
|
197
|
+
*/
|
|
198
|
+
MailDomainState[MailDomainState["FAILING"] = 3] = "FAILING";
|
|
199
|
+
})(MailDomainState || (MailDomainState = {}));
|
|
200
|
+
/**
|
|
201
|
+
* Describes the enum toshi.workspace.v1.MailDomainState.
|
|
202
|
+
*/
|
|
203
|
+
export const MailDomainStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 1);
|
|
204
|
+
/**
|
|
205
|
+
* MailDomainCheck is the result of one custom mail domain check.
|
|
206
|
+
*
|
|
207
|
+
* @generated from enum toshi.workspace.v1.MailDomainCheck
|
|
208
|
+
*/
|
|
209
|
+
export var MailDomainCheck;
|
|
210
|
+
(function (MailDomainCheck) {
|
|
211
|
+
/**
|
|
212
|
+
* The check has not run yet.
|
|
213
|
+
*
|
|
214
|
+
* @generated from enum value: MAIL_DOMAIN_CHECK_UNSPECIFIED = 0;
|
|
215
|
+
*/
|
|
216
|
+
MailDomainCheck[MailDomainCheck["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
217
|
+
/**
|
|
218
|
+
* The check passed.
|
|
219
|
+
*
|
|
220
|
+
* @generated from enum value: MAIL_DOMAIN_CHECK_PASSED = 1;
|
|
221
|
+
*/
|
|
222
|
+
MailDomainCheck[MailDomainCheck["PASSED"] = 1] = "PASSED";
|
|
223
|
+
/**
|
|
224
|
+
* The check failed.
|
|
225
|
+
*
|
|
226
|
+
* @generated from enum value: MAIL_DOMAIN_CHECK_FAILED = 2;
|
|
227
|
+
*/
|
|
228
|
+
MailDomainCheck[MailDomainCheck["FAILED"] = 2] = "FAILED";
|
|
229
|
+
})(MailDomainCheck || (MailDomainCheck = {}));
|
|
230
|
+
/**
|
|
231
|
+
* Describes the enum toshi.workspace.v1.MailDomainCheck.
|
|
232
|
+
*/
|
|
233
|
+
export const MailDomainCheckSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 2);
|
|
162
234
|
/**
|
|
163
235
|
* ConnectionDeliveryState is where a WEBHOOK connection's delivery stands.
|
|
164
236
|
*
|
|
@@ -199,7 +271,7 @@ export var ConnectionDeliveryState;
|
|
|
199
271
|
/**
|
|
200
272
|
* Describes the enum toshi.workspace.v1.ConnectionDeliveryState.
|
|
201
273
|
*/
|
|
202
|
-
export const ConnectionDeliveryStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections,
|
|
274
|
+
export const ConnectionDeliveryStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 3);
|
|
203
275
|
/**
|
|
204
276
|
* ConnectionService keeps a workspace's connections: the sources of the
|
|
205
277
|
* events it owns. A GitHub App installation is a connection of the kind
|
|
@@ -209,7 +281,7 @@ export const ConnectionDeliveryStateSchema = /*@__PURE__*/ enumDesc(file_toshi_w
|
|
|
209
281
|
* Webhooks does, with a secret the connection keeps. A MAIL connection
|
|
210
282
|
* receives mail at an address the deployment's inbound mail provider
|
|
211
283
|
* serves; each message is stored as a receipt before it goes to a
|
|
212
|
-
* service's event
|
|
284
|
+
* service's event endpoint.
|
|
213
285
|
*
|
|
214
286
|
* The caller's credential names the workspace, as for WorkloadService.
|
|
215
287
|
* CreateConnection and RotateConnectionSecret require a request_key, which
|