@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.
Files changed (44) hide show
  1. package/README.md +39 -510
  2. package/dist/client.d.ts +6 -4
  3. package/dist/client.js +4 -2
  4. package/dist/gen/toshi/permission_pb.d.ts +12 -0
  5. package/dist/gen/toshi/permission_pb.js +14 -2
  6. package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +213 -19
  7. package/dist/gen/toshi/workspace/v1/connections_pb.js +97 -25
  8. package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +26 -26
  9. package/dist/gen/toshi/workspace/v1/domains_pb.js +4 -4
  10. package/dist/gen/toshi/workspace/v1/{channels_pb.d.ts → endpoints_pb.d.ts} +945 -822
  11. package/dist/gen/toshi/workspace/v1/endpoints_pb.js +488 -0
  12. package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +10 -10
  13. package/dist/gen/toshi/workspace/v1/grants_pb.js +3 -3
  14. package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +46 -22
  15. package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
  16. package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +110 -36
  17. package/dist/gen/toshi/workspace/v1/hosts_pb.js +1 -1
  18. package/dist/gen/toshi/workspace/v1/model_credentials_pb.d.ts +654 -0
  19. package/dist/gen/toshi/workspace/v1/model_credentials_pb.js +110 -0
  20. package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +21 -2
  21. package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
  22. package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1 -1
  23. package/dist/gen/toshi/workspace/v1/roles_pb.js +1 -1
  24. package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +19 -2
  25. package/dist/gen/toshi/workspace/v1/secrets_pb.js +1 -1
  26. package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +28 -28
  27. package/dist/gen/toshi/workspace/v1/triggers_pb.js +6 -6
  28. package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +202 -202
  29. package/dist/gen/toshi/workspace/v1/webhook_pb.js +46 -46
  30. package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +552 -29
  31. package/dist/gen/toshi/workspace/v1/workloads_pb.js +85 -55
  32. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +639 -119
  33. package/dist/gen/toshi/workspace/v1/workspace_pb.js +174 -88
  34. package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +101 -4
  35. package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +20 -15
  36. package/dist/index.d.ts +2 -1
  37. package/dist/index.js +2 -1
  38. package/dist/retry.js +33 -22
  39. package/dist/test/alarms.js +1 -1
  40. package/dist/test/procedures.js +35 -25
  41. package/dist/version.d.ts +1 -1
  42. package/dist/version.js +1 -1
  43. package/package.json +1 -1
  44. package/dist/gen/toshi/workspace/v1/channels_pb.js +0 -483
