@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,270 @@
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/workspace_service.proto (package toshi.workspace.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
+ import { file_toshi_workspace_v1_hosts } from "./hosts_pb.js";
7
+ /**
8
+ * Describes the file toshi/workspace/v1/workspace_service.proto.
9
+ */
10
+ export const file_tosh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LnYxLkdldFZlcnNpb25SZXF1ZXN0GiYudG9zaGkud29ya3NwYWNlLnYxLkdldFZlcnNpb25SZXNwb25zZUItWitnaXRodWIuY29tL3Rvc2hpY2xvdWQvdG9zaGktYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_toshi_workspace_v1_hosts]);
11
+ /**
12
+ * Describes the message toshi.workspace.v1.GetWorkspaceRequest.
13
+ * Use `create(GetWorkspaceRequestSchema)` to create a new message.
14
+ */
15
+ export const GetWorkspaceRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 0);
16
+ /**
17
+ * Describes the message toshi.workspace.v1.GetWorkspaceResponse.
18
+ * Use `create(GetWorkspaceResponseSchema)` to create a new message.
19
+ */
20
+ export const GetWorkspaceResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 1);
21
+ /**
22
+ * Describes the message toshi.workspace.v1.ListWorkspacesRequest.
23
+ * Use `create(ListWorkspacesRequestSchema)` to create a new message.
24
+ */
25
+ export const ListWorkspacesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 2);
26
+ /**
27
+ * Describes the message toshi.workspace.v1.ListWorkspacesResponse.
28
+ * Use `create(ListWorkspacesResponseSchema)` to create a new message.
29
+ */
30
+ export const ListWorkspacesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 3);
31
+ /**
32
+ * Describes the message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyResponse.
33
+ * Use `create(SetWorkspaceOwnHostsOnlyResponseSchema)` to create a new message.
34
+ */
35
+ export const SetWorkspaceOwnHostsOnlyResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 4);
36
+ /**
37
+ * Describes the message toshi.workspace.v1.SetWorkspaceAllowOverflowResponse.
38
+ * Use `create(SetWorkspaceAllowOverflowResponseSchema)` to create a new message.
39
+ */
40
+ export const SetWorkspaceAllowOverflowResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 5);
41
+ /**
42
+ * Describes the message toshi.workspace.v1.SetWorkspaceAllowCacheWarmResponse.
43
+ * Use `create(SetWorkspaceAllowCacheWarmResponseSchema)` to create a new message.
44
+ */
45
+ export const SetWorkspaceAllowCacheWarmResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 6);
46
+ /**
47
+ * Describes the message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathResponse.
48
+ * Use `create(SetWorkspaceCancelRunOnVmDeathResponseSchema)` to create a new message.
49
+ */
50
+ export const SetWorkspaceCancelRunOnVmDeathResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 7);
51
+ /**
52
+ * Describes the message toshi.workspace.v1.SetWorkspaceSpendLimitsResponse.
53
+ * Use `create(SetWorkspaceSpendLimitsResponseSchema)` to create a new message.
54
+ */
55
+ export const SetWorkspaceSpendLimitsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 8);
56
+ /**
57
+ * Describes the message toshi.workspace.v1.GetWorkspaceBillingRequest.
58
+ * Use `create(GetWorkspaceBillingRequestSchema)` to create a new message.
59
+ */
60
+ export const GetWorkspaceBillingRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 9);
61
+ /**
62
+ * Describes the message toshi.workspace.v1.GetWorkspaceBillingResponse.
63
+ * Use `create(GetWorkspaceBillingResponseSchema)` to create a new message.
64
+ */
65
+ export const GetWorkspaceBillingResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 10);
66
+ /**
67
+ * Describes the message toshi.workspace.v1.GetWorkspaceStatementRequest.
68
+ * Use `create(GetWorkspaceStatementRequestSchema)` to create a new message.
69
+ */
70
+ export const GetWorkspaceStatementRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 11);
71
+ /**
72
+ * Describes the message toshi.workspace.v1.GetWorkspaceStatementResponse.
73
+ * Use `create(GetWorkspaceStatementResponseSchema)` to create a new message.
74
+ */
75
+ export const GetWorkspaceStatementResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 12);
76
+ /**
77
+ * Describes the message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyRequest.
78
+ * Use `create(SetWorkspaceOwnHostsOnlyRequestSchema)` to create a new message.
79
+ */
80
+ export const SetWorkspaceOwnHostsOnlyRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 13);
81
+ /**
82
+ * Describes the message toshi.workspace.v1.SetWorkspaceAllowOverflowRequest.
83
+ * Use `create(SetWorkspaceAllowOverflowRequestSchema)` to create a new message.
84
+ */
85
+ export const SetWorkspaceAllowOverflowRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 14);
86
+ /**
87
+ * Describes the message toshi.workspace.v1.SetWorkspaceAllowCacheWarmRequest.
88
+ * Use `create(SetWorkspaceAllowCacheWarmRequestSchema)` to create a new message.
89
+ */
90
+ export const SetWorkspaceAllowCacheWarmRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 15);
91
+ /**
92
+ * Describes the message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathRequest.
93
+ * Use `create(SetWorkspaceCancelRunOnVmDeathRequestSchema)` to create a new message.
94
+ */
95
+ export const SetWorkspaceCancelRunOnVmDeathRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 16);
96
+ /**
97
+ * Describes the message toshi.workspace.v1.SetWorkspaceSpendLimitsRequest.
98
+ * Use `create(SetWorkspaceSpendLimitsRequestSchema)` to create a new message.
99
+ */
100
+ export const SetWorkspaceSpendLimitsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 17);
101
+ /**
102
+ * Describes the message toshi.workspace.v1.ListEgressIPsRequest.
103
+ * Use `create(ListEgressIPsRequestSchema)` to create a new message.
104
+ */
105
+ export const ListEgressIPsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 18);
106
+ /**
107
+ * Describes the message toshi.workspace.v1.ListEgressIPsResponse.
108
+ * Use `create(ListEgressIPsResponseSchema)` to create a new message.
109
+ */
110
+ export const ListEgressIPsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 19);
111
+ /**
112
+ * Describes the message toshi.workspace.v1.GetUsageRequest.
113
+ * Use `create(GetUsageRequestSchema)` to create a new message.
114
+ */
115
+ export const GetUsageRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 20);
116
+ /**
117
+ * Describes the message toshi.workspace.v1.GetUsageResponse.
118
+ * Use `create(GetUsageResponseSchema)` to create a new message.
119
+ */
120
+ export const GetUsageResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 21);
121
+ /**
122
+ * Describes the message toshi.workspace.v1.GetQueueTimesRequest.
123
+ * Use `create(GetQueueTimesRequestSchema)` to create a new message.
124
+ */
125
+ export const GetQueueTimesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 22);
126
+ /**
127
+ * Describes the message toshi.workspace.v1.GetQueueTimesResponse.
128
+ * Use `create(GetQueueTimesResponseSchema)` to create a new message.
129
+ */
130
+ export const GetQueueTimesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 23);
131
+ /**
132
+ * Describes the message toshi.workspace.v1.GetWorkflowUsageRequest.
133
+ * Use `create(GetWorkflowUsageRequestSchema)` to create a new message.
134
+ */
135
+ export const GetWorkflowUsageRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 24);
136
+ /**
137
+ * Describes the message toshi.workspace.v1.GetWorkflowUsageResponse.
138
+ * Use `create(GetWorkflowUsageResponseSchema)` to create a new message.
139
+ */
140
+ export const GetWorkflowUsageResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 25);
141
+ /**
142
+ * Describes the message toshi.workspace.v1.ListPlansRequest.
143
+ * Use `create(ListPlansRequestSchema)` to create a new message.
144
+ */
145
+ export const ListPlansRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 26);
146
+ /**
147
+ * Describes the message toshi.workspace.v1.ListPlansResponse.
148
+ * Use `create(ListPlansResponseSchema)` to create a new message.
149
+ */
150
+ export const ListPlansResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 27);
151
+ /**
152
+ * Describes the message toshi.workspace.v1.CreateCheckoutSessionRequest.
153
+ * Use `create(CreateCheckoutSessionRequestSchema)` to create a new message.
154
+ */
155
+ export const CreateCheckoutSessionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 28);
156
+ /**
157
+ * Describes the message toshi.workspace.v1.CreateCheckoutSessionResponse.
158
+ * Use `create(CreateCheckoutSessionResponseSchema)` to create a new message.
159
+ */
160
+ export const CreateCheckoutSessionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 29);
161
+ /**
162
+ * Describes the message toshi.workspace.v1.CreateBillingPortalSessionRequest.
163
+ * Use `create(CreateBillingPortalSessionRequestSchema)` to create a new message.
164
+ */
165
+ export const CreateBillingPortalSessionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 30);
166
+ /**
167
+ * Describes the message toshi.workspace.v1.CreateBillingPortalSessionResponse.
168
+ * Use `create(CreateBillingPortalSessionResponseSchema)` to create a new message.
169
+ */
170
+ export const CreateBillingPortalSessionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 31);
171
+ /**
172
+ * Describes the message toshi.workspace.v1.GetVersionRequest.
173
+ * Use `create(GetVersionRequestSchema)` to create a new message.
174
+ */
175
+ export const GetVersionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 32);
176
+ /**
177
+ * Describes the message toshi.workspace.v1.GetVersionResponse.
178
+ * Use `create(GetVersionResponseSchema)` to create a new message.
179
+ */
180
+ export const GetVersionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 33);
181
+ /**
182
+ * Describes the message toshi.workspace.v1.Workspace.
183
+ * Use `create(WorkspaceSchema)` to create a new message.
184
+ */
185
+ export const WorkspaceSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 34);
186
+ /**
187
+ * Describes the message toshi.workspace.v1.Reservation.
188
+ * Use `create(ReservationSchema)` to create a new message.
189
+ */
190
+ export const ReservationSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 35);
191
+ /**
192
+ * Describes the message toshi.workspace.v1.WorkspaceBilling.
193
+ * Use `create(WorkspaceBillingSchema)` to create a new message.
194
+ */
195
+ export const WorkspaceBillingSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 36);
196
+ /**
197
+ * Describes the message toshi.workspace.v1.WorkspaceBilling.HeldJobs.
198
+ * Use `create(WorkspaceBilling_HeldJobsSchema)` to create a new message.
199
+ */
200
+ export const WorkspaceBilling_HeldJobsSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 36, 0);
201
+ /**
202
+ * Describes the message toshi.workspace.v1.BillingTotals.
203
+ * Use `create(BillingTotalsSchema)` to create a new message.
204
+ */
205
+ export const BillingTotalsSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 37);
206
+ /**
207
+ * Describes the message toshi.workspace.v1.BillingEventFailure.
208
+ * Use `create(BillingEventFailureSchema)` to create a new message.
209
+ */
210
+ export const BillingEventFailureSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 38);
211
+ /**
212
+ * Describes the message toshi.workspace.v1.WorkspaceStatement.
213
+ * Use `create(WorkspaceStatementSchema)` to create a new message.
214
+ */
215
+ export const WorkspaceStatementSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 39);
216
+ /**
217
+ * Describes the message toshi.workspace.v1.StatementUsage.
218
+ * Use `create(StatementUsageSchema)` to create a new message.
219
+ */
220
+ export const StatementUsageSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 40);
221
+ /**
222
+ * Describes the message toshi.workspace.v1.StatementCharge.
223
+ * Use `create(StatementChargeSchema)` to create a new message.
224
+ */
225
+ export const StatementChargeSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 41);
226
+ /**
227
+ * Describes the message toshi.workspace.v1.HoldTimes.
228
+ * Use `create(HoldTimesSchema)` to create a new message.
229
+ */
230
+ export const HoldTimesSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 42);
231
+ /**
232
+ * Describes the message toshi.workspace.v1.FillerUsage.
233
+ * Use `create(FillerUsageSchema)` to create a new message.
234
+ */
235
+ export const FillerUsageSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 43);
236
+ /**
237
+ * Describes the message toshi.workspace.v1.UsageRow.
238
+ * Use `create(UsageRowSchema)` to create a new message.
239
+ */
240
+ export const UsageRowSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 44);
241
+ /**
242
+ * Describes the message toshi.workspace.v1.WorkflowUsageRow.
243
+ * Use `create(WorkflowUsageRowSchema)` to create a new message.
244
+ */
245
+ export const WorkflowUsageRowSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 45);
246
+ /**
247
+ * Describes the message toshi.workspace.v1.Plan.
248
+ * Use `create(PlanSchema)` to create a new message.
249
+ */
250
+ export const PlanSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 46);
251
+ /**
252
+ * Describes the message toshi.workspace.v1.EgressHost.
253
+ * Use `create(EgressHostSchema)` to create a new message.
254
+ */
255
+ export const EgressHostSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_workspace_service, 47);
256
+ /**
257
+ * WorkspaceService reads and sets the caller's workspace: its settings, its
258
+ * billing and usage, and the plans it may buy.
259
+ *
260
+ * A workspace's API token acts on its own workspace; a dashboard session
261
+ * names one of its workspaces in the Toshi-Workspace header. ListWorkspaces
262
+ * needs no header. A token limited to a project or an environment is
263
+ * refused with PERMISSION_DENIED. A suspended workspace keeps its reads,
264
+ * and every other call is refused for it with FAILED_PRECONDITION. A closed
265
+ * workspace keeps GetWorkspace, ListWorkspaces, GetUsage,
266
+ * GetWorkspaceStatement and GetVersion during its read-only period.
267
+ *
268
+ * @generated from service toshi.workspace.v1.WorkspaceService
269
+ */
270
+ export const WorkspaceService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_workspace_service, 0);
package/dist/index.d.ts CHANGED
@@ -1,10 +1,22 @@
1
1
  export * from "./gen/toshi/workspace/v1/workspace_pb.js";
