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