@toshicloud/sdk 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +138 -41
  2. package/dist/client.d.ts +103 -4
  3. package/dist/client.js +43 -4
  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 +1616 -0
  17. package/dist/gen/toshi/workspace/v1/connections_pb.js +224 -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 +329 -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 +2069 -54
  55. package/dist/gen/toshi/workspace/v1/workloads_pb.js +204 -54
  56. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6634 -933
  57. package/dist/gen/toshi/workspace/v1/workspace_pb.js +912 -93
  58. package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +3209 -1378
  59. package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +211 -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 +230 -23
  66. package/dist/test/alarms.d.ts +29 -0
  67. package/dist/test/alarms.js +144 -0
  68. package/dist/test/fake.js +31 -0
  69. package/dist/test/index.d.ts +12 -2
  70. package/dist/test/index.js +12 -2
  71. package/dist/test/procedures.js +96 -5
  72. package/dist/version.d.ts +1 -1
  73. package/dist/version.js +1 -1
  74. package/dist/wait.d.ts +4 -0
  75. package/dist/wait.js +24 -1
  76. package/package.json +3 -2
@@ -0,0 +1,224 @@
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/connections.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_duration, 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/connections.proto.
9
+ */
10
+ export const file_toshi_workspace_v1_connections = /*@__PURE__*/ fileDesc("CiR0b3NoaS93b3Jrc3BhY2UvdjEvY29ubmVjdGlvbnMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSL7AwoKQ29ubmVjdGlvbhIKCgJpZBgBIAEoCRIwCgRraW5kGAIgASgOMiIudG9zaGkud29ya3NwYWNlLnYxLkNvbm5lY3Rpb25LaW5kEgwKBG5hbWU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tzcGFjZS52MS5SZXBsYXlDb25uZWN0aW9uRGVsaXZlcnlSZXF1ZXN0GjQudG9zaGkud29ya3NwYWNlLnYxLlJlcGxheUNvbm5lY3Rpb25EZWxpdmVyeVJlc3BvbnNlInjC8xgRY29ubmVjdGlvbnMud3JpdGXK8xgJd29ya3NwYWNl0vMYUgokY29ubmVjdGlvbi5kZWxpdmVyeV9yZXBsYXlfcmVxdWVzdGVkEipjb25uZWN0aW9uOnJlc3BvbnNlLmRlbGl2ZXJ5LmNvbm5lY3Rpb25faWRCIlogZ28udG9zaGljbG91ZC5pby9hcGkvd29ya3NwYWNldjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_toshi_permission]);
11
+ /**
12
+ * Describes the message toshi.workspace.v1.Connection.
13
+ * Use `create(ConnectionSchema)` to create a new message.
14
+ */
15
+ export const ConnectionSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 0);
16
+ /**
17
+ * Describes the message toshi.workspace.v1.MailConnection.
18
+ * Use `create(MailConnectionSchema)` to create a new message.
19
+ */
20
+ export const MailConnectionSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 1);
21
+ /**
22
+ * Describes the message toshi.workspace.v1.ConnectionTarget.
23
+ * Use `create(ConnectionTargetSchema)` to create a new message.
24
+ */
25
+ export const ConnectionTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 2);
26
+ /**
27
+ * Describes the message toshi.workspace.v1.ListConnectionsRequest.
28
+ * Use `create(ListConnectionsRequestSchema)` to create a new message.
29
+ */
30
+ export const ListConnectionsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 3);
31
+ /**
32
+ * Describes the message toshi.workspace.v1.ListConnectionsResponse.
33
+ * Use `create(ListConnectionsResponseSchema)` to create a new message.
34
+ */
35
+ export const ListConnectionsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 4);
36
+ /**
37
+ * Describes the message toshi.workspace.v1.GetConnectionRequest.
38
+ * Use `create(GetConnectionRequestSchema)` to create a new message.
39
+ */
40
+ export const GetConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 5);
41
+ /**
42
+ * Describes the message toshi.workspace.v1.GetConnectionResponse.
43
+ * Use `create(GetConnectionResponseSchema)` to create a new message.
44
+ */
45
+ export const GetConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 6);
46
+ /**
47
+ * Describes the message toshi.workspace.v1.CreateConnectionRequest.
48
+ * Use `create(CreateConnectionRequestSchema)` to create a new message.
49
+ */
50
+ export const CreateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 7);
51
+ /**
52
+ * Describes the message toshi.workspace.v1.CreateConnectionResponse.
53
+ * Use `create(CreateConnectionResponseSchema)` to create a new message.
54
+ */
55
+ export const CreateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 8);
56
+ /**
57
+ * Describes the message toshi.workspace.v1.DeleteConnectionRequest.
58
+ * Use `create(DeleteConnectionRequestSchema)` to create a new message.
59
+ */
60
+ export const DeleteConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 9);
61
+ /**
62
+ * Describes the message toshi.workspace.v1.DeleteConnectionResponse.
63
+ * Use `create(DeleteConnectionResponseSchema)` to create a new message.
64
+ */
65
+ export const DeleteConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 10);
66
+ /**
67
+ * Describes the message toshi.workspace.v1.RotateConnectionSecretRequest.
68
+ * Use `create(RotateConnectionSecretRequestSchema)` to create a new message.
69
+ */
70
+ export const RotateConnectionSecretRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 11);
71
+ /**
72
+ * Describes the message toshi.workspace.v1.RotateConnectionSecretResponse.
73
+ * Use `create(RotateConnectionSecretResponseSchema)` to create a new message.
74
+ */
75
+ export const RotateConnectionSecretResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 12);
76
+ /**
77
+ * Describes the message toshi.workspace.v1.UpdateConnectionRequest.
78
+ * Use `create(UpdateConnectionRequestSchema)` to create a new message.
79
+ */
80
+ export const UpdateConnectionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 13);
81
+ /**
82
+ * Describes the message toshi.workspace.v1.UpdateConnectionResponse.
83
+ * Use `create(UpdateConnectionResponseSchema)` to create a new message.
84
+ */
85
+ export const UpdateConnectionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 14);
86
+ /**
87
+ * Describes the message toshi.workspace.v1.ConnectionDelivery.
88
+ * Use `create(ConnectionDeliverySchema)` to create a new message.
89
+ */
90
+ export const ConnectionDeliverySchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 15);
91
+ /**
92
+ * Describes the message toshi.workspace.v1.ConnectionDeliveryRun.
93
+ * Use `create(ConnectionDeliveryRunSchema)` to create a new message.
94
+ */
95
+ export const ConnectionDeliveryRunSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 16);
96
+ /**
97
+ * Describes the message toshi.workspace.v1.ListConnectionDeliveriesRequest.
98
+ * Use `create(ListConnectionDeliveriesRequestSchema)` to create a new message.
99
+ */
100
+ export const ListConnectionDeliveriesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 17);
101
+ /**
102
+ * Describes the message toshi.workspace.v1.ListConnectionDeliveriesResponse.
103
+ * Use `create(ListConnectionDeliveriesResponseSchema)` to create a new message.
104
+ */
105
+ export const ListConnectionDeliveriesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 18);
106
+ /**
107
+ * Describes the message toshi.workspace.v1.GetConnectionDeliveryRequest.
108
+ * Use `create(GetConnectionDeliveryRequestSchema)` to create a new message.
109
+ */
110
+ export const GetConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 19);
111
+ /**
112
+ * Describes the message toshi.workspace.v1.GetConnectionDeliveryResponse.
113
+ * Use `create(GetConnectionDeliveryResponseSchema)` to create a new message.
114
+ */
115
+ export const GetConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 20);
116
+ /**
117
+ * Describes the message toshi.workspace.v1.ReplayConnectionDeliveryRequest.
118
+ * Use `create(ReplayConnectionDeliveryRequestSchema)` to create a new message.
119
+ */
120
+ export const ReplayConnectionDeliveryRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 21);
121
+ /**
122
+ * Describes the message toshi.workspace.v1.ReplayConnectionDeliveryResponse.
123
+ * Use `create(ReplayConnectionDeliveryResponseSchema)` to create a new message.
124
+ */
125
+ export const ReplayConnectionDeliveryResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_connections, 22);
126
+ /**
127
+ * ConnectionKind is the kind of source a connection receives events from.
128
+ *
129
+ * @generated from enum toshi.workspace.v1.ConnectionKind
130
+ */
131
+ export var ConnectionKind;
132
+ (function (ConnectionKind) {
133
+ /**
134
+ * @generated from enum value: CONNECTION_KIND_UNSPECIFIED = 0;
135
+ */
136
+ ConnectionKind[ConnectionKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
137
+ /**
138
+ * A GitHub App installation.
139
+ *
140
+ * @generated from enum value: CONNECTION_KIND_GITHUB = 1;
141
+ */
142
+ ConnectionKind[ConnectionKind["GITHUB"] = 1] = "GITHUB";
143
+ /**
144
+ * A sender that signs its requests as Standard Webhooks does.
145
+ *
146
+ * @generated from enum value: CONNECTION_KIND_WEBHOOK = 2;
147
+ */
148
+ ConnectionKind[ConnectionKind["WEBHOOK"] = 2] = "WEBHOOK";
149
+ /**
150
+ * An inbound mail address. The deployment's mail provider receives the
151
+ * messages; each is stored as a receipt before it goes to a service's
152
+ * event channel.
153
+ *
154
+ * @generated from enum value: CONNECTION_KIND_MAIL = 3;
155
+ */
156
+ ConnectionKind[ConnectionKind["MAIL"] = 3] = "MAIL";
157
+ })(ConnectionKind || (ConnectionKind = {}));
158
+ /**
159
+ * Describes the enum toshi.workspace.v1.ConnectionKind.
160
+ */
161
+ export const ConnectionKindSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 0);
162
+ /**
163
+ * ConnectionDeliveryState is where a WEBHOOK connection's delivery stands.
164
+ *
165
+ * @generated from enum toshi.workspace.v1.ConnectionDeliveryState
166
+ */
167
+ export var ConnectionDeliveryState;
168
+ (function (ConnectionDeliveryState) {
169
+ /**
170
+ * @generated from enum value: CONNECTION_DELIVERY_STATE_UNSPECIFIED = 0;
171
+ */
172
+ ConnectionDeliveryState[ConnectionDeliveryState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
173
+ /**
174
+ * Stored and waiting for a worker, or being run.
175
+ *
176
+ * @generated from enum value: CONNECTION_DELIVERY_STATE_RECEIVED = 1;
177
+ */
178
+ ConnectionDeliveryState[ConnectionDeliveryState["RECEIVED"] = 1] = "RECEIVED";
179
+ /**
180
+ * It became an event, or its connection's target took it.
181
+ *
182
+ * @generated from enum value: CONNECTION_DELIVERY_STATE_PROCESSED = 2;
183
+ */
184
+ ConnectionDeliveryState[ConnectionDeliveryState["PROCESSED"] = 2] = "PROCESSED";
185
+ /**
186
+ * It became no event, for the reason the delivery names.
187
+ *
188
+ * @generated from enum value: CONNECTION_DELIVERY_STATE_DROPPED = 3;
189
+ */
190
+ ConnectionDeliveryState[ConnectionDeliveryState["DROPPED"] = 3] = "DROPPED";
191
+ /**
192
+ * The store failed on every try to write its event, or its connection's
193
+ * target took it on no try.
194
+ *
195
+ * @generated from enum value: CONNECTION_DELIVERY_STATE_FAILED = 4;
196
+ */
197
+ ConnectionDeliveryState[ConnectionDeliveryState["FAILED"] = 4] = "FAILED";
198
+ })(ConnectionDeliveryState || (ConnectionDeliveryState = {}));
199
+ /**
200
+ * Describes the enum toshi.workspace.v1.ConnectionDeliveryState.
201
+ */
202
+ export const ConnectionDeliveryStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_connections, 1);
203
+ /**
204
+ * ConnectionService keeps a workspace's connections: the sources of the
205
+ * events it owns. A GitHub App installation is a connection of the kind
206
+ * GITHUB, which installing the App creates and removing it deletes; the
207
+ * calls here list it and cannot create or delete it. A WEBHOOK connection
208
+ * receives events from a sender that signs its requests as Standard
209
+ * Webhooks does, with a secret the connection keeps. A MAIL connection
210
+ * receives mail at an address the deployment's inbound mail provider
211
+ * serves; each message is stored as a receipt before it goes to a
212
+ * service's event channel.
213
+ *
214
+ * The caller's credential names the workspace, as for WorkloadService.
215
+ * CreateConnection and RotateConnectionSecret require a request_key, which
216
+ * works as WorkloadService's do: a retry with the same key and the same
217
+ * request returns what the first call returned and changes nothing. A
218
+ * signing secret is shown once, in the answer that made it and an identical
219
+ * retry's; no read returns it. A retry after the connection is deleted, or
220
+ * after its secret was rotated again, fails with FAILED_PRECONDITION.
221
+ *
222
+ * @generated from service toshi.workspace.v1.ConnectionService
223
+ */
224
+ export const ConnectionService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_connections, 0);