@@ -2,13 +2,13 @@ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobu
2
2
  import type { Duration, DurationJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
- * Describes the file toshi/workspace/v1/channels.proto.
5
+ * Describes the file toshi/workspace/v1/endpoints.proto.
6
6
  */
7
- export declare const file_toshi_workspace_v1_channels: GenFile;
7
+ export declare const file_toshi_workspace_v1_endpoints: GenFile;
8
8
  /**
9
- * @generated from message toshi.workspace.v1.Channel
9
+ * @generated from message toshi.workspace.v1.Endpoint
10
10
  */
11
- export type Channel = Message<"toshi.workspace.v1.Channel"> & {
11
+ export type Endpoint = Message<"toshi.workspace.v1.Endpoint"> & {
12
12
  /**
13
13
  * Assigned by the server.
14
14
  *
@@ -16,7 +16,7 @@ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
16
16
  */
17
17
  id: string;
18
18
  /**
19
- * The job whose guest holds the channel; an event channel's is its
19
+ * The job whose guest holds the endpoint; an event endpoint's is its
20
20
  * service's live run, empty while the service has none.
21
21
  *
22
22
  * @generated from field: string job_id = 2;
@@ -27,27 +27,27 @@ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
27
27
  */
28
28
  name: string;
29
29
  /**
30
- * @generated from field: toshi.workspace.v1.ChannelShape shape = 4;
30
+ * @generated from field: toshi.workspace.v1.EndpointShape shape = 4;
31
31
  */
32
- shape: ChannelShape;
32
+ shape: EndpointShape;
33
33
  /**
34
- * An http or event channel's port in the guest.
34
+ * An http or event endpoint's port in the guest.
35
35
  *
36
36
  * @generated from field: int32 port = 5;
37
37
  */
38
38
  port: number;
39
39
  /**
40
- * A stream channel's command.
40
+ * A stream endpoint's command.
41
41
  *
42
42
  * @generated from field: repeated string command = 6;
43
43
  */
44
44
  command: string[];
45
45
  /**
46
- * @generated from field: toshi.workspace.v1.ChannelState state = 7;
46
+ * @generated from field: toshi.workspace.v1.EndpointState state = 7;
47
47
  */
48
- state: ChannelState;
48
+ state: EndpointState;
49
49
  /**
50
- * Who created the channel, as the audit log names an actor.
50
+ * Who created the endpoint, as the audit log names an actor.
51
51
  *
52
52
  * @generated from field: string created_by = 8;
53
53
  */
@@ -57,7 +57,7 @@ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
57
57
  */
58
58
  createdAt?: Timestamp | undefined;
59
59
  /**
60
- * Unset while the channel lasts.
60
+ * Unset while the endpoint lasts.
61
61
  *
62
62
  * @generated from field: google.protobuf.Timestamp ended_at = 10;
63
63
  */
@@ -67,13 +67,13 @@ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
67
67
  */
68
68
  endReason: string;
69
69
  /**
70
- * A stream channel's process's exit code, once it has exited.
70
+ * A stream endpoint's process's exit code, once it has exited.
71
71
  *
72
72
  * @generated from field: optional int32 exit_code = 12;
73
73
  */
74
74
  exitCode?: number | undefined;
75
75
  /**
76
- * The process of the control plane holding the channel, while it does.
76
+ * The process of the control plane holding the endpoint, while it does.
77
77
  *
78
78
  * @generated from field: string owner = 13;
79
79
  */
@@ -96,7 +96,7 @@ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
96
96
  */
97
97
  inputClosed: boolean;
98
98
  /**
99
- * The sequence numbers that bound an http channel's request records
99
+ * The sequence numbers that bound an http endpoint's request records
100
100
  * kept; both zero when none is.
101
101
  *
102
102
  * @generated from field: int64 requests_oldest = 17;
@@ -109,57 +109,72 @@ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
109
109
  /**
110
110
  * The effective policy, with its version.
111
111
  *
112
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 19;
112
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 19;
113
113
  */
114
- policy?: ChannelPolicy | undefined;
114
+ policy?: EndpointPolicy | undefined;
115
115
  /**
116
- * A stream channel's clients, attached now or before; an http channel
116
+ * A stream endpoint's clients, attached now or before; an http endpoint
117
117
  * keeps none.
118
118
  *
119
- * @generated from field: repeated toshi.workspace.v1.ChannelClient clients = 20;
119
+ * @generated from field: repeated toshi.workspace.v1.EndpointClient clients = 20;
120
120
  */
121
- clients: ChannelClient[];
121
+ clients: EndpointClient[];
122
122
  /**
123
- * An event channel's service, by its ID.
123
+ * An event endpoint's service, by its ID.
124
124
  *
125
125
  * @generated from field: string service = 21;
126
126
  */
127
127
  service: string;
128
128
  /**
129
- * Where an event channel posts in the guest.
129
+ * Where an event endpoint posts in the guest.
130
130
  *
131
131
  * @generated from field: string path = 22;
132
132
  */
133
133
  path: string;
134
134
  /**
135
- * An event channel's messages counted by state.
135
+ * An event endpoint's messages counted by state.
136
136
  *
137
- * @generated from field: toshi.workspace.v1.ChannelEventCounts events = 23;
137
+ * @generated from field: toshi.workspace.v1.EndpointEventCounts events = 23;
138
138
  */
139
- events?: ChannelEventCounts | undefined;
139
+ events?: EndpointEventCounts | undefined;
140
140
  /**
141
- * The grant through which another workspace exposed the channel, or
141
+ * The grant through which another workspace exposed the endpoint, or
142
142
  * empty for one the job's own workspace exposed.
143
143
  *
144
144
  * @generated from field: string grant_id = 24;
145
145
  */
146
146
  grantId: string;
147
147
  /**
148
- * The policy version the channel's process of the control plane applies.
149
- * A stream channel's owner records it as it applies each version, so a
148
+ * The policy version the endpoint's process of the control plane applies.
149
+ * A stream endpoint's owner records it as it applies each version, so a
150
150
  * value below policy.version is a change its attached clients are not
151
- * yet held to; 0 until an owner applied one. An http channel's process
151
+ * yet held to; 0 until an owner applied one. An http endpoint's process
152
152
  * reads the policy at each request: its value is policy.version. An
153
- * event channel's is 0.
153
+ * event endpoint's is 0.
154
154
  *
155
155
  * @generated from field: int64 applied_policy_version = 25;
156
156
  */
157
157
  appliedPolicyVersion: bigint;
158
+ /**
159
+ * The protocol the endpoint's process speaks, from the service recipe:
160
+ * "acp", "stream-json" or empty for bytes the relay does not read.
161
+ * Read-only.
162
+ *
163
+ * @generated from field: string framing = 26;
164
+ */
165
+ framing: string;
166
+ /**
167
+ * An ACP endpoint's state, as its owner last recorded it; unset on any
168
+ * other endpoint.
169
+ *
170
+ * @generated from field: toshi.workspace.v1.EndpointACPState acp_state = 27;
171
+ */
172
+ acpState?: EndpointACPState | undefined;
158
173
  };
159
174
  /**
160
- * @generated from message toshi.workspace.v1.Channel
175
+ * @generated from message toshi.workspace.v1.Endpoint
161
176
  */
162
- export type ChannelJson = {
177
+ export type EndpointJson = {
163
178
  /**
164
179
  * Assigned by the server.
165
180
  *
@@ -167,7 +182,7 @@ export type ChannelJson = {
167
182
  */
168
183
  id?: string;
169
184
  /**
170
- * The job whose guest holds the channel; an event channel's is its
185
+ * The job whose guest holds the endpoint; an event endpoint's is its
171
186
  * service's live run, empty while the service has none.
172
187
  *
173
188
  * @generated from field: string job_id = 2;
@@ -178,27 +193,27 @@ export type ChannelJson = {
178
193
  */
179
194
  name?: string;
180
195
  /**
181
- * @generated from field: toshi.workspace.v1.ChannelShape shape = 4;
196
+ * @generated from field: toshi.workspace.v1.EndpointShape shape = 4;
182
197
  */
183
- shape?: ChannelShapeJson;
198
+ shape?: EndpointShapeJson;
184
199
  /**
185
- * An http or event channel's port in the guest.
200
+ * An http or event endpoint's port in the guest.
186
201
  *
187
202
  * @generated from field: int32 port = 5;
188
203
  */
189
204
  port?: number;
190
205
  /**
191
- * A stream channel's command.
206
+ * A stream endpoint's command.
192
207
  *
193
208
  * @generated from field: repeated string command = 6;
194
209
  */
195
210
  command?: string[];
196
211
  /**
197
- * @generated from field: toshi.workspace.v1.ChannelState state = 7;
212
+ * @generated from field: toshi.workspace.v1.EndpointState state = 7;
198
213
  */
199
- state?: ChannelStateJson;
214
+ state?: EndpointStateJson;
200
215
  /**
201
- * Who created the channel, as the audit log names an actor.
216
+ * Who created the endpoint, as the audit log names an actor.
202
217
  *
203
218
  * @generated from field: string created_by = 8;
204
219
  */
@@ -208,7 +223,7 @@ export type ChannelJson = {
208
223
  */
209
224
  createdAt?: TimestampJson;
210
225
  /**
211
- * Unset while the channel lasts.
226
+ * Unset while the endpoint lasts.
212
227
  *
213
228
  * @generated from field: google.protobuf.Timestamp ended_at = 10;
214
229
  */
@@ -218,13 +233,13 @@ export type ChannelJson = {
218
233
  */
219
234
  endReason?: string;
220
235
  /**
221
- * A stream channel's process's exit code, once it has exited.
236
+ * A stream endpoint's process's exit code, once it has exited.
222
237
  *
223
238
  * @generated from field: optional int32 exit_code = 12;
224
239
  */
225
240
  exitCode?: number;
226
241
  /**
227
- * The process of the control plane holding the channel, while it does.
242
+ * The process of the control plane holding the endpoint, while it does.
228
243
  *
229
244
  * @generated from field: string owner = 13;
230
245
  */
@@ -247,7 +262,7 @@ export type ChannelJson = {
247
262
  */
248
263
  inputClosed?: boolean;
249
264
  /**
250
- * The sequence numbers that bound an http channel's request records
265
+ * The sequence numbers that bound an http endpoint's request records
251
266
  * kept; both zero when none is.
252
267
  *
253
268
  * @generated from field: int64 requests_oldest = 17;
@@ -260,66 +275,158 @@ export type ChannelJson = {
260
275
  /**
261
276
  * The effective policy, with its version.
262
277
  *
263
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 19;
278
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 19;
264
279
  */
265
- policy?: ChannelPolicyJson;
280
+ policy?: EndpointPolicyJson;
266
281
  /**
267
- * A stream channel's clients, attached now or before; an http channel
282
+ * A stream endpoint's clients, attached now or before; an http endpoint
268
283
  * keeps none.
269
284
  *
270
- * @generated from field: repeated toshi.workspace.v1.ChannelClient clients = 20;
285
+ * @generated from field: repeated toshi.workspace.v1.EndpointClient clients = 20;
271
286
  */
272
- clients?: ChannelClientJson[];
287
+ clients?: EndpointClientJson[];
273
288
  /**
274
- * An event channel's service, by its ID.
289
+ * An event endpoint's service, by its ID.
275
290
  *
276
291
  * @generated from field: string service = 21;
277
292
  */
278
293
  service?: string;
279
294
  /**
280
- * Where an event channel posts in the guest.
295
+ * Where an event endpoint posts in the guest.
281
296
  *
282
297
  * @generated from field: string path = 22;
283
298
  */
284
299
  path?: string;
285
300
  /**
286
- * An event channel's messages counted by state.
301
+ * An event endpoint's messages counted by state.
287
302
  *
288
- * @generated from field: toshi.workspace.v1.ChannelEventCounts events = 23;
303
+ * @generated from field: toshi.workspace.v1.EndpointEventCounts events = 23;
289
304
  */
290
- events?: ChannelEventCountsJson;
305
+ events?: EndpointEventCountsJson;
291
306
  /**
292
- * The grant through which another workspace exposed the channel, or
307
+ * The grant through which another workspace exposed the endpoint, or
293
308
  * empty for one the job's own workspace exposed.
294
309
  *
295
310
  * @generated from field: string grant_id = 24;
296
311
  */
297
312
  grantId?: string;
298
313
  /**
299
- * The policy version the channel's process of the control plane applies.
300
- * A stream channel's owner records it as it applies each version, so a
314
+ * The policy version the endpoint's process of the control plane applies.
315
+ * A stream endpoint's owner records it as it applies each version, so a
301
316
  * value below policy.version is a change its attached clients are not
302
- * yet held to; 0 until an owner applied one. An http channel's process
317
+ * yet held to; 0 until an owner applied one. An http endpoint's process
303
318
  * reads the policy at each request: its value is policy.version. An
304
- * event channel's is 0.
319
+ * event endpoint's is 0.
305
320
  *
306
321
  * @generated from field: int64 applied_policy_version = 25;
307
322
  */
308
323
  appliedPolicyVersion?: string;
324
+ /**
325
+ * The protocol the endpoint's process speaks, from the service recipe:
326
+ * "acp", "stream-json" or empty for bytes the relay does not read.
327
+ * Read-only.
328
+ *
329
+ * @generated from field: string framing = 26;
330
+ */
331
+ framing?: string;
332
+ /**
333
+ * An ACP endpoint's state, as its owner last recorded it; unset on any
334
+ * other endpoint.
335
+ *
336
+ * @generated from field: toshi.workspace.v1.EndpointACPState acp_state = 27;
337
+ */
338
+ acpState?: EndpointACPStateJson;
339
+ };
340
+ /**
341
+ * Describes the message toshi.workspace.v1.Endpoint.
342
+ * Use `create(EndpointSchema)` to create a new message.
343
+ */
344
+ export declare const EndpointSchema: GenMessage<Endpoint, {
345
+ jsonType: EndpointJson;
346
+ }>;
347
+ /**
348
+ * EndpointACPState is what an ACP endpoint's process is doing, as the
349
+ * control plane owning the endpoint last read it from the frames that pass.
350
+ *
351
+ * @generated from message toshi.workspace.v1.EndpointACPState
352
+ */
353
+ export type EndpointACPState = Message<"toshi.workspace.v1.EndpointACPState"> & {
354
+ /**
355
+ * What the process is doing: idle, turn or permission.
356
+ *
357
+ * @generated from field: string state = 1;
358
+ */
359
+ state: string;
360
+ /**
361
+ * The ACP session the state belongs to.
362
+ *
363
+ * @generated from field: string session_id = 2;
364
+ */
365
+ sessionId: string;
366
+ /**
367
+ * When the state began.
368
+ *
369
+ * @generated from field: google.protobuf.Timestamp since = 3;
370
+ */
371
+ since?: Timestamp | undefined;
372
+ /**
373
+ * The frames the relay dropped since the endpoint opened, by reason:
374
+ * unparsable, duplicate_key, too_long or tools.
375
+ *
376
+ * @generated from field: map<string, int64> dropped = 4;
377
+ */
378
+ dropped: {
379
+ [key: string]: bigint;
380
+ };
309
381
  };
310
382
  /**
311
- * Describes the message toshi.workspace.v1.Channel.
312
- * Use `create(ChannelSchema)` to create a new message.
383
+ * EndpointACPState is what an ACP endpoint's process is doing, as the
384
+ * control plane owning the endpoint last read it from the frames that pass.
385
+ *
386
+ * @generated from message toshi.workspace.v1.EndpointACPState
313
387
  */
314
- export declare const ChannelSchema: GenMessage<Channel, {
315
- jsonType: ChannelJson;
388
+ export type EndpointACPStateJson = {
389
+ /**
390
+ * What the process is doing: idle, turn or permission.
391
+ *
392
+ * @generated from field: string state = 1;
393
+ */
394
+ state?: string;
395
+ /**
396
+ * The ACP session the state belongs to.
397
+ *
398
+ * @generated from field: string session_id = 2;
399
+ */
400
+ sessionId?: string;
401
+ /**
402
+ * When the state began.
403
+ *
404
+ * @generated from field: google.protobuf.Timestamp since = 3;
405
+ */
406
+ since?: TimestampJson;
407
+ /**
408
+ * The frames the relay dropped since the endpoint opened, by reason:
409
+ * unparsable, duplicate_key, too_long or tools.
410
+ *
411
+ * @generated from field: map<string, int64> dropped = 4;
412
+ */
413
+ dropped?: {
414
+ [key: string]: string;
415
+ };
416
+ };
417
+ /**
418
+ * Describes the message toshi.workspace.v1.EndpointACPState.
419
+ * Use `create(EndpointACPStateSchema)` to create a new message.
420
+ */
421
+ export declare const EndpointACPStateSchema: GenMessage<EndpointACPState, {
422
+ jsonType: EndpointACPStateJson;
316
423
  }>;
317
424
  /**
318
- * ChannelEventCounts counts an event channel's messages by state.
425
+ * EndpointEventCounts counts an event endpoint's messages by state.
319
426
  *
320
- * @generated from message toshi.workspace.v1.ChannelEventCounts
427
+ * @generated from message toshi.workspace.v1.EndpointEventCounts
321
428
  */
322
- export type ChannelEventCounts = Message<"toshi.workspace.v1.ChannelEventCounts"> & {
429
+ export type EndpointEventCounts = Message<"toshi.workspace.v1.EndpointEventCounts"> & {
323
430
  /**
324
431
  * @generated from field: int64 pending = 1;
325
432
  */
@@ -354,11 +461,11 @@ export type ChannelEventCounts = Message<"toshi.workspace.v1.ChannelEventCounts"
354
461
  lastFailure: string;
355
462
  };
356
463
  /**
357
- * ChannelEventCounts counts an event channel's messages by state.
464
+ * EndpointEventCounts counts an event endpoint's messages by state.
358
465
  *
359
- * @generated from message toshi.workspace.v1.ChannelEventCounts
466
+ * @generated from message toshi.workspace.v1.EndpointEventCounts
360
467
  */
361
- export type ChannelEventCountsJson = {
468
+ export type EndpointEventCountsJson = {
362
469
  /**
363
470
  * @generated from field: int64 pending = 1;
364
471
  */
@@ -393,18 +500,18 @@ export type ChannelEventCountsJson = {
393
500
  lastFailure?: string;
394
501
  };
395
502
  /**
396
- * Describes the message toshi.workspace.v1.ChannelEventCounts.
397
- * Use `create(ChannelEventCountsSchema)` to create a new message.
503
+ * Describes the message toshi.workspace.v1.EndpointEventCounts.
504
+ * Use `create(EndpointEventCountsSchema)` to create a new message.
398
505
  */
399
- export declare const ChannelEventCountsSchema: GenMessage<ChannelEventCounts, {
400
- jsonType: ChannelEventCountsJson;
506
+ export declare const EndpointEventCountsSchema: GenMessage<EndpointEventCounts, {
507
+ jsonType: EndpointEventCountsJson;
401
508
  }>;
402
509
  /**
403
- * ChannelMessageSource is who sent a message; Toshi stamps it.
510
+ * EndpointMessageSource is who sent a message; Toshi stamps it.
404
511
  *
405
- * @generated from message toshi.workspace.v1.ChannelMessageSource
512
+ * @generated from message toshi.workspace.v1.EndpointMessageSource
406
513
  */
407
- export type ChannelMessageSource = Message<"toshi.workspace.v1.ChannelMessageSource"> & {
514
+ export type EndpointMessageSource = Message<"toshi.workspace.v1.EndpointMessageSource"> & {
408
515
  /**
409
516
  * principal (a person or token), workload, trigger, mail or alarm.
410
517
  *
@@ -420,11 +527,11 @@ export type ChannelMessageSource = Message<"toshi.workspace.v1.ChannelMessageSou
420
527
  id: string;
421
528
  };
422
529
  /**
423
- * ChannelMessageSource is who sent a message; Toshi stamps it.
530
+ * EndpointMessageSource is who sent a message; Toshi stamps it.
424
531
  *
425
- * @generated from message toshi.workspace.v1.ChannelMessageSource
532
+ * @generated from message toshi.workspace.v1.EndpointMessageSource
426
533
  */
427
- export type ChannelMessageSourceJson = {
534
+ export type EndpointMessageSourceJson = {
428
535
  /**
429
536
  * principal (a person or token), workload, trigger, mail or alarm.
430
537
  *
@@ -440,18 +547,18 @@ export type ChannelMessageSourceJson = {
440
547
  id?: string;
441
548
  };
442
549
  /**
443
- * Describes the message toshi.workspace.v1.ChannelMessageSource.
444
- * Use `create(ChannelMessageSourceSchema)` to create a new message.
550
+ * Describes the message toshi.workspace.v1.EndpointMessageSource.
551
+ * Use `create(EndpointMessageSourceSchema)` to create a new message.
445
552
  */
446
- export declare const ChannelMessageSourceSchema: GenMessage<ChannelMessageSource, {
447
- jsonType: ChannelMessageSourceJson;
553
+ export declare const EndpointMessageSourceSchema: GenMessage<EndpointMessageSource, {
554
+ jsonType: EndpointMessageSourceJson;
448
555
  }>;
449
556
  /**
450
- * ChannelMessage is one message of an event channel.
557
+ * EndpointMessage is one message of an event endpoint.
451
558
  *
452
- * @generated from message toshi.workspace.v1.ChannelMessage
559
+ * @generated from message toshi.workspace.v1.EndpointMessage
453
560
  */
454
- export type ChannelMessage = Message<"toshi.workspace.v1.ChannelMessage"> & {
561
+ export type EndpointMessage = Message<"toshi.workspace.v1.EndpointMessage"> & {
455
562
  /**
456
563
  * The webhook-id of each of its posts, the same on every attempt and
457
564
  * after a replay.
@@ -460,7 +567,7 @@ export type ChannelMessage = Message<"toshi.workspace.v1.ChannelMessage"> & {
460
567
  */
461
568
  id: string;
462
569
  /**
463
- * Its place in the channel's queue, from 1.
570
+ * Its place in the endpoint's queue, from 1.
464
571
  *
465
572
  * @generated from field: int64 seq = 2;
466
573
  */
@@ -474,9 +581,9 @@ export type ChannelMessage = Message<"toshi.workspace.v1.ChannelMessage"> & {
474
581
  */
475
582
  time?: Timestamp | undefined;
476
583
  /**
477
- * @generated from field: toshi.workspace.v1.ChannelMessageSource source = 5;
584
+ * @generated from field: toshi.workspace.v1.EndpointMessageSource source = 5;
478
585
  */
479
- source?: ChannelMessageSource | undefined;
586
+ source?: EndpointMessageSource | undefined;
480
587
  /**
481
588
  * The message's JSON.
482
589
  *
@@ -484,9 +591,9 @@ export type ChannelMessage = Message<"toshi.workspace.v1.ChannelMessage"> & {
484
591
  */
485
592
  data: Uint8Array;
486
593
  /**
487
- * @generated from field: toshi.workspace.v1.ChannelMessageState state = 7;
594
+ * @generated from field: toshi.workspace.v1.EndpointMessageState state = 7;
488
595
  */
489
- state: ChannelMessageState;
596
+ state: EndpointMessageState;
490
597
  /**
491
598
  * @generated from field: int32 attempts = 8;
492
599
  */
@@ -522,11 +629,11 @@ export type ChannelMessage = Message<"toshi.workspace.v1.ChannelMessage"> & {
522
629
  scheduledFor?: Timestamp | undefined;
523
630
  };
524
631
  /**
525
- * ChannelMessage is one message of an event channel.
632
+ * EndpointMessage is one message of an event endpoint.
526
633
  *
527
- * @generated from message toshi.workspace.v1.ChannelMessage
634
+ * @generated from message toshi.workspace.v1.EndpointMessage
528
635
  */
529
- export type ChannelMessageJson = {
636
+ export type EndpointMessageJson = {
530
637
  /**
531
638
  * The webhook-id of each of its posts, the same on every attempt and
532
639
  * after a replay.
@@ -535,7 +642,7 @@ export type ChannelMessageJson = {
535
642
  */
536
643
  id?: string;
537
644
  /**
538
- * Its place in the channel's queue, from 1.
645
+ * Its place in the endpoint's queue, from 1.
539
646
  *
540
647
  * @generated from field: int64 seq = 2;
541
648
  */
@@ -549,9 +656,9 @@ export type ChannelMessageJson = {
549
656
  */
550
657
  time?: TimestampJson;
551
658
  /**
552
- * @generated from field: toshi.workspace.v1.ChannelMessageSource source = 5;
659
+ * @generated from field: toshi.workspace.v1.EndpointMessageSource source = 5;
553
660
  */
554
- source?: ChannelMessageSourceJson;
661
+ source?: EndpointMessageSourceJson;
555
662
  /**
556
663
  * The message's JSON.
557
664
  *
@@ -559,9 +666,9 @@ export type ChannelMessageJson = {
559
666
  */
560
667
  data?: string;
561
668
  /**
562
- * @generated from field: toshi.workspace.v1.ChannelMessageState state = 7;
669
+ * @generated from field: toshi.workspace.v1.EndpointMessageState state = 7;
563
670
  */
564
- state?: ChannelMessageStateJson;
671
+ state?: EndpointMessageStateJson;
565
672
  /**
566
673
  * @generated from field: int32 attempts = 8;
567
674
  */
@@ -597,20 +704,20 @@ export type ChannelMessageJson = {
597
704
  scheduledFor?: TimestampJson;
598
705
  };
599
706
  /**
600
- * Describes the message toshi.workspace.v1.ChannelMessage.
601
- * Use `create(ChannelMessageSchema)` to create a new message.
707
+ * Describes the message toshi.workspace.v1.EndpointMessage.
708
+ * Use `create(EndpointMessageSchema)` to create a new message.
602
709
  */
603
- export declare const ChannelMessageSchema: GenMessage<ChannelMessage, {
604
- jsonType: ChannelMessageJson;
710
+ export declare const EndpointMessageSchema: GenMessage<EndpointMessage, {
711
+ jsonType: EndpointMessageJson;
605
712
  }>;
606
713
  /**
607
- * ChannelClient is one client of a stream channel: its last attach, who
714
+ * EndpointClient is one client of a stream endpoint: its last attach, who
608
715
  * made it, and how far it has acknowledged the output, which it goes on
609
716
  * from when it attaches again.
610
717
  *
611
- * @generated from message toshi.workspace.v1.ChannelClient
718
+ * @generated from message toshi.workspace.v1.EndpointClient
612
719
  */
613
- export type ChannelClient = Message<"toshi.workspace.v1.ChannelClient"> & {
720
+ export type EndpointClient = Message<"toshi.workspace.v1.EndpointClient"> & {
614
721
  /**
615
722
  * @generated from field: string id = 1;
616
723
  */
@@ -618,9 +725,9 @@ export type ChannelClient = Message<"toshi.workspace.v1.ChannelClient"> & {
618
725
  /**
619
726
  * The mode granted to its last attach.
620
727
  *
621
- * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 2;
728
+ * @generated from field: toshi.workspace.v1.EndpointAttachMode mode = 2;
622
729
  */
623
- mode: ChannelAttachMode;
730
+ mode: EndpointAttachMode;
624
731
  /**
625
732
  * Who attached it, as created_by names an actor.
626
733
  *
@@ -664,13 +771,13 @@ export type ChannelClient = Message<"toshi.workspace.v1.ChannelClient"> & {
664
771
  attached: boolean;
665
772
  };
666
773
  /**
667
- * ChannelClient is one client of a stream channel: its last attach, who
774
+ * EndpointClient is one client of a stream endpoint: its last attach, who
668
775
  * made it, and how far it has acknowledged the output, which it goes on
669
776
  * from when it attaches again.
670
777
  *
671
- * @generated from message toshi.workspace.v1.ChannelClient
778
+ * @generated from message toshi.workspace.v1.EndpointClient
672
779
  */
673
- export type ChannelClientJson = {
780
+ export type EndpointClientJson = {
674
781
  /**
675
782
  * @generated from field: string id = 1;
676
783
  */
@@ -678,9 +785,9 @@ export type ChannelClientJson = {
678
785
  /**
679
786
  * The mode granted to its last attach.
680
787
  *
681
- * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 2;
788
+ * @generated from field: toshi.workspace.v1.EndpointAttachMode mode = 2;
682
789
  */
683
- mode?: ChannelAttachModeJson;
790
+ mode?: EndpointAttachModeJson;
684
791
  /**
685
792
  * Who attached it, as created_by names an actor.
686
793
  *
@@ -724,22 +831,22 @@ export type ChannelClientJson = {
724
831
  attached?: boolean;
725
832
  };
726
833
  /**
727
- * Describes the message toshi.workspace.v1.ChannelClient.
728
- * Use `create(ChannelClientSchema)` to create a new message.
834
+ * Describes the message toshi.workspace.v1.EndpointClient.
835
+ * Use `create(EndpointClientSchema)` to create a new message.
729
836
  */
730
- export declare const ChannelClientSchema: GenMessage<ChannelClient, {
731
- jsonType: ChannelClientJson;
837
+ export declare const EndpointClientSchema: GenMessage<EndpointClient, {
838
+ jsonType: EndpointClientJson;
732
839
  }>;
733
840
  /**
734
- * ChannelPolicy is a channel's policy document, with the words a recipe's
735
- * channel policy uses.
841
+ * EndpointPolicy is an endpoint's policy document, with the words a recipe's
842
+ * endpoint policy uses.
736
843
  *
737
- * @generated from message toshi.workspace.v1.ChannelPolicy
844
+ * @generated from message toshi.workspace.v1.EndpointPolicy
738
845
  */
739
- export type ChannelPolicy = Message<"toshi.workspace.v1.ChannelPolicy"> & {
846
+ export type EndpointPolicy = Message<"toshi.workspace.v1.EndpointPolicy"> & {
740
847
  /**
741
- * Rises at each change. SetChannelPolicy names the version it was read
742
- * at; CreateChannel takes none.
848
+ * Rises at each change. SetEndpointPolicy names the version it was read
849
+ * at; CreateEndpoint takes none.
743
850
  *
744
851
  * @generated from field: int64 version = 1;
745
852
  */
@@ -751,23 +858,23 @@ export type ChannelPolicy = Message<"toshi.workspace.v1.ChannelPolicy"> & {
751
858
  */
752
859
  attach: string;
753
860
  /**
754
- * The most clients attached to a stream channel at once; unset sets no
861
+ * The most clients attached to a stream endpoint at once; unset sets no
755
862
  * bound.
756
863
  *
757
864
  * @generated from field: optional int32 max_clients = 3;
758
865
  */
759
866
  maxClients?: number | undefined;
760
867
  /**
761
- * Who may send input to a stream channel, or messages to an event
762
- * channel: any, creator or none.
868
+ * Who may send input to a stream endpoint, or messages to an event
869
+ * endpoint: any, creator or none.
763
870
  *
764
871
  * @generated from field: string input = 4;
765
872
  */
766
873
  input: string;
767
874
  /**
768
875
  * How much output or how many records are kept: buffer, at least the
769
- * newest 8 MiB, or channel, as long as the channel's record lasts. An
770
- * event channel's is a duration, how long a message waits to be
876
+ * newest 8 MiB, or endpoint, as long as the endpoint's record lasts. An
877
+ * event endpoint's is a duration, how long a message waits to be
771
878
  * delivered before it expires: 24h unless set, and at most the
772
879
  * workspace's plan allows, which is never less than 24h.
773
880
  *
@@ -776,13 +883,13 @@ export type ChannelPolicy = Message<"toshi.workspace.v1.ChannelPolicy"> & {
776
883
  keep: string;
777
884
  /**
778
885
  * The ordered module list. Unset takes the shape's defaults; an empty
779
- * list means no modules. An event channel takes none.
886
+ * list means no modules. An event endpoint takes none.
780
887
  *
781
- * @generated from field: toshi.workspace.v1.ChannelModuleList modules = 6;
888
+ * @generated from field: toshi.workspace.v1.EndpointModuleList modules = 6;
782
889
  */
783
- modules?: ChannelModuleList | undefined;
890
+ modules?: EndpointModuleList | undefined;
784
891
  /**
785
- * How long an event channel's post may take to be answered 2xx, a
892
+ * How long an event endpoint's post may take to be answered 2xx, a
786
893
  * duration from 1s to 10m: 30s unless set. It is the same for every
787
894
  * message; a later answer is a failed attempt.
788
895
  *
@@ -790,7 +897,7 @@ export type ChannelPolicy = Message<"toshi.workspace.v1.ChannelPolicy"> & {
790
897
  */
791
898
  ackDeadline: string;
792
899
  /**
793
- * How many of an event channel's posts may be in flight at once, from 1
900
+ * How many of an event endpoint's posts may be in flight at once, from 1
794
901
  * to 64: 1 unless set. At 1, messages are posted one at a time in the
795
902
  * order they were sent, and none passes one waiting to be tried again;
796
903
  * above 1, order is not kept. Either way a parked message holds up none
@@ -799,17 +906,25 @@ export type ChannelPolicy = Message<"toshi.workspace.v1.ChannelPolicy"> & {
799
906
  * @generated from field: optional int32 concurrency = 8;
800
907
  */
801
908
  concurrency?: number | undefined;
909
+ /**
910
+ * Where an ACP endpoint's agent runs file and terminal requests: vm (the
911
+ * default) or device. Only a stream endpoint declared framing acp takes
912
+ * it.
913
+ *
914
+ * @generated from field: string tools = 9;
915
+ */
916
+ tools: string;
802
917
  };
803
918
  /**
804
- * ChannelPolicy is a channel's policy document, with the words a recipe's
805
- * channel policy uses.
919
+ * EndpointPolicy is an endpoint's policy document, with the words a recipe's
920
+ * endpoint policy uses.
806
921
  *
807
- * @generated from message toshi.workspace.v1.ChannelPolicy
922
+ * @generated from message toshi.workspace.v1.EndpointPolicy
808
923
  */
809
- export type ChannelPolicyJson = {
924
+ export type EndpointPolicyJson = {
810
925
  /**
811
- * Rises at each change. SetChannelPolicy names the version it was read
812
- * at; CreateChannel takes none.
926
+ * Rises at each change. SetEndpointPolicy names the version it was read
927
+ * at; CreateEndpoint takes none.
813
928
  *
814
929
  * @generated from field: int64 version = 1;
815
930
  */
@@ -821,23 +936,23 @@ export type ChannelPolicyJson = {
821
936
  */
822
937
  attach?: string;
823
938
  /**
824
- * The most clients attached to a stream channel at once; unset sets no
939
+ * The most clients attached to a stream endpoint at once; unset sets no
825
940
  * bound.
826
941
  *
827
942
  * @generated from field: optional int32 max_clients = 3;
828
943
  */
829
944
  maxClients?: number;
830
945
  /**
831
- * Who may send input to a stream channel, or messages to an event
832
- * channel: any, creator or none.
946
+ * Who may send input to a stream endpoint, or messages to an event
947
+ * endpoint: any, creator or none.
833
948
  *
834
949
  * @generated from field: string input = 4;
835
950
  */
836
951
  input?: string;
837
952
  /**
838
953
  * How much output or how many records are kept: buffer, at least the
839
- * newest 8 MiB, or channel, as long as the channel's record lasts. An
840
- * event channel's is a duration, how long a message waits to be
954
+ * newest 8 MiB, or endpoint, as long as the endpoint's record lasts. An
955
+ * event endpoint's is a duration, how long a message waits to be
841
956
  * delivered before it expires: 24h unless set, and at most the
842
957
  * workspace's plan allows, which is never less than 24h.
843
958
  *
@@ -846,13 +961,13 @@ export type ChannelPolicyJson = {
846
961
  keep?: string;
847
962
  /**
848
963
  * The ordered module list. Unset takes the shape's defaults; an empty
849
- * list means no modules. An event channel takes none.
964
+ * list means no modules. An event endpoint takes none.
850
965
  *
851
- * @generated from field: toshi.workspace.v1.ChannelModuleList modules = 6;
966
+ * @generated from field: toshi.workspace.v1.EndpointModuleList modules = 6;
852
967
  */
853
- modules?: ChannelModuleListJson;
968
+ modules?: EndpointModuleListJson;
854
969
  /**
855
- * How long an event channel's post may take to be answered 2xx, a
970
+ * How long an event endpoint's post may take to be answered 2xx, a
856
971
  * duration from 1s to 10m: 30s unless set. It is the same for every
857
972
  * message; a later answer is a failed attempt.
858
973
  *
@@ -860,7 +975,7 @@ export type ChannelPolicyJson = {
860
975
  */
861
976
  ackDeadline?: string;
862
977
  /**
863
- * How many of an event channel's posts may be in flight at once, from 1
978
+ * How many of an event endpoint's posts may be in flight at once, from 1
864
979
  * to 64: 1 unless set. At 1, messages are posted one at a time in the
865
980
  * order they were sent, and none passes one waiting to be tried again;
866
981
  * above 1, order is not kept. Either way a parked message holds up none
@@ -869,46 +984,54 @@ export type ChannelPolicyJson = {
869
984
  * @generated from field: optional int32 concurrency = 8;
870
985
  */
871
986
  concurrency?: number;
987
+ /**
988
+ * Where an ACP endpoint's agent runs file and terminal requests: vm (the
989
+ * default) or device. Only a stream endpoint declared framing acp takes
990
+ * it.
991
+ *
992
+ * @generated from field: string tools = 9;
993
+ */
994
+ tools?: string;
872
995
  };
873
996
  /**
874
- * Describes the message toshi.workspace.v1.ChannelPolicy.
875
- * Use `create(ChannelPolicySchema)` to create a new message.
997
+ * Describes the message toshi.workspace.v1.EndpointPolicy.
998
+ * Use `create(EndpointPolicySchema)` to create a new message.
876
999
  */
877
- export declare const ChannelPolicySchema: GenMessage<ChannelPolicy, {
878
- jsonType: ChannelPolicyJson;
1000
+ export declare const EndpointPolicySchema: GenMessage<EndpointPolicy, {
1001
+ jsonType: EndpointPolicyJson;
879
1002
  }>;
880
1003
  /**
881
- * @generated from message toshi.workspace.v1.ChannelModuleList
1004
+ * @generated from message toshi.workspace.v1.EndpointModuleList
882
1005
  */
883
- export type ChannelModuleList = Message<"toshi.workspace.v1.ChannelModuleList"> & {
1006
+ export type EndpointModuleList = Message<"toshi.workspace.v1.EndpointModuleList"> & {
884
1007
  /**
885
- * @generated from field: repeated toshi.workspace.v1.ChannelModule modules = 1;
1008
+ * @generated from field: repeated toshi.workspace.v1.EndpointModule modules = 1;
886
1009
  */
887
- modules: ChannelModule[];
1010
+ modules: EndpointModule[];
888
1011
  };
889
1012
  /**
890
- * @generated from message toshi.workspace.v1.ChannelModuleList
1013
+ * @generated from message toshi.workspace.v1.EndpointModuleList
891
1014
  */
892
- export type ChannelModuleListJson = {
1015
+ export type EndpointModuleListJson = {
893
1016
  /**
894
- * @generated from field: repeated toshi.workspace.v1.ChannelModule modules = 1;
1017
+ * @generated from field: repeated toshi.workspace.v1.EndpointModule modules = 1;
895
1018
  */
896
- modules?: ChannelModuleJson[];
1019
+ modules?: EndpointModuleJson[];
897
1020
  };
898
1021
  /**
899
- * Describes the message toshi.workspace.v1.ChannelModuleList.
900
- * Use `create(ChannelModuleListSchema)` to create a new message.
1022
+ * Describes the message toshi.workspace.v1.EndpointModuleList.
1023
+ * Use `create(EndpointModuleListSchema)` to create a new message.
901
1024
  */
902
- export declare const ChannelModuleListSchema: GenMessage<ChannelModuleList, {
903
- jsonType: ChannelModuleListJson;
1025
+ export declare const EndpointModuleListSchema: GenMessage<EndpointModuleList, {
1026
+ jsonType: EndpointModuleListJson;
904
1027
  }>;
905
1028
  /**
906
- * ChannelModule is one entry of a policy's module list. Each kind takes
1029
+ * EndpointModule is one entry of a policy's module list. Each kind takes
907
1030
  * the settings it names and no others.
908
1031
  *
909
- * @generated from message toshi.workspace.v1.ChannelModule
1032
+ * @generated from message toshi.workspace.v1.EndpointModule
910
1033
  */
911
- export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
1034
+ export type EndpointModule = Message<"toshi.workspace.v1.EndpointModule"> & {
912
1035
  /**
913
1036
  * redirect, rewrite, ip_allowlist, client_certificate_required,
914
1037
  * sign_in_required, rate_limit, wake_page, identity_headers or
@@ -920,9 +1043,9 @@ export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
920
1043
  /**
921
1044
  * The requests a request module acts on; unset means every request.
922
1045
  *
923
- * @generated from field: toshi.workspace.v1.ChannelMatch match = 2;
1046
+ * @generated from field: toshi.workspace.v1.EndpointMatch match = 2;
924
1047
  */
925
- match?: ChannelMatch | undefined;
1048
+ match?: EndpointMatch | undefined;
926
1049
  /**
927
1050
  * The address ranges an ip_allowlist admits.
928
1051
  *
@@ -964,7 +1087,7 @@ export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
964
1087
  path: string;
965
1088
  /**
966
1089
  * The provided name, of the same workspace, a rewrite serves the request
967
- * from; a service's channel only.
1090
+ * from; a service's endpoint only.
968
1091
  *
969
1092
  * @generated from field: string host = 9;
970
1093
  */
@@ -990,7 +1113,7 @@ export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
990
1113
  window: string;
991
1114
  /**
992
1115
  * The page a wake_page answers with while the service wakes; empty takes
993
- * the default page. A service's channel only.
1116
+ * the default page. A service's endpoint only.
994
1117
  *
995
1118
  * @generated from field: string html = 13;
996
1119
  */
@@ -1006,7 +1129,7 @@ export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
1006
1129
  caBundle: string;
1007
1130
  /**
1008
1131
  * Whether a client_certificate_required admits a workload of another
1009
- * workspace that an active grant, of connect or more, on the channel's
1132
+ * workspace that an active grant, of connect or more, on the endpoint's
1010
1133
  * environment admits.
1011
1134
  *
1012
1135
  * @generated from field: bool grants = 15;
@@ -1014,12 +1137,12 @@ export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
1014
1137
  grants: boolean;
1015
1138
  };
1016
1139
  /**
1017
- * ChannelModule is one entry of a policy's module list. Each kind takes
1140
+ * EndpointModule is one entry of a policy's module list. Each kind takes
1018
1141
  * the settings it names and no others.
1019
1142
  *
1020
- * @generated from message toshi.workspace.v1.ChannelModule
1143
+ * @generated from message toshi.workspace.v1.EndpointModule
1021
1144
  */
1022
- export type ChannelModuleJson = {
1145
+ export type EndpointModuleJson = {
1023
1146
  /**
1024
1147
  * redirect, rewrite, ip_allowlist, client_certificate_required,
1025
1148
  * sign_in_required, rate_limit, wake_page, identity_headers or
@@ -1031,9 +1154,9 @@ export type ChannelModuleJson = {
1031
1154
  /**
1032
1155
  * The requests a request module acts on; unset means every request.
1033
1156
  *
1034
- * @generated from field: toshi.workspace.v1.ChannelMatch match = 2;
1157
+ * @generated from field: toshi.workspace.v1.EndpointMatch match = 2;
1035
1158
  */
1036
- match?: ChannelMatchJson;
1159
+ match?: EndpointMatchJson;
1037
1160
  /**
1038
1161
  * The address ranges an ip_allowlist admits.
1039
1162
  *
@@ -1075,7 +1198,7 @@ export type ChannelModuleJson = {
1075
1198
  path?: string;
1076
1199
  /**
1077
1200
  * The provided name, of the same workspace, a rewrite serves the request
1078
- * from; a service's channel only.
1201
+ * from; a service's endpoint only.
1079
1202
  *
1080
1203
  * @generated from field: string host = 9;
1081
1204
  */
@@ -1101,7 +1224,7 @@ export type ChannelModuleJson = {
1101
1224
  window?: string;
1102
1225
  /**
1103
1226
  * The page a wake_page answers with while the service wakes; empty takes
1104
- * the default page. A service's channel only.
1227
+ * the default page. A service's endpoint only.
1105
1228
  *
1106
1229
  * @generated from field: string html = 13;
1107
1230
  */
@@ -1117,7 +1240,7 @@ export type ChannelModuleJson = {
1117
1240
  caBundle?: string;
1118
1241
  /**
1119
1242
  * Whether a client_certificate_required admits a workload of another
1120
- * workspace that an active grant, of connect or more, on the channel's
1243
+ * workspace that an active grant, of connect or more, on the endpoint's
1121
1244
  * environment admits.
1122
1245
  *
1123
1246
  * @generated from field: bool grants = 15;
@@ -1125,19 +1248,19 @@ export type ChannelModuleJson = {
1125
1248
  grants?: boolean;
1126
1249
  };
1127
1250
  /**
1128
- * Describes the message toshi.workspace.v1.ChannelModule.
1129
- * Use `create(ChannelModuleSchema)` to create a new message.
1251
+ * Describes the message toshi.workspace.v1.EndpointModule.
1252
+ * Use `create(EndpointModuleSchema)` to create a new message.
1130
1253
  */
1131
- export declare const ChannelModuleSchema: GenMessage<ChannelModule, {
1132
- jsonType: ChannelModuleJson;
1254
+ export declare const EndpointModuleSchema: GenMessage<EndpointModule, {
1255
+ jsonType: EndpointModuleJson;
1133
1256
  }>;
1134
1257
  /**
1135
- * ChannelMatch narrows the requests a module acts on. Every field empty
1258
+ * EndpointMatch narrows the requests a module acts on. Every field empty
1136
1259
  * means every request.
1137
1260
  *
1138
- * @generated from message toshi.workspace.v1.ChannelMatch
1261
+ * @generated from message toshi.workspace.v1.EndpointMatch
1139
1262
  */
1140
- export type ChannelMatch = Message<"toshi.workspace.v1.ChannelMatch"> & {
1263
+ export type EndpointMatch = Message<"toshi.workspace.v1.EndpointMatch"> & {
1141
1264
  /**
1142
1265
  * Exact hosts.
1143
1266
  *
@@ -1166,12 +1289,12 @@ export type ChannelMatch = Message<"toshi.workspace.v1.ChannelMatch"> & {
1166
1289
  };
1167
1290
  };
1168
1291
  /**
1169
- * ChannelMatch narrows the requests a module acts on. Every field empty
1292
+ * EndpointMatch narrows the requests a module acts on. Every field empty
1170
1293
  * means every request.
1171
1294
  *
1172
- * @generated from message toshi.workspace.v1.ChannelMatch
1295
+ * @generated from message toshi.workspace.v1.EndpointMatch
1173
1296
  */
1174
- export type ChannelMatchJson = {
1297
+ export type EndpointMatchJson = {
1175
1298
  /**
1176
1299
  * Exact hosts.
1177
1300
  *
@@ -1200,19 +1323,19 @@ export type ChannelMatchJson = {
1200
1323
  };
1201
1324
  };
1202
1325
  /**
1203
- * Describes the message toshi.workspace.v1.ChannelMatch.
1204
- * Use `create(ChannelMatchSchema)` to create a new message.
1326
+ * Describes the message toshi.workspace.v1.EndpointMatch.
1327
+ * Use `create(EndpointMatchSchema)` to create a new message.
1205
1328
  */
1206
- export declare const ChannelMatchSchema: GenMessage<ChannelMatch, {
1207
- jsonType: ChannelMatchJson;
1329
+ export declare const EndpointMatchSchema: GenMessage<EndpointMatch, {
1330
+ jsonType: EndpointMatchJson;
1208
1331
  }>;
1209
1332
  /**
1210
- * ChannelRequest is one request an http channel's relay served, as its
1333
+ * EndpointRequest is one request an http endpoint's relay served, as its
1211
1334
  * record keeps it.
1212
1335
  *
1213
- * @generated from message toshi.workspace.v1.ChannelRequest
1336
+ * @generated from message toshi.workspace.v1.EndpointRequest
1214
1337
  */
1215
- export type ChannelRequest = Message<"toshi.workspace.v1.ChannelRequest"> & {
1338
+ export type EndpointRequest = Message<"toshi.workspace.v1.EndpointRequest"> & {
1216
1339
  /**
1217
1340
  * @generated from field: int64 seq = 1;
1218
1341
  */
@@ -1254,9 +1377,9 @@ export type ChannelRequest = Message<"toshi.workspace.v1.ChannelRequest"> & {
1254
1377
  /**
1255
1378
  * The caller, once the request path has identified one.
1256
1379
  *
1257
- * @generated from field: toshi.workspace.v1.ChannelRequestCaller caller = 10;
1380
+ * @generated from field: toshi.workspace.v1.EndpointRequestCaller caller = 10;
1258
1381
  */
1259
- caller?: ChannelRequestCaller | undefined;
1382
+ caller?: EndpointRequestCaller | undefined;
1260
1383
  /**
1261
1384
  * @generated from field: string address = 11;
1262
1385
  */
@@ -1288,31 +1411,31 @@ export type ChannelRequest = Message<"toshi.workspace.v1.ChannelRequest"> & {
1288
1411
  */
1289
1412
  queryCut: boolean;
1290
1413
  /**
1291
- * @generated from field: repeated toshi.workspace.v1.ChannelHeader request_headers = 17;
1414
+ * @generated from field: repeated toshi.workspace.v1.EndpointHeader request_headers = 17;
1292
1415
  */
1293
- requestHeaders: ChannelHeader[];
1416
+ requestHeaders: EndpointHeader[];
1294
1417
  /**
1295
- * @generated from field: repeated toshi.workspace.v1.ChannelHeader response_headers = 18;
1418
+ * @generated from field: repeated toshi.workspace.v1.EndpointHeader response_headers = 18;
1296
1419
  */
1297
- responseHeaders: ChannelHeader[];
1420
+ responseHeaders: EndpointHeader[];
1298
1421
  /**
1299
1422
  * At bodies.
1300
1423
  *
1301
- * @generated from field: toshi.workspace.v1.ChannelBody request_body = 19;
1424
+ * @generated from field: toshi.workspace.v1.EndpointBody request_body = 19;
1302
1425
  */
1303
- requestBody?: ChannelBody | undefined;
1426
+ requestBody?: EndpointBody | undefined;
1304
1427
  /**
1305
- * @generated from field: toshi.workspace.v1.ChannelBody response_body = 20;
1428
+ * @generated from field: toshi.workspace.v1.EndpointBody response_body = 20;
1306
1429
  */
1307
- responseBody?: ChannelBody | undefined;
1430
+ responseBody?: EndpointBody | undefined;
1308
1431
  };
1309
1432
  /**
1310
- * ChannelRequest is one request an http channel's relay served, as its
1433
+ * EndpointRequest is one request an http endpoint's relay served, as its
1311
1434
  * record keeps it.
1312
1435
  *
1313
- * @generated from message toshi.workspace.v1.ChannelRequest
1436
+ * @generated from message toshi.workspace.v1.EndpointRequest
1314
1437
  */
1315
- export type ChannelRequestJson = {
1438
+ export type EndpointRequestJson = {
1316
1439
  /**
1317
1440
  * @generated from field: int64 seq = 1;
1318
1441
  */
@@ -1354,9 +1477,9 @@ export type ChannelRequestJson = {
1354
1477
  /**
1355
1478
  * The caller, once the request path has identified one.
1356
1479
  *
1357
- * @generated from field: toshi.workspace.v1.ChannelRequestCaller caller = 10;
1480
+ * @generated from field: toshi.workspace.v1.EndpointRequestCaller caller = 10;
1358
1481
  */
1359
- caller?: ChannelRequestCallerJson;
1482
+ caller?: EndpointRequestCallerJson;
1360
1483
  /**
1361
1484
  * @generated from field: string address = 11;
1362
1485
  */
@@ -1388,35 +1511,35 @@ export type ChannelRequestJson = {
1388
1511
  */
1389
1512
  queryCut?: boolean;
1390
1513
  /**
1391
- * @generated from field: repeated toshi.workspace.v1.ChannelHeader request_headers = 17;
1514
+ * @generated from field: repeated toshi.workspace.v1.EndpointHeader request_headers = 17;
1392
1515
  */
1393
- requestHeaders?: ChannelHeaderJson[];
1516
+ requestHeaders?: EndpointHeaderJson[];
1394
1517
  /**
1395
- * @generated from field: repeated toshi.workspace.v1.ChannelHeader response_headers = 18;
1518
+ * @generated from field: repeated toshi.workspace.v1.EndpointHeader response_headers = 18;
1396
1519
  */
1397
- responseHeaders?: ChannelHeaderJson[];
1520
+ responseHeaders?: EndpointHeaderJson[];
1398
1521
  /**
1399
1522
  * At bodies.
1400
1523
  *
1401
- * @generated from field: toshi.workspace.v1.ChannelBody request_body = 19;
1524
+ * @generated from field: toshi.workspace.v1.EndpointBody request_body = 19;
1402
1525
  */
1403
- requestBody?: ChannelBodyJson;
1526
+ requestBody?: EndpointBodyJson;
1404
1527
  /**
1405
- * @generated from field: toshi.workspace.v1.ChannelBody response_body = 20;
1528
+ * @generated from field: toshi.workspace.v1.EndpointBody response_body = 20;
1406
1529
  */
1407
- responseBody?: ChannelBodyJson;
1530
+ responseBody?: EndpointBodyJson;
1408
1531
  };
1409
1532
  /**
1410
- * Describes the message toshi.workspace.v1.ChannelRequest.
1411
- * Use `create(ChannelRequestSchema)` to create a new message.
1533
+ * Describes the message toshi.workspace.v1.EndpointRequest.
1534
+ * Use `create(EndpointRequestSchema)` to create a new message.
1412
1535
  */
1413
- export declare const ChannelRequestSchema: GenMessage<ChannelRequest, {
1414
- jsonType: ChannelRequestJson;
1536
+ export declare const EndpointRequestSchema: GenMessage<EndpointRequest, {
1537
+ jsonType: EndpointRequestJson;
1415
1538
  }>;
1416
1539
  /**
1417
- * @generated from message toshi.workspace.v1.ChannelRequestCaller
1540
+ * @generated from message toshi.workspace.v1.EndpointRequestCaller
1418
1541
  */
1419
- export type ChannelRequestCaller = Message<"toshi.workspace.v1.ChannelRequestCaller"> & {
1542
+ export type EndpointRequestCaller = Message<"toshi.workspace.v1.EndpointRequestCaller"> & {
1420
1543
  /**
1421
1544
  * The caller as the audit log names an actor.
1422
1545
  *
@@ -1435,9 +1558,9 @@ export type ChannelRequestCaller = Message<"toshi.workspace.v1.ChannelRequestCal
1435
1558
  shareLink: string;
1436
1559
  };
1437
1560
  /**
1438
- * @generated from message toshi.workspace.v1.ChannelRequestCaller
1561
+ * @generated from message toshi.workspace.v1.EndpointRequestCaller
1439
1562
  */
1440
- export type ChannelRequestCallerJson = {
1563
+ export type EndpointRequestCallerJson = {
1441
1564
  /**
1442
1565
  * The caller as the audit log names an actor.
1443
1566
  *
@@ -1456,19 +1579,19 @@ export type ChannelRequestCallerJson = {
1456
1579
  shareLink?: string;
1457
1580
  };
1458
1581
  /**
1459
- * Describes the message toshi.workspace.v1.ChannelRequestCaller.
1460
- * Use `create(ChannelRequestCallerSchema)` to create a new message.
1582
+ * Describes the message toshi.workspace.v1.EndpointRequestCaller.
1583
+ * Use `create(EndpointRequestCallerSchema)` to create a new message.
1461
1584
  */
1462
- export declare const ChannelRequestCallerSchema: GenMessage<ChannelRequestCaller, {
1463
- jsonType: ChannelRequestCallerJson;
1585
+ export declare const EndpointRequestCallerSchema: GenMessage<EndpointRequestCaller, {
1586
+ jsonType: EndpointRequestCallerJson;
1464
1587
  }>;
1465
1588
  /**
1466
- * ChannelHeader is one header line; a credential header keeps its name
1589
+ * EndpointHeader is one header line; a credential header keeps its name
1467
1590
  * only, with removed set.
1468
1591
  *
1469
- * @generated from message toshi.workspace.v1.ChannelHeader
1592
+ * @generated from message toshi.workspace.v1.EndpointHeader
1470
1593
  */
1471
- export type ChannelHeader = Message<"toshi.workspace.v1.ChannelHeader"> & {
1594
+ export type EndpointHeader = Message<"toshi.workspace.v1.EndpointHeader"> & {
1472
1595
  /**
1473
1596
  * @generated from field: string name = 1;
1474
1597
  */
@@ -1483,12 +1606,12 @@ export type ChannelHeader = Message<"toshi.workspace.v1.ChannelHeader"> & {
1483
1606
  removed: boolean;
1484
1607
  };
1485
1608
  /**
1486
- * ChannelHeader is one header line; a credential header keeps its name
1609
+ * EndpointHeader is one header line; a credential header keeps its name
1487
1610
  * only, with removed set.
1488
1611
  *
1489
- * @generated from message toshi.workspace.v1.ChannelHeader
1612
+ * @generated from message toshi.workspace.v1.EndpointHeader
1490
1613
  */
1491
- export type ChannelHeaderJson = {
1614
+ export type EndpointHeaderJson = {
1492
1615
  /**
1493
1616
  * @generated from field: string name = 1;
1494
1617
  */
@@ -1503,16 +1626,16 @@ export type ChannelHeaderJson = {
1503
1626
  removed?: boolean;
1504
1627
  };
1505
1628
  /**
1506
- * Describes the message toshi.workspace.v1.ChannelHeader.
1507
- * Use `create(ChannelHeaderSchema)` to create a new message.
1629
+ * Describes the message toshi.workspace.v1.EndpointHeader.
1630
+ * Use `create(EndpointHeaderSchema)` to create a new message.
1508
1631
  */
1509
- export declare const ChannelHeaderSchema: GenMessage<ChannelHeader, {
1510
- jsonType: ChannelHeaderJson;
1632
+ export declare const EndpointHeaderSchema: GenMessage<EndpointHeader, {
1633
+ jsonType: EndpointHeaderJson;
1511
1634
  }>;
1512
1635
  /**
1513
- * @generated from message toshi.workspace.v1.ChannelBody
1636
+ * @generated from message toshi.workspace.v1.EndpointBody
1514
1637
  */
1515
- export type ChannelBody = Message<"toshi.workspace.v1.ChannelBody"> & {
1638
+ export type EndpointBody = Message<"toshi.workspace.v1.EndpointBody"> & {
1516
1639
  /**
1517
1640
  * @generated from field: string content_type = 1;
1518
1641
  */
@@ -1529,9 +1652,9 @@ export type ChannelBody = Message<"toshi.workspace.v1.ChannelBody"> & {
1529
1652
  cut: boolean;
1530
1653
  };
1531
1654
  /**
1532
- * @generated from message toshi.workspace.v1.ChannelBody
1655
+ * @generated from message toshi.workspace.v1.EndpointBody
1533
1656
  */
1534
- export type ChannelBodyJson = {
1657
+ export type EndpointBodyJson = {
1535
1658
  /**
1536
1659
  * @generated from field: string content_type = 1;
1537
1660
  */
@@ -1548,17 +1671,17 @@ export type ChannelBodyJson = {
1548
1671
  cut?: boolean;
1549
1672
  };
1550
1673
  /**
1551
- * Describes the message toshi.workspace.v1.ChannelBody.
1552
- * Use `create(ChannelBodySchema)` to create a new message.
1674
+ * Describes the message toshi.workspace.v1.EndpointBody.
1675
+ * Use `create(EndpointBodySchema)` to create a new message.
1553
1676
  */
1554
- export declare const ChannelBodySchema: GenMessage<ChannelBody, {
1555
- jsonType: ChannelBodyJson;
1677
+ export declare const EndpointBodySchema: GenMessage<EndpointBody, {
1678
+ jsonType: EndpointBodyJson;
1556
1679
  }>;
1557
1680
  /**
1558
1681
  * Forward is one open Forward: what it reaches in the guest, named as the
1559
1682
  * audit log names it (a command by its first word only), who opened it,
1560
1683
  * with the device of the connect token that admitted them, and the http
1561
- * channel whose connection carries it, if one does, and the grant it was
1684
+ * endpoint whose connection carries it, if one does, and the grant it was
1562
1685
  * opened through, if one was.
1563
1686
  *
1564
1687
  * @generated from message toshi.workspace.v1.Forward
@@ -1577,9 +1700,9 @@ export type Forward = Message<"toshi.workspace.v1.Forward"> & {
1577
1700
  */
1578
1701
  device: string;
1579
1702
  /**
1580
- * @generated from field: string channel = 4;
1703
+ * @generated from field: string endpoint = 4;
1581
1704
  */
1582
- channel: string;
1705
+ endpoint: string;
1583
1706
  /**
1584
1707
  * @generated from field: google.protobuf.Timestamp opened_at = 5;
1585
1708
  */
@@ -1596,7 +1719,7 @@ export type Forward = Message<"toshi.workspace.v1.Forward"> & {
1596
1719
  * Forward is one open Forward: what it reaches in the guest, named as the
1597
1720
  * audit log names it (a command by its first word only), who opened it,
1598
1721
  * with the device of the connect token that admitted them, and the http
1599
- * channel whose connection carries it, if one does, and the grant it was
1722
+ * endpoint whose connection carries it, if one does, and the grant it was
1600
1723
  * opened through, if one was.
1601
1724
  *
1602
1725
  * @generated from message toshi.workspace.v1.Forward
@@ -1615,9 +1738,9 @@ export type ForwardJson = {
1615
1738
  */
1616
1739
  device?: string;
1617
1740
  /**
1618
- * @generated from field: string channel = 4;
1741
+ * @generated from field: string endpoint = 4;
1619
1742
  */
1620
- channel?: string;
1743
+ endpoint?: string;
1621
1744
  /**
1622
1745
  * @generated from field: google.protobuf.Timestamp opened_at = 5;
1623
1746
  */
@@ -1638,19 +1761,19 @@ export declare const ForwardSchema: GenMessage<Forward, {
1638
1761
  jsonType: ForwardJson;
1639
1762
  }>;
1640
1763
  /**
1641
- * Link is the state of a runner's Link, the connection its guest holds to
1764
+ * Tunnel is the state of a runner's Tunnel, the connection its guest holds to
1642
1765
  * the control plane.
1643
1766
  *
1644
- * @generated from message toshi.workspace.v1.Link
1767
+ * @generated from message toshi.workspace.v1.Tunnel
1645
1768
  */
1646
- export type Link = Message<"toshi.workspace.v1.Link"> & {
1769
+ export type Tunnel = Message<"toshi.workspace.v1.Tunnel"> & {
1647
1770
  /**
1648
1771
  * @generated from field: bool connected = 1;
1649
1772
  */
1650
1773
  connected: boolean;
1651
1774
  /**
1652
1775
  * Since when it has been connected; unset while it is not, and while
1653
- * another process of the control plane holds the link.
1776
+ * another process of the control plane holds the tunnel.
1654
1777
  *
1655
1778
  * @generated from field: google.protobuf.Timestamp since = 2;
1656
1779
  */
@@ -1672,7 +1795,7 @@ export type Link = Message<"toshi.workspace.v1.Link"> & {
1672
1795
  */
1673
1796
  lastError: string;
1674
1797
  /**
1675
- * The runner's second Link, its replica: connected, or none.
1798
+ * The runner's second Tunnel, its replica: connected, or none.
1676
1799
  *
1677
1800
  * @generated from field: string replica = 6;
1678
1801
  */
@@ -1691,19 +1814,19 @@ export type Link = Message<"toshi.workspace.v1.Link"> & {
1691
1814
  jobState: string;
1692
1815
  };
1693
1816
  /**
1694
- * Link is the state of a runner's Link, the connection its guest holds to
1817
+ * Tunnel is the state of a runner's Tunnel, the connection its guest holds to
1695
1818
  * the control plane.
1696
1819
  *
1697
- * @generated from message toshi.workspace.v1.Link
1820
+ * @generated from message toshi.workspace.v1.Tunnel
1698
1821
  */
1699
- export type LinkJson = {
1822
+ export type TunnelJson = {
1700
1823
  /**
1701
1824
  * @generated from field: bool connected = 1;
1702
1825
  */
1703
1826
  connected?: boolean;
1704
1827
  /**
1705
1828
  * Since when it has been connected; unset while it is not, and while
1706
- * another process of the control plane holds the link.
1829
+ * another process of the control plane holds the tunnel.
1707
1830
  *
1708
1831
  * @generated from field: google.protobuf.Timestamp since = 2;
1709
1832
  */
@@ -1725,7 +1848,7 @@ export type LinkJson = {
1725
1848
  */
1726
1849
  lastError?: string;
1727
1850
  /**
1728
- * The runner's second Link, its replica: connected, or none.
1851
+ * The runner's second Tunnel, its replica: connected, or none.
1729
1852
  *
1730
1853
  * @generated from field: string replica = 6;
1731
1854
  */
@@ -1744,47 +1867,47 @@ export type LinkJson = {
1744
1867
  jobState?: string;
1745
1868
  };
1746
1869
  /**
1747
- * Describes the message toshi.workspace.v1.Link.
1748
- * Use `create(LinkSchema)` to create a new message.
1870
+ * Describes the message toshi.workspace.v1.Tunnel.
1871
+ * Use `create(TunnelSchema)` to create a new message.
1749
1872
  */
1750
- export declare const LinkSchema: GenMessage<Link, {
1751
- jsonType: LinkJson;
1873
+ export declare const TunnelSchema: GenMessage<Tunnel, {
1874
+ jsonType: TunnelJson;
1752
1875
  }>;
1753
1876
  /**
1754
- * @generated from message toshi.workspace.v1.CreateChannelRequest
1877
+ * @generated from message toshi.workspace.v1.CreateEndpointRequest
1755
1878
  */
1756
- export type CreateChannelRequest = Message<"toshi.workspace.v1.CreateChannelRequest"> & {
1879
+ export type CreateEndpointRequest = Message<"toshi.workspace.v1.CreateEndpointRequest"> & {
1757
1880
  /**
1758
1881
  * @generated from field: string job_id = 1;
1759
1882
  */
1760
1883
  jobId: string;
1761
1884
  /**
1762
- * The channel's name: lower-case letters, digits, '-' and '_', starting
1763
- * with a letter or digit, at most 63. An http channel's defaults to its
1764
- * port; a stream channel needs one.
1885
+ * The endpoint's name: lower-case letters, digits, '-' and '_', starting
1886
+ * with a letter or digit, at most 63. An http endpoint's defaults to its
1887
+ * port; a stream endpoint needs one.
1765
1888
  *
1766
1889
  * @generated from field: string name = 2;
1767
1890
  */
1768
1891
  name: string;
1769
1892
  /**
1770
- * A port in the guest, for an http channel; give a port or a command.
1893
+ * A port in the guest, for an http endpoint; give a port or a command.
1771
1894
  *
1772
1895
  * @generated from field: int32 port = 3;
1773
1896
  */
1774
1897
  port: number;
1775
1898
  /**
1776
- * A command in the guest, for a stream channel.
1899
+ * A command in the guest, for a stream endpoint.
1777
1900
  *
1778
1901
  * @generated from field: repeated string command = 4;
1779
1902
  */
1780
1903
  command: string[];
1781
1904
  /**
1782
- * The policy the channel starts with, without a version; unset takes
1905
+ * The policy the endpoint starts with, without a version; unset takes
1783
1906
  * the defaults.
1784
1907
  *
1785
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 5;
1908
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 5;
1786
1909
  */
1787
- policy?: ChannelPolicy | undefined;
1910
+ policy?: EndpointPolicy | undefined;
1788
1911
  /**
1789
1912
  * A grant the caller's workspace received, to act on the owner's
1790
1913
  * sandbox's job through it (docs/grants.md).
@@ -1794,47 +1917,47 @@ export type CreateChannelRequest = Message<"toshi.workspace.v1.CreateChannelRequ
1794
1917
  grant: string;
1795
1918
  /**
1796
1919
  * A key that makes the call safe to retry: a retry with the same key and
1797
- * the same request answers with the channel the first call made.
1920
+ * the same request answers with the endpoint the first call made.
1798
1921
  *
1799
1922
  * @generated from field: string request_key = 7;
1800
1923
  */
1801
1924
  requestKey: string;
1802
1925
  };
1803
1926
  /**
1804
- * @generated from message toshi.workspace.v1.CreateChannelRequest
1927
+ * @generated from message toshi.workspace.v1.CreateEndpointRequest
1805
1928
  */
1806
- export type CreateChannelRequestJson = {
1929
+ export type CreateEndpointRequestJson = {
1807
1930
  /**
1808
1931
  * @generated from field: string job_id = 1;
1809
1932
  */
1810
1933
  jobId?: string;
1811
1934
  /**
1812
- * The channel's name: lower-case letters, digits, '-' and '_', starting
1813
- * with a letter or digit, at most 63. An http channel's defaults to its
1814
- * port; a stream channel needs one.
1935
+ * The endpoint's name: lower-case letters, digits, '-' and '_', starting
1936
+ * with a letter or digit, at most 63. An http endpoint's defaults to its
1937
+ * port; a stream endpoint needs one.
1815
1938
  *
1816
1939
  * @generated from field: string name = 2;
1817
1940
  */
1818
1941
  name?: string;
1819
1942
  /**
1820
- * A port in the guest, for an http channel; give a port or a command.
1943
+ * A port in the guest, for an http endpoint; give a port or a command.
1821
1944
  *
1822
1945
  * @generated from field: int32 port = 3;
1823
1946
  */
1824
1947
  port?: number;
1825
1948
  /**
1826
- * A command in the guest, for a stream channel.
1949
+ * A command in the guest, for a stream endpoint.
1827
1950
  *
1828
1951
  * @generated from field: repeated string command = 4;
1829
1952
  */
1830
1953
  command?: string[];
1831
1954
  /**
1832
- * The policy the channel starts with, without a version; unset takes
1955
+ * The policy the endpoint starts with, without a version; unset takes
1833
1956
  * the defaults.
1834
1957
  *
1835
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 5;
1958
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 5;
1836
1959
  */
1837
- policy?: ChannelPolicyJson;
1960
+ policy?: EndpointPolicyJson;
1838
1961
  /**
1839
1962
  * A grant the caller's workspace received, to act on the owner's
1840
1963
  * sandbox's job through it (docs/grants.md).
@@ -1844,57 +1967,57 @@ export type CreateChannelRequestJson = {
1844
1967
  grant?: string;
1845
1968
  /**
1846
1969
  * A key that makes the call safe to retry: a retry with the same key and
1847
- * the same request answers with the channel the first call made.
1970
+ * the same request answers with the endpoint the first call made.
1848
1971
  *
1849
1972
  * @generated from field: string request_key = 7;
1850
1973
  */
1851
1974
  requestKey?: string;
1852
1975
  };
1853
1976
  /**
1854
- * Describes the message toshi.workspace.v1.CreateChannelRequest.
1855
- * Use `create(CreateChannelRequestSchema)` to create a new message.
1977
+ * Describes the message toshi.workspace.v1.CreateEndpointRequest.
1978
+ * Use `create(CreateEndpointRequestSchema)` to create a new message.
1856
1979
  */
1857
- export declare const CreateChannelRequestSchema: GenMessage<CreateChannelRequest, {
1858
- jsonType: CreateChannelRequestJson;
1980
+ export declare const CreateEndpointRequestSchema: GenMessage<CreateEndpointRequest, {
1981
+ jsonType: CreateEndpointRequestJson;
1859
1982
  }>;
1860
1983
  /**
1861
- * @generated from message toshi.workspace.v1.CreateChannelResponse
1984
+ * @generated from message toshi.workspace.v1.CreateEndpointResponse
1862
1985
  */
1863
- export type CreateChannelResponse = Message<"toshi.workspace.v1.CreateChannelResponse"> & {
1986
+ export type CreateEndpointResponse = Message<"toshi.workspace.v1.CreateEndpointResponse"> & {
1864
1987
  /**
1865
- * @generated from field: toshi.workspace.v1.Channel channel = 1;
1988
+ * @generated from field: toshi.workspace.v1.Endpoint endpoint = 1;
1866
1989
  */
1867
- channel?: Channel | undefined;
1990
+ endpoint?: Endpoint | undefined;
1868
1991
  };
1869
1992
  /**
1870
- * @generated from message toshi.workspace.v1.CreateChannelResponse
1993
+ * @generated from message toshi.workspace.v1.CreateEndpointResponse
1871
1994
  */
1872
- export type CreateChannelResponseJson = {
1995
+ export type CreateEndpointResponseJson = {
1873
1996
  /**
1874
- * @generated from field: toshi.workspace.v1.Channel channel = 1;
1997
+ * @generated from field: toshi.workspace.v1.Endpoint endpoint = 1;
1875
1998
  */
1876
- channel?: ChannelJson;
1999
+ endpoint?: EndpointJson;
1877
2000
  };
1878
2001
  /**
1879
- * Describes the message toshi.workspace.v1.CreateChannelResponse.
1880
- * Use `create(CreateChannelResponseSchema)` to create a new message.
2002
+ * Describes the message toshi.workspace.v1.CreateEndpointResponse.
2003
+ * Use `create(CreateEndpointResponseSchema)` to create a new message.
1881
2004
  */
1882
- export declare const CreateChannelResponseSchema: GenMessage<CreateChannelResponse, {
1883
- jsonType: CreateChannelResponseJson;
2005
+ export declare const CreateEndpointResponseSchema: GenMessage<CreateEndpointResponse, {
2006
+ jsonType: CreateEndpointResponseJson;
1884
2007
  }>;
1885
2008
  /**
1886
- * @generated from message toshi.workspace.v1.ListChannelsRequest
2009
+ * @generated from message toshi.workspace.v1.ListEndpointsRequest
1887
2010
  */
1888
- export type ListChannelsRequest = Message<"toshi.workspace.v1.ListChannelsRequest"> & {
2011
+ export type ListEndpointsRequest = Message<"toshi.workspace.v1.ListEndpointsRequest"> & {
1889
2012
  /**
1890
- * Only this job's channels; empty lists every job's, and every
1891
- * service's event channels.
2013
+ * Only this job's endpoints; empty lists every job's, and every
2014
+ * service's event endpoints.
1892
2015
  *
1893
2016
  * @generated from field: string job_id = 1;
1894
2017
  */
1895
2018
  jobId: string;
1896
2019
  /**
1897
- * The most channels in one page; zero lets the server choose.
2020
+ * The most endpoints in one page; zero lets the server choose.
1898
2021
  *
1899
2022
  * @generated from field: int32 page_size = 2;
1900
2023
  */
@@ -1906,7 +2029,7 @@ export type ListChannelsRequest = Message<"toshi.workspace.v1.ListChannelsReques
1906
2029
  */
1907
2030
  pageToken: string;
1908
2031
  /**
1909
- * Only this service's event channels, by its ID; not with job_id.
2032
+ * Only this service's event endpoints, by its ID; not with job_id.
1910
2033
  *
1911
2034
  * @generated from field: string service = 4;
1912
2035
  */
@@ -1920,18 +2043,18 @@ export type ListChannelsRequest = Message<"toshi.workspace.v1.ListChannelsReques
1920
2043
  grant: string;
1921
2044
  };
1922
2045
  /**
1923
- * @generated from message toshi.workspace.v1.ListChannelsRequest
2046
+ * @generated from message toshi.workspace.v1.ListEndpointsRequest
1924
2047
  */
1925
- export type ListChannelsRequestJson = {
2048
+ export type ListEndpointsRequestJson = {
1926
2049
  /**
1927
- * Only this job's channels; empty lists every job's, and every
1928
- * service's event channels.
2050
+ * Only this job's endpoints; empty lists every job's, and every
2051
+ * service's event endpoints.
1929
2052
  *
1930
2053
  * @generated from field: string job_id = 1;
1931
2054
  */
1932
2055
  jobId?: string;
1933
2056
  /**
1934
- * The most channels in one page; zero lets the server choose.
2057
+ * The most endpoints in one page; zero lets the server choose.
1935
2058
  *
1936
2059
  * @generated from field: int32 page_size = 2;
1937
2060
  */
@@ -1943,7 +2066,7 @@ export type ListChannelsRequestJson = {
1943
2066
  */
1944
2067
  pageToken?: string;
1945
2068
  /**
1946
- * Only this service's event channels, by its ID; not with job_id.
2069
+ * Only this service's event endpoints, by its ID; not with job_id.
1947
2070
  *
1948
2071
  * @generated from field: string service = 4;
1949
2072
  */
@@ -1957,20 +2080,20 @@ export type ListChannelsRequestJson = {
1957
2080
  grant?: string;
1958
2081
  };
1959
2082
  /**
1960
- * Describes the message toshi.workspace.v1.ListChannelsRequest.
1961
- * Use `create(ListChannelsRequestSchema)` to create a new message.
2083
+ * Describes the message toshi.workspace.v1.ListEndpointsRequest.
2084
+ * Use `create(ListEndpointsRequestSchema)` to create a new message.
1962
2085
  */
1963
- export declare const ListChannelsRequestSchema: GenMessage<ListChannelsRequest, {
1964
- jsonType: ListChannelsRequestJson;
2086
+ export declare const ListEndpointsRequestSchema: GenMessage<ListEndpointsRequest, {
2087
+ jsonType: ListEndpointsRequestJson;
1965
2088
  }>;
1966
2089
  /**
1967
- * @generated from message toshi.workspace.v1.ListChannelsResponse
2090
+ * @generated from message toshi.workspace.v1.ListEndpointsResponse
1968
2091
  */
1969
- export type ListChannelsResponse = Message<"toshi.workspace.v1.ListChannelsResponse"> & {
2092
+ export type ListEndpointsResponse = Message<"toshi.workspace.v1.ListEndpointsResponse"> & {
1970
2093
  /**
1971
- * @generated from field: repeated toshi.workspace.v1.Channel channels = 1;
2094
+ * @generated from field: repeated toshi.workspace.v1.Endpoint endpoints = 1;
1972
2095
  */
1973
- channels: Channel[];
2096
+ endpoints: Endpoint[];
1974
2097
  /**
1975
2098
  * Empty on the last page.
1976
2099
  *
@@ -1979,13 +2102,13 @@ export type ListChannelsResponse = Message<"toshi.workspace.v1.ListChannelsRespo
1979
2102
  nextPageToken: string;
1980
2103
  };
1981
2104
  /**
1982
- * @generated from message toshi.workspace.v1.ListChannelsResponse
2105
+ * @generated from message toshi.workspace.v1.ListEndpointsResponse
1983
2106
  */
1984
- export type ListChannelsResponseJson = {
2107
+ export type ListEndpointsResponseJson = {
1985
2108
  /**
1986
- * @generated from field: repeated toshi.workspace.v1.Channel channels = 1;
2109
+ * @generated from field: repeated toshi.workspace.v1.Endpoint endpoints = 1;
1987
2110
  */
1988
- channels?: ChannelJson[];
2111
+ endpoints?: EndpointJson[];
1989
2112
  /**
1990
2113
  * Empty on the last page.
1991
2114
  *
@@ -1994,16 +2117,16 @@ export type ListChannelsResponseJson = {
1994
2117
  nextPageToken?: string;
1995
2118
  };
1996
2119
  /**
1997
- * Describes the message toshi.workspace.v1.ListChannelsResponse.
1998
- * Use `create(ListChannelsResponseSchema)` to create a new message.
2120
+ * Describes the message toshi.workspace.v1.ListEndpointsResponse.
2121
+ * Use `create(ListEndpointsResponseSchema)` to create a new message.
1999
2122
  */
2000
- export declare const ListChannelsResponseSchema: GenMessage<ListChannelsResponse, {
2001
- jsonType: ListChannelsResponseJson;
2123
+ export declare const ListEndpointsResponseSchema: GenMessage<ListEndpointsResponse, {
2124
+ jsonType: ListEndpointsResponseJson;
2002
2125
  }>;
2003
2126
  /**
2004
- * @generated from message toshi.workspace.v1.GetChannelRequest
2127
+ * @generated from message toshi.workspace.v1.GetEndpointRequest
2005
2128
  */
2006
- export type GetChannelRequest = Message<"toshi.workspace.v1.GetChannelRequest"> & {
2129
+ export type GetEndpointRequest = Message<"toshi.workspace.v1.GetEndpointRequest"> & {
2007
2130
  /**
2008
2131
  * @generated from field: string job_id = 1;
2009
2132
  */
@@ -2013,7 +2136,7 @@ export type GetChannelRequest = Message<"toshi.workspace.v1.GetChannelRequest">
2013
2136
  */
2014
2137
  name: string;
2015
2138
  /**
2016
- * An event channel's service, by its ID, in place of job_id.
2139
+ * An event endpoint's service, by its ID, in place of job_id.
2017
2140
  *
2018
2141
  * @generated from field: string service = 3;
2019
2142
  */
@@ -2027,9 +2150,9 @@ export type GetChannelRequest = Message<"toshi.workspace.v1.GetChannelRequest">
2027
2150
  grant: string;
2028
2151
  };
2029
2152
  /**
2030
- * @generated from message toshi.workspace.v1.GetChannelRequest
2153
+ * @generated from message toshi.workspace.v1.GetEndpointRequest
2031
2154
  */
2032
- export type GetChannelRequestJson = {
2155
+ export type GetEndpointRequestJson = {
2033
2156
  /**
2034
2157
  * @generated from field: string job_id = 1;
2035
2158
  */
@@ -2039,7 +2162,7 @@ export type GetChannelRequestJson = {
2039
2162
  */
2040
2163
  name?: string;
2041
2164
  /**
2042
- * An event channel's service, by its ID, in place of job_id.
2165
+ * An event endpoint's service, by its ID, in place of job_id.
2043
2166
  *
2044
2167
  * @generated from field: string service = 3;
2045
2168
  */
@@ -2053,41 +2176,41 @@ export type GetChannelRequestJson = {
2053
2176
  grant?: string;
2054
2177
  };
2055
2178
  /**
2056
- * Describes the message toshi.workspace.v1.GetChannelRequest.
2057
- * Use `create(GetChannelRequestSchema)` to create a new message.
2179
+ * Describes the message toshi.workspace.v1.GetEndpointRequest.
2180
+ * Use `create(GetEndpointRequestSchema)` to create a new message.
2058
2181
  */
2059
- export declare const GetChannelRequestSchema: GenMessage<GetChannelRequest, {
2060
- jsonType: GetChannelRequestJson;
2182
+ export declare const GetEndpointRequestSchema: GenMessage<GetEndpointRequest, {
2183
+ jsonType: GetEndpointRequestJson;
2061
2184
  }>;
2062
2185
  /**
2063
- * @generated from message toshi.workspace.v1.GetChannelResponse
2186
+ * @generated from message toshi.workspace.v1.GetEndpointResponse
2064
2187
  */
2065
- export type GetChannelResponse = Message<"toshi.workspace.v1.GetChannelResponse"> & {
2188
+ export type GetEndpointResponse = Message<"toshi.workspace.v1.GetEndpointResponse"> & {
2066
2189
  /**
2067
- * @generated from field: toshi.workspace.v1.Channel channel = 1;
2190
+ * @generated from field: toshi.workspace.v1.Endpoint endpoint = 1;
2068
2191
  */
2069
- channel?: Channel | undefined;
2192
+ endpoint?: Endpoint | undefined;
2070
2193
  };
2071
2194
  /**
2072
- * @generated from message toshi.workspace.v1.GetChannelResponse
2195
+ * @generated from message toshi.workspace.v1.GetEndpointResponse
2073
2196
  */
2074
- export type GetChannelResponseJson = {
2197
+ export type GetEndpointResponseJson = {
2075
2198
  /**
2076
- * @generated from field: toshi.workspace.v1.Channel channel = 1;
2199
+ * @generated from field: toshi.workspace.v1.Endpoint endpoint = 1;
2077
2200
  */
2078
- channel?: ChannelJson;
2201
+ endpoint?: EndpointJson;
2079
2202
  };
2080
2203
  /**
2081
- * Describes the message toshi.workspace.v1.GetChannelResponse.
2082
- * Use `create(GetChannelResponseSchema)` to create a new message.
2204
+ * Describes the message toshi.workspace.v1.GetEndpointResponse.
2205
+ * Use `create(GetEndpointResponseSchema)` to create a new message.
2083
2206
  */
2084
- export declare const GetChannelResponseSchema: GenMessage<GetChannelResponse, {
2085
- jsonType: GetChannelResponseJson;
2207
+ export declare const GetEndpointResponseSchema: GenMessage<GetEndpointResponse, {
2208
+ jsonType: GetEndpointResponseJson;
2086
2209
  }>;
2087
2210
  /**
2088
- * @generated from message toshi.workspace.v1.GetChannelPolicyRequest
2211
+ * @generated from message toshi.workspace.v1.GetEndpointPolicyRequest
2089
2212
  */
2090
- export type GetChannelPolicyRequest = Message<"toshi.workspace.v1.GetChannelPolicyRequest"> & {
2213
+ export type GetEndpointPolicyRequest = Message<"toshi.workspace.v1.GetEndpointPolicyRequest"> & {
2091
2214
  /**
2092
2215
  * @generated from field: string job_id = 1;
2093
2216
  */
@@ -2097,16 +2220,16 @@ export type GetChannelPolicyRequest = Message<"toshi.workspace.v1.GetChannelPoli
2097
2220
  */
2098
2221
  name: string;
2099
2222
  /**
2100
- * An event channel's service, by its ID, in place of job_id.
2223
+ * An event endpoint's service, by its ID, in place of job_id.
2101
2224
  *
2102
2225
  * @generated from field: string service = 3;
2103
2226
  */
2104
2227
  service: string;
2105
2228
  };
2106
2229
  /**
2107
- * @generated from message toshi.workspace.v1.GetChannelPolicyRequest
2230
+ * @generated from message toshi.workspace.v1.GetEndpointPolicyRequest
2108
2231
  */
2109
- export type GetChannelPolicyRequestJson = {
2232
+ export type GetEndpointPolicyRequestJson = {
2110
2233
  /**
2111
2234
  * @generated from field: string job_id = 1;
2112
2235
  */
@@ -2116,48 +2239,48 @@ export type GetChannelPolicyRequestJson = {
2116
2239
  */
2117
2240
  name?: string;
2118
2241
  /**
2119
- * An event channel's service, by its ID, in place of job_id.
2242
+ * An event endpoint's service, by its ID, in place of job_id.
2120
2243
  *
2121
2244
  * @generated from field: string service = 3;
2122
2245
  */
2123
2246
  service?: string;
2124
2247
  };
2125
2248
  /**
2126
- * Describes the message toshi.workspace.v1.GetChannelPolicyRequest.
2127
- * Use `create(GetChannelPolicyRequestSchema)` to create a new message.
2249
+ * Describes the message toshi.workspace.v1.GetEndpointPolicyRequest.
2250
+ * Use `create(GetEndpointPolicyRequestSchema)` to create a new message.
2128
2251
  */
2129
- export declare const GetChannelPolicyRequestSchema: GenMessage<GetChannelPolicyRequest, {
2130
- jsonType: GetChannelPolicyRequestJson;
2252
+ export declare const GetEndpointPolicyRequestSchema: GenMessage<GetEndpointPolicyRequest, {
2253
+ jsonType: GetEndpointPolicyRequestJson;
2131
2254
  }>;
2132
2255
  /**
2133
- * @generated from message toshi.workspace.v1.GetChannelPolicyResponse
2256
+ * @generated from message toshi.workspace.v1.GetEndpointPolicyResponse
2134
2257
  */
2135
- export type GetChannelPolicyResponse = Message<"toshi.workspace.v1.GetChannelPolicyResponse"> & {
2258
+ export type GetEndpointPolicyResponse = Message<"toshi.workspace.v1.GetEndpointPolicyResponse"> & {
2136
2259
  /**
2137
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
2260
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 1;
2138
2261
  */
2139
- policy?: ChannelPolicy | undefined;
2262
+ policy?: EndpointPolicy | undefined;
2140
2263
  };
2141
2264
  /**
2142
- * @generated from message toshi.workspace.v1.GetChannelPolicyResponse
2265
+ * @generated from message toshi.workspace.v1.GetEndpointPolicyResponse
2143
2266
  */
2144
- export type GetChannelPolicyResponseJson = {
2267
+ export type GetEndpointPolicyResponseJson = {
2145
2268
  /**
2146
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
2269
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 1;
2147
2270
  */
2148
- policy?: ChannelPolicyJson;
2271
+ policy?: EndpointPolicyJson;
2149
2272
  };
2150
2273
  /**
2151
- * Describes the message toshi.workspace.v1.GetChannelPolicyResponse.
2152
- * Use `create(GetChannelPolicyResponseSchema)` to create a new message.
2274
+ * Describes the message toshi.workspace.v1.GetEndpointPolicyResponse.
2275
+ * Use `create(GetEndpointPolicyResponseSchema)` to create a new message.
2153
2276
  */
2154
- export declare const GetChannelPolicyResponseSchema: GenMessage<GetChannelPolicyResponse, {
2155
- jsonType: GetChannelPolicyResponseJson;
2277
+ export declare const GetEndpointPolicyResponseSchema: GenMessage<GetEndpointPolicyResponse, {
2278
+ jsonType: GetEndpointPolicyResponseJson;
2156
2279
  }>;
2157
2280
  /**
2158
- * @generated from message toshi.workspace.v1.SetChannelPolicyRequest
2281
+ * @generated from message toshi.workspace.v1.SetEndpointPolicyRequest
2159
2282
  */
2160
- export type SetChannelPolicyRequest = Message<"toshi.workspace.v1.SetChannelPolicyRequest"> & {
2283
+ export type SetEndpointPolicyRequest = Message<"toshi.workspace.v1.SetEndpointPolicyRequest"> & {
2161
2284
  /**
2162
2285
  * @generated from field: string job_id = 1;
2163
2286
  */
@@ -2169,28 +2292,28 @@ export type SetChannelPolicyRequest = Message<"toshi.workspace.v1.SetChannelPoli
2169
2292
  /**
2170
2293
  * The whole document, with the version it was read at.
2171
2294
  *
2172
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 3;
2295
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 3;
2173
2296
  */
2174
- policy?: ChannelPolicy | undefined;
2297
+ policy?: EndpointPolicy | undefined;
2175
2298
  /**
2176
- * An event channel's service, by its ID, in place of job_id.
2299
+ * An event endpoint's service, by its ID, in place of job_id.
2177
2300
  *
2178
2301
  * @generated from field: string service = 4;
2179
2302
  */
2180
2303
  service: string;
2181
2304
  /**
2182
- * What the change does to a stream channel's attached clients; unset
2183
- * keeps them. DRAIN and END on an http or an event channel are
2305
+ * What the change does to a stream endpoint's attached clients; unset
2306
+ * keeps them. DRAIN and END on an http or an event endpoint are
2184
2307
  * INVALID_ARGUMENT.
2185
2308
  *
2186
- * @generated from field: toshi.workspace.v1.ChannelStreams streams = 5;
2309
+ * @generated from field: toshi.workspace.v1.EndpointStreams streams = 5;
2187
2310
  */
2188
- streams: ChannelStreams;
2311
+ streams: EndpointStreams;
2189
2312
  };
2190
2313
  /**
2191
- * @generated from message toshi.workspace.v1.SetChannelPolicyRequest
2314
+ * @generated from message toshi.workspace.v1.SetEndpointPolicyRequest
2192
2315
  */
2193
- export type SetChannelPolicyRequestJson = {
2316
+ export type SetEndpointPolicyRequestJson = {
2194
2317
  /**
2195
2318
  * @generated from field: string job_id = 1;
2196
2319
  */
@@ -2202,64 +2325,64 @@ export type SetChannelPolicyRequestJson = {
2202
2325
  /**
2203
2326
  * The whole document, with the version it was read at.
2204
2327
  *
2205
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 3;
2328
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 3;
2206
2329
  */
2207
- policy?: ChannelPolicyJson;
2330
+ policy?: EndpointPolicyJson;
2208
2331
  /**
2209
- * An event channel's service, by its ID, in place of job_id.
2332
+ * An event endpoint's service, by its ID, in place of job_id.
2210
2333
  *
2211
2334
  * @generated from field: string service = 4;
2212
2335
  */
2213
2336
  service?: string;
2214
2337
  /**
2215
- * What the change does to a stream channel's attached clients; unset
2216
- * keeps them. DRAIN and END on an http or an event channel are
2338
+ * What the change does to a stream endpoint's attached clients; unset
2339
+ * keeps them. DRAIN and END on an http or an event endpoint are
2217
2340
  * INVALID_ARGUMENT.
2218
2341
  *
2219
- * @generated from field: toshi.workspace.v1.ChannelStreams streams = 5;
2342
+ * @generated from field: toshi.workspace.v1.EndpointStreams streams = 5;
2220
2343
  */
2221
- streams?: ChannelStreamsJson;
2344
+ streams?: EndpointStreamsJson;
2222
2345
  };
2223
2346
  /**
2224
- * Describes the message toshi.workspace.v1.SetChannelPolicyRequest.
2225
- * Use `create(SetChannelPolicyRequestSchema)` to create a new message.
2347
+ * Describes the message toshi.workspace.v1.SetEndpointPolicyRequest.
2348
+ * Use `create(SetEndpointPolicyRequestSchema)` to create a new message.
2226
2349
  */
2227
- export declare const SetChannelPolicyRequestSchema: GenMessage<SetChannelPolicyRequest, {
2228
- jsonType: SetChannelPolicyRequestJson;
2350
+ export declare const SetEndpointPolicyRequestSchema: GenMessage<SetEndpointPolicyRequest, {
2351
+ jsonType: SetEndpointPolicyRequestJson;
2229
2352
  }>;
2230
2353
  /**
2231
- * @generated from message toshi.workspace.v1.SetChannelPolicyResponse
2354
+ * @generated from message toshi.workspace.v1.SetEndpointPolicyResponse
2232
2355
  */
2233
- export type SetChannelPolicyResponse = Message<"toshi.workspace.v1.SetChannelPolicyResponse"> & {
2356
+ export type SetEndpointPolicyResponse = Message<"toshi.workspace.v1.SetEndpointPolicyResponse"> & {
2234
2357
  /**
2235
2358
  * The document stored, at its new version.
2236
2359
  *
2237
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
2360
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 1;
2238
2361
  */
2239
- policy?: ChannelPolicy | undefined;
2362
+ policy?: EndpointPolicy | undefined;
2240
2363
  };
2241
2364
  /**
2242
- * @generated from message toshi.workspace.v1.SetChannelPolicyResponse
2365
+ * @generated from message toshi.workspace.v1.SetEndpointPolicyResponse
2243
2366
  */
2244
- export type SetChannelPolicyResponseJson = {
2367
+ export type SetEndpointPolicyResponseJson = {
2245
2368
  /**
2246
2369
  * The document stored, at its new version.
2247
2370
  *
2248
- * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
2371
+ * @generated from field: toshi.workspace.v1.EndpointPolicy policy = 1;
2249
2372
  */
2250
- policy?: ChannelPolicyJson;
2373
+ policy?: EndpointPolicyJson;
2251
2374
  };
2252
2375
  /**
2253
- * Describes the message toshi.workspace.v1.SetChannelPolicyResponse.
2254
- * Use `create(SetChannelPolicyResponseSchema)` to create a new message.
2376
+ * Describes the message toshi.workspace.v1.SetEndpointPolicyResponse.
2377
+ * Use `create(SetEndpointPolicyResponseSchema)` to create a new message.
2255
2378
  */
2256
- export declare const SetChannelPolicyResponseSchema: GenMessage<SetChannelPolicyResponse, {
2257
- jsonType: SetChannelPolicyResponseJson;
2379
+ export declare const SetEndpointPolicyResponseSchema: GenMessage<SetEndpointPolicyResponse, {
2380
+ jsonType: SetEndpointPolicyResponseJson;
2258
2381
  }>;
2259
2382
  /**
2260
- * @generated from message toshi.workspace.v1.ListChannelRequestsRequest
2383
+ * @generated from message toshi.workspace.v1.ListEndpointRequestsRequest
2261
2384
  */
2262
- export type ListChannelRequestsRequest = Message<"toshi.workspace.v1.ListChannelRequestsRequest"> & {
2385
+ export type ListEndpointRequestsRequest = Message<"toshi.workspace.v1.ListEndpointRequestsRequest"> & {
2263
2386
  /**
2264
2387
  * @generated from field: string job_id = 1;
2265
2388
  */
@@ -2324,9 +2447,9 @@ export type ListChannelRequestsRequest = Message<"toshi.workspace.v1.ListChannel
2324
2447
  pathPrefix: string;
2325
2448
  };
2326
2449
  /**
2327
- * @generated from message toshi.workspace.v1.ListChannelRequestsRequest
2450
+ * @generated from message toshi.workspace.v1.ListEndpointRequestsRequest
2328
2451
  */
2329
- export type ListChannelRequestsRequestJson = {
2452
+ export type ListEndpointRequestsRequestJson = {
2330
2453
  /**
2331
2454
  * @generated from field: string job_id = 1;
2332
2455
  */
@@ -2391,20 +2514,20 @@ export type ListChannelRequestsRequestJson = {
2391
2514
  pathPrefix?: string;
2392
2515
  };
2393
2516
  /**
2394
- * Describes the message toshi.workspace.v1.ListChannelRequestsRequest.
2395
- * Use `create(ListChannelRequestsRequestSchema)` to create a new message.
2517
+ * Describes the message toshi.workspace.v1.ListEndpointRequestsRequest.
2518
+ * Use `create(ListEndpointRequestsRequestSchema)` to create a new message.
2396
2519
  */
2397
- export declare const ListChannelRequestsRequestSchema: GenMessage<ListChannelRequestsRequest, {
2398
- jsonType: ListChannelRequestsRequestJson;
2520
+ export declare const ListEndpointRequestsRequestSchema: GenMessage<ListEndpointRequestsRequest, {
2521
+ jsonType: ListEndpointRequestsRequestJson;
2399
2522
  }>;
2400
2523
  /**
2401
- * @generated from message toshi.workspace.v1.ListChannelRequestsResponse
2524
+ * @generated from message toshi.workspace.v1.ListEndpointRequestsResponse
2402
2525
  */
2403
- export type ListChannelRequestsResponse = Message<"toshi.workspace.v1.ListChannelRequestsResponse"> & {
2526
+ export type ListEndpointRequestsResponse = Message<"toshi.workspace.v1.ListEndpointRequestsResponse"> & {
2404
2527
  /**
2405
- * @generated from field: repeated toshi.workspace.v1.ChannelRequest requests = 1;
2528
+ * @generated from field: repeated toshi.workspace.v1.EndpointRequest requests = 1;
2406
2529
  */
2407
- requests: ChannelRequest[];
2530
+ requests: EndpointRequest[];
2408
2531
  /**
2409
2532
  * Empty on the last page.
2410
2533
  *
@@ -2424,13 +2547,13 @@ export type ListChannelRequestsResponse = Message<"toshi.workspace.v1.ListChanne
2424
2547
  newestSeq: bigint;
2425
2548
  };
2426
2549
  /**
2427
- * @generated from message toshi.workspace.v1.ListChannelRequestsResponse
2550
+ * @generated from message toshi.workspace.v1.ListEndpointRequestsResponse
2428
2551
  */
2429
- export type ListChannelRequestsResponseJson = {
2552
+ export type ListEndpointRequestsResponseJson = {
2430
2553
  /**
2431
- * @generated from field: repeated toshi.workspace.v1.ChannelRequest requests = 1;
2554
+ * @generated from field: repeated toshi.workspace.v1.EndpointRequest requests = 1;
2432
2555
  */
2433
- requests?: ChannelRequestJson[];
2556
+ requests?: EndpointRequestJson[];
2434
2557
  /**
2435
2558
  * Empty on the last page.
2436
2559
  *
@@ -2450,16 +2573,16 @@ export type ListChannelRequestsResponseJson = {
2450
2573
  newestSeq?: string;
2451
2574
  };
2452
2575
  /**
2453
- * Describes the message toshi.workspace.v1.ListChannelRequestsResponse.
2454
- * Use `create(ListChannelRequestsResponseSchema)` to create a new message.
2576
+ * Describes the message toshi.workspace.v1.ListEndpointRequestsResponse.
2577
+ * Use `create(ListEndpointRequestsResponseSchema)` to create a new message.
2455
2578
  */
2456
- export declare const ListChannelRequestsResponseSchema: GenMessage<ListChannelRequestsResponse, {
2457
- jsonType: ListChannelRequestsResponseJson;
2579
+ export declare const ListEndpointRequestsResponseSchema: GenMessage<ListEndpointRequestsResponse, {
2580
+ jsonType: ListEndpointRequestsResponseJson;
2458
2581
  }>;
2459
2582
  /**
2460
- * @generated from message toshi.workspace.v1.GetChannelRequestRequest
2583
+ * @generated from message toshi.workspace.v1.GetEndpointRequestRequest
2461
2584
  */
2462
- export type GetChannelRequestRequest = Message<"toshi.workspace.v1.GetChannelRequestRequest"> & {
2585
+ export type GetEndpointRequestRequest = Message<"toshi.workspace.v1.GetEndpointRequestRequest"> & {
2463
2586
  /**
2464
2587
  * @generated from field: string job_id = 1;
2465
2588
  */
@@ -2474,9 +2597,9 @@ export type GetChannelRequestRequest = Message<"toshi.workspace.v1.GetChannelReq
2474
2597
  seq: bigint;
2475
2598
  };
2476
2599
  /**
2477
- * @generated from message toshi.workspace.v1.GetChannelRequestRequest
2600
+ * @generated from message toshi.workspace.v1.GetEndpointRequestRequest
2478
2601
  */
2479
- export type GetChannelRequestRequestJson = {
2602
+ export type GetEndpointRequestRequestJson = {
2480
2603
  /**
2481
2604
  * @generated from field: string job_id = 1;
2482
2605
  */
@@ -2491,41 +2614,41 @@ export type GetChannelRequestRequestJson = {
2491
2614
  seq?: string;
2492
2615
  };
2493
2616
  /**
2494
- * Describes the message toshi.workspace.v1.GetChannelRequestRequest.
2495
- * Use `create(GetChannelRequestRequestSchema)` to create a new message.
2617
+ * Describes the message toshi.workspace.v1.GetEndpointRequestRequest.
2618
+ * Use `create(GetEndpointRequestRequestSchema)` to create a new message.
2496
2619
  */
2497
- export declare const GetChannelRequestRequestSchema: GenMessage<GetChannelRequestRequest, {
2498
- jsonType: GetChannelRequestRequestJson;
2620
+ export declare const GetEndpointRequestRequestSchema: GenMessage<GetEndpointRequestRequest, {
2621
+ jsonType: GetEndpointRequestRequestJson;
2499
2622
  }>;
2500
2623
  /**
2501
- * @generated from message toshi.workspace.v1.GetChannelRequestResponse
2624
+ * @generated from message toshi.workspace.v1.GetEndpointRequestResponse
2502
2625
  */
2503
- export type GetChannelRequestResponse = Message<"toshi.workspace.v1.GetChannelRequestResponse"> & {
2626
+ export type GetEndpointRequestResponse = Message<"toshi.workspace.v1.GetEndpointRequestResponse"> & {
2504
2627
  /**
2505
- * @generated from field: toshi.workspace.v1.ChannelRequest request = 1;
2628
+ * @generated from field: toshi.workspace.v1.EndpointRequest request = 1;
2506
2629
  */
2507
- request?: ChannelRequest | undefined;
2630
+ request?: EndpointRequest | undefined;
2508
2631
  };
2509
2632
  /**
2510
- * @generated from message toshi.workspace.v1.GetChannelRequestResponse
2633
+ * @generated from message toshi.workspace.v1.GetEndpointRequestResponse
2511
2634
  */
2512
- export type GetChannelRequestResponseJson = {
2635
+ export type GetEndpointRequestResponseJson = {
2513
2636
  /**
2514
- * @generated from field: toshi.workspace.v1.ChannelRequest request = 1;
2637
+ * @generated from field: toshi.workspace.v1.EndpointRequest request = 1;
2515
2638
  */
2516
- request?: ChannelRequestJson;
2639
+ request?: EndpointRequestJson;
2517
2640
  };
2518
2641
  /**
2519
- * Describes the message toshi.workspace.v1.GetChannelRequestResponse.
2520
- * Use `create(GetChannelRequestResponseSchema)` to create a new message.
2642
+ * Describes the message toshi.workspace.v1.GetEndpointRequestResponse.
2643
+ * Use `create(GetEndpointRequestResponseSchema)` to create a new message.
2521
2644
  */
2522
- export declare const GetChannelRequestResponseSchema: GenMessage<GetChannelRequestResponse, {
2523
- jsonType: GetChannelRequestResponseJson;
2645
+ export declare const GetEndpointRequestResponseSchema: GenMessage<GetEndpointRequestResponse, {
2646
+ jsonType: GetEndpointRequestResponseJson;
2524
2647
  }>;
2525
2648
  /**
2526
- * @generated from message toshi.workspace.v1.ExportChannelLogRequest
2649
+ * @generated from message toshi.workspace.v1.ExportEndpointLogRequest
2527
2650
  */
2528
- export type ExportChannelLogRequest = Message<"toshi.workspace.v1.ExportChannelLogRequest"> & {
2651
+ export type ExportEndpointLogRequest = Message<"toshi.workspace.v1.ExportEndpointLogRequest"> & {
2529
2652
  /**
2530
2653
  * @generated from field: string job_id = 1;
2531
2654
  */
@@ -2535,12 +2658,12 @@ export type ExportChannelLogRequest = Message<"toshi.workspace.v1.ExportChannelL
2535
2658
  */
2536
2659
  name: string;
2537
2660
  /**
2538
- * The log to export: a stream channel's output or an http channel's
2661
+ * The log to export: a stream endpoint's output or an http endpoint's
2539
2662
  * request records.
2540
2663
  *
2541
- * @generated from field: toshi.workspace.v1.ChannelLog log = 3;
2664
+ * @generated from field: toshi.workspace.v1.EndpointLog log = 3;
2542
2665
  */
2543
- log: ChannelLog;
2666
+ log: EndpointLog;
2544
2667
  /**
2545
2668
  * The output's offsets [from, to), or the records' sequence numbers
2546
2669
  * [from, to]; unset runs from the oldest kept, or to the newest.
@@ -2565,9 +2688,9 @@ export type ExportChannelLogRequest = Message<"toshi.workspace.v1.ExportChannelL
2565
2688
  until?: Timestamp | undefined;
2566
2689
  };
2567
2690
  /**
2568
- * @generated from message toshi.workspace.v1.ExportChannelLogRequest
2691
+ * @generated from message toshi.workspace.v1.ExportEndpointLogRequest
2569
2692
  */
2570
- export type ExportChannelLogRequestJson = {
2693
+ export type ExportEndpointLogRequestJson = {
2571
2694
  /**
2572
2695
  * @generated from field: string job_id = 1;
2573
2696
  */
@@ -2577,12 +2700,12 @@ export type ExportChannelLogRequestJson = {
2577
2700
  */
2578
2701
  name?: string;
2579
2702
  /**
2580
- * The log to export: a stream channel's output or an http channel's
2703
+ * The log to export: a stream endpoint's output or an http endpoint's
2581
2704
  * request records.
2582
2705
  *
2583
- * @generated from field: toshi.workspace.v1.ChannelLog log = 3;
2706
+ * @generated from field: toshi.workspace.v1.EndpointLog log = 3;
2584
2707
  */
2585
- log?: ChannelLogJson;
2708
+ log?: EndpointLogJson;
2586
2709
  /**
2587
2710
  * The output's offsets [from, to), or the records' sequence numbers
2588
2711
  * [from, to]; unset runs from the oldest kept, or to the newest.
@@ -2607,16 +2730,16 @@ export type ExportChannelLogRequestJson = {
2607
2730
  until?: TimestampJson;
2608
2731
  };
2609
2732
  /**
2610
- * Describes the message toshi.workspace.v1.ExportChannelLogRequest.
2611
- * Use `create(ExportChannelLogRequestSchema)` to create a new message.
2733
+ * Describes the message toshi.workspace.v1.ExportEndpointLogRequest.
2734
+ * Use `create(ExportEndpointLogRequestSchema)` to create a new message.
2612
2735
  */
2613
- export declare const ExportChannelLogRequestSchema: GenMessage<ExportChannelLogRequest, {
2614
- jsonType: ExportChannelLogRequestJson;
2736
+ export declare const ExportEndpointLogRequestSchema: GenMessage<ExportEndpointLogRequest, {
2737
+ jsonType: ExportEndpointLogRequestJson;
2615
2738
  }>;
2616
2739
  /**
2617
- * @generated from message toshi.workspace.v1.ExportChannelLogResponse
2740
+ * @generated from message toshi.workspace.v1.ExportEndpointLogResponse
2618
2741
  */
2619
- export type ExportChannelLogResponse = Message<"toshi.workspace.v1.ExportChannelLogResponse"> & {
2742
+ export type ExportEndpointLogResponse = Message<"toshi.workspace.v1.ExportEndpointLogResponse"> & {
2620
2743
  /**
2621
2744
  * The file's next bytes.
2622
2745
  *
@@ -2652,9 +2775,9 @@ export type ExportChannelLogResponse = Message<"toshi.workspace.v1.ExportChannel
2652
2775
  next: bigint;
2653
2776
  };
2654
2777
  /**
2655
- * @generated from message toshi.workspace.v1.ExportChannelLogResponse
2778
+ * @generated from message toshi.workspace.v1.ExportEndpointLogResponse
2656
2779
  */
2657
- export type ExportChannelLogResponseJson = {
2780
+ export type ExportEndpointLogResponseJson = {
2658
2781
  /**
2659
2782
  * The file's next bytes.
2660
2783
  *
@@ -2690,16 +2813,16 @@ export type ExportChannelLogResponseJson = {
2690
2813
  next?: string;
2691
2814
  };
2692
2815
  /**
2693
- * Describes the message toshi.workspace.v1.ExportChannelLogResponse.
2694
- * Use `create(ExportChannelLogResponseSchema)` to create a new message.
2816
+ * Describes the message toshi.workspace.v1.ExportEndpointLogResponse.
2817
+ * Use `create(ExportEndpointLogResponseSchema)` to create a new message.
2695
2818
  */
2696
- export declare const ExportChannelLogResponseSchema: GenMessage<ExportChannelLogResponse, {
2697
- jsonType: ExportChannelLogResponseJson;
2819
+ export declare const ExportEndpointLogResponseSchema: GenMessage<ExportEndpointLogResponse, {
2820
+ jsonType: ExportEndpointLogResponseJson;
2698
2821
  }>;
2699
2822
  /**
2700
- * @generated from message toshi.workspace.v1.CreateChannelConnectTokenRequest
2823
+ * @generated from message toshi.workspace.v1.CreateEndpointConnectTokenRequest
2701
2824
  */
2702
- export type CreateChannelConnectTokenRequest = Message<"toshi.workspace.v1.CreateChannelConnectTokenRequest"> & {
2825
+ export type CreateEndpointConnectTokenRequest = Message<"toshi.workspace.v1.CreateEndpointConnectTokenRequest"> & {
2703
2826
  /**
2704
2827
  * @generated from field: string job_id = 1;
2705
2828
  */
@@ -2718,9 +2841,9 @@ export type CreateChannelConnectTokenRequest = Message<"toshi.workspace.v1.Creat
2718
2841
  /**
2719
2842
  * The mode the token grants the attach it admits; unset grants input.
2720
2843
  *
2721
- * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 4;
2844
+ * @generated from field: toshi.workspace.v1.EndpointAttachMode mode = 4;
2722
2845
  */
2723
- mode: ChannelAttachMode;
2846
+ mode: EndpointAttachMode;
2724
2847
  /**
2725
2848
  * A grant the caller's workspace received, to act on the owner's
2726
2849
  * sandbox's job through it (docs/grants.md).
@@ -2730,9 +2853,9 @@ export type CreateChannelConnectTokenRequest = Message<"toshi.workspace.v1.Creat
2730
2853
  grant: string;
2731
2854
  };
2732
2855
  /**
2733
- * @generated from message toshi.workspace.v1.CreateChannelConnectTokenRequest
2856
+ * @generated from message toshi.workspace.v1.CreateEndpointConnectTokenRequest
2734
2857
  */
2735
- export type CreateChannelConnectTokenRequestJson = {
2858
+ export type CreateEndpointConnectTokenRequestJson = {
2736
2859
  /**
2737
2860
  * @generated from field: string job_id = 1;
2738
2861
  */
@@ -2751,9 +2874,9 @@ export type CreateChannelConnectTokenRequestJson = {
2751
2874
  /**
2752
2875
  * The mode the token grants the attach it admits; unset grants input.
2753
2876
  *
2754
- * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 4;
2877
+ * @generated from field: toshi.workspace.v1.EndpointAttachMode mode = 4;
2755
2878
  */
2756
- mode?: ChannelAttachModeJson;
2879
+ mode?: EndpointAttachModeJson;
2757
2880
  /**
2758
2881
  * A grant the caller's workspace received, to act on the owner's
2759
2882
  * sandbox's job through it (docs/grants.md).
@@ -2763,18 +2886,18 @@ export type CreateChannelConnectTokenRequestJson = {
2763
2886
  grant?: string;
2764
2887
  };
2765
2888
  /**
2766
- * Describes the message toshi.workspace.v1.CreateChannelConnectTokenRequest.
2767
- * Use `create(CreateChannelConnectTokenRequestSchema)` to create a new message.
2889
+ * Describes the message toshi.workspace.v1.CreateEndpointConnectTokenRequest.
2890
+ * Use `create(CreateEndpointConnectTokenRequestSchema)` to create a new message.
2768
2891
  */
2769
- export declare const CreateChannelConnectTokenRequestSchema: GenMessage<CreateChannelConnectTokenRequest, {
2770
- jsonType: CreateChannelConnectTokenRequestJson;
2892
+ export declare const CreateEndpointConnectTokenRequestSchema: GenMessage<CreateEndpointConnectTokenRequest, {
2893
+ jsonType: CreateEndpointConnectTokenRequestJson;
2771
2894
  }>;
2772
2895
  /**
2773
- * @generated from message toshi.workspace.v1.CreateChannelConnectTokenResponse
2896
+ * @generated from message toshi.workspace.v1.CreateEndpointConnectTokenResponse
2774
2897
  */
2775
- export type CreateChannelConnectTokenResponse = Message<"toshi.workspace.v1.CreateChannelConnectTokenResponse"> & {
2898
+ export type CreateEndpointConnectTokenResponse = Message<"toshi.workspace.v1.CreateEndpointConnectTokenResponse"> & {
2776
2899
  /**
2777
- * The ID RevokeChannelConnectToken takes.
2900
+ * The ID RevokeEndpointConnectToken takes.
2778
2901
  *
2779
2902
  * @generated from field: string id = 1;
2780
2903
  */
@@ -2794,23 +2917,23 @@ export type CreateChannelConnectTokenResponse = Message<"toshi.workspace.v1.Crea
2794
2917
  */
2795
2918
  expiresAt?: Timestamp | undefined;
2796
2919
  /**
2797
- * What reaches url: toshi-channel, an upgrade of the control plane's
2920
+ * What reaches url: toshi-endpoint, an upgrade of the control plane's
2798
2921
  * connection, or https or http for a preview's host.
2799
2922
  *
2800
2923
  * @generated from field: string transport = 5;
2801
2924
  */
2802
2925
  transport: string;
2803
2926
  /**
2804
- * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 6;
2927
+ * @generated from field: toshi.workspace.v1.EndpointAttachMode mode = 6;
2805
2928
  */
2806
- mode: ChannelAttachMode;
2929
+ mode: EndpointAttachMode;
2807
2930
  };
2808
2931
  /**
2809
- * @generated from message toshi.workspace.v1.CreateChannelConnectTokenResponse
2932
+ * @generated from message toshi.workspace.v1.CreateEndpointConnectTokenResponse
2810
2933
  */
2811
- export type CreateChannelConnectTokenResponseJson = {
2934
+ export type CreateEndpointConnectTokenResponseJson = {
2812
2935
  /**
2813
- * The ID RevokeChannelConnectToken takes.
2936
+ * The ID RevokeEndpointConnectToken takes.
2814
2937
  *
2815
2938
  * @generated from field: string id = 1;
2816
2939
  */
@@ -2830,28 +2953,28 @@ export type CreateChannelConnectTokenResponseJson = {
2830
2953
  */
2831
2954
  expiresAt?: TimestampJson;
2832
2955
  /**
2833
- * What reaches url: toshi-channel, an upgrade of the control plane's
2956
+ * What reaches url: toshi-endpoint, an upgrade of the control plane's
2834
2957
  * connection, or https or http for a preview's host.
2835
2958
  *
2836
2959
  * @generated from field: string transport = 5;
2837
2960
  */
2838
2961
  transport?: string;
2839
2962
  /**
2840
- * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 6;
2963
+ * @generated from field: toshi.workspace.v1.EndpointAttachMode mode = 6;
2841
2964
  */
2842
- mode?: ChannelAttachModeJson;
2965
+ mode?: EndpointAttachModeJson;
2843
2966
  };
2844
2967
  /**
2845
- * Describes the message toshi.workspace.v1.CreateChannelConnectTokenResponse.
2846
- * Use `create(CreateChannelConnectTokenResponseSchema)` to create a new message.
2968
+ * Describes the message toshi.workspace.v1.CreateEndpointConnectTokenResponse.
2969
+ * Use `create(CreateEndpointConnectTokenResponseSchema)` to create a new message.
2847
2970
  */
2848
- export declare const CreateChannelConnectTokenResponseSchema: GenMessage<CreateChannelConnectTokenResponse, {
2849
- jsonType: CreateChannelConnectTokenResponseJson;
2971
+ export declare const CreateEndpointConnectTokenResponseSchema: GenMessage<CreateEndpointConnectTokenResponse, {
2972
+ jsonType: CreateEndpointConnectTokenResponseJson;
2850
2973
  }>;
2851
2974
  /**
2852
- * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenRequest
2975
+ * @generated from message toshi.workspace.v1.RevokeEndpointConnectTokenRequest
2853
2976
  */
2854
- export type RevokeChannelConnectTokenRequest = Message<"toshi.workspace.v1.RevokeChannelConnectTokenRequest"> & {
2977
+ export type RevokeEndpointConnectTokenRequest = Message<"toshi.workspace.v1.RevokeEndpointConnectTokenRequest"> & {
2855
2978
  /**
2856
2979
  * @generated from field: string job_id = 1;
2857
2980
  */
@@ -2868,9 +2991,9 @@ export type RevokeChannelConnectTokenRequest = Message<"toshi.workspace.v1.Revok
2868
2991
  id: string;
2869
2992
  };
2870
2993
  /**
2871
- * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenRequest
2994
+ * @generated from message toshi.workspace.v1.RevokeEndpointConnectTokenRequest
2872
2995
  */
2873
- export type RevokeChannelConnectTokenRequestJson = {
2996
+ export type RevokeEndpointConnectTokenRequestJson = {
2874
2997
  /**
2875
2998
  * @generated from field: string job_id = 1;
2876
2999
  */
@@ -2887,31 +3010,31 @@ export type RevokeChannelConnectTokenRequestJson = {
2887
3010
  id?: string;
2888
3011
  };
2889
3012
  /**
2890
- * Describes the message toshi.workspace.v1.RevokeChannelConnectTokenRequest.
2891
- * Use `create(RevokeChannelConnectTokenRequestSchema)` to create a new message.
3013
+ * Describes the message toshi.workspace.v1.RevokeEndpointConnectTokenRequest.
3014
+ * Use `create(RevokeEndpointConnectTokenRequestSchema)` to create a new message.
2892
3015
  */
2893
- export declare const RevokeChannelConnectTokenRequestSchema: GenMessage<RevokeChannelConnectTokenRequest, {
2894
- jsonType: RevokeChannelConnectTokenRequestJson;
3016
+ export declare const RevokeEndpointConnectTokenRequestSchema: GenMessage<RevokeEndpointConnectTokenRequest, {
3017
+ jsonType: RevokeEndpointConnectTokenRequestJson;
2895
3018
  }>;
2896
3019
  /**
2897
- * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenResponse
3020
+ * @generated from message toshi.workspace.v1.RevokeEndpointConnectTokenResponse
2898
3021
  */
2899
- export type RevokeChannelConnectTokenResponse = Message<"toshi.workspace.v1.RevokeChannelConnectTokenResponse"> & {};
3022
+ export type RevokeEndpointConnectTokenResponse = Message<"toshi.workspace.v1.RevokeEndpointConnectTokenResponse"> & {};
2900
3023
  /**
2901
- * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenResponse
3024
+ * @generated from message toshi.workspace.v1.RevokeEndpointConnectTokenResponse
2902
3025
  */
2903
- export type RevokeChannelConnectTokenResponseJson = {};
3026
+ export type RevokeEndpointConnectTokenResponseJson = {};
2904
3027
  /**
2905
- * Describes the message toshi.workspace.v1.RevokeChannelConnectTokenResponse.
2906
- * Use `create(RevokeChannelConnectTokenResponseSchema)` to create a new message.
3028
+ * Describes the message toshi.workspace.v1.RevokeEndpointConnectTokenResponse.
3029
+ * Use `create(RevokeEndpointConnectTokenResponseSchema)` to create a new message.
2907
3030
  */
2908
- export declare const RevokeChannelConnectTokenResponseSchema: GenMessage<RevokeChannelConnectTokenResponse, {
2909
- jsonType: RevokeChannelConnectTokenResponseJson;
3031
+ export declare const RevokeEndpointConnectTokenResponseSchema: GenMessage<RevokeEndpointConnectTokenResponse, {
3032
+ jsonType: RevokeEndpointConnectTokenResponseJson;
2910
3033
  }>;
2911
3034
  /**
2912
- * @generated from message toshi.workspace.v1.DeleteChannelRequest
3035
+ * @generated from message toshi.workspace.v1.DeleteEndpointRequest
2913
3036
  */
2914
- export type DeleteChannelRequest = Message<"toshi.workspace.v1.DeleteChannelRequest"> & {
3037
+ export type DeleteEndpointRequest = Message<"toshi.workspace.v1.DeleteEndpointRequest"> & {
2915
3038
  /**
2916
3039
  * @generated from field: string job_id = 1;
2917
3040
  */
@@ -2929,9 +3052,9 @@ export type DeleteChannelRequest = Message<"toshi.workspace.v1.DeleteChannelRequ
2929
3052
  grant: string;
2930
3053
  };
2931
3054
  /**
2932
- * @generated from message toshi.workspace.v1.DeleteChannelRequest
3055
+ * @generated from message toshi.workspace.v1.DeleteEndpointRequest
2933
3056
  */
2934
- export type DeleteChannelRequestJson = {
3057
+ export type DeleteEndpointRequestJson = {
2935
3058
  /**
2936
3059
  * @generated from field: string job_id = 1;
2937
3060
  */
@@ -2949,26 +3072,26 @@ export type DeleteChannelRequestJson = {
2949
3072
  grant?: string;
2950
3073
  };
2951
3074
  /**
2952
- * Describes the message toshi.workspace.v1.DeleteChannelRequest.
2953
- * Use `create(DeleteChannelRequestSchema)` to create a new message.
3075
+ * Describes the message toshi.workspace.v1.DeleteEndpointRequest.
3076
+ * Use `create(DeleteEndpointRequestSchema)` to create a new message.
2954
3077
  */
2955
- export declare const DeleteChannelRequestSchema: GenMessage<DeleteChannelRequest, {
2956
- jsonType: DeleteChannelRequestJson;
3078
+ export declare const DeleteEndpointRequestSchema: GenMessage<DeleteEndpointRequest, {
3079
+ jsonType: DeleteEndpointRequestJson;
2957
3080
  }>;
2958
3081
  /**
2959
- * @generated from message toshi.workspace.v1.DeleteChannelResponse
3082
+ * @generated from message toshi.workspace.v1.DeleteEndpointResponse
2960
3083
  */
2961
- export type DeleteChannelResponse = Message<"toshi.workspace.v1.DeleteChannelResponse"> & {};
3084
+ export type DeleteEndpointResponse = Message<"toshi.workspace.v1.DeleteEndpointResponse"> & {};
2962
3085
  /**
2963
- * @generated from message toshi.workspace.v1.DeleteChannelResponse
3086
+ * @generated from message toshi.workspace.v1.DeleteEndpointResponse
2964
3087
  */
2965
- export type DeleteChannelResponseJson = {};
3088
+ export type DeleteEndpointResponseJson = {};
2966
3089
  /**
2967
- * Describes the message toshi.workspace.v1.DeleteChannelResponse.
2968
- * Use `create(DeleteChannelResponseSchema)` to create a new message.
3090
+ * Describes the message toshi.workspace.v1.DeleteEndpointResponse.
3091
+ * Use `create(DeleteEndpointResponseSchema)` to create a new message.
2969
3092
  */
2970
- export declare const DeleteChannelResponseSchema: GenMessage<DeleteChannelResponse, {
2971
- jsonType: DeleteChannelResponseJson;
3093
+ export declare const DeleteEndpointResponseSchema: GenMessage<DeleteEndpointResponse, {
3094
+ jsonType: DeleteEndpointResponseJson;
2972
3095
  }>;
2973
3096
  /**
2974
3097
  * @generated from message toshi.workspace.v1.ListForwardsRequest
@@ -3057,69 +3180,69 @@ export declare const ListForwardsResponseSchema: GenMessage<ListForwardsResponse
3057
3180
  jsonType: ListForwardsResponseJson;
3058
3181
  }>;
3059
3182
  /**
3060
- * @generated from message toshi.workspace.v1.GetLinkRequest
3183
+ * @generated from message toshi.workspace.v1.GetTunnelRequest
3061
3184
  */
3062
- export type GetLinkRequest = Message<"toshi.workspace.v1.GetLinkRequest"> & {
3185
+ export type GetTunnelRequest = Message<"toshi.workspace.v1.GetTunnelRequest"> & {
3063
3186
  /**
3064
3187
  * @generated from field: string job_id = 1;
3065
3188
  */
3066
3189
  jobId: string;
3067
3190
  };
3068
3191
  /**
3069
- * @generated from message toshi.workspace.v1.GetLinkRequest
3192
+ * @generated from message toshi.workspace.v1.GetTunnelRequest
3070
3193
  */
3071
- export type GetLinkRequestJson = {
3194
+ export type GetTunnelRequestJson = {
3072
3195
  /**
3073
3196
  * @generated from field: string job_id = 1;
3074
3197
  */
3075
3198
  jobId?: string;
3076
3199
  };
3077
3200
  /**
3078
- * Describes the message toshi.workspace.v1.GetLinkRequest.
3079
- * Use `create(GetLinkRequestSchema)` to create a new message.
3201
+ * Describes the message toshi.workspace.v1.GetTunnelRequest.
3202
+ * Use `create(GetTunnelRequestSchema)` to create a new message.
3080
3203
  */
3081
- export declare const GetLinkRequestSchema: GenMessage<GetLinkRequest, {
3082
- jsonType: GetLinkRequestJson;
3204
+ export declare const GetTunnelRequestSchema: GenMessage<GetTunnelRequest, {
3205
+ jsonType: GetTunnelRequestJson;
3083
3206
  }>;
3084
3207
  /**
3085
- * @generated from message toshi.workspace.v1.GetLinkResponse
3208
+ * @generated from message toshi.workspace.v1.GetTunnelResponse
3086
3209
  */
3087
- export type GetLinkResponse = Message<"toshi.workspace.v1.GetLinkResponse"> & {
3210
+ export type GetTunnelResponse = Message<"toshi.workspace.v1.GetTunnelResponse"> & {
3088
3211
  /**
3089
- * @generated from field: toshi.workspace.v1.Link link = 1;
3212
+ * @generated from field: toshi.workspace.v1.Tunnel tunnel = 1;
3090
3213
  */
3091
- link?: Link | undefined;
3214
+ tunnel?: Tunnel | undefined;
3092
3215
  };
3093
3216
  /**
3094
- * @generated from message toshi.workspace.v1.GetLinkResponse
3217
+ * @generated from message toshi.workspace.v1.GetTunnelResponse
3095
3218
  */
3096
- export type GetLinkResponseJson = {
3219
+ export type GetTunnelResponseJson = {
3097
3220
  /**
3098
- * @generated from field: toshi.workspace.v1.Link link = 1;
3221
+ * @generated from field: toshi.workspace.v1.Tunnel tunnel = 1;
3099
3222
  */
3100
- link?: LinkJson;
3223
+ tunnel?: TunnelJson;
3101
3224
  };
3102
3225
  /**
3103
- * Describes the message toshi.workspace.v1.GetLinkResponse.
3104
- * Use `create(GetLinkResponseSchema)` to create a new message.
3226
+ * Describes the message toshi.workspace.v1.GetTunnelResponse.
3227
+ * Use `create(GetTunnelResponseSchema)` to create a new message.
3105
3228
  */
3106
- export declare const GetLinkResponseSchema: GenMessage<GetLinkResponse, {
3107
- jsonType: GetLinkResponseJson;
3229
+ export declare const GetTunnelResponseSchema: GenMessage<GetTunnelResponse, {
3230
+ jsonType: GetTunnelResponseJson;
3108
3231
  }>;
3109
3232
  /**
3110
- * @generated from message toshi.workspace.v1.SendChannelMessageRequest
3233
+ * @generated from message toshi.workspace.v1.SendEndpointMessageRequest
3111
3234
  */
3112
- export type SendChannelMessageRequest = Message<"toshi.workspace.v1.SendChannelMessageRequest"> & {
3235
+ export type SendEndpointMessageRequest = Message<"toshi.workspace.v1.SendEndpointMessageRequest"> & {
3113
3236
  /**
3114
- * The event channel's service, by its ID, and the channel's name.
3237
+ * The event endpoint's service, by its ID, and the endpoint's name.
3115
3238
  *
3116
3239
  * @generated from field: string service = 1;
3117
3240
  */
3118
3241
  service: string;
3119
3242
  /**
3120
- * @generated from field: string channel = 2;
3243
+ * @generated from field: string endpoint = 2;
3121
3244
  */
3122
- channel: string;
3245
+ endpoint: string;
3123
3246
  /**
3124
3247
  * The message's name, such as order.paid: up to 200 bytes with no space
3125
3248
  * or control character.
@@ -3134,7 +3257,7 @@ export type SendChannelMessageRequest = Message<"toshi.workspace.v1.SendChannelM
3134
3257
  */
3135
3258
  data: Uint8Array;
3136
3259
  /**
3137
- * Makes the send safe to repeat: a key the channel holds returns that
3260
+ * Makes the send safe to repeat: a key the endpoint holds returns that
3138
3261
  * message.
3139
3262
  *
3140
3263
  * @generated from field: string request_key = 5;
@@ -3142,19 +3265,19 @@ export type SendChannelMessageRequest = Message<"toshi.workspace.v1.SendChannelM
3142
3265
  requestKey: string;
3143
3266
  };
3144
3267
  /**
3145
- * @generated from message toshi.workspace.v1.SendChannelMessageRequest
3268
+ * @generated from message toshi.workspace.v1.SendEndpointMessageRequest
3146
3269
  */
3147
- export type SendChannelMessageRequestJson = {
3270
+ export type SendEndpointMessageRequestJson = {
3148
3271
  /**
3149
- * The event channel's service, by its ID, and the channel's name.
3272
+ * The event endpoint's service, by its ID, and the endpoint's name.
3150
3273
  *
3151
3274
  * @generated from field: string service = 1;
3152
3275
  */
3153
3276
  service?: string;
3154
3277
  /**
3155
- * @generated from field: string channel = 2;
3278
+ * @generated from field: string endpoint = 2;
3156
3279
  */
3157
- channel?: string;
3280
+ endpoint?: string;
3158
3281
  /**
3159
3282
  * The message's name, such as order.paid: up to 200 bytes with no space
3160
3283
  * or control character.
@@ -3169,7 +3292,7 @@ export type SendChannelMessageRequestJson = {
3169
3292
  */
3170
3293
  data?: string;
3171
3294
  /**
3172
- * Makes the send safe to repeat: a key the channel holds returns that
3295
+ * Makes the send safe to repeat: a key the endpoint holds returns that
3173
3296
  * message.
3174
3297
  *
3175
3298
  * @generated from field: string request_key = 5;
@@ -3177,16 +3300,16 @@ export type SendChannelMessageRequestJson = {
3177
3300
  requestKey?: string;
3178
3301
  };
3179
3302
  /**
3180
- * Describes the message toshi.workspace.v1.SendChannelMessageRequest.
3181
- * Use `create(SendChannelMessageRequestSchema)` to create a new message.
3303
+ * Describes the message toshi.workspace.v1.SendEndpointMessageRequest.
3304
+ * Use `create(SendEndpointMessageRequestSchema)` to create a new message.
3182
3305
  */
3183
- export declare const SendChannelMessageRequestSchema: GenMessage<SendChannelMessageRequest, {
3184
- jsonType: SendChannelMessageRequestJson;
3306
+ export declare const SendEndpointMessageRequestSchema: GenMessage<SendEndpointMessageRequest, {
3307
+ jsonType: SendEndpointMessageRequestJson;
3185
3308
  }>;
3186
3309
  /**
3187
- * @generated from message toshi.workspace.v1.SendChannelMessageResponse
3310
+ * @generated from message toshi.workspace.v1.SendEndpointMessageResponse
3188
3311
  */
3189
- export type SendChannelMessageResponse = Message<"toshi.workspace.v1.SendChannelMessageResponse"> & {
3312
+ export type SendEndpointMessageResponse = Message<"toshi.workspace.v1.SendEndpointMessageResponse"> & {
3190
3313
  /**
3191
3314
  * @generated from field: string message_id = 1;
3192
3315
  */
@@ -3199,9 +3322,9 @@ export type SendChannelMessageResponse = Message<"toshi.workspace.v1.SendChannel
3199
3322
  duplicate: boolean;
3200
3323
  };
3201
3324
  /**
3202
- * @generated from message toshi.workspace.v1.SendChannelMessageResponse
3325
+ * @generated from message toshi.workspace.v1.SendEndpointMessageResponse
3203
3326
  */
3204
- export type SendChannelMessageResponseJson = {
3327
+ export type SendEndpointMessageResponseJson = {
3205
3328
  /**
3206
3329
  * @generated from field: string message_id = 1;
3207
3330
  */
@@ -3214,32 +3337,32 @@ export type SendChannelMessageResponseJson = {
3214
3337
  duplicate?: boolean;
3215
3338
  };
3216
3339
  /**
3217
- * Describes the message toshi.workspace.v1.SendChannelMessageResponse.
3218
- * Use `create(SendChannelMessageResponseSchema)` to create a new message.
3340
+ * Describes the message toshi.workspace.v1.SendEndpointMessageResponse.
3341
+ * Use `create(SendEndpointMessageResponseSchema)` to create a new message.
3219
3342
  */
3220
- export declare const SendChannelMessageResponseSchema: GenMessage<SendChannelMessageResponse, {
3221
- jsonType: SendChannelMessageResponseJson;
3343
+ export declare const SendEndpointMessageResponseSchema: GenMessage<SendEndpointMessageResponse, {
3344
+ jsonType: SendEndpointMessageResponseJson;
3222
3345
  }>;
3223
3346
  /**
3224
- * @generated from message toshi.workspace.v1.TailChannelMessagesRequest
3347
+ * @generated from message toshi.workspace.v1.TailEndpointMessagesRequest
3225
3348
  */
3226
- export type TailChannelMessagesRequest = Message<"toshi.workspace.v1.TailChannelMessagesRequest"> & {
3349
+ export type TailEndpointMessagesRequest = Message<"toshi.workspace.v1.TailEndpointMessagesRequest"> & {
3227
3350
  /**
3228
- * The event channel's service, by its ID, and the channel's name.
3351
+ * The event endpoint's service, by its ID, and the endpoint's name.
3229
3352
  *
3230
3353
  * @generated from field: string service = 1;
3231
3354
  */
3232
3355
  service: string;
3233
3356
  /**
3234
- * @generated from field: string channel = 2;
3357
+ * @generated from field: string endpoint = 2;
3235
3358
  */
3236
- channel: string;
3359
+ endpoint: string;
3237
3360
  /**
3238
3361
  * Only messages in these states; empty is every state.
3239
3362
  *
3240
- * @generated from field: repeated toshi.workspace.v1.ChannelMessageState states = 3;
3363
+ * @generated from field: repeated toshi.workspace.v1.EndpointMessageState states = 3;
3241
3364
  */
3242
- states: ChannelMessageState[];
3365
+ states: EndpointMessageState[];
3243
3366
  /**
3244
3367
  * A next_cursor from an earlier response; empty starts at the first
3245
3368
  * message kept.
@@ -3249,25 +3372,25 @@ export type TailChannelMessagesRequest = Message<"toshi.workspace.v1.TailChannel
3249
3372
  cursor: string;
3250
3373
  };
3251
3374
  /**
3252
- * @generated from message toshi.workspace.v1.TailChannelMessagesRequest
3375
+ * @generated from message toshi.workspace.v1.TailEndpointMessagesRequest
3253
3376
  */
3254
- export type TailChannelMessagesRequestJson = {
3377
+ export type TailEndpointMessagesRequestJson = {
3255
3378
  /**
3256
- * The event channel's service, by its ID, and the channel's name.
3379
+ * The event endpoint's service, by its ID, and the endpoint's name.
3257
3380
  *
3258
3381
  * @generated from field: string service = 1;
3259
3382
  */
3260
3383
  service?: string;
3261
3384
  /**
3262
- * @generated from field: string channel = 2;
3385
+ * @generated from field: string endpoint = 2;
3263
3386
  */
3264
- channel?: string;
3387
+ endpoint?: string;
3265
3388
  /**
3266
3389
  * Only messages in these states; empty is every state.
3267
3390
  *
3268
- * @generated from field: repeated toshi.workspace.v1.ChannelMessageState states = 3;
3391
+ * @generated from field: repeated toshi.workspace.v1.EndpointMessageState states = 3;
3269
3392
  */
3270
- states?: ChannelMessageStateJson[];
3393
+ states?: EndpointMessageStateJson[];
3271
3394
  /**
3272
3395
  * A next_cursor from an earlier response; empty starts at the first
3273
3396
  * message kept.
@@ -3277,20 +3400,20 @@ export type TailChannelMessagesRequestJson = {
3277
3400
  cursor?: string;
3278
3401
  };
3279
3402
  /**
3280
- * Describes the message toshi.workspace.v1.TailChannelMessagesRequest.
3281
- * Use `create(TailChannelMessagesRequestSchema)` to create a new message.
3403
+ * Describes the message toshi.workspace.v1.TailEndpointMessagesRequest.
3404
+ * Use `create(TailEndpointMessagesRequestSchema)` to create a new message.
3282
3405
  */
3283
- export declare const TailChannelMessagesRequestSchema: GenMessage<TailChannelMessagesRequest, {
3284
- jsonType: TailChannelMessagesRequestJson;
3406
+ export declare const TailEndpointMessagesRequestSchema: GenMessage<TailEndpointMessagesRequest, {
3407
+ jsonType: TailEndpointMessagesRequestJson;
3285
3408
  }>;
3286
3409
  /**
3287
- * @generated from message toshi.workspace.v1.TailChannelMessagesResponse
3410
+ * @generated from message toshi.workspace.v1.TailEndpointMessagesResponse
3288
3411
  */
3289
- export type TailChannelMessagesResponse = Message<"toshi.workspace.v1.TailChannelMessagesResponse"> & {
3412
+ export type TailEndpointMessagesResponse = Message<"toshi.workspace.v1.TailEndpointMessagesResponse"> & {
3290
3413
  /**
3291
- * @generated from field: toshi.workspace.v1.ChannelMessage message = 1;
3414
+ * @generated from field: toshi.workspace.v1.EndpointMessage message = 1;
3292
3415
  */
3293
- message?: ChannelMessage | undefined;
3416
+ message?: EndpointMessage | undefined;
3294
3417
  /**
3295
3418
  * Where a later call goes on from, after this message.
3296
3419
  *
@@ -3299,13 +3422,13 @@ export type TailChannelMessagesResponse = Message<"toshi.workspace.v1.TailChanne
3299
3422
  nextCursor: string;
3300
3423
  };
3301
3424
  /**
3302
- * @generated from message toshi.workspace.v1.TailChannelMessagesResponse
3425
+ * @generated from message toshi.workspace.v1.TailEndpointMessagesResponse
3303
3426
  */
3304
- export type TailChannelMessagesResponseJson = {
3427
+ export type TailEndpointMessagesResponseJson = {
3305
3428
  /**
3306
- * @generated from field: toshi.workspace.v1.ChannelMessage message = 1;
3429
+ * @generated from field: toshi.workspace.v1.EndpointMessage message = 1;
3307
3430
  */
3308
- message?: ChannelMessageJson;
3431
+ message?: EndpointMessageJson;
3309
3432
  /**
3310
3433
  * Where a later call goes on from, after this message.
3311
3434
  *
@@ -3314,512 +3437,512 @@ export type TailChannelMessagesResponseJson = {
3314
3437
  nextCursor?: string;
3315
3438
  };
3316
3439
  /**
3317
- * Describes the message toshi.workspace.v1.TailChannelMessagesResponse.
3318
- * Use `create(TailChannelMessagesResponseSchema)` to create a new message.
3440
+ * Describes the message toshi.workspace.v1.TailEndpointMessagesResponse.
3441
+ * Use `create(TailEndpointMessagesResponseSchema)` to create a new message.
3319
3442
  */
3320
- export declare const TailChannelMessagesResponseSchema: GenMessage<TailChannelMessagesResponse, {
3321
- jsonType: TailChannelMessagesResponseJson;
3443
+ export declare const TailEndpointMessagesResponseSchema: GenMessage<TailEndpointMessagesResponse, {
3444
+ jsonType: TailEndpointMessagesResponseJson;
3322
3445
  }>;
3323
3446
  /**
3324
- * @generated from message toshi.workspace.v1.ReplayChannelMessageRequest
3447
+ * @generated from message toshi.workspace.v1.ReplayEndpointMessageRequest
3325
3448
  */
3326
- export type ReplayChannelMessageRequest = Message<"toshi.workspace.v1.ReplayChannelMessageRequest"> & {
3449
+ export type ReplayEndpointMessageRequest = Message<"toshi.workspace.v1.ReplayEndpointMessageRequest"> & {
3327
3450
  /**
3328
- * The event channel's service, by its ID, and the channel's name.
3451
+ * The event endpoint's service, by its ID, and the endpoint's name.
3329
3452
  *
3330
3453
  * @generated from field: string service = 1;
3331
3454
  */
3332
3455
  service: string;
3333
3456
  /**
3334
- * @generated from field: string channel = 2;
3457
+ * @generated from field: string endpoint = 2;
3335
3458
  */
3336
- channel: string;
3459
+ endpoint: string;
3337
3460
  /**
3338
3461
  * @generated from field: string message_id = 3;
3339
3462
  */
3340
3463
  messageId: string;
3341
3464
  };
3342
3465
  /**
3343
- * @generated from message toshi.workspace.v1.ReplayChannelMessageRequest
3466
+ * @generated from message toshi.workspace.v1.ReplayEndpointMessageRequest
3344
3467
  */
3345
- export type ReplayChannelMessageRequestJson = {
3468
+ export type ReplayEndpointMessageRequestJson = {
3346
3469
  /**
3347
- * The event channel's service, by its ID, and the channel's name.
3470
+ * The event endpoint's service, by its ID, and the endpoint's name.
3348
3471
  *
3349
3472
  * @generated from field: string service = 1;
3350
3473
  */
3351
3474
  service?: string;
3352
3475
  /**
3353
- * @generated from field: string channel = 2;
3476
+ * @generated from field: string endpoint = 2;
3354
3477
  */
3355
- channel?: string;
3478
+ endpoint?: string;
3356
3479
  /**
3357
3480
  * @generated from field: string message_id = 3;
3358
3481
  */
3359
3482
  messageId?: string;
3360
3483
  };
3361
3484
  /**
3362
- * Describes the message toshi.workspace.v1.ReplayChannelMessageRequest.
3363
- * Use `create(ReplayChannelMessageRequestSchema)` to create a new message.
3485
+ * Describes the message toshi.workspace.v1.ReplayEndpointMessageRequest.
3486
+ * Use `create(ReplayEndpointMessageRequestSchema)` to create a new message.
3364
3487
  */
3365
- export declare const ReplayChannelMessageRequestSchema: GenMessage<ReplayChannelMessageRequest, {
3366
- jsonType: ReplayChannelMessageRequestJson;
3488
+ export declare const ReplayEndpointMessageRequestSchema: GenMessage<ReplayEndpointMessageRequest, {
3489
+ jsonType: ReplayEndpointMessageRequestJson;
3367
3490
  }>;
3368
3491
  /**
3369
- * @generated from message toshi.workspace.v1.ReplayChannelMessageResponse
3492
+ * @generated from message toshi.workspace.v1.ReplayEndpointMessageResponse
3370
3493
  */
3371
- export type ReplayChannelMessageResponse = Message<"toshi.workspace.v1.ReplayChannelMessageResponse"> & {
3494
+ export type ReplayEndpointMessageResponse = Message<"toshi.workspace.v1.ReplayEndpointMessageResponse"> & {
3372
3495
  /**
3373
3496
  * The message as it now is: pending.
3374
3497
  *
3375
- * @generated from field: toshi.workspace.v1.ChannelMessage message = 1;
3498
+ * @generated from field: toshi.workspace.v1.EndpointMessage message = 1;
3376
3499
  */
3377
- message?: ChannelMessage | undefined;
3500
+ message?: EndpointMessage | undefined;
3378
3501
  };
3379
3502
  /**
3380
- * @generated from message toshi.workspace.v1.ReplayChannelMessageResponse
3503
+ * @generated from message toshi.workspace.v1.ReplayEndpointMessageResponse
3381
3504
  */
3382
- export type ReplayChannelMessageResponseJson = {
3505
+ export type ReplayEndpointMessageResponseJson = {
3383
3506
  /**
3384
3507
  * The message as it now is: pending.
3385
3508
  *
3386
- * @generated from field: toshi.workspace.v1.ChannelMessage message = 1;
3509
+ * @generated from field: toshi.workspace.v1.EndpointMessage message = 1;
3387
3510
  */
3388
- message?: ChannelMessageJson;
3511
+ message?: EndpointMessageJson;
3389
3512
  };
3390
3513
  /**
3391
- * Describes the message toshi.workspace.v1.ReplayChannelMessageResponse.
3392
- * Use `create(ReplayChannelMessageResponseSchema)` to create a new message.
3514
+ * Describes the message toshi.workspace.v1.ReplayEndpointMessageResponse.
3515
+ * Use `create(ReplayEndpointMessageResponseSchema)` to create a new message.
3393
3516
  */
3394
- export declare const ReplayChannelMessageResponseSchema: GenMessage<ReplayChannelMessageResponse, {
3395
- jsonType: ReplayChannelMessageResponseJson;
3517
+ export declare const ReplayEndpointMessageResponseSchema: GenMessage<ReplayEndpointMessageResponse, {
3518
+ jsonType: ReplayEndpointMessageResponseJson;
3396
3519
  }>;
3397
3520
  /**
3398
- * ChannelShape is how a channel carries its bytes.
3521
+ * EndpointShape is how an endpoint carries its bytes.
3399
3522
  *
3400
- * @generated from enum toshi.workspace.v1.ChannelShape
3523
+ * @generated from enum toshi.workspace.v1.EndpointShape
3401
3524
  */
3402
- export declare enum ChannelShape {
3525
+ export declare enum EndpointShape {
3403
3526
  /**
3404
- * @generated from enum value: CHANNEL_SHAPE_UNSPECIFIED = 0;
3527
+ * @generated from enum value: ENDPOINT_SHAPE_UNSPECIFIED = 0;
3405
3528
  */
3406
3529
  UNSPECIFIED = 0,
3407
3530
  /**
3408
3531
  * A port in the guest, served as HTTP.
3409
3532
  *
3410
- * @generated from enum value: CHANNEL_SHAPE_HTTP = 1;
3533
+ * @generated from enum value: ENDPOINT_SHAPE_HTTP = 1;
3411
3534
  */
3412
3535
  HTTP = 1,
3413
3536
  /**
3414
3537
  * A command in the guest, whose input and output clients attach to.
3415
3538
  *
3416
- * @generated from enum value: CHANNEL_SHAPE_STREAM = 2;
3539
+ * @generated from enum value: ENDPOINT_SHAPE_STREAM = 2;
3417
3540
  */
3418
3541
  STREAM = 2,
3419
3542
  /**
3420
3543
  * A service's queue of messages, posted to a port and path in its
3421
3544
  * guest, signed with the Standard Webhooks headers, at least once.
3422
3545
  *
3423
- * @generated from enum value: CHANNEL_SHAPE_EVENT = 3;
3546
+ * @generated from enum value: ENDPOINT_SHAPE_EVENT = 3;
3424
3547
  */
3425
3548
  EVENT = 3
3426
3549
  }
3427
3550
  /**
3428
- * ChannelShape is how a channel carries its bytes.
3551
+ * EndpointShape is how an endpoint carries its bytes.
3429
3552
  *
3430
- * @generated from enum toshi.workspace.v1.ChannelShape
3553
+ * @generated from enum toshi.workspace.v1.EndpointShape
3431
3554
  */
3432
- export type ChannelShapeJson = "CHANNEL_SHAPE_UNSPECIFIED" | "CHANNEL_SHAPE_HTTP" | "CHANNEL_SHAPE_STREAM" | "CHANNEL_SHAPE_EVENT";
3555
+ export type EndpointShapeJson = "ENDPOINT_SHAPE_UNSPECIFIED" | "ENDPOINT_SHAPE_HTTP" | "ENDPOINT_SHAPE_STREAM" | "ENDPOINT_SHAPE_EVENT";
3433
3556
  /**
3434
- * Describes the enum toshi.workspace.v1.ChannelShape.
3557
+ * Describes the enum toshi.workspace.v1.EndpointShape.
3435
3558
  */
3436
- export declare const ChannelShapeSchema: GenEnum<ChannelShape, ChannelShapeJson>;
3559
+ export declare const EndpointShapeSchema: GenEnum<EndpointShape, EndpointShapeJson>;
3437
3560
  /**
3438
- * ChannelState is where a channel is in its life.
3561
+ * EndpointState is where an endpoint is in its life.
3439
3562
  *
3440
- * @generated from enum toshi.workspace.v1.ChannelState
3563
+ * @generated from enum toshi.workspace.v1.EndpointState
3441
3564
  */
3442
- export declare enum ChannelState {
3565
+ export declare enum EndpointState {
3443
3566
  /**
3444
- * @generated from enum value: CHANNEL_STATE_UNSPECIFIED = 0;
3567
+ * @generated from enum value: ENDPOINT_STATE_UNSPECIFIED = 0;
3445
3568
  */
3446
3569
  UNSPECIFIED = 0,
3447
3570
  /**
3448
- * @generated from enum value: CHANNEL_STATE_OPEN = 1;
3571
+ * @generated from enum value: ENDPOINT_STATE_OPEN = 1;
3449
3572
  */
3450
3573
  OPEN = 1,
3451
3574
  /**
3452
- * A stream channel's process has exited; its output is still kept.
3575
+ * A stream endpoint's process has exited; its output is still kept.
3453
3576
  *
3454
- * @generated from enum value: CHANNEL_STATE_EXITED = 2;
3577
+ * @generated from enum value: ENDPOINT_STATE_EXITED = 2;
3455
3578
  */
3456
3579
  EXITED = 2,
3457
3580
  /**
3458
3581
  * Deleted, waiting for the guest to close its process.
3459
3582
  *
3460
- * @generated from enum value: CHANNEL_STATE_CLOSING = 3;
3583
+ * @generated from enum value: ENDPOINT_STATE_CLOSING = 3;
3461
3584
  */
3462
3585
  CLOSING = 3,
3463
3586
  /**
3464
- * @generated from enum value: CHANNEL_STATE_ENDED = 4;
3587
+ * @generated from enum value: ENDPOINT_STATE_ENDED = 4;
3465
3588
  */
3466
3589
  ENDED = 4
3467
3590
  }
3468
3591
  /**
3469
- * ChannelState is where a channel is in its life.
3592
+ * EndpointState is where an endpoint is in its life.
3470
3593
  *
3471
- * @generated from enum toshi.workspace.v1.ChannelState
3594
+ * @generated from enum toshi.workspace.v1.EndpointState
3472
3595
  */
3473
- export type ChannelStateJson = "CHANNEL_STATE_UNSPECIFIED" | "CHANNEL_STATE_OPEN" | "CHANNEL_STATE_EXITED" | "CHANNEL_STATE_CLOSING" | "CHANNEL_STATE_ENDED";
3596
+ export type EndpointStateJson = "ENDPOINT_STATE_UNSPECIFIED" | "ENDPOINT_STATE_OPEN" | "ENDPOINT_STATE_EXITED" | "ENDPOINT_STATE_CLOSING" | "ENDPOINT_STATE_ENDED";
3474
3597
  /**
3475
- * Describes the enum toshi.workspace.v1.ChannelState.
3598
+ * Describes the enum toshi.workspace.v1.EndpointState.
3476
3599
  */
3477
- export declare const ChannelStateSchema: GenEnum<ChannelState, ChannelStateJson>;
3600
+ export declare const EndpointStateSchema: GenEnum<EndpointState, EndpointStateJson>;
3478
3601
  /**
3479
- * ChannelAttachMode is what an attached client may do.
3602
+ * EndpointAttachMode is what an attached client may do.
3480
3603
  *
3481
- * @generated from enum toshi.workspace.v1.ChannelAttachMode
3604
+ * @generated from enum toshi.workspace.v1.EndpointAttachMode
3482
3605
  */
3483
- export declare enum ChannelAttachMode {
3606
+ export declare enum EndpointAttachMode {
3484
3607
  /**
3485
- * @generated from enum value: CHANNEL_ATTACH_MODE_UNSPECIFIED = 0;
3608
+ * @generated from enum value: ENDPOINT_ATTACH_MODE_UNSPECIFIED = 0;
3486
3609
  */
3487
3610
  UNSPECIFIED = 0,
3488
3611
  /**
3489
3612
  * The client may send input.
3490
3613
  *
3491
- * @generated from enum value: CHANNEL_ATTACH_MODE_INPUT = 1;
3614
+ * @generated from enum value: ENDPOINT_ATTACH_MODE_INPUT = 1;
3492
3615
  */
3493
3616
  INPUT = 1,
3494
3617
  /**
3495
3618
  * The client reads the output only.
3496
3619
  *
3497
- * @generated from enum value: CHANNEL_ATTACH_MODE_READ_ONLY = 2;
3620
+ * @generated from enum value: ENDPOINT_ATTACH_MODE_READ_ONLY = 2;
3498
3621
  */
3499
3622
  READ_ONLY = 2
3500
3623
  }
3501
3624
  /**
3502
- * ChannelAttachMode is what an attached client may do.
3625
+ * EndpointAttachMode is what an attached client may do.
3503
3626
  *
3504
- * @generated from enum toshi.workspace.v1.ChannelAttachMode
3627
+ * @generated from enum toshi.workspace.v1.EndpointAttachMode
3505
3628
  */
3506
- export type ChannelAttachModeJson = "CHANNEL_ATTACH_MODE_UNSPECIFIED" | "CHANNEL_ATTACH_MODE_INPUT" | "CHANNEL_ATTACH_MODE_READ_ONLY";
3629
+ export type EndpointAttachModeJson = "ENDPOINT_ATTACH_MODE_UNSPECIFIED" | "ENDPOINT_ATTACH_MODE_INPUT" | "ENDPOINT_ATTACH_MODE_READ_ONLY";
3507
3630
  /**
3508
- * Describes the enum toshi.workspace.v1.ChannelAttachMode.
3631
+ * Describes the enum toshi.workspace.v1.EndpointAttachMode.
3509
3632
  */
3510
- export declare const ChannelAttachModeSchema: GenEnum<ChannelAttachMode, ChannelAttachModeJson>;
3633
+ export declare const EndpointAttachModeSchema: GenEnum<EndpointAttachMode, EndpointAttachModeJson>;
3511
3634
  /**
3512
- * ChannelStreams is what a policy change does to a stream channel's
3635
+ * EndpointStreams is what a policy change does to a stream endpoint's
3513
3636
  * clients attached under the policy it replaces.
3514
3637
  *
3515
- * @generated from enum toshi.workspace.v1.ChannelStreams
3638
+ * @generated from enum toshi.workspace.v1.EndpointStreams
3516
3639
  */
3517
- export declare enum ChannelStreams {
3640
+ export declare enum EndpointStreams {
3518
3641
  /**
3519
3642
  * As KEEP.
3520
3643
  *
3521
- * @generated from enum value: CHANNEL_STREAMS_UNSPECIFIED = 0;
3644
+ * @generated from enum value: ENDPOINT_STREAMS_UNSPECIFIED = 0;
3522
3645
  */
3523
3646
  UNSPECIFIED = 0,
3524
3647
  /**
3525
3648
  * They stay attached; only those the new policy no longer admits, or now
3526
3649
  * grants read_only while they hold input, end.
3527
3650
  *
3528
- * @generated from enum value: CHANNEL_STREAMS_KEEP = 1;
3651
+ * @generated from enum value: ENDPOINT_STREAMS_KEEP = 1;
3529
3652
  */
3530
3653
  KEEP = 1,
3531
3654
  /**
3532
3655
  * They stay attached for up to 30 seconds, then end with the reason
3533
3656
  * "reconnect", so each client attaches again under the new policy.
3534
3657
  *
3535
- * @generated from enum value: CHANNEL_STREAMS_DRAIN = 2;
3658
+ * @generated from enum value: ENDPOINT_STREAMS_DRAIN = 2;
3536
3659
  */
3537
3660
  DRAIN = 2,
3538
3661
  /**
3539
3662
  * They end now with the reason "policy_changed".
3540
3663
  *
3541
- * @generated from enum value: CHANNEL_STREAMS_END = 3;
3664
+ * @generated from enum value: ENDPOINT_STREAMS_END = 3;
3542
3665
  */
3543
3666
  END = 3
3544
3667
  }
3545
3668
  /**
3546
- * ChannelStreams is what a policy change does to a stream channel's
3669
+ * EndpointStreams is what a policy change does to a stream endpoint's
3547
3670
  * clients attached under the policy it replaces.
3548
3671
  *
3549
- * @generated from enum toshi.workspace.v1.ChannelStreams
3672
+ * @generated from enum toshi.workspace.v1.EndpointStreams
3550
3673
  */
3551
- export type ChannelStreamsJson = "CHANNEL_STREAMS_UNSPECIFIED" | "CHANNEL_STREAMS_KEEP" | "CHANNEL_STREAMS_DRAIN" | "CHANNEL_STREAMS_END";
3674
+ export type EndpointStreamsJson = "ENDPOINT_STREAMS_UNSPECIFIED" | "ENDPOINT_STREAMS_KEEP" | "ENDPOINT_STREAMS_DRAIN" | "ENDPOINT_STREAMS_END";
3552
3675
  /**
3553
- * Describes the enum toshi.workspace.v1.ChannelStreams.
3676
+ * Describes the enum toshi.workspace.v1.EndpointStreams.
3554
3677
  */
3555
- export declare const ChannelStreamsSchema: GenEnum<ChannelStreams, ChannelStreamsJson>;
3678
+ export declare const EndpointStreamsSchema: GenEnum<EndpointStreams, EndpointStreamsJson>;
3556
3679
  /**
3557
- * ChannelLog names the log of a channel an export carries.
3680
+ * EndpointLog names the log of an endpoint an export carries.
3558
3681
  *
3559
- * @generated from enum toshi.workspace.v1.ChannelLog
3682
+ * @generated from enum toshi.workspace.v1.EndpointLog
3560
3683
  */
3561
- export declare enum ChannelLog {
3684
+ export declare enum EndpointLog {
3562
3685
  /**
3563
- * @generated from enum value: CHANNEL_LOG_UNSPECIFIED = 0;
3686
+ * @generated from enum value: ENDPOINT_LOG_UNSPECIFIED = 0;
3564
3687
  */
3565
3688
  UNSPECIFIED = 0,
3566
3689
  /**
3567
- * A stream channel's output.
3690
+ * A stream endpoint's output.
3568
3691
  *
3569
- * @generated from enum value: CHANNEL_LOG_OUTPUT = 1;
3692
+ * @generated from enum value: ENDPOINT_LOG_OUTPUT = 1;
3570
3693
  */
3571
3694
  OUTPUT = 1,
3572
3695
  /**
3573
- * An http channel's request records.
3696
+ * An http endpoint's request records.
3574
3697
  *
3575
- * @generated from enum value: CHANNEL_LOG_REQUESTS = 2;
3698
+ * @generated from enum value: ENDPOINT_LOG_REQUESTS = 2;
3576
3699
  */
3577
3700
  REQUESTS = 2
3578
3701
  }
3579
3702
  /**
3580
- * ChannelLog names the log of a channel an export carries.
3703
+ * EndpointLog names the log of an endpoint an export carries.
3581
3704
  *
3582
- * @generated from enum toshi.workspace.v1.ChannelLog
3705
+ * @generated from enum toshi.workspace.v1.EndpointLog
3583
3706
  */
3584
- export type ChannelLogJson = "CHANNEL_LOG_UNSPECIFIED" | "CHANNEL_LOG_OUTPUT" | "CHANNEL_LOG_REQUESTS";
3707
+ export type EndpointLogJson = "ENDPOINT_LOG_UNSPECIFIED" | "ENDPOINT_LOG_OUTPUT" | "ENDPOINT_LOG_REQUESTS";
3585
3708
  /**
3586
- * Describes the enum toshi.workspace.v1.ChannelLog.
3709
+ * Describes the enum toshi.workspace.v1.EndpointLog.
3587
3710
  */
3588
- export declare const ChannelLogSchema: GenEnum<ChannelLog, ChannelLogJson>;
3711
+ export declare const EndpointLogSchema: GenEnum<EndpointLog, EndpointLogJson>;
3589
3712
  /**
3590
- * ChannelMessageState is where an event channel's message is in its
3713
+ * EndpointMessageState is where an event endpoint's message is in its
3591
3714
  * delivery.
3592
3715
  *
3593
- * @generated from enum toshi.workspace.v1.ChannelMessageState
3716
+ * @generated from enum toshi.workspace.v1.EndpointMessageState
3594
3717
  */
3595
- export declare enum ChannelMessageState {
3718
+ export declare enum EndpointMessageState {
3596
3719
  /**
3597
- * @generated from enum value: CHANNEL_MESSAGE_STATE_UNSPECIFIED = 0;
3720
+ * @generated from enum value: ENDPOINT_MESSAGE_STATE_UNSPECIFIED = 0;
3598
3721
  */
3599
3722
  UNSPECIFIED = 0,
3600
3723
  /**
3601
3724
  * Waiting for its next attempt.
3602
3725
  *
3603
- * @generated from enum value: CHANNEL_MESSAGE_STATE_PENDING = 1;
3726
+ * @generated from enum value: ENDPOINT_MESSAGE_STATE_PENDING = 1;
3604
3727
  */
3605
3728
  PENDING = 1,
3606
3729
  /**
3607
3730
  * Posted, and not yet answered.
3608
3731
  *
3609
- * @generated from enum value: CHANNEL_MESSAGE_STATE_IN_FLIGHT = 2;
3732
+ * @generated from enum value: ENDPOINT_MESSAGE_STATE_IN_FLIGHT = 2;
3610
3733
  */
3611
3734
  IN_FLIGHT = 2,
3612
3735
  /**
3613
3736
  * Answered 2xx.
3614
3737
  *
3615
- * @generated from enum value: CHANNEL_MESSAGE_STATE_DELIVERED = 3;
3738
+ * @generated from enum value: ENDPOINT_MESSAGE_STATE_DELIVERED = 3;
3616
3739
  */
3617
3740
  DELIVERED = 3,
3618
3741
  /**
3619
3742
  * Parked after an hour of failed attempts from its send or replay. The
3620
- * messages after it are still delivered; ReplayChannelMessage puts it
3743
+ * messages after it are still delivered; ReplayEndpointMessage puts it
3621
3744
  * back.
3622
3745
  *
3623
- * @generated from enum value: CHANNEL_MESSAGE_STATE_FAILED = 4;
3746
+ * @generated from enum value: ENDPOINT_MESSAGE_STATE_FAILED = 4;
3624
3747
  */
3625
3748
  FAILED = 4,
3626
3749
  /**
3627
- * Its channel's keep passed before it was delivered.
3750
+ * Its endpoint's keep passed before it was delivered.
3628
3751
  *
3629
- * @generated from enum value: CHANNEL_MESSAGE_STATE_EXPIRED = 5;
3752
+ * @generated from enum value: ENDPOINT_MESSAGE_STATE_EXPIRED = 5;
3630
3753
  */
3631
3754
  EXPIRED = 5
3632
3755
  }
3633
3756
  /**
3634
- * ChannelMessageState is where an event channel's message is in its
3757
+ * EndpointMessageState is where an event endpoint's message is in its
3635
3758
  * delivery.
3636
3759
  *
3637
- * @generated from enum toshi.workspace.v1.ChannelMessageState
3760
+ * @generated from enum toshi.workspace.v1.EndpointMessageState
3638
3761
  */
3639
- export type ChannelMessageStateJson = "CHANNEL_MESSAGE_STATE_UNSPECIFIED" | "CHANNEL_MESSAGE_STATE_PENDING" | "CHANNEL_MESSAGE_STATE_IN_FLIGHT" | "CHANNEL_MESSAGE_STATE_DELIVERED" | "CHANNEL_MESSAGE_STATE_FAILED" | "CHANNEL_MESSAGE_STATE_EXPIRED";
3762
+ export type EndpointMessageStateJson = "ENDPOINT_MESSAGE_STATE_UNSPECIFIED" | "ENDPOINT_MESSAGE_STATE_PENDING" | "ENDPOINT_MESSAGE_STATE_IN_FLIGHT" | "ENDPOINT_MESSAGE_STATE_DELIVERED" | "ENDPOINT_MESSAGE_STATE_FAILED" | "ENDPOINT_MESSAGE_STATE_EXPIRED";
3640
3763
  /**
3641
- * Describes the enum toshi.workspace.v1.ChannelMessageState.
3764
+ * Describes the enum toshi.workspace.v1.EndpointMessageState.
3642
3765
  */
3643
- export declare const ChannelMessageStateSchema: GenEnum<ChannelMessageState, ChannelMessageStateJson>;
3766
+ export declare const EndpointMessageStateSchema: GenEnum<EndpointMessageState, EndpointMessageStateJson>;
3644
3767
  /**
3645
- * ChannelService manages the channels of the workspace's jobs, lists a
3646
- * job's Forwards and reads its Link. A channel is a port in the job's
3647
- * guest served as HTTP (an http channel), or a command whose input and
3648
- * output clients attach to (a stream channel). The caller's credential
3768
+ * EndpointService manages the endpoints of the workspace's jobs, lists a
3769
+ * job's Forwards and reads its Tunnel. An endpoint is a port in the job's
3770
+ * guest served as HTTP (an http endpoint), or a command whose input and
3771
+ * output clients attach to (a stream endpoint). The caller's credential
3649
3772
  * names the workspace, as for WorkloadService; a job of another workspace
3650
3773
  * is NOT_FOUND. Every call names the job by its ID as the jobs API and
3651
- * `toshi host-job list` show it, and a channel by its name on that job.
3774
+ * `toshi host-job list` show it, and an endpoint by its name on that job.
3652
3775
  *
3653
- * An event channel is a service's queue of messages, which Toshi posts to
3776
+ * An event endpoint is a service's queue of messages, which Toshi posts to
3654
3777
  * a port and path in the service's guest, in order and at least once: the
3655
3778
  * service's recipe declares it, and it lasts while the service does,
3656
3779
  * across its runs. A call names it by its service's ID and its name, in
3657
3780
  * service, never by a job.
3658
3781
  *
3659
3782
  * What carries a stream is not a call: a client attaches to a stream
3660
- * channel, and a Forward opens, on an upgrade of the control plane's
3661
- * connection, with a token from CreateChannelConnectToken. A control
3662
- * plane that serves no channels answers every call with UNIMPLEMENTED.
3783
+ * endpoint, and a Forward opens, on an upgrade of the control plane's
3784
+ * connection, with a token from CreateEndpointConnectToken. A control
3785
+ * plane that serves no endpoints answers every call with UNIMPLEMENTED.
3663
3786
  *
3664
- * @generated from service toshi.workspace.v1.ChannelService
3787
+ * @generated from service toshi.workspace.v1.EndpointService
3665
3788
  */
3666
- export declare const ChannelService: GenService<{
3789
+ export declare const EndpointService: GenService<{
3667
3790
  /**
3668
- * CreateChannel opens a channel on a running job: a port makes an http
3669
- * channel, a command a stream channel, whose process the guest starts.
3791
+ * CreateEndpoint opens an endpoint on a running job: a port makes an http
3792
+ * endpoint, a command a stream endpoint, whose process the guest starts.
3670
3793
  * A job that is not running fails with FAILED_PRECONDITION, a name the
3671
3794
  * job already has with ALREADY_EXISTS, and a sandbox's port beyond its
3672
3795
  * plan's preview ports with RESOURCE_EXHAUSTED.
3673
3796
  *
3674
- * @generated from rpc toshi.workspace.v1.ChannelService.CreateChannel
3797
+ * @generated from rpc toshi.workspace.v1.EndpointService.CreateEndpoint
3675
3798
  */
3676
- createChannel: {
3799
+ createEndpoint: {
3677
3800
  methodKind: "unary";
3678
- input: typeof CreateChannelRequestSchema;
3679
- output: typeof CreateChannelResponseSchema;
3801
+ input: typeof CreateEndpointRequestSchema;
3802
+ output: typeof CreateEndpointResponseSchema;
3680
3803
  };
3681
3804
  /**
3682
- * ListChannels lists a job's channels, or every channel of the
3805
+ * ListEndpoints lists a job's endpoints, or every endpoint of the
3683
3806
  * workspace, ended ones included, oldest first.
3684
3807
  *
3685
- * A page holds 100 channels when page_size is zero, and 1000 at most.
3808
+ * A page holds 100 endpoints when page_size is zero, and 1000 at most.
3686
3809
  *
3687
- * @generated from rpc toshi.workspace.v1.ChannelService.ListChannels
3810
+ * @generated from rpc toshi.workspace.v1.EndpointService.ListEndpoints
3688
3811
  */
3689
- listChannels: {
3812
+ listEndpoints: {
3690
3813
  methodKind: "unary";
3691
- input: typeof ListChannelsRequestSchema;
3692
- output: typeof ListChannelsResponseSchema;
3814
+ input: typeof ListEndpointsRequestSchema;
3815
+ output: typeof ListEndpointsResponseSchema;
3693
3816
  };
3694
3817
  /**
3695
- * GetChannel returns one channel, with a stream channel's clients. Its
3696
- * request is named in full: inside the service, GetChannelRequest is
3818
+ * GetEndpoint returns one endpoint, with a stream endpoint's clients. Its
3819
+ * request is named in full: inside the service, GetEndpointRequest is
3697
3820
  * the call below.
3698
3821
  *
3699
- * @generated from rpc toshi.workspace.v1.ChannelService.GetChannel
3822
+ * @generated from rpc toshi.workspace.v1.EndpointService.GetEndpoint
3700
3823
  */
3701
- getChannel: {
3824
+ getEndpoint: {
3702
3825
  methodKind: "unary";
3703
- input: typeof GetChannelRequestSchema;
3704
- output: typeof GetChannelResponseSchema;
3826
+ input: typeof GetEndpointRequestSchema;
3827
+ output: typeof GetEndpointResponseSchema;
3705
3828
  };
3706
3829
  /**
3707
- * GetChannelPolicy returns a channel's effective policy, with its
3830
+ * GetEndpointPolicy returns an endpoint's effective policy, with its
3708
3831
  * version.
3709
3832
  *
3710
- * @generated from rpc toshi.workspace.v1.ChannelService.GetChannelPolicy
3833
+ * @generated from rpc toshi.workspace.v1.EndpointService.GetEndpointPolicy
3711
3834
  */
3712
- getChannelPolicy: {
3835
+ getEndpointPolicy: {
3713
3836
  methodKind: "unary";
3714
- input: typeof GetChannelPolicyRequestSchema;
3715
- output: typeof GetChannelPolicyResponseSchema;
3837
+ input: typeof GetEndpointPolicyRequestSchema;
3838
+ output: typeof GetEndpointPolicyResponseSchema;
3716
3839
  };
3717
3840
  /**
3718
- * SetChannelPolicy replaces a channel's policy when the version it names
3841
+ * SetEndpointPolicy replaces an endpoint's policy when the version it names
3719
3842
  * is the one stored, and returns the policy at its new version. A policy
3720
3843
  * changed since that version fails with ABORTED: read it again. A
3721
- * malformed policy fails with INVALID_ARGUMENT, and one the channel
3844
+ * malformed policy fails with INVALID_ARGUMENT, and one the endpoint
3722
3845
  * refuses, such as a list without a module that may not be removed,
3723
- * with FAILED_PRECONDITION. A service's event channel, named by service
3846
+ * with FAILED_PRECONDITION. A service's event endpoint, named by service
3724
3847
  * in place of job_id, takes what its recipe's policy takes, a keep the
3725
3848
  * plan allows among it, and keeps the policy set until a deploy whose
3726
- * recipe changes the channel's policy; its set is recorded as
3727
- * service.channel_policy_set on the service.
3849
+ * recipe changes the endpoint's policy; its set is recorded as
3850
+ * service.endpoint_policy_set on the service.
3728
3851
  *
3729
- * @generated from rpc toshi.workspace.v1.ChannelService.SetChannelPolicy
3852
+ * @generated from rpc toshi.workspace.v1.EndpointService.SetEndpointPolicy
3730
3853
  */
3731
- setChannelPolicy: {
3854
+ setEndpointPolicy: {
3732
3855
  methodKind: "unary";
3733
- input: typeof SetChannelPolicyRequestSchema;
3734
- output: typeof SetChannelPolicyResponseSchema;
3856
+ input: typeof SetEndpointPolicyRequestSchema;
3857
+ output: typeof SetEndpointPolicyResponseSchema;
3735
3858
  };
3736
3859
  /**
3737
- * ListChannelRequests lists an http channel's request records the
3860
+ * ListEndpointRequests lists an http endpoint's request records the
3738
3861
  * filters select, newest first, or oldest first after after_seq,
3739
- * without their headers and bodies. A stream channel fails with
3862
+ * without their headers and bodies. A stream endpoint fails with
3740
3863
  * FAILED_PRECONDITION.
3741
3864
  *
3742
3865
  * A page holds 50 records when page_size is zero, and 500 at most.
3743
3866
  *
3744
- * @generated from rpc toshi.workspace.v1.ChannelService.ListChannelRequests
3867
+ * @generated from rpc toshi.workspace.v1.EndpointService.ListEndpointRequests
3745
3868
  */
3746
- listChannelRequests: {
3869
+ listEndpointRequests: {
3747
3870
  methodKind: "unary";
3748
- input: typeof ListChannelRequestsRequestSchema;
3749
- output: typeof ListChannelRequestsResponseSchema;
3871
+ input: typeof ListEndpointRequestsRequestSchema;
3872
+ output: typeof ListEndpointRequestsResponseSchema;
3750
3873
  };
3751
3874
  /**
3752
- * GetChannelRequest returns one request record whole. A record the
3753
- * channel no longer keeps fails with NOT_FOUND, naming the oldest kept.
3875
+ * GetEndpointRequest returns one request record whole. A record the
3876
+ * endpoint no longer keeps fails with NOT_FOUND, naming the oldest kept.
3754
3877
  *
3755
- * @generated from rpc toshi.workspace.v1.ChannelService.GetChannelRequest
3878
+ * @generated from rpc toshi.workspace.v1.EndpointService.GetEndpointRequest
3756
3879
  */
3757
- getChannelRequest: {
3880
+ getEndpointRequest: {
3758
3881
  methodKind: "unary";
3759
- input: typeof GetChannelRequestRequestSchema;
3760
- output: typeof GetChannelRequestResponseSchema;
3882
+ input: typeof GetEndpointRequestRequestSchema;
3883
+ output: typeof GetEndpointRequestResponseSchema;
3761
3884
  };
3762
3885
  /**
3763
- * ExportChannelLog streams a file of a channel's log: a stream channel's
3764
- * output between two offsets, as bytes, or an http channel's request
3886
+ * ExportEndpointLog streams a file of an endpoint's log: a stream endpoint's
3887
+ * output between two offsets, as bytes, or an http endpoint's request
3765
3888
  * records between two sequence numbers or times, one JSON line each,
3766
3889
  * oldest first. One export holds at most the control plane's export
3767
3890
  * limit, 64 MiB unless set; the first response's next says where the
3768
3891
  * following export starts. Each export is recorded in the audit log.
3769
3892
  *
3770
- * @generated from rpc toshi.workspace.v1.ChannelService.ExportChannelLog
3893
+ * @generated from rpc toshi.workspace.v1.EndpointService.ExportEndpointLog
3771
3894
  */
3772
- exportChannelLog: {
3895
+ exportEndpointLog: {
3773
3896
  methodKind: "server_streaming";
3774
- input: typeof ExportChannelLogRequestSchema;
3775
- output: typeof ExportChannelLogResponseSchema;
3897
+ input: typeof ExportEndpointLogRequestSchema;
3898
+ output: typeof ExportEndpointLogResponseSchema;
3776
3899
  };
3777
3900
  /**
3778
- * CreateChannelConnectToken mints a token that attaches one client to a
3779
- * channel, or opens a preview in a browser, once, before it expires. A
3780
- * channel the connect path would not serve fails as that path does.
3901
+ * CreateEndpointConnectToken mints a token that attaches one client to an
3902
+ * endpoint, or opens a preview in a browser, once, before it expires. An
3903
+ * endpoint the connect path would not serve fails as that path does.
3781
3904
  *
3782
- * @generated from rpc toshi.workspace.v1.ChannelService.CreateChannelConnectToken
3905
+ * @generated from rpc toshi.workspace.v1.EndpointService.CreateEndpointConnectToken
3783
3906
  */
3784
- createChannelConnectToken: {
3907
+ createEndpointConnectToken: {
3785
3908
  methodKind: "unary";
3786
- input: typeof CreateChannelConnectTokenRequestSchema;
3787
- output: typeof CreateChannelConnectTokenResponseSchema;
3909
+ input: typeof CreateEndpointConnectTokenRequestSchema;
3910
+ output: typeof CreateEndpointConnectTokenResponseSchema;
3788
3911
  };
3789
3912
  /**
3790
- * RevokeChannelConnectToken refuses a connect token from then on, on
3913
+ * RevokeEndpointConnectToken refuses a connect token from then on, on
3791
3914
  * every process of the control plane; a preview's token also ends what
3792
- * it opened. A token not minted for this channel is NOT_FOUND. A token
3915
+ * it opened. A token not minted for this endpoint is NOT_FOUND. A token
3793
3916
  * that has expired is refused already, and its revoke writes nothing.
3794
3917
  *
3795
- * @generated from rpc toshi.workspace.v1.ChannelService.RevokeChannelConnectToken
3918
+ * @generated from rpc toshi.workspace.v1.EndpointService.RevokeEndpointConnectToken
3796
3919
  */
3797
- revokeChannelConnectToken: {
3920
+ revokeEndpointConnectToken: {
3798
3921
  methodKind: "unary";
3799
- input: typeof RevokeChannelConnectTokenRequestSchema;
3800
- output: typeof RevokeChannelConnectTokenResponseSchema;
3922
+ input: typeof RevokeEndpointConnectTokenRequestSchema;
3923
+ output: typeof RevokeEndpointConnectTokenResponseSchema;
3801
3924
  };
3802
3925
  /**
3803
- * DeleteChannel ends a channel and its connections. An open stream
3804
- * channel stays, closing, until the guest has closed its process or the
3805
- * job has ended; any other channel goes at once.
3926
+ * DeleteEndpoint ends an endpoint and its connections. An open stream
3927
+ * endpoint stays, closing, until the guest has closed its process or the
3928
+ * job has ended; any other endpoint goes at once.
3806
3929
  *
3807
- * @generated from rpc toshi.workspace.v1.ChannelService.DeleteChannel
3930
+ * @generated from rpc toshi.workspace.v1.EndpointService.DeleteEndpoint
3808
3931
  */
3809
- deleteChannel: {
3932
+ deleteEndpoint: {
3810
3933
  methodKind: "unary";
3811
- input: typeof DeleteChannelRequestSchema;
3812
- output: typeof DeleteChannelResponseSchema;
3934
+ input: typeof DeleteEndpointRequestSchema;
3935
+ output: typeof DeleteEndpointResponseSchema;
3813
3936
  };
3814
3937
  /**
3815
3938
  * ListForwards lists a running job's open Forwards, oldest first; a job
3816
3939
  * that is not running has none. When a process of the control plane
3817
- * that holds the job's Link does not answer, the call fails with
3940
+ * that holds the job's Tunnel does not answer, the call fails with
3818
3941
  * UNAVAILABLE rather than answer short.
3819
3942
  *
3820
3943
  * A page holds 100 Forwards when page_size is zero, and 1000 at most.
3821
3944
  *
3822
- * @generated from rpc toshi.workspace.v1.ChannelService.ListForwards
3945
+ * @generated from rpc toshi.workspace.v1.EndpointService.ListForwards
3823
3946
  */
3824
3947
  listForwards: {
3825
3948
  methodKind: "unary";
@@ -3827,60 +3950,60 @@ export declare const ChannelService: GenService<{
3827
3950
  output: typeof ListForwardsResponseSchema;
3828
3951
  };
3829
3952
  /**
3830
- * GetLink returns the state of the Link of the runner the job holds.
3953
+ * GetTunnel returns the state of the Tunnel of the runner the job holds.
3831
3954
  *
3832
- * @generated from rpc toshi.workspace.v1.ChannelService.GetLink
3955
+ * @generated from rpc toshi.workspace.v1.EndpointService.GetTunnel
3833
3956
  */
3834
- getLink: {
3957
+ getTunnel: {
3835
3958
  methodKind: "unary";
3836
- input: typeof GetLinkRequestSchema;
3837
- output: typeof GetLinkResponseSchema;
3959
+ input: typeof GetTunnelRequestSchema;
3960
+ output: typeof GetTunnelResponseSchema;
3838
3961
  };
3839
3962
  /**
3840
- * SendChannelMessage adds a message to the end of an event channel's
3963
+ * SendEndpointMessage adds a message to the end of an event endpoint's
3841
3964
  * queue and returns its ID at once; the message waits there until it is
3842
- * delivered, parked failed, or kept past the channel's keep. A sleeping
3965
+ * delivered, parked failed, or kept past the endpoint's keep. A sleeping
3843
3966
  * on-demand service is woken. A message sent again with the same
3844
3967
  * request_key is not stored again: its ID is returned, with duplicate
3845
- * set. A caller the channel's input rule does not admit fails with
3968
+ * set. A caller the endpoint's input rule does not admit fails with
3846
3969
  * PERMISSION_DENIED; a name under a segment Toshi keeps for its own
3847
3970
  * events, data that is not JSON or past 256 KiB with INVALID_ARGUMENT.
3848
3971
  * Delivery is at least once: a post whose answer is lost is posted
3849
3972
  * again with the same webhook-id, the message ID, so a handler drops
3850
3973
  * repeats by it.
3851
3974
  *
3852
- * @generated from rpc toshi.workspace.v1.ChannelService.SendChannelMessage
3975
+ * @generated from rpc toshi.workspace.v1.EndpointService.SendEndpointMessage
3853
3976
  */
3854
- sendChannelMessage: {
3977
+ sendEndpointMessage: {
3855
3978
  methodKind: "unary";
3856
- input: typeof SendChannelMessageRequestSchema;
3857
- output: typeof SendChannelMessageResponseSchema;
3979
+ input: typeof SendEndpointMessageRequestSchema;
3980
+ output: typeof SendEndpointMessageResponseSchema;
3858
3981
  };
3859
3982
  /**
3860
- * TailChannelMessages streams an event channel's messages after the
3983
+ * TailEndpointMessages streams an event endpoint's messages after the
3861
3984
  * cursor, oldest first, then each message added after them as it is
3862
3985
  * added, until the caller ends the call. States narrows the stream to
3863
3986
  * messages in those states when it is read.
3864
3987
  *
3865
- * @generated from rpc toshi.workspace.v1.ChannelService.TailChannelMessages
3988
+ * @generated from rpc toshi.workspace.v1.EndpointService.TailEndpointMessages
3866
3989
  */
3867
- tailChannelMessages: {
3990
+ tailEndpointMessages: {
3868
3991
  methodKind: "server_streaming";
3869
- input: typeof TailChannelMessagesRequestSchema;
3870
- output: typeof TailChannelMessagesResponseSchema;
3992
+ input: typeof TailEndpointMessagesRequestSchema;
3993
+ output: typeof TailEndpointMessagesResponseSchema;
3871
3994
  };
3872
3995
  /**
3873
- * ReplayChannelMessage puts a failed, expired or delivered message of an
3874
- * event channel back in its queue under its own ID, so its webhook-id is
3996
+ * ReplayEndpointMessage puts a failed, expired or delivered message of an
3997
+ * event endpoint back in its queue under its own ID, so its webhook-id is
3875
3998
  * the same: its attempts start again from 0, and its keep runs from the
3876
3999
  * replay. A message pending or in flight fails with
3877
4000
  * FAILED_PRECONDITION.
3878
4001
  *
3879
- * @generated from rpc toshi.workspace.v1.ChannelService.ReplayChannelMessage
4002
+ * @generated from rpc toshi.workspace.v1.EndpointService.ReplayEndpointMessage
3880
4003
  */
3881
- replayChannelMessage: {
4004
+ replayEndpointMessage: {
3882
4005
  methodKind: "unary";
3883
- input: typeof ReplayChannelMessageRequestSchema;
3884
- output: typeof ReplayChannelMessageResponseSchema;
4006
+ input: typeof ReplayEndpointMessageRequestSchema;
4007
+ output: typeof ReplayEndpointMessageResponseSchema;
3885
4008
  };
3886
4009
  }>;