@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.
Files changed (88) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/api/api-provider.cjs.map +1 -1
  3. package/dist/cjs/api/api-provider.d.cts +1 -1
  4. package/dist/cjs/api/endpoint.cjs +702 -623
  5. package/dist/cjs/api/endpoint.cjs.map +1 -1
  6. package/dist/cjs/api/endpoint.d.cts +810 -729
  7. package/dist/cjs/directory-sync.client.cjs +143 -0
  8. package/dist/cjs/directory-sync.client.cjs.map +1 -0
  9. package/dist/cjs/directory-sync.client.d.cts +26 -0
  10. package/dist/cjs/experimental/api/fetch.cjs +309 -252
  11. package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
  12. package/dist/cjs/experimental/api/fetch.d.cts +809 -731
  13. package/dist/cjs/experimental/api/react-query.cjs +695 -613
  14. package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
  15. package/dist/cjs/experimental/api/react-query.d.cts +1355 -1250
  16. package/dist/cjs/experimental/api/swr.cjs +660 -583
  17. package/dist/cjs/experimental/api/swr.cjs.map +1 -1
  18. package/dist/cjs/experimental/api/swr.d.cts +1307 -1212
  19. package/dist/cjs/index.cjs +5 -0
  20. package/dist/cjs/index.cjs.map +1 -1
  21. package/dist/cjs/index.d.cts +2 -0
  22. package/dist/cjs/lib/api-keys/api-keys-context.cjs +1 -1
  23. package/dist/cjs/lib/api-keys/api-keys-context.cjs.map +1 -1
  24. package/dist/cjs/lib/api-keys/api-keys-table.cjs +7 -5
  25. package/dist/cjs/lib/api-keys/api-keys-table.cjs.map +1 -1
  26. package/dist/cjs/lib/directory-sync.cjs +288 -0
  27. package/dist/cjs/lib/directory-sync.cjs.map +1 -0
  28. package/dist/cjs/lib/directory-sync.d.cts +72 -0
  29. package/dist/cjs/lib/identity-providers.cjs +57 -1
  30. package/dist/cjs/lib/identity-providers.cjs.map +1 -1
  31. package/dist/cjs/lib/identity-providers.d.cts +5 -3
  32. package/dist/cjs/lib/pipes.cjs +9 -9
  33. package/dist/cjs/lib/pipes.cjs.map +1 -1
  34. package/dist/cjs/lib/reset-mfa-dialog.cjs +2 -1
  35. package/dist/cjs/lib/reset-mfa-dialog.cjs.map +1 -1
  36. package/dist/cjs/lib/use-permissions.cjs.map +1 -1
  37. package/dist/cjs/lib/use-permissions.d.cts +1 -1
  38. package/dist/cjs/lib/users-management-context.cjs +1 -1
  39. package/dist/cjs/lib/users-management-context.cjs.map +1 -1
  40. package/dist/cjs/lib/users-management.cjs +3 -3
  41. package/dist/cjs/lib/users-management.cjs.map +1 -1
  42. package/dist/cjs/lib/utils.cjs +9 -0
  43. package/dist/cjs/lib/utils.cjs.map +1 -1
  44. package/dist/cjs/lib/utils.d.cts +16 -2
  45. package/dist/esm/api/api-provider.d.ts +1 -1
  46. package/dist/esm/api/api-provider.js.map +1 -1
  47. package/dist/esm/api/endpoint.d.ts +810 -729
  48. package/dist/esm/api/endpoint.js +691 -618
  49. package/dist/esm/api/endpoint.js.map +1 -1
  50. package/dist/esm/directory-sync.client.d.ts +26 -0
  51. package/dist/esm/directory-sync.client.js +121 -0
  52. package/dist/esm/directory-sync.client.js.map +1 -0
  53. package/dist/esm/experimental/api/fetch.d.ts +809 -731
  54. package/dist/esm/experimental/api/fetch.js +300 -247
  55. package/dist/esm/experimental/api/fetch.js.map +1 -1
  56. package/dist/esm/experimental/api/react-query.d.ts +1355 -1250
  57. package/dist/esm/experimental/api/react-query.js +683 -608
  58. package/dist/esm/experimental/api/react-query.js.map +1 -1
  59. package/dist/esm/experimental/api/swr.d.ts +1307 -1212
  60. package/dist/esm/experimental/api/swr.js +649 -578
  61. package/dist/esm/experimental/api/swr.js.map +1 -1
  62. package/dist/esm/index.d.ts +2 -0
  63. package/dist/esm/index.js +6 -0
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/lib/api-keys/api-keys-context.js +1 -1
  66. package/dist/esm/lib/api-keys/api-keys-context.js.map +1 -1
  67. package/dist/esm/lib/api-keys/api-keys-table.js +7 -5
  68. package/dist/esm/lib/api-keys/api-keys-table.js.map +1 -1
  69. package/dist/esm/lib/directory-sync.d.ts +72 -0
  70. package/dist/esm/lib/directory-sync.js +259 -0
  71. package/dist/esm/lib/directory-sync.js.map +1 -0
  72. package/dist/esm/lib/identity-providers.d.ts +5 -3
  73. package/dist/esm/lib/identity-providers.js +55 -1
  74. package/dist/esm/lib/identity-providers.js.map +1 -1
  75. package/dist/esm/lib/pipes.js +9 -10
  76. package/dist/esm/lib/pipes.js.map +1 -1
  77. package/dist/esm/lib/reset-mfa-dialog.js +2 -1
  78. package/dist/esm/lib/reset-mfa-dialog.js.map +1 -1
  79. package/dist/esm/lib/use-permissions.d.ts +1 -1
  80. package/dist/esm/lib/use-permissions.js.map +1 -1
  81. package/dist/esm/lib/users-management-context.js +1 -1
  82. package/dist/esm/lib/users-management-context.js.map +1 -1
  83. package/dist/esm/lib/users-management.js +5 -4
  84. package/dist/esm/lib/users-management.js.map +1 -1
  85. package/dist/esm/lib/utils.d.ts +16 -2
  86. package/dist/esm/lib/utils.js +8 -0
  87. package/dist/esm/lib/utils.js.map +1 -1
  88. package/package.json +3 -3
