@stapel/workspaces-react 0.1.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.
- package/CHANGELOG.md +60 -0
- package/LICENSE +21 -0
- package/MODULE.md +54 -0
- package/README.md +73 -0
- package/dist/api/extensions.d.ts +8 -0
- package/dist/api/extensions.d.ts.map +1 -0
- package/dist/api/extensions.js +8 -0
- package/dist/api/extensions.js.map +1 -0
- package/dist/api/types.d.ts +51 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +2 -0
- package/dist/api/types.js.map +1 -0
- package/dist/api/workspacesApi.d.ts +43 -0
- package/dist/api/workspacesApi.d.ts.map +1 -0
- package/dist/api/workspacesApi.js +31 -0
- package/dist/api/workspacesApi.js.map +1 -0
- package/dist/flows/errors.d.ts +12 -0
- package/dist/flows/errors.d.ts.map +1 -0
- package/dist/flows/errors.js +13 -0
- package/dist/flows/errors.js.map +1 -0
- package/dist/flows/generated/flows.gen.d.ts +19 -0
- package/dist/flows/generated/flows.gen.d.ts.map +1 -0
- package/dist/flows/generated/flows.gen.js +23 -0
- package/dist/flows/generated/flows.gen.js.map +1 -0
- package/dist/headless/AcceptInvitation.d.ts +39 -0
- package/dist/headless/AcceptInvitation.d.ts.map +1 -0
- package/dist/headless/AcceptInvitation.js +27 -0
- package/dist/headless/AcceptInvitation.js.map +1 -0
- package/dist/headless/Members.d.ts +47 -0
- package/dist/headless/Members.d.ts.map +1 -0
- package/dist/headless/Members.js +50 -0
- package/dist/headless/Members.js.map +1 -0
- package/dist/headless/WorkspaceList.d.ts +38 -0
- package/dist/headless/WorkspaceList.d.ts.map +1 -0
- package/dist/headless/WorkspaceList.js +33 -0
- package/dist/headless/WorkspaceList.js.map +1 -0
- package/dist/headless/WorkspacesProvider.d.ts +18 -0
- package/dist/headless/WorkspacesProvider.d.ts.map +1 -0
- package/dist/headless/WorkspacesProvider.js +17 -0
- package/dist/headless/WorkspacesProvider.js.map +1 -0
- package/dist/i18n/errorsMap.d.ts +10 -0
- package/dist/i18n/errorsMap.d.ts.map +1 -0
- package/dist/i18n/errorsMap.js +20 -0
- package/dist/i18n/errorsMap.js.map +1 -0
- package/dist/i18n/generated/errors.gen.d.ts +347 -0
- package/dist/i18n/generated/errors.gen.d.ts.map +1 -0
- package/dist/i18n/generated/errors.gen.js +177 -0
- package/dist/i18n/generated/errors.gen.js.map +1 -0
- package/dist/i18n/generated/errors.ru.gen.d.ts +9 -0
- package/dist/i18n/generated/errors.ru.gen.d.ts.map +1 -0
- package/dist/i18n/generated/errors.ru.gen.js +61 -0
- package/dist/i18n/generated/errors.ru.gen.js.map +1 -0
- package/dist/i18n/keys.d.ts +55 -0
- package/dist/i18n/keys.d.ts.map +1 -0
- package/dist/i18n/keys.js +76 -0
- package/dist/i18n/keys.js.map +1 -0
- package/dist/i18n/ru.d.ts +28 -0
- package/dist/i18n/ru.d.ts.map +1 -0
- package/dist/i18n/ru.js +49 -0
- package/dist/i18n/ru.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/model/context.d.ts +14 -0
- package/dist/model/context.d.ts.map +1 -0
- package/dist/model/context.js +21 -0
- package/dist/model/context.js.map +1 -0
- package/dist/model/mutations.d.ts +55 -0
- package/dist/model/mutations.d.ts.map +1 -0
- package/dist/model/mutations.js +138 -0
- package/dist/model/mutations.js.map +1 -0
- package/dist/model/queries.d.ts +21 -0
- package/dist/model/queries.d.ts.map +1 -0
- package/dist/model/queries.js +41 -0
- package/dist/model/queries.js.map +1 -0
- package/dist/model/queryKeys.d.ts +7 -0
- package/dist/model/queryKeys.d.ts.map +1 -0
- package/dist/model/queryKeys.js +15 -0
- package/dist/model/queryKeys.js.map +1 -0
- package/dist/model/runtime.d.ts +26 -0
- package/dist/model/runtime.d.ts.map +1 -0
- package/dist/model/runtime.js +18 -0
- package/dist/model/runtime.js.map +1 -0
- package/llms.txt +95 -0
- package/manifest.json +705 -0
- package/package.json +85 -0
- package/src/analytics/generated/events.json +7 -0
- package/src/api/extensions.ts +7 -0
- package/src/api/types.ts +58 -0
- package/src/api/workspacesApi.ts +139 -0
- package/src/flows/errors.ts +16 -0
- package/src/flows/generated/flows.gen.ts +38 -0
- package/src/flows/generated/flows.json +1 -0
- package/src/headless/AcceptInvitation.tsx +53 -0
- package/src/headless/Members.tsx +89 -0
- package/src/headless/WorkspaceList.tsx +58 -0
- package/src/headless/WorkspacesProvider.tsx +25 -0
- package/src/i18n/errorsMap.ts +31 -0
- package/src/i18n/generated/errors.gen.ts +208 -0
- package/src/i18n/generated/errors.json +394 -0
- package/src/i18n/generated/errors.ru.gen.ts +67 -0
- package/src/i18n/keys.ts +83 -0
- package/src/i18n/ru.ts +53 -0
- package/src/index.ts +113 -0
- package/src/model/context.tsx +29 -0
- package/src/model/mutations.ts +196 -0
- package/src/model/queries.ts +51 -0
- package/src/model/queryKeys.ts +20 -0
- package/src/model/runtime.ts +46 -0
- package/tsconfig.json +26 -0
package/manifest.json
ADDED
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$generated": "by scripts/gen-manifest.mjs — do not edit; drift-gated (pnpm gen:manifest:check)",
|
|
3
|
+
"package": "@stapel/workspaces-react",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"backend": {
|
|
6
|
+
"module": "stapel-workspaces",
|
|
7
|
+
"contract": ">=0.3 <0.4"
|
|
8
|
+
},
|
|
9
|
+
"layers": [
|
|
10
|
+
"api",
|
|
11
|
+
"model",
|
|
12
|
+
"flows",
|
|
13
|
+
"headless",
|
|
14
|
+
"i18n"
|
|
15
|
+
],
|
|
16
|
+
"flows": {},
|
|
17
|
+
"machines": [],
|
|
18
|
+
"operations": {
|
|
19
|
+
"workspaces_api_create": {
|
|
20
|
+
"method": "POST",
|
|
21
|
+
"path": "/workspaces/api/",
|
|
22
|
+
"tag": "Workspaces",
|
|
23
|
+
"request": "WorkspaceCreateRequest",
|
|
24
|
+
"response": "WorkspaceResponse"
|
|
25
|
+
},
|
|
26
|
+
"workspaces_api_destroy": {
|
|
27
|
+
"method": "DELETE",
|
|
28
|
+
"path": "/workspaces/api/{workspace_id}",
|
|
29
|
+
"tag": "Workspaces",
|
|
30
|
+
"request": null,
|
|
31
|
+
"response": null
|
|
32
|
+
},
|
|
33
|
+
"workspaces_api_internal_members_retrieve": {
|
|
34
|
+
"method": "GET",
|
|
35
|
+
"path": "/workspaces/api/internal/{workspace_id}/members/{user_id}",
|
|
36
|
+
"tag": "Internal",
|
|
37
|
+
"request": null,
|
|
38
|
+
"response": "MemberResponse"
|
|
39
|
+
},
|
|
40
|
+
"workspaces_api_internal_users_personal_create": {
|
|
41
|
+
"method": "POST",
|
|
42
|
+
"path": "/workspaces/api/internal/users/{user_id}/personal",
|
|
43
|
+
"tag": "Internal",
|
|
44
|
+
"request": null,
|
|
45
|
+
"response": "InternalPersonalWorkspaceResponse"
|
|
46
|
+
},
|
|
47
|
+
"workspaces_api_invitations_accept_create": {
|
|
48
|
+
"method": "POST",
|
|
49
|
+
"path": "/workspaces/api/invitations/accept",
|
|
50
|
+
"tag": "Members",
|
|
51
|
+
"request": "InvitationAcceptRequest",
|
|
52
|
+
"response": "MemberResponse"
|
|
53
|
+
},
|
|
54
|
+
"workspaces_api_members_destroy": {
|
|
55
|
+
"method": "DELETE",
|
|
56
|
+
"path": "/workspaces/api/{workspace_id}/members/{user_id}",
|
|
57
|
+
"tag": "Members",
|
|
58
|
+
"request": null,
|
|
59
|
+
"response": null
|
|
60
|
+
},
|
|
61
|
+
"workspaces_api_members_invite_create": {
|
|
62
|
+
"method": "POST",
|
|
63
|
+
"path": "/workspaces/api/{workspace_id}/members/invite",
|
|
64
|
+
"tag": "Members",
|
|
65
|
+
"request": "MemberInviteRequest",
|
|
66
|
+
"response": "MemberInviteResponse"
|
|
67
|
+
},
|
|
68
|
+
"workspaces_api_members_partial_update": {
|
|
69
|
+
"method": "PATCH",
|
|
70
|
+
"path": "/workspaces/api/{workspace_id}/members/{user_id}",
|
|
71
|
+
"tag": "Members",
|
|
72
|
+
"request": "PatchedMemberUpdateRequest",
|
|
73
|
+
"response": "MemberResponse"
|
|
74
|
+
},
|
|
75
|
+
"workspaces_api_members_retrieve": {
|
|
76
|
+
"method": "GET",
|
|
77
|
+
"path": "/workspaces/api/{workspace_id}/members",
|
|
78
|
+
"tag": "Members",
|
|
79
|
+
"request": null,
|
|
80
|
+
"response": "MemberListResponse"
|
|
81
|
+
},
|
|
82
|
+
"workspaces_api_partial_update": {
|
|
83
|
+
"method": "PATCH",
|
|
84
|
+
"path": "/workspaces/api/{workspace_id}",
|
|
85
|
+
"tag": "Workspaces",
|
|
86
|
+
"request": "PatchedWorkspaceUpdateRequest",
|
|
87
|
+
"response": "WorkspaceResponse"
|
|
88
|
+
},
|
|
89
|
+
"workspaces_api_retrieve": {
|
|
90
|
+
"method": "GET",
|
|
91
|
+
"path": "/workspaces/api/",
|
|
92
|
+
"tag": "Workspaces",
|
|
93
|
+
"request": null,
|
|
94
|
+
"response": "WorkspaceListResponse"
|
|
95
|
+
},
|
|
96
|
+
"workspaces_api_retrieve_2": {
|
|
97
|
+
"method": "GET",
|
|
98
|
+
"path": "/workspaces/api/{workspace_id}",
|
|
99
|
+
"tag": "Workspaces",
|
|
100
|
+
"request": null,
|
|
101
|
+
"response": "WorkspaceResponse"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"hooks": {
|
|
105
|
+
"useAcceptInvitation": {
|
|
106
|
+
"kind": "mutation",
|
|
107
|
+
"operation": "acceptInvitation",
|
|
108
|
+
"invalidates": [
|
|
109
|
+
[
|
|
110
|
+
"workspaces",
|
|
111
|
+
"list"
|
|
112
|
+
]
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"useCreateWorkspace": {
|
|
116
|
+
"kind": "mutation",
|
|
117
|
+
"operation": "createWorkspace",
|
|
118
|
+
"invalidates": [
|
|
119
|
+
[
|
|
120
|
+
"workspaces",
|
|
121
|
+
"list"
|
|
122
|
+
]
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"useDeleteWorkspace": {
|
|
126
|
+
"kind": "mutation",
|
|
127
|
+
"operation": "deleteWorkspace",
|
|
128
|
+
"invalidates": [
|
|
129
|
+
[
|
|
130
|
+
"workspaces",
|
|
131
|
+
"detail",
|
|
132
|
+
"{workspaceId}"
|
|
133
|
+
],
|
|
134
|
+
[
|
|
135
|
+
"workspaces",
|
|
136
|
+
"list"
|
|
137
|
+
]
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"useInviteMembers": {
|
|
141
|
+
"kind": "mutation",
|
|
142
|
+
"operation": "inviteMembers",
|
|
143
|
+
"invalidates": [
|
|
144
|
+
[
|
|
145
|
+
"workspaces",
|
|
146
|
+
"members",
|
|
147
|
+
"{workspaceId}"
|
|
148
|
+
]
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"useMembers": {
|
|
152
|
+
"kind": "query",
|
|
153
|
+
"operation": "listMembers",
|
|
154
|
+
"queryKey": [
|
|
155
|
+
"workspaces",
|
|
156
|
+
"members",
|
|
157
|
+
"{workspaceId}"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"useRemoveMember": {
|
|
161
|
+
"kind": "mutation",
|
|
162
|
+
"operation": "removeMember",
|
|
163
|
+
"invalidates": [
|
|
164
|
+
[
|
|
165
|
+
"workspaces",
|
|
166
|
+
"members",
|
|
167
|
+
"{workspaceId}"
|
|
168
|
+
]
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"useUpdateMemberRole": {
|
|
172
|
+
"kind": "mutation",
|
|
173
|
+
"operation": "updateMemberRole",
|
|
174
|
+
"invalidates": [
|
|
175
|
+
[
|
|
176
|
+
"workspaces",
|
|
177
|
+
"members",
|
|
178
|
+
"{workspaceId}"
|
|
179
|
+
]
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"useUpdateWorkspace": {
|
|
183
|
+
"kind": "mutation",
|
|
184
|
+
"operation": "updateWorkspace",
|
|
185
|
+
"invalidates": [
|
|
186
|
+
[
|
|
187
|
+
"workspaces",
|
|
188
|
+
"detail",
|
|
189
|
+
"{workspaceId}"
|
|
190
|
+
],
|
|
191
|
+
[
|
|
192
|
+
"workspaces",
|
|
193
|
+
"list"
|
|
194
|
+
]
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"useWorkspace": {
|
|
198
|
+
"kind": "query",
|
|
199
|
+
"operation": "getWorkspace",
|
|
200
|
+
"queryKey": [
|
|
201
|
+
"workspaces",
|
|
202
|
+
"detail",
|
|
203
|
+
"{workspaceId}"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"useWorkspaces": {
|
|
207
|
+
"kind": "query",
|
|
208
|
+
"operation": "listWorkspaces",
|
|
209
|
+
"queryKey": [
|
|
210
|
+
"workspaces",
|
|
211
|
+
"list"
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"errors": {
|
|
216
|
+
"error.400.already_workspace_member": {
|
|
217
|
+
"status": 400,
|
|
218
|
+
"params": [],
|
|
219
|
+
"remediation": "fix_input"
|
|
220
|
+
},
|
|
221
|
+
"error.400.bad_request": {
|
|
222
|
+
"status": 400,
|
|
223
|
+
"params": [],
|
|
224
|
+
"remediation": "fix_input"
|
|
225
|
+
},
|
|
226
|
+
"error.400.captcha_invalid": {
|
|
227
|
+
"status": 400,
|
|
228
|
+
"params": [],
|
|
229
|
+
"remediation": "retry"
|
|
230
|
+
},
|
|
231
|
+
"error.400.captcha_required": {
|
|
232
|
+
"status": 400,
|
|
233
|
+
"params": [],
|
|
234
|
+
"remediation": "retry"
|
|
235
|
+
},
|
|
236
|
+
"error.400.expected_list": {
|
|
237
|
+
"status": 400,
|
|
238
|
+
"params": [],
|
|
239
|
+
"remediation": "fix_input"
|
|
240
|
+
},
|
|
241
|
+
"error.400.field.blank": {
|
|
242
|
+
"status": 400,
|
|
243
|
+
"params": [
|
|
244
|
+
"field"
|
|
245
|
+
],
|
|
246
|
+
"remediation": "fix_input"
|
|
247
|
+
},
|
|
248
|
+
"error.400.field.does_not_exist": {
|
|
249
|
+
"status": 400,
|
|
250
|
+
"params": [
|
|
251
|
+
"field"
|
|
252
|
+
],
|
|
253
|
+
"remediation": "fix_input"
|
|
254
|
+
},
|
|
255
|
+
"error.400.field.invalid": {
|
|
256
|
+
"status": 400,
|
|
257
|
+
"params": [
|
|
258
|
+
"field"
|
|
259
|
+
],
|
|
260
|
+
"remediation": "fix_input"
|
|
261
|
+
},
|
|
262
|
+
"error.400.field.invalid_choice": {
|
|
263
|
+
"status": 400,
|
|
264
|
+
"params": [
|
|
265
|
+
"field"
|
|
266
|
+
],
|
|
267
|
+
"remediation": "fix_input"
|
|
268
|
+
},
|
|
269
|
+
"error.400.field.max_length": {
|
|
270
|
+
"status": 400,
|
|
271
|
+
"params": [
|
|
272
|
+
"field",
|
|
273
|
+
"max_length"
|
|
274
|
+
],
|
|
275
|
+
"remediation": "fix_input"
|
|
276
|
+
},
|
|
277
|
+
"error.400.field.max_value": {
|
|
278
|
+
"status": 400,
|
|
279
|
+
"params": [
|
|
280
|
+
"field",
|
|
281
|
+
"max_value"
|
|
282
|
+
],
|
|
283
|
+
"remediation": "fix_input"
|
|
284
|
+
},
|
|
285
|
+
"error.400.field.min_length": {
|
|
286
|
+
"status": 400,
|
|
287
|
+
"params": [
|
|
288
|
+
"field",
|
|
289
|
+
"min_length"
|
|
290
|
+
],
|
|
291
|
+
"remediation": "fix_input"
|
|
292
|
+
},
|
|
293
|
+
"error.400.field.min_value": {
|
|
294
|
+
"status": 400,
|
|
295
|
+
"params": [
|
|
296
|
+
"field",
|
|
297
|
+
"min_value"
|
|
298
|
+
],
|
|
299
|
+
"remediation": "fix_input"
|
|
300
|
+
},
|
|
301
|
+
"error.400.field.null": {
|
|
302
|
+
"status": 400,
|
|
303
|
+
"params": [
|
|
304
|
+
"field"
|
|
305
|
+
],
|
|
306
|
+
"remediation": "fix_input"
|
|
307
|
+
},
|
|
308
|
+
"error.400.field.required": {
|
|
309
|
+
"status": 400,
|
|
310
|
+
"params": [
|
|
311
|
+
"field"
|
|
312
|
+
],
|
|
313
|
+
"remediation": "fix_input"
|
|
314
|
+
},
|
|
315
|
+
"error.400.field.unique": {
|
|
316
|
+
"status": 400,
|
|
317
|
+
"params": [
|
|
318
|
+
"field"
|
|
319
|
+
],
|
|
320
|
+
"remediation": "fix_input"
|
|
321
|
+
},
|
|
322
|
+
"error.400.invalid_ad_id": {
|
|
323
|
+
"status": 400,
|
|
324
|
+
"params": [],
|
|
325
|
+
"remediation": "fix_input"
|
|
326
|
+
},
|
|
327
|
+
"error.400.invalid_role": {
|
|
328
|
+
"status": 400,
|
|
329
|
+
"params": [],
|
|
330
|
+
"remediation": "fix_input"
|
|
331
|
+
},
|
|
332
|
+
"error.400.invitation_already_used": {
|
|
333
|
+
"status": 400,
|
|
334
|
+
"params": [],
|
|
335
|
+
"remediation": "fix_input"
|
|
336
|
+
},
|
|
337
|
+
"error.400.invitation_expired": {
|
|
338
|
+
"status": 400,
|
|
339
|
+
"params": [],
|
|
340
|
+
"remediation": "contact_support"
|
|
341
|
+
},
|
|
342
|
+
"error.400.invitation_revoked": {
|
|
343
|
+
"status": 400,
|
|
344
|
+
"params": [],
|
|
345
|
+
"remediation": "contact_support"
|
|
346
|
+
},
|
|
347
|
+
"error.400.validation_error": {
|
|
348
|
+
"status": 400,
|
|
349
|
+
"params": [],
|
|
350
|
+
"remediation": "fix_input"
|
|
351
|
+
},
|
|
352
|
+
"error.400.verification_failed": {
|
|
353
|
+
"status": 400,
|
|
354
|
+
"params": [],
|
|
355
|
+
"remediation": "verify"
|
|
356
|
+
},
|
|
357
|
+
"error.400.verification_invalid_factor": {
|
|
358
|
+
"status": 400,
|
|
359
|
+
"params": [],
|
|
360
|
+
"remediation": "verify"
|
|
361
|
+
},
|
|
362
|
+
"error.400.workspace_slug_taken": {
|
|
363
|
+
"status": 400,
|
|
364
|
+
"params": [],
|
|
365
|
+
"remediation": "fix_input"
|
|
366
|
+
},
|
|
367
|
+
"error.401.unauthorized": {
|
|
368
|
+
"status": 401,
|
|
369
|
+
"params": [],
|
|
370
|
+
"remediation": "reauthenticate"
|
|
371
|
+
},
|
|
372
|
+
"error.402.payment_required": {
|
|
373
|
+
"status": 402,
|
|
374
|
+
"params": [],
|
|
375
|
+
"remediation": "retry"
|
|
376
|
+
},
|
|
377
|
+
"error.403.forbidden": {
|
|
378
|
+
"status": 403,
|
|
379
|
+
"params": [],
|
|
380
|
+
"remediation": "retry"
|
|
381
|
+
},
|
|
382
|
+
"error.403.forbidden_workspace": {
|
|
383
|
+
"status": 403,
|
|
384
|
+
"params": [],
|
|
385
|
+
"remediation": "contact_support"
|
|
386
|
+
},
|
|
387
|
+
"error.403.last_owner_cannot_be_removed": {
|
|
388
|
+
"status": 403,
|
|
389
|
+
"params": [],
|
|
390
|
+
"remediation": "fix_input"
|
|
391
|
+
},
|
|
392
|
+
"error.403.network_blocked": {
|
|
393
|
+
"status": 403,
|
|
394
|
+
"params": [],
|
|
395
|
+
"remediation": "contact_support"
|
|
396
|
+
},
|
|
397
|
+
"error.403.verification_enrollment_required": {
|
|
398
|
+
"status": 403,
|
|
399
|
+
"params": [],
|
|
400
|
+
"remediation": "verify"
|
|
401
|
+
},
|
|
402
|
+
"error.403.verification_required": {
|
|
403
|
+
"status": 403,
|
|
404
|
+
"params": [],
|
|
405
|
+
"remediation": "verify"
|
|
406
|
+
},
|
|
407
|
+
"error.404.ad_not_found": {
|
|
408
|
+
"status": 404,
|
|
409
|
+
"params": [],
|
|
410
|
+
"remediation": "retry"
|
|
411
|
+
},
|
|
412
|
+
"error.404.invitation_not_found": {
|
|
413
|
+
"status": 404,
|
|
414
|
+
"params": [],
|
|
415
|
+
"remediation": "fix_input"
|
|
416
|
+
},
|
|
417
|
+
"error.404.member_not_found": {
|
|
418
|
+
"status": 404,
|
|
419
|
+
"params": [],
|
|
420
|
+
"remediation": "fix_input"
|
|
421
|
+
},
|
|
422
|
+
"error.404.not_found": {
|
|
423
|
+
"status": 404,
|
|
424
|
+
"params": [],
|
|
425
|
+
"remediation": "retry"
|
|
426
|
+
},
|
|
427
|
+
"error.404.verification_challenge_not_found": {
|
|
428
|
+
"status": 404,
|
|
429
|
+
"params": [],
|
|
430
|
+
"remediation": "verify"
|
|
431
|
+
},
|
|
432
|
+
"error.404.workspace_not_found": {
|
|
433
|
+
"status": 404,
|
|
434
|
+
"params": [],
|
|
435
|
+
"remediation": "fix_input"
|
|
436
|
+
},
|
|
437
|
+
"error.405.method_not_allowed": {
|
|
438
|
+
"status": 405,
|
|
439
|
+
"params": [],
|
|
440
|
+
"remediation": "retry"
|
|
441
|
+
},
|
|
442
|
+
"error.406.not_acceptable": {
|
|
443
|
+
"status": 406,
|
|
444
|
+
"params": [],
|
|
445
|
+
"remediation": "retry"
|
|
446
|
+
},
|
|
447
|
+
"error.408.request_timeout": {
|
|
448
|
+
"status": 408,
|
|
449
|
+
"params": [],
|
|
450
|
+
"remediation": "retry"
|
|
451
|
+
},
|
|
452
|
+
"error.409.conflict": {
|
|
453
|
+
"status": 409,
|
|
454
|
+
"params": [],
|
|
455
|
+
"remediation": "fix_input"
|
|
456
|
+
},
|
|
457
|
+
"error.410.gone": {
|
|
458
|
+
"status": 410,
|
|
459
|
+
"params": [],
|
|
460
|
+
"remediation": "retry"
|
|
461
|
+
},
|
|
462
|
+
"error.413.payload_too_large": {
|
|
463
|
+
"status": 413,
|
|
464
|
+
"params": [],
|
|
465
|
+
"remediation": "retry"
|
|
466
|
+
},
|
|
467
|
+
"error.415.unsupported_media_type": {
|
|
468
|
+
"status": 415,
|
|
469
|
+
"params": [],
|
|
470
|
+
"remediation": "retry"
|
|
471
|
+
},
|
|
472
|
+
"error.422.unprocessable_entity": {
|
|
473
|
+
"status": 422,
|
|
474
|
+
"params": [],
|
|
475
|
+
"remediation": "wait_and_retry"
|
|
476
|
+
},
|
|
477
|
+
"error.423.locked": {
|
|
478
|
+
"status": 423,
|
|
479
|
+
"params": [],
|
|
480
|
+
"remediation": "wait_and_retry"
|
|
481
|
+
},
|
|
482
|
+
"error.423.verification_locked": {
|
|
483
|
+
"status": 423,
|
|
484
|
+
"params": [],
|
|
485
|
+
"remediation": "wait_and_retry"
|
|
486
|
+
},
|
|
487
|
+
"error.429.rate_limit": {
|
|
488
|
+
"status": 429,
|
|
489
|
+
"params": [
|
|
490
|
+
"retry_after_minutes"
|
|
491
|
+
],
|
|
492
|
+
"remediation": "wait_and_retry"
|
|
493
|
+
},
|
|
494
|
+
"error.429.too_many_requests": {
|
|
495
|
+
"status": 429,
|
|
496
|
+
"params": [],
|
|
497
|
+
"remediation": "wait_and_retry"
|
|
498
|
+
},
|
|
499
|
+
"error.500.internal": {
|
|
500
|
+
"status": 500,
|
|
501
|
+
"params": [],
|
|
502
|
+
"remediation": "contact_support"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"events": {
|
|
506
|
+
"defined": [],
|
|
507
|
+
"flows": []
|
|
508
|
+
},
|
|
509
|
+
"demos": [
|
|
510
|
+
{
|
|
511
|
+
"id": "workspaces.accept",
|
|
512
|
+
"title": "Accept invitation",
|
|
513
|
+
"description": "The headless AcceptInvitation wraps joining a workspace by its email-link token, exposing accept() plus accepting / accepted / error state (a dead token surfaces a localizable StapelApiError). Bring your own UI — the component is renderless.",
|
|
514
|
+
"component": "AcceptInvitation",
|
|
515
|
+
"tokens": [
|
|
516
|
+
"card-bg",
|
|
517
|
+
"card-border"
|
|
518
|
+
],
|
|
519
|
+
"variants": [
|
|
520
|
+
"default"
|
|
521
|
+
],
|
|
522
|
+
"source": "demo/AcceptInvitation.demo.tsx"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"id": "workspaces.list",
|
|
526
|
+
"title": "Workspace list",
|
|
527
|
+
"description": "The headless WorkspaceList wraps the read of the caller's workspaces plus an owner-seeded create, exposing workspaces / loading / creating / error state. Bring your own UI — the component is renderless.",
|
|
528
|
+
"component": "WorkspaceList",
|
|
529
|
+
"tokens": [
|
|
530
|
+
"card-bg",
|
|
531
|
+
"card-border"
|
|
532
|
+
],
|
|
533
|
+
"variants": [
|
|
534
|
+
"default"
|
|
535
|
+
],
|
|
536
|
+
"source": "demo/WorkspaceList.demo.tsx"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"id": "workspaces.members",
|
|
540
|
+
"title": "Members",
|
|
541
|
+
"description": "The headless Members wraps a workspace's roster plus invite / role-change / removal controls, exposing members / loading / per-action pending / error state. Bring your own UI — the component is renderless.",
|
|
542
|
+
"component": "Members",
|
|
543
|
+
"tokens": [
|
|
544
|
+
"card-bg",
|
|
545
|
+
"card-border"
|
|
546
|
+
],
|
|
547
|
+
"variants": [
|
|
548
|
+
"default"
|
|
549
|
+
],
|
|
550
|
+
"source": "demo/Members.demo.tsx"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"id": "workspaces.provider",
|
|
554
|
+
"title": "Workspaces provider",
|
|
555
|
+
"description": "The headless workspaces root wires the runtime, i18n engine, and query client into React context. Replace with per-flow demos as you add headless components.",
|
|
556
|
+
"component": "WorkspacesProvider",
|
|
557
|
+
"tokens": [
|
|
558
|
+
"card-bg"
|
|
559
|
+
],
|
|
560
|
+
"variants": [
|
|
561
|
+
"default"
|
|
562
|
+
],
|
|
563
|
+
"source": "demo/Workspaces.demo.tsx"
|
|
564
|
+
}
|
|
565
|
+
],
|
|
566
|
+
"i18nKeys": [
|
|
567
|
+
"error.400.already_workspace_member",
|
|
568
|
+
"error.400.bad_request",
|
|
569
|
+
"error.400.captcha_invalid",
|
|
570
|
+
"error.400.captcha_required",
|
|
571
|
+
"error.400.expected_list",
|
|
572
|
+
"error.400.field.blank",
|
|
573
|
+
"error.400.field.does_not_exist",
|
|
574
|
+
"error.400.field.invalid",
|
|
575
|
+
"error.400.field.invalid_choice",
|
|
576
|
+
"error.400.field.max_length",
|
|
577
|
+
"error.400.field.max_value",
|
|
578
|
+
"error.400.field.min_length",
|
|
579
|
+
"error.400.field.min_value",
|
|
580
|
+
"error.400.field.null",
|
|
581
|
+
"error.400.field.required",
|
|
582
|
+
"error.400.field.unique",
|
|
583
|
+
"error.400.invalid_ad_id",
|
|
584
|
+
"error.400.invalid_role",
|
|
585
|
+
"error.400.invitation_already_used",
|
|
586
|
+
"error.400.invitation_expired",
|
|
587
|
+
"error.400.invitation_revoked",
|
|
588
|
+
"error.400.validation_error",
|
|
589
|
+
"error.400.verification_failed",
|
|
590
|
+
"error.400.verification_invalid_factor",
|
|
591
|
+
"error.400.workspace_slug_taken",
|
|
592
|
+
"error.401.unauthorized",
|
|
593
|
+
"error.402.payment_required",
|
|
594
|
+
"error.403.forbidden",
|
|
595
|
+
"error.403.forbidden_workspace",
|
|
596
|
+
"error.403.last_owner_cannot_be_removed",
|
|
597
|
+
"error.403.network_blocked",
|
|
598
|
+
"error.403.verification_enrollment_required",
|
|
599
|
+
"error.403.verification_required",
|
|
600
|
+
"error.404.ad_not_found",
|
|
601
|
+
"error.404.invitation_not_found",
|
|
602
|
+
"error.404.member_not_found",
|
|
603
|
+
"error.404.not_found",
|
|
604
|
+
"error.404.verification_challenge_not_found",
|
|
605
|
+
"error.404.workspace_not_found",
|
|
606
|
+
"error.405.method_not_allowed",
|
|
607
|
+
"error.406.not_acceptable",
|
|
608
|
+
"error.408.request_timeout",
|
|
609
|
+
"error.409.conflict",
|
|
610
|
+
"error.410.gone",
|
|
611
|
+
"error.413.payload_too_large",
|
|
612
|
+
"error.415.unsupported_media_type",
|
|
613
|
+
"error.422.unprocessable_entity",
|
|
614
|
+
"error.423.locked",
|
|
615
|
+
"error.423.verification_locked",
|
|
616
|
+
"error.429.rate_limit",
|
|
617
|
+
"error.429.too_many_requests",
|
|
618
|
+
"error.500.internal",
|
|
619
|
+
"workspaces.accept.accept",
|
|
620
|
+
"workspaces.accept.accepted",
|
|
621
|
+
"workspaces.accept.accepting",
|
|
622
|
+
"workspaces.error.unknown",
|
|
623
|
+
"workspaces.list.create",
|
|
624
|
+
"workspaces.list.creating",
|
|
625
|
+
"workspaces.list.empty",
|
|
626
|
+
"workspaces.list.loading",
|
|
627
|
+
"workspaces.members.invite",
|
|
628
|
+
"workspaces.members.inviting",
|
|
629
|
+
"workspaces.members.loading",
|
|
630
|
+
"workspaces.members.remove",
|
|
631
|
+
"workspaces.members.update_role"
|
|
632
|
+
],
|
|
633
|
+
"exports": {
|
|
634
|
+
"runtime": [
|
|
635
|
+
"AcceptInvitation",
|
|
636
|
+
"Members",
|
|
637
|
+
"WORKSPACES_ERRORS",
|
|
638
|
+
"WORKSPACES_ERROR_CODES",
|
|
639
|
+
"WORKSPACES_FLOWS",
|
|
640
|
+
"WORKSPACES_I18N_KEYS",
|
|
641
|
+
"WorkspaceList",
|
|
642
|
+
"WorkspacesProvider",
|
|
643
|
+
"WorkspacesRuntimeContext",
|
|
644
|
+
"createFlowMachine",
|
|
645
|
+
"createWorkspacesApi",
|
|
646
|
+
"createWorkspacesRuntime",
|
|
647
|
+
"explainWorkspacesError",
|
|
648
|
+
"flowEndpoints",
|
|
649
|
+
"isErrorCode",
|
|
650
|
+
"registerWorkspacesI18n",
|
|
651
|
+
"toFlowError",
|
|
652
|
+
"useAcceptInvitation",
|
|
653
|
+
"useCreateWorkspace",
|
|
654
|
+
"useDeleteWorkspace",
|
|
655
|
+
"useFlow",
|
|
656
|
+
"useInviteMembers",
|
|
657
|
+
"useMembers",
|
|
658
|
+
"useRemoveMember",
|
|
659
|
+
"useUpdateMemberRole",
|
|
660
|
+
"useUpdateWorkspace",
|
|
661
|
+
"useWorkspace",
|
|
662
|
+
"useWorkspaces",
|
|
663
|
+
"useWorkspacesAnalytics",
|
|
664
|
+
"useWorkspacesApi",
|
|
665
|
+
"useWorkspacesRuntime",
|
|
666
|
+
"workspacesErrorBundleEn",
|
|
667
|
+
"workspacesI18nBundleEn",
|
|
668
|
+
"workspacesQueryKeys"
|
|
669
|
+
],
|
|
670
|
+
"types": [
|
|
671
|
+
"AcceptInvitationBag",
|
|
672
|
+
"CreateWorkspacesRuntimeOptions",
|
|
673
|
+
"FlowEndpoint",
|
|
674
|
+
"FlowError",
|
|
675
|
+
"FlowMachine",
|
|
676
|
+
"FlowMachineOptions",
|
|
677
|
+
"FlowStateBase",
|
|
678
|
+
"Invitation",
|
|
679
|
+
"InvitationAccept",
|
|
680
|
+
"MemberData",
|
|
681
|
+
"MemberInvite",
|
|
682
|
+
"MemberInviteResult",
|
|
683
|
+
"MemberListData",
|
|
684
|
+
"MemberRoleChange",
|
|
685
|
+
"MemberRoleUpdate",
|
|
686
|
+
"MembersBag",
|
|
687
|
+
"Remediation",
|
|
688
|
+
"Schemas",
|
|
689
|
+
"WorkspaceCreate",
|
|
690
|
+
"WorkspaceData",
|
|
691
|
+
"WorkspaceKind",
|
|
692
|
+
"WorkspaceListBag",
|
|
693
|
+
"WorkspaceListData",
|
|
694
|
+
"WorkspaceRole",
|
|
695
|
+
"WorkspaceUpdate",
|
|
696
|
+
"WorkspacesApi",
|
|
697
|
+
"WorkspacesErrorCode",
|
|
698
|
+
"WorkspacesErrorSpec",
|
|
699
|
+
"WorkspacesFlowId",
|
|
700
|
+
"WorkspacesFlowSpec",
|
|
701
|
+
"WorkspacesI18nKey",
|
|
702
|
+
"WorkspacesRuntime"
|
|
703
|
+
]
|
|
704
|
+
}
|
|
705
|
+
}
|