@workos-inc/widgets 1.8.0 → 1.8.2

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 (90) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/api/endpoint.cjs +4 -1
  3. package/dist/cjs/api/endpoint.cjs.map +1 -1
  4. package/dist/cjs/api/endpoint.d.cts +17 -9
  5. package/dist/cjs/experimental/api/fetch.cjs +1083 -0
  6. package/dist/cjs/experimental/api/fetch.cjs.map +1 -0
  7. package/dist/cjs/experimental/api/fetch.d.cts +1871 -0
  8. package/dist/cjs/experimental/api/react-query.cjs +1863 -0
  9. package/dist/cjs/experimental/api/react-query.cjs.map +1 -0
  10. package/dist/cjs/experimental/api/react-query.d.cts +2685 -0
  11. package/dist/cjs/experimental/api/swr.cjs +1972 -0
  12. package/dist/cjs/experimental/api/swr.cjs.map +1 -0
  13. package/dist/cjs/experimental/api/swr.d.cts +2585 -0
  14. package/dist/cjs/lib/add-mfa-dialog.cjs +2 -2
  15. package/dist/cjs/lib/add-mfa-dialog.cjs.map +1 -1
  16. package/dist/cjs/lib/admin-portal-domain-verification.cjs.map +1 -1
  17. package/dist/cjs/lib/api/user.d.cts +2 -2
  18. package/dist/cjs/lib/api-keys/api-keys-search.cjs +2 -2
  19. package/dist/cjs/lib/api-keys/api-keys-search.cjs.map +1 -1
  20. package/dist/cjs/lib/api-keys/create-api-key.cjs +8 -8
  21. package/dist/cjs/lib/api-keys/create-api-key.cjs.map +1 -1
  22. package/dist/cjs/lib/change-password-dialog.cjs +18 -18
  23. package/dist/cjs/lib/change-password-dialog.cjs.map +1 -1
  24. package/dist/cjs/lib/copy-button.cjs.map +1 -1
  25. package/dist/cjs/lib/edit-user-profile-dialog.cjs +8 -8
  26. package/dist/cjs/lib/edit-user-profile-dialog.cjs.map +1 -1
  27. package/dist/cjs/lib/elements/utils.cjs +3 -4
  28. package/dist/cjs/lib/elements/utils.cjs.map +1 -1
  29. package/dist/cjs/lib/elements.cjs.map +1 -1
  30. package/dist/cjs/lib/elevated-access.cjs +2 -2
  31. package/dist/cjs/lib/elevated-access.cjs.map +1 -1
  32. package/dist/cjs/lib/marker.cjs.map +1 -1
  33. package/dist/cjs/lib/organization-switcher.cjs.map +1 -1
  34. package/dist/cjs/lib/otp-input.cjs +6 -7
  35. package/dist/cjs/lib/otp-input.cjs.map +1 -1
  36. package/dist/cjs/lib/provider-icon.cjs.map +1 -1
  37. package/dist/cjs/lib/set-password-dialog.cjs +12 -12
  38. package/dist/cjs/lib/set-password-dialog.cjs.map +1 -1
  39. package/dist/cjs/lib/status.cjs.map +1 -1
  40. package/dist/cjs/lib/users-search.cjs +2 -2
  41. package/dist/cjs/lib/users-search.cjs.map +1 -1
  42. package/dist/cjs/organization-switcher.client.cjs.map +1 -1
  43. package/dist/esm/api/endpoint.d.ts +17 -9
  44. package/dist/esm/api/endpoint.js +4 -1
  45. package/dist/esm/api/endpoint.js.map +1 -1
  46. package/dist/esm/experimental/api/fetch.d.ts +1871 -0
  47. package/dist/esm/experimental/api/fetch.js +954 -0
  48. package/dist/esm/experimental/api/fetch.js.map +1 -0
  49. package/dist/esm/experimental/api/react-query.d.ts +2685 -0
  50. package/dist/esm/experimental/api/react-query.js +1641 -0
  51. package/dist/esm/experimental/api/react-query.js.map +1 -0
  52. package/dist/esm/experimental/api/swr.d.ts +2585 -0
  53. package/dist/esm/experimental/api/swr.js +1731 -0
  54. package/dist/esm/experimental/api/swr.js.map +1 -0
  55. package/dist/esm/lib/add-mfa-dialog.js +1 -1
  56. package/dist/esm/lib/add-mfa-dialog.js.map +1 -1
  57. package/dist/esm/lib/admin-portal-domain-verification.js.map +1 -1
  58. package/dist/esm/lib/api/user.d.ts +2 -2
  59. package/dist/esm/lib/api-keys/api-keys-search.js +1 -1
  60. package/dist/esm/lib/api-keys/api-keys-search.js.map +1 -1
  61. package/dist/esm/lib/api-keys/create-api-key.js +1 -1
  62. package/dist/esm/lib/api-keys/create-api-key.js.map +1 -1
  63. package/dist/esm/lib/change-password-dialog.js +1 -1
  64. package/dist/esm/lib/change-password-dialog.js.map +1 -1
  65. package/dist/esm/lib/copy-button.js.map +1 -1
  66. package/dist/esm/lib/edit-user-profile-dialog.js +1 -1
  67. package/dist/esm/lib/edit-user-profile-dialog.js.map +1 -1
  68. package/dist/esm/lib/elements/utils.js +1 -2
  69. package/dist/esm/lib/elements/utils.js.map +1 -1
  70. package/dist/esm/lib/elements.js.map +1 -1
  71. package/dist/esm/lib/elevated-access.js +1 -1
  72. package/dist/esm/lib/elevated-access.js.map +1 -1
  73. package/dist/esm/lib/marker.js.map +1 -1
  74. package/dist/esm/lib/organization-switcher.js.map +1 -1
  75. package/dist/esm/lib/otp-input.js +6 -3
  76. package/dist/esm/lib/otp-input.js.map +1 -1
  77. package/dist/esm/lib/provider-icon.js.map +1 -1
  78. package/dist/esm/lib/set-password-dialog.js +1 -1
  79. package/dist/esm/lib/set-password-dialog.js.map +1 -1
  80. package/dist/esm/lib/status.js.map +1 -1
  81. package/dist/esm/lib/users-search.js +1 -1
  82. package/dist/esm/lib/users-search.js.map +1 -1
  83. package/dist/esm/organization-switcher.client.js.map +1 -1
  84. package/package.json +33 -23
  85. package/dist/cjs/lib/use-layout-effect.cjs +0 -31
  86. package/dist/cjs/lib/use-layout-effect.cjs.map +0 -1
  87. package/dist/cjs/lib/use-layout-effect.d.cts +0 -5
  88. package/dist/esm/lib/use-layout-effect.d.ts +0 -5
  89. package/dist/esm/lib/use-layout-effect.js +0 -7
  90. package/dist/esm/lib/use-layout-effect.js.map +0 -1