2
+ export * from "./gen/toshi/workspace/v1/workloads_pb.js";
2
3
  export * from "./gen/toshi/workspace/v1/display_pb.js";
3
4
  export * from "./gen/toshi/workspace/v1/projects_pb.js";
4
5
  export * from "./gen/toshi/workspace/v1/secrets_pb.js";
5
6
  export * from "./gen/toshi/workspace/v1/webhook_pb.js";
7
+ export * from "./gen/toshi/workspace/v1/channels_pb.js";
8
+ export * from "./gen/toshi/workspace/v1/recordings_pb.js";
9
+ export * from "./gen/toshi/workspace/v1/volumes_pb.js";
10
+ export * from "./gen/toshi/workspace/v1/artifacts_pb.js";
11
+ export * from "./gen/toshi/workspace/v1/audit_events_pb.js";
12
+ export * from "./gen/toshi/workspace/v1/fillers_pb.js";
13
+ export * from "./gen/toshi/workspace/v1/hostjobs_pb.js";
14
+ export * from "./gen/toshi/workspace/v1/hosts_pb.js";
15
+ export * from "./gen/toshi/workspace/v1/storage_providers_pb.js";
16
+ export * from "./gen/toshi/workspace/v1/tokens_pb.js";
17
+ export * from "./gen/toshi/workspace/v1/workspace_service_pb.js";
6
18
  export { createToshiClient } from "./client.js";
