@workos-inc/widgets 1.8.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/cjs/api/api-provider.cjs.map +1 -1
- package/dist/cjs/api/api-provider.d.cts +1 -1
- package/dist/cjs/api/endpoint.cjs +702 -623
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +810 -729
- package/dist/cjs/directory-sync.client.cjs +143 -0
- package/dist/cjs/directory-sync.client.cjs.map +1 -0
- package/dist/cjs/directory-sync.client.d.cts +26 -0
- package/dist/cjs/experimental/api/fetch.cjs +309 -252
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +809 -731
- package/dist/cjs/experimental/api/react-query.cjs +695 -613
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +1355 -1250
- package/dist/cjs/experimental/api/swr.cjs +660 -583
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +1307 -1212
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -0
- package/dist/cjs/lib/api-keys/api-keys-context.cjs +1 -1
- package/dist/cjs/lib/api-keys/api-keys-context.cjs.map +1 -1
- package/dist/cjs/lib/api-keys/api-keys-table.cjs +7 -5
- package/dist/cjs/lib/api-keys/api-keys-table.cjs.map +1 -1
- package/dist/cjs/lib/directory-sync.cjs +288 -0
- package/dist/cjs/lib/directory-sync.cjs.map +1 -0
- package/dist/cjs/lib/directory-sync.d.cts +72 -0
- package/dist/cjs/lib/identity-providers.cjs +57 -1
- package/dist/cjs/lib/identity-providers.cjs.map +1 -1
- package/dist/cjs/lib/identity-providers.d.cts +5 -3
- package/dist/cjs/lib/pipes.cjs +9 -9
- package/dist/cjs/lib/pipes.cjs.map +1 -1
- package/dist/cjs/lib/reset-mfa-dialog.cjs +2 -1
- package/dist/cjs/lib/reset-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.d.cts +1 -1
- package/dist/cjs/lib/users-management-context.cjs +1 -1
- package/dist/cjs/lib/users-management-context.cjs.map +1 -1
- package/dist/cjs/lib/users-management.cjs +3 -3
- package/dist/cjs/lib/users-management.cjs.map +1 -1
- package/dist/cjs/lib/utils.cjs +9 -0
- package/dist/cjs/lib/utils.cjs.map +1 -1
- package/dist/cjs/lib/utils.d.cts +16 -2
- package/dist/esm/api/api-provider.d.ts +1 -1
- package/dist/esm/api/api-provider.js.map +1 -1
- package/dist/esm/api/endpoint.d.ts +810 -729
- package/dist/esm/api/endpoint.js +691 -618
- package/dist/esm/api/endpoint.js.map +1 -1
- package/dist/esm/directory-sync.client.d.ts +26 -0
- package/dist/esm/directory-sync.client.js +121 -0
- package/dist/esm/directory-sync.client.js.map +1 -0
- package/dist/esm/experimental/api/fetch.d.ts +809 -731
- package/dist/esm/experimental/api/fetch.js +300 -247
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +1355 -1250
- package/dist/esm/experimental/api/react-query.js +683 -608
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +1307 -1212
- package/dist/esm/experimental/api/swr.js +649 -578
- package/dist/esm/experimental/api/swr.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-table.js +7 -5
- package/dist/esm/lib/api-keys/api-keys-table.js.map +1 -1
- package/dist/esm/lib/directory-sync.d.ts +72 -0
- package/dist/esm/lib/directory-sync.js +259 -0
- package/dist/esm/lib/directory-sync.js.map +1 -0
- package/dist/esm/lib/identity-providers.d.ts +5 -3
- package/dist/esm/lib/identity-providers.js +55 -1
- package/dist/esm/lib/identity-providers.js.map +1 -1
- package/dist/esm/lib/pipes.js +9 -10
- package/dist/esm/lib/pipes.js.map +1 -1
- package/dist/esm/lib/reset-mfa-dialog.js +2 -1
- package/dist/esm/lib/reset-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/use-permissions.d.ts +1 -1
- package/dist/esm/lib/use-permissions.js.map +1 -1
- package/dist/esm/lib/users-management-context.js +1 -1
- package/dist/esm/lib/users-management-context.js.map +1 -1
- package/dist/esm/lib/users-management.js +5 -4
- package/dist/esm/lib/users-management.js.map +1 -1
- package/dist/esm/lib/utils.d.ts +16 -2
- package/dist/esm/lib/utils.js +8 -0
- package/dist/esm/lib/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/api/endpoint.js
CHANGED
|
@@ -27,13 +27,13 @@ const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
|
|
|
27
27
|
const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
|
|
28
28
|
authentication_challenge: "authentication_challenge"
|
|
29
29
|
};
|
|
30
|
-
const
|
|
30
|
+
const AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider = {
|
|
31
31
|
MFA: "MFA"
|
|
32
32
|
};
|
|
33
|
-
const
|
|
33
|
+
const AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider = {
|
|
34
34
|
Password: "Password"
|
|
35
35
|
};
|
|
36
|
-
const
|
|
36
|
+
const AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider = {
|
|
37
37
|
Passkey: "Passkey"
|
|
38
38
|
};
|
|
39
39
|
const SendVerificationResponseType = {
|
|
@@ -131,11 +131,11 @@ const SsoConnectionAnyOfEightAllOfType = {
|
|
|
131
131
|
const SsoConnectionAnyOfEightAllOfProviderTag = {
|
|
132
132
|
OpenIdConnect: "OpenIdConnect"
|
|
133
133
|
};
|
|
134
|
-
const
|
|
134
|
+
const DataInstallationAllOfObject = {
|
|
135
135
|
data_installation: "data_installation",
|
|
136
136
|
connected_account: "connected_account"
|
|
137
137
|
};
|
|
138
|
-
const
|
|
138
|
+
const DataInstallationAllOfState = {
|
|
139
139
|
connected: "connected",
|
|
140
140
|
needs_reauthorization: "needs_reauthorization"
|
|
141
141
|
};
|
|
@@ -189,35 +189,97 @@ const DataIntegrationCredentialsType = {
|
|
|
189
189
|
shared: "shared",
|
|
190
190
|
custom: "custom"
|
|
191
191
|
};
|
|
192
|
+
const DirectoryType = {
|
|
193
|
+
azure_scim_v20: "azure scim v2.0",
|
|
194
|
+
bamboohr: "bamboohr",
|
|
195
|
+
breathe_hr: "breathe hr",
|
|
196
|
+
cezanne_hr: "cezanne hr",
|
|
197
|
+
cyberark_scim_v20: "cyberark scim v2.0",
|
|
198
|
+
fourth_hr: "fourth hr",
|
|
199
|
+
generic_scim_v20: "generic scim v2.0",
|
|
200
|
+
gsuite_directory: "gsuite directory",
|
|
201
|
+
gusto: "gusto",
|
|
202
|
+
hibob: "hibob",
|
|
203
|
+
jump_cloud_scim_v20: "jump cloud scim v2.0",
|
|
204
|
+
okta_scim_v20: "okta scim v2.0",
|
|
205
|
+
onelogin_scim_v20: "onelogin scim v2.0",
|
|
206
|
+
people_hr: "people hr",
|
|
207
|
+
personio: "personio",
|
|
208
|
+
pingfederate_scim_v20: "pingfederate scim v2.0",
|
|
209
|
+
rippling: "rippling",
|
|
210
|
+
rippling_scim_v20: "rippling scim v2.0",
|
|
211
|
+
s3: "s3",
|
|
212
|
+
sailpoint_scim_v20: "sailpoint scim v2.0",
|
|
213
|
+
sftp: "sftp",
|
|
214
|
+
sftp_workday: "sftp workday",
|
|
215
|
+
workday: "workday"
|
|
216
|
+
};
|
|
217
|
+
const DirectoryState = {
|
|
218
|
+
requires_type: "requires_type",
|
|
219
|
+
linked: "linked",
|
|
220
|
+
validating: "validating",
|
|
221
|
+
invalid_credentials: "invalid_credentials",
|
|
222
|
+
unlinked: "unlinked",
|
|
223
|
+
deleting: "deleting"
|
|
224
|
+
};
|
|
192
225
|
const GenerateAdminPortalLinkIntent = {
|
|
193
226
|
domain_verification: "domain_verification",
|
|
194
227
|
sso: "sso"
|
|
195
228
|
};
|
|
196
|
-
const
|
|
197
|
-
const
|
|
229
|
+
const useCreateOrganizationApiKeyHook = () => {
|
|
230
|
+
const createOrganizationApiKey = useWidgetsApiClient();
|
|
231
|
+
return useCallback(
|
|
232
|
+
(createOrganizationApiKeyRequest, signal) => {
|
|
233
|
+
return createOrganizationApiKey({
|
|
234
|
+
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
235
|
+
method: "POST",
|
|
236
|
+
headers: { "Content-Type": "application/json" },
|
|
237
|
+
data: createOrganizationApiKeyRequest,
|
|
238
|
+
signal
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
[createOrganizationApiKey]
|
|
242
|
+
);
|
|
243
|
+
};
|
|
244
|
+
const useCreateOrganizationApiKeyMutationOptions = (options) => {
|
|
245
|
+
const mutationKey = ["createOrganizationApiKey"];
|
|
246
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
247
|
+
const createOrganizationApiKey = useCreateOrganizationApiKeyHook();
|
|
248
|
+
const mutationFn = (props) => {
|
|
249
|
+
const { data } = props ?? {};
|
|
250
|
+
return createOrganizationApiKey(data);
|
|
251
|
+
};
|
|
252
|
+
return { mutationFn, ...mutationOptions };
|
|
253
|
+
};
|
|
254
|
+
const useCreateOrganizationApiKey = (options, queryClient) => {
|
|
255
|
+
const mutationOptions = useCreateOrganizationApiKeyMutationOptions(options);
|
|
256
|
+
return useMutation(mutationOptions, queryClient);
|
|
257
|
+
};
|
|
258
|
+
const useListOrganizationApiKeysHook = () => {
|
|
259
|
+
const listOrganizationApiKeys = useWidgetsApiClient();
|
|
198
260
|
return useCallback(
|
|
199
261
|
(params, signal) => {
|
|
200
|
-
return
|
|
201
|
-
url: `/_widgets/
|
|
262
|
+
return listOrganizationApiKeys({
|
|
263
|
+
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
202
264
|
method: "GET",
|
|
203
265
|
params,
|
|
204
266
|
signal
|
|
205
267
|
});
|
|
206
268
|
},
|
|
207
|
-
[
|
|
269
|
+
[listOrganizationApiKeys]
|
|
208
270
|
);
|
|
209
271
|
};
|
|
210
|
-
const
|
|
272
|
+
const getListOrganizationApiKeysQueryKey = (params) => {
|
|
211
273
|
return [
|
|
212
|
-
`/_widgets/
|
|
274
|
+
`/_widgets/ApiKeys/organization-api-keys`,
|
|
213
275
|
...params ? [params] : []
|
|
214
276
|
];
|
|
215
277
|
};
|
|
216
|
-
const
|
|
278
|
+
const useListOrganizationApiKeysQueryOptions = (params, options) => {
|
|
217
279
|
const { query: queryOptions } = options ?? {};
|
|
218
|
-
const queryKey = queryOptions?.queryKey ??
|
|
219
|
-
const
|
|
220
|
-
const queryFn = ({ signal }) =>
|
|
280
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeysQueryKey(params);
|
|
281
|
+
const listOrganizationApiKeys = useListOrganizationApiKeysHook();
|
|
282
|
+
const queryFn = ({ signal }) => listOrganizationApiKeys(params, signal);
|
|
221
283
|
const customOptions = useWidgetsApiQueryOptions({
|
|
222
284
|
...queryOptions,
|
|
223
285
|
queryKey,
|
|
@@ -225,33 +287,37 @@ const useMembersQueryOptions = (params, options) => {
|
|
|
225
287
|
});
|
|
226
288
|
return customOptions;
|
|
227
289
|
};
|
|
228
|
-
function
|
|
229
|
-
const queryOptions =
|
|
290
|
+
function useListOrganizationApiKeys(params, options, queryClient) {
|
|
291
|
+
const queryOptions = useListOrganizationApiKeysQueryOptions(params, options);
|
|
230
292
|
const query = useQuery(queryOptions, queryClient);
|
|
231
293
|
query.queryKey = queryOptions.queryKey;
|
|
232
294
|
return query;
|
|
233
295
|
}
|
|
234
|
-
const
|
|
235
|
-
const
|
|
296
|
+
const useListOrganizationApiKeyPermissionsHook = () => {
|
|
297
|
+
const listOrganizationApiKeyPermissions = useWidgetsApiClient();
|
|
236
298
|
return useCallback(
|
|
237
|
-
(signal) => {
|
|
238
|
-
return
|
|
239
|
-
url: `/_widgets/
|
|
299
|
+
(params, signal) => {
|
|
300
|
+
return listOrganizationApiKeyPermissions({
|
|
301
|
+
url: `/_widgets/ApiKeys/permissions`,
|
|
240
302
|
method: "GET",
|
|
303
|
+
params,
|
|
241
304
|
signal
|
|
242
305
|
});
|
|
243
306
|
},
|
|
244
|
-
[
|
|
307
|
+
[listOrganizationApiKeyPermissions]
|
|
245
308
|
);
|
|
246
309
|
};
|
|
247
|
-
const
|
|
248
|
-
return [
|
|
310
|
+
const getListOrganizationApiKeyPermissionsQueryKey = (params) => {
|
|
311
|
+
return [
|
|
312
|
+
`/_widgets/ApiKeys/permissions`,
|
|
313
|
+
...params ? [params] : []
|
|
314
|
+
];
|
|
249
315
|
};
|
|
250
|
-
const
|
|
316
|
+
const useListOrganizationApiKeyPermissionsQueryOptions = (params, options) => {
|
|
251
317
|
const { query: queryOptions } = options ?? {};
|
|
252
|
-
const queryKey = queryOptions?.queryKey ??
|
|
253
|
-
const
|
|
254
|
-
const queryFn = ({ signal }) =>
|
|
318
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeyPermissionsQueryKey(params);
|
|
319
|
+
const listOrganizationApiKeyPermissions = useListOrganizationApiKeyPermissionsHook();
|
|
320
|
+
const queryFn = ({ signal }) => listOrganizationApiKeyPermissions(params, signal);
|
|
255
321
|
const customOptions = useWidgetsApiQueryOptions({
|
|
256
322
|
...queryOptions,
|
|
257
323
|
queryKey,
|
|
@@ -259,33 +325,88 @@ const useRolesQueryOptions = (options) => {
|
|
|
259
325
|
});
|
|
260
326
|
return customOptions;
|
|
261
327
|
};
|
|
262
|
-
function
|
|
263
|
-
const queryOptions =
|
|
328
|
+
function useListOrganizationApiKeyPermissions(params, options, queryClient) {
|
|
329
|
+
const queryOptions = useListOrganizationApiKeyPermissionsQueryOptions(
|
|
330
|
+
params,
|
|
331
|
+
options
|
|
332
|
+
);
|
|
264
333
|
const query = useQuery(queryOptions, queryClient);
|
|
265
334
|
query.queryKey = queryOptions.queryKey;
|
|
266
335
|
return query;
|
|
267
336
|
}
|
|
268
|
-
const
|
|
269
|
-
const
|
|
337
|
+
const useDeleteOrganizationApiKeyHook = () => {
|
|
338
|
+
const deleteOrganizationApiKey = useWidgetsApiClient();
|
|
339
|
+
return useCallback(
|
|
340
|
+
(apiKeyId) => {
|
|
341
|
+
return deleteOrganizationApiKey({
|
|
342
|
+
url: `/_widgets/ApiKeys/${apiKeyId}`,
|
|
343
|
+
method: "DELETE"
|
|
344
|
+
});
|
|
345
|
+
},
|
|
346
|
+
[deleteOrganizationApiKey]
|
|
347
|
+
);
|
|
348
|
+
};
|
|
349
|
+
const useDeleteOrganizationApiKeyMutationOptions = (options) => {
|
|
350
|
+
const mutationKey = ["deleteOrganizationApiKey"];
|
|
351
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
352
|
+
const deleteOrganizationApiKey = useDeleteOrganizationApiKeyHook();
|
|
353
|
+
const mutationFn = (props) => {
|
|
354
|
+
const { apiKeyId } = props ?? {};
|
|
355
|
+
return deleteOrganizationApiKey(apiKeyId);
|
|
356
|
+
};
|
|
357
|
+
return { mutationFn, ...mutationOptions };
|
|
358
|
+
};
|
|
359
|
+
const useDeleteOrganizationApiKey = (options, queryClient) => {
|
|
360
|
+
const mutationOptions = useDeleteOrganizationApiKeyMutationOptions(options);
|
|
361
|
+
return useMutation(mutationOptions, queryClient);
|
|
362
|
+
};
|
|
363
|
+
const useDeleteDataInstallationHook = () => {
|
|
364
|
+
const deleteDataInstallation = useWidgetsApiClient();
|
|
365
|
+
return useCallback(
|
|
366
|
+
(installationId) => {
|
|
367
|
+
return deleteDataInstallation({
|
|
368
|
+
url: `/_widgets/DataIntegrations/installations/${installationId}`,
|
|
369
|
+
method: "DELETE"
|
|
370
|
+
});
|
|
371
|
+
},
|
|
372
|
+
[deleteDataInstallation]
|
|
373
|
+
);
|
|
374
|
+
};
|
|
375
|
+
const useDeleteDataInstallationMutationOptions = (options) => {
|
|
376
|
+
const mutationKey = ["deleteDataInstallation"];
|
|
377
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
378
|
+
const deleteDataInstallation = useDeleteDataInstallationHook();
|
|
379
|
+
const mutationFn = (props) => {
|
|
380
|
+
const { installationId } = props ?? {};
|
|
381
|
+
return deleteDataInstallation(installationId);
|
|
382
|
+
};
|
|
383
|
+
return { mutationFn, ...mutationOptions };
|
|
384
|
+
};
|
|
385
|
+
const useDeleteDataInstallation = (options, queryClient) => {
|
|
386
|
+
const mutationOptions = useDeleteDataInstallationMutationOptions(options);
|
|
387
|
+
return useMutation(mutationOptions, queryClient);
|
|
388
|
+
};
|
|
389
|
+
const useMyDataIntegrationsHook = () => {
|
|
390
|
+
const myDataIntegrations = useWidgetsApiClient();
|
|
270
391
|
return useCallback(
|
|
271
392
|
(signal) => {
|
|
272
|
-
return
|
|
273
|
-
url: `/_widgets/
|
|
393
|
+
return myDataIntegrations({
|
|
394
|
+
url: `/_widgets/DataIntegrations/mine`,
|
|
274
395
|
method: "GET",
|
|
275
396
|
signal
|
|
276
397
|
});
|
|
277
398
|
},
|
|
278
|
-
[
|
|
399
|
+
[myDataIntegrations]
|
|
279
400
|
);
|
|
280
401
|
};
|
|
281
|
-
const
|
|
282
|
-
return [`/_widgets/
|
|
402
|
+
const getMyDataIntegrationsQueryKey = () => {
|
|
403
|
+
return [`/_widgets/DataIntegrations/mine`];
|
|
283
404
|
};
|
|
284
|
-
const
|
|
405
|
+
const useMyDataIntegrationsQueryOptions = (options) => {
|
|
285
406
|
const { query: queryOptions } = options ?? {};
|
|
286
|
-
const queryKey = queryOptions?.queryKey ??
|
|
287
|
-
const
|
|
288
|
-
const queryFn = ({ signal }) =>
|
|
407
|
+
const queryKey = queryOptions?.queryKey ?? getMyDataIntegrationsQueryKey();
|
|
408
|
+
const myDataIntegrations = useMyDataIntegrationsHook();
|
|
409
|
+
const queryFn = ({ signal }) => myDataIntegrations(signal);
|
|
289
410
|
const customOptions = useWidgetsApiQueryOptions({
|
|
290
411
|
...queryOptions,
|
|
291
412
|
queryKey,
|
|
@@ -293,8 +414,90 @@ const useRolesAndConfigQueryOptions = (options) => {
|
|
|
293
414
|
});
|
|
294
415
|
return customOptions;
|
|
295
416
|
};
|
|
296
|
-
function
|
|
297
|
-
const queryOptions =
|
|
417
|
+
function useMyDataIntegrations(options, queryClient) {
|
|
418
|
+
const queryOptions = useMyDataIntegrationsQueryOptions(options);
|
|
419
|
+
const query = useQuery(queryOptions, queryClient);
|
|
420
|
+
query.queryKey = queryOptions.queryKey;
|
|
421
|
+
return query;
|
|
422
|
+
}
|
|
423
|
+
const useGetDataInstallationAuthorizationStatusHook = () => {
|
|
424
|
+
const getDataInstallationAuthorizationStatus = useWidgetsApiClient();
|
|
425
|
+
return useCallback(
|
|
426
|
+
(dataIntegrationId, state, signal) => {
|
|
427
|
+
return getDataInstallationAuthorizationStatus({
|
|
428
|
+
url: `/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`,
|
|
429
|
+
method: "GET",
|
|
430
|
+
signal
|
|
431
|
+
});
|
|
432
|
+
},
|
|
433
|
+
[getDataInstallationAuthorizationStatus]
|
|
434
|
+
);
|
|
435
|
+
};
|
|
436
|
+
const getGetDataInstallationAuthorizationStatusQueryKey = (dataIntegrationId, state) => {
|
|
437
|
+
return [
|
|
438
|
+
`/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`
|
|
439
|
+
];
|
|
440
|
+
};
|
|
441
|
+
const useGetDataInstallationAuthorizationStatusQueryOptions = (dataIntegrationId, state, options) => {
|
|
442
|
+
const { query: queryOptions } = options ?? {};
|
|
443
|
+
const queryKey = queryOptions?.queryKey ?? getGetDataInstallationAuthorizationStatusQueryKey(dataIntegrationId, state);
|
|
444
|
+
const getDataInstallationAuthorizationStatus = useGetDataInstallationAuthorizationStatusHook();
|
|
445
|
+
const queryFn = ({ signal }) => getDataInstallationAuthorizationStatus(dataIntegrationId, state, signal);
|
|
446
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
447
|
+
...queryOptions,
|
|
448
|
+
queryKey,
|
|
449
|
+
queryFn
|
|
450
|
+
});
|
|
451
|
+
return customOptions;
|
|
452
|
+
};
|
|
453
|
+
function useGetDataInstallationAuthorizationStatus(dataIntegrationId, state, options, queryClient) {
|
|
454
|
+
const queryOptions = useGetDataInstallationAuthorizationStatusQueryOptions(
|
|
455
|
+
dataIntegrationId,
|
|
456
|
+
state,
|
|
457
|
+
options
|
|
458
|
+
);
|
|
459
|
+
const query = useQuery(queryOptions, queryClient);
|
|
460
|
+
query.queryKey = queryOptions.queryKey;
|
|
461
|
+
return query;
|
|
462
|
+
}
|
|
463
|
+
const useGetDataIntegrationAuthorizeUrlHook = () => {
|
|
464
|
+
const getDataIntegrationAuthorizeUrl = useWidgetsApiClient();
|
|
465
|
+
return useCallback(
|
|
466
|
+
(slug, params, signal) => {
|
|
467
|
+
return getDataIntegrationAuthorizeUrl({
|
|
468
|
+
url: `/_widgets/DataIntegrations/${slug}/authorize`,
|
|
469
|
+
method: "GET",
|
|
470
|
+
params,
|
|
471
|
+
signal
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
[getDataIntegrationAuthorizeUrl]
|
|
475
|
+
);
|
|
476
|
+
};
|
|
477
|
+
const getGetDataIntegrationAuthorizeUrlQueryKey = (slug, params) => {
|
|
478
|
+
return [
|
|
479
|
+
`/_widgets/DataIntegrations/${slug}/authorize`,
|
|
480
|
+
...params ? [params] : []
|
|
481
|
+
];
|
|
482
|
+
};
|
|
483
|
+
const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, params, options) => {
|
|
484
|
+
const { query: queryOptions } = options ?? {};
|
|
485
|
+
const queryKey = queryOptions?.queryKey ?? getGetDataIntegrationAuthorizeUrlQueryKey(slug, params);
|
|
486
|
+
const getDataIntegrationAuthorizeUrl = useGetDataIntegrationAuthorizeUrlHook();
|
|
487
|
+
const queryFn = ({ signal }) => getDataIntegrationAuthorizeUrl(slug, params, signal);
|
|
488
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
489
|
+
...queryOptions,
|
|
490
|
+
queryKey,
|
|
491
|
+
queryFn
|
|
492
|
+
});
|
|
493
|
+
return customOptions;
|
|
494
|
+
};
|
|
495
|
+
function useGetDataIntegrationAuthorizeUrl(slug, params, options, queryClient) {
|
|
496
|
+
const queryOptions = useGetDataIntegrationAuthorizeUrlQueryOptions(
|
|
497
|
+
slug,
|
|
498
|
+
params,
|
|
499
|
+
options
|
|
500
|
+
);
|
|
298
501
|
const query = useQuery(queryOptions, queryClient);
|
|
299
502
|
query.queryKey = queryOptions.queryKey;
|
|
300
503
|
return query;
|
|
@@ -328,6 +531,32 @@ const useInviteMember = (options, queryClient) => {
|
|
|
328
531
|
const mutationOptions = useInviteMemberMutationOptions(options);
|
|
329
532
|
return useMutation(mutationOptions, queryClient);
|
|
330
533
|
};
|
|
534
|
+
const useRevokeInviteHook = () => {
|
|
535
|
+
const revokeInvite = useWidgetsApiClient();
|
|
536
|
+
return useCallback(
|
|
537
|
+
(userId) => {
|
|
538
|
+
return revokeInvite({
|
|
539
|
+
url: `/_widgets/UserManagement/invites/${userId}`,
|
|
540
|
+
method: "DELETE"
|
|
541
|
+
});
|
|
542
|
+
},
|
|
543
|
+
[revokeInvite]
|
|
544
|
+
);
|
|
545
|
+
};
|
|
546
|
+
const useRevokeInviteMutationOptions = (options) => {
|
|
547
|
+
const mutationKey = ["revokeInvite"];
|
|
548
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
549
|
+
const revokeInvite = useRevokeInviteHook();
|
|
550
|
+
const mutationFn = (props) => {
|
|
551
|
+
const { userId } = props ?? {};
|
|
552
|
+
return revokeInvite(userId);
|
|
553
|
+
};
|
|
554
|
+
return { mutationFn, ...mutationOptions };
|
|
555
|
+
};
|
|
556
|
+
const useRevokeInvite = (options, queryClient) => {
|
|
557
|
+
const mutationOptions = useRevokeInviteMutationOptions(options);
|
|
558
|
+
return useMutation(mutationOptions, queryClient);
|
|
559
|
+
};
|
|
331
560
|
const useResendInviteHook = () => {
|
|
332
561
|
const resendInvite = useWidgetsApiClient();
|
|
333
562
|
return useCallback(
|
|
@@ -355,32 +584,44 @@ const useResendInvite = (options, queryClient) => {
|
|
|
355
584
|
const mutationOptions = useResendInviteMutationOptions(options);
|
|
356
585
|
return useMutation(mutationOptions, queryClient);
|
|
357
586
|
};
|
|
358
|
-
const
|
|
359
|
-
const
|
|
587
|
+
const useMembersHook = () => {
|
|
588
|
+
const members = useWidgetsApiClient();
|
|
360
589
|
return useCallback(
|
|
361
|
-
(
|
|
362
|
-
return
|
|
363
|
-
url: `/_widgets/UserManagement/
|
|
364
|
-
method: "
|
|
590
|
+
(params, signal) => {
|
|
591
|
+
return members({
|
|
592
|
+
url: `/_widgets/UserManagement/members`,
|
|
593
|
+
method: "GET",
|
|
594
|
+
params,
|
|
595
|
+
signal
|
|
365
596
|
});
|
|
366
597
|
},
|
|
367
|
-
[
|
|
598
|
+
[members]
|
|
368
599
|
);
|
|
369
600
|
};
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
const { userId } = props ?? {};
|
|
376
|
-
return revokeInvite(userId);
|
|
377
|
-
};
|
|
378
|
-
return { mutationFn, ...mutationOptions };
|
|
601
|
+
const getMembersQueryKey = (params) => {
|
|
602
|
+
return [
|
|
603
|
+
`/_widgets/UserManagement/members`,
|
|
604
|
+
...params ? [params] : []
|
|
605
|
+
];
|
|
379
606
|
};
|
|
380
|
-
const
|
|
381
|
-
const
|
|
382
|
-
|
|
607
|
+
const useMembersQueryOptions = (params, options) => {
|
|
608
|
+
const { query: queryOptions } = options ?? {};
|
|
609
|
+
const queryKey = queryOptions?.queryKey ?? getMembersQueryKey(params);
|
|
610
|
+
const members = useMembersHook();
|
|
611
|
+
const queryFn = ({ signal }) => members(params, signal);
|
|
612
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
613
|
+
...queryOptions,
|
|
614
|
+
queryKey,
|
|
615
|
+
queryFn
|
|
616
|
+
});
|
|
617
|
+
return customOptions;
|
|
383
618
|
};
|
|
619
|
+
function useMembers(params, options, queryClient) {
|
|
620
|
+
const queryOptions = useMembersQueryOptions(params, options);
|
|
621
|
+
const query = useQuery(queryOptions, queryClient);
|
|
622
|
+
query.queryKey = queryOptions.queryKey;
|
|
623
|
+
return query;
|
|
624
|
+
}
|
|
384
625
|
const useRemoveMemberHook = () => {
|
|
385
626
|
const removeMember = useWidgetsApiClient();
|
|
386
627
|
return useCallback(
|
|
@@ -403,73 +644,230 @@ const useRemoveMemberMutationOptions = (options) => {
|
|
|
403
644
|
};
|
|
404
645
|
return { mutationFn, ...mutationOptions };
|
|
405
646
|
};
|
|
406
|
-
const useRemoveMember = (options, queryClient) => {
|
|
407
|
-
const mutationOptions = useRemoveMemberMutationOptions(options);
|
|
408
|
-
return useMutation(mutationOptions, queryClient);
|
|
647
|
+
const useRemoveMember = (options, queryClient) => {
|
|
648
|
+
const mutationOptions = useRemoveMemberMutationOptions(options);
|
|
649
|
+
return useMutation(mutationOptions, queryClient);
|
|
650
|
+
};
|
|
651
|
+
const useUpdateMemberHook = () => {
|
|
652
|
+
const updateMember = useWidgetsApiClient();
|
|
653
|
+
return useCallback(
|
|
654
|
+
(userId, updateMemberInput, signal) => {
|
|
655
|
+
return updateMember({
|
|
656
|
+
url: `/_widgets/UserManagement/members/${userId}`,
|
|
657
|
+
method: "POST",
|
|
658
|
+
headers: { "Content-Type": "application/json" },
|
|
659
|
+
data: updateMemberInput,
|
|
660
|
+
signal
|
|
661
|
+
});
|
|
662
|
+
},
|
|
663
|
+
[updateMember]
|
|
664
|
+
);
|
|
665
|
+
};
|
|
666
|
+
const useUpdateMemberMutationOptions = (options) => {
|
|
667
|
+
const mutationKey = ["updateMember"];
|
|
668
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
669
|
+
const updateMember = useUpdateMemberHook();
|
|
670
|
+
const mutationFn = (props) => {
|
|
671
|
+
const { userId, data } = props ?? {};
|
|
672
|
+
return updateMember(userId, data);
|
|
673
|
+
};
|
|
674
|
+
return { mutationFn, ...mutationOptions };
|
|
675
|
+
};
|
|
676
|
+
const useUpdateMember = (options, queryClient) => {
|
|
677
|
+
const mutationOptions = useUpdateMemberMutationOptions(options);
|
|
678
|
+
return useMutation(mutationOptions, queryClient);
|
|
679
|
+
};
|
|
680
|
+
const useOrganizationsHook = () => {
|
|
681
|
+
const organizations = useWidgetsApiClient();
|
|
682
|
+
return useCallback(
|
|
683
|
+
(signal) => {
|
|
684
|
+
return organizations({
|
|
685
|
+
url: `/_widgets/UserManagement/organizations`,
|
|
686
|
+
method: "GET",
|
|
687
|
+
signal
|
|
688
|
+
});
|
|
689
|
+
},
|
|
690
|
+
[organizations]
|
|
691
|
+
);
|
|
692
|
+
};
|
|
693
|
+
const getOrganizationsQueryKey = () => {
|
|
694
|
+
return [`/_widgets/UserManagement/organizations`];
|
|
695
|
+
};
|
|
696
|
+
const useOrganizationsQueryOptions = (options) => {
|
|
697
|
+
const { query: queryOptions } = options ?? {};
|
|
698
|
+
const queryKey = queryOptions?.queryKey ?? getOrganizationsQueryKey();
|
|
699
|
+
const organizations = useOrganizationsHook();
|
|
700
|
+
const queryFn = ({ signal }) => organizations(signal);
|
|
701
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
702
|
+
...queryOptions,
|
|
703
|
+
queryKey,
|
|
704
|
+
queryFn
|
|
705
|
+
});
|
|
706
|
+
return customOptions;
|
|
707
|
+
};
|
|
708
|
+
function useOrganizations(options, queryClient) {
|
|
709
|
+
const queryOptions = useOrganizationsQueryOptions(options);
|
|
710
|
+
const query = useQuery(queryOptions, queryClient);
|
|
711
|
+
query.queryKey = queryOptions.queryKey;
|
|
712
|
+
return query;
|
|
713
|
+
}
|
|
714
|
+
const useRolesHook = () => {
|
|
715
|
+
const roles = useWidgetsApiClient();
|
|
716
|
+
return useCallback(
|
|
717
|
+
(signal) => {
|
|
718
|
+
return roles({
|
|
719
|
+
url: `/_widgets/UserManagement/roles`,
|
|
720
|
+
method: "GET",
|
|
721
|
+
signal
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
[roles]
|
|
725
|
+
);
|
|
726
|
+
};
|
|
727
|
+
const getRolesQueryKey = () => {
|
|
728
|
+
return [`/_widgets/UserManagement/roles`];
|
|
729
|
+
};
|
|
730
|
+
const useRolesQueryOptions = (options) => {
|
|
731
|
+
const { query: queryOptions } = options ?? {};
|
|
732
|
+
const queryKey = queryOptions?.queryKey ?? getRolesQueryKey();
|
|
733
|
+
const roles = useRolesHook();
|
|
734
|
+
const queryFn = ({ signal }) => roles(signal);
|
|
735
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
736
|
+
...queryOptions,
|
|
737
|
+
queryKey,
|
|
738
|
+
queryFn
|
|
739
|
+
});
|
|
740
|
+
return customOptions;
|
|
741
|
+
};
|
|
742
|
+
function useRoles(options, queryClient) {
|
|
743
|
+
const queryOptions = useRolesQueryOptions(options);
|
|
744
|
+
const query = useQuery(queryOptions, queryClient);
|
|
745
|
+
query.queryKey = queryOptions.queryKey;
|
|
746
|
+
return query;
|
|
747
|
+
}
|
|
748
|
+
const useRolesAndConfigHook = () => {
|
|
749
|
+
const rolesAndConfig = useWidgetsApiClient();
|
|
750
|
+
return useCallback(
|
|
751
|
+
(signal) => {
|
|
752
|
+
return rolesAndConfig({
|
|
753
|
+
url: `/_widgets/UserManagement/roles-and-config`,
|
|
754
|
+
method: "GET",
|
|
755
|
+
signal
|
|
756
|
+
});
|
|
757
|
+
},
|
|
758
|
+
[rolesAndConfig]
|
|
759
|
+
);
|
|
760
|
+
};
|
|
761
|
+
const getRolesAndConfigQueryKey = () => {
|
|
762
|
+
return [`/_widgets/UserManagement/roles-and-config`];
|
|
763
|
+
};
|
|
764
|
+
const useRolesAndConfigQueryOptions = (options) => {
|
|
765
|
+
const { query: queryOptions } = options ?? {};
|
|
766
|
+
const queryKey = queryOptions?.queryKey ?? getRolesAndConfigQueryKey();
|
|
767
|
+
const rolesAndConfig = useRolesAndConfigHook();
|
|
768
|
+
const queryFn = ({ signal }) => rolesAndConfig(signal);
|
|
769
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
770
|
+
...queryOptions,
|
|
771
|
+
queryKey,
|
|
772
|
+
queryFn
|
|
773
|
+
});
|
|
774
|
+
return customOptions;
|
|
775
|
+
};
|
|
776
|
+
function useRolesAndConfig(options, queryClient) {
|
|
777
|
+
const queryOptions = useRolesAndConfigQueryOptions(options);
|
|
778
|
+
const query = useQuery(queryOptions, queryClient);
|
|
779
|
+
query.queryKey = queryOptions.queryKey;
|
|
780
|
+
return query;
|
|
781
|
+
}
|
|
782
|
+
const useAuthenticationInformationHook = () => {
|
|
783
|
+
const authenticationInformation = useWidgetsApiClient();
|
|
784
|
+
return useCallback(
|
|
785
|
+
(signal) => {
|
|
786
|
+
return authenticationInformation({
|
|
787
|
+
url: `/_widgets/UserProfile/authentication-information`,
|
|
788
|
+
method: "GET",
|
|
789
|
+
signal
|
|
790
|
+
});
|
|
791
|
+
},
|
|
792
|
+
[authenticationInformation]
|
|
793
|
+
);
|
|
794
|
+
};
|
|
795
|
+
const getAuthenticationInformationQueryKey = () => {
|
|
796
|
+
return [`/_widgets/UserProfile/authentication-information`];
|
|
409
797
|
};
|
|
410
|
-
const
|
|
411
|
-
const
|
|
798
|
+
const useAuthenticationInformationQueryOptions = (options) => {
|
|
799
|
+
const { query: queryOptions } = options ?? {};
|
|
800
|
+
const queryKey = queryOptions?.queryKey ?? getAuthenticationInformationQueryKey();
|
|
801
|
+
const authenticationInformation = useAuthenticationInformationHook();
|
|
802
|
+
const queryFn = ({ signal }) => authenticationInformation(signal);
|
|
803
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
804
|
+
...queryOptions,
|
|
805
|
+
queryKey,
|
|
806
|
+
queryFn
|
|
807
|
+
});
|
|
808
|
+
return customOptions;
|
|
809
|
+
};
|
|
810
|
+
function useAuthenticationInformation(options, queryClient) {
|
|
811
|
+
const queryOptions = useAuthenticationInformationQueryOptions(options);
|
|
812
|
+
const query = useQuery(queryOptions, queryClient);
|
|
813
|
+
query.queryKey = queryOptions.queryKey;
|
|
814
|
+
return query;
|
|
815
|
+
}
|
|
816
|
+
const useCreatePasswordHook = () => {
|
|
817
|
+
const createPassword = useWidgetsApiClient();
|
|
412
818
|
return useCallback(
|
|
413
|
-
(
|
|
414
|
-
return
|
|
415
|
-
url: `/_widgets/
|
|
819
|
+
(createPasswordRequest, signal) => {
|
|
820
|
+
return createPassword({
|
|
821
|
+
url: `/_widgets/UserProfile/create-password`,
|
|
416
822
|
method: "POST",
|
|
417
823
|
headers: { "Content-Type": "application/json" },
|
|
418
|
-
data:
|
|
824
|
+
data: createPasswordRequest,
|
|
419
825
|
signal
|
|
420
826
|
});
|
|
421
827
|
},
|
|
422
|
-
[
|
|
828
|
+
[createPassword]
|
|
423
829
|
);
|
|
424
830
|
};
|
|
425
|
-
const
|
|
426
|
-
const mutationKey = ["
|
|
831
|
+
const useCreatePasswordMutationOptions = (options) => {
|
|
832
|
+
const mutationKey = ["createPassword"];
|
|
427
833
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
428
|
-
const
|
|
834
|
+
const createPassword = useCreatePasswordHook();
|
|
429
835
|
const mutationFn = (props) => {
|
|
430
|
-
const {
|
|
431
|
-
return
|
|
836
|
+
const { data } = props ?? {};
|
|
837
|
+
return createPassword(data);
|
|
432
838
|
};
|
|
433
839
|
return { mutationFn, ...mutationOptions };
|
|
434
840
|
};
|
|
435
|
-
const
|
|
436
|
-
const mutationOptions =
|
|
841
|
+
const useCreatePassword = (options, queryClient) => {
|
|
842
|
+
const mutationOptions = useCreatePasswordMutationOptions(options);
|
|
437
843
|
return useMutation(mutationOptions, queryClient);
|
|
438
844
|
};
|
|
439
|
-
const
|
|
440
|
-
const
|
|
845
|
+
const useCreateTotpFactorHook = () => {
|
|
846
|
+
const createTotpFactor = useWidgetsApiClient();
|
|
441
847
|
return useCallback(
|
|
442
848
|
(signal) => {
|
|
443
|
-
return
|
|
444
|
-
url: `/_widgets/
|
|
445
|
-
method: "
|
|
849
|
+
return createTotpFactor({
|
|
850
|
+
url: `/_widgets/UserProfile/create-totp-factor`,
|
|
851
|
+
method: "POST",
|
|
446
852
|
signal
|
|
447
853
|
});
|
|
448
854
|
},
|
|
449
|
-
[
|
|
855
|
+
[createTotpFactor]
|
|
450
856
|
);
|
|
451
857
|
};
|
|
452
|
-
const
|
|
453
|
-
|
|
858
|
+
const useCreateTotpFactorMutationOptions = (options) => {
|
|
859
|
+
const mutationKey = ["createTotpFactor"];
|
|
860
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
861
|
+
const createTotpFactor = useCreateTotpFactorHook();
|
|
862
|
+
const mutationFn = () => {
|
|
863
|
+
return createTotpFactor();
|
|
864
|
+
};
|
|
865
|
+
return { mutationFn, ...mutationOptions };
|
|
454
866
|
};
|
|
455
|
-
const
|
|
456
|
-
const
|
|
457
|
-
|
|
458
|
-
const organizations = useOrganizationsHook();
|
|
459
|
-
const queryFn = ({ signal }) => organizations(signal);
|
|
460
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
461
|
-
...queryOptions,
|
|
462
|
-
queryKey,
|
|
463
|
-
queryFn
|
|
464
|
-
});
|
|
465
|
-
return customOptions;
|
|
867
|
+
const useCreateTotpFactor = (options, queryClient) => {
|
|
868
|
+
const mutationOptions = useCreateTotpFactorMutationOptions(options);
|
|
869
|
+
return useMutation(mutationOptions, queryClient);
|
|
466
870
|
};
|
|
467
|
-
function useOrganizations(options, queryClient) {
|
|
468
|
-
const queryOptions = useOrganizationsQueryOptions(options);
|
|
469
|
-
const query = useQuery(queryOptions, queryClient);
|
|
470
|
-
query.queryKey = queryOptions.queryKey;
|
|
471
|
-
return query;
|
|
472
|
-
}
|
|
473
871
|
const useMeHook = () => {
|
|
474
872
|
const me = useWidgetsApiClient();
|
|
475
873
|
return useCallback(
|
|
@@ -529,175 +927,147 @@ const useUpdateMe = (options, queryClient) => {
|
|
|
529
927
|
const mutationOptions = useUpdateMeMutationOptions(options);
|
|
530
928
|
return useMutation(mutationOptions, queryClient);
|
|
531
929
|
};
|
|
532
|
-
const
|
|
533
|
-
const
|
|
930
|
+
const useRegisterPasskeyHook = () => {
|
|
931
|
+
const registerPasskey = useWidgetsApiClient();
|
|
534
932
|
return useCallback(
|
|
535
933
|
(signal) => {
|
|
536
|
-
return
|
|
537
|
-
url: `/_widgets/UserProfile/
|
|
934
|
+
return registerPasskey({
|
|
935
|
+
url: `/_widgets/UserProfile/passkeys`,
|
|
538
936
|
method: "POST",
|
|
539
937
|
signal
|
|
540
938
|
});
|
|
541
939
|
},
|
|
542
|
-
[
|
|
940
|
+
[registerPasskey]
|
|
543
941
|
);
|
|
544
942
|
};
|
|
545
|
-
const
|
|
546
|
-
const mutationKey = ["
|
|
943
|
+
const useRegisterPasskeyMutationOptions = (options) => {
|
|
944
|
+
const mutationKey = ["registerPasskey"];
|
|
547
945
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
548
|
-
const
|
|
946
|
+
const registerPasskey = useRegisterPasskeyHook();
|
|
549
947
|
const mutationFn = () => {
|
|
550
|
-
return
|
|
948
|
+
return registerPasskey();
|
|
551
949
|
};
|
|
552
950
|
return { mutationFn, ...mutationOptions };
|
|
553
951
|
};
|
|
554
|
-
const
|
|
555
|
-
const mutationOptions =
|
|
952
|
+
const useRegisterPasskey = (options, queryClient) => {
|
|
953
|
+
const mutationOptions = useRegisterPasskeyMutationOptions(options);
|
|
556
954
|
return useMutation(mutationOptions, queryClient);
|
|
557
955
|
};
|
|
558
|
-
const
|
|
559
|
-
const
|
|
956
|
+
const useVerifyPasskeyHook = () => {
|
|
957
|
+
const verifyPasskey = useWidgetsApiClient();
|
|
560
958
|
return useCallback(
|
|
561
|
-
(
|
|
562
|
-
return
|
|
563
|
-
url: `/_widgets/UserProfile/verify
|
|
959
|
+
(verifyPasskeyRequest, signal) => {
|
|
960
|
+
return verifyPasskey({
|
|
961
|
+
url: `/_widgets/UserProfile/passkeys/verify`,
|
|
564
962
|
method: "POST",
|
|
565
963
|
headers: { "Content-Type": "application/json" },
|
|
566
|
-
data:
|
|
964
|
+
data: verifyPasskeyRequest,
|
|
567
965
|
signal
|
|
568
966
|
});
|
|
569
967
|
},
|
|
570
|
-
[
|
|
968
|
+
[verifyPasskey]
|
|
571
969
|
);
|
|
572
970
|
};
|
|
573
|
-
const
|
|
574
|
-
const mutationKey = ["
|
|
971
|
+
const useVerifyPasskeyMutationOptions = (options) => {
|
|
972
|
+
const mutationKey = ["verifyPasskey"];
|
|
575
973
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
576
|
-
const
|
|
974
|
+
const verifyPasskey = useVerifyPasskeyHook();
|
|
577
975
|
const mutationFn = (props) => {
|
|
578
976
|
const { data } = props ?? {};
|
|
579
|
-
return
|
|
977
|
+
return verifyPasskey(data);
|
|
580
978
|
};
|
|
581
979
|
return { mutationFn, ...mutationOptions };
|
|
582
980
|
};
|
|
583
|
-
const
|
|
584
|
-
const mutationOptions =
|
|
981
|
+
const useVerifyPasskey = (options, queryClient) => {
|
|
982
|
+
const mutationOptions = useVerifyPasskeyMutationOptions(options);
|
|
585
983
|
return useMutation(mutationOptions, queryClient);
|
|
586
984
|
};
|
|
587
|
-
const
|
|
588
|
-
const
|
|
589
|
-
return useCallback(
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
985
|
+
const useDeletePasskeyHook = () => {
|
|
986
|
+
const deletePasskey = useWidgetsApiClient();
|
|
987
|
+
return useCallback(
|
|
988
|
+
(passkeyId) => {
|
|
989
|
+
return deletePasskey({
|
|
990
|
+
url: `/_widgets/UserProfile/passkeys/${passkeyId}`,
|
|
991
|
+
method: "DELETE"
|
|
992
|
+
});
|
|
993
|
+
},
|
|
994
|
+
[deletePasskey]
|
|
995
|
+
);
|
|
595
996
|
};
|
|
596
|
-
const
|
|
597
|
-
const mutationKey = ["
|
|
997
|
+
const useDeletePasskeyMutationOptions = (options) => {
|
|
998
|
+
const mutationKey = ["deletePasskey"];
|
|
598
999
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
599
|
-
const
|
|
600
|
-
const mutationFn = () => {
|
|
601
|
-
|
|
1000
|
+
const deletePasskey = useDeletePasskeyHook();
|
|
1001
|
+
const mutationFn = (props) => {
|
|
1002
|
+
const { passkeyId } = props ?? {};
|
|
1003
|
+
return deletePasskey(passkeyId);
|
|
602
1004
|
};
|
|
603
1005
|
return { mutationFn, ...mutationOptions };
|
|
604
1006
|
};
|
|
605
|
-
const
|
|
606
|
-
const mutationOptions =
|
|
1007
|
+
const useDeletePasskey = (options, queryClient) => {
|
|
1008
|
+
const mutationOptions = useDeletePasskeyMutationOptions(options);
|
|
607
1009
|
return useMutation(mutationOptions, queryClient);
|
|
608
1010
|
};
|
|
609
|
-
const
|
|
610
|
-
const
|
|
1011
|
+
const useSendVerificationHook = () => {
|
|
1012
|
+
const sendVerification = useWidgetsApiClient();
|
|
611
1013
|
return useCallback(
|
|
612
1014
|
(signal) => {
|
|
613
|
-
return
|
|
614
|
-
url: `/_widgets/UserProfile/
|
|
615
|
-
method: "GET",
|
|
616
|
-
signal
|
|
617
|
-
});
|
|
618
|
-
},
|
|
619
|
-
[authenticationInformation]
|
|
620
|
-
);
|
|
621
|
-
};
|
|
622
|
-
const getAuthenticationInformationQueryKey = () => {
|
|
623
|
-
return [`/_widgets/UserProfile/authentication-information`];
|
|
624
|
-
};
|
|
625
|
-
const useAuthenticationInformationQueryOptions = (options) => {
|
|
626
|
-
const { query: queryOptions } = options ?? {};
|
|
627
|
-
const queryKey = queryOptions?.queryKey ?? getAuthenticationInformationQueryKey();
|
|
628
|
-
const authenticationInformation = useAuthenticationInformationHook();
|
|
629
|
-
const queryFn = ({ signal }) => authenticationInformation(signal);
|
|
630
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
631
|
-
...queryOptions,
|
|
632
|
-
queryKey,
|
|
633
|
-
queryFn
|
|
634
|
-
});
|
|
635
|
-
return customOptions;
|
|
636
|
-
};
|
|
637
|
-
function useAuthenticationInformation(options, queryClient) {
|
|
638
|
-
const queryOptions = useAuthenticationInformationQueryOptions(options);
|
|
639
|
-
const query = useQuery(queryOptions, queryClient);
|
|
640
|
-
query.queryKey = queryOptions.queryKey;
|
|
641
|
-
return query;
|
|
642
|
-
}
|
|
643
|
-
const useCreatePasswordHook = () => {
|
|
644
|
-
const createPassword = useWidgetsApiClient();
|
|
645
|
-
return useCallback(
|
|
646
|
-
(createPasswordRequest, signal) => {
|
|
647
|
-
return createPassword({
|
|
648
|
-
url: `/_widgets/UserProfile/create-password`,
|
|
1015
|
+
return sendVerification({
|
|
1016
|
+
url: `/_widgets/UserProfile/send-verification`,
|
|
649
1017
|
method: "POST",
|
|
650
|
-
headers: { "Content-Type": "application/json" },
|
|
651
|
-
data: createPasswordRequest,
|
|
652
1018
|
signal
|
|
653
1019
|
});
|
|
654
1020
|
},
|
|
655
|
-
[
|
|
1021
|
+
[sendVerification]
|
|
656
1022
|
);
|
|
657
1023
|
};
|
|
658
|
-
const
|
|
659
|
-
const mutationKey = ["
|
|
1024
|
+
const useSendVerificationMutationOptions = (options) => {
|
|
1025
|
+
const mutationKey = ["sendVerification"];
|
|
660
1026
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
661
|
-
const
|
|
662
|
-
const mutationFn = (
|
|
663
|
-
|
|
664
|
-
return createPassword(data);
|
|
1027
|
+
const sendVerification = useSendVerificationHook();
|
|
1028
|
+
const mutationFn = () => {
|
|
1029
|
+
return sendVerification();
|
|
665
1030
|
};
|
|
666
1031
|
return { mutationFn, ...mutationOptions };
|
|
667
1032
|
};
|
|
668
|
-
const
|
|
669
|
-
const mutationOptions =
|
|
1033
|
+
const useSendVerification = (options, queryClient) => {
|
|
1034
|
+
const mutationOptions = useSendVerificationMutationOptions(options);
|
|
670
1035
|
return useMutation(mutationOptions, queryClient);
|
|
671
1036
|
};
|
|
672
|
-
const
|
|
673
|
-
const
|
|
1037
|
+
const useSessionsHook = () => {
|
|
1038
|
+
const sessions = useWidgetsApiClient();
|
|
674
1039
|
return useCallback(
|
|
675
|
-
(
|
|
676
|
-
return
|
|
677
|
-
url: `/_widgets/UserProfile/
|
|
678
|
-
method: "
|
|
679
|
-
headers: { "Content-Type": "application/json" },
|
|
680
|
-
data: updatePasswordRequest,
|
|
1040
|
+
(signal) => {
|
|
1041
|
+
return sessions({
|
|
1042
|
+
url: `/_widgets/UserProfile/sessions`,
|
|
1043
|
+
method: "GET",
|
|
681
1044
|
signal
|
|
682
1045
|
});
|
|
683
1046
|
},
|
|
684
|
-
[
|
|
1047
|
+
[sessions]
|
|
685
1048
|
);
|
|
686
1049
|
};
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
690
|
-
const updatePassword = useUpdatePasswordHook();
|
|
691
|
-
const mutationFn = (props) => {
|
|
692
|
-
const { data } = props ?? {};
|
|
693
|
-
return updatePassword(data);
|
|
694
|
-
};
|
|
695
|
-
return { mutationFn, ...mutationOptions };
|
|
1050
|
+
const getSessionsQueryKey = () => {
|
|
1051
|
+
return [`/_widgets/UserProfile/sessions`];
|
|
696
1052
|
};
|
|
697
|
-
const
|
|
698
|
-
const
|
|
699
|
-
|
|
1053
|
+
const useSessionsQueryOptions = (options) => {
|
|
1054
|
+
const { query: queryOptions } = options ?? {};
|
|
1055
|
+
const queryKey = queryOptions?.queryKey ?? getSessionsQueryKey();
|
|
1056
|
+
const sessions = useSessionsHook();
|
|
1057
|
+
const queryFn = ({ signal }) => sessions(signal);
|
|
1058
|
+
const customOptions = useWidgetsApiQueryOptions({
|
|
1059
|
+
...queryOptions,
|
|
1060
|
+
queryKey,
|
|
1061
|
+
queryFn
|
|
1062
|
+
});
|
|
1063
|
+
return customOptions;
|
|
700
1064
|
};
|
|
1065
|
+
function useSessions(options, queryClient) {
|
|
1066
|
+
const queryOptions = useSessionsQueryOptions(options);
|
|
1067
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1068
|
+
query.queryKey = queryOptions.queryKey;
|
|
1069
|
+
return query;
|
|
1070
|
+
}
|
|
701
1071
|
const useRevokeAllSessionsHook = () => {
|
|
702
1072
|
const revokeAllSessions = useWidgetsApiClient();
|
|
703
1073
|
return useCallback(
|
|
@@ -752,64 +1122,55 @@ const useRevokeSession = (options, queryClient) => {
|
|
|
752
1122
|
const mutationOptions = useRevokeSessionMutationOptions(options);
|
|
753
1123
|
return useMutation(mutationOptions, queryClient);
|
|
754
1124
|
};
|
|
755
|
-
const
|
|
756
|
-
const
|
|
757
|
-
return useCallback(
|
|
758
|
-
(
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
});
|
|
764
|
-
},
|
|
765
|
-
[sessions]
|
|
766
|
-
);
|
|
1125
|
+
const useDeleteTotpFactorsHook = () => {
|
|
1126
|
+
const deleteTotpFactors = useWidgetsApiClient();
|
|
1127
|
+
return useCallback(() => {
|
|
1128
|
+
return deleteTotpFactors({
|
|
1129
|
+
url: `/_widgets/UserProfile/totp-factors`,
|
|
1130
|
+
method: "DELETE"
|
|
1131
|
+
});
|
|
1132
|
+
}, [deleteTotpFactors]);
|
|
767
1133
|
};
|
|
768
|
-
const
|
|
769
|
-
|
|
1134
|
+
const useDeleteTotpFactorsMutationOptions = (options) => {
|
|
1135
|
+
const mutationKey = ["deleteTotpFactors"];
|
|
1136
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1137
|
+
const deleteTotpFactors = useDeleteTotpFactorsHook();
|
|
1138
|
+
const mutationFn = () => {
|
|
1139
|
+
return deleteTotpFactors();
|
|
1140
|
+
};
|
|
1141
|
+
return { mutationFn, ...mutationOptions };
|
|
770
1142
|
};
|
|
771
|
-
const
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
const sessions = useSessionsHook();
|
|
775
|
-
const queryFn = ({ signal }) => sessions(signal);
|
|
776
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
777
|
-
...queryOptions,
|
|
778
|
-
queryKey,
|
|
779
|
-
queryFn
|
|
780
|
-
});
|
|
781
|
-
return customOptions;
|
|
1143
|
+
const useDeleteTotpFactors = (options, queryClient) => {
|
|
1144
|
+
const mutationOptions = useDeleteTotpFactorsMutationOptions(options);
|
|
1145
|
+
return useMutation(mutationOptions, queryClient);
|
|
782
1146
|
};
|
|
783
|
-
|
|
784
|
-
const
|
|
785
|
-
const query = useQuery(queryOptions, queryClient);
|
|
786
|
-
query.queryKey = queryOptions.queryKey;
|
|
787
|
-
return query;
|
|
788
|
-
}
|
|
789
|
-
const useSendVerificationHook = () => {
|
|
790
|
-
const sendVerification = useWidgetsApiClient();
|
|
1147
|
+
const useUpdatePasswordHook = () => {
|
|
1148
|
+
const updatePassword = useWidgetsApiClient();
|
|
791
1149
|
return useCallback(
|
|
792
|
-
(signal) => {
|
|
793
|
-
return
|
|
794
|
-
url: `/_widgets/UserProfile/
|
|
1150
|
+
(updatePasswordRequest, signal) => {
|
|
1151
|
+
return updatePassword({
|
|
1152
|
+
url: `/_widgets/UserProfile/update-password`,
|
|
795
1153
|
method: "POST",
|
|
1154
|
+
headers: { "Content-Type": "application/json" },
|
|
1155
|
+
data: updatePasswordRequest,
|
|
796
1156
|
signal
|
|
797
1157
|
});
|
|
798
1158
|
},
|
|
799
|
-
[
|
|
1159
|
+
[updatePassword]
|
|
800
1160
|
);
|
|
801
1161
|
};
|
|
802
|
-
const
|
|
803
|
-
const mutationKey = ["
|
|
1162
|
+
const useUpdatePasswordMutationOptions = (options) => {
|
|
1163
|
+
const mutationKey = ["updatePassword"];
|
|
804
1164
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
805
|
-
const
|
|
806
|
-
const mutationFn = () => {
|
|
807
|
-
|
|
1165
|
+
const updatePassword = useUpdatePasswordHook();
|
|
1166
|
+
const mutationFn = (props) => {
|
|
1167
|
+
const { data } = props ?? {};
|
|
1168
|
+
return updatePassword(data);
|
|
808
1169
|
};
|
|
809
1170
|
return { mutationFn, ...mutationOptions };
|
|
810
1171
|
};
|
|
811
|
-
const
|
|
812
|
-
const mutationOptions =
|
|
1172
|
+
const useUpdatePassword = (options, queryClient) => {
|
|
1173
|
+
const mutationOptions = useUpdatePasswordMutationOptions(options);
|
|
813
1174
|
return useMutation(mutationOptions, queryClient);
|
|
814
1175
|
};
|
|
815
1176
|
const useVerifyHook = () => {
|
|
@@ -841,117 +1202,63 @@ const useVerify = (options, queryClient) => {
|
|
|
841
1202
|
const mutationOptions = useVerifyMutationOptions(options);
|
|
842
1203
|
return useMutation(mutationOptions, queryClient);
|
|
843
1204
|
};
|
|
844
|
-
const
|
|
845
|
-
const
|
|
846
|
-
return useCallback(
|
|
847
|
-
(signal) => {
|
|
848
|
-
return registerPasskey({
|
|
849
|
-
url: `/_widgets/UserProfile/passkeys`,
|
|
850
|
-
method: "POST",
|
|
851
|
-
signal
|
|
852
|
-
});
|
|
853
|
-
},
|
|
854
|
-
[registerPasskey]
|
|
855
|
-
);
|
|
856
|
-
};
|
|
857
|
-
const useRegisterPasskeyMutationOptions = (options) => {
|
|
858
|
-
const mutationKey = ["registerPasskey"];
|
|
859
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
860
|
-
const registerPasskey = useRegisterPasskeyHook();
|
|
861
|
-
const mutationFn = () => {
|
|
862
|
-
return registerPasskey();
|
|
863
|
-
};
|
|
864
|
-
return { mutationFn, ...mutationOptions };
|
|
865
|
-
};
|
|
866
|
-
const useRegisterPasskey = (options, queryClient) => {
|
|
867
|
-
const mutationOptions = useRegisterPasskeyMutationOptions(options);
|
|
868
|
-
return useMutation(mutationOptions, queryClient);
|
|
869
|
-
};
|
|
870
|
-
const useVerifyPasskeyHook = () => {
|
|
871
|
-
const verifyPasskey = useWidgetsApiClient();
|
|
1205
|
+
const useVerifyTotpFactorHook = () => {
|
|
1206
|
+
const verifyTotpFactor = useWidgetsApiClient();
|
|
872
1207
|
return useCallback(
|
|
873
|
-
(
|
|
874
|
-
return
|
|
875
|
-
url: `/_widgets/UserProfile/
|
|
1208
|
+
(verifyTotpFactorRequest, signal) => {
|
|
1209
|
+
return verifyTotpFactor({
|
|
1210
|
+
url: `/_widgets/UserProfile/verify-totp-factor`,
|
|
876
1211
|
method: "POST",
|
|
877
1212
|
headers: { "Content-Type": "application/json" },
|
|
878
|
-
data:
|
|
1213
|
+
data: verifyTotpFactorRequest,
|
|
879
1214
|
signal
|
|
880
1215
|
});
|
|
881
1216
|
},
|
|
882
|
-
[
|
|
1217
|
+
[verifyTotpFactor]
|
|
883
1218
|
);
|
|
884
1219
|
};
|
|
885
|
-
const
|
|
886
|
-
const mutationKey = ["
|
|
1220
|
+
const useVerifyTotpFactorMutationOptions = (options) => {
|
|
1221
|
+
const mutationKey = ["verifyTotpFactor"];
|
|
887
1222
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
888
|
-
const
|
|
1223
|
+
const verifyTotpFactor = useVerifyTotpFactorHook();
|
|
889
1224
|
const mutationFn = (props) => {
|
|
890
1225
|
const { data } = props ?? {};
|
|
891
|
-
return
|
|
1226
|
+
return verifyTotpFactor(data);
|
|
892
1227
|
};
|
|
893
1228
|
return { mutationFn, ...mutationOptions };
|
|
894
1229
|
};
|
|
895
|
-
const
|
|
896
|
-
const mutationOptions =
|
|
1230
|
+
const useVerifyTotpFactor = (options, queryClient) => {
|
|
1231
|
+
const mutationOptions = useVerifyTotpFactorMutationOptions(options);
|
|
897
1232
|
return useMutation(mutationOptions, queryClient);
|
|
898
1233
|
};
|
|
899
|
-
const
|
|
900
|
-
const
|
|
1234
|
+
const useGenerateAdminPortalLinkHook = () => {
|
|
1235
|
+
const generateAdminPortalLink = useWidgetsApiClient();
|
|
901
1236
|
return useCallback(
|
|
902
|
-
(
|
|
903
|
-
return
|
|
904
|
-
url: `/_widgets/
|
|
905
|
-
method: "
|
|
1237
|
+
(params, signal) => {
|
|
1238
|
+
return generateAdminPortalLink({
|
|
1239
|
+
url: `/_widgets/admin-portal/generate-link`,
|
|
1240
|
+
method: "POST",
|
|
1241
|
+
params,
|
|
1242
|
+
signal
|
|
906
1243
|
});
|
|
907
1244
|
},
|
|
908
|
-
[
|
|
1245
|
+
[generateAdminPortalLink]
|
|
909
1246
|
);
|
|
910
1247
|
};
|
|
911
|
-
const
|
|
912
|
-
const mutationKey = ["
|
|
1248
|
+
const useGenerateAdminPortalLinkMutationOptions = (options) => {
|
|
1249
|
+
const mutationKey = ["generateAdminPortalLink"];
|
|
913
1250
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
914
|
-
const
|
|
1251
|
+
const generateAdminPortalLink = useGenerateAdminPortalLinkHook();
|
|
915
1252
|
const mutationFn = (props) => {
|
|
916
|
-
const {
|
|
917
|
-
return
|
|
1253
|
+
const { params } = props ?? {};
|
|
1254
|
+
return generateAdminPortalLink(params);
|
|
918
1255
|
};
|
|
919
1256
|
return { mutationFn, ...mutationOptions };
|
|
920
1257
|
};
|
|
921
|
-
const
|
|
922
|
-
const mutationOptions =
|
|
1258
|
+
const useGenerateAdminPortalLink = (options, queryClient) => {
|
|
1259
|
+
const mutationOptions = useGenerateAdminPortalLinkMutationOptions(options);
|
|
923
1260
|
return useMutation(mutationOptions, queryClient);
|
|
924
1261
|
};
|
|
925
|
-
const useSettingsHook = () => {
|
|
926
|
-
const settings = useWidgetsApiClient();
|
|
927
|
-
return useCallback(
|
|
928
|
-
(signal) => {
|
|
929
|
-
return settings({ url: `/_widgets/settings`, method: "GET", signal });
|
|
930
|
-
},
|
|
931
|
-
[settings]
|
|
932
|
-
);
|
|
933
|
-
};
|
|
934
|
-
const getSettingsQueryKey = () => {
|
|
935
|
-
return [`/_widgets/settings`];
|
|
936
|
-
};
|
|
937
|
-
const useSettingsQueryOptions = (options) => {
|
|
938
|
-
const { query: queryOptions } = options ?? {};
|
|
939
|
-
const queryKey = queryOptions?.queryKey ?? getSettingsQueryKey();
|
|
940
|
-
const settings = useSettingsHook();
|
|
941
|
-
const queryFn = ({ signal }) => settings(signal);
|
|
942
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
943
|
-
...queryOptions,
|
|
944
|
-
queryKey,
|
|
945
|
-
queryFn
|
|
946
|
-
});
|
|
947
|
-
return customOptions;
|
|
948
|
-
};
|
|
949
|
-
function useSettings(options, queryClient) {
|
|
950
|
-
const queryOptions = useSettingsQueryOptions(options);
|
|
951
|
-
const query = useQuery(queryOptions, queryClient);
|
|
952
|
-
query.queryKey = queryOptions.queryKey;
|
|
953
|
-
return query;
|
|
954
|
-
}
|
|
955
1262
|
const useListOrganizationDomainsHook = () => {
|
|
956
1263
|
const listOrganizationDomains = useWidgetsApiClient();
|
|
957
1264
|
return useCallback(
|
|
@@ -981,39 +1288,11 @@ const useListOrganizationDomainsQueryOptions = (options) => {
|
|
|
981
1288
|
return customOptions;
|
|
982
1289
|
};
|
|
983
1290
|
function useListOrganizationDomains(options, queryClient) {
|
|
984
|
-
const queryOptions = useListOrganizationDomainsQueryOptions(options);
|
|
985
|
-
const query = useQuery(queryOptions, queryClient);
|
|
986
|
-
query.queryKey = queryOptions.queryKey;
|
|
987
|
-
return query;
|
|
988
|
-
}
|
|
989
|
-
const useGenerateAdminPortalLinkHook = () => {
|
|
990
|
-
const generateAdminPortalLink = useWidgetsApiClient();
|
|
991
|
-
return useCallback(
|
|
992
|
-
(params, signal) => {
|
|
993
|
-
return generateAdminPortalLink({
|
|
994
|
-
url: `/_widgets/admin-portal/generate-link`,
|
|
995
|
-
method: "POST",
|
|
996
|
-
params,
|
|
997
|
-
signal
|
|
998
|
-
});
|
|
999
|
-
},
|
|
1000
|
-
[generateAdminPortalLink]
|
|
1001
|
-
);
|
|
1002
|
-
};
|
|
1003
|
-
const useGenerateAdminPortalLinkMutationOptions = (options) => {
|
|
1004
|
-
const mutationKey = ["generateAdminPortalLink"];
|
|
1005
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1006
|
-
const generateAdminPortalLink = useGenerateAdminPortalLinkHook();
|
|
1007
|
-
const mutationFn = (props) => {
|
|
1008
|
-
const { params } = props ?? {};
|
|
1009
|
-
return generateAdminPortalLink(params);
|
|
1010
|
-
};
|
|
1011
|
-
return { mutationFn, ...mutationOptions };
|
|
1012
|
-
};
|
|
1013
|
-
const useGenerateAdminPortalLink = (options, queryClient) => {
|
|
1014
|
-
const mutationOptions = useGenerateAdminPortalLinkMutationOptions(options);
|
|
1015
|
-
return useMutation(mutationOptions, queryClient);
|
|
1016
|
-
};
|
|
1291
|
+
const queryOptions = useListOrganizationDomainsQueryOptions(options);
|
|
1292
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1293
|
+
query.queryKey = queryOptions.queryKey;
|
|
1294
|
+
return query;
|
|
1295
|
+
}
|
|
1017
1296
|
const useDeleteOrganizationDomainHook = () => {
|
|
1018
1297
|
const deleteOrganizationDomain = useWidgetsApiClient();
|
|
1019
1298
|
return useCallback(
|
|
@@ -1101,199 +1380,27 @@ function useListSsoConnections(options, queryClient) {
|
|
|
1101
1380
|
query.queryKey = queryOptions.queryKey;
|
|
1102
1381
|
return query;
|
|
1103
1382
|
}
|
|
1104
|
-
const
|
|
1105
|
-
const
|
|
1106
|
-
return useCallback(
|
|
1107
|
-
(createOrganizationApiKeyRequest, signal) => {
|
|
1108
|
-
return createOrganizationApiKey({
|
|
1109
|
-
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
1110
|
-
method: "POST",
|
|
1111
|
-
headers: { "Content-Type": "application/json" },
|
|
1112
|
-
data: createOrganizationApiKeyRequest,
|
|
1113
|
-
signal
|
|
1114
|
-
});
|
|
1115
|
-
},
|
|
1116
|
-
[createOrganizationApiKey]
|
|
1117
|
-
);
|
|
1118
|
-
};
|
|
1119
|
-
const useCreateOrganizationApiKeyMutationOptions = (options) => {
|
|
1120
|
-
const mutationKey = ["createOrganizationApiKey"];
|
|
1121
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1122
|
-
const createOrganizationApiKey = useCreateOrganizationApiKeyHook();
|
|
1123
|
-
const mutationFn = (props) => {
|
|
1124
|
-
const { data } = props ?? {};
|
|
1125
|
-
return createOrganizationApiKey(data);
|
|
1126
|
-
};
|
|
1127
|
-
return { mutationFn, ...mutationOptions };
|
|
1128
|
-
};
|
|
1129
|
-
const useCreateOrganizationApiKey = (options, queryClient) => {
|
|
1130
|
-
const mutationOptions = useCreateOrganizationApiKeyMutationOptions(options);
|
|
1131
|
-
return useMutation(mutationOptions, queryClient);
|
|
1132
|
-
};
|
|
1133
|
-
const useListOrganizationApiKeysHook = () => {
|
|
1134
|
-
const listOrganizationApiKeys = useWidgetsApiClient();
|
|
1135
|
-
return useCallback(
|
|
1136
|
-
(params, signal) => {
|
|
1137
|
-
return listOrganizationApiKeys({
|
|
1138
|
-
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
1139
|
-
method: "GET",
|
|
1140
|
-
params,
|
|
1141
|
-
signal
|
|
1142
|
-
});
|
|
1143
|
-
},
|
|
1144
|
-
[listOrganizationApiKeys]
|
|
1145
|
-
);
|
|
1146
|
-
};
|
|
1147
|
-
const getListOrganizationApiKeysQueryKey = (params) => {
|
|
1148
|
-
return [
|
|
1149
|
-
`/_widgets/ApiKeys/organization-api-keys`,
|
|
1150
|
-
...params ? [params] : []
|
|
1151
|
-
];
|
|
1152
|
-
};
|
|
1153
|
-
const useListOrganizationApiKeysQueryOptions = (params, options) => {
|
|
1154
|
-
const { query: queryOptions } = options ?? {};
|
|
1155
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeysQueryKey(params);
|
|
1156
|
-
const listOrganizationApiKeys = useListOrganizationApiKeysHook();
|
|
1157
|
-
const queryFn = ({ signal }) => listOrganizationApiKeys(params, signal);
|
|
1158
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
1159
|
-
...queryOptions,
|
|
1160
|
-
queryKey,
|
|
1161
|
-
queryFn
|
|
1162
|
-
});
|
|
1163
|
-
return customOptions;
|
|
1164
|
-
};
|
|
1165
|
-
function useListOrganizationApiKeys(params, options, queryClient) {
|
|
1166
|
-
const queryOptions = useListOrganizationApiKeysQueryOptions(params, options);
|
|
1167
|
-
const query = useQuery(queryOptions, queryClient);
|
|
1168
|
-
query.queryKey = queryOptions.queryKey;
|
|
1169
|
-
return query;
|
|
1170
|
-
}
|
|
1171
|
-
const useListOrganizationApiKeyPermissionsHook = () => {
|
|
1172
|
-
const listOrganizationApiKeyPermissions = useWidgetsApiClient();
|
|
1173
|
-
return useCallback(
|
|
1174
|
-
(params, signal) => {
|
|
1175
|
-
return listOrganizationApiKeyPermissions({
|
|
1176
|
-
url: `/_widgets/ApiKeys/permissions`,
|
|
1177
|
-
method: "GET",
|
|
1178
|
-
params,
|
|
1179
|
-
signal
|
|
1180
|
-
});
|
|
1181
|
-
},
|
|
1182
|
-
[listOrganizationApiKeyPermissions]
|
|
1183
|
-
);
|
|
1184
|
-
};
|
|
1185
|
-
const getListOrganizationApiKeyPermissionsQueryKey = (params) => {
|
|
1186
|
-
return [
|
|
1187
|
-
`/_widgets/ApiKeys/permissions`,
|
|
1188
|
-
...params ? [params] : []
|
|
1189
|
-
];
|
|
1190
|
-
};
|
|
1191
|
-
const useListOrganizationApiKeyPermissionsQueryOptions = (params, options) => {
|
|
1192
|
-
const { query: queryOptions } = options ?? {};
|
|
1193
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeyPermissionsQueryKey(params);
|
|
1194
|
-
const listOrganizationApiKeyPermissions = useListOrganizationApiKeyPermissionsHook();
|
|
1195
|
-
const queryFn = ({ signal }) => listOrganizationApiKeyPermissions(params, signal);
|
|
1196
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
1197
|
-
...queryOptions,
|
|
1198
|
-
queryKey,
|
|
1199
|
-
queryFn
|
|
1200
|
-
});
|
|
1201
|
-
return customOptions;
|
|
1202
|
-
};
|
|
1203
|
-
function useListOrganizationApiKeyPermissions(params, options, queryClient) {
|
|
1204
|
-
const queryOptions = useListOrganizationApiKeyPermissionsQueryOptions(
|
|
1205
|
-
params,
|
|
1206
|
-
options
|
|
1207
|
-
);
|
|
1208
|
-
const query = useQuery(queryOptions, queryClient);
|
|
1209
|
-
query.queryKey = queryOptions.queryKey;
|
|
1210
|
-
return query;
|
|
1211
|
-
}
|
|
1212
|
-
const useDeleteOrganizationApiKeyHook = () => {
|
|
1213
|
-
const deleteOrganizationApiKey = useWidgetsApiClient();
|
|
1214
|
-
return useCallback(
|
|
1215
|
-
(apiKeyId) => {
|
|
1216
|
-
return deleteOrganizationApiKey({
|
|
1217
|
-
url: `/_widgets/ApiKeys/${apiKeyId}`,
|
|
1218
|
-
method: "DELETE"
|
|
1219
|
-
});
|
|
1220
|
-
},
|
|
1221
|
-
[deleteOrganizationApiKey]
|
|
1222
|
-
);
|
|
1223
|
-
};
|
|
1224
|
-
const useDeleteOrganizationApiKeyMutationOptions = (options) => {
|
|
1225
|
-
const mutationKey = ["deleteOrganizationApiKey"];
|
|
1226
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1227
|
-
const deleteOrganizationApiKey = useDeleteOrganizationApiKeyHook();
|
|
1228
|
-
const mutationFn = (props) => {
|
|
1229
|
-
const { apiKeyId } = props ?? {};
|
|
1230
|
-
return deleteOrganizationApiKey(apiKeyId);
|
|
1231
|
-
};
|
|
1232
|
-
return { mutationFn, ...mutationOptions };
|
|
1233
|
-
};
|
|
1234
|
-
const useDeleteOrganizationApiKey = (options, queryClient) => {
|
|
1235
|
-
const mutationOptions = useDeleteOrganizationApiKeyMutationOptions(options);
|
|
1236
|
-
return useMutation(mutationOptions, queryClient);
|
|
1237
|
-
};
|
|
1238
|
-
const useMyDataIntegrationsHook = () => {
|
|
1239
|
-
const myDataIntegrations = useWidgetsApiClient();
|
|
1383
|
+
const useListDirectoriesHook = () => {
|
|
1384
|
+
const listDirectories = useWidgetsApiClient();
|
|
1240
1385
|
return useCallback(
|
|
1241
1386
|
(signal) => {
|
|
1242
|
-
return
|
|
1243
|
-
url: `/_widgets/
|
|
1244
|
-
method: "GET",
|
|
1245
|
-
signal
|
|
1246
|
-
});
|
|
1247
|
-
},
|
|
1248
|
-
[myDataIntegrations]
|
|
1249
|
-
);
|
|
1250
|
-
};
|
|
1251
|
-
const getMyDataIntegrationsQueryKey = () => {
|
|
1252
|
-
return [`/_widgets/DataIntegrations/mine`];
|
|
1253
|
-
};
|
|
1254
|
-
const useMyDataIntegrationsQueryOptions = (options) => {
|
|
1255
|
-
const { query: queryOptions } = options ?? {};
|
|
1256
|
-
const queryKey = queryOptions?.queryKey ?? getMyDataIntegrationsQueryKey();
|
|
1257
|
-
const myDataIntegrations = useMyDataIntegrationsHook();
|
|
1258
|
-
const queryFn = ({ signal }) => myDataIntegrations(signal);
|
|
1259
|
-
const customOptions = useWidgetsApiQueryOptions({
|
|
1260
|
-
...queryOptions,
|
|
1261
|
-
queryKey,
|
|
1262
|
-
queryFn
|
|
1263
|
-
});
|
|
1264
|
-
return customOptions;
|
|
1265
|
-
};
|
|
1266
|
-
function useMyDataIntegrations(options, queryClient) {
|
|
1267
|
-
const queryOptions = useMyDataIntegrationsQueryOptions(options);
|
|
1268
|
-
const query = useQuery(queryOptions, queryClient);
|
|
1269
|
-
query.queryKey = queryOptions.queryKey;
|
|
1270
|
-
return query;
|
|
1271
|
-
}
|
|
1272
|
-
const useGetDataIntegrationAuthorizeUrlHook = () => {
|
|
1273
|
-
const getDataIntegrationAuthorizeUrl = useWidgetsApiClient();
|
|
1274
|
-
return useCallback(
|
|
1275
|
-
(slug, params, signal) => {
|
|
1276
|
-
return getDataIntegrationAuthorizeUrl({
|
|
1277
|
-
url: `/_widgets/DataIntegrations/${slug}/authorize`,
|
|
1387
|
+
return listDirectories({
|
|
1388
|
+
url: `/_widgets/directory-sync/directories`,
|
|
1278
1389
|
method: "GET",
|
|
1279
|
-
params,
|
|
1280
1390
|
signal
|
|
1281
1391
|
});
|
|
1282
1392
|
},
|
|
1283
|
-
[
|
|
1393
|
+
[listDirectories]
|
|
1284
1394
|
);
|
|
1285
1395
|
};
|
|
1286
|
-
const
|
|
1287
|
-
return [
|
|
1288
|
-
`/_widgets/DataIntegrations/${slug}/authorize`,
|
|
1289
|
-
...params ? [params] : []
|
|
1290
|
-
];
|
|
1396
|
+
const getListDirectoriesQueryKey = () => {
|
|
1397
|
+
return [`/_widgets/directory-sync/directories`];
|
|
1291
1398
|
};
|
|
1292
|
-
const
|
|
1399
|
+
const useListDirectoriesQueryOptions = (options) => {
|
|
1293
1400
|
const { query: queryOptions } = options ?? {};
|
|
1294
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1295
|
-
const
|
|
1296
|
-
const queryFn = ({ signal }) =>
|
|
1401
|
+
const queryKey = queryOptions?.queryKey ?? getListDirectoriesQueryKey();
|
|
1402
|
+
const listDirectories = useListDirectoriesHook();
|
|
1403
|
+
const queryFn = ({ signal }) => listDirectories(signal);
|
|
1297
1404
|
const customOptions = useWidgetsApiQueryOptions({
|
|
1298
1405
|
...queryOptions,
|
|
1299
1406
|
queryKey,
|
|
@@ -1301,39 +1408,29 @@ const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, params, options) =>
|
|
|
1301
1408
|
});
|
|
1302
1409
|
return customOptions;
|
|
1303
1410
|
};
|
|
1304
|
-
function
|
|
1305
|
-
const queryOptions =
|
|
1306
|
-
slug,
|
|
1307
|
-
params,
|
|
1308
|
-
options
|
|
1309
|
-
);
|
|
1411
|
+
function useListDirectories(options, queryClient) {
|
|
1412
|
+
const queryOptions = useListDirectoriesQueryOptions(options);
|
|
1310
1413
|
const query = useQuery(queryOptions, queryClient);
|
|
1311
1414
|
query.queryKey = queryOptions.queryKey;
|
|
1312
1415
|
return query;
|
|
1313
1416
|
}
|
|
1314
|
-
const
|
|
1315
|
-
const
|
|
1417
|
+
const useSettingsHook = () => {
|
|
1418
|
+
const settings = useWidgetsApiClient();
|
|
1316
1419
|
return useCallback(
|
|
1317
|
-
(
|
|
1318
|
-
return
|
|
1319
|
-
url: `/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`,
|
|
1320
|
-
method: "GET",
|
|
1321
|
-
signal
|
|
1322
|
-
});
|
|
1420
|
+
(signal) => {
|
|
1421
|
+
return settings({ url: `/_widgets/settings`, method: "GET", signal });
|
|
1323
1422
|
},
|
|
1324
|
-
[
|
|
1423
|
+
[settings]
|
|
1325
1424
|
);
|
|
1326
1425
|
};
|
|
1327
|
-
const
|
|
1328
|
-
return [
|
|
1329
|
-
`/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`
|
|
1330
|
-
];
|
|
1426
|
+
const getSettingsQueryKey = () => {
|
|
1427
|
+
return [`/_widgets/settings`];
|
|
1331
1428
|
};
|
|
1332
|
-
const
|
|
1429
|
+
const useSettingsQueryOptions = (options) => {
|
|
1333
1430
|
const { query: queryOptions } = options ?? {};
|
|
1334
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1335
|
-
const
|
|
1336
|
-
const queryFn = ({ signal }) =>
|
|
1431
|
+
const queryKey = queryOptions?.queryKey ?? getSettingsQueryKey();
|
|
1432
|
+
const settings = useSettingsHook();
|
|
1433
|
+
const queryFn = ({ signal }) => settings(signal);
|
|
1337
1434
|
const customOptions = useWidgetsApiQueryOptions({
|
|
1338
1435
|
...queryOptions,
|
|
1339
1436
|
queryKey,
|
|
@@ -1341,55 +1438,27 @@ const useGetDataInstallationAuthorizationStatusQueryOptions = (dataIntegrationId
|
|
|
1341
1438
|
});
|
|
1342
1439
|
return customOptions;
|
|
1343
1440
|
};
|
|
1344
|
-
function
|
|
1345
|
-
const queryOptions =
|
|
1346
|
-
dataIntegrationId,
|
|
1347
|
-
state,
|
|
1348
|
-
options
|
|
1349
|
-
);
|
|
1441
|
+
function useSettings(options, queryClient) {
|
|
1442
|
+
const queryOptions = useSettingsQueryOptions(options);
|
|
1350
1443
|
const query = useQuery(queryOptions, queryClient);
|
|
1351
1444
|
query.queryKey = queryOptions.queryKey;
|
|
1352
1445
|
return query;
|
|
1353
1446
|
}
|
|
1354
|
-
const useDeleteDataInstallationHook = () => {
|
|
1355
|
-
const deleteDataInstallation = useWidgetsApiClient();
|
|
1356
|
-
return useCallback(
|
|
1357
|
-
(installationId) => {
|
|
1358
|
-
return deleteDataInstallation({
|
|
1359
|
-
url: `/_widgets/DataIntegrations/installations/${installationId}`,
|
|
1360
|
-
method: "DELETE"
|
|
1361
|
-
});
|
|
1362
|
-
},
|
|
1363
|
-
[deleteDataInstallation]
|
|
1364
|
-
);
|
|
1365
|
-
};
|
|
1366
|
-
const useDeleteDataInstallationMutationOptions = (options) => {
|
|
1367
|
-
const mutationKey = ["deleteDataInstallation"];
|
|
1368
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1369
|
-
const deleteDataInstallation = useDeleteDataInstallationHook();
|
|
1370
|
-
const mutationFn = (props) => {
|
|
1371
|
-
const { installationId } = props ?? {};
|
|
1372
|
-
return deleteDataInstallation(installationId);
|
|
1373
|
-
};
|
|
1374
|
-
return { mutationFn, ...mutationOptions };
|
|
1375
|
-
};
|
|
1376
|
-
const useDeleteDataInstallation = (options, queryClient) => {
|
|
1377
|
-
const mutationOptions = useDeleteDataInstallationMutationOptions(options);
|
|
1378
|
-
return useMutation(mutationOptions, queryClient);
|
|
1379
|
-
};
|
|
1380
1447
|
export {
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1448
|
+
AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider,
|
|
1449
|
+
AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider,
|
|
1450
|
+
AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider,
|
|
1384
1451
|
CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
1385
1452
|
CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
1386
1453
|
CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
1387
|
-
|
|
1388
|
-
|
|
1454
|
+
DataInstallationAllOfObject,
|
|
1455
|
+
DataInstallationAllOfState,
|
|
1389
1456
|
DataIntegrationCredentialsType,
|
|
1390
1457
|
DataIntegrationIntegrationType,
|
|
1391
1458
|
DataIntegrationObject,
|
|
1392
1459
|
DataIntegrationOwnership,
|
|
1460
|
+
DirectoryState,
|
|
1461
|
+
DirectoryType,
|
|
1393
1462
|
DomainVerificationNameServer,
|
|
1394
1463
|
GenerateAdminPortalLinkIntent,
|
|
1395
1464
|
MemberActionsItem,
|
|
@@ -1409,6 +1478,7 @@ export {
|
|
|
1409
1478
|
getAuthenticationInformationQueryKey,
|
|
1410
1479
|
getGetDataInstallationAuthorizationStatusQueryKey,
|
|
1411
1480
|
getGetDataIntegrationAuthorizeUrlQueryKey,
|
|
1481
|
+
getListDirectoriesQueryKey,
|
|
1412
1482
|
getListOrganizationApiKeyPermissionsQueryKey,
|
|
1413
1483
|
getListOrganizationApiKeysQueryKey,
|
|
1414
1484
|
getListOrganizationDomainsQueryKey,
|
|
@@ -1460,6 +1530,9 @@ export {
|
|
|
1460
1530
|
useInviteMember,
|
|
1461
1531
|
useInviteMemberHook,
|
|
1462
1532
|
useInviteMemberMutationOptions,
|
|
1533
|
+
useListDirectories,
|
|
1534
|
+
useListDirectoriesHook,
|
|
1535
|
+
useListDirectoriesQueryOptions,
|
|
1463
1536
|
useListOrganizationApiKeyPermissions,
|
|
1464
1537
|
useListOrganizationApiKeyPermissionsHook,
|
|
1465
1538
|
useListOrganizationApiKeyPermissionsQueryOptions,
|