@workos-inc/widgets 1.8.2 → 1.9.1
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 +11 -0
- package/dist/cjs/admin-portal-domain-verification.client.cjs.map +1 -1
- package/dist/cjs/admin-portal-sso-connection.client.cjs +4 -7
- package/dist/cjs/admin-portal-sso-connection.client.cjs.map +1 -1
- 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 +741 -771
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +860 -813
- package/dist/cjs/directory-sync.client.cjs +156 -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 +327 -411
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +832 -798
- package/dist/cjs/experimental/api/react-query.cjs +747 -777
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +1378 -1263
- package/dist/cjs/experimental/api/swr.cjs +720 -742
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +1218 -1175
- 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/add-mfa-dialog.cjs +18 -16
- package/dist/cjs/lib/add-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.cjs +0 -8
- package/dist/cjs/lib/admin-portal-sso-connection.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.d.cts +1 -2
- 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/provider-icon.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.d.cts +2 -2
- 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/cjs/workos-widgets.client.cjs +13 -1
- package/dist/cjs/workos-widgets.client.cjs.map +1 -1
- package/dist/esm/admin-portal-domain-verification.client.js +2 -2
- package/dist/esm/admin-portal-domain-verification.client.js.map +1 -1
- package/dist/esm/admin-portal-sso-connection.client.js +6 -9
- package/dist/esm/admin-portal-sso-connection.client.js.map +1 -1
- 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 +860 -813
- package/dist/esm/api/endpoint.js +727 -751
- 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 +134 -0
- package/dist/esm/directory-sync.client.js.map +1 -0
- package/dist/esm/experimental/api/fetch.d.ts +832 -798
- package/dist/esm/experimental/api/fetch.js +319 -391
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +1378 -1263
- package/dist/esm/experimental/api/react-query.js +730 -757
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +1218 -1175
- package/dist/esm/experimental/api/swr.js +706 -722
- 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/add-mfa-dialog.js +18 -16
- package/dist/esm/lib/add-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/admin-portal-sso-connection.d.ts +1 -2
- package/dist/esm/lib/admin-portal-sso-connection.js +0 -8
- package/dist/esm/lib/admin-portal-sso-connection.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/provider-icon.d.ts +2 -2
- package/dist/esm/lib/provider-icon.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/dist/esm/workos-widgets.client.js +13 -1
- package/dist/esm/workos-widgets.client.js.map +1 -1
- package/package.json +2 -2
|
@@ -18,18 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var fetch_exports = {};
|
|
20
20
|
__export(fetch_exports, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordProvider: () => AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
|
|
24
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject: () => CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
25
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject: () => CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
26
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType: () => CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
27
|
-
DataInstallationObject: () => DataInstallationObject,
|
|
28
|
-
DataInstallationState: () => DataInstallationState,
|
|
29
|
-
DataIntegrationCredentialsType: () => DataIntegrationCredentialsType,
|
|
30
|
-
DataIntegrationIntegrationType: () => DataIntegrationIntegrationType,
|
|
31
|
-
DataIntegrationObject: () => DataIntegrationObject,
|
|
32
|
-
DataIntegrationOwnership: () => DataIntegrationOwnership,
|
|
21
|
+
DirectoryState: () => DirectoryState,
|
|
22
|
+
DirectoryType: () => DirectoryType,
|
|
33
23
|
DomainVerificationNameServer: () => DomainVerificationNameServer,
|
|
34
24
|
GenerateAdminPortalLinkIntent: () => GenerateAdminPortalLinkIntent,
|
|
35
25
|
MemberActionsItem: () => MemberActionsItem,
|
|
@@ -37,14 +27,6 @@ __export(fetch_exports, {
|
|
|
37
27
|
OidcSessionState: () => OidcSessionState,
|
|
38
28
|
OrganizationDomainState: () => OrganizationDomainState,
|
|
39
29
|
SamlSessionState: () => SamlSessionState,
|
|
40
|
-
SendVerificationResponseType: () => SendVerificationResponseType,
|
|
41
|
-
SettingsResponseObject: () => SettingsResponseObject,
|
|
42
|
-
SsoConnectionAnyOfEightAllOfProviderTag: () => SsoConnectionAnyOfEightAllOfProviderTag,
|
|
43
|
-
SsoConnectionAnyOfEightAllOfState: () => SsoConnectionAnyOfEightAllOfState,
|
|
44
|
-
SsoConnectionAnyOfEightAllOfType: () => SsoConnectionAnyOfEightAllOfType,
|
|
45
|
-
SsoConnectionAnyOfProviderTag: () => SsoConnectionAnyOfProviderTag,
|
|
46
|
-
SsoConnectionAnyOfState: () => SsoConnectionAnyOfState,
|
|
47
|
-
SsoConnectionAnyOfType: () => SsoConnectionAnyOfType,
|
|
48
30
|
SsoConnectionSessionJSONState: () => SsoConnectionSessionJSONState,
|
|
49
31
|
authenticationInformation: () => authenticationInformation,
|
|
50
32
|
createOrganizationApiKey: () => createOrganizationApiKey,
|
|
@@ -56,6 +38,7 @@ __export(fetch_exports, {
|
|
|
56
38
|
deletePasskey: () => deletePasskey,
|
|
57
39
|
deleteTotpFactors: () => deleteTotpFactors,
|
|
58
40
|
generateAdminPortalLink: () => generateAdminPortalLink,
|
|
41
|
+
getAuditLogStream: () => getAuditLogStream,
|
|
59
42
|
getAuthenticationInformationUrl: () => getAuthenticationInformationUrl,
|
|
60
43
|
getCreateOrganizationApiKeyUrl: () => getCreateOrganizationApiKeyUrl,
|
|
61
44
|
getCreatePasswordUrl: () => getCreatePasswordUrl,
|
|
@@ -67,10 +50,14 @@ __export(fetch_exports, {
|
|
|
67
50
|
getDeleteOrganizationDomainUrl: () => getDeleteOrganizationDomainUrl,
|
|
68
51
|
getDeletePasskeyUrl: () => getDeletePasskeyUrl,
|
|
69
52
|
getDeleteTotpFactorsUrl: () => getDeleteTotpFactorsUrl,
|
|
53
|
+
getDirectory: () => getDirectory,
|
|
70
54
|
getGenerateAdminPortalLinkUrl: () => getGenerateAdminPortalLinkUrl,
|
|
55
|
+
getGetAuditLogStreamUrl: () => getGetAuditLogStreamUrl,
|
|
71
56
|
getGetDataInstallationAuthorizationStatusUrl: () => getGetDataInstallationAuthorizationStatusUrl,
|
|
72
57
|
getGetDataIntegrationAuthorizeUrlUrl: () => getGetDataIntegrationAuthorizeUrlUrl,
|
|
58
|
+
getGetDirectoryUrl: () => getGetDirectoryUrl,
|
|
73
59
|
getInviteMemberUrl: () => getInviteMemberUrl,
|
|
60
|
+
getListDirectoriesUrl: () => getListDirectoriesUrl,
|
|
74
61
|
getListOrganizationApiKeyPermissionsUrl: () => getListOrganizationApiKeyPermissionsUrl,
|
|
75
62
|
getListOrganizationApiKeysUrl: () => getListOrganizationApiKeysUrl,
|
|
76
63
|
getListOrganizationDomainsUrl: () => getListOrganizationDomainsUrl,
|
|
@@ -98,6 +85,7 @@ __export(fetch_exports, {
|
|
|
98
85
|
getVerifyTotpFactorUrl: () => getVerifyTotpFactorUrl,
|
|
99
86
|
getVerifyUrl: () => getVerifyUrl,
|
|
100
87
|
inviteMember: () => inviteMember,
|
|
88
|
+
listDirectories: () => listDirectories,
|
|
101
89
|
listOrganizationApiKeyPermissions: () => listOrganizationApiKeyPermissions,
|
|
102
90
|
listOrganizationApiKeys: () => listOrganizationApiKeys,
|
|
103
91
|
listOrganizationDomains: () => listOrganizationDomains,
|
|
@@ -139,33 +127,6 @@ const MemberActionsItem = {
|
|
|
139
127
|
"revoke-invite": "revoke-invite",
|
|
140
128
|
"revoke-membership": "revoke-membership"
|
|
141
129
|
};
|
|
142
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {
|
|
143
|
-
authentication_factor: "authentication_factor"
|
|
144
|
-
};
|
|
145
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
|
|
146
|
-
generic_otp: "generic_otp",
|
|
147
|
-
sms: "sms",
|
|
148
|
-
totp: "totp",
|
|
149
|
-
webauthn: "webauthn"
|
|
150
|
-
};
|
|
151
|
-
const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
|
|
152
|
-
authentication_challenge: "authentication_challenge"
|
|
153
|
-
};
|
|
154
|
-
const AuthenticationInformationResponseDataVerificationMethodsMfaProvider = {
|
|
155
|
-
MFA: "MFA"
|
|
156
|
-
};
|
|
157
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = {
|
|
158
|
-
Password: "Password"
|
|
159
|
-
};
|
|
160
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider = {
|
|
161
|
-
Passkey: "Passkey"
|
|
162
|
-
};
|
|
163
|
-
const SendVerificationResponseType = {
|
|
164
|
-
EmailVerification: "EmailVerification"
|
|
165
|
-
};
|
|
166
|
-
const SettingsResponseObject = {
|
|
167
|
-
settings: "settings"
|
|
168
|
-
};
|
|
169
130
|
const OrganizationDomainState = {
|
|
170
131
|
Failed: "Failed",
|
|
171
132
|
LegacyVerified: "LegacyVerified",
|
|
@@ -198,126 +159,63 @@ const SsoConnectionSessionJSONState = {
|
|
|
198
159
|
...SamlSessionState,
|
|
199
160
|
...OidcSessionState
|
|
200
161
|
};
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
Active: "Active",
|
|
234
|
-
Deleting: "Deleting"
|
|
235
|
-
};
|
|
236
|
-
const SsoConnectionAnyOfProviderTag = {
|
|
237
|
-
Saml: "Saml"
|
|
238
|
-
};
|
|
239
|
-
const SsoConnectionAnyOfEightAllOfState = {
|
|
240
|
-
Inactive: "Inactive",
|
|
241
|
-
Validating: "Validating",
|
|
242
|
-
Active: "Active",
|
|
243
|
-
Deleting: "Deleting"
|
|
244
|
-
};
|
|
245
|
-
const SsoConnectionAnyOfEightAllOfType = {
|
|
246
|
-
AdpOidc: "AdpOidc",
|
|
247
|
-
Auth0Migration: "Auth0Migration",
|
|
248
|
-
CleverOidc: "CleverOidc",
|
|
249
|
-
EntraIdOidc: "EntraIdOidc",
|
|
250
|
-
GenericOidc: "GenericOidc",
|
|
251
|
-
GoogleOidc: "GoogleOidc",
|
|
252
|
-
OktaOidc: "OktaOidc",
|
|
253
|
-
LoginGovOidc: "LoginGovOidc"
|
|
254
|
-
};
|
|
255
|
-
const SsoConnectionAnyOfEightAllOfProviderTag = {
|
|
256
|
-
OpenIdConnect: "OpenIdConnect"
|
|
257
|
-
};
|
|
258
|
-
const DataInstallationObject = {
|
|
259
|
-
data_installation: "data_installation",
|
|
260
|
-
connected_account: "connected_account"
|
|
261
|
-
};
|
|
262
|
-
const DataInstallationState = {
|
|
263
|
-
connected: "connected",
|
|
264
|
-
needs_reauthorization: "needs_reauthorization"
|
|
265
|
-
};
|
|
266
|
-
const DataIntegrationObject = {
|
|
267
|
-
data_integration: "data_integration"
|
|
268
|
-
};
|
|
269
|
-
const DataIntegrationIntegrationType = {
|
|
270
|
-
asana: "asana",
|
|
271
|
-
box: "box",
|
|
272
|
-
"cal-dot-com": "cal-dot-com",
|
|
273
|
-
calendly: "calendly",
|
|
274
|
-
confluence: "confluence",
|
|
275
|
-
dropbox: "dropbox",
|
|
276
|
-
"frame-io": "frame-io",
|
|
277
|
-
front: "front",
|
|
278
|
-
github: "github",
|
|
279
|
-
gitlab: "gitlab",
|
|
280
|
-
gmail: "gmail",
|
|
281
|
-
google: "google",
|
|
282
|
-
"google-calendar": "google-calendar",
|
|
283
|
-
"google-drive": "google-drive",
|
|
284
|
-
helpscout: "helpscout",
|
|
285
|
-
hubspot: "hubspot",
|
|
286
|
-
intercom: "intercom",
|
|
287
|
-
jira: "jira",
|
|
288
|
-
linear: "linear",
|
|
289
|
-
microsoft: "microsoft",
|
|
290
|
-
"microsoft-onedrive": "microsoft-onedrive",
|
|
291
|
-
"microsoft-onenote": "microsoft-onenote",
|
|
292
|
-
"microsoft-outlook": "microsoft-outlook",
|
|
293
|
-
"microsoft-outlook-calendar": "microsoft-outlook-calendar",
|
|
294
|
-
"microsoft-sharepoint": "microsoft-sharepoint",
|
|
295
|
-
"microsoft-teams": "microsoft-teams",
|
|
296
|
-
"microsoft-todo": "microsoft-todo",
|
|
297
|
-
notion: "notion",
|
|
298
|
-
prefect: "prefect",
|
|
299
|
-
"pydantic-logfire": "pydantic-logfire",
|
|
300
|
-
salesforce: "salesforce",
|
|
301
|
-
sentry: "sentry",
|
|
302
|
-
slack: "slack",
|
|
303
|
-
snowflake: "snowflake",
|
|
304
|
-
stripe: "stripe",
|
|
305
|
-
xero: "xero",
|
|
306
|
-
zendesk: "zendesk"
|
|
307
|
-
};
|
|
308
|
-
const DataIntegrationOwnership = {
|
|
309
|
-
userland_user: "userland_user",
|
|
310
|
-
organization: "organization"
|
|
311
|
-
};
|
|
312
|
-
const DataIntegrationCredentialsType = {
|
|
313
|
-
shared: "shared",
|
|
314
|
-
custom: "custom"
|
|
162
|
+
const DirectoryType = {
|
|
163
|
+
azure_scim_v20: "azure scim v2.0",
|
|
164
|
+
bamboohr: "bamboohr",
|
|
165
|
+
breathe_hr: "breathe hr",
|
|
166
|
+
cezanne_hr: "cezanne hr",
|
|
167
|
+
cyberark_scim_v20: "cyberark scim v2.0",
|
|
168
|
+
fourth_hr: "fourth hr",
|
|
169
|
+
generic_scim_v20: "generic scim v2.0",
|
|
170
|
+
gsuite_directory: "gsuite directory",
|
|
171
|
+
gusto: "gusto",
|
|
172
|
+
hibob: "hibob",
|
|
173
|
+
jump_cloud_scim_v20: "jump cloud scim v2.0",
|
|
174
|
+
okta_scim_v20: "okta scim v2.0",
|
|
175
|
+
onelogin_scim_v20: "onelogin scim v2.0",
|
|
176
|
+
people_hr: "people hr",
|
|
177
|
+
personio: "personio",
|
|
178
|
+
pingfederate_scim_v20: "pingfederate scim v2.0",
|
|
179
|
+
rippling: "rippling",
|
|
180
|
+
rippling_scim_v20: "rippling scim v2.0",
|
|
181
|
+
s3: "s3",
|
|
182
|
+
sailpoint_scim_v20: "sailpoint scim v2.0",
|
|
183
|
+
sftp: "sftp",
|
|
184
|
+
sftp_workday: "sftp workday",
|
|
185
|
+
workday: "workday"
|
|
186
|
+
};
|
|
187
|
+
const DirectoryState = {
|
|
188
|
+
requires_type: "requires_type",
|
|
189
|
+
linked: "linked",
|
|
190
|
+
validating: "validating",
|
|
191
|
+
invalid_credentials: "invalid_credentials",
|
|
192
|
+
unlinked: "unlinked",
|
|
193
|
+
deleting: "deleting"
|
|
315
194
|
};
|
|
316
195
|
const GenerateAdminPortalLinkIntent = {
|
|
317
196
|
domain_verification: "domain_verification",
|
|
318
|
-
sso: "sso"
|
|
197
|
+
sso: "sso",
|
|
198
|
+
log_streams: "log_streams"
|
|
319
199
|
};
|
|
320
|
-
const
|
|
200
|
+
const getCreateOrganizationApiKeyUrl = () => {
|
|
201
|
+
return `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
|
|
202
|
+
};
|
|
203
|
+
const createOrganizationApiKey = async (createOrganizationApiKeyRequest, options) => {
|
|
204
|
+
const res = await fetch(getCreateOrganizationApiKeyUrl(), {
|
|
205
|
+
...options,
|
|
206
|
+
method: "POST",
|
|
207
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
208
|
+
body: JSON.stringify(createOrganizationApiKeyRequest)
|
|
209
|
+
});
|
|
210
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
211
|
+
const data = body ? JSON.parse(body) : {};
|
|
212
|
+
return {
|
|
213
|
+
data,
|
|
214
|
+
status: res.status,
|
|
215
|
+
headers: res.headers
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
const getListOrganizationApiKeysUrl = (params) => {
|
|
321
219
|
const normalizedParams = new URLSearchParams();
|
|
322
220
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
323
221
|
if (value !== void 0) {
|
|
@@ -325,36 +223,51 @@ const getMembersUrl = (params) => {
|
|
|
325
223
|
}
|
|
326
224
|
});
|
|
327
225
|
const stringifiedParams = normalizedParams.toString();
|
|
328
|
-
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/
|
|
226
|
+
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/organization-api-keys?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
|
|
329
227
|
};
|
|
330
|
-
const
|
|
331
|
-
const res = await fetch(
|
|
228
|
+
const listOrganizationApiKeys = async (params, options) => {
|
|
229
|
+
const res = await fetch(getListOrganizationApiKeysUrl(params), {
|
|
332
230
|
...options,
|
|
333
231
|
method: "GET"
|
|
334
232
|
});
|
|
335
233
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
336
234
|
const data = body ? JSON.parse(body) : {};
|
|
337
|
-
return {
|
|
235
|
+
return {
|
|
236
|
+
data,
|
|
237
|
+
status: res.status,
|
|
238
|
+
headers: res.headers
|
|
239
|
+
};
|
|
338
240
|
};
|
|
339
|
-
const
|
|
340
|
-
|
|
241
|
+
const getListOrganizationApiKeyPermissionsUrl = (params) => {
|
|
242
|
+
const normalizedParams = new URLSearchParams();
|
|
243
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
244
|
+
if (value !== void 0) {
|
|
245
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
const stringifiedParams = normalizedParams.toString();
|
|
249
|
+
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/permissions?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/permissions`;
|
|
341
250
|
};
|
|
342
|
-
const
|
|
343
|
-
const res = await fetch(
|
|
251
|
+
const listOrganizationApiKeyPermissions = async (params, options) => {
|
|
252
|
+
const res = await fetch(getListOrganizationApiKeyPermissionsUrl(params), {
|
|
344
253
|
...options,
|
|
345
254
|
method: "GET"
|
|
346
255
|
});
|
|
347
256
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
348
257
|
const data = body ? JSON.parse(body) : {};
|
|
349
|
-
return {
|
|
258
|
+
return {
|
|
259
|
+
data,
|
|
260
|
+
status: res.status,
|
|
261
|
+
headers: res.headers
|
|
262
|
+
};
|
|
350
263
|
};
|
|
351
|
-
const
|
|
352
|
-
return `https://api.workos.com/_widgets/
|
|
264
|
+
const getDeleteOrganizationApiKeyUrl = (apiKeyId) => {
|
|
265
|
+
return `https://api.workos.com/_widgets/ApiKeys/${apiKeyId}`;
|
|
353
266
|
};
|
|
354
|
-
const
|
|
355
|
-
const res = await fetch(
|
|
267
|
+
const deleteOrganizationApiKey = async (apiKeyId, options) => {
|
|
268
|
+
const res = await fetch(getDeleteOrganizationApiKeyUrl(apiKeyId), {
|
|
356
269
|
...options,
|
|
357
|
-
method: "
|
|
270
|
+
method: "DELETE"
|
|
358
271
|
});
|
|
359
272
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
360
273
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -364,15 +277,13 @@ const rolesAndConfig = async (options) => {
|
|
|
364
277
|
headers: res.headers
|
|
365
278
|
};
|
|
366
279
|
};
|
|
367
|
-
const
|
|
368
|
-
return `https://api.workos.com/_widgets/
|
|
280
|
+
const getDeleteDataInstallationUrl = (installationId) => {
|
|
281
|
+
return `https://api.workos.com/_widgets/DataIntegrations/installations/${installationId}`;
|
|
369
282
|
};
|
|
370
|
-
const
|
|
371
|
-
const res = await fetch(
|
|
283
|
+
const deleteDataInstallation = async (installationId, options) => {
|
|
284
|
+
const res = await fetch(getDeleteDataInstallationUrl(installationId), {
|
|
372
285
|
...options,
|
|
373
|
-
method: "
|
|
374
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
375
|
-
body: JSON.stringify(inviteMemberBody)
|
|
286
|
+
method: "DELETE"
|
|
376
287
|
});
|
|
377
288
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
378
289
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -382,13 +293,13 @@ const inviteMember = async (inviteMemberBody, options) => {
|
|
|
382
293
|
headers: res.headers
|
|
383
294
|
};
|
|
384
295
|
};
|
|
385
|
-
const
|
|
386
|
-
return `https://api.workos.com/_widgets/
|
|
296
|
+
const getMyDataIntegrationsUrl = () => {
|
|
297
|
+
return `https://api.workos.com/_widgets/DataIntegrations/mine`;
|
|
387
298
|
};
|
|
388
|
-
const
|
|
389
|
-
const res = await fetch(
|
|
299
|
+
const myDataIntegrations = async (options) => {
|
|
300
|
+
const res = await fetch(getMyDataIntegrationsUrl(), {
|
|
390
301
|
...options,
|
|
391
|
-
method: "
|
|
302
|
+
method: "GET"
|
|
392
303
|
});
|
|
393
304
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
394
305
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -398,14 +309,17 @@ const resendInvite = async (userId, options) => {
|
|
|
398
309
|
headers: res.headers
|
|
399
310
|
};
|
|
400
311
|
};
|
|
401
|
-
const
|
|
402
|
-
return `https://api.workos.com/_widgets/
|
|
312
|
+
const getGetDataInstallationAuthorizationStatusUrl = (dataIntegrationId, state) => {
|
|
313
|
+
return `https://api.workos.com/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`;
|
|
403
314
|
};
|
|
404
|
-
const
|
|
405
|
-
const res = await fetch(
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
315
|
+
const getDataInstallationAuthorizationStatus = async (dataIntegrationId, state, options) => {
|
|
316
|
+
const res = await fetch(
|
|
317
|
+
getGetDataInstallationAuthorizationStatusUrl(dataIntegrationId, state),
|
|
318
|
+
{
|
|
319
|
+
...options,
|
|
320
|
+
method: "GET"
|
|
321
|
+
}
|
|
322
|
+
);
|
|
409
323
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
410
324
|
const data = body ? JSON.parse(body) : {};
|
|
411
325
|
return {
|
|
@@ -414,13 +328,20 @@ const revokeInvite = async (userId, options) => {
|
|
|
414
328
|
headers: res.headers
|
|
415
329
|
};
|
|
416
330
|
};
|
|
417
|
-
const
|
|
418
|
-
|
|
331
|
+
const getGetDataIntegrationAuthorizeUrlUrl = (slug, params) => {
|
|
332
|
+
const normalizedParams = new URLSearchParams();
|
|
333
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
334
|
+
if (value !== void 0) {
|
|
335
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
const stringifiedParams = normalizedParams.toString();
|
|
339
|
+
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize?${stringifiedParams}` : `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`;
|
|
419
340
|
};
|
|
420
|
-
const
|
|
421
|
-
const res = await fetch(
|
|
341
|
+
const getDataIntegrationAuthorizeUrl = async (slug, params, options) => {
|
|
342
|
+
const res = await fetch(getGetDataIntegrationAuthorizeUrlUrl(slug, params), {
|
|
422
343
|
...options,
|
|
423
|
-
method: "
|
|
344
|
+
method: "GET"
|
|
424
345
|
});
|
|
425
346
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
426
347
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -430,15 +351,15 @@ const removeMember = async (userId, options) => {
|
|
|
430
351
|
headers: res.headers
|
|
431
352
|
};
|
|
432
353
|
};
|
|
433
|
-
const
|
|
434
|
-
return `https://api.workos.com/_widgets/UserManagement/
|
|
354
|
+
const getInviteMemberUrl = () => {
|
|
355
|
+
return `https://api.workos.com/_widgets/UserManagement/invite-user`;
|
|
435
356
|
};
|
|
436
|
-
const
|
|
437
|
-
const res = await fetch(
|
|
357
|
+
const inviteMember = async (inviteMemberBody, options) => {
|
|
358
|
+
const res = await fetch(getInviteMemberUrl(), {
|
|
438
359
|
...options,
|
|
439
360
|
method: "POST",
|
|
440
361
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
441
|
-
body: JSON.stringify(
|
|
362
|
+
body: JSON.stringify(inviteMemberBody)
|
|
442
363
|
});
|
|
443
364
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
444
365
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -448,13 +369,13 @@ const updateMember = async (userId, updateMemberBody, options) => {
|
|
|
448
369
|
headers: res.headers
|
|
449
370
|
};
|
|
450
371
|
};
|
|
451
|
-
const
|
|
452
|
-
return `https://api.workos.com/_widgets/UserManagement/
|
|
372
|
+
const getRevokeInviteUrl = (userId) => {
|
|
373
|
+
return `https://api.workos.com/_widgets/UserManagement/invites/${userId}`;
|
|
453
374
|
};
|
|
454
|
-
const
|
|
455
|
-
const res = await fetch(
|
|
375
|
+
const revokeInvite = async (userId, options) => {
|
|
376
|
+
const res = await fetch(getRevokeInviteUrl(userId), {
|
|
456
377
|
...options,
|
|
457
|
-
method: "
|
|
378
|
+
method: "DELETE"
|
|
458
379
|
});
|
|
459
380
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
460
381
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -464,39 +385,48 @@ const organizations = async (options) => {
|
|
|
464
385
|
headers: res.headers
|
|
465
386
|
};
|
|
466
387
|
};
|
|
467
|
-
const
|
|
468
|
-
return `https://api.workos.com/_widgets/
|
|
388
|
+
const getResendInviteUrl = (userId) => {
|
|
389
|
+
return `https://api.workos.com/_widgets/UserManagement/invites/${userId}/resend`;
|
|
469
390
|
};
|
|
470
|
-
const
|
|
471
|
-
const res = await fetch(
|
|
391
|
+
const resendInvite = async (userId, options) => {
|
|
392
|
+
const res = await fetch(getResendInviteUrl(userId), {
|
|
472
393
|
...options,
|
|
473
|
-
method: "
|
|
394
|
+
method: "POST"
|
|
474
395
|
});
|
|
475
396
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
476
397
|
const data = body ? JSON.parse(body) : {};
|
|
477
|
-
return {
|
|
398
|
+
return {
|
|
399
|
+
data,
|
|
400
|
+
status: res.status,
|
|
401
|
+
headers: res.headers
|
|
402
|
+
};
|
|
478
403
|
};
|
|
479
|
-
const
|
|
480
|
-
|
|
404
|
+
const getMembersUrl = (params) => {
|
|
405
|
+
const normalizedParams = new URLSearchParams();
|
|
406
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
407
|
+
if (value !== void 0) {
|
|
408
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
const stringifiedParams = normalizedParams.toString();
|
|
412
|
+
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/UserManagement/members?${stringifiedParams}` : `https://api.workos.com/_widgets/UserManagement/members`;
|
|
481
413
|
};
|
|
482
|
-
const
|
|
483
|
-
const res = await fetch(
|
|
414
|
+
const members = async (params, options) => {
|
|
415
|
+
const res = await fetch(getMembersUrl(params), {
|
|
484
416
|
...options,
|
|
485
|
-
method: "
|
|
486
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
487
|
-
body: JSON.stringify(updateMeBody)
|
|
417
|
+
method: "GET"
|
|
488
418
|
});
|
|
489
419
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
490
420
|
const data = body ? JSON.parse(body) : {};
|
|
491
421
|
return { data, status: res.status, headers: res.headers };
|
|
492
422
|
};
|
|
493
|
-
const
|
|
494
|
-
return `https://api.workos.com/_widgets/
|
|
423
|
+
const getRemoveMemberUrl = (userId) => {
|
|
424
|
+
return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
|
|
495
425
|
};
|
|
496
|
-
const
|
|
497
|
-
const res = await fetch(
|
|
426
|
+
const removeMember = async (userId, options) => {
|
|
427
|
+
const res = await fetch(getRemoveMemberUrl(userId), {
|
|
498
428
|
...options,
|
|
499
|
-
method: "
|
|
429
|
+
method: "DELETE"
|
|
500
430
|
});
|
|
501
431
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
502
432
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -506,15 +436,15 @@ const createTotpFactor = async (options) => {
|
|
|
506
436
|
headers: res.headers
|
|
507
437
|
};
|
|
508
438
|
};
|
|
509
|
-
const
|
|
510
|
-
return `https://api.workos.com/_widgets/
|
|
439
|
+
const getUpdateMemberUrl = (userId) => {
|
|
440
|
+
return `https://api.workos.com/_widgets/UserManagement/members/${userId}`;
|
|
511
441
|
};
|
|
512
|
-
const
|
|
513
|
-
const res = await fetch(
|
|
442
|
+
const updateMember = async (userId, updateMemberBody, options) => {
|
|
443
|
+
const res = await fetch(getUpdateMemberUrl(userId), {
|
|
514
444
|
...options,
|
|
515
445
|
method: "POST",
|
|
516
446
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
517
|
-
body: JSON.stringify(
|
|
447
|
+
body: JSON.stringify(updateMemberBody)
|
|
518
448
|
});
|
|
519
449
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
520
450
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -524,13 +454,13 @@ const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
|
|
|
524
454
|
headers: res.headers
|
|
525
455
|
};
|
|
526
456
|
};
|
|
527
|
-
const
|
|
528
|
-
return `https://api.workos.com/_widgets/
|
|
457
|
+
const getOrganizationsUrl = () => {
|
|
458
|
+
return `https://api.workos.com/_widgets/UserManagement/organizations`;
|
|
529
459
|
};
|
|
530
|
-
const
|
|
531
|
-
const res = await fetch(
|
|
460
|
+
const organizations = async (options) => {
|
|
461
|
+
const res = await fetch(getOrganizationsUrl(), {
|
|
532
462
|
...options,
|
|
533
|
-
method: "
|
|
463
|
+
method: "GET"
|
|
534
464
|
});
|
|
535
465
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
536
466
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -540,31 +470,25 @@ const deleteTotpFactors = async (options) => {
|
|
|
540
470
|
headers: res.headers
|
|
541
471
|
};
|
|
542
472
|
};
|
|
543
|
-
const
|
|
544
|
-
return `https://api.workos.com/_widgets/
|
|
473
|
+
const getRolesUrl = () => {
|
|
474
|
+
return `https://api.workos.com/_widgets/UserManagement/roles`;
|
|
545
475
|
};
|
|
546
|
-
const
|
|
547
|
-
const res = await fetch(
|
|
476
|
+
const roles = async (options) => {
|
|
477
|
+
const res = await fetch(getRolesUrl(), {
|
|
548
478
|
...options,
|
|
549
479
|
method: "GET"
|
|
550
480
|
});
|
|
551
481
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
552
482
|
const data = body ? JSON.parse(body) : {};
|
|
553
|
-
return {
|
|
554
|
-
data,
|
|
555
|
-
status: res.status,
|
|
556
|
-
headers: res.headers
|
|
557
|
-
};
|
|
483
|
+
return { data, status: res.status, headers: res.headers };
|
|
558
484
|
};
|
|
559
|
-
const
|
|
560
|
-
return `https://api.workos.com/_widgets/
|
|
485
|
+
const getRolesAndConfigUrl = () => {
|
|
486
|
+
return `https://api.workos.com/_widgets/UserManagement/roles-and-config`;
|
|
561
487
|
};
|
|
562
|
-
const
|
|
563
|
-
const res = await fetch(
|
|
488
|
+
const rolesAndConfig = async (options) => {
|
|
489
|
+
const res = await fetch(getRolesAndConfigUrl(), {
|
|
564
490
|
...options,
|
|
565
|
-
method: "
|
|
566
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
567
|
-
body: JSON.stringify(createPasswordRequest)
|
|
491
|
+
method: "GET"
|
|
568
492
|
});
|
|
569
493
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
570
494
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -574,15 +498,13 @@ const createPassword = async (createPasswordRequest, options) => {
|
|
|
574
498
|
headers: res.headers
|
|
575
499
|
};
|
|
576
500
|
};
|
|
577
|
-
const
|
|
578
|
-
return `https://api.workos.com/_widgets/UserProfile/
|
|
501
|
+
const getAuthenticationInformationUrl = () => {
|
|
502
|
+
return `https://api.workos.com/_widgets/UserProfile/authentication-information`;
|
|
579
503
|
};
|
|
580
|
-
const
|
|
581
|
-
const res = await fetch(
|
|
504
|
+
const authenticationInformation = async (options) => {
|
|
505
|
+
const res = await fetch(getAuthenticationInformationUrl(), {
|
|
582
506
|
...options,
|
|
583
|
-
method: "
|
|
584
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
585
|
-
body: JSON.stringify(updatePasswordRequest)
|
|
507
|
+
method: "GET"
|
|
586
508
|
});
|
|
587
509
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
588
510
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -592,15 +514,15 @@ const updatePassword = async (updatePasswordRequest, options) => {
|
|
|
592
514
|
headers: res.headers
|
|
593
515
|
};
|
|
594
516
|
};
|
|
595
|
-
const
|
|
596
|
-
return `https://api.workos.com/_widgets/UserProfile/
|
|
517
|
+
const getCreatePasswordUrl = () => {
|
|
518
|
+
return `https://api.workos.com/_widgets/UserProfile/create-password`;
|
|
597
519
|
};
|
|
598
|
-
const
|
|
599
|
-
const res = await fetch(
|
|
520
|
+
const createPassword = async (createPasswordRequest, options) => {
|
|
521
|
+
const res = await fetch(getCreatePasswordUrl(), {
|
|
600
522
|
...options,
|
|
601
|
-
method: "
|
|
523
|
+
method: "POST",
|
|
602
524
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
603
|
-
body: JSON.stringify(
|
|
525
|
+
body: JSON.stringify(createPasswordRequest)
|
|
604
526
|
});
|
|
605
527
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
606
528
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -610,13 +532,13 @@ const revokeAllSessions = async (revokeAllSessionsRequest, options) => {
|
|
|
610
532
|
headers: res.headers
|
|
611
533
|
};
|
|
612
534
|
};
|
|
613
|
-
const
|
|
614
|
-
return `https://api.workos.com/_widgets/UserProfile/
|
|
535
|
+
const getCreateTotpFactorUrl = () => {
|
|
536
|
+
return `https://api.workos.com/_widgets/UserProfile/create-totp-factor`;
|
|
615
537
|
};
|
|
616
|
-
const
|
|
617
|
-
const res = await fetch(
|
|
538
|
+
const createTotpFactor = async (options) => {
|
|
539
|
+
const res = await fetch(getCreateTotpFactorUrl(), {
|
|
618
540
|
...options,
|
|
619
|
-
method: "
|
|
541
|
+
method: "POST"
|
|
620
542
|
});
|
|
621
543
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
622
544
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -626,11 +548,11 @@ const revokeSession = async (sessionId, options) => {
|
|
|
626
548
|
headers: res.headers
|
|
627
549
|
};
|
|
628
550
|
};
|
|
629
|
-
const
|
|
630
|
-
return `https://api.workos.com/_widgets/UserProfile/
|
|
551
|
+
const getMeUrl = () => {
|
|
552
|
+
return `https://api.workos.com/_widgets/UserProfile/me`;
|
|
631
553
|
};
|
|
632
|
-
const
|
|
633
|
-
const res = await fetch(
|
|
554
|
+
const me = async (options) => {
|
|
555
|
+
const res = await fetch(getMeUrl(), {
|
|
634
556
|
...options,
|
|
635
557
|
method: "GET"
|
|
636
558
|
});
|
|
@@ -638,31 +560,15 @@ const sessions = async (options) => {
|
|
|
638
560
|
const data = body ? JSON.parse(body) : {};
|
|
639
561
|
return { data, status: res.status, headers: res.headers };
|
|
640
562
|
};
|
|
641
|
-
const
|
|
642
|
-
return `https://api.workos.com/_widgets/UserProfile/
|
|
643
|
-
};
|
|
644
|
-
const sendVerification = async (options) => {
|
|
645
|
-
const res = await fetch(getSendVerificationUrl(), {
|
|
646
|
-
...options,
|
|
647
|
-
method: "POST"
|
|
648
|
-
});
|
|
649
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
650
|
-
const data = body ? JSON.parse(body) : {};
|
|
651
|
-
return {
|
|
652
|
-
data,
|
|
653
|
-
status: res.status,
|
|
654
|
-
headers: res.headers
|
|
655
|
-
};
|
|
656
|
-
};
|
|
657
|
-
const getVerifyUrl = () => {
|
|
658
|
-
return `https://api.workos.com/_widgets/UserProfile/verify`;
|
|
563
|
+
const getUpdateMeUrl = () => {
|
|
564
|
+
return `https://api.workos.com/_widgets/UserProfile/me`;
|
|
659
565
|
};
|
|
660
|
-
const
|
|
661
|
-
const res = await fetch(
|
|
566
|
+
const updateMe = async (updateMeBody, options) => {
|
|
567
|
+
const res = await fetch(getUpdateMeUrl(), {
|
|
662
568
|
...options,
|
|
663
569
|
method: "POST",
|
|
664
570
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
665
|
-
body: JSON.stringify(
|
|
571
|
+
body: JSON.stringify(updateMeBody)
|
|
666
572
|
});
|
|
667
573
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
668
574
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -718,11 +624,27 @@ const deletePasskey = async (passkeyId, options) => {
|
|
|
718
624
|
headers: res.headers
|
|
719
625
|
};
|
|
720
626
|
};
|
|
721
|
-
const
|
|
722
|
-
return `https://api.workos.com/_widgets/
|
|
627
|
+
const getSendVerificationUrl = () => {
|
|
628
|
+
return `https://api.workos.com/_widgets/UserProfile/send-verification`;
|
|
723
629
|
};
|
|
724
|
-
const
|
|
725
|
-
const res = await fetch(
|
|
630
|
+
const sendVerification = async (options) => {
|
|
631
|
+
const res = await fetch(getSendVerificationUrl(), {
|
|
632
|
+
...options,
|
|
633
|
+
method: "POST"
|
|
634
|
+
});
|
|
635
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
636
|
+
const data = body ? JSON.parse(body) : {};
|
|
637
|
+
return {
|
|
638
|
+
data,
|
|
639
|
+
status: res.status,
|
|
640
|
+
headers: res.headers
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
const getSessionsUrl = () => {
|
|
644
|
+
return `https://api.workos.com/_widgets/UserProfile/sessions`;
|
|
645
|
+
};
|
|
646
|
+
const sessions = async (options) => {
|
|
647
|
+
const res = await fetch(getSessionsUrl(), {
|
|
726
648
|
...options,
|
|
727
649
|
method: "GET"
|
|
728
650
|
});
|
|
@@ -730,13 +652,15 @@ const settings = async (options) => {
|
|
|
730
652
|
const data = body ? JSON.parse(body) : {};
|
|
731
653
|
return { data, status: res.status, headers: res.headers };
|
|
732
654
|
};
|
|
733
|
-
const
|
|
734
|
-
return `https://api.workos.com/_widgets/
|
|
655
|
+
const getRevokeAllSessionsUrl = () => {
|
|
656
|
+
return `https://api.workos.com/_widgets/UserProfile/sessions/revoke-all`;
|
|
735
657
|
};
|
|
736
|
-
const
|
|
737
|
-
const res = await fetch(
|
|
658
|
+
const revokeAllSessions = async (revokeAllSessionsRequest, options) => {
|
|
659
|
+
const res = await fetch(getRevokeAllSessionsUrl(), {
|
|
738
660
|
...options,
|
|
739
|
-
method: "
|
|
661
|
+
method: "DELETE",
|
|
662
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
663
|
+
body: JSON.stringify(revokeAllSessionsRequest)
|
|
740
664
|
});
|
|
741
665
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
742
666
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -746,20 +670,13 @@ const listOrganizationDomains = async (options) => {
|
|
|
746
670
|
headers: res.headers
|
|
747
671
|
};
|
|
748
672
|
};
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
752
|
-
if (value !== void 0) {
|
|
753
|
-
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
754
|
-
}
|
|
755
|
-
});
|
|
756
|
-
const stringifiedParams = normalizedParams.toString();
|
|
757
|
-
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/admin-portal/generate-link?${stringifiedParams}` : `https://api.workos.com/_widgets/admin-portal/generate-link`;
|
|
673
|
+
const getRevokeSessionUrl = (sessionId) => {
|
|
674
|
+
return `https://api.workos.com/_widgets/UserProfile/sessions/revoke/${sessionId}`;
|
|
758
675
|
};
|
|
759
|
-
const
|
|
760
|
-
const res = await fetch(
|
|
676
|
+
const revokeSession = async (sessionId, options) => {
|
|
677
|
+
const res = await fetch(getRevokeSessionUrl(sessionId), {
|
|
761
678
|
...options,
|
|
762
|
-
method: "
|
|
679
|
+
method: "DELETE"
|
|
763
680
|
});
|
|
764
681
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
765
682
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -769,11 +686,11 @@ const generateAdminPortalLink = async (params, options) => {
|
|
|
769
686
|
headers: res.headers
|
|
770
687
|
};
|
|
771
688
|
};
|
|
772
|
-
const
|
|
773
|
-
return `https://api.workos.com/_widgets/
|
|
689
|
+
const getDeleteTotpFactorsUrl = () => {
|
|
690
|
+
return `https://api.workos.com/_widgets/UserProfile/totp-factors`;
|
|
774
691
|
};
|
|
775
|
-
const
|
|
776
|
-
const res = await fetch(
|
|
692
|
+
const deleteTotpFactors = async (options) => {
|
|
693
|
+
const res = await fetch(getDeleteTotpFactorsUrl(), {
|
|
777
694
|
...options,
|
|
778
695
|
method: "DELETE"
|
|
779
696
|
});
|
|
@@ -785,13 +702,15 @@ const deleteOrganizationDomain = async (domainId, options) => {
|
|
|
785
702
|
headers: res.headers
|
|
786
703
|
};
|
|
787
704
|
};
|
|
788
|
-
const
|
|
789
|
-
return `https://api.workos.com/_widgets/
|
|
705
|
+
const getUpdatePasswordUrl = () => {
|
|
706
|
+
return `https://api.workos.com/_widgets/UserProfile/update-password`;
|
|
790
707
|
};
|
|
791
|
-
const
|
|
792
|
-
const res = await fetch(
|
|
708
|
+
const updatePassword = async (updatePasswordRequest, options) => {
|
|
709
|
+
const res = await fetch(getUpdatePasswordUrl(), {
|
|
793
710
|
...options,
|
|
794
|
-
method: "POST"
|
|
711
|
+
method: "POST",
|
|
712
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
713
|
+
body: JSON.stringify(updatePasswordRequest)
|
|
795
714
|
});
|
|
796
715
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
797
716
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -801,13 +720,29 @@ const reverifyOrganizationDomain = async (domainId, options) => {
|
|
|
801
720
|
headers: res.headers
|
|
802
721
|
};
|
|
803
722
|
};
|
|
804
|
-
const
|
|
805
|
-
return `https://api.workos.com/_widgets/
|
|
723
|
+
const getVerifyUrl = () => {
|
|
724
|
+
return `https://api.workos.com/_widgets/UserProfile/verify`;
|
|
806
725
|
};
|
|
807
|
-
const
|
|
808
|
-
const res = await fetch(
|
|
726
|
+
const verify = async (verifyRequest, options) => {
|
|
727
|
+
const res = await fetch(getVerifyUrl(), {
|
|
809
728
|
...options,
|
|
810
|
-
method: "
|
|
729
|
+
method: "POST",
|
|
730
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
731
|
+
body: JSON.stringify(verifyRequest)
|
|
732
|
+
});
|
|
733
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
734
|
+
const data = body ? JSON.parse(body) : {};
|
|
735
|
+
return { data, status: res.status, headers: res.headers };
|
|
736
|
+
};
|
|
737
|
+
const getVerifyTotpFactorUrl = () => {
|
|
738
|
+
return `https://api.workos.com/_widgets/UserProfile/verify-totp-factor`;
|
|
739
|
+
};
|
|
740
|
+
const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
|
|
741
|
+
const res = await fetch(getVerifyTotpFactorUrl(), {
|
|
742
|
+
...options,
|
|
743
|
+
method: "POST",
|
|
744
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
745
|
+
body: JSON.stringify(verifyTotpFactorRequest)
|
|
811
746
|
});
|
|
812
747
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
813
748
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -817,15 +752,13 @@ const listSsoConnections = async (options) => {
|
|
|
817
752
|
headers: res.headers
|
|
818
753
|
};
|
|
819
754
|
};
|
|
820
|
-
const
|
|
821
|
-
return `https://api.workos.com/_widgets/
|
|
755
|
+
const getGetAuditLogStreamUrl = () => {
|
|
756
|
+
return `https://api.workos.com/_widgets/admin-portal/audit-log-stream`;
|
|
822
757
|
};
|
|
823
|
-
const
|
|
824
|
-
const res = await fetch(
|
|
758
|
+
const getAuditLogStream = async (options) => {
|
|
759
|
+
const res = await fetch(getGetAuditLogStreamUrl(), {
|
|
825
760
|
...options,
|
|
826
|
-
method: "
|
|
827
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
828
|
-
body: JSON.stringify(createOrganizationApiKeyRequest)
|
|
761
|
+
method: "GET"
|
|
829
762
|
});
|
|
830
763
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
831
764
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -835,7 +768,7 @@ const createOrganizationApiKey = async (createOrganizationApiKeyRequest, options
|
|
|
835
768
|
headers: res.headers
|
|
836
769
|
};
|
|
837
770
|
};
|
|
838
|
-
const
|
|
771
|
+
const getGenerateAdminPortalLinkUrl = (params) => {
|
|
839
772
|
const normalizedParams = new URLSearchParams();
|
|
840
773
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
841
774
|
if (value !== void 0) {
|
|
@@ -843,12 +776,12 @@ const getListOrganizationApiKeysUrl = (params) => {
|
|
|
843
776
|
}
|
|
844
777
|
});
|
|
845
778
|
const stringifiedParams = normalizedParams.toString();
|
|
846
|
-
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/
|
|
779
|
+
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/admin-portal/generate-link?${stringifiedParams}` : `https://api.workos.com/_widgets/admin-portal/generate-link`;
|
|
847
780
|
};
|
|
848
|
-
const
|
|
849
|
-
const res = await fetch(
|
|
781
|
+
const generateAdminPortalLink = async (params, options) => {
|
|
782
|
+
const res = await fetch(getGenerateAdminPortalLinkUrl(params), {
|
|
850
783
|
...options,
|
|
851
|
-
method: "
|
|
784
|
+
method: "POST"
|
|
852
785
|
});
|
|
853
786
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
854
787
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -858,18 +791,11 @@ const listOrganizationApiKeys = async (params, options) => {
|
|
|
858
791
|
headers: res.headers
|
|
859
792
|
};
|
|
860
793
|
};
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
864
|
-
if (value !== void 0) {
|
|
865
|
-
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
const stringifiedParams = normalizedParams.toString();
|
|
869
|
-
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/ApiKeys/permissions?${stringifiedParams}` : `https://api.workos.com/_widgets/ApiKeys/permissions`;
|
|
794
|
+
const getListOrganizationDomainsUrl = () => {
|
|
795
|
+
return `https://api.workos.com/_widgets/admin-portal/organization-domains`;
|
|
870
796
|
};
|
|
871
|
-
const
|
|
872
|
-
const res = await fetch(
|
|
797
|
+
const listOrganizationDomains = async (options) => {
|
|
798
|
+
const res = await fetch(getListOrganizationDomainsUrl(), {
|
|
873
799
|
...options,
|
|
874
800
|
method: "GET"
|
|
875
801
|
});
|
|
@@ -881,11 +807,11 @@ const listOrganizationApiKeyPermissions = async (params, options) => {
|
|
|
881
807
|
headers: res.headers
|
|
882
808
|
};
|
|
883
809
|
};
|
|
884
|
-
const
|
|
885
|
-
return `https://api.workos.com/_widgets/
|
|
810
|
+
const getDeleteOrganizationDomainUrl = (domainId) => {
|
|
811
|
+
return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}`;
|
|
886
812
|
};
|
|
887
|
-
const
|
|
888
|
-
const res = await fetch(
|
|
813
|
+
const deleteOrganizationDomain = async (domainId, options) => {
|
|
814
|
+
const res = await fetch(getDeleteOrganizationDomainUrl(domainId), {
|
|
889
815
|
...options,
|
|
890
816
|
method: "DELETE"
|
|
891
817
|
});
|
|
@@ -897,13 +823,13 @@ const deleteOrganizationApiKey = async (apiKeyId, options) => {
|
|
|
897
823
|
headers: res.headers
|
|
898
824
|
};
|
|
899
825
|
};
|
|
900
|
-
const
|
|
901
|
-
return `https://api.workos.com/_widgets/
|
|
826
|
+
const getReverifyOrganizationDomainUrl = (domainId) => {
|
|
827
|
+
return `https://api.workos.com/_widgets/admin-portal/organization-domains/${domainId}/reverify`;
|
|
902
828
|
};
|
|
903
|
-
const
|
|
904
|
-
const res = await fetch(
|
|
829
|
+
const reverifyOrganizationDomain = async (domainId, options) => {
|
|
830
|
+
const res = await fetch(getReverifyOrganizationDomainUrl(domainId), {
|
|
905
831
|
...options,
|
|
906
|
-
method: "
|
|
832
|
+
method: "POST"
|
|
907
833
|
});
|
|
908
834
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
909
835
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -913,18 +839,11 @@ const myDataIntegrations = async (options) => {
|
|
|
913
839
|
headers: res.headers
|
|
914
840
|
};
|
|
915
841
|
};
|
|
916
|
-
const
|
|
917
|
-
|
|
918
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
919
|
-
if (value !== void 0) {
|
|
920
|
-
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
921
|
-
}
|
|
922
|
-
});
|
|
923
|
-
const stringifiedParams = normalizedParams.toString();
|
|
924
|
-
return stringifiedParams.length > 0 ? `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize?${stringifiedParams}` : `https://api.workos.com/_widgets/DataIntegrations/${slug}/authorize`;
|
|
842
|
+
const getListSsoConnectionsUrl = () => {
|
|
843
|
+
return `https://api.workos.com/_widgets/admin-portal/sso-connections`;
|
|
925
844
|
};
|
|
926
|
-
const
|
|
927
|
-
const res = await fetch(
|
|
845
|
+
const listSsoConnections = async (options) => {
|
|
846
|
+
const res = await fetch(getListSsoConnectionsUrl(), {
|
|
928
847
|
...options,
|
|
929
848
|
method: "GET"
|
|
930
849
|
});
|
|
@@ -936,17 +855,14 @@ const getDataIntegrationAuthorizeUrl = async (slug, params, options) => {
|
|
|
936
855
|
headers: res.headers
|
|
937
856
|
};
|
|
938
857
|
};
|
|
939
|
-
const
|
|
940
|
-
return `https://api.workos.com/_widgets/
|
|
858
|
+
const getListDirectoriesUrl = () => {
|
|
859
|
+
return `https://api.workos.com/_widgets/directory-sync/directories`;
|
|
941
860
|
};
|
|
942
|
-
const
|
|
943
|
-
const res = await fetch(
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
method: "GET"
|
|
948
|
-
}
|
|
949
|
-
);
|
|
861
|
+
const listDirectories = async (options) => {
|
|
862
|
+
const res = await fetch(getListDirectoriesUrl(), {
|
|
863
|
+
...options,
|
|
864
|
+
method: "GET"
|
|
865
|
+
});
|
|
950
866
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
951
867
|
const data = body ? JSON.parse(body) : {};
|
|
952
868
|
return {
|
|
@@ -955,13 +871,13 @@ const getDataInstallationAuthorizationStatus = async (dataIntegrationId, state,
|
|
|
955
871
|
headers: res.headers
|
|
956
872
|
};
|
|
957
873
|
};
|
|
958
|
-
const
|
|
959
|
-
return `https://api.workos.com/_widgets/
|
|
874
|
+
const getGetDirectoryUrl = (directoryId) => {
|
|
875
|
+
return `https://api.workos.com/_widgets/directory-sync/directories/${directoryId}`;
|
|
960
876
|
};
|
|
961
|
-
const
|
|
962
|
-
const res = await fetch(
|
|
877
|
+
const getDirectory = async (directoryId, options) => {
|
|
878
|
+
const res = await fetch(getGetDirectoryUrl(directoryId), {
|
|
963
879
|
...options,
|
|
964
|
-
method: "
|
|
880
|
+
method: "GET"
|
|
965
881
|
});
|
|
966
882
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
967
883
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -971,20 +887,22 @@ const deleteDataInstallation = async (installationId, options) => {
|
|
|
971
887
|
headers: res.headers
|
|
972
888
|
};
|
|
973
889
|
};
|
|
890
|
+
const getSettingsUrl = () => {
|
|
891
|
+
return `https://api.workos.com/_widgets/settings`;
|
|
892
|
+
};
|
|
893
|
+
const settings = async (options) => {
|
|
894
|
+
const res = await fetch(getSettingsUrl(), {
|
|
895
|
+
...options,
|
|
896
|
+
method: "GET"
|
|
897
|
+
});
|
|
898
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
899
|
+
const data = body ? JSON.parse(body) : {};
|
|
900
|
+
return { data, status: res.status, headers: res.headers };
|
|
901
|
+
};
|
|
974
902
|
// Annotate the CommonJS export names for ESM import in node:
|
|
975
903
|
0 && (module.exports = {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
|
|
979
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
980
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
981
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
982
|
-
DataInstallationObject,
|
|
983
|
-
DataInstallationState,
|
|
984
|
-
DataIntegrationCredentialsType,
|
|
985
|
-
DataIntegrationIntegrationType,
|
|
986
|
-
DataIntegrationObject,
|
|
987
|
-
DataIntegrationOwnership,
|
|
904
|
+
DirectoryState,
|
|
905
|
+
DirectoryType,
|
|
988
906
|
DomainVerificationNameServer,
|
|
989
907
|
GenerateAdminPortalLinkIntent,
|
|
990
908
|
MemberActionsItem,
|
|
@@ -992,14 +910,6 @@ const deleteDataInstallation = async (installationId, options) => {
|
|
|
992
910
|
OidcSessionState,
|
|
993
911
|
OrganizationDomainState,
|
|
994
912
|
SamlSessionState,
|
|
995
|
-
SendVerificationResponseType,
|
|
996
|
-
SettingsResponseObject,
|
|
997
|
-
SsoConnectionAnyOfEightAllOfProviderTag,
|
|
998
|
-
SsoConnectionAnyOfEightAllOfState,
|
|
999
|
-
SsoConnectionAnyOfEightAllOfType,
|
|
1000
|
-
SsoConnectionAnyOfProviderTag,
|
|
1001
|
-
SsoConnectionAnyOfState,
|
|
1002
|
-
SsoConnectionAnyOfType,
|
|
1003
913
|
SsoConnectionSessionJSONState,
|
|
1004
914
|
authenticationInformation,
|
|
1005
915
|
createOrganizationApiKey,
|
|
@@ -1011,6 +921,7 @@ const deleteDataInstallation = async (installationId, options) => {
|
|
|
1011
921
|
deletePasskey,
|
|
1012
922
|
deleteTotpFactors,
|
|
1013
923
|
generateAdminPortalLink,
|
|
924
|
+
getAuditLogStream,
|
|
1014
925
|
getAuthenticationInformationUrl,
|
|
1015
926
|
getCreateOrganizationApiKeyUrl,
|
|
1016
927
|
getCreatePasswordUrl,
|
|
@@ -1022,10 +933,14 @@ const deleteDataInstallation = async (installationId, options) => {
|
|
|
1022
933
|
getDeleteOrganizationDomainUrl,
|
|
1023
934
|
getDeletePasskeyUrl,
|
|
1024
935
|
getDeleteTotpFactorsUrl,
|
|
936
|
+
getDirectory,
|
|
1025
937
|
getGenerateAdminPortalLinkUrl,
|
|
938
|
+
getGetAuditLogStreamUrl,
|
|
1026
939
|
getGetDataInstallationAuthorizationStatusUrl,
|
|
1027
940
|
getGetDataIntegrationAuthorizeUrlUrl,
|
|
941
|
+
getGetDirectoryUrl,
|
|
1028
942
|
getInviteMemberUrl,
|
|
943
|
+
getListDirectoriesUrl,
|
|
1029
944
|
getListOrganizationApiKeyPermissionsUrl,
|
|
1030
945
|
getListOrganizationApiKeysUrl,
|
|
1031
946
|
getListOrganizationDomainsUrl,
|
|
@@ -1053,6 +968,7 @@ const deleteDataInstallation = async (installationId, options) => {
|
|
|
1053
968
|
getVerifyTotpFactorUrl,
|
|
1054
969
|
getVerifyUrl,
|
|
1055
970
|
inviteMember,
|
|
971
|
+
listDirectories,
|
|
1056
972
|
listOrganizationApiKeyPermissions,
|
|
1057
973
|
listOrganizationApiKeys,
|
|
1058
974
|
listOrganizationDomains,
|