7
- export { ExitError, StreamLostError } from "./errors.js";
19
+ export { ExitError, JobExitError, StreamLostError } from "./errors.js";
8
20
  export { defaultRetryPolicy } from "./retry.js";
9
21
  export type { RetryPolicy } from "./retry.js";
10
- export type { CallOptions, EventWatch, OutputChunk, OutputWatch, Process, ToshiClient, ToshiOptions, WorkloadWatch, } from "./client.js";
22
+ export type { CallOptions, EventWatch, JobRun, JobWatch, JobsClient, OutputChunk, OutputWatch, Process, SandboxWatch, SandboxesClient, ServiceWatch, ServicesClient, ToshiClient, ToshiOptions, WorkloadClient, } from "./client.js";
package/dist/index.js CHANGED
@@ -1,9 +1,21 @@
1
1
  // Generated code for the Toshi Workspace API; see src/gen/ and pin.env.
2
2
  export * from "./gen/toshi/workspace/v1/workspace_pb.js";
3
+ export * from "./gen/toshi/workspace/v1/workloads_pb.js";
3
4
  export * from "./gen/toshi/workspace/v1/display_pb.js";
4
5
  export * from "./gen/toshi/workspace/v1/projects_pb.js";
5
6
  export * from "./gen/toshi/workspace/v1/secrets_pb.js";
