@toshicloud/sdk 0.5.0 → 0.5.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 (71) hide show
  1. package/README.md +82 -40
  2. package/dist/client.d.ts +33 -2
  3. package/dist/client.js +28 -3
  4. package/dist/errors.d.ts +74 -22
  5. package/dist/errors.js +99 -27
  6. package/dist/gen/toshi/permission_pb.d.ts +207 -2
  7. package/dist/gen/toshi/permission_pb.js +54 -2
  8. package/dist/gen/toshi/workspace/v1/account_pb.d.ts +590 -0
  9. package/dist/gen/toshi/workspace/v1/account_pb.js +75 -0
  10. package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +14 -8
  11. package/dist/gen/toshi/workspace/v1/artifacts_pb.js +9 -7
  12. package/dist/gen/toshi/workspace/v1/audit_events_pb.d.ts +191 -6
  13. package/dist/gen/toshi/workspace/v1/audit_events_pb.js +11 -1
  14. package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +1194 -21
  15. package/dist/gen/toshi/workspace/v1/channels_pb.js +185 -39
  16. package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +1481 -0
  17. package/dist/gen/toshi/workspace/v1/connections_pb.js +208 -0
  18. package/dist/gen/toshi/workspace/v1/discovery_pb.d.ts +291 -43
  19. package/dist/gen/toshi/workspace/v1/discovery_pb.js +79 -30
  20. package/dist/gen/toshi/workspace/v1/display_pb.d.ts +198 -15
  21. package/dist/gen/toshi/workspace/v1/display_pb.js +52 -2
  22. package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +864 -0
  23. package/dist/gen/toshi/workspace/v1/domains_pb.js +152 -0
  24. package/dist/gen/toshi/workspace/v1/fillers_pb.d.ts +12 -4
  25. package/dist/gen/toshi/workspace/v1/fillers_pb.js +1 -1
  26. package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +1297 -0
  27. package/dist/gen/toshi/workspace/v1/grants_pb.js +271 -0
  28. package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +315 -15
  29. package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +10 -5
  30. package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +196 -7
  31. package/dist/gen/toshi/workspace/v1/hosts_pb.js +12 -7
  32. package/dist/gen/toshi/workspace/v1/images_pb.d.ts +1463 -0
  33. package/dist/gen/toshi/workspace/v1/images_pb.js +263 -0
  34. package/dist/gen/toshi/workspace/v1/products_pb.d.ts +99 -296
  35. package/dist/gen/toshi/workspace/v1/products_pb.js +7 -53
  36. package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1474 -99
  37. package/dist/gen/toshi/workspace/v1/projects_pb.js +150 -33
  38. package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +181 -14
  39. package/dist/gen/toshi/workspace/v1/recordings_pb.js +54 -14
  40. package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1994 -0
  41. package/dist/gen/toshi/workspace/v1/roles_pb.js +355 -0
  42. package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +314 -8
  43. package/dist/gen/toshi/workspace/v1/secrets_pb.js +42 -18
  44. package/dist/gen/toshi/workspace/v1/storage_providers_pb.d.ts +14 -0
  45. package/dist/gen/toshi/workspace/v1/storage_providers_pb.js +1 -1
  46. package/dist/gen/toshi/workspace/v1/tokens_pb.d.ts +434 -5
  47. package/dist/gen/toshi/workspace/v1/tokens_pb.js +65 -8
  48. package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +1099 -0
  49. package/dist/gen/toshi/workspace/v1/triggers_pb.js +185 -0
  50. package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +1052 -33
  51. package/dist/gen/toshi/workspace/v1/volumes_pb.js +169 -11
  52. package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +66 -8
  53. package/dist/gen/toshi/workspace/v1/webhook_pb.js +4 -4
  54. package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2043 -54
  55. package/dist/gen/toshi/workspace/v1/workloads_pb.js +204 -54
  56. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6290 -937
  57. package/dist/gen/toshi/workspace/v1/workspace_pb.js +801 -88
  58. package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +2176 -630
  59. package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +191 -74
  60. package/dist/index.d.ts +8 -1
  61. package/dist/index.js +8 -1
  62. package/dist/interceptors.d.ts +6 -2
  63. package/dist/interceptors.js +13 -8
  64. package/dist/retry.d.ts +18 -0
  65. package/dist/retry.js +225 -23
  66. package/dist/test/procedures.js +100 -5
  67. package/dist/version.d.ts +1 -1
  68. package/dist/version.js +1 -1
  69. package/dist/wait.d.ts +4 -0
  70. package/dist/wait.js +24 -1
  71. package/package.json +3 -2