@@ -23,13 +23,13 @@ const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
23
23
  const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
24
24
  authentication_challenge: "authentication_challenge"
25
25
  };
26
- const AuthenticationInformationResponseDataVerificationMethodsMfaProvider = {
26
+ const AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider = {
27
27
  MFA: "MFA"
28
28
  };
29
- const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = {
29
+ const AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider = {
30
30
  Password: "Password"
31
31
  };
32
- const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider = {
32
+ const AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider = {
33
33
  Passkey: "Passkey"
34
34
  };
35
35
  const SendVerificationResponseType = {
@@ -127,11 +127,11 @@ const SsoConnectionAnyOfEightAllOfType = {
127
127
  const SsoConnectionAnyOfEightAllOfProviderTag = {
128
128
  OpenIdConnect: "OpenIdConnect"
129
129
  };
130
- const DataInstallationObject = {
130
+ const DataInstallationAllOfObject = {
131
131
  data_installation: "data_installation",
132
132
  connected_account: "connected_account"
133
133
  };
134
- const DataInstallationState = {
134
+ const DataInstallationAllOfState = {
135
135
  connected: "connected",
136
136
  needs_reauthorization: "needs_reauthorization"
137
137
  };
@@ -185,11 +185,62 @@ const DataIntegrationCredentialsType = {
185
185
  shared: "shared",
186
186
  custom: "custom"
187
187
  };
188
+ const DirectoryType = {
189
+ azure_scim_v20: "azure scim v2.0",
190
+ bamboohr: "bamboohr",
191
+ breathe_hr: "breathe hr",
192
+ cezanne_hr: "cezanne hr",
193
+ cyberark_scim_v20: "cyberark scim v2.0",
194
+ fourth_hr: "fourth hr",
195
+ generic_scim_v20: "generic scim v2.0",
196
+ gsuite_directory: "gsuite directory",
197
+ gusto: "gusto",
198
+ hibob: "hibob",
199
+ jump_cloud_scim_v20: "jump cloud scim v2.0",
200
+ okta_scim_v20: "okta scim v2.0",
201
+ onelogin_scim_v20: "onelogin scim v2.0",
202
+ people_hr: "people hr",
203
+ personio: "personio",
204
+ pingfederate_scim_v20: "pingfederate scim v2.0",
205
+ rippling: "rippling",
206
+ rippling_scim_v20: "rippling scim v2.0",
207
+ s3: "s3",
208
+ sailpoint_scim_v20: "sailpoint scim v2.0",
209
+ sftp: "sftp",
210
+ sftp_workday: "sftp workday",
211
+ workday: "workday"
212
+ };
213
+ const DirectoryState = {
214
+ requires_type: "requires_type",
215
+ linked: "linked",
216
+ validating: "validating",
217
+ invalid_credentials: "invalid_credentials",
218
+ unlinked: "unlinked",
219
+ deleting: "deleting"
220
+ };
188
221
  const GenerateAdminPortalLinkIntent = {
189
222
  domain_verification: "domain_verification",
190
223
  sso: "sso"
191
224
  };
192
- const getMembersUrl = (params) => {
225
+ const getCreateOrganizationApiKeyUrl = () => {
226
+ return `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
227
+ };
228
+ const createOrganizationApiKey = async (createOrganizationApiKeyRequest, options) => {
229
+ const res = await fetch(getCreateOrganizationApiKeyUrl(), {
230
+ ...options,
231
+ method: "POST",
232
+ headers: { "Content-Type": "application/json", ...options?.headers },
233
+ body: JSON.stringify(createOrganizationApiKeyRequest)
234
+ });
235
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
236
+ const data = body ? JSON.parse(body) : {};
237
+ return {
238
+ data,
239
+ status: res.status,
240
+ headers: res.headers
241
+ };
242
+ };
243
+ const getListOrganizationApiKeysUrl = (params) => {
193
244
  const normalizedParams = new URLSearchParams();
194
245
  Object.entries(params || {}).forEach(([key, value]) => {
195
246
  if (value !== void 0) {
@@ -197,36 +248,51 @@ const getMembersUrl = (params) => {
197
248
  }
198
249
  });
199
250
  const stringifiedParams = normalizedParams.toString();
200
- return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/UserManagement/members?${stringifiedParams}` : `https://api.workos.com/_widgets/UserManagement/members`;
251
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/organization-api-keys?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
201
252
  };
202
- const members = async (params, options) => {
203
- const res = await fetch(getMembersUrl(params), {
253
+ const listOrganizationApiKeys = async (params, options) => {
254
+ const res = await fetch(getListOrganizationApiKeysUrl(params), {
204
255
  ...options,
205
256
  method: "GET"
206
257
  });
207
258
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
208
259
  const data = body ? JSON.parse(body) : {};
209
- return { data, status: res.status, headers: res.headers };
260
+ return {
261
+ data,
262
+ status: res.status,
263
+ headers: res.headers
264
+ };
210
265
  };
211
- const getRolesUrl = () => {
212
- return `https://api.workos.com/_widgets/UserManagement/roles`;
266
+ const getListOrganizationApiKeyPermissionsUrl = (params) => {
267
+ const normalizedParams = new URLSearchParams();
268
+ Object.entries(params || {}).forEach(([key, value]) => {
269
+ if (value !== void 0) {
270
+ normalizedParams.append(key, value === null ? "null" : value.toString());
271
+ }
272
+ });
273
+ const stringifiedParams = normalizedParams.toString();
274
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/permissions?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/permissions`;
213
275
  };
214
- const roles = async (options) => {
215
- const res = await fetch(getRolesUrl(), {
276
+ const listOrganizationApiKeyPermissions = async (params, options) => {
277
+ const res = await fetch(getListOrganizationApiKeyPermissionsUrl(params), {
216
278
  ...options,
217
279
  method: "GET"
218
280
  });
219
281
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
220
282
  const data = body ? JSON.parse(body) : {};
221
- return { data, status: res.status, headers: res.headers };
283
+ return {
284
+ data,
285
+ status: res.status,
286
+ headers: res.headers
287
+ };
222
288
  };
223
- const getRolesAndConfigUrl = () => {
224
- return `https://api.workos.com/_widgets/UserManagement/roles-and-config`;
289
+ const getDeleteOrganizationApiKeyUrl = (apiKeyId) => {
290
+ return `https://api.workos.com/_widgets/ApiKeys/${apiKeyId}`;
225
291
  };
226
- const rolesAndConfig = async (options) => {
227
- const res = await fetch(getRolesAndConfigUrl(), {
292
+ const deleteOrganizationApiKey = async (apiKeyId, options) => {
293
+ const res = await fetch(getDeleteOrganizationApiKeyUrl(apiKeyId), {
228
294
  ...options,
229
- method: "GET"
295
+ method: "DELETE"
230
296
  });
231
297
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
232
298
  const data = body ? JSON.parse(body) : {};
@@ -236,15 +302,13 @@ const rolesAndConfig = async (options) => {
236
302
  headers: res.headers
237
303
  };
238
304
  };
239
- const getInviteMemberUrl = () => {
240
- return `https://api.workos.com/_widgets/UserManagement/invite-user`;
305
+ const getDeleteDataInstallationUrl = (installationId) => {
306
+ return `https://api.workos.com/_widgets/DataIntegrations/installations/${installationId}`;
241
307
  };
242
- const inviteMember = async (inviteMemberBody, options) => {
243
- const res = await fetch(getInviteMemberUrl(), {
308
+ const deleteDataInstallation = async (installationId, options) => {
309
+ const res = await fetch(getDeleteDataInstallationUrl(installationId), {
244
310
  ...options,
245
- method: "POST",
246
- headers: { "Content-Type": "application/json", ...options?.headers },
247
- body: JSON.stringify(inviteMemberBody)
311
+ method: "DELETE"
248
312
  });
249
313
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
250
314
  const data = body ? JSON.parse(body) : {};
@@ -254,13 +318,13 @@ const inviteMember = async (inviteMemberBody, options) => {
254
318
  headers: res.headers
255
319
  };
256
320
  };
257
- const getResendInviteUrl = (userId) => {
258
- return `https://api.workos.com/_widgets/UserManagement/invites/${userId}/resend`;
321
+ const getMyDataIntegrationsUrl = () => {
322
+ return `https://api.workos.com/_widgets/DataIntegrations/mine`;
259
323
  };
260
- const resendInvite = async (userId, options) => {
261
- const res = await fetch(getResendInviteUrl(userId), {
324
+ const myDataIntegrations = async (options) => {
325
+ const res = await fetch(getMyDataIntegrationsUrl(), {
262
326
  ...options,
263
- method: "POST"
327
+ method: "GET"
264
328
  });
265
329
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
266
330
  const data = body ? JSON.parse(body) : {};
@@ -270,14 +334,17 @@ const resendInvite = async (userId, options) => {
270
334
  headers: res.headers
271
335
  };
272
336
  };
273
- const getRevokeInviteUrl = (userId) => {
274
- return `https://api.workos.com/_widgets/UserManagement/invites/${userId}`;
337
+ const getGetDataInstallationAuthorizationStatusUrl = (dataIntegrationId, state) => {
338
+ return `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`;
275
339
  };
276
- const revokeInvite = async (userId, options) => {
277
- const res = await fetch(getRevokeInviteUrl(userId), {
278
- ...options,
279
- method: "DELETE"
280
- });
340
+ const getDataInstallationAuthorizationStatus = async (dataIntegrationId, state, options) => {
341
+ const res = await fetch(
342
+ getGetDataInstallationAuthorizationStatusUrl(dataIntegrationId, state),
343
+ {
344
+ ...options,
345
+ method: "GET"
346
+ }
347
+ );
281
348
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
282
349
  const data = body ? JSON.parse(body) : {};
283
350
  return {
@@ -286,13 +353,20 @@ const revokeInvite = async (userId, options) => {
286
353
  headers: res.headers
287
354
  };
288
355
  };
289
- const getRemoveMemberUrl = (userId) => {
290
- return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
356
+ const getGetDataIntegrationAuthorizeUrlUrl = (slug, params) => {
357
+ const normalizedParams = new URLSearchParams();
358
+ Object.entries(params || {}).forEach(([key, value]) => {
359
+ if (value !== void 0) {
360
+ normalizedParams.append(key, value === null ? "null" : value.toString());
361
+ }
362
+ });
363
+ const stringifiedParams = normalizedParams.toString();
364
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize?${stringifiedParams}` : `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`;
291
365
  };
292
- const removeMember = async (userId, options) => {
293
- const res = await fetch(getRemoveMemberUrl(userId), {
366
+ const getDataIntegrationAuthorizeUrl = async (slug, params, options) => {
367
+ const res = await fetch(getGetDataIntegrationAuthorizeUrlUrl(slug, params), {
294
368
  ...options,
295
- method: "DELETE"
369
+ method: "GET"
296
370
  });
297
371
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
298
372
  const data = body ? JSON.parse(body) : {};
@@ -302,15 +376,15 @@ const removeMember = async (userId, options) => {
302
376
  headers: res.headers
303
377
  };
304
378
  };
305
- const getUpdateMemberUrl = (userId) => {
306
- return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
379
+ const getInviteMemberUrl = () => {
380
+ return `https://api.workos.com/_widgets/UserManagement/invite-user`;
307
381
  };
308
- const updateMember = async (userId, updateMemberBody, options) => {
309
- const res = await fetch(getUpdateMemberUrl(userId), {
382
+ const inviteMember = async (inviteMemberBody, options) => {
383
+ const res = await fetch(getInviteMemberUrl(), {
310
384
  ...options,
311
385
  method: "POST",
312
386
  headers: { "Content-Type": "application/json", ...options?.headers },
313
- body: JSON.stringify(updateMemberBody)
387
+ body: JSON.stringify(inviteMemberBody)
314
388
  });
315
389
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
316
390
  const data = body ? JSON.parse(body) : {};
@@ -320,13 +394,13 @@ const updateMember = async (userId, updateMemberBody, options) => {
320
394
  headers: res.headers
321
395
  };
322
396
  };
323
- const getOrganizationsUrl = () => {
324
- return `https://api.workos.com/_widgets/UserManagement/organizations`;
397
+ const getRevokeInviteUrl = (userId) => {
398
+ return `https://api.workos.com/_widgets/UserManagement/invites/${userId}`;
325
399
  };
326
- const organizations = async (options) => {
327
- const res = await fetch(getOrganizationsUrl(), {
400
+ const revokeInvite = async (userId, options) => {
401
+ const res = await fetch(getRevokeInviteUrl(userId), {
328
402
  ...options,
329
- method: "GET"
403
+ method: "DELETE"
330
404
  });
331
405
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
332
406
  const data = body ? JSON.parse(body) : {};
@@ -336,39 +410,48 @@ const organizations = async (options) => {
336
410
  headers: res.headers
337
411
  };
338
412
  };
339
- const getMeUrl = () => {
340
- return `https://api.workos.com/_widgets/UserProfile/me`;
413
+ const getResendInviteUrl = (userId) => {
414
+ return `https://api.workos.com/_widgets/UserManagement/invites/${userId}/resend`;
341
415
  };
342
- const me = async (options) => {
343
- const res = await fetch(getMeUrl(), {
416
+ const resendInvite = async (userId, options) => {
417
+ const res = await fetch(getResendInviteUrl(userId), {
344
418
  ...options,
345
- method: "GET"
419
+ method: "POST"
346
420
  });
347
421
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
348
422
  const data = body ? JSON.parse(body) : {};
349
- return { data, status: res.status, headers: res.headers };
423
+ return {
424
+ data,
425
+ status: res.status,
426
+ headers: res.headers
427
+ };
350
428
  };
351
- const getUpdateMeUrl = () => {
352
- return `https://api.workos.com/_widgets/UserProfile/me`;
429
+ const getMembersUrl = (params) => {
430
+ const normalizedParams = new URLSearchParams();
431
+ Object.entries(params || {}).forEach(([key, value]) => {
432
+ if (value !== void 0) {
433
+ normalizedParams.append(key, value === null ? "null" : value.toString());
434
+ }
435
+ });
436
+ const stringifiedParams = normalizedParams.toString();
437
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/UserManagement/members?${stringifiedParams}` : `https://api.workos.com/_widgets/UserManagement/members`;
353
438
  };
354
- const updateMe = async (updateMeBody, options) => {
355
- const res = await fetch(getUpdateMeUrl(), {
439
+ const members = async (params, options) => {
440
+ const res = await fetch(getMembersUrl(params), {
356
441
  ...options,
357
- method: "POST",
358
- headers: { "Content-Type": "application/json", ...options?.headers },
359
- body: JSON.stringify(updateMeBody)
442
+ method: "GET"
360
443
  });
361
444
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
362
445
  const data = body ? JSON.parse(body) : {};
363
446
  return { data, status: res.status, headers: res.headers };
364
447
  };
365
- const getCreateTotpFactorUrl = () => {
366
- return `https://api.workos.com/_widgets/UserProfile/create-totp-factor`;
448
+ const getRemoveMemberUrl = (userId) => {
449
+ return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
367
450
  };
368
- const createTotpFactor = async (options) => {
369
- const res = await fetch(getCreateTotpFactorUrl(), {
451
+ const removeMember = async (userId, options) => {
452
+ const res = await fetch(getRemoveMemberUrl(userId), {
370
453
  ...options,
371
- method: "POST"
454
+ method: "DELETE"
372
455
  });
373
456
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
374
457
  const data = body ? JSON.parse(body) : {};
@@ -378,15 +461,15 @@ const createTotpFactor = async (options) => {
378
461
  headers: res.headers
379
462
  };
380
463
  };
381
- const getVerifyTotpFactorUrl = () => {
382
- return `https://api.workos.com/_widgets/UserProfile/verify-totp-factor`;
464
+ const getUpdateMemberUrl = (userId) => {
465
+ return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
383
466
  };
384
- const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
385
- const res = await fetch(getVerifyTotpFactorUrl(), {
467
+ const updateMember = async (userId, updateMemberBody, options) => {
468
+ const res = await fetch(getUpdateMemberUrl(userId), {
386
469
  ...options,
387
470
  method: "POST",
388
471
  headers: { "Content-Type": "application/json", ...options?.headers },
389
- body: JSON.stringify(verifyTotpFactorRequest)
472
+ body: JSON.stringify(updateMemberBody)
390
473
  });
391
474
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
392
475
  const data = body ? JSON.parse(body) : {};
@@ -396,13 +479,13 @@ const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
396
479
  headers: res.headers
397
480
  };
398
481
  };
399
- const getDeleteTotpFactorsUrl = () => {
400
- return `https://api.workos.com/_widgets/UserProfile/totp-factors`;
482
+ const getOrganizationsUrl = () => {
483
+ return `https://api.workos.com/_widgets/UserManagement/organizations`;
401
484
  };
402
- const deleteTotpFactors = async (options) => {
403
- const res = await fetch(getDeleteTotpFactorsUrl(), {
485
+ const organizations = async (options) => {
486
+ const res = await fetch(getOrganizationsUrl(), {
404
487
  ...options,
405
- method: "DELETE"
488
+ method: "GET"
406
489
  });
407
490
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
408
491
  const data = body ? JSON.parse(body) : {};
@@ -412,31 +495,25 @@ const deleteTotpFactors = async (options) => {
412
495
  headers: res.headers
413
496
  };
414
497
  };
415
- const getAuthenticationInformationUrl = () => {
416
- return `https://api.workos.com/_widgets/UserProfile/authentication-information`;
498
+ const getRolesUrl = () => {
499
+ return `https://api.workos.com/_widgets/UserManagement/roles`;
417
500
  };
418
- const authenticationInformation = async (options) => {
419
- const res = await fetch(getAuthenticationInformationUrl(), {
501
+ const roles = async (options) => {
502
+ const res = await fetch(getRolesUrl(), {
420
503
  ...options,
421
504
  method: "GET"
422
505
  });
423
506
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
424
507
  const data = body ? JSON.parse(body) : {};
425
- return {
426
- data,
427
- status: res.status,
428
- headers: res.headers
429
- };
508
+ return { data, status: res.status, headers: res.headers };
430
509
  };
431
- const getCreatePasswordUrl = () => {
432
- return `https://api.workos.com/_widgets/UserProfile/create-password`;
510
+ const getRolesAndConfigUrl = () => {
511
+ return `https://api.workos.com/_widgets/UserManagement/roles-and-config`;
433
512
  };
434
- const createPassword = async (createPasswordRequest, options) => {
435
- const res = await fetch(getCreatePasswordUrl(), {
513
+ const rolesAndConfig = async (options) => {
514
+ const res = await fetch(getRolesAndConfigUrl(), {
436
515
  ...options,
437
- method: "POST",
438
- headers: { "Content-Type": "application/json", ...options?.headers },
439
- body: JSON.stringify(createPasswordRequest)
516
+ method: "GET"
440
517
  });
441
518
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
442
519
  const data = body ? JSON.parse(body) : {};
@@ -446,15 +523,13 @@ const createPassword = async (createPasswordRequest, options) => {
446
523
  headers: res.headers
447
524
  };
448
525
  };
449
- const getUpdatePasswordUrl = () => {
450
- return `https://api.workos.com/_widgets/UserProfile/update-password`;
526
+ const getAuthenticationInformationUrl = () => {
527
+ return `https://api.workos.com/_widgets/UserProfile/authentication-information`;
451
528
  };
452
- const updatePassword = async (updatePasswordRequest, options) => {
453
- const res = await fetch(getUpdatePasswordUrl(), {
529
+ const authenticationInformation = async (options) => {
530
+ const res = await fetch(getAuthenticationInformationUrl(), {
454
531
  ...options,
455
- method: "POST",
456
- headers: { "Content-Type": "application/json", ...options?.headers },
457
- body: JSON.stringify(updatePasswordRequest)
532
+ method: "GET"
458
533
  });
459
534
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
460
535
  const data = body ? JSON.parse(body) : {};
@@ -464,15 +539,15 @@ const updatePassword = async (updatePasswordRequest, options) => {
464
539
  headers: res.headers
465
540
  };
466
541
  };
467
- const getRevokeAllSessionsUrl = () => {
468
- return `https://api.workos.com/_widgets/UserProfile/sessions/revoke-all`;
542
+ const getCreatePasswordUrl = () => {
543
+ return `https://api.workos.com/_widgets/UserProfile/create-password`;
469
544
  };
470
- const revokeAllSessions = async (revokeAllSessionsRequest, options) => {
471
- const res = await fetch(getRevokeAllSessionsUrl(), {
545
+ const createPassword = async (createPasswordRequest, options) => {
546
+ const res = await fetch(getCreatePasswordUrl(), {
472
547
  ...options,
473
- method: "DELETE",
548
+ method: "POST",
474
549
  headers: { "Content-Type": "application/json", ...options?.headers },
475
- body: JSON.stringify(revokeAllSessionsRequest)
550
+ body: JSON.stringify(createPasswordRequest)
476
551
  });
477
552
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
478
553
  const data = body ? JSON.parse(body) : {};
@@ -482,13 +557,13 @@ const revokeAllSessions = async (revokeAllSessionsRequest, options) => {
482
557
  headers: res.headers
483
558
  };
484
559
  };
485
- const getRevokeSessionUrl = (sessionId) => {
486
- return `https://api.workos.com/_widgets/UserProfile/sessions/revoke/${sessionId}`;
560
+ const getCreateTotpFactorUrl = () => {
561
+ return `https://api.workos.com/_widgets/UserProfile/create-totp-factor`;
487
562
  };
488
- const revokeSession = async (sessionId, options) => {
489
- const res = await fetch(getRevokeSessionUrl(sessionId), {
563
+ const createTotpFactor = async (options) => {
564
+ const res = await fetch(getCreateTotpFactorUrl(), {
490
565
  ...options,
491
- method: "DELETE"
566
+ method: "POST"
492
567
  });
493
568
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
494
569
  const data = body ? JSON.parse(body) : {};
@@ -498,11 +573,11 @@ const revokeSession = async (sessionId, options) => {
498
573
  headers: res.headers
499
574
  };
500
575
  };
501
- const getSessionsUrl = () => {
502
- return `https://api.workos.com/_widgets/UserProfile/sessions`;
576
+ const getMeUrl = () => {
577
+ return `https://api.workos.com/_widgets/UserProfile/me`;
503
578
  };
504
- const sessions = async (options) => {
505
- const res = await fetch(getSessionsUrl(), {
579
+ const me = async (options) => {
580
+ const res = await fetch(getMeUrl(), {
506
581
  ...options,
507
582
  method: "GET"
508
583
  });
@@ -510,31 +585,15 @@ const sessions = async (options) => {
510
585
  const data = body ? JSON.parse(body) : {};
511
586
  return { data, status: res.status, headers: res.headers };
512
587
  };
513
- const getSendVerificationUrl = () => {
514
- return `https://api.workos.com/_widgets/UserProfile/send-verification`;
515
- };
516
- const sendVerification = async (options) => {
517
- const res = await fetch(getSendVerificationUrl(), {
518
- ...options,
519
- method: "POST"
520
- });
521
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
522
- const data = body ? JSON.parse(body) : {};
523
- return {
524
- data,
525
- status: res.status,
526
- headers: res.headers
527
- };
528
- };
529
- const getVerifyUrl = () => {
530
- return `https://api.workos.com/_widgets/UserProfile/verify`;
588
+ const getUpdateMeUrl = () => {
589
+ return `https://api.workos.com/_widgets/UserProfile/me`;
531
590
  };
532
- const verify = async (verifyRequest, options) => {
533
- const res = await fetch(getVerifyUrl(), {
591
+ const updateMe = async (updateMeBody, options) => {
592
+ const res = await fetch(getUpdateMeUrl(), {
534
593
  ...options,
535
594
  method: "POST",
536
595
  headers: { "Content-Type": "application/json", ...options?.headers },
537
- body: JSON.stringify(verifyRequest)
596
+ body: JSON.stringify(updateMeBody)
538
597
  });
539
598
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
540
599
  const data = body ? JSON.parse(body) : {};
@@ -590,11 +649,27 @@ const deletePasskey = async (passkeyId, options) => {
590
649
  headers: res.headers
591
650
  };
592
651
  };
593
- const getSettingsUrl = () => {
594
- return `https://api.workos.com/_widgets/settings`;
652
+ const getSendVerificationUrl = () => {
653
+ return `https://api.workos.com/_widgets/UserProfile/send-verification`;
595
654
  };
596
- const settings = async (options) => {
597
- const res = await fetch(getSettingsUrl(), {
655
+ const sendVerification = async (options) => {
656
+ const res = await fetch(getSendVerificationUrl(), {
657
+ ...options,
658
+ method: "POST"
659
+ });
660
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
661
+ const data = body ? JSON.parse(body) : {};
662
+ return {
663
+ data,
664
+ status: res.status,
665
+ headers: res.headers
666
+ };
667
+ };
668
+ const getSessionsUrl = () => {
669
+ return `https://api.workos.com/_widgets/UserProfile/sessions`;
670
+ };
671
+ const sessions = async (options) => {
672
+ const res = await fetch(getSessionsUrl(), {
598
673
  ...options,
599
674
  method: "GET"
600
675
  });
@@ -602,13 +677,15 @@ const settings = async (options) => {
602
677
  const data = body ? JSON.parse(body) : {};
603
678
  return { data, status: res.status, headers: res.headers };
604
679
  };
605
- const getListOrganizationDomainsUrl = () => {
606
- return `https://api.workos.com/_widgets/admin-portal/organization-domains`;
680
+ const getRevokeAllSessionsUrl = () => {
681
+ return `https://api.workos.com/_widgets/UserProfile/sessions/revoke-all`;
607
682
  };
608
- const listOrganizationDomains = async (options) => {
609
- const res = await fetch(getListOrganizationDomainsUrl(), {
683
+ const revokeAllSessions = async (revokeAllSessionsRequest, options) => {
684
+ const res = await fetch(getRevokeAllSessionsUrl(), {
610
685
  ...options,
611
- method: "GET"
686
+ method: "DELETE",
687
+ headers: { "Content-Type": "application/json", ...options?.headers },
688
+ body: JSON.stringify(revokeAllSessionsRequest)
612
689
  });
613
690
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
614
691
  const data = body ? JSON.parse(body) : {};
@@ -618,20 +695,13 @@ const listOrganizationDomains = async (options) => {
618
695
  headers: res.headers
619
696
  };
620
697
  };
621
- const getGenerateAdminPortalLinkUrl = (params) => {
622
- const normalizedParams = new URLSearchParams();
623
- Object.entries(params || {}).forEach(([key, value]) => {
624
- if (value !== void 0) {
625
- normalizedParams.append(key, value === null ? "null" : value.toString());
626
- }
627
- });
628
- const stringifiedParams = normalizedParams.toString();
629
- return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/admin-portal/generate-link?${stringifiedParams}` : `https://api.workos.com/_widgets/admin-portal/generate-link`;
698
+ const getRevokeSessionUrl = (sessionId) => {
699
+ return `https://api.workos.com/_widgets/UserProfile/sessions/revoke/${sessionId}`;
630
700
  };
631
- const generateAdminPortalLink = async (params, options) => {
632
- const res = await fetch(getGenerateAdminPortalLinkUrl(params), {
701
+ const revokeSession = async (sessionId, options) => {
702
+ const res = await fetch(getRevokeSessionUrl(sessionId), {
633
703
  ...options,
634
- method: "POST"
704
+ method: "DELETE"
635
705
  });
636
706
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
637
707
  const data = body ? JSON.parse(body) : {};
@@ -641,11 +711,11 @@ const generateAdminPortalLink = async (params, options) => {
641
711
  headers: res.headers
642
712
  };
643
713
  };
644
- const getDeleteOrganizationDomainUrl = (domainId) => {
645
- return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}`;
714
+ const getDeleteTotpFactorsUrl = () => {
715
+ return `https://api.workos.com/_widgets/UserProfile/totp-factors`;
646
716
  };
647
- const deleteOrganizationDomain = async (domainId, options) => {
648
- const res = await fetch(getDeleteOrganizationDomainUrl(domainId), {
717
+ const deleteTotpFactors = async (options) => {
718
+ const res = await fetch(getDeleteTotpFactorsUrl(), {
649
719
  ...options,
650
720
  method: "DELETE"
651
721
  });
@@ -657,13 +727,15 @@ const deleteOrganizationDomain = async (domainId, options) => {
657
727
  headers: res.headers
658
728
  };
659
729
  };
660
- const getReverifyOrganizationDomainUrl = (domainId) => {
661
- return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}/reverify`;
730
+ const getUpdatePasswordUrl = () => {
731
+ return `https://api.workos.com/_widgets/UserProfile/update-password`;
662
732
  };
663
- const reverifyOrganizationDomain = async (domainId, options) => {
664
- const res = await fetch(getReverifyOrganizationDomainUrl(domainId), {
733
+ const updatePassword = async (updatePasswordRequest, options) => {
734
+ const res = await fetch(getUpdatePasswordUrl(), {
665
735
  ...options,
666
- method: "POST"
736
+ method: "POST",
737
+ headers: { "Content-Type": "application/json", ...options?.headers },
738
+ body: JSON.stringify(updatePasswordRequest)
667
739
  });
668
740
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
669
741
  const data = body ? JSON.parse(body) : {};
@@ -673,31 +745,29 @@ const reverifyOrganizationDomain = async (domainId, options) => {
673
745
  headers: res.headers
674
746
  };
675
747
  };
676
- const getListSsoConnectionsUrl = () => {
677
- return `https://api.workos.com/_widgets/admin-portal/sso-connections`;
748
+ const getVerifyUrl = () => {
749
+ return `https://api.workos.com/_widgets/UserProfile/verify`;
678
750
  };
679
- const listSsoConnections = async (options) => {
680
- const res = await fetch(getListSsoConnectionsUrl(), {
751
+ const verify = async (verifyRequest, options) => {
752
+ const res = await fetch(getVerifyUrl(), {
681
753
  ...options,
682
- method: "GET"
754
+ method: "POST",
755
+ headers: { "Content-Type": "application/json", ...options?.headers },
756
+ body: JSON.stringify(verifyRequest)
683
757
  });
684
758
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
685
759
  const data = body ? JSON.parse(body) : {};
686
- return {
687
- data,
688
- status: res.status,
689
- headers: res.headers
690
- };
760
+ return { data, status: res.status, headers: res.headers };
691
761
  };
692
- const getCreateOrganizationApiKeyUrl = () => {
693
- return `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
762
+ const getVerifyTotpFactorUrl = () => {
763
+ return `https://api.workos.com/_widgets/UserProfile/verify-totp-factor`;
694
764
  };
695
- const createOrganizationApiKey = async (createOrganizationApiKeyRequest, options) => {
696
- const res = await fetch(getCreateOrganizationApiKeyUrl(), {
765
+ const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
766
+ const res = await fetch(getVerifyTotpFactorUrl(), {
697
767
  ...options,
698
768
  method: "POST",
699
769
  headers: { "Content-Type": "application/json", ...options?.headers },
700
- body: JSON.stringify(createOrganizationApiKeyRequest)
770
+ body: JSON.stringify(verifyTotpFactorRequest)
701
771
  });
702
772
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
703
773
  const data = body ? JSON.parse(body) : {};
@@ -707,7 +777,7 @@ const createOrganizationApiKey = async (createOrganizationApiKeyRequest, options
707
777
  headers: res.headers
708
778
  };
709
779
  };
710
- const getListOrganizationApiKeysUrl = (params) => {
780
+ const getGenerateAdminPortalLinkUrl = (params) => {
711
781
  const normalizedParams = new URLSearchParams();
712
782
  Object.entries(params || {}).forEach(([key, value]) => {
713
783
  if (value !== void 0) {
@@ -715,12 +785,12 @@ const getListOrganizationApiKeysUrl = (params) => {
715
785
  }
716
786
  });
717
787
  const stringifiedParams = normalizedParams.toString();
718
- return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/organization-api-keys?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
788
+ return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/admin-portal/generate-link?${stringifiedParams}` : `https://api.workos.com/_widgets/admin-portal/generate-link`;
719
789
  };
720
- const listOrganizationApiKeys = async (params, options) => {
721
- const res = await fetch(getListOrganizationApiKeysUrl(params), {
790
+ const generateAdminPortalLink = async (params, options) => {
791
+ const res = await fetch(getGenerateAdminPortalLinkUrl(params), {
722
792
  ...options,
723
- method: "GET"
793
+ method: "POST"
724
794
  });
725
795
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
726
796
  const data = body ? JSON.parse(body) : {};
@@ -730,18 +800,11 @@ const listOrganizationApiKeys = async (params, options) => {
730
800
  headers: res.headers
731
801
  };
732
802
  };
733
- const getListOrganizationApiKeyPermissionsUrl = (params) => {
734
- const normalizedParams = new URLSearchParams();
735
- Object.entries(params || {}).forEach(([key, value]) => {
736
- if (value !== void 0) {
737
- normalizedParams.append(key, value === null ? "null" : value.toString());
738
- }
739
- });
740
- const stringifiedParams = normalizedParams.toString();
741
- return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/permissions?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/permissions`;
803
+ const getListOrganizationDomainsUrl = () => {
804
+ return `https://api.workos.com/_widgets/admin-portal/organization-domains`;
742
805
  };
743
- const listOrganizationApiKeyPermissions = async (params, options) => {
744
- const res = await fetch(getListOrganizationApiKeyPermissionsUrl(params), {
806
+ const listOrganizationDomains = async (options) => {
807
+ const res = await fetch(getListOrganizationDomainsUrl(), {
745
808
  ...options,
746
809
  method: "GET"
747
810
  });
@@ -753,11 +816,11 @@ const listOrganizationApiKeyPermissions = async (params, options) => {
753
816
  headers: res.headers
754
817
  };
755
818
  };
756
- const getDeleteOrganizationApiKeyUrl = (apiKeyId) => {
757
- return `https://api.workos.com/_widgets/ApiKeys/${apiKeyId}`;
819
+ const getDeleteOrganizationDomainUrl = (domainId) => {
820
+ return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}`;
758
821
  };
759
- const deleteOrganizationApiKey = async (apiKeyId, options) => {
760
- const res = await fetch(getDeleteOrganizationApiKeyUrl(apiKeyId), {
822
+ const deleteOrganizationDomain = async (domainId, options) => {
823
+ const res = await fetch(getDeleteOrganizationDomainUrl(domainId), {
761
824
  ...options,
762
825
  method: "DELETE"
763
826
  });
@@ -769,13 +832,13 @@ const deleteOrganizationApiKey = async (apiKeyId, options) => {
769
832
  headers: res.headers
770
833
  };
771
834
  };
772
- const getMyDataIntegrationsUrl = () => {
773
- return `https://api.workos.com/_widgets/DataIntegrations/mine`;
835
+ const getReverifyOrganizationDomainUrl = (domainId) => {
836
+ return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}/reverify`;
774
837
  };
775
- const myDataIntegrations = async (options) => {
776
- const res = await fetch(getMyDataIntegrationsUrl(), {
838
+ const reverifyOrganizationDomain = async (domainId, options) => {
839
+ const res = await fetch(getReverifyOrganizationDomainUrl(domainId), {
777
840
  ...options,
778
- method: "GET"
841
+ method: "POST"
779
842
  });
780
843
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
781
844
  const data = body ? JSON.parse(body) : {};
@@ -785,18 +848,11 @@ const myDataIntegrations = async (options) => {
785
848
  headers: res.headers
786
849
  };
787
850
  };
788
- const getGetDataIntegrationAuthorizeUrlUrl = (slug, params) => {
789
- const normalizedParams = new URLSearchParams();
790
- Object.entries(params || {}).forEach(([key, value]) => {
791
- if (value !== void 0) {
792
- normalizedParams.append(key, value === null ? "null" : value.toString());
793
- }
794
- });
795
- const stringifiedParams = normalizedParams.toString();
796
- return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize?${stringifiedParams}` : `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`;
851
+ const getListSsoConnectionsUrl = () => {
852
+ return `https://api.workos.com/_widgets/admin-portal/sso-connections`;
797
853
  };
798
- const getDataIntegrationAuthorizeUrl = async (slug, params, options) => {
799
- const res = await fetch(getGetDataIntegrationAuthorizeUrlUrl(slug, params), {
854
+ const listSsoConnections = async (options) => {
855
+ const res = await fetch(getListSsoConnectionsUrl(), {
800
856
  ...options,
801
857
  method: "GET"
802
858
  });
@@ -808,17 +864,14 @@ const getDataIntegrationAuthorizeUrl = async (slug, params, options) => {
808
864
  headers: res.headers
809
865
  };
810
866
  };
811
- const getGetDataInstallationAuthorizationStatusUrl = (dataIntegrationId, state) => {
812
- return `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`;
867
+ const getListDirectoriesUrl = () => {
868
+ return `https://api.workos.com/_widgets/directory-sync/directories`;
813
869
  };
814
- const getDataInstallationAuthorizationStatus = async (dataIntegrationId, state, options) => {
815
- const res = await fetch(
816
- getGetDataInstallationAuthorizationStatusUrl(dataIntegrationId, state),
817
- {
818
- ...options,
819
- method: "GET"
820
- }
821
- );
870
+ const listDirectories = async (options) => {
871
+ const res = await fetch(getListDirectoriesUrl(), {
872
+ ...options,
873
+ method: "GET"
874
+ });
822
875
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
823
876
  const data = body ? JSON.parse(body) : {};
824
877
  return {
@@ -827,35 +880,33 @@ const getDataInstallationAuthorizationStatus = async (dataIntegrationId, state,
827
880
  headers: res.headers
828
881
  };
829
882
  };
830
- const getDeleteDataInstallationUrl = (installationId) => {
831
- return `https://api.workos.com/_widgets/DataIntegrations/installations/${installationId}`;
883
+ const getSettingsUrl = () => {
884
+ return `https://api.workos.com/_widgets/settings`;
832
885
  };
833
- const deleteDataInstallation = async (installationId, options) => {
834
- const res = await fetch(getDeleteDataInstallationUrl(installationId), {
886
+ const settings = async (options) => {
887
+ const res = await fetch(getSettingsUrl(), {
835
888
  ...options,
836
- method: "DELETE"
889
+ method: "GET"
837
890
  });
838
891
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
839
892
  const data = body ? JSON.parse(body) : {};
840
- return {
841
- data,
842
- status: res.status,
843
- headers: res.headers
844
- };
893
+ return { data, status: res.status, headers: res.headers };
845
894
  };
846
895
  export {
847
- AuthenticationInformationResponseDataVerificationMethodsMfaProvider,
848
- AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider,
849
- AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
896
+ AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider,
897
+ AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider,
898
+ AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider,
850
899
  CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
851
900
  CreateTotpFactorResponseAuthenticationFactorAllOfObject,
852
901
  CreateTotpFactorResponseAuthenticationFactorAllOfType,
853
- DataInstallationObject,
854
- DataInstallationState,
902
+ DataInstallationAllOfObject,
903
+ DataInstallationAllOfState,
855
904
  DataIntegrationCredentialsType,
856
905
  DataIntegrationIntegrationType,
857
906
  DataIntegrationObject,
858
907
  DataIntegrationOwnership,
908
+ DirectoryState,
909
+ DirectoryType,
859
910
  DomainVerificationNameServer,
860
911
  GenerateAdminPortalLinkIntent,
861
912
  MemberActionsItem,
@@ -897,6 +948,7 @@ export {
897
948
  getGetDataInstallationAuthorizationStatusUrl,
898
949
  getGetDataIntegrationAuthorizeUrlUrl,
899
950
  getInviteMemberUrl,
951
+ getListDirectoriesUrl,
900
952
  getListOrganizationApiKeyPermissionsUrl,
901
953
  getListOrganizationApiKeysUrl,
902
954
  getListOrganizationDomainsUrl,
@@ -924,6 +976,7 @@ export {
924
976
  getVerifyTotpFactorUrl,
925
977
  getVerifyUrl,
926
978
  inviteMember,
979
+ listDirectories,
927
980
  listOrganizationApiKeyPermissions,
928
981
  listOrganizationApiKeys,
929
982
  listOrganizationDomains,