6
7
  export * from "./gen/toshi/workspace/v1/webhook_pb.js";
8
+ export * from "./gen/toshi/workspace/v1/channels_pb.js";
9
+ export * from "./gen/toshi/workspace/v1/recordings_pb.js";
10
+ export * from "./gen/toshi/workspace/v1/volumes_pb.js";
11
+ export * from "./gen/toshi/workspace/v1/artifacts_pb.js";
12
+ export * from "./gen/toshi/workspace/v1/audit_events_pb.js";
13
+ export * from "./gen/toshi/workspace/v1/fillers_pb.js";
14
+ export * from "./gen/toshi/workspace/v1/hostjobs_pb.js";
15
+ export * from "./gen/toshi/workspace/v1/hosts_pb.js";
16
+ export * from "./gen/toshi/workspace/v1/storage_providers_pb.js";
17
+ export * from "./gen/toshi/workspace/v1/tokens_pb.js";
18
+ export * from "./gen/toshi/workspace/v1/workspace_service_pb.js";
7
19
  export { createToshiClient } from "./client.js";
8
- export { ExitError, StreamLostError } from "./errors.js";
20
+ export { ExitError, JobExitError, StreamLostError } from "./errors.js";
9
21
  export { defaultRetryPolicy } from "./retry.js";
