@workos-inc/widgets 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/api/endpoint.cjs +4 -1
  3. package/dist/cjs/api/endpoint.cjs.map +1 -1
  4. package/dist/cjs/api/endpoint.d.cts +17 -9
  5. package/dist/cjs/experimental/api/fetch.cjs +1083 -0
  6. package/dist/cjs/experimental/api/fetch.cjs.map +1 -0
  7. package/dist/cjs/experimental/api/fetch.d.cts +1871 -0
  8. package/dist/cjs/experimental/api/react-query.cjs +1863 -0
  9. package/dist/cjs/experimental/api/react-query.cjs.map +1 -0
  10. package/dist/cjs/experimental/api/react-query.d.cts +2685 -0
  11. package/dist/cjs/experimental/api/swr.cjs +1972 -0
  12. package/dist/cjs/experimental/api/swr.cjs.map +1 -0
  13. package/dist/cjs/experimental/api/swr.d.cts +2585 -0
  14. package/dist/cjs/lib/add-mfa-dialog.cjs +2 -2
  15. package/dist/cjs/lib/add-mfa-dialog.cjs.map +1 -1
  16. package/dist/cjs/lib/admin-portal-domain-verification.cjs.map +1 -1
  17. package/dist/cjs/lib/api/user.d.cts +2 -2
  18. package/dist/cjs/lib/api-keys/api-keys-search.cjs +2 -2
  19. package/dist/cjs/lib/api-keys/api-keys-search.cjs.map +1 -1
  20. package/dist/cjs/lib/api-keys/create-api-key.cjs +8 -8
  21. package/dist/cjs/lib/api-keys/create-api-key.cjs.map +1 -1
  22. package/dist/cjs/lib/change-password-dialog.cjs +18 -18
  23. package/dist/cjs/lib/change-password-dialog.cjs.map +1 -1
  24. package/dist/cjs/lib/copy-button.cjs.map +1 -1
  25. package/dist/cjs/lib/edit-user-profile-dialog.cjs +8 -8
  26. package/dist/cjs/lib/edit-user-profile-dialog.cjs.map +1 -1
  27. package/dist/cjs/lib/elements/utils.cjs +3 -4
  28. package/dist/cjs/lib/elements/utils.cjs.map +1 -1
  29. package/dist/cjs/lib/elements.cjs.map +1 -1
  30. package/dist/cjs/lib/elevated-access.cjs +2 -2
  31. package/dist/cjs/lib/elevated-access.cjs.map +1 -1
  32. package/dist/cjs/lib/marker.cjs.map +1 -1
  33. package/dist/cjs/lib/organization-switcher.cjs.map +1 -1
  34. package/dist/cjs/lib/otp-input.cjs +6 -7
  35. package/dist/cjs/lib/otp-input.cjs.map +1 -1
  36. package/dist/cjs/lib/provider-icon.cjs.map +1 -1
  37. package/dist/cjs/lib/set-password-dialog.cjs +12 -12
  38. package/dist/cjs/lib/set-password-dialog.cjs.map +1 -1
  39. package/dist/cjs/lib/status.cjs.map +1 -1
  40. package/dist/cjs/lib/users-search.cjs +2 -2
  41. package/dist/cjs/lib/users-search.cjs.map +1 -1
  42. package/dist/cjs/organization-switcher.client.cjs.map +1 -1
  43. package/dist/esm/api/endpoint.d.ts +17 -9
  44. package/dist/esm/api/endpoint.js +4 -1
  45. package/dist/esm/api/endpoint.js.map +1 -1
  46. package/dist/esm/experimental/api/fetch.d.ts +1871 -0
  47. package/dist/esm/experimental/api/fetch.js +954 -0
  48. package/dist/esm/experimental/api/fetch.js.map +1 -0
  49. package/dist/esm/experimental/api/react-query.d.ts +2685 -0
  50. package/dist/esm/experimental/api/react-query.js +1641 -0
  51. package/dist/esm/experimental/api/react-query.js.map +1 -0
  52. package/dist/esm/experimental/api/swr.d.ts +2585 -0
  53. package/dist/esm/experimental/api/swr.js +1731 -0
  54. package/dist/esm/experimental/api/swr.js.map +1 -0
  55. package/dist/esm/lib/add-mfa-dialog.js +1 -1
  56. package/dist/esm/lib/add-mfa-dialog.js.map +1 -1
  57. package/dist/esm/lib/admin-portal-domain-verification.js.map +1 -1
  58. package/dist/esm/lib/api/user.d.ts +2 -2
  59. package/dist/esm/lib/api-keys/api-keys-search.js +1 -1
  60. package/dist/esm/lib/api-keys/api-keys-search.js.map +1 -1
  61. package/dist/esm/lib/api-keys/create-api-key.js +1 -1
  62. package/dist/esm/lib/api-keys/create-api-key.js.map +1 -1
  63. package/dist/esm/lib/change-password-dialog.js +1 -1
  64. package/dist/esm/lib/change-password-dialog.js.map +1 -1
  65. package/dist/esm/lib/copy-button.js.map +1 -1
  66. package/dist/esm/lib/edit-user-profile-dialog.js +1 -1
  67. package/dist/esm/lib/edit-user-profile-dialog.js.map +1 -1
  68. package/dist/esm/lib/elements/utils.js +1 -2
  69. package/dist/esm/lib/elements/utils.js.map +1 -1
  70. package/dist/esm/lib/elements.js.map +1 -1
  71. package/dist/esm/lib/elevated-access.js +1 -1
  72. package/dist/esm/lib/elevated-access.js.map +1 -1
  73. package/dist/esm/lib/marker.js.map +1 -1
  74. package/dist/esm/lib/organization-switcher.js.map +1 -1
  75. package/dist/esm/lib/otp-input.js +6 -3
  76. package/dist/esm/lib/otp-input.js.map +1 -1
  77. package/dist/esm/lib/provider-icon.js.map +1 -1
  78. package/dist/esm/lib/set-password-dialog.js +1 -1
  79. package/dist/esm/lib/set-password-dialog.js.map +1 -1
  80. package/dist/esm/lib/status.js.map +1 -1
  81. package/dist/esm/lib/users-search.js +1 -1
  82. package/dist/esm/lib/users-search.js.map +1 -1
  83. package/dist/esm/organization-switcher.client.js.map +1 -1
  84. package/package.json +33 -23
  85. package/dist/cjs/lib/use-layout-effect.cjs +0 -31
  86. package/dist/cjs/lib/use-layout-effect.cjs.map +0 -1
  87. package/dist/cjs/lib/use-layout-effect.d.cts +0 -5
  88. package/dist/esm/lib/use-layout-effect.d.ts +0 -5
  89. package/dist/esm/lib/use-layout-effect.js +0 -7
  90. package/dist/esm/lib/use-layout-effect.js.map +0 -1