@@ -0,0 +1,864 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file toshi/workspace/v1/domains.proto.
6
+ */
7
+ export declare const file_toshi_workspace_v1_domains: GenFile;
8
+ /**
9
+ * DomainRecord is one DNS record a domain needs at its DNS provider.
10
+ *
11
+ * @generated from message toshi.workspace.v1.DomainRecord
12
+ */
13
+ export type DomainRecord = Message<"toshi.workspace.v1.DomainRecord"> & {
14
+ /**
15
+ * CNAME or TXT.
16
+ *
17
+ * @generated from field: string type = 1;
18
+ */
19
+ type: string;
20
+ /**
21
+ * The record's name.
22
+ *
23
+ * @generated from field: string name = 2;
24
+ */
25
+ name: string;
26
+ /**
27
+ * The record's value.
28
+ *
29
+ * @generated from field: string value = 3;
30
+ */
31
+ value: string;
32
+ };
33
+ /**
34
+ * DomainRecord is one DNS record a domain needs at its DNS provider.
35
+ *
36
+ * @generated from message toshi.workspace.v1.DomainRecord
37
+ */
38
+ export type DomainRecordJson = {
39
+ /**
40
+ * CNAME or TXT.
41
+ *
42
+ * @generated from field: string type = 1;
43
+ */
44
+ type?: string;
45
+ /**
46
+ * The record's name.
47
+ *
48
+ * @generated from field: string name = 2;
49
+ */
50
+ name?: string;
51
+ /**
52
+ * The record's value.
53
+ *
54
+ * @generated from field: string value = 3;
55
+ */
56
+ value?: string;
57
+ };
58
+ /**
59
+ * Describes the message toshi.workspace.v1.DomainRecord.
60
+ * Use `create(DomainRecordSchema)` to create a new message.
61
+ */
62
+ export declare const DomainRecordSchema: GenMessage<DomainRecord, {
63
+ jsonType: DomainRecordJson;
64
+ }>;
65
+ /**
66
+ * @generated from message toshi.workspace.v1.Domain
67
+ */
68
+ export type Domain = Message<"toshi.workspace.v1.Domain"> & {
69
+ /**
70
+ * @generated from field: string id = 1;
71
+ */
72
+ id: string;
73
+ /**
74
+ * The domain, lowercase, in its ASCII form.
75
+ *
76
+ * @generated from field: string name = 2;
77
+ */
78
+ name: string;
79
+ /**
80
+ * The service's workload id.
81
+ *
82
+ * @generated from field: string service_id = 3;
83
+ */
84
+ serviceId: string;
85
+ /**
86
+ * The service's http channel the domain serves, by its name in the
87
+ * recipe; the front channel's when the create named none.
88
+ *
89
+ * @generated from field: string channel = 4;
90
+ */
91
+ channel: string;
92
+ /**
93
+ * @generated from field: toshi.workspace.v1.DomainState state = 5;
94
+ */
95
+ state: DomainState;
96
+ /**
97
+ * The CNAME record to the channel's provided name, then the TXT record
98
+ * with the domain's token; only the TXT record while the service's
99
+ * current revision gives the channel no provided name.
100
+ *
101
+ * @generated from field: repeated toshi.workspace.v1.DomainRecord records = 6;
102
+ */
103
+ records: DomainRecord[];
104
+ /**
105
+ * Unset until its records are first checked.
106
+ *
107
+ * @generated from field: google.protobuf.Timestamp checked_at = 7;
108
+ */
109
+ checkedAt?: Timestamp | undefined;
110
+ /**
111
+ * Unset until its records first check out.
112
+ *
113
+ * @generated from field: google.protobuf.Timestamp verified_at = 8;
114
+ */
115
+ verifiedAt?: Timestamp | undefined;
116
+ /**
117
+ * Unset until a certificate is first ordered.
118
+ *
119
+ * @generated from field: google.protobuf.Timestamp last_order_at = 9;
120
+ */
121
+ lastOrderAt?: Timestamp | undefined;
122
+ /**
123
+ * When the next order may start; set only while RATE_LIMITED, or after
124
+ * a failed order.
125
+ *
126
+ * @generated from field: google.protobuf.Timestamp retry_at = 10;
127
+ */
128
+ retryAt?: Timestamp | undefined;
129
+ /**
130
+ * When its certificate ends; unset without one.
131
+ *
132
+ * @generated from field: google.protobuf.Timestamp not_after = 11;
133
+ */
134
+ notAfter?: Timestamp | undefined;
135
+ /**
136
+ * Why the last check or order failed; empty after a success.
137
+ *
138
+ * @generated from field: string last_error = 12;
139
+ */
140
+ lastError: string;
141
+ /**
142
+ * @generated from field: google.protobuf.Timestamp created_at = 13;
143
+ */
144
+ createdAt?: Timestamp | undefined;
145
+ };
146
+ /**
147
+ * @generated from message toshi.workspace.v1.Domain
148
+ */
149
+ export type DomainJson = {
150
+ /**
151
+ * @generated from field: string id = 1;
152
+ */
153
+ id?: string;
154
+ /**
155
+ * The domain, lowercase, in its ASCII form.
156
+ *
157
+ * @generated from field: string name = 2;
158
+ */
159
+ name?: string;
160
+ /**
161
+ * The service's workload id.
162
+ *
163
+ * @generated from field: string service_id = 3;
164
+ */
165
+ serviceId?: string;
166
+ /**
167
+ * The service's http channel the domain serves, by its name in the
168
+ * recipe; the front channel's when the create named none.
169
+ *
170
+ * @generated from field: string channel = 4;
171
+ */
172
+ channel?: string;
173
+ /**
174
+ * @generated from field: toshi.workspace.v1.DomainState state = 5;
175
+ */
176
+ state?: DomainStateJson;
177
+ /**
178
+ * The CNAME record to the channel's provided name, then the TXT record
179
+ * with the domain's token; only the TXT record while the service's
180
+ * current revision gives the channel no provided name.
181
+ *
182
+ * @generated from field: repeated toshi.workspace.v1.DomainRecord records = 6;
183
+ */
184
+ records?: DomainRecordJson[];
185
+ /**
186
+ * Unset until its records are first checked.
187
+ *
188
+ * @generated from field: google.protobuf.Timestamp checked_at = 7;
189
+ */
190
+ checkedAt?: TimestampJson;
191
+ /**
192
+ * Unset until its records first check out.
193
+ *
194
+ * @generated from field: google.protobuf.Timestamp verified_at = 8;
195
+ */
196
+ verifiedAt?: TimestampJson;
197
+ /**
198
+ * Unset until a certificate is first ordered.
199
+ *
200
+ * @generated from field: google.protobuf.Timestamp last_order_at = 9;
201
+ */
202
+ lastOrderAt?: TimestampJson;
203
+ /**
204
+ * When the next order may start; set only while RATE_LIMITED, or after
205
+ * a failed order.
206
+ *
207
+ * @generated from field: google.protobuf.Timestamp retry_at = 10;
208
+ */
209
+ retryAt?: TimestampJson;
210
+ /**
211
+ * When its certificate ends; unset without one.
212
+ *
213
+ * @generated from field: google.protobuf.Timestamp not_after = 11;
214
+ */
215
+ notAfter?: TimestampJson;
216
+ /**
217
+ * Why the last check or order failed; empty after a success.
218
+ *
219
+ * @generated from field: string last_error = 12;
220
+ */
221
+ lastError?: string;
222
+ /**
223
+ * @generated from field: google.protobuf.Timestamp created_at = 13;
224
+ */
225
+ createdAt?: TimestampJson;
226
+ };
227
+ /**
228
+ * Describes the message toshi.workspace.v1.Domain.
229
+ * Use `create(DomainSchema)` to create a new message.
230
+ */
231
+ export declare const DomainSchema: GenMessage<Domain, {
232
+ jsonType: DomainJson;
233
+ }>;
234
+ /**
235
+ * @generated from message toshi.workspace.v1.CreateDomainRequest
236
+ */
237
+ export type CreateDomainRequest = Message<"toshi.workspace.v1.CreateDomainRequest"> & {
238
+ /**
239
+ * @generated from field: string project = 1;
240
+ */
241
+ project: string;
242
+ /**
243
+ * @generated from field: string environment = 2;
244
+ */
245
+ environment: string;
246
+ /**
247
+ * The service's workload id.
248
+ *
249
+ * @generated from field: string service_id = 3;
250
+ */
251
+ serviceId: string;
252
+ /**
253
+ * The http channel the domain serves; empty is the service's front
254
+ * channel, the one at the service's own name.
255
+ *
256
+ * @generated from field: string channel = 4;
257
+ */
258
+ channel: string;
259
+ /**
260
+ * The domain, in its Unicode or ASCII form.
261
+ *
262
+ * @generated from field: string name = 5;
263
+ */
264
+ name: string;
265
+ /**
266
+ * @generated from field: string request_key = 6;
267
+ */
268
+ requestKey: string;
269
+ };
270
+ /**
271
+ * @generated from message toshi.workspace.v1.CreateDomainRequest
272
+ */
273
+ export type CreateDomainRequestJson = {
274
+ /**
275
+ * @generated from field: string project = 1;
276
+ */
277
+ project?: string;
278
+ /**
279
+ * @generated from field: string environment = 2;
280
+ */
281
+ environment?: string;
282
+ /**
283
+ * The service's workload id.
284
+ *
285
+ * @generated from field: string service_id = 3;
286
+ */
287
+ serviceId?: string;
288
+ /**
289
+ * The http channel the domain serves; empty is the service's front
290
+ * channel, the one at the service's own name.
291
+ *
292
+ * @generated from field: string channel = 4;
293
+ */
294
+ channel?: string;
295
+ /**
296
+ * The domain, in its Unicode or ASCII form.
297
+ *
298
+ * @generated from field: string name = 5;
299
+ */
300
+ name?: string;
301
+ /**
302
+ * @generated from field: string request_key = 6;
303
+ */
304
+ requestKey?: string;
305
+ };
306
+ /**
307
+ * Describes the message toshi.workspace.v1.CreateDomainRequest.
308
+ * Use `create(CreateDomainRequestSchema)` to create a new message.
309
+ */
310
+ export declare const CreateDomainRequestSchema: GenMessage<CreateDomainRequest, {
311
+ jsonType: CreateDomainRequestJson;
312
+ }>;
313
+ /**
314
+ * @generated from message toshi.workspace.v1.CreateDomainResponse
315
+ */
316
+ export type CreateDomainResponse = Message<"toshi.workspace.v1.CreateDomainResponse"> & {
317
+ /**
318
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
319
+ */
320
+ domain?: Domain | undefined;
321
+ };
322
+ /**
323
+ * @generated from message toshi.workspace.v1.CreateDomainResponse
324
+ */
325
+ export type CreateDomainResponseJson = {
326
+ /**
327
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
328
+ */
329
+ domain?: DomainJson;
330
+ };
331
+ /**
332
+ * Describes the message toshi.workspace.v1.CreateDomainResponse.
333
+ * Use `create(CreateDomainResponseSchema)` to create a new message.
334
+ */
335
+ export declare const CreateDomainResponseSchema: GenMessage<CreateDomainResponse, {
336
+ jsonType: CreateDomainResponseJson;
337
+ }>;
338
+ /**
339
+ * @generated from message toshi.workspace.v1.GetDomainRequest
340
+ */
341
+ export type GetDomainRequest = Message<"toshi.workspace.v1.GetDomainRequest"> & {
342
+ /**
343
+ * @generated from field: string project = 1;
344
+ */
345
+ project: string;
346
+ /**
347
+ * @generated from field: string environment = 2;
348
+ */
349
+ environment: string;
350
+ /**
351
+ * @generated from field: string id = 3;
352
+ */
353
+ id: string;
354
+ };
355
+ /**
356
+ * @generated from message toshi.workspace.v1.GetDomainRequest
357
+ */
358
+ export type GetDomainRequestJson = {
359
+ /**
360
+ * @generated from field: string project = 1;
361
+ */
362
+ project?: string;
363
+ /**
364
+ * @generated from field: string environment = 2;
365
+ */
366
+ environment?: string;
367
+ /**
368
+ * @generated from field: string id = 3;
369
+ */
370
+ id?: string;
371
+ };
372
+ /**
373
+ * Describes the message toshi.workspace.v1.GetDomainRequest.
374
+ * Use `create(GetDomainRequestSchema)` to create a new message.
375
+ */
376
+ export declare const GetDomainRequestSchema: GenMessage<GetDomainRequest, {
377
+ jsonType: GetDomainRequestJson;
378
+ }>;
379
+ /**
380
+ * @generated from message toshi.workspace.v1.GetDomainResponse
381
+ */
382
+ export type GetDomainResponse = Message<"toshi.workspace.v1.GetDomainResponse"> & {
383
+ /**
384
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
385
+ */
386
+ domain?: Domain | undefined;
387
+ };
388
+ /**
389
+ * @generated from message toshi.workspace.v1.GetDomainResponse
390
+ */
391
+ export type GetDomainResponseJson = {
392
+ /**
393
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
394
+ */
395
+ domain?: DomainJson;
396
+ };
397
+ /**
398
+ * Describes the message toshi.workspace.v1.GetDomainResponse.
399
+ * Use `create(GetDomainResponseSchema)` to create a new message.
400
+ */
401
+ export declare const GetDomainResponseSchema: GenMessage<GetDomainResponse, {
402
+ jsonType: GetDomainResponseJson;
403
+ }>;
404
+ /**
405
+ * @generated from message toshi.workspace.v1.ListDomainsRequest
406
+ */
407
+ export type ListDomainsRequest = Message<"toshi.workspace.v1.ListDomainsRequest"> & {
408
+ /**
409
+ * @generated from field: string project = 1;
410
+ */
411
+ project: string;
412
+ /**
413
+ * @generated from field: string environment = 2;
414
+ */
415
+ environment: string;
416
+ /**
417
+ * The service's workload id.
418
+ *
419
+ * @generated from field: string service_id = 3;
420
+ */
421
+ serviceId: string;
422
+ /**
423
+ * The most domains in one page; zero lets the server choose.
424
+ *
425
+ * @generated from field: int32 page_size = 4;
426
+ */
427
+ pageSize: number;
428
+ /**
429
+ * From an earlier response's next_page_token; empty for the first page.
430
+ *
431
+ * @generated from field: string page_token = 5;
432
+ */
433
+ pageToken: string;
434
+ };
435
+ /**
436
+ * @generated from message toshi.workspace.v1.ListDomainsRequest
437
+ */
438
+ export type ListDomainsRequestJson = {
439
+ /**
440
+ * @generated from field: string project = 1;
441
+ */
442
+ project?: string;
443
+ /**
444
+ * @generated from field: string environment = 2;
445
+ */
446
+ environment?: string;
447
+ /**
448
+ * The service's workload id.
449
+ *
450
+ * @generated from field: string service_id = 3;
451
+ */
452
+ serviceId?: string;
453
+ /**
454
+ * The most domains in one page; zero lets the server choose.
455
+ *
456
+ * @generated from field: int32 page_size = 4;
457
+ */
458
+ pageSize?: number;
459
+ /**
460
+ * From an earlier response's next_page_token; empty for the first page.
461
+ *
462
+ * @generated from field: string page_token = 5;
463
+ */
464
+ pageToken?: string;
465
+ };
466
+ /**
467
+ * Describes the message toshi.workspace.v1.ListDomainsRequest.
468
+ * Use `create(ListDomainsRequestSchema)` to create a new message.
469
+ */
470
+ export declare const ListDomainsRequestSchema: GenMessage<ListDomainsRequest, {
471
+ jsonType: ListDomainsRequestJson;
472
+ }>;
473
+ /**
474
+ * @generated from message toshi.workspace.v1.ListDomainsResponse
475
+ */
476
+ export type ListDomainsResponse = Message<"toshi.workspace.v1.ListDomainsResponse"> & {
477
+ /**
478
+ * @generated from field: repeated toshi.workspace.v1.Domain domains = 1;
479
+ */
480
+ domains: Domain[];
481
+ /**
482
+ * Empty on the last page.
483
+ *
484
+ * @generated from field: string next_page_token = 2;
485
+ */
486
+ nextPageToken: string;
487
+ };
488
+ /**
489
+ * @generated from message toshi.workspace.v1.ListDomainsResponse
490
+ */
491
+ export type ListDomainsResponseJson = {
492
+ /**
493
+ * @generated from field: repeated toshi.workspace.v1.Domain domains = 1;
494
+ */
495
+ domains?: DomainJson[];
496
+ /**
497
+ * Empty on the last page.
498
+ *
499
+ * @generated from field: string next_page_token = 2;
500
+ */
501
+ nextPageToken?: string;
502
+ };
503
+ /**
504
+ * Describes the message toshi.workspace.v1.ListDomainsResponse.
505
+ * Use `create(ListDomainsResponseSchema)` to create a new message.
506
+ */
507
+ export declare const ListDomainsResponseSchema: GenMessage<ListDomainsResponse, {
508
+ jsonType: ListDomainsResponseJson;
509
+ }>;
510
+ /**
511
+ * @generated from message toshi.workspace.v1.VerifyDomainRequest
512
+ */
513
+ export type VerifyDomainRequest = Message<"toshi.workspace.v1.VerifyDomainRequest"> & {
514
+ /**
515
+ * @generated from field: string project = 1;
516
+ */
517
+ project: string;
518
+ /**
519
+ * @generated from field: string environment = 2;
520
+ */
521
+ environment: string;
522
+ /**
523
+ * @generated from field: string id = 3;
524
+ */
525
+ id: string;
526
+ /**
527
+ * @generated from field: string request_key = 4;
528
+ */
529
+ requestKey: string;
530
+ };
531
+ /**
532
+ * @generated from message toshi.workspace.v1.VerifyDomainRequest
533
+ */
534
+ export type VerifyDomainRequestJson = {
535
+ /**
536
+ * @generated from field: string project = 1;
537
+ */
538
+ project?: string;
539
+ /**
540
+ * @generated from field: string environment = 2;
541
+ */
542
+ environment?: string;
543
+ /**
544
+ * @generated from field: string id = 3;
545
+ */
546
+ id?: string;
547
+ /**
548
+ * @generated from field: string request_key = 4;
549
+ */
550
+ requestKey?: string;
551
+ };
552
+ /**
553
+ * Describes the message toshi.workspace.v1.VerifyDomainRequest.
554
+ * Use `create(VerifyDomainRequestSchema)` to create a new message.
555
+ */
556
+ export declare const VerifyDomainRequestSchema: GenMessage<VerifyDomainRequest, {
557
+ jsonType: VerifyDomainRequestJson;
558
+ }>;
559
+ /**
560
+ * @generated from message toshi.workspace.v1.VerifyDomainResponse
561
+ */
562
+ export type VerifyDomainResponse = Message<"toshi.workspace.v1.VerifyDomainResponse"> & {
563
+ /**
564
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
565
+ */
566
+ domain?: Domain | undefined;
567
+ };
568
+ /**
569
+ * @generated from message toshi.workspace.v1.VerifyDomainResponse
570
+ */
571
+ export type VerifyDomainResponseJson = {
572
+ /**
573
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
574
+ */
575
+ domain?: DomainJson;
576
+ };
577
+ /**
578
+ * Describes the message toshi.workspace.v1.VerifyDomainResponse.
579
+ * Use `create(VerifyDomainResponseSchema)` to create a new message.
580
+ */
581
+ export declare const VerifyDomainResponseSchema: GenMessage<VerifyDomainResponse, {
582
+ jsonType: VerifyDomainResponseJson;
583
+ }>;
584
+ /**
585
+ * @generated from message toshi.workspace.v1.IssueDomainRequest
586
+ */
587
+ export type IssueDomainRequest = Message<"toshi.workspace.v1.IssueDomainRequest"> & {
588
+ /**
589
+ * @generated from field: string project = 1;
590
+ */
591
+ project: string;
592
+ /**
593
+ * @generated from field: string environment = 2;
594
+ */
595
+ environment: string;
596
+ /**
597
+ * @generated from field: string id = 3;
598
+ */
599
+ id: string;
600
+ /**
601
+ * @generated from field: string request_key = 4;
602
+ */
603
+ requestKey: string;
604
+ };
605
+ /**
606
+ * @generated from message toshi.workspace.v1.IssueDomainRequest
607
+ */
608
+ export type IssueDomainRequestJson = {
609
+ /**
610
+ * @generated from field: string project = 1;
611
+ */
612
+ project?: string;
613
+ /**
614
+ * @generated from field: string environment = 2;
615
+ */
616
+ environment?: string;
617
+ /**
618
+ * @generated from field: string id = 3;
619
+ */
620
+ id?: string;
621
+ /**
622
+ * @generated from field: string request_key = 4;
623
+ */
624
+ requestKey?: string;
625
+ };
626
+ /**
627
+ * Describes the message toshi.workspace.v1.IssueDomainRequest.
628
+ * Use `create(IssueDomainRequestSchema)` to create a new message.
629
+ */
630
+ export declare const IssueDomainRequestSchema: GenMessage<IssueDomainRequest, {
631
+ jsonType: IssueDomainRequestJson;
632
+ }>;
633
+ /**
634
+ * @generated from message toshi.workspace.v1.IssueDomainResponse
635
+ */
636
+ export type IssueDomainResponse = Message<"toshi.workspace.v1.IssueDomainResponse"> & {
637
+ /**
638
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
639
+ */
640
+ domain?: Domain | undefined;
641
+ };
642
+ /**
643
+ * @generated from message toshi.workspace.v1.IssueDomainResponse
644
+ */
645
+ export type IssueDomainResponseJson = {
646
+ /**
647
+ * @generated from field: toshi.workspace.v1.Domain domain = 1;
648
+ */
649
+ domain?: DomainJson;
650
+ };
651
+ /**
652
+ * Describes the message toshi.workspace.v1.IssueDomainResponse.
653
+ * Use `create(IssueDomainResponseSchema)` to create a new message.
654
+ */
655
+ export declare const IssueDomainResponseSchema: GenMessage<IssueDomainResponse, {
656
+ jsonType: IssueDomainResponseJson;
657
+ }>;
658
+ /**
659
+ * @generated from message toshi.workspace.v1.DeleteDomainRequest
660
+ */
661
+ export type DeleteDomainRequest = Message<"toshi.workspace.v1.DeleteDomainRequest"> & {
662
+ /**
663
+ * @generated from field: string project = 1;
664
+ */
665
+ project: string;
666
+ /**
667
+ * @generated from field: string environment = 2;
668
+ */
669
+ environment: string;
670
+ /**
671
+ * @generated from field: string id = 3;
672
+ */
673
+ id: string;
674
+ };
675
+ /**
676
+ * @generated from message toshi.workspace.v1.DeleteDomainRequest
677
+ */
678
+ export type DeleteDomainRequestJson = {
679
+ /**
680
+ * @generated from field: string project = 1;
681
+ */
682
+ project?: string;
683
+ /**
684
+ * @generated from field: string environment = 2;
685
+ */
686
+ environment?: string;
687
+ /**
688
+ * @generated from field: string id = 3;
689
+ */
690
+ id?: string;
691
+ };
692
+ /**
693
+ * Describes the message toshi.workspace.v1.DeleteDomainRequest.
694
+ * Use `create(DeleteDomainRequestSchema)` to create a new message.
695
+ */
696
+ export declare const DeleteDomainRequestSchema: GenMessage<DeleteDomainRequest, {
697
+ jsonType: DeleteDomainRequestJson;
698
+ }>;
699
+ /**
700
+ * @generated from message toshi.workspace.v1.DeleteDomainResponse
701
+ */
702
+ export type DeleteDomainResponse = Message<"toshi.workspace.v1.DeleteDomainResponse"> & {};
703
+ /**
704
+ * @generated from message toshi.workspace.v1.DeleteDomainResponse
705
+ */
706
+ export type DeleteDomainResponseJson = {};
707
+ /**
708
+ * Describes the message toshi.workspace.v1.DeleteDomainResponse.
709
+ * Use `create(DeleteDomainResponseSchema)` to create a new message.
710
+ */
711
+ export declare const DeleteDomainResponseSchema: GenMessage<DeleteDomainResponse, {
712
+ jsonType: DeleteDomainResponseJson;
713
+ }>;
714
+ /**
715
+ * DomainState is where a domain is.
716
+ *
717
+ * @generated from enum toshi.workspace.v1.DomainState
718
+ */
719
+ export declare enum DomainState {
720
+ /**
721
+ * @generated from enum value: DOMAIN_STATE_UNSPECIFIED = 0;
722
+ */
723
+ UNSPECIFIED = 0,
724
+ /**
725
+ * Its records do not check out yet, or no longer do: it does not serve.
726
+ *
727
+ * @generated from enum value: DOMAIN_STATE_WAITING_FOR_RECORDS = 1;
728
+ */
729
+ WAITING_FOR_RECORDS = 1,
730
+ /**
731
+ * Its records check out and it has no certificate yet: one is ordered at
732
+ * its first visit, or by IssueDomain.
733
+ *
734
+ * @generated from enum value: DOMAIN_STATE_VERIFIED = 2;
735
+ */
736
+ VERIFIED = 2,
737
+ /**
738
+ * Its certificate is being ordered.
739
+ *
740
+ * @generated from enum value: DOMAIN_STATE_ISSUING = 3;
741
+ */
742
+ ISSUING = 3,
743
+ /**
744
+ * It serves under a certificate until not_after.
745
+ *
746
+ * @generated from enum value: DOMAIN_STATE_VALID = 4;
747
+ */
748
+ VALID = 4,
749
+ /**
750
+ * An order was refused for now, by the plan's domains.orders_per_day,
751
+ * the deployment's budget or the certificate authority's own limits;
752
+ * nothing is ordered before retry_at.
753
+ *
754
+ * @generated from enum value: DOMAIN_STATE_RATE_LIMITED = 5;
755
+ */
756
+ RATE_LIMITED = 5,
757
+ /**
758
+ * Its certificate's renewal is failing; the certificate serves until
759
+ * not_after.
760
+ *
761
+ * @generated from enum value: DOMAIN_STATE_RENEWAL_FAILING = 6;
762
+ */
763
+ RENEWAL_FAILING = 6
764
+ }
765
+ /**
766
+ * DomainState is where a domain is.
767
+ *
768
+ * @generated from enum toshi.workspace.v1.DomainState
769
+ */
770
+ export type DomainStateJson = "DOMAIN_STATE_UNSPECIFIED" | "DOMAIN_STATE_WAITING_FOR_RECORDS" | "DOMAIN_STATE_VERIFIED" | "DOMAIN_STATE_ISSUING" | "DOMAIN_STATE_VALID" | "DOMAIN_STATE_RATE_LIMITED" | "DOMAIN_STATE_RENEWAL_FAILING";
771
+ /**
772
+ * Describes the enum toshi.workspace.v1.DomainState.
773
+ */
774
+ export declare const DomainStateSchema: GenEnum<DomainState, DomainStateJson>;
775
+ /**
776
+ * DomainService manages customer domains: names a workspace owns at its
777
+ * own DNS provider and points at an http channel of one of its services,
778
+ * beside the channel's provided name. A domain serves once its two
779
+ * records check out, a CNAME record to the channel's provided name and a
780
+ * TXT record carrying the domain's token; its certificate is ordered at
781
+ * its first visit, or by IssueDomain, and renewed with no call. The
782
+ * caller's credential names the workspace; a domain of another workspace
783
+ * is NOT_FOUND. A control plane that serves no provided names refuses
784
+ * every call with FAILED_PRECONDITION, and one whose names are reached on
785
+ * a port other than 443 refuses CreateDomain the same way: a customer
786
+ * domain is a 443 feature.
787
+ *
788
+ * @generated from service toshi.workspace.v1.DomainService
789
+ */
790
+ export declare const DomainService: GenService<{
791
+ /**
792
+ * CreateDomain adds a domain for an http channel of a service and
793
+ * returns it with the records to set. Only a name below a registered
794
+ * domain is taken (shop.example.com, not example.com), and no wildcard.
795
+ * A name the workspace already has is ALREADY_EXISTS; past the plan's
796
+ * domains.max, RESOURCE_EXHAUSTED.
797
+ *
798
+ * @generated from rpc toshi.workspace.v1.DomainService.CreateDomain
799
+ */
800
+ createDomain: {
801
+ methodKind: "unary";
802
+ input: typeof CreateDomainRequestSchema;
803
+ output: typeof CreateDomainResponseSchema;
804
+ };
805
+ /**
806
+ * GetDomain returns one domain.
807
+ *
808
+ * @generated from rpc toshi.workspace.v1.DomainService.GetDomain
809
+ */
810
+ getDomain: {
811
+ methodKind: "unary";
812
+ input: typeof GetDomainRequestSchema;
813
+ output: typeof GetDomainResponseSchema;
814
+ };
815
+ /**
816
+ * ListDomains returns a service's domains, ordered by name.
817
+ *
818
+ * A page holds 100 domains when page_size is zero, and 1000 at most.
819
+ *
820
+ * @generated from rpc toshi.workspace.v1.DomainService.ListDomains
821
+ */
822
+ listDomains: {
823
+ methodKind: "unary";
824
+ input: typeof ListDomainsRequestSchema;
825
+ output: typeof ListDomainsResponseSchema;
826
+ };
827
+ /**
828
+ * VerifyDomain checks the domain's records now, instead of at its next
829
+ * check, and returns the domain as the check left it. A retry with the
830
+ * same request_key returns the first call's answer.
831
+ *
832
+ * @generated from rpc toshi.workspace.v1.DomainService.VerifyDomain
833
+ */
834
+ verifyDomain: {
835
+ methodKind: "unary";
836
+ input: typeof VerifyDomainRequestSchema;
837
+ output: typeof VerifyDomainResponseSchema;
838
+ };
839
+ /**
840
+ * IssueDomain asks for a verified domain's certificate now, before its
841
+ * first visit, under the same checks as an order at a visit: a domain
842
+ * not verified is FAILED_PRECONDITION. A domain with a certificate, or
843
+ * one being ordered, is returned as it is. A retry with the same
844
+ * request_key returns the first call's answer.
845
+ *
846
+ * @generated from rpc toshi.workspace.v1.DomainService.IssueDomain
847
+ */
848
+ issueDomain: {
849
+ methodKind: "unary";
850
+ input: typeof IssueDomainRequestSchema;
851
+ output: typeof IssueDomainResponseSchema;
852
+ };
853
+ /**
854
+ * DeleteDomain removes a domain: it stops serving at once, and its
855
+ * certificate is not renewed.
856
+ *
857
+ * @generated from rpc toshi.workspace.v1.DomainService.DeleteDomain
858
+ */
859
+ deleteDomain: {
860
+ methodKind: "unary";
861
+ input: typeof DeleteDomainRequestSchema;
862
+ output: typeof DeleteDomainResponseSchema;
863
+ };
864
+ }>;