package/dist/output.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { Client } from "@connectrpc/connect";
2
2
  import type { CallOptions, OutputWatch } from "./client.js";
3
- import type { WatchOutputRequest, WorkspaceService } from "./gen/toshi/workspace/v1/workspace_pb.js";
3
+ import type { WatchOutputRequest } from "./gen/toshi/workspace/v1/workspace_pb.js";
4
+ import type { WorkloadService } from "./gen/toshi/workspace/v1/workloads_pb.js";
4
5
  import type { RetrySetting } from "./retry.js";
5
6
  /** Starts an output watch at the request's offsets, counting the bytes it hands out (output.go:14-52). */
6
- export declare function openOutputWatch(workspace: Client<typeof WorkspaceService>, retry: RetrySetting, req: WatchOutputRequest, opts?: CallOptions): Promise<OutputWatch>;
7
+ export declare function openOutputWatch(service: Client<typeof WorkloadService>, retry: RetrySetting, req: WatchOutputRequest, opts?: CallOptions): Promise<OutputWatch>;
package/dist/output.js CHANGED
@@ -2,7 +2,7 @@ import { clone } from "@bufbuild/protobuf";
2
2
  import { WatchOutputRequestSchema } from "./gen/toshi/workspace/v1/workspace_pb.js";
3
3
  import { READER_TAKEN, WatchState, createReader, reconnect, streamEnded } from "./stream.js";
4
4
  /** Starts an output watch at the request's offsets, counting the bytes it hands out (output.go:14-52). */
