@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.
- package/README.md +82 -40
- package/dist/client.d.ts +33 -2
- package/dist/client.js +28 -3
- package/dist/errors.d.ts +74 -22
- package/dist/errors.js +99 -27
- package/dist/gen/toshi/permission_pb.d.ts +207 -2
- package/dist/gen/toshi/permission_pb.js +54 -2
- package/dist/gen/toshi/workspace/v1/account_pb.d.ts +590 -0
- package/dist/gen/toshi/workspace/v1/account_pb.js +75 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +14 -8
- package/dist/gen/toshi/workspace/v1/artifacts_pb.js +9 -7
- package/dist/gen/toshi/workspace/v1/audit_events_pb.d.ts +191 -6
- package/dist/gen/toshi/workspace/v1/audit_events_pb.js +11 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +1194 -21
- package/dist/gen/toshi/workspace/v1/channels_pb.js +185 -39
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +1481 -0
- package/dist/gen/toshi/workspace/v1/connections_pb.js +208 -0
- package/dist/gen/toshi/workspace/v1/discovery_pb.d.ts +291 -43
- package/dist/gen/toshi/workspace/v1/discovery_pb.js +79 -30
- package/dist/gen/toshi/workspace/v1/display_pb.d.ts +198 -15
- package/dist/gen/toshi/workspace/v1/display_pb.js +52 -2
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +864 -0
- package/dist/gen/toshi/workspace/v1/domains_pb.js +152 -0
- package/dist/gen/toshi/workspace/v1/fillers_pb.d.ts +12 -4
- package/dist/gen/toshi/workspace/v1/fillers_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +1297 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.js +271 -0
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +315 -15
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +10 -5
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +196 -7
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +12 -7
- package/dist/gen/toshi/workspace/v1/images_pb.d.ts +1463 -0
- package/dist/gen/toshi/workspace/v1/images_pb.js +263 -0
- package/dist/gen/toshi/workspace/v1/products_pb.d.ts +99 -296
- package/dist/gen/toshi/workspace/v1/products_pb.js +7 -53
- package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1474 -99
- package/dist/gen/toshi/workspace/v1/projects_pb.js +150 -33
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +181 -14
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +54 -14
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1994 -0
- package/dist/gen/toshi/workspace/v1/roles_pb.js +355 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +314 -8
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +42 -18
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.d.ts +14 -0
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/tokens_pb.d.ts +434 -5
- package/dist/gen/toshi/workspace/v1/tokens_pb.js +65 -8
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +1099 -0
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +185 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +1052 -33
- package/dist/gen/toshi/workspace/v1/volumes_pb.js +169 -11
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +66 -8
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +4 -4
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2043 -54
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +204 -54
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6290 -937
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +801 -88
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +2176 -630
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +191 -74
- package/dist/index.d.ts +8 -1
- package/dist/index.js +8 -1
- package/dist/interceptors.d.ts +6 -2
- package/dist/interceptors.js +13 -8
- package/dist/retry.d.ts +18 -0
- package/dist/retry.js +225 -23
- package/dist/test/procedures.js +100 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wait.d.ts +4 -0
- package/dist/wait.js +24 -1
- package/package.json +3 -2
|
@@ -0,0 +1,185 @@
|
|
|
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/triggers.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
|
+
import { file_toshi_workspace_v1_workspace } from "./workspace_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file toshi/workspace/v1/triggers.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_toshi_workspace_v1_triggers = /*@__PURE__*/ fileDesc("CiF0b3NoaS93b3Jrc3BhY2UvdjEvdHJpZ2dlcnMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSLRAwoHVHJpZ2dlchIKCgJpZBgBIAEoCRIPCgdwcm9qZWN0GAIgASgJEhMKC2Vudmlyb25tZW50GAMgASgJEgwKBG5hbWUYBCABKAkSDgoGc291cmNlGAUgASgJEg4KBmV2ZW50cxgGIAMoCRIxCgZmaWx0ZXIYByABKAsyIS50b3NoaS53b3Jrc3BhY2UudjEuVHJpZ2dlckZpbHRlchIxCgZhY3Rpb24YCCABKA4yIS50b3NoaS53b3Jrc3BhY2UudjEuVHJpZ2dlckFjd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25zZSIgwvMYDXRyaWdnZXJzLnJlYWTK8xgLZW52aXJvbm1lbnQShwEKDVVwZGF0ZVRyaWdnZXISKC50b3NoaS53b3Jrc3BhY2UudjEuVXBkYXRlVHJpZ2dlclJlcXVlc3QaKS50b3NoaS53b3Jrc3BhY2UudjEuVXBkYXRlVHJpZ2dlclJlc3BvbnNlIiHC8xgOdHJpZ2dlcnMud3JpdGXK8xgLZW52aXJvbm1lbnQShwEKDURlbGV0ZVRyaWdnZXISKC50b3NoaS53b3Jrc3BhY2UudjEuRGVsZXRlVHJpZ2dlclJlcXVlc3QaKS50b3NoaS53b3Jrc3BhY2UudjEuRGVsZXRlVHJpZ2dlclJlc3BvbnNlIiHC8xgOdHJpZ2dlcnMud3JpdGXK8xgLZW52aXJvbm1lbnRCIlogZ28udG9zaGljbG91ZC5pby9hcGkvd29ya3NwYWNldjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_toshi_permission, file_toshi_workspace_v1_workspace]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message toshi.workspace.v1.Trigger.
|
|
14
|
+
* Use `create(TriggerSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const TriggerSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message toshi.workspace.v1.TriggerFilter.
|
|
19
|
+
* Use `create(TriggerFilterSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const TriggerFilterSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message toshi.workspace.v1.TriggerTarget.
|
|
24
|
+
* Use `create(TriggerTargetSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const TriggerTargetSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message toshi.workspace.v1.TriggerServiceChannel.
|
|
29
|
+
* Use `create(TriggerServiceChannelSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const TriggerServiceChannelSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message toshi.workspace.v1.TriggerPreview.
|
|
34
|
+
* Use `create(TriggerPreviewSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const TriggerPreviewSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message toshi.workspace.v1.TriggerSandbox.
|
|
39
|
+
* Use `create(TriggerSandboxSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const TriggerSandboxSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 5);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message toshi.workspace.v1.CreateTriggerRequest.
|
|
44
|
+
* Use `create(CreateTriggerRequestSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const CreateTriggerRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 6);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message toshi.workspace.v1.CreateTriggerResponse.
|
|
49
|
+
* Use `create(CreateTriggerResponseSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const CreateTriggerResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 7);
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message toshi.workspace.v1.GetTriggerRequest.
|
|
54
|
+
* Use `create(GetTriggerRequestSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const GetTriggerRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 8);
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message toshi.workspace.v1.GetTriggerResponse.
|
|
59
|
+
* Use `create(GetTriggerResponseSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const GetTriggerResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 9);
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message toshi.workspace.v1.ListTriggersRequest.
|
|
64
|
+
* Use `create(ListTriggersRequestSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const ListTriggersRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 10);
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message toshi.workspace.v1.ListTriggersResponse.
|
|
69
|
+
* Use `create(ListTriggersResponseSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export const ListTriggersResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 11);
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message toshi.workspace.v1.UpdateTriggerRequest.
|
|
74
|
+
* Use `create(UpdateTriggerRequestSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export const UpdateTriggerRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 12);
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message toshi.workspace.v1.UpdateTriggerResponse.
|
|
79
|
+
* Use `create(UpdateTriggerResponseSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const UpdateTriggerResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 13);
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message toshi.workspace.v1.DeleteTriggerRequest.
|
|
84
|
+
* Use `create(DeleteTriggerRequestSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export const DeleteTriggerRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 14);
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message toshi.workspace.v1.DeleteTriggerResponse.
|
|
89
|
+
* Use `create(DeleteTriggerResponseSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export const DeleteTriggerResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_triggers, 15);
|
|
92
|
+
/**
|
|
93
|
+
* TriggerAction is what a trigger does with an event it matches.
|
|
94
|
+
*
|
|
95
|
+
* @generated from enum toshi.workspace.v1.TriggerAction
|
|
96
|
+
*/
|
|
97
|
+
export var TriggerAction;
|
|
98
|
+
(function (TriggerAction) {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum value: TRIGGER_ACTION_UNSPECIFIED = 0;
|
|
101
|
+
*/
|
|
102
|
+
TriggerAction[TriggerAction["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
103
|
+
/**
|
|
104
|
+
* Makes the target workload for the event's key, replacing the one the
|
|
105
|
+
* key had: the new one first, and the older ones are deleted once it runs
|
|
106
|
+
* or has failed. An event older than the newest one the key has seen
|
|
107
|
+
* changes nothing.
|
|
108
|
+
*
|
|
109
|
+
* @generated from enum value: TRIGGER_ACTION_CREATE = 1;
|
|
110
|
+
*/
|
|
111
|
+
TriggerAction[TriggerAction["CREATE"] = 1] = "CREATE";
|
|
112
|
+
/**
|
|
113
|
+
* Deletes the workloads the environment's CREATE triggers of the same
|
|
114
|
+
* source made for the event's key.
|
|
115
|
+
*
|
|
116
|
+
* @generated from enum value: TRIGGER_ACTION_DELETE = 2;
|
|
117
|
+
*/
|
|
118
|
+
TriggerAction[TriggerAction["DELETE"] = 2] = "DELETE";
|
|
119
|
+
/**
|
|
120
|
+
* Puts the event on the target service's event channel, which wakes the
|
|
121
|
+
* service if it sleeps and posts the event to it. The message's source
|
|
122
|
+
* is the trigger, and the event's id makes its request key, so an event
|
|
123
|
+
* is put on the channel once.
|
|
124
|
+
*
|
|
125
|
+
* @generated from enum value: TRIGGER_ACTION_DELIVER = 3;
|
|
126
|
+
*/
|
|
127
|
+
TriggerAction[TriggerAction["DELIVER"] = 3] = "DELIVER";
|
|
128
|
+
})(TriggerAction || (TriggerAction = {}));
|
|
129
|
+
/**
|
|
130
|
+
* Describes the enum toshi.workspace.v1.TriggerAction.
|
|
131
|
+
*/
|
|
132
|
+
export const TriggerActionSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_triggers, 0);
|
|
133
|
+
/**
|
|
134
|
+
* TriggerForks is what a trigger does with a pull request from a fork.
|
|
135
|
+
*
|
|
136
|
+
* @generated from enum toshi.workspace.v1.TriggerForks
|
|
137
|
+
*/
|
|
138
|
+
export var TriggerForks;
|
|
139
|
+
(function (TriggerForks) {
|
|
140
|
+
/**
|
|
141
|
+
* As LABEL.
|
|
142
|
+
*
|
|
143
|
+
* @generated from enum value: TRIGGER_FORKS_UNSPECIFIED = 0;
|
|
144
|
+
*/
|
|
145
|
+
TriggerForks[TriggerForks["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
146
|
+
/**
|
|
147
|
+
* Nothing runs until a person with write access to the base repository
|
|
148
|
+
* adds the label toshi:preview to the pull request. What runs then has no
|
|
149
|
+
* bindings, and a new commit to the pull request removes it.
|
|
150
|
+
*
|
|
151
|
+
* @generated from enum value: TRIGGER_FORKS_LABEL = 1;
|
|
152
|
+
*/
|
|
153
|
+
TriggerForks[TriggerForks["LABEL"] = 1] = "LABEL";
|
|
154
|
+
/**
|
|
155
|
+
* Nothing runs for a fork.
|
|
156
|
+
*
|
|
157
|
+
* @generated from enum value: TRIGGER_FORKS_NEVER = 2;
|
|
158
|
+
*/
|
|
159
|
+
TriggerForks[TriggerForks["NEVER"] = 2] = "NEVER";
|
|
160
|
+
})(TriggerForks || (TriggerForks = {}));
|
|
161
|
+
/**
|
|
162
|
+
* Describes the enum toshi.workspace.v1.TriggerForks.
|
|
163
|
+
*/
|
|
164
|
+
export const TriggerForksSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_triggers, 1);
|
|
165
|
+
/**
|
|
166
|
+
* TriggerService keeps a project's triggers: each binds the events one
|
|
167
|
+
* connection brings to an action on the project's workloads. A trigger
|
|
168
|
+
* matches an event on the events it names, the exact names, and on its
|
|
169
|
+
* filter; nothing else of the event is read, and no code of the
|
|
170
|
+
* workspace's runs in the control plane.
|
|
171
|
+
*
|
|
172
|
+
* A trigger belongs to a project and an environment, the environment its
|
|
173
|
+
* workloads run in, and every call names both, as WorkloadService's do.
|
|
174
|
+
* A trigger is owed the events written after it is created, from then
|
|
175
|
+
* on; it never acts on an event written before it.
|
|
176
|
+
*
|
|
177
|
+
* CreateTrigger, UpdateTrigger and DeleteTrigger take a request_key, with
|
|
178
|
+
* WorkloadService's rule: a retry with the same key and the same payload
|
|
179
|
+
* returns what the first call returned and changes nothing; the same key
|
|
180
|
+
* with a different payload fails with FAILED_PRECONDITION; an empty key
|
|
181
|
+
* means no retry protection.
|
|
182
|
+
*
|
|
183
|
+
* @generated from service toshi.workspace.v1.TriggerService
|
|
184
|
+
*/
|
|
185
|
+
export const TriggerService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_triggers, 0);
|