@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,271 @@
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts,json_types=true,import_extension=js"
2
+ // @generated from file toshi/workspace/v1/grants.proto (package toshi.workspace.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
+ import { file_toshi_permission } from "../../permission_pb.js";
7
+ /**
8
+ * Describes the file toshi/workspace/v1/grants.proto.
9
+ */
10
+ export const file_toshi_workspace_v1_grants = /*@__PURE__*/ fileDesc("Ch90b3NoaS93b3Jrc3BhY2UvdjEvZ3JhbnRzLnByb3RvEhJ0b3NoaS53b3Jrc3BhY2UudjEi4gUKBUdyYW50EgoKAmlkGAEgASgJEjEKBW93bmVyGAIgASgLMiIudG9zaGkud29ya3NwYWNlLnYxLkdyYW50V29ya3NwYWNlEjMKB2dyYW50ZWUYAyABKAsyIi50b3NoaS53b3Jrc3BhY2UudjEuR3JhbnRXb3Jrc3BhY2USQQoLZW52aXJvbm1lbnQYBCABKAsyKi50b3NoaS53b3Jrc3BhY2UudjEuR3JhbnRFbnZpcm9ubWVudF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udFJlc3BvbnNlIjHC8xgMZ3JhbnRzLndyaXRlyvMYCXdvcmtzcGFjZdLzGBAKDmdyYW50LmFjY2VwdGVkEpQBCgxEZWNsaW5lR3JhbnQSJy50b3NoaS53b3Jrc3BhY2UudjEuRGVjbGluZUdyYW50UmVxdWVzdBooLnRvc2hpLndvcmtzcGFjZS52MS5EZWNsaW5lR3JhbnRSZXNwb25zZSIxwvMYDGdyYW50cy53cml0ZcrzGAl3b3Jrc3BhY2XS8xgQCg5ncmFudC5kZWNsaW5lZBKnAQoLVXBkYXRlR3JhbnQSJi50b3NoaS53b3Jrc3BhY2UudjEuVXBkYXRlR3JhbnRSZXF1ZXN0GicudG9zaGkud29ya3NwYWNlLnYxLlVwZGF0ZUdyYW50UmVzcG9uc2UiR8LzGAxncmFudHMud3JpdGXK8xgJd29ya3NwYWNl0vMYJgoUZ3JhbnQuZXhwaXJ5X2NoYW5nZWQSDmdyYW50OmdyYW50LmlkEn8KC1Jldm9rZUdyYW50EiYudG9zaGkud29ya3NwYWNlLnYxLlJldm9rZUdyYW50UmVxdWVzdBonLnRvc2hpLndvcmtzcGFjZS52MS5SZXZva2VHcmFudFJlc3BvbnNlIh/C8xgMZ3JhbnRzLndyaXRlyvMYC2Vudmlyb25tZW50Eo0BCgpMZWF2ZUdyYW50EiUudG9zaGkud29ya3NwYWNlLnYxLkxlYXZlR3JhbnRSZXF1ZXN0GiYudG9zaGkud29ya3NwYWNlLnYxLkxlYXZlR3JhbnRSZXNwb25zZSIwwvMYDGdyYW50cy53cml0ZcrzGAl3b3Jrc3BhY2XS8xgPCg1ncmFudC5yZXZva2VkQiJaIGdvLnRvc2hpY2xvdWQuaW8vYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_toshi_permission]);
11
+ /**
12
+ * Describes the message toshi.workspace.v1.Grant.
13
+ * Use `create(GrantSchema)` to create a new message.
14
+ */
15
+ export const GrantSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 0);
16
+ /**
17
+ * Describes the message toshi.workspace.v1.SharedAccess.
18
+ * Use `create(SharedAccessSchema)` to create a new message.
19
+ */
20
+ export const SharedAccessSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 1);
21
+ /**
22
+ * Describes the message toshi.workspace.v1.GrantWorkspace.
23
+ * Use `create(GrantWorkspaceSchema)` to create a new message.
24
+ */
25
+ export const GrantWorkspaceSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 2);
26
+ /**
27
+ * Describes the message toshi.workspace.v1.GrantEnvironmentTarget.
28
+ * Use `create(GrantEnvironmentTargetSchema)` to create a new message.
29
+ */
30
+ export const GrantEnvironmentTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 3);
31
+ /**
32
+ * Describes the message toshi.workspace.v1.GrantSandboxTarget.
33
+ * Use `create(GrantSandboxTargetSchema)` to create a new message.
34
+ */
35
+ export const GrantSandboxTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 4);
36
+ /**
37
+ * Describes the message toshi.workspace.v1.GrantPreviewTarget.
38
+ * Use `create(GrantPreviewTargetSchema)` to create a new message.
39
+ */
40
+ export const GrantPreviewTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 5);
41
+ /**
42
+ * Describes the message toshi.workspace.v1.CreateGrantRequest.
43
+ * Use `create(CreateGrantRequestSchema)` to create a new message.
44
+ */
45
+ export const CreateGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 6);
46
+ /**
47
+ * Describes the message toshi.workspace.v1.CreateGrantResponse.
48
+ * Use `create(CreateGrantResponseSchema)` to create a new message.
49
+ */
50
+ export const CreateGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 7);
51
+ /**
52
+ * Describes the message toshi.workspace.v1.GetGrantRequest.
53
+ * Use `create(GetGrantRequestSchema)` to create a new message.
54
+ */
55
+ export const GetGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 8);
56
+ /**
57
+ * Describes the message toshi.workspace.v1.GetGrantResponse.
58
+ * Use `create(GetGrantResponseSchema)` to create a new message.
59
+ */
60
+ export const GetGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 9);
61
+ /**
62
+ * Describes the message toshi.workspace.v1.ListGrantsRequest.
63
+ * Use `create(ListGrantsRequestSchema)` to create a new message.
64
+ */
65
+ export const ListGrantsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 10);
66
+ /**
67
+ * Describes the message toshi.workspace.v1.ListGrantsResponse.
68
+ * Use `create(ListGrantsResponseSchema)` to create a new message.
69
+ */
70
+ export const ListGrantsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 11);
71
+ /**
72
+ * Describes the message toshi.workspace.v1.AcceptGrantRequest.
73
+ * Use `create(AcceptGrantRequestSchema)` to create a new message.
74
+ */
75
+ export const AcceptGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 12);
76
+ /**
77
+ * Describes the message toshi.workspace.v1.AcceptGrantResponse.
78
+ * Use `create(AcceptGrantResponseSchema)` to create a new message.
79
+ */
80
+ export const AcceptGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 13);
81
+ /**
82
+ * Describes the message toshi.workspace.v1.DeclineGrantRequest.
83
+ * Use `create(DeclineGrantRequestSchema)` to create a new message.
84
+ */
85
+ export const DeclineGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 14);
86
+ /**
87
+ * Describes the message toshi.workspace.v1.DeclineGrantResponse.
88
+ * Use `create(DeclineGrantResponseSchema)` to create a new message.
89
+ */
90
+ export const DeclineGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 15);
91
+ /**
92
+ * Describes the message toshi.workspace.v1.UpdateGrantRequest.
93
+ * Use `create(UpdateGrantRequestSchema)` to create a new message.
94
+ */
95
+ export const UpdateGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 16);
96
+ /**
97
+ * Describes the message toshi.workspace.v1.UpdateGrantResponse.
98
+ * Use `create(UpdateGrantResponseSchema)` to create a new message.
99
+ */
100
+ export const UpdateGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 17);
101
+ /**
102
+ * Describes the message toshi.workspace.v1.RevokeGrantRequest.
103
+ * Use `create(RevokeGrantRequestSchema)` to create a new message.
104
+ */
105
+ export const RevokeGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 18);
106
+ /**
107
+ * Describes the message toshi.workspace.v1.RevokeGrantResponse.
108
+ * Use `create(RevokeGrantResponseSchema)` to create a new message.
109
+ */
110
+ export const RevokeGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 19);
111
+ /**
112
+ * Describes the message toshi.workspace.v1.LeaveGrantRequest.
113
+ * Use `create(LeaveGrantRequestSchema)` to create a new message.
114
+ */
115
+ export const LeaveGrantRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 20);
116
+ /**
117
+ * Describes the message toshi.workspace.v1.LeaveGrantResponse.
118
+ * Use `create(LeaveGrantResponseSchema)` to create a new message.
119
+ */
120
+ export const LeaveGrantResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_grants, 21);
121
+ /**
122
+ * GrantLevel is what a grant lets the grantee do; each level includes the
123
+ * one before.
124
+ *
125
+ * @generated from enum toshi.workspace.v1.GrantLevel
126
+ */
127
+ export var GrantLevel;
128
+ (function (GrantLevel) {
129
+ /**
130
+ * @generated from enum value: GRANT_LEVEL_UNSPECIFIED = 0;
131
+ */
132
+ GrantLevel[GrantLevel["UNSPECIFIED"] = 0] = "UNSPECIFIED";
133
+ /**
134
+ * List, get and watch the sandboxes the grant covers; sign in to their
135
+ * previews.
136
+ *
137
+ * @generated from enum value: GRANT_LEVEL_VIEW = 1;
138
+ */
139
+ GrantLevel[GrantLevel["VIEW"] = 1] = "VIEW";
140
+ /**
141
+ * Also connect to their channels, open forwards and display sessions.
142
+ *
143
+ * @generated from enum value: GRANT_LEVEL_CONNECT = 2;
144
+ */
145
+ GrantLevel[GrantLevel["CONNECT"] = 2] = "CONNECT";
146
+ /**
147
+ * Also run and cancel executions, raise a sandbox's cap within the
148
+ * owner's plan, and expose channels and delete the ones it exposed.
149
+ *
150
+ * @generated from enum value: GRANT_LEVEL_OPERATE = 3;
151
+ */
152
+ GrantLevel[GrantLevel["OPERATE"] = 3] = "OPERATE";
153
+ })(GrantLevel || (GrantLevel = {}));
154
+ /**
155
+ * Describes the enum toshi.workspace.v1.GrantLevel.
156
+ */
157
+ export const GrantLevelSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_grants, 0);
158
+ /**
159
+ * GrantState is where a grant is in its life. OFFERED and ACTIVE are
160
+ * live; every other state is final.
161
+ *
162
+ * @generated from enum toshi.workspace.v1.GrantState
163
+ */
164
+ export var GrantState;
165
+ (function (GrantState) {
166
+ /**
167
+ * @generated from enum value: GRANT_STATE_UNSPECIFIED = 0;
168
+ */
169
+ GrantState[GrantState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
170
+ /**
171
+ * Offered and not yet answered.
172
+ *
173
+ * @generated from enum value: GRANT_STATE_OFFERED = 1;
174
+ */
175
+ GrantState[GrantState["OFFERED"] = 1] = "OFFERED";
176
+ /**
177
+ * Accepted: the grantee reaches the target.
178
+ *
179
+ * @generated from enum value: GRANT_STATE_ACTIVE = 2;
180
+ */
181
+ GrantState[GrantState["ACTIVE"] = 2] = "ACTIVE";
182
+ /**
183
+ * The grantee declined the offer.
184
+ *
185
+ * @generated from enum value: GRANT_STATE_DECLINED = 3;
186
+ */
187
+ GrantState[GrantState["DECLINED"] = 3] = "DECLINED";
188
+ /**
189
+ * The offer was not answered in time, or a side stopped being active
190
+ * while it was open.
191
+ *
192
+ * @generated from enum value: GRANT_STATE_LAPSED = 4;
193
+ */
194
+ GrantState[GrantState["LAPSED"] = 4] = "LAPSED";
195
+ /**
196
+ * The owner revoked it, or the grantee left it.
197
+ *
198
+ * @generated from enum value: GRANT_STATE_REVOKED = 5;
199
+ */
200
+ GrantState[GrantState["REVOKED"] = 5] = "REVOKED";
201
+ /**
202
+ * Its expiry passed.
203
+ *
204
+ * @generated from enum value: GRANT_STATE_EXPIRED = 6;
205
+ */
206
+ GrantState[GrantState["EXPIRED"] = 6] = "EXPIRED";
207
+ /**
208
+ * One of the two workspaces was deleted.
209
+ *
210
+ * @generated from enum value: GRANT_STATE_ENDED = 7;
211
+ */
212
+ GrantState[GrantState["ENDED"] = 7] = "ENDED";
213
+ })(GrantState || (GrantState = {}));
214
+ /**
215
+ * Describes the enum toshi.workspace.v1.GrantState.
216
+ */
217
+ export const GrantStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_grants, 1);
218
+ /**
219
+ * GrantSide is which of a workspace's grants a list returns.
220
+ *
221
+ * @generated from enum toshi.workspace.v1.GrantSide
222
+ */
223
+ export var GrantSide;
224
+ (function (GrantSide) {
225
+ /**
226
+ * Both the grants it gave and those it received.
227
+ *
228
+ * @generated from enum value: GRANT_SIDE_UNSPECIFIED = 0;
229
+ */
230
+ GrantSide[GrantSide["UNSPECIFIED"] = 0] = "UNSPECIFIED";
231
+ /**
232
+ * The grants it gave, as the owner.
233
+ *
234
+ * @generated from enum value: GRANT_SIDE_GIVEN = 1;
235
+ */
236
+ GrantSide[GrantSide["GIVEN"] = 1] = "GIVEN";
237
+ /**
238
+ * The grants it received, as the grantee.
239
+ *
240
+ * @generated from enum value: GRANT_SIDE_RECEIVED = 2;
241
+ */
242
+ GrantSide[GrantSide["RECEIVED"] = 2] = "RECEIVED";
243
+ })(GrantSide || (GrantSide = {}));
244
+ /**
245
+ * Describes the enum toshi.workspace.v1.GrantSide.
246
+ */
247
+ export const GrantSideSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_grants, 2);
248
+ /**
249
+ * GrantService keeps the grants between workspaces: one workspace, the
250
+ * owner, lets another, the grantee, reach one of its environments,
251
+ * sandboxes or previews at a level. The owner offers a grant to the
252
+ * grantee's workspace id, and nothing is shared until a person of the
253
+ * grantee accepts it. Either side ends it at once: the owner revokes it,
254
+ * the grantee leaves it. An offer not answered lapses, and a grant with
255
+ * an expiry expires when it passes.
256
+ *
257
+ * The caller's credential names the workspace, as for WorkloadService.
258
+ * Each call answers for the caller's side only: a grant the workspace
259
+ * neither gave nor received, or one the call does not act on from the
260
+ * caller's side, is NOT_FOUND. Offering, accepting, declining and
261
+ * changing the expiry take a person's session: an API token is refused
262
+ * with PERMISSION_DENIED, as only a person may open a workspace to
263
+ * another. A workspace that is not active can neither offer nor be
264
+ * offered a grant (FAILED_PRECONDITION).
265
+ *
266
+ * Every change writes an audit event into both workspaces' logs, with the
267
+ * same request id; each names the other workspace in its details.
268
+ *
269
+ * @generated from service toshi.workspace.v1.GrantService
270
+ */
271
+ export const GrantService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_grants, 0);