5
- export function openOutputWatch(workspace, retry, req, opts) {
5
+ export function openOutputWatch(service, retry, req, opts) {
6
6
  const state = new WatchState("", opts?.signal);
7
7
  const request = clone(WatchOutputRequestSchema, req);
8
8
  let stdout = req.stdoutOffset;
@@ -18,7 +18,7 @@ export function openOutputWatch(workspace, retry, req, opts) {
18
18
  try {
19
19
  request.stdoutOffset = stdout;
20
20
  request.stderrOffset = stderr;
21
- const stream = workspace.watchOutput(request, { signal: state.signal });
21
+ const stream = service.watchOutput(request, { signal: state.signal });
22
22
  for await (const msg of stream) {
23
23
  attempt = 0;
24
24
  if (msg.message.case === "end") {
package/dist/retry.js CHANGED
@@ -5,40 +5,55 @@ export const defaultRetryPolicy = {
5
5
  initialBackoffMs: 200,
6
6
  maxBackoffMs: 10_000,
7
7
  };
8
- // One entry per procedure of the five services, verbatim from the Go client's retry table.
9
- // A procedure missing from this table is treated as "none".
8
+ // One entry per procedure of the Workspace API's services. A call that changes
9
+ // what exists carries a request key and is retried; a call with no key is
10
+ // retried only when it reads; a stream is never retried here.
10
11
  const procedureRetryClass = {
11
- "/toshi.workspace.v1.WorkspaceService/CreateWorkload": "keyed",
12
- "/toshi.workspace.v1.WorkspaceService/GetWorkload": "read",
13
- "/toshi.workspace.v1.WorkspaceService/ListWorkloads": "read",
14
- "/toshi.workspace.v1.WorkspaceService/PatchWorkload": "keyed",
15
- "/toshi.workspace.v1.WorkspaceService/DeleteWorkload": "keyed",
16
- "/toshi.workspace.v1.WorkspaceService/CancelWorkload": "none",
17
- "/toshi.workspace.v1.WorkspaceService/WaitWorkload": "read",
18
- "/toshi.workspace.v1.WorkspaceService/WatchWorkloads": "none",
19
- "/toshi.workspace.v1.WorkspaceService/WatchOutput": "none",
20
- "/toshi.workspace.v1.WorkspaceService/WatchTelemetry": "none",
21
- "/toshi.workspace.v1.WorkspaceService/WatchGuestLog": "none",
22
- "/toshi.workspace.v1.WorkspaceService/Execute": "none",
23
- "/toshi.workspace.v1.WorkspaceService/CancelExecution": "keyed",
24
- "/toshi.workspace.v1.WorkspaceService/GetOperation": "read",
25
- "/toshi.workspace.v1.WorkspaceService/WaitOperation": "read",
26
- "/toshi.workspace.v1.WorkspaceService/ListEvents": "read",
27
- "/toshi.workspace.v1.WorkspaceService/WatchEvents": "none",
28
- "/toshi.workspace.v1.WorkspaceService/CreatePreviewShareLink": "none",
29
- "/toshi.workspace.v1.WorkspaceService/ListPreviewShareLinks": "read",
30
- "/toshi.workspace.v1.WorkspaceService/RevokePreviewShareLink": "none",
31
- "/toshi.workspace.v1.WorkspaceService/StartService": "none",
32
- "/toshi.workspace.v1.WorkspaceService/StopService": "none",
33
- "/toshi.workspace.v1.WorkspaceService/SetServiceMode": "none",
34
- "/toshi.workspace.v1.WorkspaceService/WakeService": "none",
35
- "/toshi.workspace.v1.WorkspaceService/HoldService": "none",
36
- "/toshi.workspace.v1.WorkspaceService/ReleaseService": "none",
37
- "/toshi.workspace.v1.WorkspaceService/ListServiceRuns": "read",
12
+ "/toshi.workspace.v1.WorkloadService/CreateJob": "keyed",
13
+ "/toshi.workspace.v1.WorkloadService/GetJob": "read",
14
+ "/toshi.workspace.v1.WorkloadService/ListJobs": "read",
15
+ "/toshi.workspace.v1.WorkloadService/UpdateJob": "keyed",
16
+ "/toshi.workspace.v1.WorkloadService/DeleteJob": "keyed",
17
+ "/toshi.workspace.v1.WorkloadService/CancelJob": "none",
18
+ "/toshi.workspace.v1.WorkloadService/WaitJob": "read",
19
+ "/toshi.workspace.v1.WorkloadService/WatchJobs": "none",
20
+ "/toshi.workspace.v1.WorkloadService/WatchOutput": "none",
21
+ "/toshi.workspace.v1.WorkloadService/WatchTelemetry": "none",
22
+ "/toshi.workspace.v1.WorkloadService/WatchGuestLog": "none",
23
+ "/toshi.workspace.v1.WorkloadService/Execute": "none",
24
+ "/toshi.workspace.v1.WorkloadService/CancelExecution": "keyed",
25
+ "/toshi.workspace.v1.WorkloadService/GetOperation": "read",
26
+ "/toshi.workspace.v1.WorkloadService/WaitOperation": "read",
27
+ "/toshi.workspace.v1.WorkloadService/ListEvents": "read",
28
+ "/toshi.workspace.v1.WorkloadService/WatchEvents": "none",
29
+ "/toshi.workspace.v1.WorkloadService/CreatePreviewShareLink": "none",
30
+ "/toshi.workspace.v1.WorkloadService/ListPreviewShareLinks": "read",
31
+ "/toshi.workspace.v1.WorkloadService/RevokePreviewShareLink": "none",
32
+ "/toshi.workspace.v1.WorkloadService/CreateSandbox": "keyed",
33
+ "/toshi.workspace.v1.WorkloadService/GetSandbox": "read",
34
+ "/toshi.workspace.v1.WorkloadService/ListSandboxes": "read",
35
+ "/toshi.workspace.v1.WorkloadService/UpdateSandbox": "keyed",
36
+ "/toshi.workspace.v1.WorkloadService/DeleteSandbox": "keyed",
37
+ "/toshi.workspace.v1.WorkloadService/WaitSandbox": "read",
38
+ "/toshi.workspace.v1.WorkloadService/WatchSandboxes": "none",
39
+ "/toshi.workspace.v1.WorkloadService/CreateService": "keyed",
40
+ "/toshi.workspace.v1.WorkloadService/GetService": "read",
41
+ "/toshi.workspace.v1.WorkloadService/ListServices": "read",
42
+ "/toshi.workspace.v1.WorkloadService/UpdateService": "keyed",
43
+ "/toshi.workspace.v1.WorkloadService/DeleteService": "keyed",
44
+ "/toshi.workspace.v1.WorkloadService/WaitService": "read",
45
+ "/toshi.workspace.v1.WorkloadService/WatchServices": "none",
46
+ "/toshi.workspace.v1.WorkloadService/StartService": "none",
47
+ "/toshi.workspace.v1.WorkloadService/StopService": "none",
48
+ "/toshi.workspace.v1.WorkloadService/SetServiceMode": "none",
49
+ "/toshi.workspace.v1.WorkloadService/WakeService": "none",
50
+ "/toshi.workspace.v1.WorkloadService/HoldService": "none",
51
+ "/toshi.workspace.v1.WorkloadService/ReleaseService": "none",
52
+ "/toshi.workspace.v1.WorkloadService/ListServiceRuns": "read",
38
53
  "/toshi.workspace.v1.SecretService/CreateSecretSet": "none",
39
54
  "/toshi.workspace.v1.SecretService/ListSecretSets": "read",
40
55
  "/toshi.workspace.v1.SecretService/DeleteSecretSet": "none",
41
- "/toshi.workspace.v1.SecretService/SetSecret": "none",
56
+ "/toshi.workspace.v1.SecretService/PutSecret": "none",
42
57
  "/toshi.workspace.v1.SecretService/DeleteSecret": "none",
43
58
  "/toshi.workspace.v1.SecretService/ListSecrets": "read",
44
59
  "/toshi.workspace.v1.SecretService/ListSecretVersions": "read",
@@ -73,6 +88,77 @@ const procedureRetryClass = {
73
88
  "/toshi.workspace.v1.DisplayService/SendDisplayPointer": "none",
74
89
  "/toshi.workspace.v1.DisplayService/SetDisplayClipboard": "none",
75
90
  "/toshi.workspace.v1.DisplayService/TakeDisplayScreenshot": "none",
91
+ "/toshi.workspace.v1.ChannelService/CreateChannel": "none",
92
+ "/toshi.workspace.v1.ChannelService/ListChannels": "read",
93
+ "/toshi.workspace.v1.ChannelService/GetChannel": "read",
94
+ "/toshi.workspace.v1.ChannelService/GetChannelPolicy": "read",
95
+ "/toshi.workspace.v1.ChannelService/SetChannelPolicy": "none",
96
+ "/toshi.workspace.v1.ChannelService/ListChannelRequests": "read",
97
+ "/toshi.workspace.v1.ChannelService/GetChannelRequest": "read",
98
+ "/toshi.workspace.v1.ChannelService/ExportChannelLog": "none",
99
+ "/toshi.workspace.v1.ChannelService/CreateChannelConnectToken": "none",
100
+ "/toshi.workspace.v1.ChannelService/RevokeChannelConnectToken": "none",
101
+ "/toshi.workspace.v1.ChannelService/DeleteChannel": "none",
102
+ "/toshi.workspace.v1.ChannelService/ListForwards": "read",
103
+ "/toshi.workspace.v1.ChannelService/GetLink": "read",
104
+ "/toshi.workspace.v1.RecordingService/ListRecordings": "read",
105
+ "/toshi.workspace.v1.RecordingService/GetRecording": "read",
106
+ "/toshi.workspace.v1.RecordingService/CreateRecordingShareLink": "none",
107
+ "/toshi.workspace.v1.RecordingService/ListRecordingShareLinks": "read",
108
+ "/toshi.workspace.v1.RecordingService/RevokeRecordingShareLink": "none",
109
+ "/toshi.workspace.v1.VolumeService/ListVolumes": "read",
110
+ "/toshi.workspace.v1.VolumeService/AttachVolume": "none",
111
+ "/toshi.workspace.v1.VolumeService/DetachVolume": "none",
112
+ "/toshi.workspace.v1.ArtifactService/ListArtifacts": "read",
113
+ "/toshi.workspace.v1.ArtifactService/GetArtifact": "read",
114
+ "/toshi.workspace.v1.ArtifactService/GetArtifactDownloadURL": "read",
115
+ "/toshi.workspace.v1.ArtifactUploadService/ReserveUpload": "none",
116
+ "/toshi.workspace.v1.ArtifactUploadService/CompleteUpload": "none",
117
+ "/toshi.workspace.v1.WorkspaceService/GetWorkspace": "read",
118
+ "/toshi.workspace.v1.WorkspaceService/ListWorkspaces": "read",
119
+ "/toshi.workspace.v1.WorkspaceService/GetWorkspaceBilling": "read",
120
+ "/toshi.workspace.v1.WorkspaceService/GetWorkspaceStatement": "read",
121
+ "/toshi.workspace.v1.WorkspaceService/SetWorkspaceOwnHostsOnly": "none",
122
+ "/toshi.workspace.v1.WorkspaceService/SetWorkspaceAllowOverflow": "none",
123
+ "/toshi.workspace.v1.WorkspaceService/SetWorkspaceAllowCacheWarm": "none",
124
+ "/toshi.workspace.v1.WorkspaceService/SetWorkspaceCancelRunOnVmDeath": "none",
125
+ "/toshi.workspace.v1.WorkspaceService/SetWorkspaceSpendLimits": "none",
126
+ "/toshi.workspace.v1.WorkspaceService/ListEgressIPs": "read",
127
+ "/toshi.workspace.v1.WorkspaceService/GetUsage": "read",
128
+ "/toshi.workspace.v1.WorkspaceService/GetQueueTimes": "read",
129
+ "/toshi.workspace.v1.WorkspaceService/GetWorkflowUsage": "read",
130
+ "/toshi.workspace.v1.WorkspaceService/ListPlans": "read",
131
+ "/toshi.workspace.v1.WorkspaceService/CreateCheckoutSession": "none",
132
+ "/toshi.workspace.v1.WorkspaceService/CreateBillingPortalSession": "none",
133
+ "/toshi.workspace.v1.WorkspaceService/GetVersion": "read",
134
+ "/toshi.workspace.v1.HostJobService/ListHostJobs": "read",
135
+ "/toshi.workspace.v1.HostJobService/GetHostJob": "read",
136
+ "/toshi.workspace.v1.HostJobService/CancelHostJob": "none",
137
+ "/toshi.workspace.v1.HostJobService/GetHostJobFailure": "read",
138
+ "/toshi.workspace.v1.HostJobService/GetHostJobTelemetry": "read",
139
+ "/toshi.workspace.v1.HostJobService/GetHostJobDebugAccess": "read",
140
+ "/toshi.workspace.v1.HostJobService/StopHostJobDebug": "none",
141
+ "/toshi.workspace.v1.HostService/ListHosts": "read",
142
+ "/toshi.workspace.v1.HostService/ListHostStorage": "read",
143
+ "/toshi.workspace.v1.HostService/ListHostAlerts": "read",
144
+ "/toshi.workspace.v1.HostService/SetHostState": "none",
145
+ "/toshi.workspace.v1.HostService/RetireHost": "none",
146
+ "/toshi.workspace.v1.HostService/CreateCloudHost": "none",
147
+ "/toshi.workspace.v1.HostService/CheckCloudHost": "none",
148
+ "/toshi.workspace.v1.HostService/CreateEnrollmentToken": "none",
149
+ "/toshi.workspace.v1.TokenService/ListTokens": "read",
150
+ "/toshi.workspace.v1.TokenService/CreateWorkspaceToken": "none",
151
+ "/toshi.workspace.v1.TokenService/RevokeToken": "none",
152
+ "/toshi.workspace.v1.AuditEventService/ListAuditEvents": "read",
153
+ "/toshi.workspace.v1.FillerService/ListFillers": "read",
154
+ "/toshi.workspace.v1.FillerService/PutFiller": "none",
155
+ "/toshi.workspace.v1.FillerService/DeleteFiller": "none",
156
+ "/toshi.workspace.v1.FillerService/SetFillerEnabled": "none",
157
+ "/toshi.workspace.v1.FillerService/ListFillerRuns": "read",
158
+ "/toshi.workspace.v1.StorageProviderService/ListStorageProviders": "read",
159
+ "/toshi.workspace.v1.StorageProviderService/CreateStorageProvider": "none",
160
+ "/toshi.workspace.v1.StorageProviderService/CheckStorageProvider": "none",
161
+ "/toshi.workspace.v1.StorageProviderService/DeleteStorageProvider": "none",
76
162
  };
77
163
  /** The retry class of a generated procedure path; an unknown path is "none". */
78
164
  export function retryClassFor(procedure) {
package/dist/run.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { Client } from "@connectrpc/connect";
2
+ import type { CallOptions, JobRun } from "./client.js";
3
+ import type { CreateJobRequest, WorkloadService } from "./gen/toshi/workspace/v1/workloads_pb.js";
4
+ import type { RetrySetting } from "./retry.js";
5
+ /**
6
+ * Starts a job and follows its output, as `toshi run` does: CreateJob, then
7
+ * WatchOutput from the first byte. A job whose create answered its output
8
+ * (wait_for_end was set) is returned finished.
9
+ */
10
+ export declare function runJob(service: Client<typeof WorkloadService>, retry: RetrySetting, req: CreateJobRequest, opts?: CallOptions): Promise<JobRun>;