@toshicloud/sdk 0.2.0 → 0.3.1

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 (53) hide show
  1. package/README.md +74 -18
  2. package/dist/client.d.ts +111 -18
  3. package/dist/client.js +82 -16
  4. package/dist/errors.d.ts +9 -1
  5. package/dist/errors.js +22 -0
  6. package/dist/execute.d.ts +3 -2
  7. package/dist/execute.js +3 -3
  8. package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +25 -23
  9. package/dist/gen/toshi/workspace/v1/artifacts_pb.js +7 -7
  10. package/dist/gen/toshi/workspace/v1/audit_events_pb.d.ts +297 -0
  11. package/dist/gen/toshi/workspace/v1/audit_events_pb.js +37 -0
  12. package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +2713 -0
  13. package/dist/gen/toshi/workspace/v1/channels_pb.js +336 -0
  14. package/dist/gen/toshi/workspace/v1/display_pb.d.ts +35 -11
  15. package/dist/gen/toshi/workspace/v1/display_pb.js +2 -2
  16. package/dist/gen/toshi/workspace/v1/fillers_pb.d.ts +920 -0
  17. package/dist/gen/toshi/workspace/v1/fillers_pb.js +94 -0
  18. package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +2048 -0
  19. package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +226 -0
  20. package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +2135 -0
  21. package/dist/gen/toshi/workspace/v1/hosts_pb.js +301 -0
  22. package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +157 -3
  23. package/dist/gen/toshi/workspace/v1/projects_pb.js +2 -2
  24. package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +76 -0
  25. package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
  26. package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +175 -23
  27. package/dist/gen/toshi/workspace/v1/secrets_pb.js +9 -9
  28. package/dist/gen/toshi/workspace/v1/storage_providers_pb.d.ts +717 -0
  29. package/dist/gen/toshi/workspace/v1/storage_providers_pb.js +74 -0
  30. package/dist/gen/toshi/workspace/v1/tokens_pb.d.ts +518 -0
  31. package/dist/gen/toshi/workspace/v1/tokens_pb.js +88 -0
  32. package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +39 -1
  33. package/dist/gen/toshi/workspace/v1/volumes_pb.js +2 -2
  34. package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +62 -18
  35. package/dist/gen/toshi/workspace/v1/webhook_pb.js +3 -3
  36. package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2858 -0
  37. package/dist/gen/toshi/workspace/v1/workloads_pb.js +261 -0
  38. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +1377 -2130
  39. package/dist/gen/toshi/workspace/v1/workspace_pb.js +235 -272
  40. package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +3719 -0
  41. package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +270 -0
  42. package/dist/index.d.ts +14 -2
  43. package/dist/index.js +13 -1
  44. package/dist/output.d.ts +3 -2
  45. package/dist/output.js +2 -2
  46. package/dist/retry.js +116 -30
  47. package/dist/run.d.ts +10 -0
  48. package/dist/run.js +175 -0
  49. package/dist/wait.d.ts +10 -5
  50. package/dist/wait.js +23 -11
  51. package/dist/watch.d.ts +14 -6
  52. package/dist/watch.js +138 -85
  53. package/package.json +1 -1