@@ -0,0 +1,2585 @@
1
+ import * as swr_mutation from 'swr/mutation';
2
+ import { SWRMutationConfiguration } from 'swr/mutation';
3
+ import * as swr__internal from 'swr/_internal';
4
+ import * as swr from 'swr';
5
+ import { SWRConfiguration, Key, Arguments } from 'swr';
6
+
7
+ declare const MemberStatus: {
8
+ readonly Active: "Active";
9
+ readonly Invited: "Invited";
10
+ readonly InviteExpired: "InviteExpired";
11
+ readonly InviteRevoked: "InviteRevoked";
12
+ readonly NoInvite: "NoInvite";
13
+ };
14
+ type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus];
15
+ declare const MemberActionsItem: {
16
+ readonly "edit-role": "edit-role";
17
+ readonly "resend-invite": "resend-invite";
18
+ readonly "revoke-invite": "revoke-invite";
19
+ readonly "revoke-membership": "revoke-membership";
20
+ };
21
+ type MemberActions = (typeof MemberActionsItem)[keyof typeof MemberActionsItem][];
22
+ type MemberRolesItem = {
23
+ name: string;
24
+ slug: string;
25
+ /** @nullable */
26
+ description?: string | null;
27
+ };
28
+ interface Member {
29
+ id: string;
30
+ email: string;
31
+ emailVerified: boolean;
32
+ /** @nullable */
33
+ profilePictureUrl?: string | null;
34
+ /** @nullable */
35
+ firstName?: string | null;
36
+ /** @nullable */
37
+ lastName?: string | null;
38
+ createdAt: string;
39
+ /** @nullable */
40
+ lastActivityAt?: string | null;
41
+ status: MemberStatus;
42
+ actions: MemberActions;
43
+ /** @nullable */
44
+ isLoggedInUser?: boolean | null;
45
+ /** @nullable */
46
+ roles?: MemberRolesItem[] | null;
47
+ }
48
+ interface ListMetadata {
49
+ /** @nullable */
50
+ before?: string | null;
51
+ /** @nullable */
52
+ after?: string | null;
53
+ }
54
+ interface MemberRole {
55
+ name: string;
56
+ slug: string;
57
+ default: boolean;
58
+ /** @nullable */
59
+ description?: string | null;
60
+ }
61
+ interface RolesAndConfigResponse {
62
+ roles: MemberRole[];
63
+ multipleRolesEnabled: boolean;
64
+ }
65
+ interface OrganizationInfo {
66
+ id: string;
67
+ name: string;
68
+ current: boolean;
69
+ /** @nullable */
70
+ favicon?: string | null;
71
+ }
72
+ interface OrganizationsResponse {
73
+ data: OrganizationInfo[];
74
+ }
75
+ interface OAuthProfile {
76
+ id: string;
77
+ /** @nullable */
78
+ email?: string | null;
79
+ /** @nullable */
80
+ firstName?: string | null;
81
+ /** @nullable */
82
+ lastName?: string | null;
83
+ /** @nullable */
84
+ profilePictureUrl?: string | null;
85
+ /** @nullable */
86
+ lastLoginAt?: string | null;
87
+ }
88
+ /**
89
+ * @nullable
90
+ */
91
+ type MeOauthProfiles = {
92
+ AppleOAuth?: OAuthProfile;
93
+ GithubOAuth?: OAuthProfile;
94
+ GoogleOAuth?: OAuthProfile;
95
+ MicrosoftOAuth?: OAuthProfile;
96
+ } | null;
97
+ interface Me {
98
+ id: string;
99
+ email: string;
100
+ /** @nullable */
101
+ firstName?: string | null;
102
+ /** @nullable */
103
+ lastName?: string | null;
104
+ /** @nullable */
105
+ locale?: string | null;
106
+ /** @nullable */
107
+ profilePictureUrl?: string | null;
108
+ /** @nullable */
109
+ oauthProfiles?: MeOauthProfiles;
110
+ }
111
+ type CreateTotpFactorResponseAuthenticationFactorAllOfObject = (typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject];
112
+ declare const CreateTotpFactorResponseAuthenticationFactorAllOfObject: {
113
+ readonly authentication_factor: "authentication_factor";
114
+ };
115
+ type CreateTotpFactorResponseAuthenticationFactorAllOfType = (typeof CreateTotpFactorResponseAuthenticationFactorAllOfType)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfType];
116
+ declare const CreateTotpFactorResponseAuthenticationFactorAllOfType: {
117
+ readonly generic_otp: "generic_otp";
118
+ readonly sms: "sms";
119
+ readonly totp: "totp";
120
+ readonly webauthn: "webauthn";
121
+ };
122
+ /**
123
+ * @nullable
124
+ */
125
+ type CreateTotpFactorResponseAuthenticationFactorAllOfSms = {
126
+ phone_number: string;
127
+ } | null;
128
+ /**
129
+ * @nullable
130
+ */
131
+ type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf = {
132
+ issuer: string;
133
+ user: string;
134
+ secret: string;
135
+ qr_code: string;
136
+ uri: string;
137
+ } | null;
138
+ /**
139
+ * @nullable
140
+ */
141
+ type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo = {
142
+ issuer: string;
143
+ user: string;
144
+ } | null;
145
+ type CreateTotpFactorResponseAuthenticationFactorAllOfTotp = CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo;
146
+ type CreateTotpFactorResponseAuthenticationFactorAllOf = {
147
+ object: CreateTotpFactorResponseAuthenticationFactorAllOfObject;
148
+ id: string;
149
+ type: CreateTotpFactorResponseAuthenticationFactorAllOfType;
150
+ /** @nullable */
151
+ user_id?: string | null;
152
+ /** @nullable */
153
+ sms?: CreateTotpFactorResponseAuthenticationFactorAllOfSms;
154
+ totp?: CreateTotpFactorResponseAuthenticationFactorAllOfTotp;
155
+ };
156
+ type CreateTotpFactorResponseAuthenticationFactorAllOfEight = {
157
+ created_at: string;
158
+ updated_at: string;
159
+ };
160
+ type CreateTotpFactorResponseAuthenticationFactor = CreateTotpFactorResponseAuthenticationFactorAllOf & CreateTotpFactorResponseAuthenticationFactorAllOfEight;
161
+ type CreateTotpFactorResponseAuthenticationChallengeAllOfObject = (typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject];
162
+ declare const CreateTotpFactorResponseAuthenticationChallengeAllOfObject: {
163
+ readonly authentication_challenge: "authentication_challenge";
164
+ };
165
+ type CreateTotpFactorResponseAuthenticationChallengeAllOf = {
166
+ object: CreateTotpFactorResponseAuthenticationChallengeAllOfObject;
167
+ id: string;
168
+ /** @nullable */
169
+ expires_at?: string | null;
170
+ /** @nullable */
171
+ code?: string | null;
172
+ authentication_factor_id: string;
173
+ };
174
+ type CreateTotpFactorResponseAuthenticationChallengeAllOfThree = {
175
+ created_at: string;
176
+ updated_at: string;
177
+ };
178
+ type CreateTotpFactorResponseAuthenticationChallenge = CreateTotpFactorResponseAuthenticationChallengeAllOf & CreateTotpFactorResponseAuthenticationChallengeAllOfThree;
179
+ interface CreateTotpFactorResponse {
180
+ authenticationFactor: CreateTotpFactorResponseAuthenticationFactor;
181
+ authenticationChallenge: CreateTotpFactorResponseAuthenticationChallenge;
182
+ }
183
+ interface VerifyTotpFactorRequest {
184
+ code: string;
185
+ authenticationChallengeId: string;
186
+ }
187
+ type AuthenticationInformationResponseDataVerificationMethodsMfaProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider];
188
+ declare const AuthenticationInformationResponseDataVerificationMethodsMfaProvider: {
189
+ readonly MFA: "MFA";
190
+ };
191
+ /**
192
+ * @nullable
193
+ */
194
+ type AuthenticationInformationResponseDataVerificationMethodsMfa = {
195
+ provider: AuthenticationInformationResponseDataVerificationMethodsMfaProvider;
196
+ isSetUp: boolean;
197
+ /** @nullable */
198
+ lastUsed?: string | null;
199
+ } | null;
200
+ type AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider];
201
+ declare const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider: {
202
+ readonly Password: "Password";
203
+ };
204
+ /**
205
+ * @nullable
206
+ */
207
+ type AuthenticationInformationResponseDataVerificationMethodsPassword = {
208
+ provider: AuthenticationInformationResponseDataVerificationMethodsPasswordProvider;
209
+ isSetUp: boolean;
210
+ /** @nullable */
211
+ lastUsed?: string | null;
212
+ isCurrentSession: boolean;
213
+ } | null;
214
+ type AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider];
215
+ declare const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider: {
216
+ readonly Passkey: "Passkey";
217
+ };
218
+ type AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem = {
219
+ id: string;
220
+ };
221
+ /**
222
+ * @nullable
223
+ */
224
+ type AuthenticationInformationResponseDataVerificationMethodsPasskey = {
225
+ provider: AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider;
226
+ isSetUp: boolean;
227
+ /** @nullable */
228
+ lastUsed?: string | null;
229
+ passKeys: AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem[];
230
+ isCurrentSession: boolean;
231
+ } | null;
232
+ type AuthenticationInformationResponseDataVerificationMethods = {
233
+ /** @nullable */
234
+ Mfa?: AuthenticationInformationResponseDataVerificationMethodsMfa;
235
+ /** @nullable */
236
+ Password?: AuthenticationInformationResponseDataVerificationMethodsPassword;
237
+ /** @nullable */
238
+ Passkey?: AuthenticationInformationResponseDataVerificationMethodsPasskey;
239
+ };
240
+ type AuthenticationInformationResponseDataPasswordSettings = {
241
+ isPasswordNumberRequired: boolean;
242
+ isPasswordPwnedRequired: boolean;
243
+ isPasswordSymbolRequired: boolean;
244
+ isPasswordUppercaseRequired: boolean;
245
+ passwordMinimumLength: number;
246
+ passwordMinimumStrength: number;
247
+ };
248
+ type AuthenticationInformationResponseData = {
249
+ verificationMethods: AuthenticationInformationResponseDataVerificationMethods;
250
+ passwordSettings: AuthenticationInformationResponseDataPasswordSettings;
251
+ };
252
+ interface AuthenticationInformationResponse {
253
+ data: AuthenticationInformationResponseData;
254
+ }
255
+ interface CreatePasswordRequest {
256
+ password: string;
257
+ }
258
+ interface UpdatePasswordRequest {
259
+ newPassword: string;
260
+ currentPassword: string;
261
+ }
262
+ interface RevokeAllSessionsRequest {
263
+ currentSessionId: string;
264
+ }
265
+ type ActiveSessionState = {
266
+ tag: string;
267
+ /** @nullable */
268
+ expiresAt?: string | null;
269
+ };
270
+ /**
271
+ * @nullable
272
+ */
273
+ type ActiveSessionCurrentLocation = {
274
+ cityName: string;
275
+ countryISOCode: string;
276
+ } | null;
277
+ interface ActiveSession {
278
+ id: string;
279
+ userlandUserId: string;
280
+ /** @nullable */
281
+ ipAddress?: string | null;
282
+ /** @nullable */
283
+ userAgent?: string | null;
284
+ /** @nullable */
285
+ organizationId?: string | null;
286
+ state: ActiveSessionState;
287
+ /** @nullable */
288
+ currentLocation?: ActiveSessionCurrentLocation;
289
+ usedSsoAuth: boolean;
290
+ usedPasswordAuth: boolean;
291
+ usedPasskeyAuth: boolean;
292
+ usedAppleOauth: boolean;
293
+ usedBitbucketOauth: boolean;
294
+ usedGithubOauth: boolean;
295
+ usedGitLabOauth: boolean;
296
+ usedGoogleOauth: boolean;
297
+ usedLinkedInOauth: boolean;
298
+ usedImpersonation: boolean;
299
+ usedMicrosoftOauth: boolean;
300
+ usedSlackOauth: boolean;
301
+ usedXeroOauth: boolean;
302
+ usedMagicAuth: boolean;
303
+ /** @nullable */
304
+ impersonatorUserId?: string | null;
305
+ /** @nullable */
306
+ impersonatorEmail?: string | null;
307
+ /** @nullable */
308
+ impersonationReason?: string | null;
309
+ /** @nullable */
310
+ lastActivityAt?: string | null;
311
+ createdAt: string;
312
+ updatedAt: string;
313
+ }
314
+ interface ActiveSessionsResponse {
315
+ data: ActiveSession[];
316
+ }
317
+ type SendVerificationResponseType = (typeof SendVerificationResponseType)[keyof typeof SendVerificationResponseType];
318
+ declare const SendVerificationResponseType: {
319
+ readonly EmailVerification: "EmailVerification";
320
+ };
321
+ interface SendVerificationResponse {
322
+ authenticationChallenge: string;
323
+ type: SendVerificationResponseType;
324
+ }
325
+ interface VerifyRequest {
326
+ code: string;
327
+ authenticationChallengeId: string;
328
+ }
329
+ interface VerifyResponse {
330
+ elevatedAccessToken: string;
331
+ expiresAt: string;
332
+ }
333
+ type RegisterPasskeyResponseOptions = {
334
+ [key: string]: unknown;
335
+ };
336
+ interface RegisterPasskeyResponse {
337
+ challengeId: string;
338
+ options: RegisterPasskeyResponseOptions;
339
+ }
340
+ type VerifyPasskeyRequestResponse = {
341
+ [key: string]: unknown;
342
+ };
343
+ interface VerifyPasskeyRequest {
344
+ challengeId: string;
345
+ response: VerifyPasskeyRequestResponse;
346
+ }
347
+ type SettingsResponseObject = (typeof SettingsResponseObject)[keyof typeof SettingsResponseObject];
348
+ declare const SettingsResponseObject: {
349
+ readonly settings: "settings";
350
+ };
351
+ interface SettingsResponse {
352
+ object: SettingsResponseObject;
353
+ authkitOrigin: string;
354
+ /** @nullable */
355
+ logoDarkIconPath?: string | null;
356
+ /** @nullable */
357
+ logoDarkPath?: string | null;
358
+ /** @nullable */
359
+ logoLightIconPath?: string | null;
360
+ /** @nullable */
361
+ logoLightPath?: string | null;
362
+ teamName: string;
363
+ }
364
+ type OrganizationDomainState = (typeof OrganizationDomainState)[keyof typeof OrganizationDomainState];
365
+ declare const OrganizationDomainState: {
366
+ readonly Failed: "Failed";
367
+ readonly LegacyVerified: "LegacyVerified";
368
+ readonly Pending: "Pending";
369
+ readonly Verified: "Verified";
370
+ };
371
+ type DomainVerificationNameServer = (typeof DomainVerificationNameServer)[keyof typeof DomainVerificationNameServer];
372
+ declare const DomainVerificationNameServer: {
373
+ readonly AwsRoute53: "AwsRoute53";
374
+ readonly GoogleDomains: "GoogleDomains";
375
+ readonly CloudFlare: "CloudFlare";
376
+ readonly GoDaddy: "GoDaddy";
377
+ readonly Other: "Other";
378
+ };
379
+ interface OrganizationDomain {
380
+ id: string;
381
+ domain: string;
382
+ state: OrganizationDomainState;
383
+ nameServer: DomainVerificationNameServer;
384
+ /** @nullable */
385
+ verificationPrefix?: string | null;
386
+ /** @nullable */
387
+ verificationToken?: string | null;
388
+ /** @nullable */
389
+ subdomain?: string | null;
390
+ createdAt: string;
391
+ }
392
+ interface X509CertificateJSON {
393
+ id: string;
394
+ value: string;
395
+ /** @nullable */
396
+ notBefore?: string | null;
397
+ /** @nullable */
398
+ notAfter?: string | null;
399
+ /** @nullable */
400
+ lastExpiryEventSentAt?: string | null;
401
+ }
402
+ type SamlSessionState = (typeof SamlSessionState)[keyof typeof SamlSessionState];
403
+ declare const SamlSessionState: {
404
+ readonly Authorized: "Authorized";
405
+ readonly Failed: "Failed";
406
+ readonly Started: "Started";
407
+ readonly Successful: "Successful";
408
+ readonly Timedout: "Timedout";
409
+ };
410
+ type OidcSessionState = (typeof OidcSessionState)[keyof typeof OidcSessionState];
411
+ declare const OidcSessionState: {
412
+ readonly Started: "Started";
413
+ readonly Authorized: "Authorized";
414
+ readonly Successful: "Successful";
415
+ readonly Failed: "Failed";
416
+ readonly Terminated: "Terminated";
417
+ readonly Timedout: "Timedout";
418
+ };
419
+ declare const SsoConnectionSessionJSONState: {
420
+ readonly Started: "Started";
421
+ readonly Authorized: "Authorized";
422
+ readonly Successful: "Successful";
423
+ readonly Failed: "Failed";
424
+ readonly Terminated: "Terminated";
425
+ readonly Timedout: "Timedout";
426
+ };
427
+ interface SsoConnectionSessionJSON {
428
+ id: string;
429
+ createdAt: string;
430
+ state: (typeof SsoConnectionSessionJSONState)[keyof typeof SsoConnectionSessionJSONState];
431
+ }
432
+ type SsoConnectionAnyOfType = (typeof SsoConnectionAnyOfType)[keyof typeof SsoConnectionAnyOfType];
433
+ declare const SsoConnectionAnyOfType: {
434
+ readonly AdfsSaml: "AdfsSaml";
435
+ readonly Auth0Saml: "Auth0Saml";
436
+ readonly AzureSaml: "AzureSaml";
437
+ readonly CasSaml: "CasSaml";
438
+ readonly ClassLinkSaml: "ClassLinkSaml";
439
+ readonly CloudflareSaml: "CloudflareSaml";
440
+ readonly CyberArkSaml: "CyberArkSaml";
441
+ readonly DuoSaml: "DuoSaml";
442
+ readonly GenericSaml: "GenericSaml";
443
+ readonly GoogleSaml: "GoogleSaml";
444
+ readonly JumpCloudSaml: "JumpCloudSaml";
445
+ readonly KeycloakSaml: "KeycloakSaml";
446
+ readonly LastPassSaml: "LastPassSaml";
447
+ readonly MiniOrangeSaml: "MiniOrangeSaml";
448
+ readonly NetIqSaml: "NetIqSaml";
449
+ readonly OktaSaml: "OktaSaml";
450
+ readonly OneLoginSaml: "OneLoginSaml";
451
+ readonly OracleSaml: "OracleSaml";
452
+ readonly PingFederateSaml: "PingFederateSaml";
453
+ readonly PingOneSaml: "PingOneSaml";
454
+ readonly RipplingSaml: "RipplingSaml";
455
+ readonly SalesforceSaml: "SalesforceSaml";
456
+ readonly ShibbolethGenericSaml: "ShibbolethGenericSaml";
457
+ readonly ShibbolethSaml: "ShibbolethSaml";
458
+ readonly SimpleSamlPhpSaml: "SimpleSamlPhpSaml";
459
+ readonly TestIdp: "TestIdp";
460
+ readonly VmWareSaml: "VmWareSaml";
461
+ };
462
+ type SsoConnectionAnyOfState = (typeof SsoConnectionAnyOfState)[keyof typeof SsoConnectionAnyOfState];
463
+ declare const SsoConnectionAnyOfState: {
464
+ readonly Inactive: "Inactive";
465
+ readonly Validating: "Validating";
466
+ readonly Active: "Active";
467
+ readonly Deleting: "Deleting";
468
+ };
469
+ type SsoConnectionAnyOfLatestExpiringCertificate = X509CertificateJSON | null;
470
+ type SsoConnectionAnyOfLatestExpiredCertificate = X509CertificateJSON | null;
471
+ type SsoConnectionAnyOfProviderTag = (typeof SsoConnectionAnyOfProviderTag)[keyof typeof SsoConnectionAnyOfProviderTag];
472
+ declare const SsoConnectionAnyOfProviderTag: {
473
+ readonly Saml: "Saml";
474
+ };
475
+ type SsoConnectionAnyOfLastSession = SsoConnectionSessionJSON | null;
476
+ type SsoConnectionAnyOf = {
477
+ id: string;
478
+ type: SsoConnectionAnyOfType;
479
+ name: string;
480
+ state: SsoConnectionAnyOfState;
481
+ x509Certificates: X509CertificateJSON[];
482
+ latestExpiringCertificate?: SsoConnectionAnyOfLatestExpiringCertificate;
483
+ latestExpiredCertificate?: SsoConnectionAnyOfLatestExpiredCertificate;
484
+ createdAt: string;
485
+ providerTag: SsoConnectionAnyOfProviderTag;
486
+ lastSession?: SsoConnectionAnyOfLastSession;
487
+ };
488
+ type SsoConnectionAnyOfEightAllOfState = (typeof SsoConnectionAnyOfEightAllOfState)[keyof typeof SsoConnectionAnyOfEightAllOfState];
489
+ declare const SsoConnectionAnyOfEightAllOfState: {
490
+ readonly Inactive: "Inactive";
491
+ readonly Validating: "Validating";
492
+ readonly Active: "Active";
493
+ readonly Deleting: "Deleting";
494
+ };
495
+ type SsoConnectionAnyOfEightAllOfType = (typeof SsoConnectionAnyOfEightAllOfType)[keyof typeof SsoConnectionAnyOfEightAllOfType];
496
+ declare const SsoConnectionAnyOfEightAllOfType: {
497
+ readonly AdpOidc: "AdpOidc";
498
+ readonly Auth0Migration: "Auth0Migration";
499
+ readonly CleverOidc: "CleverOidc";
500
+ readonly EntraIdOidc: "EntraIdOidc";
501
+ readonly GenericOidc: "GenericOidc";
502
+ readonly GoogleOidc: "GoogleOidc";
503
+ readonly OktaOidc: "OktaOidc";
504
+ readonly LoginGovOidc: "LoginGovOidc";
505
+ };
506
+ type SsoConnectionAnyOfEightAllOfProviderTag = (typeof SsoConnectionAnyOfEightAllOfProviderTag)[keyof typeof SsoConnectionAnyOfEightAllOfProviderTag];
507
+ declare const SsoConnectionAnyOfEightAllOfProviderTag: {
508
+ readonly OpenIdConnect: "OpenIdConnect";
509
+ };
510
+ type SsoConnectionAnyOfEightAllOfLastSession = SsoConnectionSessionJSON | null;
511
+ type SsoConnectionAnyOfEightAllOf = {
512
+ id: string;
513
+ name: string;
514
+ state: SsoConnectionAnyOfEightAllOfState;
515
+ type: SsoConnectionAnyOfEightAllOfType;
516
+ createdAt: string;
517
+ providerTag: SsoConnectionAnyOfEightAllOfProviderTag;
518
+ lastSession?: SsoConnectionAnyOfEightAllOfLastSession;
519
+ };
520
+ type SsoConnectionAnyOfEightAllOfSix = {
521
+ x509Certificates?: null;
522
+ latestExpiringCertificate?: null;
523
+ latestExpiredCertificate?: null;
524
+ };
525
+ type SsoConnectionAnyOfEight = SsoConnectionAnyOfEightAllOf & SsoConnectionAnyOfEightAllOfSix;
526
+ type SsoConnection = SsoConnectionAnyOf | SsoConnectionAnyOfEight;
527
+ interface ListOrganizationApiKeysResponseData {
528
+ id: string;
529
+ name: string;
530
+ obfuscatedValue: string;
531
+ createdAt: string;
532
+ /** @nullable */
533
+ lastUsedAt?: string | null;
534
+ permissions: string[];
535
+ }
536
+ type ListOrganizationApiKeysResponseListMetadata = {
537
+ before?: string;
538
+ after?: string;
539
+ };
540
+ interface ListOrganizationApiKeysResponse {
541
+ data: ListOrganizationApiKeysResponseData[];
542
+ listMetadata: ListOrganizationApiKeysResponseListMetadata;
543
+ }
544
+ interface CreateOrganizationApiKeyRequest {
545
+ name: string;
546
+ permissions: string[];
547
+ }
548
+ interface CreateOrganizationApiKeyResponse {
549
+ id: string;
550
+ value: string;
551
+ obfuscatedValue: string;
552
+ createdAt: string;
553
+ name: string;
554
+ permissions: string[];
555
+ }
556
+ interface ListOrganizationApiKeyPermission {
557
+ id: string;
558
+ slug: string;
559
+ name: string;
560
+ /** @nullable */
561
+ description?: string | null;
562
+ }
563
+ type ListOrganizationApiKeyPermissionsResponseListMetadata = {
564
+ before?: string;
565
+ after?: string;
566
+ };
567
+ interface ListOrganizationApiKeyPermissionsResponse {
568
+ data: ListOrganizationApiKeyPermission[];
569
+ listMetadata: ListOrganizationApiKeyPermissionsResponseListMetadata;
570
+ }
571
+ declare const DataInstallationObject: {
572
+ readonly data_installation: "data_installation";
573
+ readonly connected_account: "connected_account";
574
+ };
575
+ declare const DataInstallationState: {
576
+ readonly connected: "connected";
577
+ readonly needs_reauthorization: "needs_reauthorization";
578
+ };
579
+ interface DataInstallation {
580
+ object: (typeof DataInstallationObject)[keyof typeof DataInstallationObject];
581
+ id: string;
582
+ /** @nullable */
583
+ userlandUserId?: string | null;
584
+ /** @nullable */
585
+ organizationId?: string | null;
586
+ scopes: string[];
587
+ state: (typeof DataInstallationState)[keyof typeof DataInstallationState];
588
+ createdAt: string;
589
+ updatedAt: string;
590
+ }
591
+ type DataIntegrationObject = (typeof DataIntegrationObject)[keyof typeof DataIntegrationObject];
592
+ declare const DataIntegrationObject: {
593
+ readonly data_integration: "data_integration";
594
+ };
595
+ declare const DataIntegrationIntegrationType: {
596
+ readonly asana: "asana";
597
+ readonly box: "box";
598
+ readonly "cal-dot-com": "cal-dot-com";
599
+ readonly calendly: "calendly";
600
+ readonly confluence: "confluence";
601
+ readonly dropbox: "dropbox";
602
+ readonly "frame-io": "frame-io";
603
+ readonly front: "front";
604
+ readonly github: "github";
605
+ readonly gitlab: "gitlab";
606
+ readonly gmail: "gmail";
607
+ readonly google: "google";
608
+ readonly "google-calendar": "google-calendar";
609
+ readonly "google-drive": "google-drive";
610
+ readonly helpscout: "helpscout";
611
+ readonly hubspot: "hubspot";
612
+ readonly intercom: "intercom";
613
+ readonly jira: "jira";
614
+ readonly linear: "linear";
615
+ readonly microsoft: "microsoft";
616
+ readonly "microsoft-onedrive": "microsoft-onedrive";
617
+ readonly "microsoft-onenote": "microsoft-onenote";
618
+ readonly "microsoft-outlook": "microsoft-outlook";
619
+ readonly "microsoft-outlook-calendar": "microsoft-outlook-calendar";
620
+ readonly "microsoft-sharepoint": "microsoft-sharepoint";
621
+ readonly "microsoft-teams": "microsoft-teams";
622
+ readonly "microsoft-todo": "microsoft-todo";
623
+ readonly notion: "notion";
624
+ readonly prefect: "prefect";
625
+ readonly "pydantic-logfire": "pydantic-logfire";
626
+ readonly salesforce: "salesforce";
627
+ readonly sentry: "sentry";
628
+ readonly slack: "slack";
629
+ readonly snowflake: "snowflake";
630
+ readonly stripe: "stripe";
631
+ readonly xero: "xero";
632
+ readonly zendesk: "zendesk";
633
+ };
634
+ declare const DataIntegrationOwnership: {
635
+ readonly userland_user: "userland_user";
636
+ readonly organization: "organization";
637
+ };
638
+ declare const DataIntegrationCredentialsType: {
639
+ readonly shared: "shared";
640
+ readonly custom: "custom";
641
+ };
642
+ type DataIntegrationInstallation = DataInstallation | null;
643
+ interface DataIntegration {
644
+ object: DataIntegrationObject;
645
+ id: string;
646
+ name: string;
647
+ /** @nullable */
648
+ description?: string | null;
649
+ slug: string;
650
+ integrationType: (typeof DataIntegrationIntegrationType)[keyof typeof DataIntegrationIntegrationType];
651
+ ownership: (typeof DataIntegrationOwnership)[keyof typeof DataIntegrationOwnership];
652
+ credentialsType: (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];
653
+ /** @nullable */
654
+ scopes?: string[] | null;
655
+ createdAt: string;
656
+ updatedAt: string;
657
+ installation?: DataIntegrationInstallation;
658
+ }
659
+ interface DataIntegrationsResponse {
660
+ data: DataIntegration[];
661
+ }
662
+ type GetDataIntegrationAuthorizeUrlResponseAllOf = {
663
+ url: string;
664
+ redirectToken: string;
665
+ };
666
+ type GetDataIntegrationAuthorizeUrlResponseAllOfTwo = {
667
+ handoffToken?: string;
668
+ };
669
+ type GetDataIntegrationAuthorizeUrlResponse = GetDataIntegrationAuthorizeUrlResponseAllOf & GetDataIntegrationAuthorizeUrlResponseAllOfTwo;
670
+ interface GetAuthorizationStatusResponse {
671
+ isConnecting: boolean;
672
+ }
673
+ type MembersParams = {
674
+ search?: string;
675
+ limit?: string;
676
+ before?: string;
677
+ after?: string;
678
+ role?: string;
679
+ };
680
+ type Members200 = {
681
+ data: Member[];
682
+ listMetadata: ListMetadata;
683
+ };
684
+ type Members403 = {
685
+ message: string;
686
+ };
687
+ type Members404 = {
688
+ message: string;
689
+ };
690
+ type Roles403 = {
691
+ message: string;
692
+ };
693
+ type Roles404 = {
694
+ message: string;
695
+ };
696
+ type RolesAndConfig403 = {
697
+ message: string;
698
+ };
699
+ type RolesAndConfig404 = {
700
+ message: string;
701
+ };
702
+ type InviteMemberBody = {
703
+ email: string;
704
+ /** @nullable */
705
+ firstName?: string | null;
706
+ /** @nullable */
707
+ lastName?: string | null;
708
+ roles: string[];
709
+ };
710
+ type InviteMember201 = {
711
+ success: boolean;
712
+ };
713
+ type InviteMember400 = {
714
+ message: string;
715
+ };
716
+ type InviteMember403 = {
717
+ message: string;
718
+ };
719
+ type InviteMember404 = {
720
+ message: string;
721
+ };
722
+ type ResendInvite201 = {
723
+ /** @nullable */
724
+ id?: string | null;
725
+ success: boolean;
726
+ };
727
+ type ResendInvite400 = {
728
+ message: string;
729
+ };
730
+ type ResendInvite403 = {
731
+ message: string;
732
+ };
733
+ type ResendInvite404 = {
734
+ message: string;
735
+ };
736
+ type ResendInvite422 = {
737
+ message: string;
738
+ };
739
+ type RevokeInvite200 = {
740
+ id: string;
741
+ success: boolean;
742
+ };
743
+ type RevokeInvite400 = {
744
+ message: string;
745
+ };
746
+ type RevokeInvite403 = {
747
+ message: string;
748
+ };
749
+ type RevokeInvite404 = {
750
+ message: string;
751
+ };
752
+ type RemoveMember200 = {
753
+ id: string;
754
+ success: boolean;
755
+ };
756
+ type RemoveMember400 = {
757
+ message: string;
758
+ };
759
+ type RemoveMember403 = {
760
+ message: string;
761
+ };
762
+ type RemoveMember404 = {
763
+ message: string;
764
+ };
765
+ type UpdateMemberBody = {
766
+ roles: string[];
767
+ };
768
+ type UpdateMember200 = {
769
+ id: string;
770
+ success: boolean;
771
+ };
772
+ type UpdateMember400 = {
773
+ message: string;
774
+ };
775
+ type UpdateMember403 = {
776
+ message: string;
777
+ };
778
+ type UpdateMember404 = {
779
+ message: string;
780
+ };
781
+ type UpdateMember422 = {
782
+ message: string;
783
+ };
784
+ type Organizations403 = {
785
+ message: string;
786
+ };
787
+ type Organizations404 = {
788
+ message: string;
789
+ };
790
+ type Me403 = {
791
+ message: string;
792
+ };
793
+ type UpdateMeBody = {
794
+ firstName?: string;
795
+ lastName?: string;
796
+ locale?: string;
797
+ };
798
+ type UpdateMe400 = {
799
+ message: string;
800
+ };
801
+ type UpdateMe403 = {
802
+ message: string;
803
+ };
804
+ type CreateTotpFactor400 = {
805
+ message: string;
806
+ };
807
+ type CreateTotpFactor403 = {
808
+ message: string;
809
+ };
810
+ type VerifyTotpFactor200 = {
811
+ success: boolean;
812
+ };
813
+ type VerifyTotpFactor400 = {
814
+ message: string;
815
+ };
816
+ type VerifyTotpFactor403 = {
817
+ message: string;
818
+ };
819
+ type DeleteTotpFactors200 = {
820
+ success: boolean;
821
+ };
822
+ type DeleteTotpFactors400 = {
823
+ message: string;
824
+ };
825
+ type DeleteTotpFactors403 = {
826
+ message: string;
827
+ };
828
+ type AuthenticationInformation403 = {
829
+ message: string;
830
+ };
831
+ type CreatePassword201 = {
832
+ success: boolean;
833
+ };
834
+ type CreatePassword400 = {
835
+ message: string;
836
+ };
837
+ type CreatePassword403 = {
838
+ message: string;
839
+ };
840
+ type UpdatePassword201 = {
841
+ success: boolean;
842
+ };
843
+ type UpdatePassword400 = {
844
+ message: string;
845
+ };
846
+ type UpdatePassword403 = {
847
+ message: string;
848
+ };
849
+ type RevokeAllSessions200 = {
850
+ success: boolean;
851
+ };
852
+ type RevokeAllSessions400 = {
853
+ message: string;
854
+ };
855
+ type RevokeAllSessions403 = {
856
+ message: string;
857
+ };
858
+ type RevokeSession200 = {
859
+ success: boolean;
860
+ };
861
+ type RevokeSession400 = {
862
+ message: string;
863
+ };
864
+ type RevokeSession403 = {
865
+ message: string;
866
+ };
867
+ type Sessions403 = {
868
+ message: string;
869
+ };
870
+ type SendVerification400 = {
871
+ message: string;
872
+ };
873
+ type SendVerification403 = {
874
+ message: string;
875
+ };
876
+ type Verify400 = {
877
+ message: string;
878
+ };
879
+ type Verify403 = {
880
+ message: string;
881
+ };
882
+ type RegisterPasskey400 = {
883
+ message: string;
884
+ };
885
+ type RegisterPasskey403 = {
886
+ message: string;
887
+ };
888
+ type VerifyPasskey200 = {
889
+ success: boolean;
890
+ };
891
+ type VerifyPasskey400 = {
892
+ message: string;
893
+ };
894
+ type VerifyPasskey403 = {
895
+ message: string;
896
+ };
897
+ type DeletePasskey200 = {
898
+ success: boolean;
899
+ };
900
+ type DeletePasskey400 = {
901
+ message: string;
902
+ };
903
+ type DeletePasskey403 = {
904
+ message: string;
905
+ };
906
+ type Settings403 = {
907
+ message: string;
908
+ };
909
+ type ListOrganizationDomains200 = {
910
+ data: OrganizationDomain[];
911
+ };
912
+ type ListOrganizationDomains403 = {
913
+ message: string;
914
+ };
915
+ type ListOrganizationDomains404 = {
916
+ message: string;
917
+ };
918
+ type GenerateAdminPortalLinkParams = {
919
+ intent: GenerateAdminPortalLinkIntent;
920
+ };
921
+ type GenerateAdminPortalLinkIntent = (typeof GenerateAdminPortalLinkIntent)[keyof typeof GenerateAdminPortalLinkIntent];
922
+ declare const GenerateAdminPortalLinkIntent: {
923
+ readonly domain_verification: "domain_verification";
924
+ readonly sso: "sso";
925
+ };
926
+ type GenerateAdminPortalLink201 = {
927
+ link: string;
928
+ };
929
+ type GenerateAdminPortalLink403 = {
930
+ message: string;
931
+ };
932
+ type GenerateAdminPortalLink404 = {
933
+ message: string;
934
+ };
935
+ type GenerateAdminPortalLink500 = {
936
+ message: string;
937
+ };
938
+ type DeleteOrganizationDomain403 = {
939
+ message: string;
940
+ };
941
+ type DeleteOrganizationDomain404 = {
942
+ message: string;
943
+ };
944
+ type ReverifyOrganizationDomain403 = {
945
+ message: string;
946
+ };
947
+ type ReverifyOrganizationDomain404 = {
948
+ message: string;
949
+ };
950
+ type CreateOrganizationApiKey400 = {
951
+ message: string;
952
+ };
953
+ type CreateOrganizationApiKey403 = {
954
+ message: string;
955
+ };
956
+ type CreateOrganizationApiKey404 = {
957
+ message: string;
958
+ };
959
+ type CreateOrganizationApiKey422ErrorsItem = {
960
+ code: string;
961
+ field: string;
962
+ };
963
+ type CreateOrganizationApiKey422 = {
964
+ message: string;
965
+ errors: CreateOrganizationApiKey422ErrorsItem[];
966
+ };
967
+ type ListOrganizationApiKeysParams = {
968
+ limit?: number;
969
+ before?: string;
970
+ after?: string;
971
+ search?: string;
972
+ };
973
+ type ListOrganizationApiKeys400 = {
974
+ message: string;
975
+ };
976
+ type ListOrganizationApiKeys403 = {
977
+ message: string;
978
+ };
979
+ type ListOrganizationApiKeyPermissionsParams = {
980
+ search?: string;
981
+ limit?: number;
982
+ before?: string;
983
+ after?: string;
984
+ };
985
+ type ListOrganizationApiKeyPermissions400 = {
986
+ message: string;
987
+ };
988
+ type ListOrganizationApiKeyPermissions403 = {
989
+ message: string;
990
+ };
991
+ type DeleteOrganizationApiKey200 = {
992
+ success: boolean;
993
+ };
994
+ type DeleteOrganizationApiKey403 = {
995
+ message: string;
996
+ };
997
+ type DeleteOrganizationApiKey404 = {
998
+ message: string;
999
+ };
1000
+ type MyDataIntegrations403 = {
1001
+ message: string;
1002
+ };
1003
+ type GetDataIntegrationAuthorizeUrlParams = {
1004
+ requireHandoff?: boolean;
1005
+ };
1006
+ type GetDataIntegrationAuthorizeUrl400 = {
1007
+ message: string;
1008
+ };
1009
+ type GetDataIntegrationAuthorizeUrl403 = {
1010
+ message: string;
1011
+ };
1012
+ type GetDataIntegrationAuthorizeUrl404 = {
1013
+ message: string;
1014
+ };
1015
+ type GetDataInstallationAuthorizationStatus400 = {
1016
+ message: string;
1017
+ };
1018
+ type GetDataInstallationAuthorizationStatus403 = {
1019
+ message: string;
1020
+ };
1021
+ type GetDataInstallationAuthorizationStatus404 = {
1022
+ message: string;
1023
+ };
1024
+ type DeleteDataInstallation200 = {
1025
+ success: boolean;
1026
+ };
1027
+ type DeleteDataInstallation403 = {
1028
+ message: string;
1029
+ };
1030
+ type DeleteDataInstallation404 = {
1031
+ message: string;
1032
+ };
1033
+ type membersResponse200 = {
1034
+ data: Members200;
1035
+ status: 200;
1036
+ };
1037
+ type membersResponse403 = {
1038
+ data: Members403;
1039
+ status: 403;
1040
+ };
1041
+ type membersResponse404 = {
1042
+ data: Members404;
1043
+ status: 404;
1044
+ };
1045
+ type membersResponseSuccess = membersResponse200 & {
1046
+ headers: Headers;
1047
+ };
1048
+ type membersResponseError = (membersResponse403 | membersResponse404) & {
1049
+ headers: Headers;
1050
+ };
1051
+ type membersResponse = membersResponseSuccess | membersResponseError;
1052
+ declare const getMembersUrl: (params?: MembersParams) => string;
1053
+ declare const members: (params?: MembersParams, options?: RequestInit) => Promise<membersResponse>;
1054
+ declare const getMembersKey: (params?: MembersParams) => readonly ["https://api.workos.com/_widgets/UserManagement/members", ...MembersParams[]];
1055
+ type MembersQueryResult = NonNullable<Awaited<ReturnType<typeof members>>>;
1056
+ type MembersQueryError = Promise<Members403 | Members404>;
1057
+ declare const useMembers: <TError = Promise<Members403 | Members404>>(params?: MembersParams, options?: {
1058
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof members>>, TError> & {
1059
+ swrKey?: Key;
1060
+ enabled?: boolean;
1061
+ };
1062
+ fetch?: RequestInit;
1063
+ }) => {
1064
+ data: membersResponse | undefined;
1065
+ error: TError | undefined;
1066
+ mutate: swr.KeyedMutator<membersResponse>;
1067
+ isValidating: boolean;
1068
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1069
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1070
+ };
1071
+ type rolesResponse200 = {
1072
+ data: MemberRole[];
1073
+ status: 200;
1074
+ };
1075
+ type rolesResponse403 = {
1076
+ data: Roles403;
1077
+ status: 403;
1078
+ };
1079
+ type rolesResponse404 = {
1080
+ data: Roles404;
1081
+ status: 404;
1082
+ };
1083
+ type rolesResponseSuccess = rolesResponse200 & {
1084
+ headers: Headers;
1085
+ };
1086
+ type rolesResponseError = (rolesResponse403 | rolesResponse404) & {
1087
+ headers: Headers;
1088
+ };
1089
+ type rolesResponse = rolesResponseSuccess | rolesResponseError;
1090
+ declare const getRolesUrl: () => string;
1091
+ declare const roles: (options?: RequestInit) => Promise<rolesResponse>;
1092
+ declare const getRolesKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles"];
1093
+ type RolesQueryResult = NonNullable<Awaited<ReturnType<typeof roles>>>;
1094
+ type RolesQueryError = Promise<Roles403 | Roles404>;
1095
+ declare const useRoles: <TError = Promise<Roles403 | Roles404>>(options?: {
1096
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof roles>>, TError> & {
1097
+ swrKey?: Key;
1098
+ enabled?: boolean;
1099
+ };
1100
+ fetch?: RequestInit;
1101
+ }) => {
1102
+ data: rolesResponse | undefined;
1103
+ error: TError | undefined;
1104
+ mutate: swr.KeyedMutator<rolesResponse>;
1105
+ isValidating: boolean;
1106
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1107
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1108
+ };
1109
+ type rolesAndConfigResponse200 = {
1110
+ data: RolesAndConfigResponse;
1111
+ status: 200;
1112
+ };
1113
+ type rolesAndConfigResponse403 = {
1114
+ data: RolesAndConfig403;
1115
+ status: 403;
1116
+ };
1117
+ type rolesAndConfigResponse404 = {
1118
+ data: RolesAndConfig404;
1119
+ status: 404;
1120
+ };
1121
+ type rolesAndConfigResponseSuccess = rolesAndConfigResponse200 & {
1122
+ headers: Headers;
1123
+ };
1124
+ type rolesAndConfigResponseError = (rolesAndConfigResponse403 | rolesAndConfigResponse404) & {
1125
+ headers: Headers;
1126
+ };
1127
+ type rolesAndConfigResponse = rolesAndConfigResponseSuccess | rolesAndConfigResponseError;
1128
+ declare const getRolesAndConfigUrl: () => string;
1129
+ declare const rolesAndConfig: (options?: RequestInit) => Promise<rolesAndConfigResponse>;
1130
+ declare const getRolesAndConfigKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles-and-config"];
1131
+ type RolesAndConfigQueryResult = NonNullable<Awaited<ReturnType<typeof rolesAndConfig>>>;
1132
+ type RolesAndConfigQueryError = Promise<RolesAndConfig403 | RolesAndConfig404>;
1133
+ declare const useRolesAndConfig: <TError = Promise<RolesAndConfig403 | RolesAndConfig404>>(options?: {
1134
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof rolesAndConfig>>, TError> & {
1135
+ swrKey?: Key;
1136
+ enabled?: boolean;
1137
+ };
1138
+ fetch?: RequestInit;
1139
+ }) => {
1140
+ data: rolesAndConfigResponse | undefined;
1141
+ error: TError | undefined;
1142
+ mutate: swr.KeyedMutator<rolesAndConfigResponse>;
1143
+ isValidating: boolean;
1144
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1145
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1146
+ };
1147
+ type inviteMemberResponse201 = {
1148
+ data: InviteMember201;
1149
+ status: 201;
1150
+ };
1151
+ type inviteMemberResponse400 = {
1152
+ data: InviteMember400;
1153
+ status: 400;
1154
+ };
1155
+ type inviteMemberResponse403 = {
1156
+ data: InviteMember403;
1157
+ status: 403;
1158
+ };
1159
+ type inviteMemberResponse404 = {
1160
+ data: InviteMember404;
1161
+ status: 404;
1162
+ };
1163
+ type inviteMemberResponseSuccess = inviteMemberResponse201 & {
1164
+ headers: Headers;
1165
+ };
1166
+ type inviteMemberResponseError = (inviteMemberResponse400 | inviteMemberResponse403 | inviteMemberResponse404) & {
1167
+ headers: Headers;
1168
+ };
1169
+ type inviteMemberResponse = inviteMemberResponseSuccess | inviteMemberResponseError;
1170
+ declare const getInviteMemberUrl: () => string;
1171
+ declare const inviteMember: (inviteMemberBody: InviteMemberBody, options?: RequestInit) => Promise<inviteMemberResponse>;
1172
+ declare const getInviteMemberMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1173
+ arg: InviteMemberBody;
1174
+ }) => Promise<inviteMemberResponse>;
1175
+ declare const getInviteMemberMutationKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/invite-user"];
1176
+ type InviteMemberMutationResult = NonNullable<Awaited<ReturnType<typeof inviteMember>>>;
1177
+ type InviteMemberMutationError = Promise<InviteMember400 | InviteMember403 | InviteMember404>;
1178
+ declare const useInviteMember: <TError = Promise<InviteMember400 | InviteMember403 | InviteMember404>>(options?: {
1179
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof inviteMember>>, TError, Key, InviteMemberBody, Awaited<ReturnType<typeof inviteMember>>> & {
1180
+ swrKey?: string;
1181
+ };
1182
+ fetch?: RequestInit;
1183
+ }) => {
1184
+ isMutating: boolean;
1185
+ trigger: swr_mutation.TriggerWithArgs<inviteMemberResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserManagement/invite-user"], InviteMemberBody>;
1186
+ reset: () => void;
1187
+ error: TError | undefined;
1188
+ data: inviteMemberResponse | undefined;
1189
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserManagement/invite-user"];
1190
+ };
1191
+ type resendInviteResponse201 = {
1192
+ data: ResendInvite201;
1193
+ status: 201;
1194
+ };
1195
+ type resendInviteResponse400 = {
1196
+ data: ResendInvite400;
1197
+ status: 400;
1198
+ };
1199
+ type resendInviteResponse403 = {
1200
+ data: ResendInvite403;
1201
+ status: 403;
1202
+ };
1203
+ type resendInviteResponse404 = {
1204
+ data: ResendInvite404;
1205
+ status: 404;
1206
+ };
1207
+ type resendInviteResponse422 = {
1208
+ data: ResendInvite422;
1209
+ status: 422;
1210
+ };
1211
+ type resendInviteResponseSuccess = resendInviteResponse201 & {
1212
+ headers: Headers;
1213
+ };
1214
+ type resendInviteResponseError = (resendInviteResponse400 | resendInviteResponse403 | resendInviteResponse404 | resendInviteResponse422) & {
1215
+ headers: Headers;
1216
+ };
1217
+ type resendInviteResponse = resendInviteResponseSuccess | resendInviteResponseError;
1218
+ declare const getResendInviteUrl: (userId: string) => string;
1219
+ declare const resendInvite: (userId: string, options?: RequestInit) => Promise<resendInviteResponse>;
1220
+ declare const getResendInviteMutationFetcher: (userId: string, options?: RequestInit) => (_: Key, __: {
1221
+ arg: Arguments;
1222
+ }) => Promise<resendInviteResponse>;
1223
+ declare const getResendInviteMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}/resend`];
1224
+ type ResendInviteMutationResult = NonNullable<Awaited<ReturnType<typeof resendInvite>>>;
1225
+ type ResendInviteMutationError = Promise<ResendInvite400 | ResendInvite403 | ResendInvite404 | ResendInvite422>;
1226
+ declare const useResendInvite: <TError = Promise<ResendInvite400 | ResendInvite403 | ResendInvite404 | ResendInvite422>>(userId: string, options?: {
1227
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof resendInvite>>, TError, Key, Arguments, Awaited<ReturnType<typeof resendInvite>>> & {
1228
+ swrKey?: string;
1229
+ };
1230
+ fetch?: RequestInit;
1231
+ }) => {
1232
+ isMutating: boolean;
1233
+ trigger: swr_mutation.TriggerWithOptionsArgs<resendInviteResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}/resend`], Arguments>;
1234
+ reset: () => void;
1235
+ error: TError | undefined;
1236
+ data: resendInviteResponse | undefined;
1237
+ swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}/resend`];
1238
+ };
1239
+ type revokeInviteResponse200 = {
1240
+ data: RevokeInvite200;
1241
+ status: 200;
1242
+ };
1243
+ type revokeInviteResponse400 = {
1244
+ data: RevokeInvite400;
1245
+ status: 400;
1246
+ };
1247
+ type revokeInviteResponse403 = {
1248
+ data: RevokeInvite403;
1249
+ status: 403;
1250
+ };
1251
+ type revokeInviteResponse404 = {
1252
+ data: RevokeInvite404;
1253
+ status: 404;
1254
+ };
1255
+ type revokeInviteResponseSuccess = revokeInviteResponse200 & {
1256
+ headers: Headers;
1257
+ };
1258
+ type revokeInviteResponseError = (revokeInviteResponse400 | revokeInviteResponse403 | revokeInviteResponse404) & {
1259
+ headers: Headers;
1260
+ };
1261
+ type revokeInviteResponse = revokeInviteResponseSuccess | revokeInviteResponseError;
1262
+ declare const getRevokeInviteUrl: (userId: string) => string;
1263
+ declare const revokeInvite: (userId: string, options?: RequestInit) => Promise<revokeInviteResponse>;
1264
+ declare const getRevokeInviteMutationFetcher: (userId: string, options?: RequestInit) => (_: Key, __: {
1265
+ arg: Arguments;
1266
+ }) => Promise<revokeInviteResponse>;
1267
+ declare const getRevokeInviteMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}`];
1268
+ type RevokeInviteMutationResult = NonNullable<Awaited<ReturnType<typeof revokeInvite>>>;
1269
+ type RevokeInviteMutationError = Promise<RevokeInvite400 | RevokeInvite403 | RevokeInvite404>;
1270
+ declare const useRevokeInvite: <TError = Promise<RevokeInvite400 | RevokeInvite403 | RevokeInvite404>>(userId: string, options?: {
1271
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeInvite>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeInvite>>> & {
1272
+ swrKey?: string;
1273
+ };
1274
+ fetch?: RequestInit;
1275
+ }) => {
1276
+ isMutating: boolean;
1277
+ trigger: swr_mutation.TriggerWithOptionsArgs<revokeInviteResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}`], Arguments>;
1278
+ reset: () => void;
1279
+ error: TError | undefined;
1280
+ data: revokeInviteResponse | undefined;
1281
+ swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}`];
1282
+ };
1283
+ type removeMemberResponse200 = {
1284
+ data: RemoveMember200;
1285
+ status: 200;
1286
+ };
1287
+ type removeMemberResponse400 = {
1288
+ data: RemoveMember400;
1289
+ status: 400;
1290
+ };
1291
+ type removeMemberResponse403 = {
1292
+ data: RemoveMember403;
1293
+ status: 403;
1294
+ };
1295
+ type removeMemberResponse404 = {
1296
+ data: RemoveMember404;
1297
+ status: 404;
1298
+ };
1299
+ type removeMemberResponseSuccess = removeMemberResponse200 & {
1300
+ headers: Headers;
1301
+ };
1302
+ type removeMemberResponseError = (removeMemberResponse400 | removeMemberResponse403 | removeMemberResponse404) & {
1303
+ headers: Headers;
1304
+ };
1305
+ type removeMemberResponse = removeMemberResponseSuccess | removeMemberResponseError;
1306
+ declare const getRemoveMemberUrl: (userId: string) => string;
1307
+ declare const removeMember: (userId: string, options?: RequestInit) => Promise<removeMemberResponse>;
1308
+ declare const getRemoveMemberMutationFetcher: (userId: string, options?: RequestInit) => (_: Key, __: {
1309
+ arg: Arguments;
1310
+ }) => Promise<removeMemberResponse>;
1311
+ declare const getRemoveMemberMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
1312
+ type RemoveMemberMutationResult = NonNullable<Awaited<ReturnType<typeof removeMember>>>;
1313
+ type RemoveMemberMutationError = Promise<RemoveMember400 | RemoveMember403 | RemoveMember404>;
1314
+ declare const useRemoveMember: <TError = Promise<RemoveMember400 | RemoveMember403 | RemoveMember404>>(userId: string, options?: {
1315
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof removeMember>>, TError, Key, Arguments, Awaited<ReturnType<typeof removeMember>>> & {
1316
+ swrKey?: string;
1317
+ };
1318
+ fetch?: RequestInit;
1319
+ }) => {
1320
+ isMutating: boolean;
1321
+ trigger: swr_mutation.TriggerWithOptionsArgs<removeMemberResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`], Arguments>;
1322
+ reset: () => void;
1323
+ error: TError | undefined;
1324
+ data: removeMemberResponse | undefined;
1325
+ swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
1326
+ };
1327
+ type updateMemberResponse200 = {
1328
+ data: UpdateMember200;
1329
+ status: 200;
1330
+ };
1331
+ type updateMemberResponse400 = {
1332
+ data: UpdateMember400;
1333
+ status: 400;
1334
+ };
1335
+ type updateMemberResponse403 = {
1336
+ data: UpdateMember403;
1337
+ status: 403;
1338
+ };
1339
+ type updateMemberResponse404 = {
1340
+ data: UpdateMember404;
1341
+ status: 404;
1342
+ };
1343
+ type updateMemberResponse422 = {
1344
+ data: UpdateMember422;
1345
+ status: 422;
1346
+ };
1347
+ type updateMemberResponseSuccess = updateMemberResponse200 & {
1348
+ headers: Headers;
1349
+ };
1350
+ type updateMemberResponseError = (updateMemberResponse400 | updateMemberResponse403 | updateMemberResponse404 | updateMemberResponse422) & {
1351
+ headers: Headers;
1352
+ };
1353
+ type updateMemberResponse = updateMemberResponseSuccess | updateMemberResponseError;
1354
+ declare const getUpdateMemberUrl: (userId: string) => string;
1355
+ declare const updateMember: (userId: string, updateMemberBody: UpdateMemberBody, options?: RequestInit) => Promise<updateMemberResponse>;
1356
+ declare const getUpdateMemberMutationFetcher: (userId: string, options?: RequestInit) => (_: Key, { arg }: {
1357
+ arg: UpdateMemberBody;
1358
+ }) => Promise<updateMemberResponse>;
1359
+ declare const getUpdateMemberMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
1360
+ type UpdateMemberMutationResult = NonNullable<Awaited<ReturnType<typeof updateMember>>>;
1361
+ type UpdateMemberMutationError = Promise<UpdateMember400 | UpdateMember403 | UpdateMember404 | UpdateMember422>;
1362
+ declare const useUpdateMember: <TError = Promise<UpdateMember400 | UpdateMember403 | UpdateMember404 | UpdateMember422>>(userId: string, options?: {
1363
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updateMember>>, TError, Key, UpdateMemberBody, Awaited<ReturnType<typeof updateMember>>> & {
1364
+ swrKey?: string;
1365
+ };
1366
+ fetch?: RequestInit;
1367
+ }) => {
1368
+ isMutating: boolean;
1369
+ trigger: swr_mutation.TriggerWithArgs<updateMemberResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`], UpdateMemberBody>;
1370
+ reset: () => void;
1371
+ error: TError | undefined;
1372
+ data: updateMemberResponse | undefined;
1373
+ swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
1374
+ };
1375
+ type organizationsResponse200 = {
1376
+ data: OrganizationsResponse;
1377
+ status: 200;
1378
+ };
1379
+ type organizationsResponse403 = {
1380
+ data: Organizations403;
1381
+ status: 403;
1382
+ };
1383
+ type organizationsResponse404 = {
1384
+ data: Organizations404;
1385
+ status: 404;
1386
+ };
1387
+ type organizationsResponseSuccess = organizationsResponse200 & {
1388
+ headers: Headers;
1389
+ };
1390
+ type organizationsResponseError = (organizationsResponse403 | organizationsResponse404) & {
1391
+ headers: Headers;
1392
+ };
1393
+ type organizationsResponse = organizationsResponseSuccess | organizationsResponseError;
1394
+ declare const getOrganizationsUrl: () => string;
1395
+ declare const organizations: (options?: RequestInit) => Promise<organizationsResponse>;
1396
+ declare const getOrganizationsKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/organizations"];
1397
+ type OrganizationsQueryResult = NonNullable<Awaited<ReturnType<typeof organizations>>>;
1398
+ type OrganizationsQueryError = Promise<Organizations403 | Organizations404>;
1399
+ declare const useOrganizations: <TError = Promise<Organizations403 | Organizations404>>(options?: {
1400
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof organizations>>, TError> & {
1401
+ swrKey?: Key;
1402
+ enabled?: boolean;
1403
+ };
1404
+ fetch?: RequestInit;
1405
+ }) => {
1406
+ data: organizationsResponse | undefined;
1407
+ error: TError | undefined;
1408
+ mutate: swr.KeyedMutator<organizationsResponse>;
1409
+ isValidating: boolean;
1410
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1411
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1412
+ };
1413
+ type meResponse200 = {
1414
+ data: Me;
1415
+ status: 200;
1416
+ };
1417
+ type meResponse403 = {
1418
+ data: Me403;
1419
+ status: 403;
1420
+ };
1421
+ type meResponseSuccess = meResponse200 & {
1422
+ headers: Headers;
1423
+ };
1424
+ type meResponseError = meResponse403 & {
1425
+ headers: Headers;
1426
+ };
1427
+ type meResponse = meResponseSuccess | meResponseError;
1428
+ declare const getMeUrl: () => string;
1429
+ declare const me: (options?: RequestInit) => Promise<meResponse>;
1430
+ declare const getMeKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/me"];
1431
+ type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;
1432
+ type MeQueryError = Promise<Me403>;
1433
+ declare const useMe: <TError = Promise<Me403>>(options?: {
1434
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof me>>, TError> & {
1435
+ swrKey?: Key;
1436
+ enabled?: boolean;
1437
+ };
1438
+ fetch?: RequestInit;
1439
+ }) => {
1440
+ data: meResponse | undefined;
1441
+ error: TError | undefined;
1442
+ mutate: swr.KeyedMutator<meResponse>;
1443
+ isValidating: boolean;
1444
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1445
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1446
+ };
1447
+ type updateMeResponse200 = {
1448
+ data: Me;
1449
+ status: 200;
1450
+ };
1451
+ type updateMeResponse400 = {
1452
+ data: UpdateMe400;
1453
+ status: 400;
1454
+ };
1455
+ type updateMeResponse403 = {
1456
+ data: UpdateMe403;
1457
+ status: 403;
1458
+ };
1459
+ type updateMeResponseSuccess = updateMeResponse200 & {
1460
+ headers: Headers;
1461
+ };
1462
+ type updateMeResponseError = (updateMeResponse400 | updateMeResponse403) & {
1463
+ headers: Headers;
1464
+ };
1465
+ type updateMeResponse = updateMeResponseSuccess | updateMeResponseError;
1466
+ declare const getUpdateMeUrl: () => string;
1467
+ declare const updateMe: (updateMeBody: UpdateMeBody, options?: RequestInit) => Promise<updateMeResponse>;
1468
+ declare const getUpdateMeMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1469
+ arg: UpdateMeBody;
1470
+ }) => Promise<updateMeResponse>;
1471
+ declare const getUpdateMeMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/me"];
1472
+ type UpdateMeMutationResult = NonNullable<Awaited<ReturnType<typeof updateMe>>>;
1473
+ type UpdateMeMutationError = Promise<UpdateMe400 | UpdateMe403>;
1474
+ declare const useUpdateMe: <TError = Promise<UpdateMe400 | UpdateMe403>>(options?: {
1475
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updateMe>>, TError, Key, UpdateMeBody, Awaited<ReturnType<typeof updateMe>>> & {
1476
+ swrKey?: string;
1477
+ };
1478
+ fetch?: RequestInit;
1479
+ }) => {
1480
+ isMutating: boolean;
1481
+ trigger: swr_mutation.TriggerWithArgs<updateMeResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/me"], UpdateMeBody>;
1482
+ reset: () => void;
1483
+ error: TError | undefined;
1484
+ data: updateMeResponse | undefined;
1485
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/me"];
1486
+ };
1487
+ type createTotpFactorResponse201 = {
1488
+ data: CreateTotpFactorResponse;
1489
+ status: 201;
1490
+ };
1491
+ type createTotpFactorResponse400 = {
1492
+ data: CreateTotpFactor400;
1493
+ status: 400;
1494
+ };
1495
+ type createTotpFactorResponse403 = {
1496
+ data: CreateTotpFactor403;
1497
+ status: 403;
1498
+ };
1499
+ type createTotpFactorResponseSuccess = createTotpFactorResponse201 & {
1500
+ headers: Headers;
1501
+ };
1502
+ type createTotpFactorResponseError = (createTotpFactorResponse400 | createTotpFactorResponse403) & {
1503
+ headers: Headers;
1504
+ };
1505
+ type createTotpFactorResponse = createTotpFactorResponseSuccess | createTotpFactorResponseError;
1506
+ declare const getCreateTotpFactorUrl: () => string;
1507
+ declare const createTotpFactor: (options?: RequestInit) => Promise<createTotpFactorResponse>;
1508
+ declare const getCreateTotpFactorMutationFetcher: (options?: RequestInit) => (_: Key, __: {
1509
+ arg: Arguments;
1510
+ }) => Promise<createTotpFactorResponse>;
1511
+ declare const getCreateTotpFactorMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/create-totp-factor"];
1512
+ type CreateTotpFactorMutationResult = NonNullable<Awaited<ReturnType<typeof createTotpFactor>>>;
1513
+ type CreateTotpFactorMutationError = Promise<CreateTotpFactor400 | CreateTotpFactor403>;
1514
+ declare const useCreateTotpFactor: <TError = Promise<CreateTotpFactor400 | CreateTotpFactor403>>(options?: {
1515
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createTotpFactor>>, TError, Key, Arguments, Awaited<ReturnType<typeof createTotpFactor>>> & {
1516
+ swrKey?: string;
1517
+ };
1518
+ fetch?: RequestInit;
1519
+ }) => {
1520
+ isMutating: boolean;
1521
+ trigger: swr_mutation.TriggerWithOptionsArgs<createTotpFactorResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/create-totp-factor"], Arguments>;
1522
+ reset: () => void;
1523
+ error: TError | undefined;
1524
+ data: createTotpFactorResponse | undefined;
1525
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/create-totp-factor"];
1526
+ };
1527
+ type verifyTotpFactorResponse200 = {
1528
+ data: VerifyTotpFactor200;
1529
+ status: 200;
1530
+ };
1531
+ type verifyTotpFactorResponse400 = {
1532
+ data: VerifyTotpFactor400;
1533
+ status: 400;
1534
+ };
1535
+ type verifyTotpFactorResponse403 = {
1536
+ data: VerifyTotpFactor403;
1537
+ status: 403;
1538
+ };
1539
+ type verifyTotpFactorResponseSuccess = verifyTotpFactorResponse200 & {
1540
+ headers: Headers;
1541
+ };
1542
+ type verifyTotpFactorResponseError = (verifyTotpFactorResponse400 | verifyTotpFactorResponse403) & {
1543
+ headers: Headers;
1544
+ };
1545
+ type verifyTotpFactorResponse = verifyTotpFactorResponseSuccess | verifyTotpFactorResponseError;
1546
+ declare const getVerifyTotpFactorUrl: () => string;
1547
+ declare const verifyTotpFactor: (verifyTotpFactorRequest: VerifyTotpFactorRequest, options?: RequestInit) => Promise<verifyTotpFactorResponse>;
1548
+ declare const getVerifyTotpFactorMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1549
+ arg: VerifyTotpFactorRequest;
1550
+ }) => Promise<verifyTotpFactorResponse>;
1551
+ declare const getVerifyTotpFactorMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/verify-totp-factor"];
1552
+ type VerifyTotpFactorMutationResult = NonNullable<Awaited<ReturnType<typeof verifyTotpFactor>>>;
1553
+ type VerifyTotpFactorMutationError = Promise<VerifyTotpFactor400 | VerifyTotpFactor403>;
1554
+ declare const useVerifyTotpFactor: <TError = Promise<VerifyTotpFactor400 | VerifyTotpFactor403>>(options?: {
1555
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, Key, VerifyTotpFactorRequest, Awaited<ReturnType<typeof verifyTotpFactor>>> & {
1556
+ swrKey?: string;
1557
+ };
1558
+ fetch?: RequestInit;
1559
+ }) => {
1560
+ isMutating: boolean;
1561
+ trigger: swr_mutation.TriggerWithArgs<verifyTotpFactorResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/verify-totp-factor"], VerifyTotpFactorRequest>;
1562
+ reset: () => void;
1563
+ error: TError | undefined;
1564
+ data: verifyTotpFactorResponse | undefined;
1565
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/verify-totp-factor"];
1566
+ };
1567
+ type deleteTotpFactorsResponse200 = {
1568
+ data: DeleteTotpFactors200;
1569
+ status: 200;
1570
+ };
1571
+ type deleteTotpFactorsResponse400 = {
1572
+ data: DeleteTotpFactors400;
1573
+ status: 400;
1574
+ };
1575
+ type deleteTotpFactorsResponse403 = {
1576
+ data: DeleteTotpFactors403;
1577
+ status: 403;
1578
+ };
1579
+ type deleteTotpFactorsResponseSuccess = deleteTotpFactorsResponse200 & {
1580
+ headers: Headers;
1581
+ };
1582
+ type deleteTotpFactorsResponseError = (deleteTotpFactorsResponse400 | deleteTotpFactorsResponse403) & {
1583
+ headers: Headers;
1584
+ };
1585
+ type deleteTotpFactorsResponse = deleteTotpFactorsResponseSuccess | deleteTotpFactorsResponseError;
1586
+ declare const getDeleteTotpFactorsUrl: () => string;
1587
+ declare const deleteTotpFactors: (options?: RequestInit) => Promise<deleteTotpFactorsResponse>;
1588
+ declare const getDeleteTotpFactorsMutationFetcher: (options?: RequestInit) => (_: Key, __: {
1589
+ arg: Arguments;
1590
+ }) => Promise<deleteTotpFactorsResponse>;
1591
+ declare const getDeleteTotpFactorsMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"];
1592
+ type DeleteTotpFactorsMutationResult = NonNullable<Awaited<ReturnType<typeof deleteTotpFactors>>>;
1593
+ type DeleteTotpFactorsMutationError = Promise<DeleteTotpFactors400 | DeleteTotpFactors403>;
1594
+ declare const useDeleteTotpFactors: <TError = Promise<DeleteTotpFactors400 | DeleteTotpFactors403>>(options?: {
1595
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteTotpFactors>>> & {
1596
+ swrKey?: string;
1597
+ };
1598
+ fetch?: RequestInit;
1599
+ }) => {
1600
+ isMutating: boolean;
1601
+ trigger: swr_mutation.TriggerWithOptionsArgs<deleteTotpFactorsResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"], Arguments>;
1602
+ reset: () => void;
1603
+ error: TError | undefined;
1604
+ data: deleteTotpFactorsResponse | undefined;
1605
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"];
1606
+ };
1607
+ type authenticationInformationResponse200 = {
1608
+ data: AuthenticationInformationResponse;
1609
+ status: 200;
1610
+ };
1611
+ type authenticationInformationResponse403 = {
1612
+ data: AuthenticationInformation403;
1613
+ status: 403;
1614
+ };
1615
+ type authenticationInformationResponseSuccess = authenticationInformationResponse200 & {
1616
+ headers: Headers;
1617
+ };
1618
+ type authenticationInformationResponseError = authenticationInformationResponse403 & {
1619
+ headers: Headers;
1620
+ };
1621
+ type authenticationInformationResponse = authenticationInformationResponseSuccess | authenticationInformationResponseError;
1622
+ declare const getAuthenticationInformationUrl: () => string;
1623
+ declare const authenticationInformation: (options?: RequestInit) => Promise<authenticationInformationResponse>;
1624
+ declare const getAuthenticationInformationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/authentication-information"];
1625
+ type AuthenticationInformationQueryResult = NonNullable<Awaited<ReturnType<typeof authenticationInformation>>>;
1626
+ type AuthenticationInformationQueryError = Promise<AuthenticationInformation403>;
1627
+ declare const useAuthenticationInformation: <TError = Promise<AuthenticationInformation403>>(options?: {
1628
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof authenticationInformation>>, TError> & {
1629
+ swrKey?: Key;
1630
+ enabled?: boolean;
1631
+ };
1632
+ fetch?: RequestInit;
1633
+ }) => {
1634
+ data: authenticationInformationResponse | undefined;
1635
+ error: TError | undefined;
1636
+ mutate: swr.KeyedMutator<authenticationInformationResponse>;
1637
+ isValidating: boolean;
1638
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1639
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1640
+ };
1641
+ type createPasswordResponse201 = {
1642
+ data: CreatePassword201;
1643
+ status: 201;
1644
+ };
1645
+ type createPasswordResponse400 = {
1646
+ data: CreatePassword400;
1647
+ status: 400;
1648
+ };
1649
+ type createPasswordResponse403 = {
1650
+ data: CreatePassword403;
1651
+ status: 403;
1652
+ };
1653
+ type createPasswordResponseSuccess = createPasswordResponse201 & {
1654
+ headers: Headers;
1655
+ };
1656
+ type createPasswordResponseError = (createPasswordResponse400 | createPasswordResponse403) & {
1657
+ headers: Headers;
1658
+ };
1659
+ type createPasswordResponse = createPasswordResponseSuccess | createPasswordResponseError;
1660
+ declare const getCreatePasswordUrl: () => string;
1661
+ declare const createPassword: (createPasswordRequest: CreatePasswordRequest, options?: RequestInit) => Promise<createPasswordResponse>;
1662
+ declare const getCreatePasswordMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1663
+ arg: CreatePasswordRequest;
1664
+ }) => Promise<createPasswordResponse>;
1665
+ declare const getCreatePasswordMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/create-password"];
1666
+ type CreatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof createPassword>>>;
1667
+ type CreatePasswordMutationError = Promise<CreatePassword400 | CreatePassword403>;
1668
+ declare const useCreatePassword: <TError = Promise<CreatePassword400 | CreatePassword403>>(options?: {
1669
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createPassword>>, TError, Key, CreatePasswordRequest, Awaited<ReturnType<typeof createPassword>>> & {
1670
+ swrKey?: string;
1671
+ };
1672
+ fetch?: RequestInit;
1673
+ }) => {
1674
+ isMutating: boolean;
1675
+ trigger: swr_mutation.TriggerWithArgs<createPasswordResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/create-password"], CreatePasswordRequest>;
1676
+ reset: () => void;
1677
+ error: TError | undefined;
1678
+ data: createPasswordResponse | undefined;
1679
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/create-password"];
1680
+ };
1681
+ type updatePasswordResponse201 = {
1682
+ data: UpdatePassword201;
1683
+ status: 201;
1684
+ };
1685
+ type updatePasswordResponse400 = {
1686
+ data: UpdatePassword400;
1687
+ status: 400;
1688
+ };
1689
+ type updatePasswordResponse403 = {
1690
+ data: UpdatePassword403;
1691
+ status: 403;
1692
+ };
1693
+ type updatePasswordResponseSuccess = updatePasswordResponse201 & {
1694
+ headers: Headers;
1695
+ };
1696
+ type updatePasswordResponseError = (updatePasswordResponse400 | updatePasswordResponse403) & {
1697
+ headers: Headers;
1698
+ };
1699
+ type updatePasswordResponse = updatePasswordResponseSuccess | updatePasswordResponseError;
1700
+ declare const getUpdatePasswordUrl: () => string;
1701
+ declare const updatePassword: (updatePasswordRequest: UpdatePasswordRequest, options?: RequestInit) => Promise<updatePasswordResponse>;
1702
+ declare const getUpdatePasswordMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1703
+ arg: UpdatePasswordRequest;
1704
+ }) => Promise<updatePasswordResponse>;
1705
+ declare const getUpdatePasswordMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/update-password"];
1706
+ type UpdatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof updatePassword>>>;
1707
+ type UpdatePasswordMutationError = Promise<UpdatePassword400 | UpdatePassword403>;
1708
+ declare const useUpdatePassword: <TError = Promise<UpdatePassword400 | UpdatePassword403>>(options?: {
1709
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updatePassword>>, TError, Key, UpdatePasswordRequest, Awaited<ReturnType<typeof updatePassword>>> & {
1710
+ swrKey?: string;
1711
+ };
1712
+ fetch?: RequestInit;
1713
+ }) => {
1714
+ isMutating: boolean;
1715
+ trigger: swr_mutation.TriggerWithArgs<updatePasswordResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/update-password"], UpdatePasswordRequest>;
1716
+ reset: () => void;
1717
+ error: TError | undefined;
1718
+ data: updatePasswordResponse | undefined;
1719
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/update-password"];
1720
+ };
1721
+ type revokeAllSessionsResponse200 = {
1722
+ data: RevokeAllSessions200;
1723
+ status: 200;
1724
+ };
1725
+ type revokeAllSessionsResponse400 = {
1726
+ data: RevokeAllSessions400;
1727
+ status: 400;
1728
+ };
1729
+ type revokeAllSessionsResponse403 = {
1730
+ data: RevokeAllSessions403;
1731
+ status: 403;
1732
+ };
1733
+ type revokeAllSessionsResponseSuccess = revokeAllSessionsResponse200 & {
1734
+ headers: Headers;
1735
+ };
1736
+ type revokeAllSessionsResponseError = (revokeAllSessionsResponse400 | revokeAllSessionsResponse403) & {
1737
+ headers: Headers;
1738
+ };
1739
+ type revokeAllSessionsResponse = revokeAllSessionsResponseSuccess | revokeAllSessionsResponseError;
1740
+ declare const getRevokeAllSessionsUrl: () => string;
1741
+ declare const revokeAllSessions: (revokeAllSessionsRequest: RevokeAllSessionsRequest, options?: RequestInit) => Promise<revokeAllSessionsResponse>;
1742
+ declare const getRevokeAllSessionsMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1743
+ arg: RevokeAllSessionsRequest;
1744
+ }) => Promise<revokeAllSessionsResponse>;
1745
+ declare const getRevokeAllSessionsMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/sessions/revoke-all"];
1746
+ type RevokeAllSessionsMutationResult = NonNullable<Awaited<ReturnType<typeof revokeAllSessions>>>;
1747
+ type RevokeAllSessionsMutationError = Promise<RevokeAllSessions400 | RevokeAllSessions403>;
1748
+ declare const useRevokeAllSessions: <TError = Promise<RevokeAllSessions400 | RevokeAllSessions403>>(options?: {
1749
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeAllSessions>>, TError, Key, RevokeAllSessionsRequest, Awaited<ReturnType<typeof revokeAllSessions>>> & {
1750
+ swrKey?: string;
1751
+ };
1752
+ fetch?: RequestInit;
1753
+ }) => {
1754
+ isMutating: boolean;
1755
+ trigger: swr_mutation.TriggerWithArgs<revokeAllSessionsResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/sessions/revoke-all"], RevokeAllSessionsRequest>;
1756
+ reset: () => void;
1757
+ error: TError | undefined;
1758
+ data: revokeAllSessionsResponse | undefined;
1759
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/sessions/revoke-all"];
1760
+ };
1761
+ type revokeSessionResponse200 = {
1762
+ data: RevokeSession200;
1763
+ status: 200;
1764
+ };
1765
+ type revokeSessionResponse400 = {
1766
+ data: RevokeSession400;
1767
+ status: 400;
1768
+ };
1769
+ type revokeSessionResponse403 = {
1770
+ data: RevokeSession403;
1771
+ status: 403;
1772
+ };
1773
+ type revokeSessionResponseSuccess = revokeSessionResponse200 & {
1774
+ headers: Headers;
1775
+ };
1776
+ type revokeSessionResponseError = (revokeSessionResponse400 | revokeSessionResponse403) & {
1777
+ headers: Headers;
1778
+ };
1779
+ type revokeSessionResponse = revokeSessionResponseSuccess | revokeSessionResponseError;
1780
+ declare const getRevokeSessionUrl: (sessionId: string) => string;
1781
+ declare const revokeSession: (sessionId: string, options?: RequestInit) => Promise<revokeSessionResponse>;
1782
+ declare const getRevokeSessionMutationFetcher: (sessionId: string, options?: RequestInit) => (_: Key, __: {
1783
+ arg: Arguments;
1784
+ }) => Promise<revokeSessionResponse>;
1785
+ declare const getRevokeSessionMutationKey: (sessionId: string) => readonly [`https://api.workos.com/_widgets/UserProfile/sessions/revoke/${string}`];
1786
+ type RevokeSessionMutationResult = NonNullable<Awaited<ReturnType<typeof revokeSession>>>;
1787
+ type RevokeSessionMutationError = Promise<RevokeSession400 | RevokeSession403>;
1788
+ declare const useRevokeSession: <TError = Promise<RevokeSession400 | RevokeSession403>>(sessionId: string, options?: {
1789
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeSession>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeSession>>> & {
1790
+ swrKey?: string;
1791
+ };
1792
+ fetch?: RequestInit;
1793
+ }) => {
1794
+ isMutating: boolean;
1795
+ trigger: swr_mutation.TriggerWithOptionsArgs<revokeSessionResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserProfile/sessions/revoke/${string}`], Arguments>;
1796
+ reset: () => void;
1797
+ error: TError | undefined;
1798
+ data: revokeSessionResponse | undefined;
1799
+ swrKey: string | readonly [`https://api.workos.com/_widgets/UserProfile/sessions/revoke/${string}`];
1800
+ };
1801
+ type sessionsResponse200 = {
1802
+ data: ActiveSessionsResponse;
1803
+ status: 200;
1804
+ };
1805
+ type sessionsResponse403 = {
1806
+ data: Sessions403;
1807
+ status: 403;
1808
+ };
1809
+ type sessionsResponseSuccess = sessionsResponse200 & {
1810
+ headers: Headers;
1811
+ };
1812
+ type sessionsResponseError = sessionsResponse403 & {
1813
+ headers: Headers;
1814
+ };
1815
+ type sessionsResponse = sessionsResponseSuccess | sessionsResponseError;
1816
+ declare const getSessionsUrl: () => string;
1817
+ declare const sessions: (options?: RequestInit) => Promise<sessionsResponse>;
1818
+ declare const getSessionsKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/sessions"];
1819
+ type SessionsQueryResult = NonNullable<Awaited<ReturnType<typeof sessions>>>;
1820
+ type SessionsQueryError = Promise<Sessions403>;
1821
+ declare const useSessions: <TError = Promise<Sessions403>>(options?: {
1822
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof sessions>>, TError> & {
1823
+ swrKey?: Key;
1824
+ enabled?: boolean;
1825
+ };
1826
+ fetch?: RequestInit;
1827
+ }) => {
1828
+ data: sessionsResponse | undefined;
1829
+ error: TError | undefined;
1830
+ mutate: swr.KeyedMutator<sessionsResponse>;
1831
+ isValidating: boolean;
1832
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1833
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1834
+ };
1835
+ type sendVerificationResponse200 = {
1836
+ data: SendVerificationResponse;
1837
+ status: 200;
1838
+ };
1839
+ type sendVerificationResponse400 = {
1840
+ data: SendVerification400;
1841
+ status: 400;
1842
+ };
1843
+ type sendVerificationResponse403 = {
1844
+ data: SendVerification403;
1845
+ status: 403;
1846
+ };
1847
+ type sendVerificationResponseSuccess = sendVerificationResponse200 & {
1848
+ headers: Headers;
1849
+ };
1850
+ type sendVerificationResponseError = (sendVerificationResponse400 | sendVerificationResponse403) & {
1851
+ headers: Headers;
1852
+ };
1853
+ type sendVerificationResponse = sendVerificationResponseSuccess | sendVerificationResponseError;
1854
+ declare const getSendVerificationUrl: () => string;
1855
+ declare const sendVerification: (options?: RequestInit) => Promise<sendVerificationResponse>;
1856
+ declare const getSendVerificationMutationFetcher: (options?: RequestInit) => (_: Key, __: {
1857
+ arg: Arguments;
1858
+ }) => Promise<sendVerificationResponse>;
1859
+ declare const getSendVerificationMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/send-verification"];
1860
+ type SendVerificationMutationResult = NonNullable<Awaited<ReturnType<typeof sendVerification>>>;
1861
+ type SendVerificationMutationError = Promise<SendVerification400 | SendVerification403>;
1862
+ declare const useSendVerification: <TError = Promise<SendVerification400 | SendVerification403>>(options?: {
1863
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof sendVerification>>, TError, Key, Arguments, Awaited<ReturnType<typeof sendVerification>>> & {
1864
+ swrKey?: string;
1865
+ };
1866
+ fetch?: RequestInit;
1867
+ }) => {
1868
+ isMutating: boolean;
1869
+ trigger: swr_mutation.TriggerWithOptionsArgs<sendVerificationResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/send-verification"], Arguments>;
1870
+ reset: () => void;
1871
+ error: TError | undefined;
1872
+ data: sendVerificationResponse | undefined;
1873
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/send-verification"];
1874
+ };
1875
+ type verifyResponse200 = {
1876
+ data: VerifyResponse;
1877
+ status: 200;
1878
+ };
1879
+ type verifyResponse400 = {
1880
+ data: Verify400;
1881
+ status: 400;
1882
+ };
1883
+ type verifyResponse403 = {
1884
+ data: Verify403;
1885
+ status: 403;
1886
+ };
1887
+ type verifyResponseSuccess = verifyResponse200 & {
1888
+ headers: Headers;
1889
+ };
1890
+ type verifyResponseError = (verifyResponse400 | verifyResponse403) & {
1891
+ headers: Headers;
1892
+ };
1893
+ type verifyResponse = verifyResponseSuccess | verifyResponseError;
1894
+ declare const getVerifyUrl: () => string;
1895
+ declare const verify: (verifyRequest: VerifyRequest, options?: RequestInit) => Promise<verifyResponse>;
1896
+ declare const getVerifyMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1897
+ arg: VerifyRequest;
1898
+ }) => Promise<verifyResponse>;
1899
+ declare const getVerifyMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/verify"];
1900
+ type VerifyMutationResult = NonNullable<Awaited<ReturnType<typeof verify>>>;
1901
+ type VerifyMutationError = Promise<Verify400 | Verify403>;
1902
+ declare const useVerify: <TError = Promise<Verify400 | Verify403>>(options?: {
1903
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verify>>, TError, Key, VerifyRequest, Awaited<ReturnType<typeof verify>>> & {
1904
+ swrKey?: string;
1905
+ };
1906
+ fetch?: RequestInit;
1907
+ }) => {
1908
+ isMutating: boolean;
1909
+ trigger: swr_mutation.TriggerWithArgs<verifyResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/verify"], VerifyRequest>;
1910
+ reset: () => void;
1911
+ error: TError | undefined;
1912
+ data: verifyResponse | undefined;
1913
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/verify"];
1914
+ };
1915
+ type registerPasskeyResponse201 = {
1916
+ data: RegisterPasskeyResponse;
1917
+ status: 201;
1918
+ };
1919
+ type registerPasskeyResponse400 = {
1920
+ data: RegisterPasskey400;
1921
+ status: 400;
1922
+ };
1923
+ type registerPasskeyResponse403 = {
1924
+ data: RegisterPasskey403;
1925
+ status: 403;
1926
+ };
1927
+ type registerPasskeyResponseSuccess = registerPasskeyResponse201 & {
1928
+ headers: Headers;
1929
+ };
1930
+ type registerPasskeyResponseError = (registerPasskeyResponse400 | registerPasskeyResponse403) & {
1931
+ headers: Headers;
1932
+ };
1933
+ type registerPasskeyResponse = registerPasskeyResponseSuccess | registerPasskeyResponseError;
1934
+ declare const getRegisterPasskeyUrl: () => string;
1935
+ declare const registerPasskey: (options?: RequestInit) => Promise<registerPasskeyResponse>;
1936
+ declare const getRegisterPasskeyMutationFetcher: (options?: RequestInit) => (_: Key, __: {
1937
+ arg: Arguments;
1938
+ }) => Promise<registerPasskeyResponse>;
1939
+ declare const getRegisterPasskeyMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/passkeys"];
1940
+ type RegisterPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof registerPasskey>>>;
1941
+ type RegisterPasskeyMutationError = Promise<RegisterPasskey400 | RegisterPasskey403>;
1942
+ declare const useRegisterPasskey: <TError = Promise<RegisterPasskey400 | RegisterPasskey403>>(options?: {
1943
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof registerPasskey>>, TError, Key, Arguments, Awaited<ReturnType<typeof registerPasskey>>> & {
1944
+ swrKey?: string;
1945
+ };
1946
+ fetch?: RequestInit;
1947
+ }) => {
1948
+ isMutating: boolean;
1949
+ trigger: swr_mutation.TriggerWithOptionsArgs<registerPasskeyResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/passkeys"], Arguments>;
1950
+ reset: () => void;
1951
+ error: TError | undefined;
1952
+ data: registerPasskeyResponse | undefined;
1953
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/passkeys"];
1954
+ };
1955
+ type verifyPasskeyResponse200 = {
1956
+ data: VerifyPasskey200;
1957
+ status: 200;
1958
+ };
1959
+ type verifyPasskeyResponse400 = {
1960
+ data: VerifyPasskey400;
1961
+ status: 400;
1962
+ };
1963
+ type verifyPasskeyResponse403 = {
1964
+ data: VerifyPasskey403;
1965
+ status: 403;
1966
+ };
1967
+ type verifyPasskeyResponseSuccess = verifyPasskeyResponse200 & {
1968
+ headers: Headers;
1969
+ };
1970
+ type verifyPasskeyResponseError = (verifyPasskeyResponse400 | verifyPasskeyResponse403) & {
1971
+ headers: Headers;
1972
+ };
1973
+ type verifyPasskeyResponse = verifyPasskeyResponseSuccess | verifyPasskeyResponseError;
1974
+ declare const getVerifyPasskeyUrl: () => string;
1975
+ declare const verifyPasskey: (verifyPasskeyRequest: VerifyPasskeyRequest, options?: RequestInit) => Promise<verifyPasskeyResponse>;
1976
+ declare const getVerifyPasskeyMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
1977
+ arg: VerifyPasskeyRequest;
1978
+ }) => Promise<verifyPasskeyResponse>;
1979
+ declare const getVerifyPasskeyMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/passkeys/verify"];
1980
+ type VerifyPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof verifyPasskey>>>;
1981
+ type VerifyPasskeyMutationError = Promise<VerifyPasskey400 | VerifyPasskey403>;
1982
+ declare const useVerifyPasskey: <TError = Promise<VerifyPasskey400 | VerifyPasskey403>>(options?: {
1983
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verifyPasskey>>, TError, Key, VerifyPasskeyRequest, Awaited<ReturnType<typeof verifyPasskey>>> & {
1984
+ swrKey?: string;
1985
+ };
1986
+ fetch?: RequestInit;
1987
+ }) => {
1988
+ isMutating: boolean;
1989
+ trigger: swr_mutation.TriggerWithArgs<verifyPasskeyResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/passkeys/verify"], VerifyPasskeyRequest>;
1990
+ reset: () => void;
1991
+ error: TError | undefined;
1992
+ data: verifyPasskeyResponse | undefined;
1993
+ swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/passkeys/verify"];
1994
+ };
1995
+ type deletePasskeyResponse200 = {
1996
+ data: DeletePasskey200;
1997
+ status: 200;
1998
+ };
1999
+ type deletePasskeyResponse400 = {
2000
+ data: DeletePasskey400;
2001
+ status: 400;
2002
+ };
2003
+ type deletePasskeyResponse403 = {
2004
+ data: DeletePasskey403;
2005
+ status: 403;
2006
+ };
2007
+ type deletePasskeyResponseSuccess = deletePasskeyResponse200 & {
2008
+ headers: Headers;
2009
+ };
2010
+ type deletePasskeyResponseError = (deletePasskeyResponse400 | deletePasskeyResponse403) & {
2011
+ headers: Headers;
2012
+ };
2013
+ type deletePasskeyResponse = deletePasskeyResponseSuccess | deletePasskeyResponseError;
2014
+ declare const getDeletePasskeyUrl: (passkeyId: string) => string;
2015
+ declare const deletePasskey: (passkeyId: string, options?: RequestInit) => Promise<deletePasskeyResponse>;
2016
+ declare const getDeletePasskeyMutationFetcher: (passkeyId: string, options?: RequestInit) => (_: Key, __: {
2017
+ arg: Arguments;
2018
+ }) => Promise<deletePasskeyResponse>;
2019
+ declare const getDeletePasskeyMutationKey: (passkeyId: string) => readonly [`https://api.workos.com/_widgets/UserProfile/passkeys/${string}`];
2020
+ type DeletePasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof deletePasskey>>>;
2021
+ type DeletePasskeyMutationError = Promise<DeletePasskey400 | DeletePasskey403>;
2022
+ declare const useDeletePasskey: <TError = Promise<DeletePasskey400 | DeletePasskey403>>(passkeyId: string, options?: {
2023
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deletePasskey>>, TError, Key, Arguments, Awaited<ReturnType<typeof deletePasskey>>> & {
2024
+ swrKey?: string;
2025
+ };
2026
+ fetch?: RequestInit;
2027
+ }) => {
2028
+ isMutating: boolean;
2029
+ trigger: swr_mutation.TriggerWithOptionsArgs<deletePasskeyResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserProfile/passkeys/${string}`], Arguments>;
2030
+ reset: () => void;
2031
+ error: TError | undefined;
2032
+ data: deletePasskeyResponse | undefined;
2033
+ swrKey: string | readonly [`https://api.workos.com/_widgets/UserProfile/passkeys/${string}`];
2034
+ };
2035
+ type settingsResponse200 = {
2036
+ data: SettingsResponse;
2037
+ status: 200;
2038
+ };
2039
+ type settingsResponse403 = {
2040
+ data: Settings403;
2041
+ status: 403;
2042
+ };
2043
+ type settingsResponseSuccess = settingsResponse200 & {
2044
+ headers: Headers;
2045
+ };
2046
+ type settingsResponseError = settingsResponse403 & {
2047
+ headers: Headers;
2048
+ };
2049
+ type settingsResponse = settingsResponseSuccess | settingsResponseError;
2050
+ declare const getSettingsUrl: () => string;
2051
+ declare const settings: (options?: RequestInit) => Promise<settingsResponse>;
2052
+ declare const getSettingsKey: () => readonly ["https://api.workos.com/_widgets/settings"];
2053
+ type SettingsQueryResult = NonNullable<Awaited<ReturnType<typeof settings>>>;
2054
+ type SettingsQueryError = Promise<Settings403>;
2055
+ declare const useSettings: <TError = Promise<Settings403>>(options?: {
2056
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof settings>>, TError> & {
2057
+ swrKey?: Key;
2058
+ enabled?: boolean;
2059
+ };
2060
+ fetch?: RequestInit;
2061
+ }) => {
2062
+ data: settingsResponse | undefined;
2063
+ error: TError | undefined;
2064
+ mutate: swr.KeyedMutator<settingsResponse>;
2065
+ isValidating: boolean;
2066
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2067
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2068
+ };
2069
+ type listOrganizationDomainsResponse200 = {
2070
+ data: ListOrganizationDomains200;
2071
+ status: 200;
2072
+ };
2073
+ type listOrganizationDomainsResponse403 = {
2074
+ data: ListOrganizationDomains403;
2075
+ status: 403;
2076
+ };
2077
+ type listOrganizationDomainsResponse404 = {
2078
+ data: ListOrganizationDomains404;
2079
+ status: 404;
2080
+ };
2081
+ type listOrganizationDomainsResponseSuccess = listOrganizationDomainsResponse200 & {
2082
+ headers: Headers;
2083
+ };
2084
+ type listOrganizationDomainsResponseError = (listOrganizationDomainsResponse403 | listOrganizationDomainsResponse404) & {
2085
+ headers: Headers;
2086
+ };
2087
+ type listOrganizationDomainsResponse = listOrganizationDomainsResponseSuccess | listOrganizationDomainsResponseError;
2088
+ declare const getListOrganizationDomainsUrl: () => string;
2089
+ declare const listOrganizationDomains: (options?: RequestInit) => Promise<listOrganizationDomainsResponse>;
2090
+ declare const getListOrganizationDomainsKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/organization-domains"];
2091
+ type ListOrganizationDomainsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationDomains>>>;
2092
+ type ListOrganizationDomainsQueryError = Promise<ListOrganizationDomains403 | ListOrganizationDomains404>;
2093
+ declare const useListOrganizationDomains: <TError = Promise<ListOrganizationDomains403 | ListOrganizationDomains404>>(options?: {
2094
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationDomains>>, TError> & {
2095
+ swrKey?: Key;
2096
+ enabled?: boolean;
2097
+ };
2098
+ fetch?: RequestInit;
2099
+ }) => {
2100
+ data: listOrganizationDomainsResponse | undefined;
2101
+ error: TError | undefined;
2102
+ mutate: swr.KeyedMutator<listOrganizationDomainsResponse>;
2103
+ isValidating: boolean;
2104
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2105
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2106
+ };
2107
+ type generateAdminPortalLinkResponse201 = {
2108
+ data: GenerateAdminPortalLink201;
2109
+ status: 201;
2110
+ };
2111
+ type generateAdminPortalLinkResponse403 = {
2112
+ data: GenerateAdminPortalLink403;
2113
+ status: 403;
2114
+ };
2115
+ type generateAdminPortalLinkResponse404 = {
2116
+ data: GenerateAdminPortalLink404;
2117
+ status: 404;
2118
+ };
2119
+ type generateAdminPortalLinkResponse500 = {
2120
+ data: GenerateAdminPortalLink500;
2121
+ status: 500;
2122
+ };
2123
+ type generateAdminPortalLinkResponseSuccess = generateAdminPortalLinkResponse201 & {
2124
+ headers: Headers;
2125
+ };
2126
+ type generateAdminPortalLinkResponseError = (generateAdminPortalLinkResponse403 | generateAdminPortalLinkResponse404 | generateAdminPortalLinkResponse500) & {
2127
+ headers: Headers;
2128
+ };
2129
+ type generateAdminPortalLinkResponse = generateAdminPortalLinkResponseSuccess | generateAdminPortalLinkResponseError;
2130
+ declare const getGenerateAdminPortalLinkUrl: (params: GenerateAdminPortalLinkParams) => string;
2131
+ declare const generateAdminPortalLink: (params: GenerateAdminPortalLinkParams, options?: RequestInit) => Promise<generateAdminPortalLinkResponse>;
2132
+ declare const getGenerateAdminPortalLinkMutationFetcher: (params: GenerateAdminPortalLinkParams, options?: RequestInit) => (_: Key, __: {
2133
+ arg: Arguments;
2134
+ }) => Promise<generateAdminPortalLinkResponse>;
2135
+ declare const getGenerateAdminPortalLinkMutationKey: (params: GenerateAdminPortalLinkParams) => readonly ["https://api.workos.com/_widgets/admin-portal/generate-link", ...GenerateAdminPortalLinkParams[]];
2136
+ type GenerateAdminPortalLinkMutationResult = NonNullable<Awaited<ReturnType<typeof generateAdminPortalLink>>>;
2137
+ type GenerateAdminPortalLinkMutationError = Promise<GenerateAdminPortalLink403 | GenerateAdminPortalLink404 | GenerateAdminPortalLink500>;
2138
+ declare const useGenerateAdminPortalLink: <TError = Promise<GenerateAdminPortalLink403 | GenerateAdminPortalLink404 | GenerateAdminPortalLink500>>(params: GenerateAdminPortalLinkParams, options?: {
2139
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof generateAdminPortalLink>>, TError, Key, Arguments, Awaited<ReturnType<typeof generateAdminPortalLink>>> & {
2140
+ swrKey?: string;
2141
+ };
2142
+ fetch?: RequestInit;
2143
+ }) => {
2144
+ isMutating: boolean;
2145
+ trigger: swr_mutation.TriggerWithOptionsArgs<generateAdminPortalLinkResponse, TError, string | readonly ["https://api.workos.com/_widgets/admin-portal/generate-link", ...GenerateAdminPortalLinkParams[]], Arguments>;
2146
+ reset: () => void;
2147
+ error: TError | undefined;
2148
+ data: generateAdminPortalLinkResponse | undefined;
2149
+ swrKey: string | readonly ["https://api.workos.com/_widgets/admin-portal/generate-link", ...GenerateAdminPortalLinkParams[]];
2150
+ };
2151
+ type deleteOrganizationDomainResponse200 = {
2152
+ data: OrganizationDomain;
2153
+ status: 200;
2154
+ };
2155
+ type deleteOrganizationDomainResponse403 = {
2156
+ data: DeleteOrganizationDomain403;
2157
+ status: 403;
2158
+ };
2159
+ type deleteOrganizationDomainResponse404 = {
2160
+ data: DeleteOrganizationDomain404;
2161
+ status: 404;
2162
+ };
2163
+ type deleteOrganizationDomainResponseSuccess = deleteOrganizationDomainResponse200 & {
2164
+ headers: Headers;
2165
+ };
2166
+ type deleteOrganizationDomainResponseError = (deleteOrganizationDomainResponse403 | deleteOrganizationDomainResponse404) & {
2167
+ headers: Headers;
2168
+ };
2169
+ type deleteOrganizationDomainResponse = deleteOrganizationDomainResponseSuccess | deleteOrganizationDomainResponseError;
2170
+ declare const getDeleteOrganizationDomainUrl: (domainId: string) => string;
2171
+ declare const deleteOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<deleteOrganizationDomainResponse>;
2172
+ declare const getDeleteOrganizationDomainMutationFetcher: (domainId: string, options?: RequestInit) => (_: Key, __: {
2173
+ arg: Arguments;
2174
+ }) => Promise<deleteOrganizationDomainResponse>;
2175
+ declare const getDeleteOrganizationDomainMutationKey: (domainId: string) => readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}`];
2176
+ type DeleteOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationDomain>>>;
2177
+ type DeleteOrganizationDomainMutationError = Promise<DeleteOrganizationDomain403 | DeleteOrganizationDomain404>;
2178
+ declare const useDeleteOrganizationDomain: <TError = Promise<DeleteOrganizationDomain403 | DeleteOrganizationDomain404>>(domainId: string, options?: {
2179
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteOrganizationDomain>>> & {
2180
+ swrKey?: string;
2181
+ };
2182
+ fetch?: RequestInit;
2183
+ }) => {
2184
+ isMutating: boolean;
2185
+ trigger: swr_mutation.TriggerWithOptionsArgs<deleteOrganizationDomainResponse, TError, string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}`], Arguments>;
2186
+ reset: () => void;
2187
+ error: TError | undefined;
2188
+ data: deleteOrganizationDomainResponse | undefined;
2189
+ swrKey: string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}`];
2190
+ };
2191
+ type reverifyOrganizationDomainResponse200 = {
2192
+ data: OrganizationDomain;
2193
+ status: 200;
2194
+ };
2195
+ type reverifyOrganizationDomainResponse403 = {
2196
+ data: ReverifyOrganizationDomain403;
2197
+ status: 403;
2198
+ };
2199
+ type reverifyOrganizationDomainResponse404 = {
2200
+ data: ReverifyOrganizationDomain404;
2201
+ status: 404;
2202
+ };
2203
+ type reverifyOrganizationDomainResponseSuccess = reverifyOrganizationDomainResponse200 & {
2204
+ headers: Headers;
2205
+ };
2206
+ type reverifyOrganizationDomainResponseError = (reverifyOrganizationDomainResponse403 | reverifyOrganizationDomainResponse404) & {
2207
+ headers: Headers;
2208
+ };
2209
+ type reverifyOrganizationDomainResponse = reverifyOrganizationDomainResponseSuccess | reverifyOrganizationDomainResponseError;
2210
+ declare const getReverifyOrganizationDomainUrl: (domainId: string) => string;
2211
+ declare const reverifyOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<reverifyOrganizationDomainResponse>;
2212
+ declare const getReverifyOrganizationDomainMutationFetcher: (domainId: string, options?: RequestInit) => (_: Key, __: {
2213
+ arg: Arguments;
2214
+ }) => Promise<reverifyOrganizationDomainResponse>;
2215
+ declare const getReverifyOrganizationDomainMutationKey: (domainId: string) => readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}/reverify`];
2216
+ type ReverifyOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof reverifyOrganizationDomain>>>;
2217
+ type ReverifyOrganizationDomainMutationError = Promise<ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404>;
2218
+ declare const useReverifyOrganizationDomain: <TError = Promise<ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404>>(domainId: string, options?: {
2219
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, Key, Arguments, Awaited<ReturnType<typeof reverifyOrganizationDomain>>> & {
2220
+ swrKey?: string;
2221
+ };
2222
+ fetch?: RequestInit;
2223
+ }) => {
2224
+ isMutating: boolean;
2225
+ trigger: swr_mutation.TriggerWithOptionsArgs<reverifyOrganizationDomainResponse, TError, string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}/reverify`], Arguments>;
2226
+ reset: () => void;
2227
+ error: TError | undefined;
2228
+ data: reverifyOrganizationDomainResponse | undefined;
2229
+ swrKey: string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}/reverify`];
2230
+ };
2231
+ type listSsoConnectionsResponse200 = {
2232
+ data: SsoConnection[];
2233
+ status: 200;
2234
+ };
2235
+ type listSsoConnectionsResponseSuccess = listSsoConnectionsResponse200 & {
2236
+ headers: Headers;
2237
+ };
2238
+ type listSsoConnectionsResponse = listSsoConnectionsResponseSuccess;
2239
+ declare const getListSsoConnectionsUrl: () => string;
2240
+ declare const listSsoConnections: (options?: RequestInit) => Promise<listSsoConnectionsResponse>;
2241
+ declare const getListSsoConnectionsKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/sso-connections"];
2242
+ type ListSsoConnectionsQueryResult = NonNullable<Awaited<ReturnType<typeof listSsoConnections>>>;
2243
+ type ListSsoConnectionsQueryError = Promise<unknown>;
2244
+ declare const useListSsoConnections: <TError = Promise<unknown>>(options?: {
2245
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listSsoConnections>>, TError> & {
2246
+ swrKey?: Key;
2247
+ enabled?: boolean;
2248
+ };
2249
+ fetch?: RequestInit;
2250
+ }) => {
2251
+ data: (listSsoConnectionsResponse200 & {
2252
+ headers: Headers;
2253
+ }) | undefined;
2254
+ error: TError | undefined;
2255
+ mutate: swr.KeyedMutator<listSsoConnectionsResponse200 & {
2256
+ headers: Headers;
2257
+ }>;
2258
+ isValidating: boolean;
2259
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2260
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2261
+ };
2262
+ type createOrganizationApiKeyResponse201 = {
2263
+ data: CreateOrganizationApiKeyResponse;
2264
+ status: 201;
2265
+ };
2266
+ type createOrganizationApiKeyResponse400 = {
2267
+ data: CreateOrganizationApiKey400;
2268
+ status: 400;
2269
+ };
2270
+ type createOrganizationApiKeyResponse403 = {
2271
+ data: CreateOrganizationApiKey403;
2272
+ status: 403;
2273
+ };
2274
+ type createOrganizationApiKeyResponse404 = {
2275
+ data: CreateOrganizationApiKey404;
2276
+ status: 404;
2277
+ };
2278
+ type createOrganizationApiKeyResponse422 = {
2279
+ data: CreateOrganizationApiKey422;
2280
+ status: 422;
2281
+ };
2282
+ type createOrganizationApiKeyResponseSuccess = createOrganizationApiKeyResponse201 & {
2283
+ headers: Headers;
2284
+ };
2285
+ type createOrganizationApiKeyResponseError = (createOrganizationApiKeyResponse400 | createOrganizationApiKeyResponse403 | createOrganizationApiKeyResponse404 | createOrganizationApiKeyResponse422) & {
2286
+ headers: Headers;
2287
+ };
2288
+ type createOrganizationApiKeyResponse = createOrganizationApiKeyResponseSuccess | createOrganizationApiKeyResponseError;
2289
+ declare const getCreateOrganizationApiKeyUrl: () => string;
2290
+ declare const createOrganizationApiKey: (createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest, options?: RequestInit) => Promise<createOrganizationApiKeyResponse>;
2291
+ declare const getCreateOrganizationApiKeyMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
2292
+ arg: CreateOrganizationApiKeyRequest;
2293
+ }) => Promise<createOrganizationApiKeyResponse>;
2294
+ declare const getCreateOrganizationApiKeyMutationKey: () => readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys"];
2295
+ type CreateOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createOrganizationApiKey>>>;
2296
+ type CreateOrganizationApiKeyMutationError = Promise<CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422>;
2297
+ declare const useCreateOrganizationApiKey: <TError = Promise<CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422>>(options?: {
2298
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, Key, CreateOrganizationApiKeyRequest, Awaited<ReturnType<typeof createOrganizationApiKey>>> & {
2299
+ swrKey?: string;
2300
+ };
2301
+ fetch?: RequestInit;
2302
+ }) => {
2303
+ isMutating: boolean;
2304
+ trigger: swr_mutation.TriggerWithArgs<createOrganizationApiKeyResponse, TError, string | readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys"], CreateOrganizationApiKeyRequest>;
2305
+ reset: () => void;
2306
+ error: TError | undefined;
2307
+ data: createOrganizationApiKeyResponse | undefined;
2308
+ swrKey: string | readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys"];
2309
+ };
2310
+ type listOrganizationApiKeysResponse200 = {
2311
+ data: ListOrganizationApiKeysResponse;
2312
+ status: 200;
2313
+ };
2314
+ type listOrganizationApiKeysResponse400 = {
2315
+ data: ListOrganizationApiKeys400;
2316
+ status: 400;
2317
+ };
2318
+ type listOrganizationApiKeysResponse403 = {
2319
+ data: ListOrganizationApiKeys403;
2320
+ status: 403;
2321
+ };
2322
+ type listOrganizationApiKeysResponseSuccess = listOrganizationApiKeysResponse200 & {
2323
+ headers: Headers;
2324
+ };
2325
+ type listOrganizationApiKeysResponseError = (listOrganizationApiKeysResponse400 | listOrganizationApiKeysResponse403) & {
2326
+ headers: Headers;
2327
+ };
2328
+ type listOrganizationApiKeysResponse = listOrganizationApiKeysResponseSuccess | listOrganizationApiKeysResponseError;
2329
+ declare const getListOrganizationApiKeysUrl: (params?: ListOrganizationApiKeysParams) => string;
2330
+ declare const listOrganizationApiKeys: (params?: ListOrganizationApiKeysParams, options?: RequestInit) => Promise<listOrganizationApiKeysResponse>;
2331
+ declare const getListOrganizationApiKeysKey: (params?: ListOrganizationApiKeysParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys", ...ListOrganizationApiKeysParams[]];
2332
+ type ListOrganizationApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeys>>>;
2333
+ type ListOrganizationApiKeysQueryError = Promise<ListOrganizationApiKeys400 | ListOrganizationApiKeys403>;
2334
+ declare const useListOrganizationApiKeys: <TError = Promise<ListOrganizationApiKeys400 | ListOrganizationApiKeys403>>(params?: ListOrganizationApiKeysParams, options?: {
2335
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError> & {
2336
+ swrKey?: Key;
2337
+ enabled?: boolean;
2338
+ };
2339
+ fetch?: RequestInit;
2340
+ }) => {
2341
+ data: listOrganizationApiKeysResponse | undefined;
2342
+ error: TError | undefined;
2343
+ mutate: swr.KeyedMutator<listOrganizationApiKeysResponse>;
2344
+ isValidating: boolean;
2345
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2346
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2347
+ };
2348
+ type listOrganizationApiKeyPermissionsResponse200 = {
2349
+ data: ListOrganizationApiKeyPermissionsResponse;
2350
+ status: 200;
2351
+ };
2352
+ type listOrganizationApiKeyPermissionsResponse400 = {
2353
+ data: ListOrganizationApiKeyPermissions400;
2354
+ status: 400;
2355
+ };
2356
+ type listOrganizationApiKeyPermissionsResponse403 = {
2357
+ data: ListOrganizationApiKeyPermissions403;
2358
+ status: 403;
2359
+ };
2360
+ type listOrganizationApiKeyPermissionsResponseSuccess = listOrganizationApiKeyPermissionsResponse200 & {
2361
+ headers: Headers;
2362
+ };
2363
+ type listOrganizationApiKeyPermissionsResponseError = (listOrganizationApiKeyPermissionsResponse400 | listOrganizationApiKeyPermissionsResponse403) & {
2364
+ headers: Headers;
2365
+ };
2366
+ type listOrganizationApiKeyPermissionsResponse = listOrganizationApiKeyPermissionsResponseSuccess | listOrganizationApiKeyPermissionsResponseError;
2367
+ declare const getListOrganizationApiKeyPermissionsUrl: (params?: ListOrganizationApiKeyPermissionsParams) => string;
2368
+ declare const listOrganizationApiKeyPermissions: (params?: ListOrganizationApiKeyPermissionsParams, options?: RequestInit) => Promise<listOrganizationApiKeyPermissionsResponse>;
2369
+ declare const getListOrganizationApiKeyPermissionsKey: (params?: ListOrganizationApiKeyPermissionsParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/permissions", ...ListOrganizationApiKeyPermissionsParams[]];
2370
+ type ListOrganizationApiKeyPermissionsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>;
2371
+ type ListOrganizationApiKeyPermissionsQueryError = Promise<ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>;
2372
+ declare const useListOrganizationApiKeyPermissions: <TError = Promise<ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
2373
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError> & {
2374
+ swrKey?: Key;
2375
+ enabled?: boolean;
2376
+ };
2377
+ fetch?: RequestInit;
2378
+ }) => {
2379
+ data: listOrganizationApiKeyPermissionsResponse | undefined;
2380
+ error: TError | undefined;
2381
+ mutate: swr.KeyedMutator<listOrganizationApiKeyPermissionsResponse>;
2382
+ isValidating: boolean;
2383
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2384
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2385
+ };
2386
+ type deleteOrganizationApiKeyResponse200 = {
2387
+ data: DeleteOrganizationApiKey200;
2388
+ status: 200;
2389
+ };
2390
+ type deleteOrganizationApiKeyResponse403 = {
2391
+ data: DeleteOrganizationApiKey403;
2392
+ status: 403;
2393
+ };
2394
+ type deleteOrganizationApiKeyResponse404 = {
2395
+ data: DeleteOrganizationApiKey404;
2396
+ status: 404;
2397
+ };
2398
+ type deleteOrganizationApiKeyResponseSuccess = deleteOrganizationApiKeyResponse200 & {
2399
+ headers: Headers;
2400
+ };
2401
+ type deleteOrganizationApiKeyResponseError = (deleteOrganizationApiKeyResponse403 | deleteOrganizationApiKeyResponse404) & {
2402
+ headers: Headers;
2403
+ };
2404
+ type deleteOrganizationApiKeyResponse = deleteOrganizationApiKeyResponseSuccess | deleteOrganizationApiKeyResponseError;
2405
+ declare const getDeleteOrganizationApiKeyUrl: (apiKeyId: string) => string;
2406
+ declare const deleteOrganizationApiKey: (apiKeyId: string, options?: RequestInit) => Promise<deleteOrganizationApiKeyResponse>;
2407
+ declare const getDeleteOrganizationApiKeyMutationFetcher: (apiKeyId: string, options?: RequestInit) => (_: Key, __: {
2408
+ arg: Arguments;
2409
+ }) => Promise<deleteOrganizationApiKeyResponse>;
2410
+ declare const getDeleteOrganizationApiKeyMutationKey: (apiKeyId: string) => readonly [`https://api.workos.com/_widgets/ApiKeys/${string}`];
2411
+ type DeleteOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationApiKey>>>;
2412
+ type DeleteOrganizationApiKeyMutationError = Promise<DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404>;
2413
+ declare const useDeleteOrganizationApiKey: <TError = Promise<DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404>>(apiKeyId: string, options?: {
2414
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteOrganizationApiKey>>> & {
2415
+ swrKey?: string;
2416
+ };
2417
+ fetch?: RequestInit;
2418
+ }) => {
2419
+ isMutating: boolean;
2420
+ trigger: swr_mutation.TriggerWithOptionsArgs<deleteOrganizationApiKeyResponse, TError, string | readonly [`https://api.workos.com/_widgets/ApiKeys/${string}`], Arguments>;
2421
+ reset: () => void;
2422
+ error: TError | undefined;
2423
+ data: deleteOrganizationApiKeyResponse | undefined;
2424
+ swrKey: string | readonly [`https://api.workos.com/_widgets/ApiKeys/${string}`];
2425
+ };
2426
+ type myDataIntegrationsResponse200 = {
2427
+ data: DataIntegrationsResponse;
2428
+ status: 200;
2429
+ };
2430
+ type myDataIntegrationsResponse403 = {
2431
+ data: MyDataIntegrations403;
2432
+ status: 403;
2433
+ };
2434
+ type myDataIntegrationsResponseSuccess = myDataIntegrationsResponse200 & {
2435
+ headers: Headers;
2436
+ };
2437
+ type myDataIntegrationsResponseError = myDataIntegrationsResponse403 & {
2438
+ headers: Headers;
2439
+ };
2440
+ type myDataIntegrationsResponse = myDataIntegrationsResponseSuccess | myDataIntegrationsResponseError;
2441
+ declare const getMyDataIntegrationsUrl: () => string;
2442
+ declare const myDataIntegrations: (options?: RequestInit) => Promise<myDataIntegrationsResponse>;
2443
+ declare const getMyDataIntegrationsKey: () => readonly ["https://api.workos.com/_widgets/DataIntegrations/mine"];
2444
+ type MyDataIntegrationsQueryResult = NonNullable<Awaited<ReturnType<typeof myDataIntegrations>>>;
2445
+ type MyDataIntegrationsQueryError = Promise<MyDataIntegrations403>;
2446
+ declare const useMyDataIntegrations: <TError = Promise<MyDataIntegrations403>>(options?: {
2447
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof myDataIntegrations>>, TError> & {
2448
+ swrKey?: Key;
2449
+ enabled?: boolean;
2450
+ };
2451
+ fetch?: RequestInit;
2452
+ }) => {
2453
+ data: myDataIntegrationsResponse | undefined;
2454
+ error: TError | undefined;
2455
+ mutate: swr.KeyedMutator<myDataIntegrationsResponse>;
2456
+ isValidating: boolean;
2457
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2458
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2459
+ };
2460
+ type getDataIntegrationAuthorizeUrlResponse200 = {
2461
+ data: GetDataIntegrationAuthorizeUrlResponse;
2462
+ status: 200;
2463
+ };
2464
+ type getDataIntegrationAuthorizeUrlResponse400 = {
2465
+ data: GetDataIntegrationAuthorizeUrl400;
2466
+ status: 400;
2467
+ };
2468
+ type getDataIntegrationAuthorizeUrlResponse403 = {
2469
+ data: GetDataIntegrationAuthorizeUrl403;
2470
+ status: 403;
2471
+ };
2472
+ type getDataIntegrationAuthorizeUrlResponse404 = {
2473
+ data: GetDataIntegrationAuthorizeUrl404;
2474
+ status: 404;
2475
+ };
2476
+ type getDataIntegrationAuthorizeUrlResponseSuccess = getDataIntegrationAuthorizeUrlResponse200 & {
2477
+ headers: Headers;
2478
+ };
2479
+ type getDataIntegrationAuthorizeUrlResponseError = (getDataIntegrationAuthorizeUrlResponse400 | getDataIntegrationAuthorizeUrlResponse403 | getDataIntegrationAuthorizeUrlResponse404) & {
2480
+ headers: Headers;
2481
+ };
2482
+ type getDataIntegrationAuthorizeUrlResponse = getDataIntegrationAuthorizeUrlResponseSuccess | getDataIntegrationAuthorizeUrlResponseError;
2483
+ declare const getGetDataIntegrationAuthorizeUrlUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams) => string;
2484
+ declare const getDataIntegrationAuthorizeUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: RequestInit) => Promise<getDataIntegrationAuthorizeUrlResponse>;
2485
+ declare const getGetDataIntegrationAuthorizeUrlKey: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams) => readonly [`https://api.workos.com/_widgets/DataIntegrations/${string}/authorize`, ...GetDataIntegrationAuthorizeUrlParams[]];
2486
+ type GetDataIntegrationAuthorizeUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>;
2487
+ type GetDataIntegrationAuthorizeUrlQueryError = Promise<GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>;
2488
+ declare const useGetDataIntegrationAuthorizeUrl: <TError = Promise<GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
2489
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError> & {
2490
+ swrKey?: Key;
2491
+ enabled?: boolean;
2492
+ };
2493
+ fetch?: RequestInit;
2494
+ }) => {
2495
+ data: getDataIntegrationAuthorizeUrlResponse | undefined;
2496
+ error: TError | undefined;
2497
+ mutate: swr.KeyedMutator<getDataIntegrationAuthorizeUrlResponse>;
2498
+ isValidating: boolean;
2499
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2500
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2501
+ };
2502
+ type getDataInstallationAuthorizationStatusResponse200 = {
2503
+ data: GetAuthorizationStatusResponse;
2504
+ status: 200;
2505
+ };
2506
+ type getDataInstallationAuthorizationStatusResponse400 = {
2507
+ data: GetDataInstallationAuthorizationStatus400;
2508
+ status: 400;
2509
+ };
2510
+ type getDataInstallationAuthorizationStatusResponse403 = {
2511
+ data: GetDataInstallationAuthorizationStatus403;
2512
+ status: 403;
2513
+ };
2514
+ type getDataInstallationAuthorizationStatusResponse404 = {
2515
+ data: GetDataInstallationAuthorizationStatus404;
2516
+ status: 404;
2517
+ };
2518
+ type getDataInstallationAuthorizationStatusResponseSuccess = getDataInstallationAuthorizationStatusResponse200 & {
2519
+ headers: Headers;
2520
+ };
2521
+ type getDataInstallationAuthorizationStatusResponseError = (getDataInstallationAuthorizationStatusResponse400 | getDataInstallationAuthorizationStatusResponse403 | getDataInstallationAuthorizationStatusResponse404) & {
2522
+ headers: Headers;
2523
+ };
2524
+ type getDataInstallationAuthorizationStatusResponse = getDataInstallationAuthorizationStatusResponseSuccess | getDataInstallationAuthorizationStatusResponseError;
2525
+ declare const getGetDataInstallationAuthorizationStatusUrl: (dataIntegrationId: string, state: string) => string;
2526
+ declare const getDataInstallationAuthorizationStatus: (dataIntegrationId: string, state: string, options?: RequestInit) => Promise<getDataInstallationAuthorizationStatusResponse>;
2527
+ declare const getGetDataInstallationAuthorizationStatusKey: (dataIntegrationId: string, state: string) => readonly [`https://api.workos.com/_widgets/DataIntegrations/${string}/authorization-status/${string}`];
2528
+ type GetDataInstallationAuthorizationStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>;
2529
+ type GetDataInstallationAuthorizationStatusQueryError = Promise<GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>;
2530
+ declare const useGetDataInstallationAuthorizationStatus: <TError = Promise<GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>>(dataIntegrationId: string, state: string, options?: {
2531
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError> & {
2532
+ swrKey?: Key;
2533
+ enabled?: boolean;
2534
+ };
2535
+ fetch?: RequestInit;
2536
+ }) => {
2537
+ data: getDataInstallationAuthorizationStatusResponse | undefined;
2538
+ error: TError | undefined;
2539
+ mutate: swr.KeyedMutator<getDataInstallationAuthorizationStatusResponse>;
2540
+ isValidating: boolean;
2541
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
2542
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
2543
+ };
2544
+ type deleteDataInstallationResponse200 = {
2545
+ data: DeleteDataInstallation200;
2546
+ status: 200;
2547
+ };
2548
+ type deleteDataInstallationResponse403 = {
2549
+ data: DeleteDataInstallation403;
2550
+ status: 403;
2551
+ };
2552
+ type deleteDataInstallationResponse404 = {
2553
+ data: DeleteDataInstallation404;
2554
+ status: 404;
2555
+ };
2556
+ type deleteDataInstallationResponseSuccess = deleteDataInstallationResponse200 & {
2557
+ headers: Headers;
2558
+ };
2559
+ type deleteDataInstallationResponseError = (deleteDataInstallationResponse403 | deleteDataInstallationResponse404) & {
2560
+ headers: Headers;
2561
+ };
2562
+ type deleteDataInstallationResponse = deleteDataInstallationResponseSuccess | deleteDataInstallationResponseError;
2563
+ declare const getDeleteDataInstallationUrl: (installationId: string) => string;
2564
+ declare const deleteDataInstallation: (installationId: string, options?: RequestInit) => Promise<deleteDataInstallationResponse>;
2565
+ declare const getDeleteDataInstallationMutationFetcher: (installationId: string, options?: RequestInit) => (_: Key, __: {
2566
+ arg: Arguments;
2567
+ }) => Promise<deleteDataInstallationResponse>;
2568
+ declare const getDeleteDataInstallationMutationKey: (installationId: string) => readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`];
2569
+ type DeleteDataInstallationMutationResult = NonNullable<Awaited<ReturnType<typeof deleteDataInstallation>>>;
2570
+ type DeleteDataInstallationMutationError = Promise<DeleteDataInstallation403 | DeleteDataInstallation404>;
2571
+ declare const useDeleteDataInstallation: <TError = Promise<DeleteDataInstallation403 | DeleteDataInstallation404>>(installationId: string, options?: {
2572
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteDataInstallation>>> & {
2573
+ swrKey?: string;
2574
+ };
2575
+ fetch?: RequestInit;
2576
+ }) => {
2577
+ isMutating: boolean;
2578
+ trigger: swr_mutation.TriggerWithOptionsArgs<deleteDataInstallationResponse, TError, string | readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`], Arguments>;
2579
+ reset: () => void;
2580
+ error: TError | undefined;
2581
+ data: deleteDataInstallationResponse | undefined;
2582
+ swrKey: string | readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`];
2583
+ };
2584
+
2585
+ export { type ActiveSession, type ActiveSessionCurrentLocation, type ActiveSessionState, type ActiveSessionsResponse, type AuthenticationInformation403, type AuthenticationInformationQueryError, type AuthenticationInformationQueryResult, type AuthenticationInformationResponse, type AuthenticationInformationResponseData, type AuthenticationInformationResponseDataPasswordSettings, type AuthenticationInformationResponseDataVerificationMethods, type AuthenticationInformationResponseDataVerificationMethodsMfa, AuthenticationInformationResponseDataVerificationMethodsMfaProvider, type AuthenticationInformationResponseDataVerificationMethodsPasskey, type AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem, AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider, type AuthenticationInformationResponseDataVerificationMethodsPassword, AuthenticationInformationResponseDataVerificationMethodsPasswordProvider, type CreateOrganizationApiKey400, type CreateOrganizationApiKey403, type CreateOrganizationApiKey404, type CreateOrganizationApiKey422, type CreateOrganizationApiKey422ErrorsItem, type CreateOrganizationApiKeyMutationError, type CreateOrganizationApiKeyMutationResult, type CreateOrganizationApiKeyRequest, type CreateOrganizationApiKeyResponse, type CreatePassword201, type CreatePassword400, type CreatePassword403, type CreatePasswordMutationError, type CreatePasswordMutationResult, type CreatePasswordRequest, type CreateTotpFactor400, type CreateTotpFactor403, type CreateTotpFactorMutationError, type CreateTotpFactorMutationResult, type CreateTotpFactorResponse, type CreateTotpFactorResponseAuthenticationChallenge, type CreateTotpFactorResponseAuthenticationChallengeAllOf, CreateTotpFactorResponseAuthenticationChallengeAllOfObject, type CreateTotpFactorResponseAuthenticationChallengeAllOfThree, type CreateTotpFactorResponseAuthenticationFactor, type CreateTotpFactorResponseAuthenticationFactorAllOf, type CreateTotpFactorResponseAuthenticationFactorAllOfEight, CreateTotpFactorResponseAuthenticationFactorAllOfObject, type CreateTotpFactorResponseAuthenticationFactorAllOfSms, type CreateTotpFactorResponseAuthenticationFactorAllOfTotp, type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf, type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo, CreateTotpFactorResponseAuthenticationFactorAllOfType, type DataInstallation, DataInstallationObject, DataInstallationState, type DataIntegration, DataIntegrationCredentialsType, type DataIntegrationInstallation, DataIntegrationIntegrationType, DataIntegrationObject, DataIntegrationOwnership, type DataIntegrationsResponse, type DeleteDataInstallation200, type DeleteDataInstallation403, type DeleteDataInstallation404, type DeleteDataInstallationMutationError, type DeleteDataInstallationMutationResult, type DeleteOrganizationApiKey200, type DeleteOrganizationApiKey403, type DeleteOrganizationApiKey404, type DeleteOrganizationApiKeyMutationError, type DeleteOrganizationApiKeyMutationResult, type DeleteOrganizationDomain403, type DeleteOrganizationDomain404, type DeleteOrganizationDomainMutationError, type DeleteOrganizationDomainMutationResult, type DeletePasskey200, type DeletePasskey400, type DeletePasskey403, type DeletePasskeyMutationError, type DeletePasskeyMutationResult, type DeleteTotpFactors200, type DeleteTotpFactors400, type DeleteTotpFactors403, type DeleteTotpFactorsMutationError, type DeleteTotpFactorsMutationResult, DomainVerificationNameServer, type GenerateAdminPortalLink201, type GenerateAdminPortalLink403, type GenerateAdminPortalLink404, type GenerateAdminPortalLink500, GenerateAdminPortalLinkIntent, type GenerateAdminPortalLinkMutationError, type GenerateAdminPortalLinkMutationResult, type GenerateAdminPortalLinkParams, type GetAuthorizationStatusResponse, type GetDataInstallationAuthorizationStatus400, type GetDataInstallationAuthorizationStatus403, type GetDataInstallationAuthorizationStatus404, type GetDataInstallationAuthorizationStatusQueryError, type GetDataInstallationAuthorizationStatusQueryResult, type GetDataIntegrationAuthorizeUrl400, type GetDataIntegrationAuthorizeUrl403, type GetDataIntegrationAuthorizeUrl404, type GetDataIntegrationAuthorizeUrlParams, type GetDataIntegrationAuthorizeUrlQueryError, type GetDataIntegrationAuthorizeUrlQueryResult, type GetDataIntegrationAuthorizeUrlResponse, type GetDataIntegrationAuthorizeUrlResponseAllOf, type GetDataIntegrationAuthorizeUrlResponseAllOfTwo, type InviteMember201, type InviteMember400, type InviteMember403, type InviteMember404, type InviteMemberBody, type InviteMemberMutationError, type InviteMemberMutationResult, type ListMetadata, type ListOrganizationApiKeyPermission, type ListOrganizationApiKeyPermissions400, type ListOrganizationApiKeyPermissions403, type ListOrganizationApiKeyPermissionsParams, type ListOrganizationApiKeyPermissionsQueryError, type ListOrganizationApiKeyPermissionsQueryResult, type ListOrganizationApiKeyPermissionsResponse, type ListOrganizationApiKeyPermissionsResponseListMetadata, type ListOrganizationApiKeys400, type ListOrganizationApiKeys403, type ListOrganizationApiKeysParams, type ListOrganizationApiKeysQueryError, type ListOrganizationApiKeysQueryResult, type ListOrganizationApiKeysResponse, type ListOrganizationApiKeysResponseData, type ListOrganizationApiKeysResponseListMetadata, type ListOrganizationDomains200, type ListOrganizationDomains403, type ListOrganizationDomains404, type ListOrganizationDomainsQueryError, type ListOrganizationDomainsQueryResult, type ListSsoConnectionsQueryError, type ListSsoConnectionsQueryResult, type Me, type Me403, type MeOauthProfiles, type MeQueryError, type MeQueryResult, type Member, type MemberActions, MemberActionsItem, type MemberRole, type MemberRolesItem, MemberStatus, type Members200, type Members403, type Members404, type MembersParams, type MembersQueryError, type MembersQueryResult, type MyDataIntegrations403, type MyDataIntegrationsQueryError, type MyDataIntegrationsQueryResult, type OAuthProfile, OidcSessionState, type OrganizationDomain, OrganizationDomainState, type OrganizationInfo, type Organizations403, type Organizations404, type OrganizationsQueryError, type OrganizationsQueryResult, type OrganizationsResponse, type RegisterPasskey400, type RegisterPasskey403, type RegisterPasskeyMutationError, type RegisterPasskeyMutationResult, type RegisterPasskeyResponse, type RegisterPasskeyResponseOptions, type RemoveMember200, type RemoveMember400, type RemoveMember403, type RemoveMember404, type RemoveMemberMutationError, type RemoveMemberMutationResult, type ResendInvite201, type ResendInvite400, type ResendInvite403, type ResendInvite404, type ResendInvite422, type ResendInviteMutationError, type ResendInviteMutationResult, type ReverifyOrganizationDomain403, type ReverifyOrganizationDomain404, type ReverifyOrganizationDomainMutationError, type ReverifyOrganizationDomainMutationResult, type RevokeAllSessions200, type RevokeAllSessions400, type RevokeAllSessions403, type RevokeAllSessionsMutationError, type RevokeAllSessionsMutationResult, type RevokeAllSessionsRequest, type RevokeInvite200, type RevokeInvite400, type RevokeInvite403, type RevokeInvite404, type RevokeInviteMutationError, type RevokeInviteMutationResult, type RevokeSession200, type RevokeSession400, type RevokeSession403, type RevokeSessionMutationError, type RevokeSessionMutationResult, type Roles403, type Roles404, type RolesAndConfig403, type RolesAndConfig404, type RolesAndConfigQueryError, type RolesAndConfigQueryResult, type RolesAndConfigResponse, type RolesQueryError, type RolesQueryResult, SamlSessionState, type SendVerification400, type SendVerification403, type SendVerificationMutationError, type SendVerificationMutationResult, type SendVerificationResponse, SendVerificationResponseType, type Sessions403, type SessionsQueryError, type SessionsQueryResult, type Settings403, type SettingsQueryError, type SettingsQueryResult, type SettingsResponse, SettingsResponseObject, type SsoConnection, type SsoConnectionAnyOf, type SsoConnectionAnyOfEight, type SsoConnectionAnyOfEightAllOf, type SsoConnectionAnyOfEightAllOfLastSession, SsoConnectionAnyOfEightAllOfProviderTag, type SsoConnectionAnyOfEightAllOfSix, SsoConnectionAnyOfEightAllOfState, SsoConnectionAnyOfEightAllOfType, type SsoConnectionAnyOfLastSession, type SsoConnectionAnyOfLatestExpiredCertificate, type SsoConnectionAnyOfLatestExpiringCertificate, SsoConnectionAnyOfProviderTag, SsoConnectionAnyOfState, SsoConnectionAnyOfType, type SsoConnectionSessionJSON, SsoConnectionSessionJSONState, type UpdateMe400, type UpdateMe403, type UpdateMeBody, type UpdateMeMutationError, type UpdateMeMutationResult, type UpdateMember200, type UpdateMember400, type UpdateMember403, type UpdateMember404, type UpdateMember422, type UpdateMemberBody, type UpdateMemberMutationError, type UpdateMemberMutationResult, type UpdatePassword201, type UpdatePassword400, type UpdatePassword403, type UpdatePasswordMutationError, type UpdatePasswordMutationResult, type UpdatePasswordRequest, type Verify400, type Verify403, type VerifyMutationError, type VerifyMutationResult, type VerifyPasskey200, type VerifyPasskey400, type VerifyPasskey403, type VerifyPasskeyMutationError, type VerifyPasskeyMutationResult, type VerifyPasskeyRequest, type VerifyPasskeyRequestResponse, type VerifyRequest, type VerifyResponse, type VerifyTotpFactor200, type VerifyTotpFactor400, type VerifyTotpFactor403, type VerifyTotpFactorMutationError, type VerifyTotpFactorMutationResult, type VerifyTotpFactorRequest, type X509CertificateJSON, authenticationInformation, type authenticationInformationResponse, type authenticationInformationResponse200, type authenticationInformationResponse403, type authenticationInformationResponseError, type authenticationInformationResponseSuccess, createOrganizationApiKey, type createOrganizationApiKeyResponse, type createOrganizationApiKeyResponse201, type createOrganizationApiKeyResponse400, type createOrganizationApiKeyResponse403, type createOrganizationApiKeyResponse404, type createOrganizationApiKeyResponse422, type createOrganizationApiKeyResponseError, type createOrganizationApiKeyResponseSuccess, createPassword, type createPasswordResponse, type createPasswordResponse201, type createPasswordResponse400, type createPasswordResponse403, type createPasswordResponseError, type createPasswordResponseSuccess, createTotpFactor, type createTotpFactorResponse, type createTotpFactorResponse201, type createTotpFactorResponse400, type createTotpFactorResponse403, type createTotpFactorResponseError, type createTotpFactorResponseSuccess, deleteDataInstallation, type deleteDataInstallationResponse, type deleteDataInstallationResponse200, type deleteDataInstallationResponse403, type deleteDataInstallationResponse404, type deleteDataInstallationResponseError, type deleteDataInstallationResponseSuccess, deleteOrganizationApiKey, type deleteOrganizationApiKeyResponse, type deleteOrganizationApiKeyResponse200, type deleteOrganizationApiKeyResponse403, type deleteOrganizationApiKeyResponse404, type deleteOrganizationApiKeyResponseError, type deleteOrganizationApiKeyResponseSuccess, deleteOrganizationDomain, type deleteOrganizationDomainResponse, type deleteOrganizationDomainResponse200, type deleteOrganizationDomainResponse403, type deleteOrganizationDomainResponse404, type deleteOrganizationDomainResponseError, type deleteOrganizationDomainResponseSuccess, deletePasskey, type deletePasskeyResponse, type deletePasskeyResponse200, type deletePasskeyResponse400, type deletePasskeyResponse403, type deletePasskeyResponseError, type deletePasskeyResponseSuccess, deleteTotpFactors, type deleteTotpFactorsResponse, type deleteTotpFactorsResponse200, type deleteTotpFactorsResponse400, type deleteTotpFactorsResponse403, type deleteTotpFactorsResponseError, type deleteTotpFactorsResponseSuccess, generateAdminPortalLink, type generateAdminPortalLinkResponse, type generateAdminPortalLinkResponse201, type generateAdminPortalLinkResponse403, type generateAdminPortalLinkResponse404, type generateAdminPortalLinkResponse500, type generateAdminPortalLinkResponseError, type generateAdminPortalLinkResponseSuccess, getAuthenticationInformationKey, getAuthenticationInformationUrl, getCreateOrganizationApiKeyMutationFetcher, getCreateOrganizationApiKeyMutationKey, getCreateOrganizationApiKeyUrl, getCreatePasswordMutationFetcher, getCreatePasswordMutationKey, getCreatePasswordUrl, getCreateTotpFactorMutationFetcher, getCreateTotpFactorMutationKey, getCreateTotpFactorUrl, getDataInstallationAuthorizationStatus, type getDataInstallationAuthorizationStatusResponse, type getDataInstallationAuthorizationStatusResponse200, type getDataInstallationAuthorizationStatusResponse400, type getDataInstallationAuthorizationStatusResponse403, type getDataInstallationAuthorizationStatusResponse404, type getDataInstallationAuthorizationStatusResponseError, type getDataInstallationAuthorizationStatusResponseSuccess, getDataIntegrationAuthorizeUrl, type getDataIntegrationAuthorizeUrlResponse, type getDataIntegrationAuthorizeUrlResponse200, type getDataIntegrationAuthorizeUrlResponse400, type getDataIntegrationAuthorizeUrlResponse403, type getDataIntegrationAuthorizeUrlResponse404, type getDataIntegrationAuthorizeUrlResponseError, type getDataIntegrationAuthorizeUrlResponseSuccess, getDeleteDataInstallationMutationFetcher, getDeleteDataInstallationMutationKey, getDeleteDataInstallationUrl, getDeleteOrganizationApiKeyMutationFetcher, getDeleteOrganizationApiKeyMutationKey, getDeleteOrganizationApiKeyUrl, getDeleteOrganizationDomainMutationFetcher, getDeleteOrganizationDomainMutationKey, getDeleteOrganizationDomainUrl, getDeletePasskeyMutationFetcher, getDeletePasskeyMutationKey, getDeletePasskeyUrl, getDeleteTotpFactorsMutationFetcher, getDeleteTotpFactorsMutationKey, getDeleteTotpFactorsUrl, getGenerateAdminPortalLinkMutationFetcher, getGenerateAdminPortalLinkMutationKey, getGenerateAdminPortalLinkUrl, getGetDataInstallationAuthorizationStatusKey, getGetDataInstallationAuthorizationStatusUrl, getGetDataIntegrationAuthorizeUrlKey, getGetDataIntegrationAuthorizeUrlUrl, getInviteMemberMutationFetcher, getInviteMemberMutationKey, getInviteMemberUrl, getListOrganizationApiKeyPermissionsKey, getListOrganizationApiKeyPermissionsUrl, getListOrganizationApiKeysKey, getListOrganizationApiKeysUrl, getListOrganizationDomainsKey, getListOrganizationDomainsUrl, getListSsoConnectionsKey, getListSsoConnectionsUrl, getMeKey, getMeUrl, getMembersKey, getMembersUrl, getMyDataIntegrationsKey, getMyDataIntegrationsUrl, getOrganizationsKey, getOrganizationsUrl, getRegisterPasskeyMutationFetcher, getRegisterPasskeyMutationKey, getRegisterPasskeyUrl, getRemoveMemberMutationFetcher, getRemoveMemberMutationKey, getRemoveMemberUrl, getResendInviteMutationFetcher, getResendInviteMutationKey, getResendInviteUrl, getReverifyOrganizationDomainMutationFetcher, getReverifyOrganizationDomainMutationKey, getReverifyOrganizationDomainUrl, getRevokeAllSessionsMutationFetcher, getRevokeAllSessionsMutationKey, getRevokeAllSessionsUrl, getRevokeInviteMutationFetcher, getRevokeInviteMutationKey, getRevokeInviteUrl, getRevokeSessionMutationFetcher, getRevokeSessionMutationKey, getRevokeSessionUrl, getRolesAndConfigKey, getRolesAndConfigUrl, getRolesKey, getRolesUrl, getSendVerificationMutationFetcher, getSendVerificationMutationKey, getSendVerificationUrl, getSessionsKey, getSessionsUrl, getSettingsKey, getSettingsUrl, getUpdateMeMutationFetcher, getUpdateMeMutationKey, getUpdateMeUrl, getUpdateMemberMutationFetcher, getUpdateMemberMutationKey, getUpdateMemberUrl, getUpdatePasswordMutationFetcher, getUpdatePasswordMutationKey, getUpdatePasswordUrl, getVerifyMutationFetcher, getVerifyMutationKey, getVerifyPasskeyMutationFetcher, getVerifyPasskeyMutationKey, getVerifyPasskeyUrl, getVerifyTotpFactorMutationFetcher, getVerifyTotpFactorMutationKey, getVerifyTotpFactorUrl, getVerifyUrl, inviteMember, type inviteMemberResponse, type inviteMemberResponse201, type inviteMemberResponse400, type inviteMemberResponse403, type inviteMemberResponse404, type inviteMemberResponseError, type inviteMemberResponseSuccess, listOrganizationApiKeyPermissions, type listOrganizationApiKeyPermissionsResponse, type listOrganizationApiKeyPermissionsResponse200, type listOrganizationApiKeyPermissionsResponse400, type listOrganizationApiKeyPermissionsResponse403, type listOrganizationApiKeyPermissionsResponseError, type listOrganizationApiKeyPermissionsResponseSuccess, listOrganizationApiKeys, type listOrganizationApiKeysResponse, type listOrganizationApiKeysResponse200, type listOrganizationApiKeysResponse400, type listOrganizationApiKeysResponse403, type listOrganizationApiKeysResponseError, type listOrganizationApiKeysResponseSuccess, listOrganizationDomains, type listOrganizationDomainsResponse, type listOrganizationDomainsResponse200, type listOrganizationDomainsResponse403, type listOrganizationDomainsResponse404, type listOrganizationDomainsResponseError, type listOrganizationDomainsResponseSuccess, listSsoConnections, type listSsoConnectionsResponse, type listSsoConnectionsResponse200, type listSsoConnectionsResponseSuccess, me, type meResponse, type meResponse200, type meResponse403, type meResponseError, type meResponseSuccess, members, type membersResponse, type membersResponse200, type membersResponse403, type membersResponse404, type membersResponseError, type membersResponseSuccess, myDataIntegrations, type myDataIntegrationsResponse, type myDataIntegrationsResponse200, type myDataIntegrationsResponse403, type myDataIntegrationsResponseError, type myDataIntegrationsResponseSuccess, organizations, type organizationsResponse, type organizationsResponse200, type organizationsResponse403, type organizationsResponse404, type organizationsResponseError, type organizationsResponseSuccess, registerPasskey, type registerPasskeyResponse, type registerPasskeyResponse201, type registerPasskeyResponse400, type registerPasskeyResponse403, type registerPasskeyResponseError, type registerPasskeyResponseSuccess, removeMember, type removeMemberResponse, type removeMemberResponse200, type removeMemberResponse400, type removeMemberResponse403, type removeMemberResponse404, type removeMemberResponseError, type removeMemberResponseSuccess, resendInvite, type resendInviteResponse, type resendInviteResponse201, type resendInviteResponse400, type resendInviteResponse403, type resendInviteResponse404, type resendInviteResponse422, type resendInviteResponseError, type resendInviteResponseSuccess, reverifyOrganizationDomain, type reverifyOrganizationDomainResponse, type reverifyOrganizationDomainResponse200, type reverifyOrganizationDomainResponse403, type reverifyOrganizationDomainResponse404, type reverifyOrganizationDomainResponseError, type reverifyOrganizationDomainResponseSuccess, revokeAllSessions, type revokeAllSessionsResponse, type revokeAllSessionsResponse200, type revokeAllSessionsResponse400, type revokeAllSessionsResponse403, type revokeAllSessionsResponseError, type revokeAllSessionsResponseSuccess, revokeInvite, type revokeInviteResponse, type revokeInviteResponse200, type revokeInviteResponse400, type revokeInviteResponse403, type revokeInviteResponse404, type revokeInviteResponseError, type revokeInviteResponseSuccess, revokeSession, type revokeSessionResponse, type revokeSessionResponse200, type revokeSessionResponse400, type revokeSessionResponse403, type revokeSessionResponseError, type revokeSessionResponseSuccess, roles, rolesAndConfig, type rolesAndConfigResponse, type rolesAndConfigResponse200, type rolesAndConfigResponse403, type rolesAndConfigResponse404, type rolesAndConfigResponseError, type rolesAndConfigResponseSuccess, type rolesResponse, type rolesResponse200, type rolesResponse403, type rolesResponse404, type rolesResponseError, type rolesResponseSuccess, sendVerification, type sendVerificationResponse, type sendVerificationResponse200, type sendVerificationResponse400, type sendVerificationResponse403, type sendVerificationResponseError, type sendVerificationResponseSuccess, sessions, type sessionsResponse, type sessionsResponse200, type sessionsResponse403, type sessionsResponseError, type sessionsResponseSuccess, settings, type settingsResponse, type settingsResponse200, type settingsResponse403, type settingsResponseError, type settingsResponseSuccess, updateMe, type updateMeResponse, type updateMeResponse200, type updateMeResponse400, type updateMeResponse403, type updateMeResponseError, type updateMeResponseSuccess, updateMember, type updateMemberResponse, type updateMemberResponse200, type updateMemberResponse400, type updateMemberResponse403, type updateMemberResponse404, type updateMemberResponse422, type updateMemberResponseError, type updateMemberResponseSuccess, updatePassword, type updatePasswordResponse, type updatePasswordResponse201, type updatePasswordResponse400, type updatePasswordResponse403, type updatePasswordResponseError, type updatePasswordResponseSuccess, useAuthenticationInformation, useCreateOrganizationApiKey, useCreatePassword, useCreateTotpFactor, useDeleteDataInstallation, useDeleteOrganizationApiKey, useDeleteOrganizationDomain, useDeletePasskey, useDeleteTotpFactors, useGenerateAdminPortalLink, useGetDataInstallationAuthorizationStatus, useGetDataIntegrationAuthorizeUrl, useInviteMember, useListOrganizationApiKeyPermissions, useListOrganizationApiKeys, useListOrganizationDomains, useListSsoConnections, useMe, useMembers, useMyDataIntegrations, useOrganizations, useRegisterPasskey, useRemoveMember, useResendInvite, useReverifyOrganizationDomain, useRevokeAllSessions, useRevokeInvite, useRevokeSession, useRoles, useRolesAndConfig, useSendVerification, useSessions, useSettings, useUpdateMe, useUpdateMember, useUpdatePassword, useVerify, useVerifyPasskey, useVerifyTotpFactor, verify, verifyPasskey, type verifyPasskeyResponse, type verifyPasskeyResponse200, type verifyPasskeyResponse400, type verifyPasskeyResponse403, type verifyPasskeyResponseError, type verifyPasskeyResponseSuccess, type verifyResponse, type verifyResponse200, type verifyResponse400, type verifyResponse403, type verifyResponseError, type verifyResponseSuccess, verifyTotpFactor, type verifyTotpFactorResponse, type verifyTotpFactorResponse200, type verifyTotpFactorResponse400, type verifyTotpFactorResponse403, type verifyTotpFactorResponseError, type verifyTotpFactorResponseSuccess };