@@ -0,0 +1,1972 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var swr_exports = {};
30
+ __export(swr_exports, {
31
+ AuthenticationInformationResponseDataVerificationMethodsMfaProvider: () => AuthenticationInformationResponseDataVerificationMethodsMfaProvider,
32
+ AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider: () => AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider,
33
+ AuthenticationInformationResponseDataVerificationMethodsPasswordProvider: () => AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
34
+ CreateTotpFactorResponseAuthenticationChallengeAllOfObject: () => CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
35
+ CreateTotpFactorResponseAuthenticationFactorAllOfObject: () => CreateTotpFactorResponseAuthenticationFactorAllOfObject,
36
+ CreateTotpFactorResponseAuthenticationFactorAllOfType: () => CreateTotpFactorResponseAuthenticationFactorAllOfType,
37
+ DataInstallationObject: () => DataInstallationObject,
38
+ DataInstallationState: () => DataInstallationState,
39
+ DataIntegrationCredentialsType: () => DataIntegrationCredentialsType,
40
+ DataIntegrationIntegrationType: () => DataIntegrationIntegrationType,
41
+ DataIntegrationObject: () => DataIntegrationObject,
42
+ DataIntegrationOwnership: () => DataIntegrationOwnership,
43
+ DomainVerificationNameServer: () => DomainVerificationNameServer,
44
+ GenerateAdminPortalLinkIntent: () => GenerateAdminPortalLinkIntent,
45
+ MemberActionsItem: () => MemberActionsItem,
46
+ MemberStatus: () => MemberStatus,
47
+ OidcSessionState: () => OidcSessionState,
48
+ OrganizationDomainState: () => OrganizationDomainState,
49
+ SamlSessionState: () => SamlSessionState,
50
+ SendVerificationResponseType: () => SendVerificationResponseType,
51
+ SettingsResponseObject: () => SettingsResponseObject,
52
+ SsoConnectionAnyOfEightAllOfProviderTag: () => SsoConnectionAnyOfEightAllOfProviderTag,
53
+ SsoConnectionAnyOfEightAllOfState: () => SsoConnectionAnyOfEightAllOfState,
54
+ SsoConnectionAnyOfEightAllOfType: () => SsoConnectionAnyOfEightAllOfType,
55
+ SsoConnectionAnyOfProviderTag: () => SsoConnectionAnyOfProviderTag,
56
+ SsoConnectionAnyOfState: () => SsoConnectionAnyOfState,
57
+ SsoConnectionAnyOfType: () => SsoConnectionAnyOfType,
58
+ SsoConnectionSessionJSONState: () => SsoConnectionSessionJSONState,
59
+ authenticationInformation: () => authenticationInformation,
60
+ createOrganizationApiKey: () => createOrganizationApiKey,
61
+ createPassword: () => createPassword,
62
+ createTotpFactor: () => createTotpFactor,
63
+ deleteDataInstallation: () => deleteDataInstallation,
64
+ deleteOrganizationApiKey: () => deleteOrganizationApiKey,
65
+ deleteOrganizationDomain: () => deleteOrganizationDomain,
66
+ deletePasskey: () => deletePasskey,
67
+ deleteTotpFactors: () => deleteTotpFactors,
68
+ generateAdminPortalLink: () => generateAdminPortalLink,
69
+ getAuthenticationInformationKey: () => getAuthenticationInformationKey,
70
+ getAuthenticationInformationUrl: () => getAuthenticationInformationUrl,
71
+ getCreateOrganizationApiKeyMutationFetcher: () => getCreateOrganizationApiKeyMutationFetcher,
72
+ getCreateOrganizationApiKeyMutationKey: () => getCreateOrganizationApiKeyMutationKey,
73
+ getCreateOrganizationApiKeyUrl: () => getCreateOrganizationApiKeyUrl,
74
+ getCreatePasswordMutationFetcher: () => getCreatePasswordMutationFetcher,
75
+ getCreatePasswordMutationKey: () => getCreatePasswordMutationKey,
76
+ getCreatePasswordUrl: () => getCreatePasswordUrl,
77
+ getCreateTotpFactorMutationFetcher: () => getCreateTotpFactorMutationFetcher,
78
+ getCreateTotpFactorMutationKey: () => getCreateTotpFactorMutationKey,
79
+ getCreateTotpFactorUrl: () => getCreateTotpFactorUrl,
80
+ getDataInstallationAuthorizationStatus: () => getDataInstallationAuthorizationStatus,
81
+ getDataIntegrationAuthorizeUrl: () => getDataIntegrationAuthorizeUrl,
82
+ getDeleteDataInstallationMutationFetcher: () => getDeleteDataInstallationMutationFetcher,
83
+ getDeleteDataInstallationMutationKey: () => getDeleteDataInstallationMutationKey,
84
+ getDeleteDataInstallationUrl: () => getDeleteDataInstallationUrl,
85
+ getDeleteOrganizationApiKeyMutationFetcher: () => getDeleteOrganizationApiKeyMutationFetcher,
86
+ getDeleteOrganizationApiKeyMutationKey: () => getDeleteOrganizationApiKeyMutationKey,
87
+ getDeleteOrganizationApiKeyUrl: () => getDeleteOrganizationApiKeyUrl,
88
+ getDeleteOrganizationDomainMutationFetcher: () => getDeleteOrganizationDomainMutationFetcher,
89
+ getDeleteOrganizationDomainMutationKey: () => getDeleteOrganizationDomainMutationKey,
90
+ getDeleteOrganizationDomainUrl: () => getDeleteOrganizationDomainUrl,
91
+ getDeletePasskeyMutationFetcher: () => getDeletePasskeyMutationFetcher,
92
+ getDeletePasskeyMutationKey: () => getDeletePasskeyMutationKey,
93
+ getDeletePasskeyUrl: () => getDeletePasskeyUrl,
94
+ getDeleteTotpFactorsMutationFetcher: () => getDeleteTotpFactorsMutationFetcher,
95
+ getDeleteTotpFactorsMutationKey: () => getDeleteTotpFactorsMutationKey,
96
+ getDeleteTotpFactorsUrl: () => getDeleteTotpFactorsUrl,
97
+ getGenerateAdminPortalLinkMutationFetcher: () => getGenerateAdminPortalLinkMutationFetcher,
98
+ getGenerateAdminPortalLinkMutationKey: () => getGenerateAdminPortalLinkMutationKey,
99
+ getGenerateAdminPortalLinkUrl: () => getGenerateAdminPortalLinkUrl,
100
+ getGetDataInstallationAuthorizationStatusKey: () => getGetDataInstallationAuthorizationStatusKey,
101
+ getGetDataInstallationAuthorizationStatusUrl: () => getGetDataInstallationAuthorizationStatusUrl,
102
+ getGetDataIntegrationAuthorizeUrlKey: () => getGetDataIntegrationAuthorizeUrlKey,
103
+ getGetDataIntegrationAuthorizeUrlUrl: () => getGetDataIntegrationAuthorizeUrlUrl,
104
+ getInviteMemberMutationFetcher: () => getInviteMemberMutationFetcher,
105
+ getInviteMemberMutationKey: () => getInviteMemberMutationKey,
106
+ getInviteMemberUrl: () => getInviteMemberUrl,
107
+ getListOrganizationApiKeyPermissionsKey: () => getListOrganizationApiKeyPermissionsKey,
108
+ getListOrganizationApiKeyPermissionsUrl: () => getListOrganizationApiKeyPermissionsUrl,
109
+ getListOrganizationApiKeysKey: () => getListOrganizationApiKeysKey,
110
+ getListOrganizationApiKeysUrl: () => getListOrganizationApiKeysUrl,
111
+ getListOrganizationDomainsKey: () => getListOrganizationDomainsKey,
112
+ getListOrganizationDomainsUrl: () => getListOrganizationDomainsUrl,
113
+ getListSsoConnectionsKey: () => getListSsoConnectionsKey,
114
+ getListSsoConnectionsUrl: () => getListSsoConnectionsUrl,
115
+ getMeKey: () => getMeKey,
116
+ getMeUrl: () => getMeUrl,
117
+ getMembersKey: () => getMembersKey,
118
+ getMembersUrl: () => getMembersUrl,
119
+ getMyDataIntegrationsKey: () => getMyDataIntegrationsKey,
120
+ getMyDataIntegrationsUrl: () => getMyDataIntegrationsUrl,
121
+ getOrganizationsKey: () => getOrganizationsKey,
122
+ getOrganizationsUrl: () => getOrganizationsUrl,
123
+ getRegisterPasskeyMutationFetcher: () => getRegisterPasskeyMutationFetcher,
124
+ getRegisterPasskeyMutationKey: () => getRegisterPasskeyMutationKey,
125
+ getRegisterPasskeyUrl: () => getRegisterPasskeyUrl,
126
+ getRemoveMemberMutationFetcher: () => getRemoveMemberMutationFetcher,
127
+ getRemoveMemberMutationKey: () => getRemoveMemberMutationKey,
128
+ getRemoveMemberUrl: () => getRemoveMemberUrl,
129
+ getResendInviteMutationFetcher: () => getResendInviteMutationFetcher,
130
+ getResendInviteMutationKey: () => getResendInviteMutationKey,
131
+ getResendInviteUrl: () => getResendInviteUrl,
132
+ getReverifyOrganizationDomainMutationFetcher: () => getReverifyOrganizationDomainMutationFetcher,
133
+ getReverifyOrganizationDomainMutationKey: () => getReverifyOrganizationDomainMutationKey,
134
+ getReverifyOrganizationDomainUrl: () => getReverifyOrganizationDomainUrl,
135
+ getRevokeAllSessionsMutationFetcher: () => getRevokeAllSessionsMutationFetcher,
136
+ getRevokeAllSessionsMutationKey: () => getRevokeAllSessionsMutationKey,
137
+ getRevokeAllSessionsUrl: () => getRevokeAllSessionsUrl,
138
+ getRevokeInviteMutationFetcher: () => getRevokeInviteMutationFetcher,
139
+ getRevokeInviteMutationKey: () => getRevokeInviteMutationKey,
140
+ getRevokeInviteUrl: () => getRevokeInviteUrl,
141
+ getRevokeSessionMutationFetcher: () => getRevokeSessionMutationFetcher,
142
+ getRevokeSessionMutationKey: () => getRevokeSessionMutationKey,
143
+ getRevokeSessionUrl: () => getRevokeSessionUrl,
144
+ getRolesAndConfigKey: () => getRolesAndConfigKey,
145
+ getRolesAndConfigUrl: () => getRolesAndConfigUrl,
146
+ getRolesKey: () => getRolesKey,
147
+ getRolesUrl: () => getRolesUrl,
148
+ getSendVerificationMutationFetcher: () => getSendVerificationMutationFetcher,
149
+ getSendVerificationMutationKey: () => getSendVerificationMutationKey,
150
+ getSendVerificationUrl: () => getSendVerificationUrl,
151
+ getSessionsKey: () => getSessionsKey,
152
+ getSessionsUrl: () => getSessionsUrl,
153
+ getSettingsKey: () => getSettingsKey,
154
+ getSettingsUrl: () => getSettingsUrl,
155
+ getUpdateMeMutationFetcher: () => getUpdateMeMutationFetcher,
156
+ getUpdateMeMutationKey: () => getUpdateMeMutationKey,
157
+ getUpdateMeUrl: () => getUpdateMeUrl,
158
+ getUpdateMemberMutationFetcher: () => getUpdateMemberMutationFetcher,
159
+ getUpdateMemberMutationKey: () => getUpdateMemberMutationKey,
160
+ getUpdateMemberUrl: () => getUpdateMemberUrl,
161
+ getUpdatePasswordMutationFetcher: () => getUpdatePasswordMutationFetcher,
162
+ getUpdatePasswordMutationKey: () => getUpdatePasswordMutationKey,
163
+ getUpdatePasswordUrl: () => getUpdatePasswordUrl,
164
+ getVerifyMutationFetcher: () => getVerifyMutationFetcher,
165
+ getVerifyMutationKey: () => getVerifyMutationKey,
166
+ getVerifyPasskeyMutationFetcher: () => getVerifyPasskeyMutationFetcher,
167
+ getVerifyPasskeyMutationKey: () => getVerifyPasskeyMutationKey,
168
+ getVerifyPasskeyUrl: () => getVerifyPasskeyUrl,
169
+ getVerifyTotpFactorMutationFetcher: () => getVerifyTotpFactorMutationFetcher,
170
+ getVerifyTotpFactorMutationKey: () => getVerifyTotpFactorMutationKey,
171
+ getVerifyTotpFactorUrl: () => getVerifyTotpFactorUrl,
172
+ getVerifyUrl: () => getVerifyUrl,
173
+ inviteMember: () => inviteMember,
174
+ listOrganizationApiKeyPermissions: () => listOrganizationApiKeyPermissions,
175
+ listOrganizationApiKeys: () => listOrganizationApiKeys,
176
+ listOrganizationDomains: () => listOrganizationDomains,
177
+ listSsoConnections: () => listSsoConnections,
178
+ me: () => me,
179
+ members: () => members,
180
+ myDataIntegrations: () => myDataIntegrations,
181
+ organizations: () => organizations,
182
+ registerPasskey: () => registerPasskey,
183
+ removeMember: () => removeMember,
184
+ resendInvite: () => resendInvite,
185
+ reverifyOrganizationDomain: () => reverifyOrganizationDomain,
186
+ revokeAllSessions: () => revokeAllSessions,
187
+ revokeInvite: () => revokeInvite,
188
+ revokeSession: () => revokeSession,
189
+ roles: () => roles,
190
+ rolesAndConfig: () => rolesAndConfig,
191
+ sendVerification: () => sendVerification,
192
+ sessions: () => sessions,
193
+ settings: () => settings,
194
+ updateMe: () => updateMe,
195
+ updateMember: () => updateMember,
196
+ updatePassword: () => updatePassword,
197
+ useAuthenticationInformation: () => useAuthenticationInformation,
198
+ useCreateOrganizationApiKey: () => useCreateOrganizationApiKey,
199
+ useCreatePassword: () => useCreatePassword,
200
+ useCreateTotpFactor: () => useCreateTotpFactor,
201
+ useDeleteDataInstallation: () => useDeleteDataInstallation,
202
+ useDeleteOrganizationApiKey: () => useDeleteOrganizationApiKey,
203
+ useDeleteOrganizationDomain: () => useDeleteOrganizationDomain,
204
+ useDeletePasskey: () => useDeletePasskey,
205
+ useDeleteTotpFactors: () => useDeleteTotpFactors,
206
+ useGenerateAdminPortalLink: () => useGenerateAdminPortalLink,
207
+ useGetDataInstallationAuthorizationStatus: () => useGetDataInstallationAuthorizationStatus,
208
+ useGetDataIntegrationAuthorizeUrl: () => useGetDataIntegrationAuthorizeUrl,
209
+ useInviteMember: () => useInviteMember,
210
+ useListOrganizationApiKeyPermissions: () => useListOrganizationApiKeyPermissions,
211
+ useListOrganizationApiKeys: () => useListOrganizationApiKeys,
212
+ useListOrganizationDomains: () => useListOrganizationDomains,
213
+ useListSsoConnections: () => useListSsoConnections,
214
+ useMe: () => useMe,
215
+ useMembers: () => useMembers,
216
+ useMyDataIntegrations: () => useMyDataIntegrations,
217
+ useOrganizations: () => useOrganizations,
218
+ useRegisterPasskey: () => useRegisterPasskey,
219
+ useRemoveMember: () => useRemoveMember,
220
+ useResendInvite: () => useResendInvite,
221
+ useReverifyOrganizationDomain: () => useReverifyOrganizationDomain,
222
+ useRevokeAllSessions: () => useRevokeAllSessions,
223
+ useRevokeInvite: () => useRevokeInvite,
224
+ useRevokeSession: () => useRevokeSession,
225
+ useRoles: () => useRoles,
226
+ useRolesAndConfig: () => useRolesAndConfig,
227
+ useSendVerification: () => useSendVerification,
228
+ useSessions: () => useSessions,
229
+ useSettings: () => useSettings,
230
+ useUpdateMe: () => useUpdateMe,
231
+ useUpdateMember: () => useUpdateMember,
232
+ useUpdatePassword: () => useUpdatePassword,
233
+ useVerify: () => useVerify,
234
+ useVerifyPasskey: () => useVerifyPasskey,
235
+ useVerifyTotpFactor: () => useVerifyTotpFactor,
236
+ verify: () => verify,
237
+ verifyPasskey: () => verifyPasskey,
238
+ verifyTotpFactor: () => verifyTotpFactor
239
+ });
240
+ module.exports = __toCommonJS(swr_exports);
241
+ var import_swr = __toESM(require("swr"), 1);
242
+ var import_mutation = __toESM(require("swr/mutation"), 1);
243
+ const MemberStatus = {
244
+ Active: "Active",
245
+ Invited: "Invited",
246
+ InviteExpired: "InviteExpired",
247
+ InviteRevoked: "InviteRevoked",
248
+ NoInvite: "NoInvite"
249
+ };
250
+ const MemberActionsItem = {
251
+ "edit-role": "edit-role",
252
+ "resend-invite": "resend-invite",
253
+ "revoke-invite": "revoke-invite",
254
+ "revoke-membership": "revoke-membership"
255
+ };
256
+ const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {
257
+ authentication_factor: "authentication_factor"
258
+ };
259
+ const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
260
+ generic_otp: "generic_otp",
261
+ sms: "sms",
262
+ totp: "totp",
263
+ webauthn: "webauthn"
264
+ };
265
+ const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
266
+ authentication_challenge: "authentication_challenge"
267
+ };
268
+ const AuthenticationInformationResponseDataVerificationMethodsMfaProvider = {
269
+ MFA: "MFA"
270
+ };
271
+ const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = {
272
+ Password: "Password"
273
+ };
274
+ const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider = {
275
+ Passkey: "Passkey"
276
+ };
277
+ const SendVerificationResponseType = {
278
+ EmailVerification: "EmailVerification"
279
+ };
280
+ const SettingsResponseObject = {
281
+ settings: "settings"
282
+ };
283
+ const OrganizationDomainState = {
284
+ Failed: "Failed",
285
+ LegacyVerified: "LegacyVerified",
286
+ Pending: "Pending",
287
+ Verified: "Verified"
288
+ };
289
+ const DomainVerificationNameServer = {
290
+ AwsRoute53: "AwsRoute53",
291
+ GoogleDomains: "GoogleDomains",
292
+ CloudFlare: "CloudFlare",
293
+ GoDaddy: "GoDaddy",
294
+ Other: "Other"
295
+ };
296
+ const SamlSessionState = {
297
+ Authorized: "Authorized",
298
+ Failed: "Failed",
299
+ Started: "Started",
300
+ Successful: "Successful",
301
+ Timedout: "Timedout"
302
+ };
303
+ const OidcSessionState = {
304
+ Started: "Started",
305
+ Authorized: "Authorized",
306
+ Successful: "Successful",
307
+ Failed: "Failed",
308
+ Terminated: "Terminated",
309
+ Timedout: "Timedout"
310
+ };
311
+ const SsoConnectionSessionJSONState = {
312
+ ...SamlSessionState,
313
+ ...OidcSessionState
314
+ };
315
+ const SsoConnectionAnyOfType = {
316
+ AdfsSaml: "AdfsSaml",
317
+ Auth0Saml: "Auth0Saml",
318
+ AzureSaml: "AzureSaml",
319
+ CasSaml: "CasSaml",
320
+ ClassLinkSaml: "ClassLinkSaml",
321
+ CloudflareSaml: "CloudflareSaml",
322
+ CyberArkSaml: "CyberArkSaml",
323
+ DuoSaml: "DuoSaml",
324
+ GenericSaml: "GenericSaml",
325
+ GoogleSaml: "GoogleSaml",
326
+ JumpCloudSaml: "JumpCloudSaml",
327
+ KeycloakSaml: "KeycloakSaml",
328
+ LastPassSaml: "LastPassSaml",
329
+ MiniOrangeSaml: "MiniOrangeSaml",
330
+ NetIqSaml: "NetIqSaml",
331
+ OktaSaml: "OktaSaml",
332
+ OneLoginSaml: "OneLoginSaml",
333
+ OracleSaml: "OracleSaml",
334
+ PingFederateSaml: "PingFederateSaml",
335
+ PingOneSaml: "PingOneSaml",
336
+ RipplingSaml: "RipplingSaml",
337
+ SalesforceSaml: "SalesforceSaml",
338
+ ShibbolethGenericSaml: "ShibbolethGenericSaml",
339
+ ShibbolethSaml: "ShibbolethSaml",
340
+ SimpleSamlPhpSaml: "SimpleSamlPhpSaml",
341
+ TestIdp: "TestIdp",
342
+ VmWareSaml: "VmWareSaml"
343
+ };
344
+ const SsoConnectionAnyOfState = {
345
+ Inactive: "Inactive",
346
+ Validating: "Validating",
347
+ Active: "Active",
348
+ Deleting: "Deleting"
349
+ };
350
+ const SsoConnectionAnyOfProviderTag = {
351
+ Saml: "Saml"
352
+ };
353
+ const SsoConnectionAnyOfEightAllOfState = {
354
+ Inactive: "Inactive",
355
+ Validating: "Validating",
356
+ Active: "Active",
357
+ Deleting: "Deleting"
358
+ };
359
+ const SsoConnectionAnyOfEightAllOfType = {
360
+ AdpOidc: "AdpOidc",
361
+ Auth0Migration: "Auth0Migration",
362
+ CleverOidc: "CleverOidc",
363
+ EntraIdOidc: "EntraIdOidc",
364
+ GenericOidc: "GenericOidc",
365
+ GoogleOidc: "GoogleOidc",
366
+ OktaOidc: "OktaOidc",
367
+ LoginGovOidc: "LoginGovOidc"
368
+ };
369
+ const SsoConnectionAnyOfEightAllOfProviderTag = {
370
+ OpenIdConnect: "OpenIdConnect"
371
+ };
372
+ const DataInstallationObject = {
373
+ data_installation: "data_installation",
374
+ connected_account: "connected_account"
375
+ };
376
+ const DataInstallationState = {
377
+ connected: "connected",
378
+ needs_reauthorization: "needs_reauthorization"
379
+ };
380
+ const DataIntegrationObject = {
381
+ data_integration: "data_integration"
382
+ };
383
+ const DataIntegrationIntegrationType = {
384
+ asana: "asana",
385
+ box: "box",
386
+ "cal-dot-com": "cal-dot-com",
387
+ calendly: "calendly",
388
+ confluence: "confluence",
389
+ dropbox: "dropbox",
390
+ "frame-io": "frame-io",
391
+ front: "front",
392
+ github: "github",
393
+ gitlab: "gitlab",
394
+ gmail: "gmail",
395
+ google: "google",
396
+ "google-calendar": "google-calendar",
397
+ "google-drive": "google-drive",
398
+ helpscout: "helpscout",
399
+ hubspot: "hubspot",
400
+ intercom: "intercom",
401
+ jira: "jira",
402
+ linear: "linear",
403
+ microsoft: "microsoft",
404
+ "microsoft-onedrive": "microsoft-onedrive",
405
+ "microsoft-onenote": "microsoft-onenote",
406
+ "microsoft-outlook": "microsoft-outlook",
407
+ "microsoft-outlook-calendar": "microsoft-outlook-calendar",
408
+ "microsoft-sharepoint": "microsoft-sharepoint",
409
+ "microsoft-teams": "microsoft-teams",
410
+ "microsoft-todo": "microsoft-todo",
411
+ notion: "notion",
412
+ prefect: "prefect",
413
+ "pydantic-logfire": "pydantic-logfire",
414
+ salesforce: "salesforce",
415
+ sentry: "sentry",
416
+ slack: "slack",
417
+ snowflake: "snowflake",
418
+ stripe: "stripe",
419
+ xero: "xero",
420
+ zendesk: "zendesk"
421
+ };
422
+ const DataIntegrationOwnership = {
423
+ userland_user: "userland_user",
424
+ organization: "organization"
425
+ };
426
+ const DataIntegrationCredentialsType = {
427
+ shared: "shared",
428
+ custom: "custom"
429
+ };
430
+ const GenerateAdminPortalLinkIntent = {
431
+ domain_verification: "domain_verification",
432
+ sso: "sso"
433
+ };
434
+ const getMembersUrl = (params) => {
435
+ const normalizedParams = new URLSearchParams();
436
+ Object.entries(params || {}).forEach(([key, value]) => {
437
+ if (value !== void 0) {
438
+ normalizedParams.append(key, value === null ? "null" : value.toString());
439
+ }
440
+ });
441
+ const stringifiedParams = normalizedParams.toString();
442
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/UserManagement/members?${stringifiedParams}` : `https://api.workos.com/_widgets/UserManagement/members`;
443
+ };
444
+ const members = async (params, options) => {
445
+ const res = await fetch(getMembersUrl(params), {
446
+ ...options,
447
+ method: "GET"
448
+ });
449
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
450
+ const data = body ? JSON.parse(body) : {};
451
+ return { data, status: res.status, headers: res.headers };
452
+ };
453
+ const getMembersKey = (params) => [
454
+ `https://api.workos.com/_widgets/UserManagement/members`,
455
+ ...params ? [params] : []
456
+ ];
457
+ const useMembers = (params, options) => {
458
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
459
+ const isEnabled = swrOptions?.enabled !== false;
460
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getMembersKey(params) : null);
461
+ const swrFn = () => members(params, fetchOptions);
462
+ const query = (0, import_swr.default)(
463
+ swrKey,
464
+ swrFn,
465
+ swrOptions
466
+ );
467
+ return {
468
+ swrKey,
469
+ ...query
470
+ };
471
+ };
472
+ const getRolesUrl = () => {
473
+ return `https://api.workos.com/_widgets/UserManagement/roles`;
474
+ };
475
+ const roles = async (options) => {
476
+ const res = await fetch(getRolesUrl(), {
477
+ ...options,
478
+ method: "GET"
479
+ });
480
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
481
+ const data = body ? JSON.parse(body) : {};
482
+ return { data, status: res.status, headers: res.headers };
483
+ };
484
+ const getRolesKey = () => [`https://api.workos.com/_widgets/UserManagement/roles`];
485
+ const useRoles = (options) => {
486
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
487
+ const isEnabled = swrOptions?.enabled !== false;
488
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getRolesKey() : null);
489
+ const swrFn = () => roles(fetchOptions);
490
+ const query = (0, import_swr.default)(
491
+ swrKey,
492
+ swrFn,
493
+ swrOptions
494
+ );
495
+ return {
496
+ swrKey,
497
+ ...query
498
+ };
499
+ };
500
+ const getRolesAndConfigUrl = () => {
501
+ return `https://api.workos.com/_widgets/UserManagement/roles-and-config`;
502
+ };
503
+ const rolesAndConfig = async (options) => {
504
+ const res = await fetch(getRolesAndConfigUrl(), {
505
+ ...options,
506
+ method: "GET"
507
+ });
508
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
509
+ const data = body ? JSON.parse(body) : {};
510
+ return {
511
+ data,
512
+ status: res.status,
513
+ headers: res.headers
514
+ };
515
+ };
516
+ const getRolesAndConfigKey = () => [`https://api.workos.com/_widgets/UserManagement/roles-and-config`];
517
+ const useRolesAndConfig = (options) => {
518
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
519
+ const isEnabled = swrOptions?.enabled !== false;
520
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getRolesAndConfigKey() : null);
521
+ const swrFn = () => rolesAndConfig(fetchOptions);
522
+ const query = (0, import_swr.default)(
523
+ swrKey,
524
+ swrFn,
525
+ swrOptions
526
+ );
527
+ return {
528
+ swrKey,
529
+ ...query
530
+ };
531
+ };
532
+ const getInviteMemberUrl = () => {
533
+ return `https://api.workos.com/_widgets/UserManagement/invite-user`;
534
+ };
535
+ const inviteMember = async (inviteMemberBody, options) => {
536
+ const res = await fetch(getInviteMemberUrl(), {
537
+ ...options,
538
+ method: "POST",
539
+ headers: { "Content-Type": "application/json", ...options?.headers },
540
+ body: JSON.stringify(inviteMemberBody)
541
+ });
542
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
543
+ const data = body ? JSON.parse(body) : {};
544
+ return {
545
+ data,
546
+ status: res.status,
547
+ headers: res.headers
548
+ };
549
+ };
550
+ const getInviteMemberMutationFetcher = (options) => {
551
+ return (_, { arg }) => {
552
+ return inviteMember(arg, options);
553
+ };
554
+ };
555
+ const getInviteMemberMutationKey = () => [`https://api.workos.com/_widgets/UserManagement/invite-user`];
556
+ const useInviteMember = (options) => {
557
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
558
+ const swrKey = swrOptions?.swrKey ?? getInviteMemberMutationKey();
559
+ const swrFn = getInviteMemberMutationFetcher(fetchOptions);
560
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
561
+ return {
562
+ swrKey,
563
+ ...query
564
+ };
565
+ };
566
+ const getResendInviteUrl = (userId) => {
567
+ return `https://api.workos.com/_widgets/UserManagement/invites/${userId}/resend`;
568
+ };
569
+ const resendInvite = async (userId, options) => {
570
+ const res = await fetch(getResendInviteUrl(userId), {
571
+ ...options,
572
+ method: "POST"
573
+ });
574
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
575
+ const data = body ? JSON.parse(body) : {};
576
+ return {
577
+ data,
578
+ status: res.status,
579
+ headers: res.headers
580
+ };
581
+ };
582
+ const getResendInviteMutationFetcher = (userId, options) => {
583
+ return (_, __) => {
584
+ return resendInvite(userId, options);
585
+ };
586
+ };
587
+ const getResendInviteMutationKey = (userId) => [
588
+ `https://api.workos.com/_widgets/UserManagement/invites/${userId}/resend`
589
+ ];
590
+ const useResendInvite = (userId, options) => {
591
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
592
+ const swrKey = swrOptions?.swrKey ?? getResendInviteMutationKey(userId);
593
+ const swrFn = getResendInviteMutationFetcher(userId, fetchOptions);
594
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
595
+ return {
596
+ swrKey,
597
+ ...query
598
+ };
599
+ };
600
+ const getRevokeInviteUrl = (userId) => {
601
+ return `https://api.workos.com/_widgets/UserManagement/invites/${userId}`;
602
+ };
603
+ const revokeInvite = async (userId, options) => {
604
+ const res = await fetch(getRevokeInviteUrl(userId), {
605
+ ...options,
606
+ method: "DELETE"
607
+ });
608
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
609
+ const data = body ? JSON.parse(body) : {};
610
+ return {
611
+ data,
612
+ status: res.status,
613
+ headers: res.headers
614
+ };
615
+ };
616
+ const getRevokeInviteMutationFetcher = (userId, options) => {
617
+ return (_, __) => {
618
+ return revokeInvite(userId, options);
619
+ };
620
+ };
621
+ const getRevokeInviteMutationKey = (userId) => [`https://api.workos.com/_widgets/UserManagement/invites/${userId}`];
622
+ const useRevokeInvite = (userId, options) => {
623
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
624
+ const swrKey = swrOptions?.swrKey ?? getRevokeInviteMutationKey(userId);
625
+ const swrFn = getRevokeInviteMutationFetcher(userId, fetchOptions);
626
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
627
+ return {
628
+ swrKey,
629
+ ...query
630
+ };
631
+ };
632
+ const getRemoveMemberUrl = (userId) => {
633
+ return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
634
+ };
635
+ const removeMember = async (userId, options) => {
636
+ const res = await fetch(getRemoveMemberUrl(userId), {
637
+ ...options,
638
+ method: "DELETE"
639
+ });
640
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
641
+ const data = body ? JSON.parse(body) : {};
642
+ return {
643
+ data,
644
+ status: res.status,
645
+ headers: res.headers
646
+ };
647
+ };
648
+ const getRemoveMemberMutationFetcher = (userId, options) => {
649
+ return (_, __) => {
650
+ return removeMember(userId, options);
651
+ };
652
+ };
653
+ const getRemoveMemberMutationKey = (userId) => [`https://api.workos.com/_widgets/UserManagement/members/${userId}`];
654
+ const useRemoveMember = (userId, options) => {
655
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
656
+ const swrKey = swrOptions?.swrKey ?? getRemoveMemberMutationKey(userId);
657
+ const swrFn = getRemoveMemberMutationFetcher(userId, fetchOptions);
658
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
659
+ return {
660
+ swrKey,
661
+ ...query
662
+ };
663
+ };
664
+ const getUpdateMemberUrl = (userId) => {
665
+ return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
666
+ };
667
+ const updateMember = async (userId, updateMemberBody, options) => {
668
+ const res = await fetch(getUpdateMemberUrl(userId), {
669
+ ...options,
670
+ method: "POST",
671
+ headers: { "Content-Type": "application/json", ...options?.headers },
672
+ body: JSON.stringify(updateMemberBody)
673
+ });
674
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
675
+ const data = body ? JSON.parse(body) : {};
676
+ return {
677
+ data,
678
+ status: res.status,
679
+ headers: res.headers
680
+ };
681
+ };
682
+ const getUpdateMemberMutationFetcher = (userId, options) => {
683
+ return (_, { arg }) => {
684
+ return updateMember(userId, arg, options);
685
+ };
686
+ };
687
+ const getUpdateMemberMutationKey = (userId) => [`https://api.workos.com/_widgets/UserManagement/members/${userId}`];
688
+ const useUpdateMember = (userId, options) => {
689
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
690
+ const swrKey = swrOptions?.swrKey ?? getUpdateMemberMutationKey(userId);
691
+ const swrFn = getUpdateMemberMutationFetcher(userId, fetchOptions);
692
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
693
+ return {
694
+ swrKey,
695
+ ...query
696
+ };
697
+ };
698
+ const getOrganizationsUrl = () => {
699
+ return `https://api.workos.com/_widgets/UserManagement/organizations`;
700
+ };
701
+ const organizations = async (options) => {
702
+ const res = await fetch(getOrganizationsUrl(), {
703
+ ...options,
704
+ method: "GET"
705
+ });
706
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
707
+ const data = body ? JSON.parse(body) : {};
708
+ return {
709
+ data,
710
+ status: res.status,
711
+ headers: res.headers
712
+ };
713
+ };
714
+ const getOrganizationsKey = () => [`https://api.workos.com/_widgets/UserManagement/organizations`];
715
+ const useOrganizations = (options) => {
716
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
717
+ const isEnabled = swrOptions?.enabled !== false;
718
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getOrganizationsKey() : null);
719
+ const swrFn = () => organizations(fetchOptions);
720
+ const query = (0, import_swr.default)(
721
+ swrKey,
722
+ swrFn,
723
+ swrOptions
724
+ );
725
+ return {
726
+ swrKey,
727
+ ...query
728
+ };
729
+ };
730
+ const getMeUrl = () => {
731
+ return `https://api.workos.com/_widgets/UserProfile/me`;
732
+ };
733
+ const me = async (options) => {
734
+ const res = await fetch(getMeUrl(), {
735
+ ...options,
736
+ method: "GET"
737
+ });
738
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
739
+ const data = body ? JSON.parse(body) : {};
740
+ return { data, status: res.status, headers: res.headers };
741
+ };
742
+ const getMeKey = () => [`https://api.workos.com/_widgets/UserProfile/me`];
743
+ const useMe = (options) => {
744
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
745
+ const isEnabled = swrOptions?.enabled !== false;
746
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getMeKey() : null);
747
+ const swrFn = () => me(fetchOptions);
748
+ const query = (0, import_swr.default)(
749
+ swrKey,
750
+ swrFn,
751
+ swrOptions
752
+ );
753
+ return {
754
+ swrKey,
755
+ ...query
756
+ };
757
+ };
758
+ const getUpdateMeUrl = () => {
759
+ return `https://api.workos.com/_widgets/UserProfile/me`;
760
+ };
761
+ const updateMe = async (updateMeBody, options) => {
762
+ const res = await fetch(getUpdateMeUrl(), {
763
+ ...options,
764
+ method: "POST",
765
+ headers: { "Content-Type": "application/json", ...options?.headers },
766
+ body: JSON.stringify(updateMeBody)
767
+ });
768
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
769
+ const data = body ? JSON.parse(body) : {};
770
+ return { data, status: res.status, headers: res.headers };
771
+ };
772
+ const getUpdateMeMutationFetcher = (options) => {
773
+ return (_, { arg }) => {
774
+ return updateMe(arg, options);
775
+ };
776
+ };
777
+ const getUpdateMeMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/me`];
778
+ const useUpdateMe = (options) => {
779
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
780
+ const swrKey = swrOptions?.swrKey ?? getUpdateMeMutationKey();
781
+ const swrFn = getUpdateMeMutationFetcher(fetchOptions);
782
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
783
+ return {
784
+ swrKey,
785
+ ...query
786
+ };
787
+ };
788
+ const getCreateTotpFactorUrl = () => {
789
+ return `https://api.workos.com/_widgets/UserProfile/create-totp-factor`;
790
+ };
791
+ const createTotpFactor = async (options) => {
792
+ const res = await fetch(getCreateTotpFactorUrl(), {
793
+ ...options,
794
+ method: "POST"
795
+ });
796
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
797
+ const data = body ? JSON.parse(body) : {};
798
+ return {
799
+ data,
800
+ status: res.status,
801
+ headers: res.headers
802
+ };
803
+ };
804
+ const getCreateTotpFactorMutationFetcher = (options) => {
805
+ return (_, __) => {
806
+ return createTotpFactor(options);
807
+ };
808
+ };
809
+ const getCreateTotpFactorMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/create-totp-factor`];
810
+ const useCreateTotpFactor = (options) => {
811
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
812
+ const swrKey = swrOptions?.swrKey ?? getCreateTotpFactorMutationKey();
813
+ const swrFn = getCreateTotpFactorMutationFetcher(fetchOptions);
814
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
815
+ return {
816
+ swrKey,
817
+ ...query
818
+ };
819
+ };
820
+ const getVerifyTotpFactorUrl = () => {
821
+ return `https://api.workos.com/_widgets/UserProfile/verify-totp-factor`;
822
+ };
823
+ const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
824
+ const res = await fetch(getVerifyTotpFactorUrl(), {
825
+ ...options,
826
+ method: "POST",
827
+ headers: { "Content-Type": "application/json", ...options?.headers },
828
+ body: JSON.stringify(verifyTotpFactorRequest)
829
+ });
830
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
831
+ const data = body ? JSON.parse(body) : {};
832
+ return {
833
+ data,
834
+ status: res.status,
835
+ headers: res.headers
836
+ };
837
+ };
838
+ const getVerifyTotpFactorMutationFetcher = (options) => {
839
+ return (_, { arg }) => {
840
+ return verifyTotpFactor(arg, options);
841
+ };
842
+ };
843
+ const getVerifyTotpFactorMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/verify-totp-factor`];
844
+ const useVerifyTotpFactor = (options) => {
845
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
846
+ const swrKey = swrOptions?.swrKey ?? getVerifyTotpFactorMutationKey();
847
+ const swrFn = getVerifyTotpFactorMutationFetcher(fetchOptions);
848
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
849
+ return {
850
+ swrKey,
851
+ ...query
852
+ };
853
+ };
854
+ const getDeleteTotpFactorsUrl = () => {
855
+ return `https://api.workos.com/_widgets/UserProfile/totp-factors`;
856
+ };
857
+ const deleteTotpFactors = async (options) => {
858
+ const res = await fetch(getDeleteTotpFactorsUrl(), {
859
+ ...options,
860
+ method: "DELETE"
861
+ });
862
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
863
+ const data = body ? JSON.parse(body) : {};
864
+ return {
865
+ data,
866
+ status: res.status,
867
+ headers: res.headers
868
+ };
869
+ };
870
+ const getDeleteTotpFactorsMutationFetcher = (options) => {
871
+ return (_, __) => {
872
+ return deleteTotpFactors(options);
873
+ };
874
+ };
875
+ const getDeleteTotpFactorsMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/totp-factors`];
876
+ const useDeleteTotpFactors = (options) => {
877
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
878
+ const swrKey = swrOptions?.swrKey ?? getDeleteTotpFactorsMutationKey();
879
+ const swrFn = getDeleteTotpFactorsMutationFetcher(fetchOptions);
880
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
881
+ return {
882
+ swrKey,
883
+ ...query
884
+ };
885
+ };
886
+ const getAuthenticationInformationUrl = () => {
887
+ return `https://api.workos.com/_widgets/UserProfile/authentication-information`;
888
+ };
889
+ const authenticationInformation = async (options) => {
890
+ const res = await fetch(getAuthenticationInformationUrl(), {
891
+ ...options,
892
+ method: "GET"
893
+ });
894
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
895
+ const data = body ? JSON.parse(body) : {};
896
+ return {
897
+ data,
898
+ status: res.status,
899
+ headers: res.headers
900
+ };
901
+ };
902
+ const getAuthenticationInformationKey = () => [
903
+ `https://api.workos.com/_widgets/UserProfile/authentication-information`
904
+ ];
905
+ const useAuthenticationInformation = (options) => {
906
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
907
+ const isEnabled = swrOptions?.enabled !== false;
908
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getAuthenticationInformationKey() : null);
909
+ const swrFn = () => authenticationInformation(fetchOptions);
910
+ const query = (0, import_swr.default)(
911
+ swrKey,
912
+ swrFn,
913
+ swrOptions
914
+ );
915
+ return {
916
+ swrKey,
917
+ ...query
918
+ };
919
+ };
920
+ const getCreatePasswordUrl = () => {
921
+ return `https://api.workos.com/_widgets/UserProfile/create-password`;
922
+ };
923
+ const createPassword = async (createPasswordRequest, options) => {
924
+ const res = await fetch(getCreatePasswordUrl(), {
925
+ ...options,
926
+ method: "POST",
927
+ headers: { "Content-Type": "application/json", ...options?.headers },
928
+ body: JSON.stringify(createPasswordRequest)
929
+ });
930
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
931
+ const data = body ? JSON.parse(body) : {};
932
+ return {
933
+ data,
934
+ status: res.status,
935
+ headers: res.headers
936
+ };
937
+ };
938
+ const getCreatePasswordMutationFetcher = (options) => {
939
+ return (_, { arg }) => {
940
+ return createPassword(arg, options);
941
+ };
942
+ };
943
+ const getCreatePasswordMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/create-password`];
944
+ const useCreatePassword = (options) => {
945
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
946
+ const swrKey = swrOptions?.swrKey ?? getCreatePasswordMutationKey();
947
+ const swrFn = getCreatePasswordMutationFetcher(fetchOptions);
948
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
949
+ return {
950
+ swrKey,
951
+ ...query
952
+ };
953
+ };
954
+ const getUpdatePasswordUrl = () => {
955
+ return `https://api.workos.com/_widgets/UserProfile/update-password`;
956
+ };
957
+ const updatePassword = async (updatePasswordRequest, options) => {
958
+ const res = await fetch(getUpdatePasswordUrl(), {
959
+ ...options,
960
+ method: "POST",
961
+ headers: { "Content-Type": "application/json", ...options?.headers },
962
+ body: JSON.stringify(updatePasswordRequest)
963
+ });
964
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
965
+ const data = body ? JSON.parse(body) : {};
966
+ return {
967
+ data,
968
+ status: res.status,
969
+ headers: res.headers
970
+ };
971
+ };
972
+ const getUpdatePasswordMutationFetcher = (options) => {
973
+ return (_, { arg }) => {
974
+ return updatePassword(arg, options);
975
+ };
976
+ };
977
+ const getUpdatePasswordMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/update-password`];
978
+ const useUpdatePassword = (options) => {
979
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
980
+ const swrKey = swrOptions?.swrKey ?? getUpdatePasswordMutationKey();
981
+ const swrFn = getUpdatePasswordMutationFetcher(fetchOptions);
982
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
983
+ return {
984
+ swrKey,
985
+ ...query
986
+ };
987
+ };
988
+ const getRevokeAllSessionsUrl = () => {
989
+ return `https://api.workos.com/_widgets/UserProfile/sessions/revoke-all`;
990
+ };
991
+ const revokeAllSessions = async (revokeAllSessionsRequest, options) => {
992
+ const res = await fetch(getRevokeAllSessionsUrl(), {
993
+ ...options,
994
+ method: "DELETE",
995
+ headers: { "Content-Type": "application/json", ...options?.headers },
996
+ body: JSON.stringify(revokeAllSessionsRequest)
997
+ });
998
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
999
+ const data = body ? JSON.parse(body) : {};
1000
+ return {
1001
+ data,
1002
+ status: res.status,
1003
+ headers: res.headers
1004
+ };
1005
+ };
1006
+ const getRevokeAllSessionsMutationFetcher = (options) => {
1007
+ return (_, { arg }) => {
1008
+ return revokeAllSessions(arg, options);
1009
+ };
1010
+ };
1011
+ const getRevokeAllSessionsMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/sessions/revoke-all`];
1012
+ const useRevokeAllSessions = (options) => {
1013
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1014
+ const swrKey = swrOptions?.swrKey ?? getRevokeAllSessionsMutationKey();
1015
+ const swrFn = getRevokeAllSessionsMutationFetcher(fetchOptions);
1016
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1017
+ return {
1018
+ swrKey,
1019
+ ...query
1020
+ };
1021
+ };
1022
+ const getRevokeSessionUrl = (sessionId) => {
1023
+ return `https://api.workos.com/_widgets/UserProfile/sessions/revoke/${sessionId}`;
1024
+ };
1025
+ const revokeSession = async (sessionId, options) => {
1026
+ const res = await fetch(getRevokeSessionUrl(sessionId), {
1027
+ ...options,
1028
+ method: "DELETE"
1029
+ });
1030
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1031
+ const data = body ? JSON.parse(body) : {};
1032
+ return {
1033
+ data,
1034
+ status: res.status,
1035
+ headers: res.headers
1036
+ };
1037
+ };
1038
+ const getRevokeSessionMutationFetcher = (sessionId, options) => {
1039
+ return (_, __) => {
1040
+ return revokeSession(sessionId, options);
1041
+ };
1042
+ };
1043
+ const getRevokeSessionMutationKey = (sessionId) => [
1044
+ `https://api.workos.com/_widgets/UserProfile/sessions/revoke/${sessionId}`
1045
+ ];
1046
+ const useRevokeSession = (sessionId, options) => {
1047
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1048
+ const swrKey = swrOptions?.swrKey ?? getRevokeSessionMutationKey(sessionId);
1049
+ const swrFn = getRevokeSessionMutationFetcher(sessionId, fetchOptions);
1050
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1051
+ return {
1052
+ swrKey,
1053
+ ...query
1054
+ };
1055
+ };
1056
+ const getSessionsUrl = () => {
1057
+ return `https://api.workos.com/_widgets/UserProfile/sessions`;
1058
+ };
1059
+ const sessions = async (options) => {
1060
+ const res = await fetch(getSessionsUrl(), {
1061
+ ...options,
1062
+ method: "GET"
1063
+ });
1064
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1065
+ const data = body ? JSON.parse(body) : {};
1066
+ return { data, status: res.status, headers: res.headers };
1067
+ };
1068
+ const getSessionsKey = () => [`https://api.workos.com/_widgets/UserProfile/sessions`];
1069
+ const useSessions = (options) => {
1070
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1071
+ const isEnabled = swrOptions?.enabled !== false;
1072
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getSessionsKey() : null);
1073
+ const swrFn = () => sessions(fetchOptions);
1074
+ const query = (0, import_swr.default)(
1075
+ swrKey,
1076
+ swrFn,
1077
+ swrOptions
1078
+ );
1079
+ return {
1080
+ swrKey,
1081
+ ...query
1082
+ };
1083
+ };
1084
+ const getSendVerificationUrl = () => {
1085
+ return `https://api.workos.com/_widgets/UserProfile/send-verification`;
1086
+ };
1087
+ const sendVerification = async (options) => {
1088
+ const res = await fetch(getSendVerificationUrl(), {
1089
+ ...options,
1090
+ method: "POST"
1091
+ });
1092
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1093
+ const data = body ? JSON.parse(body) : {};
1094
+ return {
1095
+ data,
1096
+ status: res.status,
1097
+ headers: res.headers
1098
+ };
1099
+ };
1100
+ const getSendVerificationMutationFetcher = (options) => {
1101
+ return (_, __) => {
1102
+ return sendVerification(options);
1103
+ };
1104
+ };
1105
+ const getSendVerificationMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/send-verification`];
1106
+ const useSendVerification = (options) => {
1107
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1108
+ const swrKey = swrOptions?.swrKey ?? getSendVerificationMutationKey();
1109
+ const swrFn = getSendVerificationMutationFetcher(fetchOptions);
1110
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1111
+ return {
1112
+ swrKey,
1113
+ ...query
1114
+ };
1115
+ };
1116
+ const getVerifyUrl = () => {
1117
+ return `https://api.workos.com/_widgets/UserProfile/verify`;
1118
+ };
1119
+ const verify = async (verifyRequest, options) => {
1120
+ const res = await fetch(getVerifyUrl(), {
1121
+ ...options,
1122
+ method: "POST",
1123
+ headers: { "Content-Type": "application/json", ...options?.headers },
1124
+ body: JSON.stringify(verifyRequest)
1125
+ });
1126
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1127
+ const data = body ? JSON.parse(body) : {};
1128
+ return { data, status: res.status, headers: res.headers };
1129
+ };
1130
+ const getVerifyMutationFetcher = (options) => {
1131
+ return (_, { arg }) => {
1132
+ return verify(arg, options);
1133
+ };
1134
+ };
1135
+ const getVerifyMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/verify`];
1136
+ const useVerify = (options) => {
1137
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1138
+ const swrKey = swrOptions?.swrKey ?? getVerifyMutationKey();
1139
+ const swrFn = getVerifyMutationFetcher(fetchOptions);
1140
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1141
+ return {
1142
+ swrKey,
1143
+ ...query
1144
+ };
1145
+ };
1146
+ const getRegisterPasskeyUrl = () => {
1147
+ return `https://api.workos.com/_widgets/UserProfile/passkeys`;
1148
+ };
1149
+ const registerPasskey = async (options) => {
1150
+ const res = await fetch(getRegisterPasskeyUrl(), {
1151
+ ...options,
1152
+ method: "POST"
1153
+ });
1154
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1155
+ const data = body ? JSON.parse(body) : {};
1156
+ return {
1157
+ data,
1158
+ status: res.status,
1159
+ headers: res.headers
1160
+ };
1161
+ };
1162
+ const getRegisterPasskeyMutationFetcher = (options) => {
1163
+ return (_, __) => {
1164
+ return registerPasskey(options);
1165
+ };
1166
+ };
1167
+ const getRegisterPasskeyMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/passkeys`];
1168
+ const useRegisterPasskey = (options) => {
1169
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1170
+ const swrKey = swrOptions?.swrKey ?? getRegisterPasskeyMutationKey();
1171
+ const swrFn = getRegisterPasskeyMutationFetcher(fetchOptions);
1172
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1173
+ return {
1174
+ swrKey,
1175
+ ...query
1176
+ };
1177
+ };
1178
+ const getVerifyPasskeyUrl = () => {
1179
+ return `https://api.workos.com/_widgets/UserProfile/passkeys/verify`;
1180
+ };
1181
+ const verifyPasskey = async (verifyPasskeyRequest, options) => {
1182
+ const res = await fetch(getVerifyPasskeyUrl(), {
1183
+ ...options,
1184
+ method: "POST",
1185
+ headers: { "Content-Type": "application/json", ...options?.headers },
1186
+ body: JSON.stringify(verifyPasskeyRequest)
1187
+ });
1188
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1189
+ const data = body ? JSON.parse(body) : {};
1190
+ return {
1191
+ data,
1192
+ status: res.status,
1193
+ headers: res.headers
1194
+ };
1195
+ };
1196
+ const getVerifyPasskeyMutationFetcher = (options) => {
1197
+ return (_, { arg }) => {
1198
+ return verifyPasskey(arg, options);
1199
+ };
1200
+ };
1201
+ const getVerifyPasskeyMutationKey = () => [`https://api.workos.com/_widgets/UserProfile/passkeys/verify`];
1202
+ const useVerifyPasskey = (options) => {
1203
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1204
+ const swrKey = swrOptions?.swrKey ?? getVerifyPasskeyMutationKey();
1205
+ const swrFn = getVerifyPasskeyMutationFetcher(fetchOptions);
1206
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1207
+ return {
1208
+ swrKey,
1209
+ ...query
1210
+ };
1211
+ };
1212
+ const getDeletePasskeyUrl = (passkeyId) => {
1213
+ return `https://api.workos.com/_widgets/UserProfile/passkeys/${passkeyId}`;
1214
+ };
1215
+ const deletePasskey = async (passkeyId, options) => {
1216
+ const res = await fetch(getDeletePasskeyUrl(passkeyId), {
1217
+ ...options,
1218
+ method: "DELETE"
1219
+ });
1220
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1221
+ const data = body ? JSON.parse(body) : {};
1222
+ return {
1223
+ data,
1224
+ status: res.status,
1225
+ headers: res.headers
1226
+ };
1227
+ };
1228
+ const getDeletePasskeyMutationFetcher = (passkeyId, options) => {
1229
+ return (_, __) => {
1230
+ return deletePasskey(passkeyId, options);
1231
+ };
1232
+ };
1233
+ const getDeletePasskeyMutationKey = (passkeyId) => [
1234
+ `https://api.workos.com/_widgets/UserProfile/passkeys/${passkeyId}`
1235
+ ];
1236
+ const useDeletePasskey = (passkeyId, options) => {
1237
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1238
+ const swrKey = swrOptions?.swrKey ?? getDeletePasskeyMutationKey(passkeyId);
1239
+ const swrFn = getDeletePasskeyMutationFetcher(passkeyId, fetchOptions);
1240
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1241
+ return {
1242
+ swrKey,
1243
+ ...query
1244
+ };
1245
+ };
1246
+ const getSettingsUrl = () => {
1247
+ return `https://api.workos.com/_widgets/settings`;
1248
+ };
1249
+ const settings = async (options) => {
1250
+ const res = await fetch(getSettingsUrl(), {
1251
+ ...options,
1252
+ method: "GET"
1253
+ });
1254
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1255
+ const data = body ? JSON.parse(body) : {};
1256
+ return { data, status: res.status, headers: res.headers };
1257
+ };
1258
+ const getSettingsKey = () => [`https://api.workos.com/_widgets/settings`];
1259
+ const useSettings = (options) => {
1260
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1261
+ const isEnabled = swrOptions?.enabled !== false;
1262
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getSettingsKey() : null);
1263
+ const swrFn = () => settings(fetchOptions);
1264
+ const query = (0, import_swr.default)(
1265
+ swrKey,
1266
+ swrFn,
1267
+ swrOptions
1268
+ );
1269
+ return {
1270
+ swrKey,
1271
+ ...query
1272
+ };
1273
+ };
1274
+ const getListOrganizationDomainsUrl = () => {
1275
+ return `https://api.workos.com/_widgets/admin-portal/organization-domains`;
1276
+ };
1277
+ const listOrganizationDomains = async (options) => {
1278
+ const res = await fetch(getListOrganizationDomainsUrl(), {
1279
+ ...options,
1280
+ method: "GET"
1281
+ });
1282
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1283
+ const data = body ? JSON.parse(body) : {};
1284
+ return {
1285
+ data,
1286
+ status: res.status,
1287
+ headers: res.headers
1288
+ };
1289
+ };
1290
+ const getListOrganizationDomainsKey = () => [
1291
+ `https://api.workos.com/_widgets/admin-portal/organization-domains`
1292
+ ];
1293
+ const useListOrganizationDomains = (options) => {
1294
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1295
+ const isEnabled = swrOptions?.enabled !== false;
1296
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListOrganizationDomainsKey() : null);
1297
+ const swrFn = () => listOrganizationDomains(fetchOptions);
1298
+ const query = (0, import_swr.default)(
1299
+ swrKey,
1300
+ swrFn,
1301
+ swrOptions
1302
+ );
1303
+ return {
1304
+ swrKey,
1305
+ ...query
1306
+ };
1307
+ };
1308
+ const getGenerateAdminPortalLinkUrl = (params) => {
1309
+ const normalizedParams = new URLSearchParams();
1310
+ Object.entries(params || {}).forEach(([key, value]) => {
1311
+ if (value !== void 0) {
1312
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1313
+ }
1314
+ });
1315
+ const stringifiedParams = normalizedParams.toString();
1316
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/admin-portal/generate-link?${stringifiedParams}` : `https://api.workos.com/_widgets/admin-portal/generate-link`;
1317
+ };
1318
+ const generateAdminPortalLink = async (params, options) => {
1319
+ const res = await fetch(getGenerateAdminPortalLinkUrl(params), {
1320
+ ...options,
1321
+ method: "POST"
1322
+ });
1323
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1324
+ const data = body ? JSON.parse(body) : {};
1325
+ return {
1326
+ data,
1327
+ status: res.status,
1328
+ headers: res.headers
1329
+ };
1330
+ };
1331
+ const getGenerateAdminPortalLinkMutationFetcher = (params, options) => {
1332
+ return (_, __) => {
1333
+ return generateAdminPortalLink(params, options);
1334
+ };
1335
+ };
1336
+ const getGenerateAdminPortalLinkMutationKey = (params) => [
1337
+ `https://api.workos.com/_widgets/admin-portal/generate-link`,
1338
+ ...params ? [params] : []
1339
+ ];
1340
+ const useGenerateAdminPortalLink = (params, options) => {
1341
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1342
+ const swrKey = swrOptions?.swrKey ?? getGenerateAdminPortalLinkMutationKey(params);
1343
+ const swrFn = getGenerateAdminPortalLinkMutationFetcher(params, fetchOptions);
1344
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1345
+ return {
1346
+ swrKey,
1347
+ ...query
1348
+ };
1349
+ };
1350
+ const getDeleteOrganizationDomainUrl = (domainId) => {
1351
+ return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}`;
1352
+ };
1353
+ const deleteOrganizationDomain = async (domainId, options) => {
1354
+ const res = await fetch(getDeleteOrganizationDomainUrl(domainId), {
1355
+ ...options,
1356
+ method: "DELETE"
1357
+ });
1358
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1359
+ const data = body ? JSON.parse(body) : {};
1360
+ return {
1361
+ data,
1362
+ status: res.status,
1363
+ headers: res.headers
1364
+ };
1365
+ };
1366
+ const getDeleteOrganizationDomainMutationFetcher = (domainId, options) => {
1367
+ return (_, __) => {
1368
+ return deleteOrganizationDomain(domainId, options);
1369
+ };
1370
+ };
1371
+ const getDeleteOrganizationDomainMutationKey = (domainId) => [
1372
+ `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}`
1373
+ ];
1374
+ const useDeleteOrganizationDomain = (domainId, options) => {
1375
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1376
+ const swrKey = swrOptions?.swrKey ?? getDeleteOrganizationDomainMutationKey(domainId);
1377
+ const swrFn = getDeleteOrganizationDomainMutationFetcher(
1378
+ domainId,
1379
+ fetchOptions
1380
+ );
1381
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1382
+ return {
1383
+ swrKey,
1384
+ ...query
1385
+ };
1386
+ };
1387
+ const getReverifyOrganizationDomainUrl = (domainId) => {
1388
+ return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}/reverify`;
1389
+ };
1390
+ const reverifyOrganizationDomain = async (domainId, options) => {
1391
+ const res = await fetch(getReverifyOrganizationDomainUrl(domainId), {
1392
+ ...options,
1393
+ method: "POST"
1394
+ });
1395
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1396
+ const data = body ? JSON.parse(body) : {};
1397
+ return {
1398
+ data,
1399
+ status: res.status,
1400
+ headers: res.headers
1401
+ };
1402
+ };
1403
+ const getReverifyOrganizationDomainMutationFetcher = (domainId, options) => {
1404
+ return (_, __) => {
1405
+ return reverifyOrganizationDomain(domainId, options);
1406
+ };
1407
+ };
1408
+ const getReverifyOrganizationDomainMutationKey = (domainId) => [
1409
+ `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}/reverify`
1410
+ ];
1411
+ const useReverifyOrganizationDomain = (domainId, options) => {
1412
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1413
+ const swrKey = swrOptions?.swrKey ?? getReverifyOrganizationDomainMutationKey(domainId);
1414
+ const swrFn = getReverifyOrganizationDomainMutationFetcher(
1415
+ domainId,
1416
+ fetchOptions
1417
+ );
1418
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1419
+ return {
1420
+ swrKey,
1421
+ ...query
1422
+ };
1423
+ };
1424
+ const getListSsoConnectionsUrl = () => {
1425
+ return `https://api.workos.com/_widgets/admin-portal/sso-connections`;
1426
+ };
1427
+ const listSsoConnections = async (options) => {
1428
+ const res = await fetch(getListSsoConnectionsUrl(), {
1429
+ ...options,
1430
+ method: "GET"
1431
+ });
1432
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1433
+ const data = body ? JSON.parse(body) : {};
1434
+ return {
1435
+ data,
1436
+ status: res.status,
1437
+ headers: res.headers
1438
+ };
1439
+ };
1440
+ const getListSsoConnectionsKey = () => [`https://api.workos.com/_widgets/admin-portal/sso-connections`];
1441
+ const useListSsoConnections = (options) => {
1442
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1443
+ const isEnabled = swrOptions?.enabled !== false;
1444
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListSsoConnectionsKey() : null);
1445
+ const swrFn = () => listSsoConnections(fetchOptions);
1446
+ const query = (0, import_swr.default)(
1447
+ swrKey,
1448
+ swrFn,
1449
+ swrOptions
1450
+ );
1451
+ return {
1452
+ swrKey,
1453
+ ...query
1454
+ };
1455
+ };
1456
+ const getCreateOrganizationApiKeyUrl = () => {
1457
+ return `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
1458
+ };
1459
+ const createOrganizationApiKey = async (createOrganizationApiKeyRequest, options) => {
1460
+ const res = await fetch(getCreateOrganizationApiKeyUrl(), {
1461
+ ...options,
1462
+ method: "POST",
1463
+ headers: { "Content-Type": "application/json", ...options?.headers },
1464
+ body: JSON.stringify(createOrganizationApiKeyRequest)
1465
+ });
1466
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1467
+ const data = body ? JSON.parse(body) : {};
1468
+ return {
1469
+ data,
1470
+ status: res.status,
1471
+ headers: res.headers
1472
+ };
1473
+ };
1474
+ const getCreateOrganizationApiKeyMutationFetcher = (options) => {
1475
+ return (_, { arg }) => {
1476
+ return createOrganizationApiKey(arg, options);
1477
+ };
1478
+ };
1479
+ const getCreateOrganizationApiKeyMutationKey = () => [`https://api.workos.com/_widgets/ApiKeys/organization-api-keys`];
1480
+ const useCreateOrganizationApiKey = (options) => {
1481
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1482
+ const swrKey = swrOptions?.swrKey ?? getCreateOrganizationApiKeyMutationKey();
1483
+ const swrFn = getCreateOrganizationApiKeyMutationFetcher(fetchOptions);
1484
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1485
+ return {
1486
+ swrKey,
1487
+ ...query
1488
+ };
1489
+ };
1490
+ const getListOrganizationApiKeysUrl = (params) => {
1491
+ const normalizedParams = new URLSearchParams();
1492
+ Object.entries(params || {}).forEach(([key, value]) => {
1493
+ if (value !== void 0) {
1494
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1495
+ }
1496
+ });
1497
+ const stringifiedParams = normalizedParams.toString();
1498
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/organization-api-keys?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
1499
+ };
1500
+ const listOrganizationApiKeys = async (params, options) => {
1501
+ const res = await fetch(getListOrganizationApiKeysUrl(params), {
1502
+ ...options,
1503
+ method: "GET"
1504
+ });
1505
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1506
+ const data = body ? JSON.parse(body) : {};
1507
+ return {
1508
+ data,
1509
+ status: res.status,
1510
+ headers: res.headers
1511
+ };
1512
+ };
1513
+ const getListOrganizationApiKeysKey = (params) => [
1514
+ `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`,
1515
+ ...params ? [params] : []
1516
+ ];
1517
+ const useListOrganizationApiKeys = (params, options) => {
1518
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1519
+ const isEnabled = swrOptions?.enabled !== false;
1520
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListOrganizationApiKeysKey(params) : null);
1521
+ const swrFn = () => listOrganizationApiKeys(params, fetchOptions);
1522
+ const query = (0, import_swr.default)(
1523
+ swrKey,
1524
+ swrFn,
1525
+ swrOptions
1526
+ );
1527
+ return {
1528
+ swrKey,
1529
+ ...query
1530
+ };
1531
+ };
1532
+ const getListOrganizationApiKeyPermissionsUrl = (params) => {
1533
+ const normalizedParams = new URLSearchParams();
1534
+ Object.entries(params || {}).forEach(([key, value]) => {
1535
+ if (value !== void 0) {
1536
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1537
+ }
1538
+ });
1539
+ const stringifiedParams = normalizedParams.toString();
1540
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/permissions?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/permissions`;
1541
+ };
1542
+ const listOrganizationApiKeyPermissions = async (params, options) => {
1543
+ const res = await fetch(getListOrganizationApiKeyPermissionsUrl(params), {
1544
+ ...options,
1545
+ method: "GET"
1546
+ });
1547
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1548
+ const data = body ? JSON.parse(body) : {};
1549
+ return {
1550
+ data,
1551
+ status: res.status,
1552
+ headers: res.headers
1553
+ };
1554
+ };
1555
+ const getListOrganizationApiKeyPermissionsKey = (params) => [
1556
+ `https://api.workos.com/_widgets/ApiKeys/permissions`,
1557
+ ...params ? [params] : []
1558
+ ];
1559
+ const useListOrganizationApiKeyPermissions = (params, options) => {
1560
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1561
+ const isEnabled = swrOptions?.enabled !== false;
1562
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListOrganizationApiKeyPermissionsKey(params) : null);
1563
+ const swrFn = () => listOrganizationApiKeyPermissions(params, fetchOptions);
1564
+ const query = (0, import_swr.default)(
1565
+ swrKey,
1566
+ swrFn,
1567
+ swrOptions
1568
+ );
1569
+ return {
1570
+ swrKey,
1571
+ ...query
1572
+ };
1573
+ };
1574
+ const getDeleteOrganizationApiKeyUrl = (apiKeyId) => {
1575
+ return `https://api.workos.com/_widgets/ApiKeys/${apiKeyId}`;
1576
+ };
1577
+ const deleteOrganizationApiKey = async (apiKeyId, options) => {
1578
+ const res = await fetch(getDeleteOrganizationApiKeyUrl(apiKeyId), {
1579
+ ...options,
1580
+ method: "DELETE"
1581
+ });
1582
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1583
+ const data = body ? JSON.parse(body) : {};
1584
+ return {
1585
+ data,
1586
+ status: res.status,
1587
+ headers: res.headers
1588
+ };
1589
+ };
1590
+ const getDeleteOrganizationApiKeyMutationFetcher = (apiKeyId, options) => {
1591
+ return (_, __) => {
1592
+ return deleteOrganizationApiKey(apiKeyId, options);
1593
+ };
1594
+ };
1595
+ const getDeleteOrganizationApiKeyMutationKey = (apiKeyId) => [`https://api.workos.com/_widgets/ApiKeys/${apiKeyId}`];
1596
+ const useDeleteOrganizationApiKey = (apiKeyId, options) => {
1597
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1598
+ const swrKey = swrOptions?.swrKey ?? getDeleteOrganizationApiKeyMutationKey(apiKeyId);
1599
+ const swrFn = getDeleteOrganizationApiKeyMutationFetcher(
1600
+ apiKeyId,
1601
+ fetchOptions
1602
+ );
1603
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1604
+ return {
1605
+ swrKey,
1606
+ ...query
1607
+ };
1608
+ };
1609
+ const getMyDataIntegrationsUrl = () => {
1610
+ return `https://api.workos.com/_widgets/DataIntegrations/mine`;
1611
+ };
1612
+ const myDataIntegrations = async (options) => {
1613
+ const res = await fetch(getMyDataIntegrationsUrl(), {
1614
+ ...options,
1615
+ method: "GET"
1616
+ });
1617
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1618
+ const data = body ? JSON.parse(body) : {};
1619
+ return {
1620
+ data,
1621
+ status: res.status,
1622
+ headers: res.headers
1623
+ };
1624
+ };
1625
+ const getMyDataIntegrationsKey = () => [`https://api.workos.com/_widgets/DataIntegrations/mine`];
1626
+ const useMyDataIntegrations = (options) => {
1627
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1628
+ const isEnabled = swrOptions?.enabled !== false;
1629
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getMyDataIntegrationsKey() : null);
1630
+ const swrFn = () => myDataIntegrations(fetchOptions);
1631
+ const query = (0, import_swr.default)(
1632
+ swrKey,
1633
+ swrFn,
1634
+ swrOptions
1635
+ );
1636
+ return {
1637
+ swrKey,
1638
+ ...query
1639
+ };
1640
+ };
1641
+ const getGetDataIntegrationAuthorizeUrlUrl = (slug, params) => {
1642
+ const normalizedParams = new URLSearchParams();
1643
+ Object.entries(params || {}).forEach(([key, value]) => {
1644
+ if (value !== void 0) {
1645
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1646
+ }
1647
+ });
1648
+ const stringifiedParams = normalizedParams.toString();
1649
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize?${stringifiedParams}` : `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`;
1650
+ };
1651
+ const getDataIntegrationAuthorizeUrl = async (slug, params, options) => {
1652
+ const res = await fetch(getGetDataIntegrationAuthorizeUrlUrl(slug, params), {
1653
+ ...options,
1654
+ method: "GET"
1655
+ });
1656
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1657
+ const data = body ? JSON.parse(body) : {};
1658
+ return {
1659
+ data,
1660
+ status: res.status,
1661
+ headers: res.headers
1662
+ };
1663
+ };
1664
+ const getGetDataIntegrationAuthorizeUrlKey = (slug, params) => [
1665
+ `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`,
1666
+ ...params ? [params] : []
1667
+ ];
1668
+ const useGetDataIntegrationAuthorizeUrl = (slug, params, options) => {
1669
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1670
+ const isEnabled = swrOptions?.enabled !== false && !!slug;
1671
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetDataIntegrationAuthorizeUrlKey(slug, params) : null);
1672
+ const swrFn = () => getDataIntegrationAuthorizeUrl(slug, params, fetchOptions);
1673
+ const query = (0, import_swr.default)(
1674
+ swrKey,
1675
+ swrFn,
1676
+ swrOptions
1677
+ );
1678
+ return {
1679
+ swrKey,
1680
+ ...query
1681
+ };
1682
+ };
1683
+ const getGetDataInstallationAuthorizationStatusUrl = (dataIntegrationId, state) => {
1684
+ return `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`;
1685
+ };
1686
+ const getDataInstallationAuthorizationStatus = async (dataIntegrationId, state, options) => {
1687
+ const res = await fetch(
1688
+ getGetDataInstallationAuthorizationStatusUrl(dataIntegrationId, state),
1689
+ {
1690
+ ...options,
1691
+ method: "GET"
1692
+ }
1693
+ );
1694
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1695
+ const data = body ? JSON.parse(body) : {};
1696
+ return {
1697
+ data,
1698
+ status: res.status,
1699
+ headers: res.headers
1700
+ };
1701
+ };
1702
+ const getGetDataInstallationAuthorizationStatusKey = (dataIntegrationId, state) => [
1703
+ `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`
1704
+ ];
1705
+ const useGetDataInstallationAuthorizationStatus = (dataIntegrationId, state, options) => {
1706
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1707
+ const isEnabled = swrOptions?.enabled !== false && !!(dataIntegrationId && state);
1708
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetDataInstallationAuthorizationStatusKey(dataIntegrationId, state) : null);
1709
+ const swrFn = () => getDataInstallationAuthorizationStatus(
1710
+ dataIntegrationId,
1711
+ state,
1712
+ fetchOptions
1713
+ );
1714
+ const query = (0, import_swr.default)(
1715
+ swrKey,
1716
+ swrFn,
1717
+ swrOptions
1718
+ );
1719
+ return {
1720
+ swrKey,
1721
+ ...query
1722
+ };
1723
+ };
1724
+ const getDeleteDataInstallationUrl = (installationId) => {
1725
+ return `https://api.workos.com/_widgets/DataIntegrations/installations/${installationId}`;
1726
+ };
1727
+ const deleteDataInstallation = async (installationId, options) => {
1728
+ const res = await fetch(getDeleteDataInstallationUrl(installationId), {
1729
+ ...options,
1730
+ method: "DELETE"
1731
+ });
1732
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1733
+ const data = body ? JSON.parse(body) : {};
1734
+ return {
1735
+ data,
1736
+ status: res.status,
1737
+ headers: res.headers
1738
+ };
1739
+ };
1740
+ const getDeleteDataInstallationMutationFetcher = (installationId, options) => {
1741
+ return (_, __) => {
1742
+ return deleteDataInstallation(installationId, options);
1743
+ };
1744
+ };
1745
+ const getDeleteDataInstallationMutationKey = (installationId) => [
1746
+ `https://api.workos.com/_widgets/DataIntegrations/installations/${installationId}`
1747
+ ];
1748
+ const useDeleteDataInstallation = (installationId, options) => {
1749
+ const { swr: swrOptions, fetch: fetchOptions } = options ?? {};
1750
+ const swrKey = swrOptions?.swrKey ?? getDeleteDataInstallationMutationKey(installationId);
1751
+ const swrFn = getDeleteDataInstallationMutationFetcher(
1752
+ installationId,
1753
+ fetchOptions
1754
+ );
1755
+ const query = (0, import_mutation.default)(swrKey, swrFn, swrOptions);
1756
+ return {
1757
+ swrKey,
1758
+ ...query
1759
+ };
1760
+ };
1761
+ // Annotate the CommonJS export names for ESM import in node:
1762
+ 0 && (module.exports = {
1763
+ AuthenticationInformationResponseDataVerificationMethodsMfaProvider,
1764
+ AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider,
1765
+ AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
1766
+ CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
1767
+ CreateTotpFactorResponseAuthenticationFactorAllOfObject,
1768
+ CreateTotpFactorResponseAuthenticationFactorAllOfType,
1769
+ DataInstallationObject,
1770
+ DataInstallationState,
1771
+ DataIntegrationCredentialsType,
1772
+ DataIntegrationIntegrationType,
1773
+ DataIntegrationObject,
1774
+ DataIntegrationOwnership,
1775
+ DomainVerificationNameServer,
1776
+ GenerateAdminPortalLinkIntent,
1777
+ MemberActionsItem,
1778
+ MemberStatus,
1779
+ OidcSessionState,
1780
+ OrganizationDomainState,
1781
+ SamlSessionState,
1782
+ SendVerificationResponseType,
1783
+ SettingsResponseObject,
1784
+ SsoConnectionAnyOfEightAllOfProviderTag,
1785
+ SsoConnectionAnyOfEightAllOfState,
1786
+ SsoConnectionAnyOfEightAllOfType,
1787
+ SsoConnectionAnyOfProviderTag,
1788
+ SsoConnectionAnyOfState,
1789
+ SsoConnectionAnyOfType,
1790
+ SsoConnectionSessionJSONState,
1791
+ authenticationInformation,
1792
+ createOrganizationApiKey,
1793
+ createPassword,
1794
+ createTotpFactor,
1795
+ deleteDataInstallation,
1796
+ deleteOrganizationApiKey,
1797
+ deleteOrganizationDomain,
1798
+ deletePasskey,
1799
+ deleteTotpFactors,
1800
+ generateAdminPortalLink,
1801
+ getAuthenticationInformationKey,
1802
+ getAuthenticationInformationUrl,
1803
+ getCreateOrganizationApiKeyMutationFetcher,
1804
+ getCreateOrganizationApiKeyMutationKey,
1805
+ getCreateOrganizationApiKeyUrl,
1806
+ getCreatePasswordMutationFetcher,
1807
+ getCreatePasswordMutationKey,
1808
+ getCreatePasswordUrl,
1809
+ getCreateTotpFactorMutationFetcher,
1810
+ getCreateTotpFactorMutationKey,
1811
+ getCreateTotpFactorUrl,
1812
+ getDataInstallationAuthorizationStatus,
1813
+ getDataIntegrationAuthorizeUrl,
1814
+ getDeleteDataInstallationMutationFetcher,
1815
+ getDeleteDataInstallationMutationKey,
1816
+ getDeleteDataInstallationUrl,
1817
+ getDeleteOrganizationApiKeyMutationFetcher,
1818
+ getDeleteOrganizationApiKeyMutationKey,
1819
+ getDeleteOrganizationApiKeyUrl,
1820
+ getDeleteOrganizationDomainMutationFetcher,
1821
+ getDeleteOrganizationDomainMutationKey,
1822
+ getDeleteOrganizationDomainUrl,
1823
+ getDeletePasskeyMutationFetcher,
1824
+ getDeletePasskeyMutationKey,
1825
+ getDeletePasskeyUrl,
1826
+ getDeleteTotpFactorsMutationFetcher,
1827
+ getDeleteTotpFactorsMutationKey,
1828
+ getDeleteTotpFactorsUrl,
1829
+ getGenerateAdminPortalLinkMutationFetcher,
1830
+ getGenerateAdminPortalLinkMutationKey,
1831
+ getGenerateAdminPortalLinkUrl,
1832
+ getGetDataInstallationAuthorizationStatusKey,
1833
+ getGetDataInstallationAuthorizationStatusUrl,
1834
+ getGetDataIntegrationAuthorizeUrlKey,
1835
+ getGetDataIntegrationAuthorizeUrlUrl,
1836
+ getInviteMemberMutationFetcher,
1837
+ getInviteMemberMutationKey,
1838
+ getInviteMemberUrl,
1839
+ getListOrganizationApiKeyPermissionsKey,
1840
+ getListOrganizationApiKeyPermissionsUrl,
1841
+ getListOrganizationApiKeysKey,
1842
+ getListOrganizationApiKeysUrl,
1843
+ getListOrganizationDomainsKey,
1844
+ getListOrganizationDomainsUrl,
1845
+ getListSsoConnectionsKey,
1846
+ getListSsoConnectionsUrl,
1847
+ getMeKey,
1848
+ getMeUrl,
1849
+ getMembersKey,
1850
+ getMembersUrl,
1851
+ getMyDataIntegrationsKey,
1852
+ getMyDataIntegrationsUrl,
1853
+ getOrganizationsKey,
1854
+ getOrganizationsUrl,
1855
+ getRegisterPasskeyMutationFetcher,
1856
+ getRegisterPasskeyMutationKey,
1857
+ getRegisterPasskeyUrl,
1858
+ getRemoveMemberMutationFetcher,
1859
+ getRemoveMemberMutationKey,
1860
+ getRemoveMemberUrl,
1861
+ getResendInviteMutationFetcher,
1862
+ getResendInviteMutationKey,
1863
+ getResendInviteUrl,
1864
+ getReverifyOrganizationDomainMutationFetcher,
1865
+ getReverifyOrganizationDomainMutationKey,
1866
+ getReverifyOrganizationDomainUrl,
1867
+ getRevokeAllSessionsMutationFetcher,
1868
+ getRevokeAllSessionsMutationKey,
1869
+ getRevokeAllSessionsUrl,
1870
+ getRevokeInviteMutationFetcher,
1871
+ getRevokeInviteMutationKey,
1872
+ getRevokeInviteUrl,
1873
+ getRevokeSessionMutationFetcher,
1874
+ getRevokeSessionMutationKey,
1875
+ getRevokeSessionUrl,
1876
+ getRolesAndConfigKey,
1877
+ getRolesAndConfigUrl,
1878
+ getRolesKey,
1879
+ getRolesUrl,
1880
+ getSendVerificationMutationFetcher,
1881
+ getSendVerificationMutationKey,
1882
+ getSendVerificationUrl,
1883
+ getSessionsKey,
1884
+ getSessionsUrl,
1885
+ getSettingsKey,
1886
+ getSettingsUrl,
1887
+ getUpdateMeMutationFetcher,
1888
+ getUpdateMeMutationKey,
1889
+ getUpdateMeUrl,
1890
+ getUpdateMemberMutationFetcher,
1891
+ getUpdateMemberMutationKey,
1892
+ getUpdateMemberUrl,
1893
+ getUpdatePasswordMutationFetcher,
1894
+ getUpdatePasswordMutationKey,
1895
+ getUpdatePasswordUrl,
1896
+ getVerifyMutationFetcher,
1897
+ getVerifyMutationKey,
1898
+ getVerifyPasskeyMutationFetcher,
1899
+ getVerifyPasskeyMutationKey,
1900
+ getVerifyPasskeyUrl,
1901
+ getVerifyTotpFactorMutationFetcher,
1902
+ getVerifyTotpFactorMutationKey,
1903
+ getVerifyTotpFactorUrl,
1904
+ getVerifyUrl,
1905
+ inviteMember,
1906
+ listOrganizationApiKeyPermissions,
1907
+ listOrganizationApiKeys,
1908
+ listOrganizationDomains,
1909
+ listSsoConnections,
1910
+ me,
1911
+ members,
1912
+ myDataIntegrations,
1913
+ organizations,
1914
+ registerPasskey,
1915
+ removeMember,
1916
+ resendInvite,
1917
+ reverifyOrganizationDomain,
1918
+ revokeAllSessions,
1919
+ revokeInvite,
1920
+ revokeSession,
1921
+ roles,
1922
+ rolesAndConfig,
1923
+ sendVerification,
1924
+ sessions,
1925
+ settings,
1926
+ updateMe,
1927
+ updateMember,
1928
+ updatePassword,
1929
+ useAuthenticationInformation,
1930
+ useCreateOrganizationApiKey,
1931
+ useCreatePassword,
1932
+ useCreateTotpFactor,
1933
+ useDeleteDataInstallation,
1934
+ useDeleteOrganizationApiKey,
1935
+ useDeleteOrganizationDomain,
1936
+ useDeletePasskey,
1937
+ useDeleteTotpFactors,
1938
+ useGenerateAdminPortalLink,
1939
+ useGetDataInstallationAuthorizationStatus,
1940
+ useGetDataIntegrationAuthorizeUrl,
1941
+ useInviteMember,
1942
+ useListOrganizationApiKeyPermissions,
1943
+ useListOrganizationApiKeys,
1944
+ useListOrganizationDomains,
1945
+ useListSsoConnections,
1946
+ useMe,
1947
+ useMembers,
1948
+ useMyDataIntegrations,
1949
+ useOrganizations,
1950
+ useRegisterPasskey,
1951
+ useRemoveMember,
1952
+ useResendInvite,
1953
+ useReverifyOrganizationDomain,
1954
+ useRevokeAllSessions,
1955
+ useRevokeInvite,
1956
+ useRevokeSession,
1957
+ useRoles,
1958
+ useRolesAndConfig,
1959
+ useSendVerification,
1960
+ useSessions,
1961
+ useSettings,
1962
+ useUpdateMe,
1963
+ useUpdateMember,
1964
+ useUpdatePassword,
1965
+ useVerify,
1966
+ useVerifyPasskey,
1967
+ useVerifyTotpFactor,
1968
+ verify,
1969
+ verifyPasskey,
1970
+ verifyTotpFactor
1971
+ });
1972
+ //# sourceMappingURL=swr.cjs.map