@@ -0,0 +1,2713 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, DurationJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file toshi/workspace/v1/channels.proto.
6
+ */
7
+ export declare const file_toshi_workspace_v1_channels: GenFile;
8
+ /**
9
+ * @generated from message toshi.workspace.v1.Channel
10
+ */
11
+ export type Channel = Message<"toshi.workspace.v1.Channel"> & {
12
+ /**
13
+ * Assigned by the server.
14
+ *
15
+ * @generated from field: string id = 1;
16
+ */
17
+ id: string;
18
+ /**
19
+ * @generated from field: string job_id = 2;
20
+ */
21
+ jobId: string;
22
+ /**
23
+ * @generated from field: string name = 3;
24
+ */
25
+ name: string;
26
+ /**
27
+ * @generated from field: toshi.workspace.v1.ChannelShape shape = 4;
28
+ */
29
+ shape: ChannelShape;
30
+ /**
31
+ * An http channel's port in the guest.
32
+ *
33
+ * @generated from field: int32 port = 5;
34
+ */
35
+ port: number;
36
+ /**
37
+ * A stream channel's command.
38
+ *
39
+ * @generated from field: repeated string command = 6;
40
+ */
41
+ command: string[];
42
+ /**
43
+ * @generated from field: toshi.workspace.v1.ChannelState state = 7;
44
+ */
45
+ state: ChannelState;
46
+ /**
47
+ * Who created the channel, as the audit log names an actor.
48
+ *
49
+ * @generated from field: string created_by = 8;
50
+ */
51
+ createdBy: string;
52
+ /**
53
+ * @generated from field: google.protobuf.Timestamp created_at = 9;
54
+ */
55
+ createdAt?: Timestamp | undefined;
56
+ /**
57
+ * Unset while the channel lasts.
58
+ *
59
+ * @generated from field: google.protobuf.Timestamp ended_at = 10;
60
+ */
61
+ endedAt?: Timestamp | undefined;
62
+ /**
63
+ * @generated from field: string end_reason = 11;
64
+ */
65
+ endReason: string;
66
+ /**
67
+ * A stream channel's process's exit code, once it has exited.
68
+ *
69
+ * @generated from field: optional int32 exit_code = 12;
70
+ */
71
+ exitCode?: number | undefined;
72
+ /**
73
+ * The process of the control plane holding the channel, while it does.
74
+ *
75
+ * @generated from field: string owner = 13;
76
+ */
77
+ owner: string;
78
+ /**
79
+ * The offsets that bound the output kept; output_next is where the next
80
+ * byte goes.
81
+ *
82
+ * @generated from field: int64 output_start = 14;
83
+ */
84
+ outputStart: bigint;
85
+ /**
86
+ * @generated from field: int64 output_next = 15;
87
+ */
88
+ outputNext: bigint;
89
+ /**
90
+ * Whether the process's input is closed.
91
+ *
92
+ * @generated from field: bool input_closed = 16;
93
+ */
94
+ inputClosed: boolean;
95
+ /**
96
+ * The sequence numbers that bound an http channel's request records
97
+ * kept; both zero when none is.
98
+ *
99
+ * @generated from field: int64 requests_oldest = 17;
100
+ */
101
+ requestsOldest: bigint;
102
+ /**
103
+ * @generated from field: int64 requests_newest = 18;
104
+ */
105
+ requestsNewest: bigint;
106
+ /**
107
+ * The effective policy, with its version.
108
+ *
109
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 19;
110
+ */
111
+ policy?: ChannelPolicy | undefined;
112
+ /**
113
+ * A stream channel's clients, attached now or before; an http channel
114
+ * keeps none.
115
+ *
116
+ * @generated from field: repeated toshi.workspace.v1.ChannelClient clients = 20;
117
+ */
118
+ clients: ChannelClient[];
119
+ };
120
+ /**
121
+ * @generated from message toshi.workspace.v1.Channel
122
+ */
123
+ export type ChannelJson = {
124
+ /**
125
+ * Assigned by the server.
126
+ *
127
+ * @generated from field: string id = 1;
128
+ */
129
+ id?: string;
130
+ /**
131
+ * @generated from field: string job_id = 2;
132
+ */
133
+ jobId?: string;
134
+ /**
135
+ * @generated from field: string name = 3;
136
+ */
137
+ name?: string;
138
+ /**
139
+ * @generated from field: toshi.workspace.v1.ChannelShape shape = 4;
140
+ */
141
+ shape?: ChannelShapeJson;
142
+ /**
143
+ * An http channel's port in the guest.
144
+ *
145
+ * @generated from field: int32 port = 5;
146
+ */
147
+ port?: number;
148
+ /**
149
+ * A stream channel's command.
150
+ *
151
+ * @generated from field: repeated string command = 6;
152
+ */
153
+ command?: string[];
154
+ /**
155
+ * @generated from field: toshi.workspace.v1.ChannelState state = 7;
156
+ */
157
+ state?: ChannelStateJson;
158
+ /**
159
+ * Who created the channel, as the audit log names an actor.
160
+ *
161
+ * @generated from field: string created_by = 8;
162
+ */
163
+ createdBy?: string;
164
+ /**
165
+ * @generated from field: google.protobuf.Timestamp created_at = 9;
166
+ */
167
+ createdAt?: TimestampJson;
168
+ /**
169
+ * Unset while the channel lasts.
170
+ *
171
+ * @generated from field: google.protobuf.Timestamp ended_at = 10;
172
+ */
173
+ endedAt?: TimestampJson;
174
+ /**
175
+ * @generated from field: string end_reason = 11;
176
+ */
177
+ endReason?: string;
178
+ /**
179
+ * A stream channel's process's exit code, once it has exited.
180
+ *
181
+ * @generated from field: optional int32 exit_code = 12;
182
+ */
183
+ exitCode?: number;
184
+ /**
185
+ * The process of the control plane holding the channel, while it does.
186
+ *
187
+ * @generated from field: string owner = 13;
188
+ */
189
+ owner?: string;
190
+ /**
191
+ * The offsets that bound the output kept; output_next is where the next
192
+ * byte goes.
193
+ *
194
+ * @generated from field: int64 output_start = 14;
195
+ */
196
+ outputStart?: string;
197
+ /**
198
+ * @generated from field: int64 output_next = 15;
199
+ */
200
+ outputNext?: string;
201
+ /**
202
+ * Whether the process's input is closed.
203
+ *
204
+ * @generated from field: bool input_closed = 16;
205
+ */
206
+ inputClosed?: boolean;
207
+ /**
208
+ * The sequence numbers that bound an http channel's request records
209
+ * kept; both zero when none is.
210
+ *
211
+ * @generated from field: int64 requests_oldest = 17;
212
+ */
213
+ requestsOldest?: string;
214
+ /**
215
+ * @generated from field: int64 requests_newest = 18;
216
+ */
217
+ requestsNewest?: string;
218
+ /**
219
+ * The effective policy, with its version.
220
+ *
221
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 19;
222
+ */
223
+ policy?: ChannelPolicyJson;
224
+ /**
225
+ * A stream channel's clients, attached now or before; an http channel
226
+ * keeps none.
227
+ *
228
+ * @generated from field: repeated toshi.workspace.v1.ChannelClient clients = 20;
229
+ */
230
+ clients?: ChannelClientJson[];
231
+ };
232
+ /**
233
+ * Describes the message toshi.workspace.v1.Channel.
234
+ * Use `create(ChannelSchema)` to create a new message.
235
+ */
236
+ export declare const ChannelSchema: GenMessage<Channel, {
237
+ jsonType: ChannelJson;
238
+ }>;
239
+ /**
240
+ * ChannelClient is one client of a stream channel: its last attach, who
241
+ * made it, and how far it has acknowledged the output, which it goes on
242
+ * from when it attaches again.
243
+ *
244
+ * @generated from message toshi.workspace.v1.ChannelClient
245
+ */
246
+ export type ChannelClient = Message<"toshi.workspace.v1.ChannelClient"> & {
247
+ /**
248
+ * @generated from field: string id = 1;
249
+ */
250
+ id: string;
251
+ /**
252
+ * The mode granted to its last attach.
253
+ *
254
+ * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 2;
255
+ */
256
+ mode: ChannelAttachMode;
257
+ /**
258
+ * Who attached it, as created_by names an actor.
259
+ *
260
+ * @generated from field: string attached_by = 3;
261
+ */
262
+ attachedBy: string;
263
+ /**
264
+ * The device and the credential of the connect token that admitted it,
265
+ * if one did.
266
+ *
267
+ * @generated from field: string device = 4;
268
+ */
269
+ device: string;
270
+ /**
271
+ * @generated from field: string credential = 5;
272
+ */
273
+ credential: string;
274
+ /**
275
+ * @generated from field: google.protobuf.Timestamp attached_since = 6;
276
+ */
277
+ attachedSince?: Timestamp | undefined;
278
+ /**
279
+ * Its last attach or acknowledgement.
280
+ *
281
+ * @generated from field: google.protobuf.Timestamp seen_at = 7;
282
+ */
283
+ seenAt?: Timestamp | undefined;
284
+ /**
285
+ * When its last connection ended, if recorded; unset while attached.
286
+ *
287
+ * @generated from field: google.protobuf.Timestamp detached_at = 8;
288
+ */
289
+ detachedAt?: Timestamp | undefined;
290
+ /**
291
+ * @generated from field: int64 output_acked = 9;
292
+ */
293
+ outputAcked: bigint;
294
+ /**
295
+ * @generated from field: bool attached = 10;
296
+ */
297
+ attached: boolean;
298
+ };
299
+ /**
300
+ * ChannelClient is one client of a stream channel: its last attach, who
301
+ * made it, and how far it has acknowledged the output, which it goes on
302
+ * from when it attaches again.
303
+ *
304
+ * @generated from message toshi.workspace.v1.ChannelClient
305
+ */
306
+ export type ChannelClientJson = {
307
+ /**
308
+ * @generated from field: string id = 1;
309
+ */
310
+ id?: string;
311
+ /**
312
+ * The mode granted to its last attach.
313
+ *
314
+ * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 2;
315
+ */
316
+ mode?: ChannelAttachModeJson;
317
+ /**
318
+ * Who attached it, as created_by names an actor.
319
+ *
320
+ * @generated from field: string attached_by = 3;
321
+ */
322
+ attachedBy?: string;
323
+ /**
324
+ * The device and the credential of the connect token that admitted it,
325
+ * if one did.
326
+ *
327
+ * @generated from field: string device = 4;
328
+ */
329
+ device?: string;
330
+ /**
331
+ * @generated from field: string credential = 5;
332
+ */
333
+ credential?: string;
334
+ /**
335
+ * @generated from field: google.protobuf.Timestamp attached_since = 6;
336
+ */
337
+ attachedSince?: TimestampJson;
338
+ /**
339
+ * Its last attach or acknowledgement.
340
+ *
341
+ * @generated from field: google.protobuf.Timestamp seen_at = 7;
342
+ */
343
+ seenAt?: TimestampJson;
344
+ /**
345
+ * When its last connection ended, if recorded; unset while attached.
346
+ *
347
+ * @generated from field: google.protobuf.Timestamp detached_at = 8;
348
+ */
349
+ detachedAt?: TimestampJson;
350
+ /**
351
+ * @generated from field: int64 output_acked = 9;
352
+ */
353
+ outputAcked?: string;
354
+ /**
355
+ * @generated from field: bool attached = 10;
356
+ */
357
+ attached?: boolean;
358
+ };
359
+ /**
360
+ * Describes the message toshi.workspace.v1.ChannelClient.
361
+ * Use `create(ChannelClientSchema)` to create a new message.
362
+ */
363
+ export declare const ChannelClientSchema: GenMessage<ChannelClient, {
364
+ jsonType: ChannelClientJson;
365
+ }>;
366
+ /**
367
+ * ChannelPolicy is a channel's policy document, with the words a recipe's
368
+ * channel policy uses.
369
+ *
370
+ * @generated from message toshi.workspace.v1.ChannelPolicy
371
+ */
372
+ export type ChannelPolicy = Message<"toshi.workspace.v1.ChannelPolicy"> & {
373
+ /**
374
+ * Rises at each change. SetChannelPolicy names the version it was read
375
+ * at; CreateChannel takes none.
376
+ *
377
+ * @generated from field: int64 version = 1;
378
+ */
379
+ version: bigint;
380
+ /**
381
+ * Who may attach a client: workspace (the default) or creator.
382
+ *
383
+ * @generated from field: string attach = 2;
384
+ */
385
+ attach: string;
386
+ /**
387
+ * The most clients attached to a stream channel at once; unset sets no
388
+ * bound.
389
+ *
390
+ * @generated from field: optional int32 max_clients = 3;
391
+ */
392
+ maxClients?: number | undefined;
393
+ /**
394
+ * Who may send input to a stream channel: any, creator or none.
395
+ *
396
+ * @generated from field: string input = 4;
397
+ */
398
+ input: string;
399
+ /**
400
+ * How much output or how many records are kept: buffer, at least the
401
+ * newest 8 MiB, or channel, as long as the channel's record lasts.
402
+ *
403
+ * @generated from field: string keep = 5;
404
+ */
405
+ keep: string;
406
+ /**
407
+ * The ordered module list. Unset takes the shape's defaults; an empty
408
+ * list means no modules.
409
+ *
410
+ * @generated from field: toshi.workspace.v1.ChannelModuleList modules = 6;
411
+ */
412
+ modules?: ChannelModuleList | undefined;
413
+ };
414
+ /**
415
+ * ChannelPolicy is a channel's policy document, with the words a recipe's
416
+ * channel policy uses.
417
+ *
418
+ * @generated from message toshi.workspace.v1.ChannelPolicy
419
+ */
420
+ export type ChannelPolicyJson = {
421
+ /**
422
+ * Rises at each change. SetChannelPolicy names the version it was read
423
+ * at; CreateChannel takes none.
424
+ *
425
+ * @generated from field: int64 version = 1;
426
+ */
427
+ version?: string;
428
+ /**
429
+ * Who may attach a client: workspace (the default) or creator.
430
+ *
431
+ * @generated from field: string attach = 2;
432
+ */
433
+ attach?: string;
434
+ /**
435
+ * The most clients attached to a stream channel at once; unset sets no
436
+ * bound.
437
+ *
438
+ * @generated from field: optional int32 max_clients = 3;
439
+ */
440
+ maxClients?: number;
441
+ /**
442
+ * Who may send input to a stream channel: any, creator or none.
443
+ *
444
+ * @generated from field: string input = 4;
445
+ */
446
+ input?: string;
447
+ /**
448
+ * How much output or how many records are kept: buffer, at least the
449
+ * newest 8 MiB, or channel, as long as the channel's record lasts.
450
+ *
451
+ * @generated from field: string keep = 5;
452
+ */
453
+ keep?: string;
454
+ /**
455
+ * The ordered module list. Unset takes the shape's defaults; an empty
456
+ * list means no modules.
457
+ *
458
+ * @generated from field: toshi.workspace.v1.ChannelModuleList modules = 6;
459
+ */
460
+ modules?: ChannelModuleListJson;
461
+ };
462
+ /**
463
+ * Describes the message toshi.workspace.v1.ChannelPolicy.
464
+ * Use `create(ChannelPolicySchema)` to create a new message.
465
+ */
466
+ export declare const ChannelPolicySchema: GenMessage<ChannelPolicy, {
467
+ jsonType: ChannelPolicyJson;
468
+ }>;
469
+ /**
470
+ * @generated from message toshi.workspace.v1.ChannelModuleList
471
+ */
472
+ export type ChannelModuleList = Message<"toshi.workspace.v1.ChannelModuleList"> & {
473
+ /**
474
+ * @generated from field: repeated toshi.workspace.v1.ChannelModule modules = 1;
475
+ */
476
+ modules: ChannelModule[];
477
+ };
478
+ /**
479
+ * @generated from message toshi.workspace.v1.ChannelModuleList
480
+ */
481
+ export type ChannelModuleListJson = {
482
+ /**
483
+ * @generated from field: repeated toshi.workspace.v1.ChannelModule modules = 1;
484
+ */
485
+ modules?: ChannelModuleJson[];
486
+ };
487
+ /**
488
+ * Describes the message toshi.workspace.v1.ChannelModuleList.
489
+ * Use `create(ChannelModuleListSchema)` to create a new message.
490
+ */
491
+ export declare const ChannelModuleListSchema: GenMessage<ChannelModuleList, {
492
+ jsonType: ChannelModuleListJson;
493
+ }>;
494
+ /**
495
+ * ChannelModule is one entry of a policy's module list. Each kind takes
496
+ * the settings it names and no others.
497
+ *
498
+ * @generated from message toshi.workspace.v1.ChannelModule
499
+ */
500
+ export type ChannelModule = Message<"toshi.workspace.v1.ChannelModule"> & {
501
+ /**
502
+ * identity_headers, sign_in_required, ip_allowlist or record_requests.
503
+ *
504
+ * @generated from field: string kind = 1;
505
+ */
506
+ kind: string;
507
+ /**
508
+ * The requests a request module acts on; unset means every request.
509
+ *
510
+ * @generated from field: toshi.workspace.v1.ChannelMatch match = 2;
511
+ */
512
+ match?: ChannelMatch | undefined;
513
+ /**
514
+ * The address ranges an ip_allowlist admits.
515
+ *
516
+ * @generated from field: repeated string ranges = 3;
517
+ */
518
+ ranges: string[];
519
+ /**
520
+ * How much a record_requests record keeps: metadata, headers or
521
+ * bodies.
522
+ *
523
+ * @generated from field: string level = 4;
524
+ */
525
+ level: string;
526
+ /**
527
+ * The most bytes of each body a record_requests record keeps at
528
+ * bodies; zero takes the default.
529
+ *
530
+ * @generated from field: int64 body_cap = 5;
531
+ */
532
+ bodyCap: bigint;
533
+ };
534
+ /**
535
+ * ChannelModule is one entry of a policy's module list. Each kind takes
536
+ * the settings it names and no others.
537
+ *
538
+ * @generated from message toshi.workspace.v1.ChannelModule
539
+ */
540
+ export type ChannelModuleJson = {
541
+ /**
542
+ * identity_headers, sign_in_required, ip_allowlist or record_requests.
543
+ *
544
+ * @generated from field: string kind = 1;
545
+ */
546
+ kind?: string;
547
+ /**
548
+ * The requests a request module acts on; unset means every request.
549
+ *
550
+ * @generated from field: toshi.workspace.v1.ChannelMatch match = 2;
551
+ */
552
+ match?: ChannelMatchJson;
553
+ /**
554
+ * The address ranges an ip_allowlist admits.
555
+ *
556
+ * @generated from field: repeated string ranges = 3;
557
+ */
558
+ ranges?: string[];
559
+ /**
560
+ * How much a record_requests record keeps: metadata, headers or
561
+ * bodies.
562
+ *
563
+ * @generated from field: string level = 4;
564
+ */
565
+ level?: string;
566
+ /**
567
+ * The most bytes of each body a record_requests record keeps at
568
+ * bodies; zero takes the default.
569
+ *
570
+ * @generated from field: int64 body_cap = 5;
571
+ */
572
+ bodyCap?: string;
573
+ };
574
+ /**
575
+ * Describes the message toshi.workspace.v1.ChannelModule.
576
+ * Use `create(ChannelModuleSchema)` to create a new message.
577
+ */
578
+ export declare const ChannelModuleSchema: GenMessage<ChannelModule, {
579
+ jsonType: ChannelModuleJson;
580
+ }>;
581
+ /**
582
+ * ChannelMatch narrows the requests a module acts on. Every field empty
583
+ * means every request.
584
+ *
585
+ * @generated from message toshi.workspace.v1.ChannelMatch
586
+ */
587
+ export type ChannelMatch = Message<"toshi.workspace.v1.ChannelMatch"> & {
588
+ /**
589
+ * Exact hosts.
590
+ *
591
+ * @generated from field: repeated string hosts = 1;
592
+ */
593
+ hosts: string[];
594
+ /**
595
+ * Path patterns, each starting with a slash.
596
+ *
597
+ * @generated from field: repeated string paths = 2;
598
+ */
599
+ paths: string[];
600
+ /**
601
+ * HTTP methods, each in upper case.
602
+ *
603
+ * @generated from field: repeated string methods = 3;
604
+ */
605
+ methods: string[];
606
+ /**
607
+ * Header names and the exact value each must have.
608
+ *
609
+ * @generated from field: map<string, string> headers = 4;
610
+ */
611
+ headers: {
612
+ [key: string]: string;
613
+ };
614
+ };
615
+ /**
616
+ * ChannelMatch narrows the requests a module acts on. Every field empty
617
+ * means every request.
618
+ *
619
+ * @generated from message toshi.workspace.v1.ChannelMatch
620
+ */
621
+ export type ChannelMatchJson = {
622
+ /**
623
+ * Exact hosts.
624
+ *
625
+ * @generated from field: repeated string hosts = 1;
626
+ */
627
+ hosts?: string[];
628
+ /**
629
+ * Path patterns, each starting with a slash.
630
+ *
631
+ * @generated from field: repeated string paths = 2;
632
+ */
633
+ paths?: string[];
634
+ /**
635
+ * HTTP methods, each in upper case.
636
+ *
637
+ * @generated from field: repeated string methods = 3;
638
+ */
639
+ methods?: string[];
640
+ /**
641
+ * Header names and the exact value each must have.
642
+ *
643
+ * @generated from field: map<string, string> headers = 4;
644
+ */
645
+ headers?: {
646
+ [key: string]: string;
647
+ };
648
+ };
649
+ /**
650
+ * Describes the message toshi.workspace.v1.ChannelMatch.
651
+ * Use `create(ChannelMatchSchema)` to create a new message.
652
+ */
653
+ export declare const ChannelMatchSchema: GenMessage<ChannelMatch, {
654
+ jsonType: ChannelMatchJson;
655
+ }>;
656
+ /**
657
+ * ChannelRequest is one request an http channel's relay served, as its
658
+ * record keeps it.
659
+ *
660
+ * @generated from message toshi.workspace.v1.ChannelRequest
661
+ */
662
+ export type ChannelRequest = Message<"toshi.workspace.v1.ChannelRequest"> & {
663
+ /**
664
+ * @generated from field: int64 seq = 1;
665
+ */
666
+ seq: bigint;
667
+ /**
668
+ * @generated from field: google.protobuf.Timestamp arrived_at = 2;
669
+ */
670
+ arrivedAt?: Timestamp | undefined;
671
+ /**
672
+ * @generated from field: string host = 3;
673
+ */
674
+ host: string;
675
+ /**
676
+ * @generated from field: string method = 4;
677
+ */
678
+ method: string;
679
+ /**
680
+ * @generated from field: string path = 5;
681
+ */
682
+ path: string;
683
+ /**
684
+ * @generated from field: int32 status = 6;
685
+ */
686
+ status: number;
687
+ /**
688
+ * @generated from field: int64 request_bytes = 7;
689
+ */
690
+ requestBytes: bigint;
691
+ /**
692
+ * @generated from field: int64 response_bytes = 8;
693
+ */
694
+ responseBytes: bigint;
695
+ /**
696
+ * To the end of the response, or to a WebSocket's close.
697
+ *
698
+ * @generated from field: google.protobuf.Duration duration = 9;
699
+ */
700
+ duration?: Duration | undefined;
701
+ /**
702
+ * The caller, once the request path has identified one.
703
+ *
704
+ * @generated from field: toshi.workspace.v1.ChannelRequestCaller caller = 10;
705
+ */
706
+ caller?: ChannelRequestCaller | undefined;
707
+ /**
708
+ * @generated from field: string address = 11;
709
+ */
710
+ address: string;
711
+ /**
712
+ * The module that refused the request, if one did.
713
+ *
714
+ * @generated from field: string refused_by = 12;
715
+ */
716
+ refusedBy: string;
717
+ /**
718
+ * @generated from field: bool websocket = 13;
719
+ */
720
+ websocket: boolean;
721
+ /**
722
+ * The level the record was kept at: metadata, headers or bodies.
723
+ *
724
+ * @generated from field: string level = 14;
725
+ */
726
+ level: string;
727
+ /**
728
+ * At headers and bodies.
729
+ *
730
+ * @generated from field: string query = 15;
731
+ */
732
+ query: string;
733
+ /**
734
+ * @generated from field: bool query_cut = 16;
735
+ */
736
+ queryCut: boolean;
737
+ /**
738
+ * @generated from field: repeated toshi.workspace.v1.ChannelHeader request_headers = 17;
739
+ */
740
+ requestHeaders: ChannelHeader[];
741
+ /**
742
+ * @generated from field: repeated toshi.workspace.v1.ChannelHeader response_headers = 18;
743
+ */
744
+ responseHeaders: ChannelHeader[];
745
+ /**
746
+ * At bodies.
747
+ *
748
+ * @generated from field: toshi.workspace.v1.ChannelBody request_body = 19;
749
+ */
750
+ requestBody?: ChannelBody | undefined;
751
+ /**
752
+ * @generated from field: toshi.workspace.v1.ChannelBody response_body = 20;
753
+ */
754
+ responseBody?: ChannelBody | undefined;
755
+ };
756
+ /**
757
+ * ChannelRequest is one request an http channel's relay served, as its
758
+ * record keeps it.
759
+ *
760
+ * @generated from message toshi.workspace.v1.ChannelRequest
761
+ */
762
+ export type ChannelRequestJson = {
763
+ /**
764
+ * @generated from field: int64 seq = 1;
765
+ */
766
+ seq?: string;
767
+ /**
768
+ * @generated from field: google.protobuf.Timestamp arrived_at = 2;
769
+ */
770
+ arrivedAt?: TimestampJson;
771
+ /**
772
+ * @generated from field: string host = 3;
773
+ */
774
+ host?: string;
775
+ /**
776
+ * @generated from field: string method = 4;
777
+ */
778
+ method?: string;
779
+ /**
780
+ * @generated from field: string path = 5;
781
+ */
782
+ path?: string;
783
+ /**
784
+ * @generated from field: int32 status = 6;
785
+ */
786
+ status?: number;
787
+ /**
788
+ * @generated from field: int64 request_bytes = 7;
789
+ */
790
+ requestBytes?: string;
791
+ /**
792
+ * @generated from field: int64 response_bytes = 8;
793
+ */
794
+ responseBytes?: string;
795
+ /**
796
+ * To the end of the response, or to a WebSocket's close.
797
+ *
798
+ * @generated from field: google.protobuf.Duration duration = 9;
799
+ */
800
+ duration?: DurationJson;
801
+ /**
802
+ * The caller, once the request path has identified one.
803
+ *
804
+ * @generated from field: toshi.workspace.v1.ChannelRequestCaller caller = 10;
805
+ */
806
+ caller?: ChannelRequestCallerJson;
807
+ /**
808
+ * @generated from field: string address = 11;
809
+ */
810
+ address?: string;
811
+ /**
812
+ * The module that refused the request, if one did.
813
+ *
814
+ * @generated from field: string refused_by = 12;
815
+ */
816
+ refusedBy?: string;
817
+ /**
818
+ * @generated from field: bool websocket = 13;
819
+ */
820
+ websocket?: boolean;
821
+ /**
822
+ * The level the record was kept at: metadata, headers or bodies.
823
+ *
824
+ * @generated from field: string level = 14;
825
+ */
826
+ level?: string;
827
+ /**
828
+ * At headers and bodies.
829
+ *
830
+ * @generated from field: string query = 15;
831
+ */
832
+ query?: string;
833
+ /**
834
+ * @generated from field: bool query_cut = 16;
835
+ */
836
+ queryCut?: boolean;
837
+ /**
838
+ * @generated from field: repeated toshi.workspace.v1.ChannelHeader request_headers = 17;
839
+ */
840
+ requestHeaders?: ChannelHeaderJson[];
841
+ /**
842
+ * @generated from field: repeated toshi.workspace.v1.ChannelHeader response_headers = 18;
843
+ */
844
+ responseHeaders?: ChannelHeaderJson[];
845
+ /**
846
+ * At bodies.
847
+ *
848
+ * @generated from field: toshi.workspace.v1.ChannelBody request_body = 19;
849
+ */
850
+ requestBody?: ChannelBodyJson;
851
+ /**
852
+ * @generated from field: toshi.workspace.v1.ChannelBody response_body = 20;
853
+ */
854
+ responseBody?: ChannelBodyJson;
855
+ };
856
+ /**
857
+ * Describes the message toshi.workspace.v1.ChannelRequest.
858
+ * Use `create(ChannelRequestSchema)` to create a new message.
859
+ */
860
+ export declare const ChannelRequestSchema: GenMessage<ChannelRequest, {
861
+ jsonType: ChannelRequestJson;
862
+ }>;
863
+ /**
864
+ * @generated from message toshi.workspace.v1.ChannelRequestCaller
865
+ */
866
+ export type ChannelRequestCaller = Message<"toshi.workspace.v1.ChannelRequestCaller"> & {
867
+ /**
868
+ * The caller as the audit log names an actor.
869
+ *
870
+ * @generated from field: string user = 1;
871
+ */
872
+ user: string;
873
+ /**
874
+ * @generated from field: string device = 2;
875
+ */
876
+ device: string;
877
+ /**
878
+ * The share link's ID, for a viewer a share link admitted.
879
+ *
880
+ * @generated from field: string share_link = 3;
881
+ */
882
+ shareLink: string;
883
+ };
884
+ /**
885
+ * @generated from message toshi.workspace.v1.ChannelRequestCaller
886
+ */
887
+ export type ChannelRequestCallerJson = {
888
+ /**
889
+ * The caller as the audit log names an actor.
890
+ *
891
+ * @generated from field: string user = 1;
892
+ */
893
+ user?: string;
894
+ /**
895
+ * @generated from field: string device = 2;
896
+ */
897
+ device?: string;
898
+ /**
899
+ * The share link's ID, for a viewer a share link admitted.
900
+ *
901
+ * @generated from field: string share_link = 3;
902
+ */
903
+ shareLink?: string;
904
+ };
905
+ /**
906
+ * Describes the message toshi.workspace.v1.ChannelRequestCaller.
907
+ * Use `create(ChannelRequestCallerSchema)` to create a new message.
908
+ */
909
+ export declare const ChannelRequestCallerSchema: GenMessage<ChannelRequestCaller, {
910
+ jsonType: ChannelRequestCallerJson;
911
+ }>;
912
+ /**
913
+ * ChannelHeader is one header line; a credential header keeps its name
914
+ * only, with removed set.
915
+ *
916
+ * @generated from message toshi.workspace.v1.ChannelHeader
917
+ */
918
+ export type ChannelHeader = Message<"toshi.workspace.v1.ChannelHeader"> & {
919
+ /**
920
+ * @generated from field: string name = 1;
921
+ */
922
+ name: string;
923
+ /**
924
+ * @generated from field: string value = 2;
925
+ */
926
+ value: string;
927
+ /**
928
+ * @generated from field: bool removed = 3;
929
+ */
930
+ removed: boolean;
931
+ };
932
+ /**
933
+ * ChannelHeader is one header line; a credential header keeps its name
934
+ * only, with removed set.
935
+ *
936
+ * @generated from message toshi.workspace.v1.ChannelHeader
937
+ */
938
+ export type ChannelHeaderJson = {
939
+ /**
940
+ * @generated from field: string name = 1;
941
+ */
942
+ name?: string;
943
+ /**
944
+ * @generated from field: string value = 2;
945
+ */
946
+ value?: string;
947
+ /**
948
+ * @generated from field: bool removed = 3;
949
+ */
950
+ removed?: boolean;
951
+ };
952
+ /**
953
+ * Describes the message toshi.workspace.v1.ChannelHeader.
954
+ * Use `create(ChannelHeaderSchema)` to create a new message.
955
+ */
956
+ export declare const ChannelHeaderSchema: GenMessage<ChannelHeader, {
957
+ jsonType: ChannelHeaderJson;
958
+ }>;
959
+ /**
960
+ * @generated from message toshi.workspace.v1.ChannelBody
961
+ */
962
+ export type ChannelBody = Message<"toshi.workspace.v1.ChannelBody"> & {
963
+ /**
964
+ * @generated from field: string content_type = 1;
965
+ */
966
+ contentType: string;
967
+ /**
968
+ * @generated from field: bytes data = 2;
969
+ */
970
+ data: Uint8Array;
971
+ /**
972
+ * Whether the body was longer than the policy's body cap.
973
+ *
974
+ * @generated from field: bool cut = 3;
975
+ */
976
+ cut: boolean;
977
+ };
978
+ /**
979
+ * @generated from message toshi.workspace.v1.ChannelBody
980
+ */
981
+ export type ChannelBodyJson = {
982
+ /**
983
+ * @generated from field: string content_type = 1;
984
+ */
985
+ contentType?: string;
986
+ /**
987
+ * @generated from field: bytes data = 2;
988
+ */
989
+ data?: string;
990
+ /**
991
+ * Whether the body was longer than the policy's body cap.
992
+ *
993
+ * @generated from field: bool cut = 3;
994
+ */
995
+ cut?: boolean;
996
+ };
997
+ /**
998
+ * Describes the message toshi.workspace.v1.ChannelBody.
999
+ * Use `create(ChannelBodySchema)` to create a new message.
1000
+ */
1001
+ export declare const ChannelBodySchema: GenMessage<ChannelBody, {
1002
+ jsonType: ChannelBodyJson;
1003
+ }>;
1004
+ /**
1005
+ * Forward is one open Forward: what it reaches in the guest, named as the
1006
+ * audit log names it (a command by its first word only), who opened it,
1007
+ * with the device of the connect token that admitted them, and the http
1008
+ * channel whose connection carries it, if one does.
1009
+ *
1010
+ * @generated from message toshi.workspace.v1.Forward
1011
+ */
1012
+ export type Forward = Message<"toshi.workspace.v1.Forward"> & {
1013
+ /**
1014
+ * @generated from field: string target = 1;
1015
+ */
1016
+ target: string;
1017
+ /**
1018
+ * @generated from field: string by = 2;
1019
+ */
1020
+ by: string;
1021
+ /**
1022
+ * @generated from field: string device = 3;
1023
+ */
1024
+ device: string;
1025
+ /**
1026
+ * @generated from field: string channel = 4;
1027
+ */
1028
+ channel: string;
1029
+ /**
1030
+ * @generated from field: google.protobuf.Timestamp opened_at = 5;
1031
+ */
1032
+ openedAt?: Timestamp | undefined;
1033
+ };
1034
+ /**
1035
+ * Forward is one open Forward: what it reaches in the guest, named as the
1036
+ * audit log names it (a command by its first word only), who opened it,
1037
+ * with the device of the connect token that admitted them, and the http
1038
+ * channel whose connection carries it, if one does.
1039
+ *
1040
+ * @generated from message toshi.workspace.v1.Forward
1041
+ */
1042
+ export type ForwardJson = {
1043
+ /**
1044
+ * @generated from field: string target = 1;
1045
+ */
1046
+ target?: string;
1047
+ /**
1048
+ * @generated from field: string by = 2;
1049
+ */
1050
+ by?: string;
1051
+ /**
1052
+ * @generated from field: string device = 3;
1053
+ */
1054
+ device?: string;
1055
+ /**
1056
+ * @generated from field: string channel = 4;
1057
+ */
1058
+ channel?: string;
1059
+ /**
1060
+ * @generated from field: google.protobuf.Timestamp opened_at = 5;
1061
+ */
1062
+ openedAt?: TimestampJson;
1063
+ };
1064
+ /**
1065
+ * Describes the message toshi.workspace.v1.Forward.
1066
+ * Use `create(ForwardSchema)` to create a new message.
1067
+ */
1068
+ export declare const ForwardSchema: GenMessage<Forward, {
1069
+ jsonType: ForwardJson;
1070
+ }>;
1071
+ /**
1072
+ * Link is the state of a runner's Link, the connection its guest holds to
1073
+ * the control plane.
1074
+ *
1075
+ * @generated from message toshi.workspace.v1.Link
1076
+ */
1077
+ export type Link = Message<"toshi.workspace.v1.Link"> & {
1078
+ /**
1079
+ * @generated from field: bool connected = 1;
1080
+ */
1081
+ connected: boolean;
1082
+ /**
1083
+ * Since when it has been connected; unset while it is not.
1084
+ *
1085
+ * @generated from field: google.protobuf.Timestamp since = 2;
1086
+ */
1087
+ since?: Timestamp | undefined;
1088
+ /**
1089
+ * How many times the guest has connected.
1090
+ *
1091
+ * @generated from field: int32 connects = 3;
1092
+ */
1093
+ connects: number;
1094
+ /**
1095
+ * The streams open on it now.
1096
+ *
1097
+ * @generated from field: int32 streams = 4;
1098
+ */
1099
+ streams: number;
1100
+ /**
1101
+ * @generated from field: string last_error = 5;
1102
+ */
1103
+ lastError: string;
1104
+ /**
1105
+ * The runner's second Link, its replica: connected, or none.
1106
+ *
1107
+ * @generated from field: string replica = 6;
1108
+ */
1109
+ replica: string;
1110
+ /**
1111
+ * The Forwards open on it now.
1112
+ *
1113
+ * @generated from field: int32 forwards = 7;
1114
+ */
1115
+ forwards: number;
1116
+ /**
1117
+ * The job's state, as the jobs API names it.
1118
+ *
1119
+ * @generated from field: string job_state = 8;
1120
+ */
1121
+ jobState: string;
1122
+ };
1123
+ /**
1124
+ * Link is the state of a runner's Link, the connection its guest holds to
1125
+ * the control plane.
1126
+ *
1127
+ * @generated from message toshi.workspace.v1.Link
1128
+ */
1129
+ export type LinkJson = {
1130
+ /**
1131
+ * @generated from field: bool connected = 1;
1132
+ */
1133
+ connected?: boolean;
1134
+ /**
1135
+ * Since when it has been connected; unset while it is not.
1136
+ *
1137
+ * @generated from field: google.protobuf.Timestamp since = 2;
1138
+ */
1139
+ since?: TimestampJson;
1140
+ /**
1141
+ * How many times the guest has connected.
1142
+ *
1143
+ * @generated from field: int32 connects = 3;
1144
+ */
1145
+ connects?: number;
1146
+ /**
1147
+ * The streams open on it now.
1148
+ *
1149
+ * @generated from field: int32 streams = 4;
1150
+ */
1151
+ streams?: number;
1152
+ /**
1153
+ * @generated from field: string last_error = 5;
1154
+ */
1155
+ lastError?: string;
1156
+ /**
1157
+ * The runner's second Link, its replica: connected, or none.
1158
+ *
1159
+ * @generated from field: string replica = 6;
1160
+ */
1161
+ replica?: string;
1162
+ /**
1163
+ * The Forwards open on it now.
1164
+ *
1165
+ * @generated from field: int32 forwards = 7;
1166
+ */
1167
+ forwards?: number;
1168
+ /**
1169
+ * The job's state, as the jobs API names it.
1170
+ *
1171
+ * @generated from field: string job_state = 8;
1172
+ */
1173
+ jobState?: string;
1174
+ };
1175
+ /**
1176
+ * Describes the message toshi.workspace.v1.Link.
1177
+ * Use `create(LinkSchema)` to create a new message.
1178
+ */
1179
+ export declare const LinkSchema: GenMessage<Link, {
1180
+ jsonType: LinkJson;
1181
+ }>;
1182
+ /**
1183
+ * @generated from message toshi.workspace.v1.CreateChannelRequest
1184
+ */
1185
+ export type CreateChannelRequest = Message<"toshi.workspace.v1.CreateChannelRequest"> & {
1186
+ /**
1187
+ * @generated from field: string job_id = 1;
1188
+ */
1189
+ jobId: string;
1190
+ /**
1191
+ * The channel's name: lower-case letters, digits, '-' and '_', starting
1192
+ * with a letter or digit, at most 63. An http channel's defaults to its
1193
+ * port; a stream channel needs one.
1194
+ *
1195
+ * @generated from field: string name = 2;
1196
+ */
1197
+ name: string;
1198
+ /**
1199
+ * A port in the guest, for an http channel; give a port or a command.
1200
+ *
1201
+ * @generated from field: int32 port = 3;
1202
+ */
1203
+ port: number;
1204
+ /**
1205
+ * A command in the guest, for a stream channel.
1206
+ *
1207
+ * @generated from field: repeated string command = 4;
1208
+ */
1209
+ command: string[];
1210
+ /**
1211
+ * The policy the channel starts with, without a version; unset takes
1212
+ * the defaults.
1213
+ *
1214
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 5;
1215
+ */
1216
+ policy?: ChannelPolicy | undefined;
1217
+ };
1218
+ /**
1219
+ * @generated from message toshi.workspace.v1.CreateChannelRequest
1220
+ */
1221
+ export type CreateChannelRequestJson = {
1222
+ /**
1223
+ * @generated from field: string job_id = 1;
1224
+ */
1225
+ jobId?: string;
1226
+ /**
1227
+ * The channel's name: lower-case letters, digits, '-' and '_', starting
1228
+ * with a letter or digit, at most 63. An http channel's defaults to its
1229
+ * port; a stream channel needs one.
1230
+ *
1231
+ * @generated from field: string name = 2;
1232
+ */
1233
+ name?: string;
1234
+ /**
1235
+ * A port in the guest, for an http channel; give a port or a command.
1236
+ *
1237
+ * @generated from field: int32 port = 3;
1238
+ */
1239
+ port?: number;
1240
+ /**
1241
+ * A command in the guest, for a stream channel.
1242
+ *
1243
+ * @generated from field: repeated string command = 4;
1244
+ */
1245
+ command?: string[];
1246
+ /**
1247
+ * The policy the channel starts with, without a version; unset takes
1248
+ * the defaults.
1249
+ *
1250
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 5;
1251
+ */
1252
+ policy?: ChannelPolicyJson;
1253
+ };
1254
+ /**
1255
+ * Describes the message toshi.workspace.v1.CreateChannelRequest.
1256
+ * Use `create(CreateChannelRequestSchema)` to create a new message.
1257
+ */
1258
+ export declare const CreateChannelRequestSchema: GenMessage<CreateChannelRequest, {
1259
+ jsonType: CreateChannelRequestJson;
1260
+ }>;
1261
+ /**
1262
+ * @generated from message toshi.workspace.v1.CreateChannelResponse
1263
+ */
1264
+ export type CreateChannelResponse = Message<"toshi.workspace.v1.CreateChannelResponse"> & {
1265
+ /**
1266
+ * @generated from field: toshi.workspace.v1.Channel channel = 1;
1267
+ */
1268
+ channel?: Channel | undefined;
1269
+ };
1270
+ /**
1271
+ * @generated from message toshi.workspace.v1.CreateChannelResponse
1272
+ */
1273
+ export type CreateChannelResponseJson = {
1274
+ /**
1275
+ * @generated from field: toshi.workspace.v1.Channel channel = 1;
1276
+ */
1277
+ channel?: ChannelJson;
1278
+ };
1279
+ /**
1280
+ * Describes the message toshi.workspace.v1.CreateChannelResponse.
1281
+ * Use `create(CreateChannelResponseSchema)` to create a new message.
1282
+ */
1283
+ export declare const CreateChannelResponseSchema: GenMessage<CreateChannelResponse, {
1284
+ jsonType: CreateChannelResponseJson;
1285
+ }>;
1286
+ /**
1287
+ * @generated from message toshi.workspace.v1.ListChannelsRequest
1288
+ */
1289
+ export type ListChannelsRequest = Message<"toshi.workspace.v1.ListChannelsRequest"> & {
1290
+ /**
1291
+ * Only this job's channels; empty lists every job's.
1292
+ *
1293
+ * @generated from field: string job_id = 1;
1294
+ */
1295
+ jobId: string;
1296
+ /**
1297
+ * The most channels in one page; zero lets the server choose.
1298
+ *
1299
+ * @generated from field: int32 page_size = 2;
1300
+ */
1301
+ pageSize: number;
1302
+ /**
1303
+ * From an earlier response's next_page_token; empty for the first page.
1304
+ *
1305
+ * @generated from field: string page_token = 3;
1306
+ */
1307
+ pageToken: string;
1308
+ };
1309
+ /**
1310
+ * @generated from message toshi.workspace.v1.ListChannelsRequest
1311
+ */
1312
+ export type ListChannelsRequestJson = {
1313
+ /**
1314
+ * Only this job's channels; empty lists every job's.
1315
+ *
1316
+ * @generated from field: string job_id = 1;
1317
+ */
1318
+ jobId?: string;
1319
+ /**
1320
+ * The most channels in one page; zero lets the server choose.
1321
+ *
1322
+ * @generated from field: int32 page_size = 2;
1323
+ */
1324
+ pageSize?: number;
1325
+ /**
1326
+ * From an earlier response's next_page_token; empty for the first page.
1327
+ *
1328
+ * @generated from field: string page_token = 3;
1329
+ */
1330
+ pageToken?: string;
1331
+ };
1332
+ /**
1333
+ * Describes the message toshi.workspace.v1.ListChannelsRequest.
1334
+ * Use `create(ListChannelsRequestSchema)` to create a new message.
1335
+ */
1336
+ export declare const ListChannelsRequestSchema: GenMessage<ListChannelsRequest, {
1337
+ jsonType: ListChannelsRequestJson;
1338
+ }>;
1339
+ /**
1340
+ * @generated from message toshi.workspace.v1.ListChannelsResponse
1341
+ */
1342
+ export type ListChannelsResponse = Message<"toshi.workspace.v1.ListChannelsResponse"> & {
1343
+ /**
1344
+ * @generated from field: repeated toshi.workspace.v1.Channel channels = 1;
1345
+ */
1346
+ channels: Channel[];
1347
+ /**
1348
+ * Empty on the last page.
1349
+ *
1350
+ * @generated from field: string next_page_token = 2;
1351
+ */
1352
+ nextPageToken: string;
1353
+ };
1354
+ /**
1355
+ * @generated from message toshi.workspace.v1.ListChannelsResponse
1356
+ */
1357
+ export type ListChannelsResponseJson = {
1358
+ /**
1359
+ * @generated from field: repeated toshi.workspace.v1.Channel channels = 1;
1360
+ */
1361
+ channels?: ChannelJson[];
1362
+ /**
1363
+ * Empty on the last page.
1364
+ *
1365
+ * @generated from field: string next_page_token = 2;
1366
+ */
1367
+ nextPageToken?: string;
1368
+ };
1369
+ /**
1370
+ * Describes the message toshi.workspace.v1.ListChannelsResponse.
1371
+ * Use `create(ListChannelsResponseSchema)` to create a new message.
1372
+ */
1373
+ export declare const ListChannelsResponseSchema: GenMessage<ListChannelsResponse, {
1374
+ jsonType: ListChannelsResponseJson;
1375
+ }>;
1376
+ /**
1377
+ * @generated from message toshi.workspace.v1.GetChannelRequest
1378
+ */
1379
+ export type GetChannelRequest = Message<"toshi.workspace.v1.GetChannelRequest"> & {
1380
+ /**
1381
+ * @generated from field: string job_id = 1;
1382
+ */
1383
+ jobId: string;
1384
+ /**
1385
+ * @generated from field: string name = 2;
1386
+ */
1387
+ name: string;
1388
+ };
1389
+ /**
1390
+ * @generated from message toshi.workspace.v1.GetChannelRequest
1391
+ */
1392
+ export type GetChannelRequestJson = {
1393
+ /**
1394
+ * @generated from field: string job_id = 1;
1395
+ */
1396
+ jobId?: string;
1397
+ /**
1398
+ * @generated from field: string name = 2;
1399
+ */
1400
+ name?: string;
1401
+ };
1402
+ /**
1403
+ * Describes the message toshi.workspace.v1.GetChannelRequest.
1404
+ * Use `create(GetChannelRequestSchema)` to create a new message.
1405
+ */
1406
+ export declare const GetChannelRequestSchema: GenMessage<GetChannelRequest, {
1407
+ jsonType: GetChannelRequestJson;
1408
+ }>;
1409
+ /**
1410
+ * @generated from message toshi.workspace.v1.GetChannelResponse
1411
+ */
1412
+ export type GetChannelResponse = Message<"toshi.workspace.v1.GetChannelResponse"> & {
1413
+ /**
1414
+ * @generated from field: toshi.workspace.v1.Channel channel = 1;
1415
+ */
1416
+ channel?: Channel | undefined;
1417
+ };
1418
+ /**
1419
+ * @generated from message toshi.workspace.v1.GetChannelResponse
1420
+ */
1421
+ export type GetChannelResponseJson = {
1422
+ /**
1423
+ * @generated from field: toshi.workspace.v1.Channel channel = 1;
1424
+ */
1425
+ channel?: ChannelJson;
1426
+ };
1427
+ /**
1428
+ * Describes the message toshi.workspace.v1.GetChannelResponse.
1429
+ * Use `create(GetChannelResponseSchema)` to create a new message.
1430
+ */
1431
+ export declare const GetChannelResponseSchema: GenMessage<GetChannelResponse, {
1432
+ jsonType: GetChannelResponseJson;
1433
+ }>;
1434
+ /**
1435
+ * @generated from message toshi.workspace.v1.GetChannelPolicyRequest
1436
+ */
1437
+ export type GetChannelPolicyRequest = Message<"toshi.workspace.v1.GetChannelPolicyRequest"> & {
1438
+ /**
1439
+ * @generated from field: string job_id = 1;
1440
+ */
1441
+ jobId: string;
1442
+ /**
1443
+ * @generated from field: string name = 2;
1444
+ */
1445
+ name: string;
1446
+ };
1447
+ /**
1448
+ * @generated from message toshi.workspace.v1.GetChannelPolicyRequest
1449
+ */
1450
+ export type GetChannelPolicyRequestJson = {
1451
+ /**
1452
+ * @generated from field: string job_id = 1;
1453
+ */
1454
+ jobId?: string;
1455
+ /**
1456
+ * @generated from field: string name = 2;
1457
+ */
1458
+ name?: string;
1459
+ };
1460
+ /**
1461
+ * Describes the message toshi.workspace.v1.GetChannelPolicyRequest.
1462
+ * Use `create(GetChannelPolicyRequestSchema)` to create a new message.
1463
+ */
1464
+ export declare const GetChannelPolicyRequestSchema: GenMessage<GetChannelPolicyRequest, {
1465
+ jsonType: GetChannelPolicyRequestJson;
1466
+ }>;
1467
+ /**
1468
+ * @generated from message toshi.workspace.v1.GetChannelPolicyResponse
1469
+ */
1470
+ export type GetChannelPolicyResponse = Message<"toshi.workspace.v1.GetChannelPolicyResponse"> & {
1471
+ /**
1472
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
1473
+ */
1474
+ policy?: ChannelPolicy | undefined;
1475
+ };
1476
+ /**
1477
+ * @generated from message toshi.workspace.v1.GetChannelPolicyResponse
1478
+ */
1479
+ export type GetChannelPolicyResponseJson = {
1480
+ /**
1481
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
1482
+ */
1483
+ policy?: ChannelPolicyJson;
1484
+ };
1485
+ /**
1486
+ * Describes the message toshi.workspace.v1.GetChannelPolicyResponse.
1487
+ * Use `create(GetChannelPolicyResponseSchema)` to create a new message.
1488
+ */
1489
+ export declare const GetChannelPolicyResponseSchema: GenMessage<GetChannelPolicyResponse, {
1490
+ jsonType: GetChannelPolicyResponseJson;
1491
+ }>;
1492
+ /**
1493
+ * @generated from message toshi.workspace.v1.SetChannelPolicyRequest
1494
+ */
1495
+ export type SetChannelPolicyRequest = Message<"toshi.workspace.v1.SetChannelPolicyRequest"> & {
1496
+ /**
1497
+ * @generated from field: string job_id = 1;
1498
+ */
1499
+ jobId: string;
1500
+ /**
1501
+ * @generated from field: string name = 2;
1502
+ */
1503
+ name: string;
1504
+ /**
1505
+ * The whole document, with the version it was read at.
1506
+ *
1507
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 3;
1508
+ */
1509
+ policy?: ChannelPolicy | undefined;
1510
+ };
1511
+ /**
1512
+ * @generated from message toshi.workspace.v1.SetChannelPolicyRequest
1513
+ */
1514
+ export type SetChannelPolicyRequestJson = {
1515
+ /**
1516
+ * @generated from field: string job_id = 1;
1517
+ */
1518
+ jobId?: string;
1519
+ /**
1520
+ * @generated from field: string name = 2;
1521
+ */
1522
+ name?: string;
1523
+ /**
1524
+ * The whole document, with the version it was read at.
1525
+ *
1526
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 3;
1527
+ */
1528
+ policy?: ChannelPolicyJson;
1529
+ };
1530
+ /**
1531
+ * Describes the message toshi.workspace.v1.SetChannelPolicyRequest.
1532
+ * Use `create(SetChannelPolicyRequestSchema)` to create a new message.
1533
+ */
1534
+ export declare const SetChannelPolicyRequestSchema: GenMessage<SetChannelPolicyRequest, {
1535
+ jsonType: SetChannelPolicyRequestJson;
1536
+ }>;
1537
+ /**
1538
+ * @generated from message toshi.workspace.v1.SetChannelPolicyResponse
1539
+ */
1540
+ export type SetChannelPolicyResponse = Message<"toshi.workspace.v1.SetChannelPolicyResponse"> & {
1541
+ /**
1542
+ * The document stored, at its new version.
1543
+ *
1544
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
1545
+ */
1546
+ policy?: ChannelPolicy | undefined;
1547
+ };
1548
+ /**
1549
+ * @generated from message toshi.workspace.v1.SetChannelPolicyResponse
1550
+ */
1551
+ export type SetChannelPolicyResponseJson = {
1552
+ /**
1553
+ * The document stored, at its new version.
1554
+ *
1555
+ * @generated from field: toshi.workspace.v1.ChannelPolicy policy = 1;
1556
+ */
1557
+ policy?: ChannelPolicyJson;
1558
+ };
1559
+ /**
1560
+ * Describes the message toshi.workspace.v1.SetChannelPolicyResponse.
1561
+ * Use `create(SetChannelPolicyResponseSchema)` to create a new message.
1562
+ */
1563
+ export declare const SetChannelPolicyResponseSchema: GenMessage<SetChannelPolicyResponse, {
1564
+ jsonType: SetChannelPolicyResponseJson;
1565
+ }>;
1566
+ /**
1567
+ * @generated from message toshi.workspace.v1.ListChannelRequestsRequest
1568
+ */
1569
+ export type ListChannelRequestsRequest = Message<"toshi.workspace.v1.ListChannelRequestsRequest"> & {
1570
+ /**
1571
+ * @generated from field: string job_id = 1;
1572
+ */
1573
+ jobId: string;
1574
+ /**
1575
+ * @generated from field: string name = 2;
1576
+ */
1577
+ name: string;
1578
+ /**
1579
+ * The most records in one page; zero lets the server choose.
1580
+ *
1581
+ * @generated from field: int32 page_size = 3;
1582
+ */
1583
+ pageSize: number;
1584
+ /**
1585
+ * From an earlier response's next_page_token; empty for the first page.
1586
+ * The filters must be the ones the first page was asked with.
1587
+ *
1588
+ * @generated from field: string page_token = 4;
1589
+ */
1590
+ pageToken: string;
1591
+ /**
1592
+ * Only the records after this sequence number, oldest first; zero lists
1593
+ * the newest first.
1594
+ *
1595
+ * @generated from field: int64 after_seq = 5;
1596
+ */
1597
+ afterSeq: bigint;
1598
+ /**
1599
+ * Only the records that arrived at or after since, and before until.
1600
+ *
1601
+ * @generated from field: google.protobuf.Timestamp since = 6;
1602
+ */
1603
+ since?: Timestamp | undefined;
1604
+ /**
1605
+ * @generated from field: google.protobuf.Timestamp until = 7;
1606
+ */
1607
+ until?: Timestamp | undefined;
1608
+ /**
1609
+ * Only this status, such as 404, or this class, such as 4xx.
1610
+ *
1611
+ * @generated from field: string status = 8;
1612
+ */
1613
+ status: string;
1614
+ /**
1615
+ * Only this exact host.
1616
+ *
1617
+ * @generated from field: string host = 9;
1618
+ */
1619
+ host: string;
1620
+ /**
1621
+ * Only this method.
1622
+ *
1623
+ * @generated from field: string method = 10;
1624
+ */
1625
+ method: string;
1626
+ /**
1627
+ * Only the paths that start with this prefix.
1628
+ *
1629
+ * @generated from field: string path_prefix = 11;
1630
+ */
1631
+ pathPrefix: string;
1632
+ };
1633
+ /**
1634
+ * @generated from message toshi.workspace.v1.ListChannelRequestsRequest
1635
+ */
1636
+ export type ListChannelRequestsRequestJson = {
1637
+ /**
1638
+ * @generated from field: string job_id = 1;
1639
+ */
1640
+ jobId?: string;
1641
+ /**
1642
+ * @generated from field: string name = 2;
1643
+ */
1644
+ name?: string;
1645
+ /**
1646
+ * The most records in one page; zero lets the server choose.
1647
+ *
1648
+ * @generated from field: int32 page_size = 3;
1649
+ */
1650
+ pageSize?: number;
1651
+ /**
1652
+ * From an earlier response's next_page_token; empty for the first page.
1653
+ * The filters must be the ones the first page was asked with.
1654
+ *
1655
+ * @generated from field: string page_token = 4;
1656
+ */
1657
+ pageToken?: string;
1658
+ /**
1659
+ * Only the records after this sequence number, oldest first; zero lists
1660
+ * the newest first.
1661
+ *
1662
+ * @generated from field: int64 after_seq = 5;
1663
+ */
1664
+ afterSeq?: string;
1665
+ /**
1666
+ * Only the records that arrived at or after since, and before until.
1667
+ *
1668
+ * @generated from field: google.protobuf.Timestamp since = 6;
1669
+ */
1670
+ since?: TimestampJson;
1671
+ /**
1672
+ * @generated from field: google.protobuf.Timestamp until = 7;
1673
+ */
1674
+ until?: TimestampJson;
1675
+ /**
1676
+ * Only this status, such as 404, or this class, such as 4xx.
1677
+ *
1678
+ * @generated from field: string status = 8;
1679
+ */
1680
+ status?: string;
1681
+ /**
1682
+ * Only this exact host.
1683
+ *
1684
+ * @generated from field: string host = 9;
1685
+ */
1686
+ host?: string;
1687
+ /**
1688
+ * Only this method.
1689
+ *
1690
+ * @generated from field: string method = 10;
1691
+ */
1692
+ method?: string;
1693
+ /**
1694
+ * Only the paths that start with this prefix.
1695
+ *
1696
+ * @generated from field: string path_prefix = 11;
1697
+ */
1698
+ pathPrefix?: string;
1699
+ };
1700
+ /**
1701
+ * Describes the message toshi.workspace.v1.ListChannelRequestsRequest.
1702
+ * Use `create(ListChannelRequestsRequestSchema)` to create a new message.
1703
+ */
1704
+ export declare const ListChannelRequestsRequestSchema: GenMessage<ListChannelRequestsRequest, {
1705
+ jsonType: ListChannelRequestsRequestJson;
1706
+ }>;
1707
+ /**
1708
+ * @generated from message toshi.workspace.v1.ListChannelRequestsResponse
1709
+ */
1710
+ export type ListChannelRequestsResponse = Message<"toshi.workspace.v1.ListChannelRequestsResponse"> & {
1711
+ /**
1712
+ * @generated from field: repeated toshi.workspace.v1.ChannelRequest requests = 1;
1713
+ */
1714
+ requests: ChannelRequest[];
1715
+ /**
1716
+ * Empty on the last page.
1717
+ *
1718
+ * @generated from field: string next_page_token = 2;
1719
+ */
1720
+ nextPageToken: string;
1721
+ /**
1722
+ * The sequence numbers that bound the records kept; both zero when none
1723
+ * is.
1724
+ *
1725
+ * @generated from field: int64 oldest_seq = 3;
1726
+ */
1727
+ oldestSeq: bigint;
1728
+ /**
1729
+ * @generated from field: int64 newest_seq = 4;
1730
+ */
1731
+ newestSeq: bigint;
1732
+ };
1733
+ /**
1734
+ * @generated from message toshi.workspace.v1.ListChannelRequestsResponse
1735
+ */
1736
+ export type ListChannelRequestsResponseJson = {
1737
+ /**
1738
+ * @generated from field: repeated toshi.workspace.v1.ChannelRequest requests = 1;
1739
+ */
1740
+ requests?: ChannelRequestJson[];
1741
+ /**
1742
+ * Empty on the last page.
1743
+ *
1744
+ * @generated from field: string next_page_token = 2;
1745
+ */
1746
+ nextPageToken?: string;
1747
+ /**
1748
+ * The sequence numbers that bound the records kept; both zero when none
1749
+ * is.
1750
+ *
1751
+ * @generated from field: int64 oldest_seq = 3;
1752
+ */
1753
+ oldestSeq?: string;
1754
+ /**
1755
+ * @generated from field: int64 newest_seq = 4;
1756
+ */
1757
+ newestSeq?: string;
1758
+ };
1759
+ /**
1760
+ * Describes the message toshi.workspace.v1.ListChannelRequestsResponse.
1761
+ * Use `create(ListChannelRequestsResponseSchema)` to create a new message.
1762
+ */
1763
+ export declare const ListChannelRequestsResponseSchema: GenMessage<ListChannelRequestsResponse, {
1764
+ jsonType: ListChannelRequestsResponseJson;
1765
+ }>;
1766
+ /**
1767
+ * @generated from message toshi.workspace.v1.GetChannelRequestRequest
1768
+ */
1769
+ export type GetChannelRequestRequest = Message<"toshi.workspace.v1.GetChannelRequestRequest"> & {
1770
+ /**
1771
+ * @generated from field: string job_id = 1;
1772
+ */
1773
+ jobId: string;
1774
+ /**
1775
+ * @generated from field: string name = 2;
1776
+ */
1777
+ name: string;
1778
+ /**
1779
+ * @generated from field: int64 seq = 3;
1780
+ */
1781
+ seq: bigint;
1782
+ };
1783
+ /**
1784
+ * @generated from message toshi.workspace.v1.GetChannelRequestRequest
1785
+ */
1786
+ export type GetChannelRequestRequestJson = {
1787
+ /**
1788
+ * @generated from field: string job_id = 1;
1789
+ */
1790
+ jobId?: string;
1791
+ /**
1792
+ * @generated from field: string name = 2;
1793
+ */
1794
+ name?: string;
1795
+ /**
1796
+ * @generated from field: int64 seq = 3;
1797
+ */
1798
+ seq?: string;
1799
+ };
1800
+ /**
1801
+ * Describes the message toshi.workspace.v1.GetChannelRequestRequest.
1802
+ * Use `create(GetChannelRequestRequestSchema)` to create a new message.
1803
+ */
1804
+ export declare const GetChannelRequestRequestSchema: GenMessage<GetChannelRequestRequest, {
1805
+ jsonType: GetChannelRequestRequestJson;
1806
+ }>;
1807
+ /**
1808
+ * @generated from message toshi.workspace.v1.GetChannelRequestResponse
1809
+ */
1810
+ export type GetChannelRequestResponse = Message<"toshi.workspace.v1.GetChannelRequestResponse"> & {
1811
+ /**
1812
+ * @generated from field: toshi.workspace.v1.ChannelRequest request = 1;
1813
+ */
1814
+ request?: ChannelRequest | undefined;
1815
+ };
1816
+ /**
1817
+ * @generated from message toshi.workspace.v1.GetChannelRequestResponse
1818
+ */
1819
+ export type GetChannelRequestResponseJson = {
1820
+ /**
1821
+ * @generated from field: toshi.workspace.v1.ChannelRequest request = 1;
1822
+ */
1823
+ request?: ChannelRequestJson;
1824
+ };
1825
+ /**
1826
+ * Describes the message toshi.workspace.v1.GetChannelRequestResponse.
1827
+ * Use `create(GetChannelRequestResponseSchema)` to create a new message.
1828
+ */
1829
+ export declare const GetChannelRequestResponseSchema: GenMessage<GetChannelRequestResponse, {
1830
+ jsonType: GetChannelRequestResponseJson;
1831
+ }>;
1832
+ /**
1833
+ * @generated from message toshi.workspace.v1.ExportChannelLogRequest
1834
+ */
1835
+ export type ExportChannelLogRequest = Message<"toshi.workspace.v1.ExportChannelLogRequest"> & {
1836
+ /**
1837
+ * @generated from field: string job_id = 1;
1838
+ */
1839
+ jobId: string;
1840
+ /**
1841
+ * @generated from field: string name = 2;
1842
+ */
1843
+ name: string;
1844
+ /**
1845
+ * The log to export: a stream channel's output or an http channel's
1846
+ * request records.
1847
+ *
1848
+ * @generated from field: toshi.workspace.v1.ChannelLog log = 3;
1849
+ */
1850
+ log: ChannelLog;
1851
+ /**
1852
+ * The output's offsets [from, to), or the records' sequence numbers
1853
+ * [from, to]; unset runs from the oldest kept, or to the newest.
1854
+ *
1855
+ * @generated from field: optional int64 from = 4;
1856
+ */
1857
+ from?: bigint | undefined;
1858
+ /**
1859
+ * @generated from field: optional int64 to = 5;
1860
+ */
1861
+ to?: bigint | undefined;
1862
+ /**
1863
+ * For records only, in place of from and to: the records that arrived
1864
+ * at or after since, and before until.
1865
+ *
1866
+ * @generated from field: google.protobuf.Timestamp since = 6;
1867
+ */
1868
+ since?: Timestamp | undefined;
1869
+ /**
1870
+ * @generated from field: google.protobuf.Timestamp until = 7;
1871
+ */
1872
+ until?: Timestamp | undefined;
1873
+ };
1874
+ /**
1875
+ * @generated from message toshi.workspace.v1.ExportChannelLogRequest
1876
+ */
1877
+ export type ExportChannelLogRequestJson = {
1878
+ /**
1879
+ * @generated from field: string job_id = 1;
1880
+ */
1881
+ jobId?: string;
1882
+ /**
1883
+ * @generated from field: string name = 2;
1884
+ */
1885
+ name?: string;
1886
+ /**
1887
+ * The log to export: a stream channel's output or an http channel's
1888
+ * request records.
1889
+ *
1890
+ * @generated from field: toshi.workspace.v1.ChannelLog log = 3;
1891
+ */
1892
+ log?: ChannelLogJson;
1893
+ /**
1894
+ * The output's offsets [from, to), or the records' sequence numbers
1895
+ * [from, to]; unset runs from the oldest kept, or to the newest.
1896
+ *
1897
+ * @generated from field: optional int64 from = 4;
1898
+ */
1899
+ from?: string;
1900
+ /**
1901
+ * @generated from field: optional int64 to = 5;
1902
+ */
1903
+ to?: string;
1904
+ /**
1905
+ * For records only, in place of from and to: the records that arrived
1906
+ * at or after since, and before until.
1907
+ *
1908
+ * @generated from field: google.protobuf.Timestamp since = 6;
1909
+ */
1910
+ since?: TimestampJson;
1911
+ /**
1912
+ * @generated from field: google.protobuf.Timestamp until = 7;
1913
+ */
1914
+ until?: TimestampJson;
1915
+ };
1916
+ /**
1917
+ * Describes the message toshi.workspace.v1.ExportChannelLogRequest.
1918
+ * Use `create(ExportChannelLogRequestSchema)` to create a new message.
1919
+ */
1920
+ export declare const ExportChannelLogRequestSchema: GenMessage<ExportChannelLogRequest, {
1921
+ jsonType: ExportChannelLogRequestJson;
1922
+ }>;
1923
+ /**
1924
+ * @generated from message toshi.workspace.v1.ExportChannelLogResponse
1925
+ */
1926
+ export type ExportChannelLogResponse = Message<"toshi.workspace.v1.ExportChannelLogResponse"> & {
1927
+ /**
1928
+ * The file's next bytes.
1929
+ *
1930
+ * @generated from field: bytes data = 1;
1931
+ */
1932
+ data: Uint8Array;
1933
+ /**
1934
+ * The rest is set on the first response only. The file's name, with
1935
+ * the range it holds.
1936
+ *
1937
+ * @generated from field: string file_name = 2;
1938
+ */
1939
+ fileName: string;
1940
+ /**
1941
+ * application/octet-stream for output, application/x-ndjson for
1942
+ * records.
1943
+ *
1944
+ * @generated from field: string content_type = 3;
1945
+ */
1946
+ contentType: string;
1947
+ /**
1948
+ * Where the file starts: an offset, or a record's sequence number.
1949
+ *
1950
+ * @generated from field: int64 from = 4;
1951
+ */
1952
+ from: bigint;
1953
+ /**
1954
+ * Where the next export starts, when this one stopped at the export
1955
+ * limit; zero when the file holds the whole range.
1956
+ *
1957
+ * @generated from field: int64 next = 5;
1958
+ */
1959
+ next: bigint;
1960
+ };
1961
+ /**
1962
+ * @generated from message toshi.workspace.v1.ExportChannelLogResponse
1963
+ */
1964
+ export type ExportChannelLogResponseJson = {
1965
+ /**
1966
+ * The file's next bytes.
1967
+ *
1968
+ * @generated from field: bytes data = 1;
1969
+ */
1970
+ data?: string;
1971
+ /**
1972
+ * The rest is set on the first response only. The file's name, with
1973
+ * the range it holds.
1974
+ *
1975
+ * @generated from field: string file_name = 2;
1976
+ */
1977
+ fileName?: string;
1978
+ /**
1979
+ * application/octet-stream for output, application/x-ndjson for
1980
+ * records.
1981
+ *
1982
+ * @generated from field: string content_type = 3;
1983
+ */
1984
+ contentType?: string;
1985
+ /**
1986
+ * Where the file starts: an offset, or a record's sequence number.
1987
+ *
1988
+ * @generated from field: int64 from = 4;
1989
+ */
1990
+ from?: string;
1991
+ /**
1992
+ * Where the next export starts, when this one stopped at the export
1993
+ * limit; zero when the file holds the whole range.
1994
+ *
1995
+ * @generated from field: int64 next = 5;
1996
+ */
1997
+ next?: string;
1998
+ };
1999
+ /**
2000
+ * Describes the message toshi.workspace.v1.ExportChannelLogResponse.
2001
+ * Use `create(ExportChannelLogResponseSchema)` to create a new message.
2002
+ */
2003
+ export declare const ExportChannelLogResponseSchema: GenMessage<ExportChannelLogResponse, {
2004
+ jsonType: ExportChannelLogResponseJson;
2005
+ }>;
2006
+ /**
2007
+ * @generated from message toshi.workspace.v1.CreateChannelConnectTokenRequest
2008
+ */
2009
+ export type CreateChannelConnectTokenRequest = Message<"toshi.workspace.v1.CreateChannelConnectTokenRequest"> & {
2010
+ /**
2011
+ * @generated from field: string job_id = 1;
2012
+ */
2013
+ jobId: string;
2014
+ /**
2015
+ * @generated from field: string name = 2;
2016
+ */
2017
+ name: string;
2018
+ /**
2019
+ * The caller's name for its device, which the token and its audit rows
2020
+ * carry: at most 64 letters, digits, '.', '_' and '-'.
2021
+ *
2022
+ * @generated from field: string device = 3;
2023
+ */
2024
+ device: string;
2025
+ /**
2026
+ * The mode the token grants the attach it admits; unset grants input.
2027
+ *
2028
+ * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 4;
2029
+ */
2030
+ mode: ChannelAttachMode;
2031
+ };
2032
+ /**
2033
+ * @generated from message toshi.workspace.v1.CreateChannelConnectTokenRequest
2034
+ */
2035
+ export type CreateChannelConnectTokenRequestJson = {
2036
+ /**
2037
+ * @generated from field: string job_id = 1;
2038
+ */
2039
+ jobId?: string;
2040
+ /**
2041
+ * @generated from field: string name = 2;
2042
+ */
2043
+ name?: string;
2044
+ /**
2045
+ * The caller's name for its device, which the token and its audit rows
2046
+ * carry: at most 64 letters, digits, '.', '_' and '-'.
2047
+ *
2048
+ * @generated from field: string device = 3;
2049
+ */
2050
+ device?: string;
2051
+ /**
2052
+ * The mode the token grants the attach it admits; unset grants input.
2053
+ *
2054
+ * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 4;
2055
+ */
2056
+ mode?: ChannelAttachModeJson;
2057
+ };
2058
+ /**
2059
+ * Describes the message toshi.workspace.v1.CreateChannelConnectTokenRequest.
2060
+ * Use `create(CreateChannelConnectTokenRequestSchema)` to create a new message.
2061
+ */
2062
+ export declare const CreateChannelConnectTokenRequestSchema: GenMessage<CreateChannelConnectTokenRequest, {
2063
+ jsonType: CreateChannelConnectTokenRequestJson;
2064
+ }>;
2065
+ /**
2066
+ * @generated from message toshi.workspace.v1.CreateChannelConnectTokenResponse
2067
+ */
2068
+ export type CreateChannelConnectTokenResponse = Message<"toshi.workspace.v1.CreateChannelConnectTokenResponse"> & {
2069
+ /**
2070
+ * The ID RevokeChannelConnectToken takes.
2071
+ *
2072
+ * @generated from field: string id = 1;
2073
+ */
2074
+ id: string;
2075
+ /**
2076
+ * @generated from field: string token = 2;
2077
+ */
2078
+ token: string;
2079
+ /**
2080
+ * Where the token is used.
2081
+ *
2082
+ * @generated from field: string url = 3;
2083
+ */
2084
+ url: string;
2085
+ /**
2086
+ * @generated from field: google.protobuf.Timestamp expires_at = 4;
2087
+ */
2088
+ expiresAt?: Timestamp | undefined;
2089
+ /**
2090
+ * What reaches url: toshi-channel, an upgrade of the control plane's
2091
+ * connection, or https or http for a preview's host.
2092
+ *
2093
+ * @generated from field: string transport = 5;
2094
+ */
2095
+ transport: string;
2096
+ /**
2097
+ * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 6;
2098
+ */
2099
+ mode: ChannelAttachMode;
2100
+ };
2101
+ /**
2102
+ * @generated from message toshi.workspace.v1.CreateChannelConnectTokenResponse
2103
+ */
2104
+ export type CreateChannelConnectTokenResponseJson = {
2105
+ /**
2106
+ * The ID RevokeChannelConnectToken takes.
2107
+ *
2108
+ * @generated from field: string id = 1;
2109
+ */
2110
+ id?: string;
2111
+ /**
2112
+ * @generated from field: string token = 2;
2113
+ */
2114
+ token?: string;
2115
+ /**
2116
+ * Where the token is used.
2117
+ *
2118
+ * @generated from field: string url = 3;
2119
+ */
2120
+ url?: string;
2121
+ /**
2122
+ * @generated from field: google.protobuf.Timestamp expires_at = 4;
2123
+ */
2124
+ expiresAt?: TimestampJson;
2125
+ /**
2126
+ * What reaches url: toshi-channel, an upgrade of the control plane's
2127
+ * connection, or https or http for a preview's host.
2128
+ *
2129
+ * @generated from field: string transport = 5;
2130
+ */
2131
+ transport?: string;
2132
+ /**
2133
+ * @generated from field: toshi.workspace.v1.ChannelAttachMode mode = 6;
2134
+ */
2135
+ mode?: ChannelAttachModeJson;
2136
+ };
2137
+ /**
2138
+ * Describes the message toshi.workspace.v1.CreateChannelConnectTokenResponse.
2139
+ * Use `create(CreateChannelConnectTokenResponseSchema)` to create a new message.
2140
+ */
2141
+ export declare const CreateChannelConnectTokenResponseSchema: GenMessage<CreateChannelConnectTokenResponse, {
2142
+ jsonType: CreateChannelConnectTokenResponseJson;
2143
+ }>;
2144
+ /**
2145
+ * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenRequest
2146
+ */
2147
+ export type RevokeChannelConnectTokenRequest = Message<"toshi.workspace.v1.RevokeChannelConnectTokenRequest"> & {
2148
+ /**
2149
+ * @generated from field: string job_id = 1;
2150
+ */
2151
+ jobId: string;
2152
+ /**
2153
+ * @generated from field: string name = 2;
2154
+ */
2155
+ name: string;
2156
+ /**
2157
+ * The ID the token's create returned.
2158
+ *
2159
+ * @generated from field: string id = 3;
2160
+ */
2161
+ id: string;
2162
+ };
2163
+ /**
2164
+ * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenRequest
2165
+ */
2166
+ export type RevokeChannelConnectTokenRequestJson = {
2167
+ /**
2168
+ * @generated from field: string job_id = 1;
2169
+ */
2170
+ jobId?: string;
2171
+ /**
2172
+ * @generated from field: string name = 2;
2173
+ */
2174
+ name?: string;
2175
+ /**
2176
+ * The ID the token's create returned.
2177
+ *
2178
+ * @generated from field: string id = 3;
2179
+ */
2180
+ id?: string;
2181
+ };
2182
+ /**
2183
+ * Describes the message toshi.workspace.v1.RevokeChannelConnectTokenRequest.
2184
+ * Use `create(RevokeChannelConnectTokenRequestSchema)` to create a new message.
2185
+ */
2186
+ export declare const RevokeChannelConnectTokenRequestSchema: GenMessage<RevokeChannelConnectTokenRequest, {
2187
+ jsonType: RevokeChannelConnectTokenRequestJson;
2188
+ }>;
2189
+ /**
2190
+ * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenResponse
2191
+ */
2192
+ export type RevokeChannelConnectTokenResponse = Message<"toshi.workspace.v1.RevokeChannelConnectTokenResponse"> & {};
2193
+ /**
2194
+ * @generated from message toshi.workspace.v1.RevokeChannelConnectTokenResponse
2195
+ */
2196
+ export type RevokeChannelConnectTokenResponseJson = {};
2197
+ /**
2198
+ * Describes the message toshi.workspace.v1.RevokeChannelConnectTokenResponse.
2199
+ * Use `create(RevokeChannelConnectTokenResponseSchema)` to create a new message.
2200
+ */
2201
+ export declare const RevokeChannelConnectTokenResponseSchema: GenMessage<RevokeChannelConnectTokenResponse, {
2202
+ jsonType: RevokeChannelConnectTokenResponseJson;
2203
+ }>;
2204
+ /**
2205
+ * @generated from message toshi.workspace.v1.DeleteChannelRequest
2206
+ */
2207
+ export type DeleteChannelRequest = Message<"toshi.workspace.v1.DeleteChannelRequest"> & {
2208
+ /**
2209
+ * @generated from field: string job_id = 1;
2210
+ */
2211
+ jobId: string;
2212
+ /**
2213
+ * @generated from field: string name = 2;
2214
+ */
2215
+ name: string;
2216
+ };
2217
+ /**
2218
+ * @generated from message toshi.workspace.v1.DeleteChannelRequest
2219
+ */
2220
+ export type DeleteChannelRequestJson = {
2221
+ /**
2222
+ * @generated from field: string job_id = 1;
2223
+ */
2224
+ jobId?: string;
2225
+ /**
2226
+ * @generated from field: string name = 2;
2227
+ */
2228
+ name?: string;
2229
+ };
2230
+ /**
2231
+ * Describes the message toshi.workspace.v1.DeleteChannelRequest.
2232
+ * Use `create(DeleteChannelRequestSchema)` to create a new message.
2233
+ */
2234
+ export declare const DeleteChannelRequestSchema: GenMessage<DeleteChannelRequest, {
2235
+ jsonType: DeleteChannelRequestJson;
2236
+ }>;
2237
+ /**
2238
+ * @generated from message toshi.workspace.v1.DeleteChannelResponse
2239
+ */
2240
+ export type DeleteChannelResponse = Message<"toshi.workspace.v1.DeleteChannelResponse"> & {};
2241
+ /**
2242
+ * @generated from message toshi.workspace.v1.DeleteChannelResponse
2243
+ */
2244
+ export type DeleteChannelResponseJson = {};
2245
+ /**
2246
+ * Describes the message toshi.workspace.v1.DeleteChannelResponse.
2247
+ * Use `create(DeleteChannelResponseSchema)` to create a new message.
2248
+ */
2249
+ export declare const DeleteChannelResponseSchema: GenMessage<DeleteChannelResponse, {
2250
+ jsonType: DeleteChannelResponseJson;
2251
+ }>;
2252
+ /**
2253
+ * @generated from message toshi.workspace.v1.ListForwardsRequest
2254
+ */
2255
+ export type ListForwardsRequest = Message<"toshi.workspace.v1.ListForwardsRequest"> & {
2256
+ /**
2257
+ * @generated from field: string job_id = 1;
2258
+ */
2259
+ jobId: string;
2260
+ /**
2261
+ * The most Forwards in one page; zero lets the server choose.
2262
+ *
2263
+ * @generated from field: int32 page_size = 2;
2264
+ */
2265
+ pageSize: number;
2266
+ /**
2267
+ * From an earlier response's next_page_token; empty for the first page.
2268
+ *
2269
+ * @generated from field: string page_token = 3;
2270
+ */
2271
+ pageToken: string;
2272
+ };
2273
+ /**
2274
+ * @generated from message toshi.workspace.v1.ListForwardsRequest
2275
+ */
2276
+ export type ListForwardsRequestJson = {
2277
+ /**
2278
+ * @generated from field: string job_id = 1;
2279
+ */
2280
+ jobId?: string;
2281
+ /**
2282
+ * The most Forwards in one page; zero lets the server choose.
2283
+ *
2284
+ * @generated from field: int32 page_size = 2;
2285
+ */
2286
+ pageSize?: number;
2287
+ /**
2288
+ * From an earlier response's next_page_token; empty for the first page.
2289
+ *
2290
+ * @generated from field: string page_token = 3;
2291
+ */
2292
+ pageToken?: string;
2293
+ };
2294
+ /**
2295
+ * Describes the message toshi.workspace.v1.ListForwardsRequest.
2296
+ * Use `create(ListForwardsRequestSchema)` to create a new message.
2297
+ */
2298
+ export declare const ListForwardsRequestSchema: GenMessage<ListForwardsRequest, {
2299
+ jsonType: ListForwardsRequestJson;
2300
+ }>;
2301
+ /**
2302
+ * @generated from message toshi.workspace.v1.ListForwardsResponse
2303
+ */
2304
+ export type ListForwardsResponse = Message<"toshi.workspace.v1.ListForwardsResponse"> & {
2305
+ /**
2306
+ * @generated from field: repeated toshi.workspace.v1.Forward forwards = 1;
2307
+ */
2308
+ forwards: Forward[];
2309
+ /**
2310
+ * Empty on the last page.
2311
+ *
2312
+ * @generated from field: string next_page_token = 2;
2313
+ */
2314
+ nextPageToken: string;
2315
+ };
2316
+ /**
2317
+ * @generated from message toshi.workspace.v1.ListForwardsResponse
2318
+ */
2319
+ export type ListForwardsResponseJson = {
2320
+ /**
2321
+ * @generated from field: repeated toshi.workspace.v1.Forward forwards = 1;
2322
+ */
2323
+ forwards?: ForwardJson[];
2324
+ /**
2325
+ * Empty on the last page.
2326
+ *
2327
+ * @generated from field: string next_page_token = 2;
2328
+ */
2329
+ nextPageToken?: string;
2330
+ };
2331
+ /**
2332
+ * Describes the message toshi.workspace.v1.ListForwardsResponse.
2333
+ * Use `create(ListForwardsResponseSchema)` to create a new message.
2334
+ */
2335
+ export declare const ListForwardsResponseSchema: GenMessage<ListForwardsResponse, {
2336
+ jsonType: ListForwardsResponseJson;
2337
+ }>;
2338
+ /**
2339
+ * @generated from message toshi.workspace.v1.GetLinkRequest
2340
+ */
2341
+ export type GetLinkRequest = Message<"toshi.workspace.v1.GetLinkRequest"> & {
2342
+ /**
2343
+ * @generated from field: string job_id = 1;
2344
+ */
2345
+ jobId: string;
2346
+ };
2347
+ /**
2348
+ * @generated from message toshi.workspace.v1.GetLinkRequest
2349
+ */
2350
+ export type GetLinkRequestJson = {
2351
+ /**
2352
+ * @generated from field: string job_id = 1;
2353
+ */
2354
+ jobId?: string;
2355
+ };
2356
+ /**
2357
+ * Describes the message toshi.workspace.v1.GetLinkRequest.
2358
+ * Use `create(GetLinkRequestSchema)` to create a new message.
2359
+ */
2360
+ export declare const GetLinkRequestSchema: GenMessage<GetLinkRequest, {
2361
+ jsonType: GetLinkRequestJson;
2362
+ }>;
2363
+ /**
2364
+ * @generated from message toshi.workspace.v1.GetLinkResponse
2365
+ */
2366
+ export type GetLinkResponse = Message<"toshi.workspace.v1.GetLinkResponse"> & {
2367
+ /**
2368
+ * @generated from field: toshi.workspace.v1.Link link = 1;
2369
+ */
2370
+ link?: Link | undefined;
2371
+ };
2372
+ /**
2373
+ * @generated from message toshi.workspace.v1.GetLinkResponse
2374
+ */
2375
+ export type GetLinkResponseJson = {
2376
+ /**
2377
+ * @generated from field: toshi.workspace.v1.Link link = 1;
2378
+ */
2379
+ link?: LinkJson;
2380
+ };
2381
+ /**
2382
+ * Describes the message toshi.workspace.v1.GetLinkResponse.
2383
+ * Use `create(GetLinkResponseSchema)` to create a new message.
2384
+ */
2385
+ export declare const GetLinkResponseSchema: GenMessage<GetLinkResponse, {
2386
+ jsonType: GetLinkResponseJson;
2387
+ }>;
2388
+ /**
2389
+ * ChannelShape is how a channel carries its bytes.
2390
+ *
2391
+ * @generated from enum toshi.workspace.v1.ChannelShape
2392
+ */
2393
+ export declare enum ChannelShape {
2394
+ /**
2395
+ * @generated from enum value: CHANNEL_SHAPE_UNSPECIFIED = 0;
2396
+ */
2397
+ UNSPECIFIED = 0,
2398
+ /**
2399
+ * A port in the guest, served as HTTP.
2400
+ *
2401
+ * @generated from enum value: CHANNEL_SHAPE_HTTP = 1;
2402
+ */
2403
+ HTTP = 1,
2404
+ /**
2405
+ * A command in the guest, whose input and output clients attach to.
2406
+ *
2407
+ * @generated from enum value: CHANNEL_SHAPE_STREAM = 2;
2408
+ */
2409
+ STREAM = 2
2410
+ }
2411
+ /**
2412
+ * ChannelShape is how a channel carries its bytes.
2413
+ *
2414
+ * @generated from enum toshi.workspace.v1.ChannelShape
2415
+ */
2416
+ export type ChannelShapeJson = "CHANNEL_SHAPE_UNSPECIFIED" | "CHANNEL_SHAPE_HTTP" | "CHANNEL_SHAPE_STREAM";
2417
+ /**
2418
+ * Describes the enum toshi.workspace.v1.ChannelShape.
2419
+ */
2420
+ export declare const ChannelShapeSchema: GenEnum<ChannelShape, ChannelShapeJson>;
2421
+ /**
2422
+ * ChannelState is where a channel is in its life.
2423
+ *
2424
+ * @generated from enum toshi.workspace.v1.ChannelState
2425
+ */
2426
+ export declare enum ChannelState {
2427
+ /**
2428
+ * @generated from enum value: CHANNEL_STATE_UNSPECIFIED = 0;
2429
+ */
2430
+ UNSPECIFIED = 0,
2431
+ /**
2432
+ * @generated from enum value: CHANNEL_STATE_OPEN = 1;
2433
+ */
2434
+ OPEN = 1,
2435
+ /**
2436
+ * A stream channel's process has exited; its output is still kept.
2437
+ *
2438
+ * @generated from enum value: CHANNEL_STATE_EXITED = 2;
2439
+ */
2440
+ EXITED = 2,
2441
+ /**
2442
+ * Deleted, waiting for the guest to close its process.
2443
+ *
2444
+ * @generated from enum value: CHANNEL_STATE_CLOSING = 3;
2445
+ */
2446
+ CLOSING = 3,
2447
+ /**
2448
+ * @generated from enum value: CHANNEL_STATE_ENDED = 4;
2449
+ */
2450
+ ENDED = 4
2451
+ }
2452
+ /**
2453
+ * ChannelState is where a channel is in its life.
2454
+ *
2455
+ * @generated from enum toshi.workspace.v1.ChannelState
2456
+ */
2457
+ export type ChannelStateJson = "CHANNEL_STATE_UNSPECIFIED" | "CHANNEL_STATE_OPEN" | "CHANNEL_STATE_EXITED" | "CHANNEL_STATE_CLOSING" | "CHANNEL_STATE_ENDED";
2458
+ /**
2459
+ * Describes the enum toshi.workspace.v1.ChannelState.
2460
+ */
2461
+ export declare const ChannelStateSchema: GenEnum<ChannelState, ChannelStateJson>;
2462
+ /**
2463
+ * ChannelAttachMode is what an attached client may do.
2464
+ *
2465
+ * @generated from enum toshi.workspace.v1.ChannelAttachMode
2466
+ */
2467
+ export declare enum ChannelAttachMode {
2468
+ /**
2469
+ * @generated from enum value: CHANNEL_ATTACH_MODE_UNSPECIFIED = 0;
2470
+ */
2471
+ UNSPECIFIED = 0,
2472
+ /**
2473
+ * The client may send input.
2474
+ *
2475
+ * @generated from enum value: CHANNEL_ATTACH_MODE_INPUT = 1;
2476
+ */
2477
+ INPUT = 1,
2478
+ /**
2479
+ * The client reads the output only.
2480
+ *
2481
+ * @generated from enum value: CHANNEL_ATTACH_MODE_READ_ONLY = 2;
2482
+ */
2483
+ READ_ONLY = 2
2484
+ }
2485
+ /**
2486
+ * ChannelAttachMode is what an attached client may do.
2487
+ *
2488
+ * @generated from enum toshi.workspace.v1.ChannelAttachMode
2489
+ */
2490
+ export type ChannelAttachModeJson = "CHANNEL_ATTACH_MODE_UNSPECIFIED" | "CHANNEL_ATTACH_MODE_INPUT" | "CHANNEL_ATTACH_MODE_READ_ONLY";
2491
+ /**
2492
+ * Describes the enum toshi.workspace.v1.ChannelAttachMode.
2493
+ */
2494
+ export declare const ChannelAttachModeSchema: GenEnum<ChannelAttachMode, ChannelAttachModeJson>;
2495
+ /**
2496
+ * ChannelLog names the log of a channel an export carries.
2497
+ *
2498
+ * @generated from enum toshi.workspace.v1.ChannelLog
2499
+ */
2500
+ export declare enum ChannelLog {
2501
+ /**
2502
+ * @generated from enum value: CHANNEL_LOG_UNSPECIFIED = 0;
2503
+ */
2504
+ UNSPECIFIED = 0,
2505
+ /**
2506
+ * A stream channel's output.
2507
+ *
2508
+ * @generated from enum value: CHANNEL_LOG_OUTPUT = 1;
2509
+ */
2510
+ OUTPUT = 1,
2511
+ /**
2512
+ * An http channel's request records.
2513
+ *
2514
+ * @generated from enum value: CHANNEL_LOG_REQUESTS = 2;
2515
+ */
2516
+ REQUESTS = 2
2517
+ }
2518
+ /**
2519
+ * ChannelLog names the log of a channel an export carries.
2520
+ *
2521
+ * @generated from enum toshi.workspace.v1.ChannelLog
2522
+ */
2523
+ export type ChannelLogJson = "CHANNEL_LOG_UNSPECIFIED" | "CHANNEL_LOG_OUTPUT" | "CHANNEL_LOG_REQUESTS";
2524
+ /**
2525
+ * Describes the enum toshi.workspace.v1.ChannelLog.
2526
+ */
2527
+ export declare const ChannelLogSchema: GenEnum<ChannelLog, ChannelLogJson>;
2528
+ /**
2529
+ * ChannelService manages the channels of the workspace's jobs, lists a
2530
+ * job's Forwards and reads its Link. A channel is a port in the job's
2531
+ * guest served as HTTP (an http channel), or a command whose input and
2532
+ * output clients attach to (a stream channel). The caller's credential
2533
+ * names the workspace, as for WorkloadService; a job of another workspace
2534
+ * is NOT_FOUND. Every call names the job by its ID as the jobs API and
2535
+ * `toshi host-job list` show it, and a channel by its name on that job.
2536
+ *
2537
+ * What carries a stream is not a call: a client attaches to a stream
2538
+ * channel, and a Forward opens, on an upgrade of the control plane's
2539
+ * connection, with a token from CreateChannelConnectToken. A control
2540
+ * plane that serves no channels answers every call with UNIMPLEMENTED.
2541
+ *
2542
+ * @generated from service toshi.workspace.v1.ChannelService
2543
+ */
2544
+ export declare const ChannelService: GenService<{
2545
+ /**
2546
+ * CreateChannel opens a channel on a running job: a port makes an http
2547
+ * channel, a command a stream channel, whose process the guest starts.
2548
+ * A job that is not running fails with FAILED_PRECONDITION, a name the
2549
+ * job already has with ALREADY_EXISTS, and a sandbox's port beyond its
2550
+ * plan's preview ports with RESOURCE_EXHAUSTED.
2551
+ *
2552
+ * @generated from rpc toshi.workspace.v1.ChannelService.CreateChannel
2553
+ */
2554
+ createChannel: {
2555
+ methodKind: "unary";
2556
+ input: typeof CreateChannelRequestSchema;
2557
+ output: typeof CreateChannelResponseSchema;
2558
+ };
2559
+ /**
2560
+ * ListChannels lists a job's channels, or every channel of the
2561
+ * workspace, ended ones included, oldest first.
2562
+ *
2563
+ * A page holds 100 channels when page_size is zero, and 1000 at most.
2564
+ *
2565
+ * @generated from rpc toshi.workspace.v1.ChannelService.ListChannels
2566
+ */
2567
+ listChannels: {
2568
+ methodKind: "unary";
2569
+ input: typeof ListChannelsRequestSchema;
2570
+ output: typeof ListChannelsResponseSchema;
2571
+ };
2572
+ /**
2573
+ * GetChannel returns one channel, with a stream channel's clients. Its
2574
+ * request is named in full: inside the service, GetChannelRequest is
2575
+ * the call below.
2576
+ *
2577
+ * @generated from rpc toshi.workspace.v1.ChannelService.GetChannel
2578
+ */
2579
+ getChannel: {
2580
+ methodKind: "unary";
2581
+ input: typeof GetChannelRequestSchema;
2582
+ output: typeof GetChannelResponseSchema;
2583
+ };
2584
+ /**
2585
+ * GetChannelPolicy returns a channel's effective policy, with its
2586
+ * version.
2587
+ *
2588
+ * @generated from rpc toshi.workspace.v1.ChannelService.GetChannelPolicy
2589
+ */
2590
+ getChannelPolicy: {
2591
+ methodKind: "unary";
2592
+ input: typeof GetChannelPolicyRequestSchema;
2593
+ output: typeof GetChannelPolicyResponseSchema;
2594
+ };
2595
+ /**
2596
+ * SetChannelPolicy replaces a channel's policy when the version it names
2597
+ * is the one stored, and returns the policy at its new version. A policy
2598
+ * changed since that version fails with ABORTED: read it again. A
2599
+ * malformed policy fails with INVALID_ARGUMENT, and one the channel
2600
+ * refuses, such as a list without a module that may not be removed,
2601
+ * with FAILED_PRECONDITION.
2602
+ *
2603
+ * @generated from rpc toshi.workspace.v1.ChannelService.SetChannelPolicy
2604
+ */
2605
+ setChannelPolicy: {
2606
+ methodKind: "unary";
2607
+ input: typeof SetChannelPolicyRequestSchema;
2608
+ output: typeof SetChannelPolicyResponseSchema;
2609
+ };
2610
+ /**
2611
+ * ListChannelRequests lists an http channel's request records the
2612
+ * filters select, newest first, or oldest first after after_seq,
2613
+ * without their headers and bodies. A stream channel fails with
2614
+ * FAILED_PRECONDITION.
2615
+ *
2616
+ * A page holds 50 records when page_size is zero, and 500 at most.
2617
+ *
2618
+ * @generated from rpc toshi.workspace.v1.ChannelService.ListChannelRequests
2619
+ */
2620
+ listChannelRequests: {
2621
+ methodKind: "unary";
2622
+ input: typeof ListChannelRequestsRequestSchema;
2623
+ output: typeof ListChannelRequestsResponseSchema;
2624
+ };
2625
+ /**
2626
+ * GetChannelRequest returns one request record whole. A record the
2627
+ * channel no longer keeps fails with NOT_FOUND, naming the oldest kept.
2628
+ *
2629
+ * @generated from rpc toshi.workspace.v1.ChannelService.GetChannelRequest
2630
+ */
2631
+ getChannelRequest: {
2632
+ methodKind: "unary";
2633
+ input: typeof GetChannelRequestRequestSchema;
2634
+ output: typeof GetChannelRequestResponseSchema;
2635
+ };
2636
+ /**
2637
+ * ExportChannelLog streams a file of a channel's log: a stream channel's
2638
+ * output between two offsets, as bytes, or an http channel's request
2639
+ * records between two sequence numbers or times, one JSON line each,
2640
+ * oldest first. One export holds at most the control plane's export
2641
+ * limit, 64 MiB unless set; the first response's next says where the
2642
+ * following export starts. Each export is recorded in the audit log.
2643
+ *
2644
+ * @generated from rpc toshi.workspace.v1.ChannelService.ExportChannelLog
2645
+ */
2646
+ exportChannelLog: {
2647
+ methodKind: "server_streaming";
2648
+ input: typeof ExportChannelLogRequestSchema;
2649
+ output: typeof ExportChannelLogResponseSchema;
2650
+ };
2651
+ /**
2652
+ * CreateChannelConnectToken mints a token that attaches one client to a
2653
+ * channel, or opens a preview in a browser, once, before it expires. A
2654
+ * channel the connect path would not serve fails as that path does.
2655
+ *
2656
+ * @generated from rpc toshi.workspace.v1.ChannelService.CreateChannelConnectToken
2657
+ */
2658
+ createChannelConnectToken: {
2659
+ methodKind: "unary";
2660
+ input: typeof CreateChannelConnectTokenRequestSchema;
2661
+ output: typeof CreateChannelConnectTokenResponseSchema;
2662
+ };
2663
+ /**
2664
+ * RevokeChannelConnectToken refuses a connect token from then on, on
2665
+ * every process of the control plane; a preview's token also ends what
2666
+ * it opened. A token not minted for this channel is NOT_FOUND. A token
2667
+ * that has expired is refused already, and its revoke writes nothing.
2668
+ *
2669
+ * @generated from rpc toshi.workspace.v1.ChannelService.RevokeChannelConnectToken
2670
+ */
2671
+ revokeChannelConnectToken: {
2672
+ methodKind: "unary";
2673
+ input: typeof RevokeChannelConnectTokenRequestSchema;
2674
+ output: typeof RevokeChannelConnectTokenResponseSchema;
2675
+ };
2676
+ /**
2677
+ * DeleteChannel ends a channel and its connections. An open stream
2678
+ * channel stays, closing, until the guest has closed its process or the
2679
+ * job has ended; any other channel goes at once.
2680
+ *
2681
+ * @generated from rpc toshi.workspace.v1.ChannelService.DeleteChannel
2682
+ */
2683
+ deleteChannel: {
2684
+ methodKind: "unary";
2685
+ input: typeof DeleteChannelRequestSchema;
2686
+ output: typeof DeleteChannelResponseSchema;
2687
+ };
2688
+ /**
2689
+ * ListForwards lists a running job's open Forwards, oldest first; a job
2690
+ * that is not running has none. When a process of the control plane
2691
+ * that holds the job's Link does not answer, the call fails with
2692
+ * UNAVAILABLE rather than answer short.
2693
+ *
2694
+ * A page holds 100 Forwards when page_size is zero, and 1000 at most.
2695
+ *
2696
+ * @generated from rpc toshi.workspace.v1.ChannelService.ListForwards
2697
+ */
2698
+ listForwards: {
2699
+ methodKind: "unary";
2700
+ input: typeof ListForwardsRequestSchema;
2701
+ output: typeof ListForwardsResponseSchema;
2702
+ };
2703
+ /**
2704
+ * GetLink returns the state of the Link of the runner the job holds.
2705
+ *
2706
+ * @generated from rpc toshi.workspace.v1.ChannelService.GetLink
2707
+ */
2708
+ getLink: {
2709
+ methodKind: "unary";
2710
+ input: typeof GetLinkRequestSchema;
2711
+ output: typeof GetLinkResponseSchema;
2712
+ };
2713
+ }>;