@stapel/workspaces-react 0.7.0 → 0.8.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 +42 -0
- package/dist/api/generated/schema.d.ts +390 -3
- package/dist/api/generated/schema.d.ts.map +1 -1
- package/dist/api/types.d.ts +84 -2
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/workspacesApi.d.ts +33 -1
- package/dist/api/workspacesApi.d.ts.map +1 -1
- package/dist/api/workspacesApi.js +19 -0
- package/dist/api/workspacesApi.js.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/model/mutations.d.ts +85 -1
- package/dist/model/mutations.d.ts.map +1 -1
- package/dist/model/mutations.js +151 -0
- package/dist/model/mutations.js.map +1 -1
- package/dist/model/queries.d.ts +72 -2
- package/dist/model/queries.d.ts.map +1 -1
- package/dist/model/queries.js +90 -1
- package/dist/model/queries.js.map +1 -1
- package/dist/model/queryKeys.d.ts +10 -1
- package/dist/model/queryKeys.d.ts.map +1 -1
- package/dist/model/queryKeys.js +19 -0
- package/dist/model/queryKeys.js.map +1 -1
- package/dist/model/stepUp.d.ts +25 -0
- package/dist/model/stepUp.d.ts.map +1 -0
- package/dist/model/stepUp.js +79 -0
- package/dist/model/stepUp.js.map +1 -0
- package/llms.txt +11 -2
- package/manifest.json +123 -2
- package/package.json +4 -4
- package/src/analytics/generated/events.json +1 -1
- package/src/api/generated/schema.ts +390 -3
- package/src/api/types.ts +93 -2
- package/src/api/workspacesApi.ts +87 -0
- package/src/index.ts +29 -2
- package/src/model/mutations.ts +192 -0
- package/src/model/queries.ts +132 -2
- package/src/model/queryKeys.ts +35 -1
- package/src/model/stepUp.ts +96 -0
package/manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$generated": "by scripts/gen-manifest.mjs — do not edit; drift-gated (pnpm gen:manifest:check)",
|
|
3
3
|
"package": "@stapel/workspaces-react",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"backend": {
|
|
6
6
|
"module": "stapel-workspaces",
|
|
7
|
-
"contract": ">=0.
|
|
7
|
+
"contract": ">=0.14 <0.15"
|
|
8
8
|
},
|
|
9
9
|
"layers": [
|
|
10
10
|
"api",
|
|
@@ -67,6 +67,20 @@
|
|
|
67
67
|
"request": null,
|
|
68
68
|
"response": null
|
|
69
69
|
},
|
|
70
|
+
"workspaces_api_v1_invitations_list": {
|
|
71
|
+
"method": "GET",
|
|
72
|
+
"path": "/workspaces/api/v1/{workspace_id}/invitations",
|
|
73
|
+
"tag": "Members",
|
|
74
|
+
"request": null,
|
|
75
|
+
"response": "PaginatedInvitationResponseList"
|
|
76
|
+
},
|
|
77
|
+
"workspaces_api_v1_invitations_resend_create": {
|
|
78
|
+
"method": "POST",
|
|
79
|
+
"path": "/workspaces/api/v1/{workspace_id}/invitations/{invitation_id}/resend",
|
|
80
|
+
"tag": "Members",
|
|
81
|
+
"request": null,
|
|
82
|
+
"response": "InvitationResponse"
|
|
83
|
+
},
|
|
70
84
|
"workspaces_api_v1_invitations_retrieve": {
|
|
71
85
|
"method": "GET",
|
|
72
86
|
"path": "/workspaces/api/v1/invitations/{token}",
|
|
@@ -74,6 +88,13 @@
|
|
|
74
88
|
"request": null,
|
|
75
89
|
"response": "InvitationPreviewResponse"
|
|
76
90
|
},
|
|
91
|
+
"workspaces_api_v1_invitations_revoke_create": {
|
|
92
|
+
"method": "POST",
|
|
93
|
+
"path": "/workspaces/api/v1/{workspace_id}/invitations/{invitation_id}/revoke",
|
|
94
|
+
"tag": "Members",
|
|
95
|
+
"request": null,
|
|
96
|
+
"response": "InvitationResponse"
|
|
97
|
+
},
|
|
77
98
|
"workspaces_api_v1_members_destroy": {
|
|
78
99
|
"method": "DELETE",
|
|
79
100
|
"path": "/workspaces/api/v1/{workspace_id}/members/{user_id}",
|
|
@@ -102,6 +123,13 @@
|
|
|
102
123
|
"request": "PatchedMemberUpdateRequest",
|
|
103
124
|
"response": "MemberResponse"
|
|
104
125
|
},
|
|
126
|
+
"workspaces_api_v1_members_password_reset_create": {
|
|
127
|
+
"method": "POST",
|
|
128
|
+
"path": "/workspaces/api/v1/{workspace_id}/members/{user_id}/password/reset",
|
|
129
|
+
"tag": "Members",
|
|
130
|
+
"request": "MemberPasswordResetRequest",
|
|
131
|
+
"response": "MemberPasswordResetResponse"
|
|
132
|
+
},
|
|
105
133
|
"workspaces_api_v1_members_provision_create": {
|
|
106
134
|
"method": "POST",
|
|
107
135
|
"path": "/workspaces/api/v1/{workspace_id}/members/provision",
|
|
@@ -203,6 +231,16 @@
|
|
|
203
231
|
"{token}"
|
|
204
232
|
]
|
|
205
233
|
},
|
|
234
|
+
"useInvitations": {
|
|
235
|
+
"kind": "query",
|
|
236
|
+
"operation": "listInvitations",
|
|
237
|
+
"queryKey": [
|
|
238
|
+
"workspaces",
|
|
239
|
+
"invitations",
|
|
240
|
+
"{workspaceId}",
|
|
241
|
+
"{params}"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
206
244
|
"useInviteMembers": {
|
|
207
245
|
"kind": "mutation",
|
|
208
246
|
"operation": "inviteMembers",
|
|
@@ -235,6 +273,44 @@
|
|
|
235
273
|
]
|
|
236
274
|
]
|
|
237
275
|
},
|
|
276
|
+
"useResendInvitation": {
|
|
277
|
+
"kind": "mutation",
|
|
278
|
+
"operation": "resendInvitation",
|
|
279
|
+
"invalidates": [
|
|
280
|
+
[
|
|
281
|
+
"workspaces",
|
|
282
|
+
"invitations",
|
|
283
|
+
"{workspaceId}"
|
|
284
|
+
]
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"useResetMemberPassword": {
|
|
288
|
+
"kind": "mutation",
|
|
289
|
+
"operation": "resetMemberPassword",
|
|
290
|
+
"invalidates": [
|
|
291
|
+
[
|
|
292
|
+
"workspaces",
|
|
293
|
+
"members",
|
|
294
|
+
"{workspaceId}"
|
|
295
|
+
]
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"useRevokeInvitation": {
|
|
299
|
+
"kind": "mutation",
|
|
300
|
+
"operation": "revokeInvitation",
|
|
301
|
+
"invalidates": [
|
|
302
|
+
[
|
|
303
|
+
"workspaces",
|
|
304
|
+
"invitations",
|
|
305
|
+
"{workspaceId}"
|
|
306
|
+
],
|
|
307
|
+
[
|
|
308
|
+
"workspaces",
|
|
309
|
+
"members",
|
|
310
|
+
"{workspaceId}"
|
|
311
|
+
]
|
|
312
|
+
]
|
|
313
|
+
},
|
|
238
314
|
"useRoles": {
|
|
239
315
|
"kind": "query",
|
|
240
316
|
"operation": "listRoles",
|
|
@@ -254,6 +330,29 @@
|
|
|
254
330
|
]
|
|
255
331
|
]
|
|
256
332
|
},
|
|
333
|
+
"useUpdateSecuritySettings": {
|
|
334
|
+
"kind": "mutation",
|
|
335
|
+
"operations": [
|
|
336
|
+
"getWorkspace",
|
|
337
|
+
"updateWorkspace"
|
|
338
|
+
],
|
|
339
|
+
"invalidates": [
|
|
340
|
+
[
|
|
341
|
+
"workspaces",
|
|
342
|
+
"detail",
|
|
343
|
+
"{workspaceId}"
|
|
344
|
+
],
|
|
345
|
+
[
|
|
346
|
+
"workspaces",
|
|
347
|
+
"list"
|
|
348
|
+
],
|
|
349
|
+
[
|
|
350
|
+
"workspaces",
|
|
351
|
+
"members",
|
|
352
|
+
"{workspaceId}"
|
|
353
|
+
]
|
|
354
|
+
]
|
|
355
|
+
},
|
|
257
356
|
"useUpdateWorkspace": {
|
|
258
357
|
"kind": "mutation",
|
|
259
358
|
"operation": "updateWorkspace",
|
|
@@ -853,10 +952,12 @@
|
|
|
853
952
|
"exports": {
|
|
854
953
|
"runtime": [
|
|
855
954
|
"AcceptInvitation",
|
|
955
|
+
"BUILTIN_CAPABILITY_LEVELS",
|
|
856
956
|
"Can",
|
|
857
957
|
"InviteAcceptFlow",
|
|
858
958
|
"Members",
|
|
859
959
|
"RoleSelect",
|
|
960
|
+
"SENSITIVE_SCOPE",
|
|
860
961
|
"WORKSPACES_ERRORS",
|
|
861
962
|
"WORKSPACES_ERROR_CODES",
|
|
862
963
|
"WORKSPACES_FLOWS",
|
|
@@ -864,6 +965,7 @@
|
|
|
864
965
|
"WorkspaceList",
|
|
865
966
|
"WorkspacesProvider",
|
|
866
967
|
"WorkspacesRuntimeContext",
|
|
968
|
+
"capabilityLevel",
|
|
867
969
|
"capabilityMatches",
|
|
868
970
|
"createFlowMachine",
|
|
869
971
|
"createInviteAcceptFlow",
|
|
@@ -875,21 +977,29 @@
|
|
|
875
977
|
"hasCapability",
|
|
876
978
|
"isErrorCode",
|
|
877
979
|
"maskEmail",
|
|
980
|
+
"readVerificationEnrollment",
|
|
878
981
|
"registerWorkspacesI18n",
|
|
879
982
|
"toFlowError",
|
|
880
983
|
"useAcceptInvitation",
|
|
881
984
|
"useCapabilities",
|
|
985
|
+
"useCapabilityGate",
|
|
882
986
|
"useClaimInvitation",
|
|
883
987
|
"useCreateWorkspace",
|
|
884
988
|
"useDeclineInvitation",
|
|
885
989
|
"useDeleteWorkspace",
|
|
886
990
|
"useFlow",
|
|
991
|
+
"useInfiniteInvitations",
|
|
887
992
|
"useInvitationPreview",
|
|
993
|
+
"useInvitations",
|
|
888
994
|
"useInviteMembers",
|
|
889
995
|
"useMembers",
|
|
890
996
|
"useRemoveMember",
|
|
997
|
+
"useResendInvitation",
|
|
998
|
+
"useResetMemberPassword",
|
|
999
|
+
"useRevokeInvitation",
|
|
891
1000
|
"useRoles",
|
|
892
1001
|
"useUpdateMemberRole",
|
|
1002
|
+
"useUpdateSecuritySettings",
|
|
893
1003
|
"useUpdateWorkspace",
|
|
894
1004
|
"useWorkspace",
|
|
895
1005
|
"useWorkspaces",
|
|
@@ -904,6 +1014,8 @@
|
|
|
904
1014
|
"AcceptInvitationBag",
|
|
905
1015
|
"CanBag",
|
|
906
1016
|
"CapabilitiesResult",
|
|
1017
|
+
"CapabilityGate",
|
|
1018
|
+
"CapabilityLevel",
|
|
907
1019
|
"CreateWorkspacesRuntimeOptions",
|
|
908
1020
|
"FlowEndpoint",
|
|
909
1021
|
"FlowError",
|
|
@@ -913,7 +1025,10 @@
|
|
|
913
1025
|
"Invitation",
|
|
914
1026
|
"InvitationAccept",
|
|
915
1027
|
"InvitationClaim",
|
|
1028
|
+
"InvitationListData",
|
|
916
1029
|
"InvitationPreview",
|
|
1030
|
+
"InvitationStatusFilter",
|
|
1031
|
+
"InvitationsParams",
|
|
917
1032
|
"InviteAcceptFlowBag",
|
|
918
1033
|
"InviteAcceptFlowController",
|
|
919
1034
|
"InviteAcceptFlowDeps",
|
|
@@ -922,21 +1037,27 @@
|
|
|
922
1037
|
"MemberInvite",
|
|
923
1038
|
"MemberInviteResult",
|
|
924
1039
|
"MemberListData",
|
|
1040
|
+
"MemberPasswordReset",
|
|
1041
|
+
"MemberPasswordResetResult",
|
|
1042
|
+
"MemberPasswordResetVars",
|
|
925
1043
|
"MemberRoleChange",
|
|
926
1044
|
"MemberRoleUpdate",
|
|
927
1045
|
"MembersBag",
|
|
928
1046
|
"MembersParams",
|
|
1047
|
+
"ProvisionedUserPolicy",
|
|
929
1048
|
"Remediation",
|
|
930
1049
|
"RoleInfo",
|
|
931
1050
|
"RoleList",
|
|
932
1051
|
"RoleSelectBag",
|
|
933
1052
|
"Schemas",
|
|
1053
|
+
"VerificationEnrollment",
|
|
934
1054
|
"WorkspaceCreate",
|
|
935
1055
|
"WorkspaceData",
|
|
936
1056
|
"WorkspaceKind",
|
|
937
1057
|
"WorkspaceListBag",
|
|
938
1058
|
"WorkspaceListData",
|
|
939
1059
|
"WorkspaceRole",
|
|
1060
|
+
"WorkspaceSecuritySettings",
|
|
940
1061
|
"WorkspaceUpdate",
|
|
941
1062
|
"WorkspacesApi",
|
|
942
1063
|
"WorkspacesErrorCode",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stapel/workspaces-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Headless React flow pair for stapel-workspaces: typed API client, TanStack Query hooks, flow machines, headless components, and i18n keys. Zero visual opinion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"size-limit": "^11.2.0",
|
|
83
83
|
"typescript": "^5.8.3",
|
|
84
84
|
"vitest": "^3.2.4",
|
|
85
|
-
"@stapel/
|
|
86
|
-
"@stapel/
|
|
87
|
-
"@stapel/
|
|
85
|
+
"@stapel/showcase": "^0.2.0",
|
|
86
|
+
"@stapel/core": "^0.9.0",
|
|
87
|
+
"@stapel/tokens": "^0.5.0"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=22"
|