@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,355 @@
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/roles.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_timestamp } from "@bufbuild/protobuf/wkt";
6
+ import { file_toshi_permission } from "../../permission_pb.js";
7
+ /**
8
+ * Describes the file toshi/workspace/v1/roles.proto.
9
+ */
10
+ export const file_toshi_workspace_v1_roles = /*@__PURE__*/ fileDesc("Ch50b3NoaS93b3Jrc3BhY2UvdjEvcm9sZXMucHJvdG8SEnRvc2hpLndvcmtzcGFjZS52MSJHCgRSb2xlEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSEwoLcGVybWlzc2lvbnMYAyADKAkSEAoIYnVpbHRfaW4YBCABKAgiRAoHU3ViamVjdBItCgRraW5kGAEgASgOMh8udG9zaGkud29ya3NwYWNlLnYxLlN1YmplY3RLaW5kEgoKAmlkGAIgASgJItoBCglSb2xlR3JhbnQSCgoCaWQYASABKAkSLAoHc3ViamVjdBgCIAEoCzIbLnRvc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vMYOAoTaW52aXRhdGlvbi5hY2NlcHRlZBIhaW52aXRhdGlvbjpyZXNwb25zZS5pbnZpdGF0aW9uLmlkQiJaIGdvLnRvc2hpY2xvdWQuaW8vYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_toshi_permission]);
11
+ /**
12
+ * Describes the message toshi.workspace.v1.Role.
13
+ * Use `create(RoleSchema)` to create a new message.
14
+ */
15
+ export const RoleSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 0);
16
+ /**
17
+ * Describes the message toshi.workspace.v1.Subject.
18
+ * Use `create(SubjectSchema)` to create a new message.
19
+ */
20
+ export const SubjectSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 1);
21
+ /**
22
+ * Describes the message toshi.workspace.v1.RoleGrant.
23
+ * Use `create(RoleGrantSchema)` to create a new message.
24
+ */
25
+ export const RoleGrantSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 2);
26
+ /**
27
+ * Describes the message toshi.workspace.v1.ListRolesRequest.
28
+ * Use `create(ListRolesRequestSchema)` to create a new message.
29
+ */
30
+ export const ListRolesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 3);
31
+ /**
32
+ * Describes the message toshi.workspace.v1.ListRolesResponse.
33
+ * Use `create(ListRolesResponseSchema)` to create a new message.
34
+ */
35
+ export const ListRolesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 4);
36
+ /**
37
+ * Describes the message toshi.workspace.v1.CreateRoleRequest.
38
+ * Use `create(CreateRoleRequestSchema)` to create a new message.
39
+ */
40
+ export const CreateRoleRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 5);
41
+ /**
42
+ * Describes the message toshi.workspace.v1.CreateRoleResponse.
43
+ * Use `create(CreateRoleResponseSchema)` to create a new message.
44
+ */
45
+ export const CreateRoleResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 6);
46
+ /**
47
+ * Describes the message toshi.workspace.v1.UpdateRoleRequest.
48
+ * Use `create(UpdateRoleRequestSchema)` to create a new message.
49
+ */
50
+ export const UpdateRoleRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 7);
51
+ /**
52
+ * Describes the message toshi.workspace.v1.UpdateRoleResponse.
53
+ * Use `create(UpdateRoleResponseSchema)` to create a new message.
54
+ */
55
+ export const UpdateRoleResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 8);
56
+ /**
57
+ * Describes the message toshi.workspace.v1.DeleteRoleRequest.
58
+ * Use `create(DeleteRoleRequestSchema)` to create a new message.
59
+ */
60
+ export const DeleteRoleRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 9);
61
+ /**
62
+ * Describes the message toshi.workspace.v1.DeleteRoleResponse.
63
+ * Use `create(DeleteRoleResponseSchema)` to create a new message.
64
+ */
65
+ export const DeleteRoleResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 10);
66
+ /**
67
+ * Describes the message toshi.workspace.v1.ListRoleGrantsRequest.
68
+ * Use `create(ListRoleGrantsRequestSchema)` to create a new message.
69
+ */
70
+ export const ListRoleGrantsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 11);
71
+ /**
72
+ * Describes the message toshi.workspace.v1.ListRoleGrantsResponse.
73
+ * Use `create(ListRoleGrantsResponseSchema)` to create a new message.
74
+ */
75
+ export const ListRoleGrantsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 12);
76
+ /**
77
+ * Describes the message toshi.workspace.v1.GrantRoleRequest.
78
+ * Use `create(GrantRoleRequestSchema)` to create a new message.
79
+ */
80
+ export const GrantRoleRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 13);
81
+ /**
82
+ * Describes the message toshi.workspace.v1.GrantRoleResponse.
83
+ * Use `create(GrantRoleResponseSchema)` to create a new message.
84
+ */
85
+ export const GrantRoleResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 14);
86
+ /**
87
+ * Describes the message toshi.workspace.v1.RevokeRoleRequest.
88
+ * Use `create(RevokeRoleRequestSchema)` to create a new message.
89
+ */
90
+ export const RevokeRoleRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 15);
91
+ /**
92
+ * Describes the message toshi.workspace.v1.RevokeRoleResponse.
93
+ * Use `create(RevokeRoleResponseSchema)` to create a new message.
94
+ */
95
+ export const RevokeRoleResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 16);
96
+ /**
97
+ * Describes the message toshi.workspace.v1.ListMembersRequest.
98
+ * Use `create(ListMembersRequestSchema)` to create a new message.
99
+ */
100
+ export const ListMembersRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 17);
101
+ /**
102
+ * Describes the message toshi.workspace.v1.ListMembersResponse.
103
+ * Use `create(ListMembersResponseSchema)` to create a new message.
104
+ */
105
+ export const ListMembersResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 18);
106
+ /**
107
+ * Describes the message toshi.workspace.v1.Member.
108
+ * Use `create(MemberSchema)` to create a new message.
109
+ */
110
+ export const MemberSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 19);
111
+ /**
112
+ * Describes the message toshi.workspace.v1.RemoveMemberRequest.
113
+ * Use `create(RemoveMemberRequestSchema)` to create a new message.
114
+ */
115
+ export const RemoveMemberRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 20);
116
+ /**
117
+ * Describes the message toshi.workspace.v1.ApproveMemberRequest.
118
+ * Use `create(ApproveMemberRequestSchema)` to create a new message.
119
+ */
120
+ export const ApproveMemberRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 21);
121
+ /**
122
+ * Describes the message toshi.workspace.v1.ApproveMemberResponse.
123
+ * Use `create(ApproveMemberResponseSchema)` to create a new message.
124
+ */
125
+ export const ApproveMemberResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 22);
126
+ /**
127
+ * Describes the message toshi.workspace.v1.DeclineMemberRequest.
128
+ * Use `create(DeclineMemberRequestSchema)` to create a new message.
129
+ */
130
+ export const DeclineMemberRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 23);
131
+ /**
132
+ * Describes the message toshi.workspace.v1.DeclineMemberResponse.
133
+ * Use `create(DeclineMemberResponseSchema)` to create a new message.
134
+ */
135
+ export const DeclineMemberResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 24);
136
+ /**
137
+ * Describes the message toshi.workspace.v1.RemoveMemberResponse.
138
+ * Use `create(RemoveMemberResponseSchema)` to create a new message.
139
+ */
140
+ export const RemoveMemberResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 25);
141
+ /**
142
+ * Describes the message toshi.workspace.v1.CreateInvitationRequest.
143
+ * Use `create(CreateInvitationRequestSchema)` to create a new message.
144
+ */
145
+ export const CreateInvitationRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 26);
146
+ /**
147
+ * Describes the message toshi.workspace.v1.CreateInvitationResponse.
148
+ * Use `create(CreateInvitationResponseSchema)` to create a new message.
149
+ */
150
+ export const CreateInvitationResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 27);
151
+ /**
152
+ * Describes the message toshi.workspace.v1.Invitation.
153
+ * Use `create(InvitationSchema)` to create a new message.
154
+ */
155
+ export const InvitationSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 28);
156
+ /**
157
+ * Describes the message toshi.workspace.v1.ListInvitationsRequest.
158
+ * Use `create(ListInvitationsRequestSchema)` to create a new message.
159
+ */
160
+ export const ListInvitationsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 29);
161
+ /**
162
+ * Describes the message toshi.workspace.v1.ListInvitationsResponse.
163
+ * Use `create(ListInvitationsResponseSchema)` to create a new message.
164
+ */
165
+ export const ListInvitationsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 30);
166
+ /**
167
+ * Describes the message toshi.workspace.v1.RevokeInvitationRequest.
168
+ * Use `create(RevokeInvitationRequestSchema)` to create a new message.
169
+ */
170
+ export const RevokeInvitationRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 31);
171
+ /**
172
+ * Describes the message toshi.workspace.v1.RevokeInvitationResponse.
173
+ * Use `create(RevokeInvitationResponseSchema)` to create a new message.
174
+ */
175
+ export const RevokeInvitationResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 32);
176
+ /**
177
+ * Describes the message toshi.workspace.v1.AcceptInvitationRequest.
178
+ * Use `create(AcceptInvitationRequestSchema)` to create a new message.
179
+ */
180
+ export const AcceptInvitationRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 33);
181
+ /**
182
+ * Describes the message toshi.workspace.v1.AcceptInvitationResponse.
183
+ * Use `create(AcceptInvitationResponseSchema)` to create a new message.
184
+ */
185
+ export const AcceptInvitationResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_roles, 34);
186
+ /**
187
+ * SubjectKind says who a grant is given to, or who made it.
188
+ *
189
+ * @generated from enum toshi.workspace.v1.SubjectKind
190
+ */
191
+ export var SubjectKind;
192
+ (function (SubjectKind) {
193
+ /**
194
+ * @generated from enum value: SUBJECT_KIND_UNSPECIFIED = 0;
195
+ */
196
+ SubjectKind[SubjectKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
197
+ /**
198
+ * A person, by Toshi user id.
199
+ *
200
+ * @generated from enum value: SUBJECT_KIND_PERSON = 1;
201
+ */
202
+ SubjectKind[SubjectKind["PERSON"] = 1] = "PERSON";
203
+ /**
204
+ * One of the workspace's API tokens, by token id.
205
+ *
206
+ * @generated from enum value: SUBJECT_KIND_TOKEN = 2;
207
+ */
208
+ SubjectKind[SubjectKind["TOKEN"] = 2] = "TOKEN";
209
+ /**
210
+ * The control plane itself, as the maker of the grants it writes, such
211
+ * as a workspace's first owner. It is never given a role.
212
+ *
213
+ * @generated from enum value: SUBJECT_KIND_SYSTEM = 3;
214
+ */
215
+ SubjectKind[SubjectKind["SYSTEM"] = 3] = "SYSTEM";
216
+ })(SubjectKind || (SubjectKind = {}));
217
+ /**
218
+ * Describes the enum toshi.workspace.v1.SubjectKind.
219
+ */
220
+ export const SubjectKindSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_roles, 0);
221
+ /**
222
+ * MemberVia says how a person became a member.
223
+ *
224
+ * @generated from enum toshi.workspace.v1.MemberVia
225
+ */
226
+ export var MemberVia;
227
+ (function (MemberVia) {
228
+ /**
229
+ * @generated from enum value: MEMBER_VIA_UNSPECIFIED = 0;
230
+ */
231
+ MemberVia[MemberVia["UNSPECIFIED"] = 0] = "UNSPECIFIED";
232
+ /**
233
+ * Signing in with GitHub as an administrator of one of the workspace's
234
+ * GitHub App installations.
235
+ *
236
+ * @generated from enum value: MEMBER_VIA_GITHUB_ADMIN = 1;
237
+ */
238
+ MemberVia[MemberVia["GITHUB_ADMIN"] = 1] = "GITHUB_ADMIN";
239
+ /**
240
+ * Accepting an invitation.
241
+ *
242
+ * @generated from enum value: MEMBER_VIA_INVITATION = 2;
243
+ */
244
+ MemberVia[MemberVia["INVITATION"] = 2] = "INVITATION";
245
+ /**
246
+ * Holding a role in the workspace when members came in.
247
+ *
248
+ * @generated from enum value: MEMBER_VIA_MIGRATION = 3;
249
+ */
250
+ MemberVia[MemberVia["MIGRATION"] = 3] = "MIGRATION";
251
+ /**
252
+ * Signing in with GitHub as a member of the organisation of one of the
253
+ * workspace's GitHub App installations, when the workspace lets such
254
+ * members join.
255
+ *
256
+ * @generated from enum value: MEMBER_VIA_GITHUB_MEMBER = 4;
257
+ */
258
+ MemberVia[MemberVia["GITHUB_MEMBER"] = 4] = "GITHUB_MEMBER";
259
+ })(MemberVia || (MemberVia = {}));
260
+ /**
261
+ * Describes the enum toshi.workspace.v1.MemberVia.
262
+ */
263
+ export const MemberViaSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_roles, 1);
264
+ /**
265
+ * MemberState says whether a person is a member or waiting to be one.
266
+ *
267
+ * @generated from enum toshi.workspace.v1.MemberState
268
+ */
269
+ export var MemberState;
270
+ (function (MemberState) {
271
+ /**
272
+ * @generated from enum value: MEMBER_STATE_UNSPECIFIED = 0;
273
+ */
274
+ MemberState[MemberState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
275
+ /**
276
+ * @generated from enum value: MEMBER_STATE_ACTIVE = 1;
277
+ */
278
+ MemberState[MemberState["ACTIVE"] = 1] = "ACTIVE";
279
+ /**
280
+ * Waiting for a workspace admin to approve them.
281
+ *
282
+ * @generated from enum value: MEMBER_STATE_PENDING = 2;
283
+ */
284
+ MemberState[MemberState["PENDING"] = 2] = "PENDING";
285
+ })(MemberState || (MemberState = {}));
286
+ /**
287
+ * Describes the enum toshi.workspace.v1.MemberState.
288
+ */
289
+ export const MemberStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_roles, 2);
290
+ /**
291
+ * InvitationState says whether an invitation's code still works.
292
+ *
293
+ * @generated from enum toshi.workspace.v1.InvitationState
294
+ */
295
+ export var InvitationState;
296
+ (function (InvitationState) {
297
+ /**
298
+ * @generated from enum value: INVITATION_STATE_UNSPECIFIED = 0;
299
+ */
300
+ InvitationState[InvitationState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
301
+ /**
302
+ * Its code works until expires_at.
303
+ *
304
+ * @generated from enum value: INVITATION_STATE_OPEN = 1;
305
+ */
306
+ InvitationState[InvitationState["OPEN"] = 1] = "OPEN";
307
+ /**
308
+ * @generated from enum value: INVITATION_STATE_ACCEPTED = 2;
309
+ */
310
+ InvitationState[InvitationState["ACCEPTED"] = 2] = "ACCEPTED";
311
+ /**
312
+ * @generated from enum value: INVITATION_STATE_REVOKED = 3;
313
+ */
314
+ InvitationState[InvitationState["REVOKED"] = 3] = "REVOKED";
315
+ /**
316
+ * @generated from enum value: INVITATION_STATE_EXPIRED = 4;
317
+ */
318
+ InvitationState[InvitationState["EXPIRED"] = 4] = "EXPIRED";
319
+ })(InvitationState || (InvitationState = {}));
320
+ /**
321
+ * Describes the enum toshi.workspace.v1.InvitationState.
322
+ */
323
+ export const InvitationStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_roles, 3);
324
+ /**
325
+ * RoleService manages who may do what in the workspace: its roles, each a
326
+ * named set of permissions, and the grants that give a role to a person or
327
+ * a token on the whole workspace, one project or one environment. A
328
+ * caller's permissions are the union of the roles granted to it; there are
329
+ * no deny rules.
330
+ *
331
+ * Five roles are built in: owner (every permission), admin (every
332
+ * permission but billing.write, workspace.delete and workspace.signin),
333
+ * member (reads and
334
+ * writes of every product and of projects, secrets and tokens, and reads of
335
+ * the rest), agent (every read, and sandboxes.write, channels.write,
336
+ * artifacts.write and volumes.write) and viewer (every read). They cannot
337
+ * be changed. A workspace adds its own from the permissions this API's
338
+ * methods name in their toshi.permission option and those a product's
339
+ * calls name.
340
+ *
341
+ * Nobody makes, changes, deletes, gives or revokes a role with a
342
+ * permission they do not hold where the role applies: such a call is
343
+ * refused with PERMISSION_DENIED, and a google.rpc.ErrorInfo detail with
344
+ * the reason PERMISSION_MISSING names the permission under the key
345
+ * "permission". So only an owner gives or revokes owner. A workspace
346
+ * always keeps a person who is an owner of the whole workspace.
347
+ *
348
+ * A token limited to a project or an environment is refused with
349
+ * PERMISSION_DENIED: these calls act in the whole workspace. A suspended
350
+ * workspace lists its roles and grants, and every other call is refused
351
+ * for it with FAILED_PRECONDITION.
352
+ *
353
+ * @generated from service toshi.workspace.v1.RoleService
354
+ */
355
+ export const RoleService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_roles, 0);