@workos-inc/widgets 1.8.2 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/admin-portal-domain-verification.client.cjs.map +1 -1
- package/dist/cjs/admin-portal-sso-connection.client.cjs +4 -7
- package/dist/cjs/admin-portal-sso-connection.client.cjs.map +1 -1
- package/dist/cjs/api/api-provider.cjs.map +1 -1
- package/dist/cjs/api/api-provider.d.cts +1 -1
- package/dist/cjs/api/endpoint.cjs +741 -771
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +860 -813
- package/dist/cjs/directory-sync.client.cjs +156 -0
- package/dist/cjs/directory-sync.client.cjs.map +1 -0
- package/dist/cjs/directory-sync.client.d.cts +26 -0
- package/dist/cjs/experimental/api/fetch.cjs +327 -411
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +832 -798
- package/dist/cjs/experimental/api/react-query.cjs +747 -777
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +1378 -1263
- package/dist/cjs/experimental/api/swr.cjs +720 -742
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +1218 -1175
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -0
- package/dist/cjs/lib/add-mfa-dialog.cjs +18 -16
- package/dist/cjs/lib/add-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.cjs +0 -8
- package/dist/cjs/lib/admin-portal-sso-connection.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.d.cts +1 -2
- package/dist/cjs/lib/api-keys/api-keys-context.cjs +1 -1
- package/dist/cjs/lib/api-keys/api-keys-context.cjs.map +1 -1
- package/dist/cjs/lib/api-keys/api-keys-table.cjs +7 -5
- package/dist/cjs/lib/api-keys/api-keys-table.cjs.map +1 -1
- package/dist/cjs/lib/directory-sync.cjs +288 -0
- package/dist/cjs/lib/directory-sync.cjs.map +1 -0
- package/dist/cjs/lib/directory-sync.d.cts +72 -0
- package/dist/cjs/lib/identity-providers.cjs +57 -1
- package/dist/cjs/lib/identity-providers.cjs.map +1 -1
- package/dist/cjs/lib/identity-providers.d.cts +5 -3
- package/dist/cjs/lib/pipes.cjs +9 -9
- package/dist/cjs/lib/pipes.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.d.cts +2 -2
- package/dist/cjs/lib/reset-mfa-dialog.cjs +2 -1
- package/dist/cjs/lib/reset-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.d.cts +1 -1
- package/dist/cjs/lib/users-management-context.cjs +1 -1
- package/dist/cjs/lib/users-management-context.cjs.map +1 -1
- package/dist/cjs/lib/users-management.cjs +3 -3
- package/dist/cjs/lib/users-management.cjs.map +1 -1
- package/dist/cjs/lib/utils.cjs +9 -0
- package/dist/cjs/lib/utils.cjs.map +1 -1
- package/dist/cjs/lib/utils.d.cts +16 -2
- package/dist/cjs/workos-widgets.client.cjs +13 -1
- package/dist/cjs/workos-widgets.client.cjs.map +1 -1
- package/dist/esm/admin-portal-domain-verification.client.js +2 -2
- package/dist/esm/admin-portal-domain-verification.client.js.map +1 -1
- package/dist/esm/admin-portal-sso-connection.client.js +6 -9
- package/dist/esm/admin-portal-sso-connection.client.js.map +1 -1
- package/dist/esm/api/api-provider.d.ts +1 -1
- package/dist/esm/api/api-provider.js.map +1 -1
- package/dist/esm/api/endpoint.d.ts +860 -813
- package/dist/esm/api/endpoint.js +727 -751
- package/dist/esm/api/endpoint.js.map +1 -1
- package/dist/esm/directory-sync.client.d.ts +26 -0
- package/dist/esm/directory-sync.client.js +134 -0
- package/dist/esm/directory-sync.client.js.map +1 -0
- package/dist/esm/experimental/api/fetch.d.ts +832 -798
- package/dist/esm/experimental/api/fetch.js +319 -391
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +1378 -1263
- package/dist/esm/experimental/api/react-query.js +730 -757
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +1218 -1175
- package/dist/esm/experimental/api/swr.js +706 -722
- package/dist/esm/experimental/api/swr.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/add-mfa-dialog.js +18 -16
- package/dist/esm/lib/add-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/admin-portal-sso-connection.d.ts +1 -2
- package/dist/esm/lib/admin-portal-sso-connection.js +0 -8
- package/dist/esm/lib/admin-portal-sso-connection.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-table.js +7 -5
- package/dist/esm/lib/api-keys/api-keys-table.js.map +1 -1
- package/dist/esm/lib/directory-sync.d.ts +72 -0
- package/dist/esm/lib/directory-sync.js +259 -0
- package/dist/esm/lib/directory-sync.js.map +1 -0
- package/dist/esm/lib/identity-providers.d.ts +5 -3
- package/dist/esm/lib/identity-providers.js +55 -1
- package/dist/esm/lib/identity-providers.js.map +1 -1
- package/dist/esm/lib/pipes.js +9 -10
- package/dist/esm/lib/pipes.js.map +1 -1
- package/dist/esm/lib/provider-icon.d.ts +2 -2
- package/dist/esm/lib/provider-icon.js.map +1 -1
- package/dist/esm/lib/reset-mfa-dialog.js +2 -1
- package/dist/esm/lib/reset-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/use-permissions.d.ts +1 -1
- package/dist/esm/lib/use-permissions.js.map +1 -1
- package/dist/esm/lib/users-management-context.js +1 -1
- package/dist/esm/lib/users-management-context.js.map +1 -1
- package/dist/esm/lib/users-management.js +5 -4
- package/dist/esm/lib/users-management.js.map +1 -1
- package/dist/esm/lib/utils.d.ts +16 -2
- package/dist/esm/lib/utils.js +8 -0
- package/dist/esm/lib/utils.js.map +1 -1
- package/dist/esm/workos-widgets.client.js +13 -1
- package/dist/esm/workos-widgets.client.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as swr_mutation from 'swr/mutation';
|
|
2
|
-
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
1
|
import * as swr__internal from 'swr/_internal';
|
|
4
2
|
import * as swr from 'swr';
|
|
5
|
-
import {
|
|
3
|
+
import { Key, SWRConfiguration, Arguments } from 'swr';
|
|
4
|
+
import * as swr_mutation from 'swr/mutation';
|
|
5
|
+
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
6
6
|
|
|
7
|
+
type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus];
|
|
7
8
|
declare const MemberStatus: {
|
|
8
9
|
readonly Active: "Active";
|
|
9
10
|
readonly Invited: "Invited";
|
|
@@ -11,20 +12,20 @@ declare const MemberStatus: {
|
|
|
11
12
|
readonly InviteRevoked: "InviteRevoked";
|
|
12
13
|
readonly NoInvite: "NoInvite";
|
|
13
14
|
};
|
|
14
|
-
type
|
|
15
|
+
type MemberActionsItem = (typeof MemberActionsItem)[keyof typeof MemberActionsItem];
|
|
15
16
|
declare const MemberActionsItem: {
|
|
16
17
|
readonly "edit-role": "edit-role";
|
|
17
18
|
readonly "resend-invite": "resend-invite";
|
|
18
19
|
readonly "revoke-invite": "revoke-invite";
|
|
19
20
|
readonly "revoke-membership": "revoke-membership";
|
|
20
21
|
};
|
|
21
|
-
type MemberActions =
|
|
22
|
-
type
|
|
22
|
+
type MemberActions = MemberActionsItem[];
|
|
23
|
+
type MemberRoles = {
|
|
23
24
|
name: string;
|
|
24
25
|
slug: string;
|
|
25
26
|
/** @nullable */
|
|
26
27
|
description?: string | null;
|
|
27
|
-
};
|
|
28
|
+
}[] | null;
|
|
28
29
|
interface Member {
|
|
29
30
|
id: string;
|
|
30
31
|
email: string;
|
|
@@ -35,21 +36,26 @@ interface Member {
|
|
|
35
36
|
firstName?: string | null;
|
|
36
37
|
/** @nullable */
|
|
37
38
|
lastName?: string | null;
|
|
39
|
+
/** An ISO 8601 timestamp. */
|
|
38
40
|
createdAt: string;
|
|
39
41
|
/** @nullable */
|
|
40
42
|
lastActivityAt?: string | null;
|
|
41
43
|
status: MemberStatus;
|
|
42
44
|
actions: MemberActions;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/** @nullable */
|
|
46
|
-
roles?: MemberRolesItem[] | null;
|
|
45
|
+
isLoggedInUser?: true | null;
|
|
46
|
+
roles?: MemberRoles;
|
|
47
47
|
}
|
|
48
48
|
interface ListMetadata {
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
/**
|
|
50
|
+
* An object ID that defines your place in the list. When the ID is not present, you are at the start of the list.
|
|
51
|
+
* @nullable
|
|
52
|
+
*/
|
|
53
|
+
before: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.
|
|
56
|
+
* @nullable
|
|
57
|
+
*/
|
|
58
|
+
after: string | null;
|
|
53
59
|
}
|
|
54
60
|
interface MemberRole {
|
|
55
61
|
name: string;
|
|
@@ -85,9 +91,6 @@ interface OAuthProfile {
|
|
|
85
91
|
/** @nullable */
|
|
86
92
|
lastLoginAt?: string | null;
|
|
87
93
|
}
|
|
88
|
-
/**
|
|
89
|
-
* @nullable
|
|
90
|
-
*/
|
|
91
94
|
type MeOauthProfiles = {
|
|
92
95
|
AppleOAuth?: OAuthProfile;
|
|
93
96
|
GithubOAuth?: OAuthProfile;
|
|
@@ -105,77 +108,43 @@ interface Me {
|
|
|
105
108
|
locale?: string | null;
|
|
106
109
|
/** @nullable */
|
|
107
110
|
profilePictureUrl?: string | null;
|
|
108
|
-
/** @nullable */
|
|
109
111
|
oauthProfiles?: MeOauthProfiles;
|
|
110
112
|
}
|
|
111
|
-
type
|
|
112
|
-
|
|
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;
|
|
113
|
+
type CreateTotpFactorResponseAuthenticationFactor = {
|
|
114
|
+
object: "authentication_factor";
|
|
148
115
|
id: string;
|
|
149
|
-
type:
|
|
116
|
+
type: "generic_otp" | "sms" | "totp" | "webauthn";
|
|
150
117
|
/** @nullable */
|
|
151
118
|
user_id?: string | null;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
119
|
+
sms?: {
|
|
120
|
+
phone_number: string;
|
|
121
|
+
} | null;
|
|
122
|
+
totp?: {
|
|
123
|
+
issuer: string;
|
|
124
|
+
user: string;
|
|
125
|
+
secret: string;
|
|
126
|
+
qr_code: string;
|
|
127
|
+
uri: string;
|
|
128
|
+
} | {
|
|
129
|
+
issuer: string;
|
|
130
|
+
user: string;
|
|
131
|
+
} | null;
|
|
132
|
+
} & {
|
|
157
133
|
created_at: string;
|
|
158
134
|
updated_at: string;
|
|
159
135
|
};
|
|
160
|
-
type
|
|
161
|
-
|
|
162
|
-
declare const CreateTotpFactorResponseAuthenticationChallengeAllOfObject: {
|
|
163
|
-
readonly authentication_challenge: "authentication_challenge";
|
|
164
|
-
};
|
|
165
|
-
type CreateTotpFactorResponseAuthenticationChallengeAllOf = {
|
|
166
|
-
object: CreateTotpFactorResponseAuthenticationChallengeAllOfObject;
|
|
136
|
+
type CreateTotpFactorResponseAuthenticationChallenge = {
|
|
137
|
+
object: "authentication_challenge";
|
|
167
138
|
id: string;
|
|
168
139
|
/** @nullable */
|
|
169
140
|
expires_at?: string | null;
|
|
170
141
|
/** @nullable */
|
|
171
142
|
code?: string | null;
|
|
172
143
|
authentication_factor_id: string;
|
|
173
|
-
}
|
|
174
|
-
type CreateTotpFactorResponseAuthenticationChallengeAllOfThree = {
|
|
144
|
+
} & {
|
|
175
145
|
created_at: string;
|
|
176
146
|
updated_at: string;
|
|
177
147
|
};
|
|
178
|
-
type CreateTotpFactorResponseAuthenticationChallenge = CreateTotpFactorResponseAuthenticationChallengeAllOf & CreateTotpFactorResponseAuthenticationChallengeAllOfThree;
|
|
179
148
|
interface CreateTotpFactorResponse {
|
|
180
149
|
authenticationFactor: CreateTotpFactorResponseAuthenticationFactor;
|
|
181
150
|
authenticationChallenge: CreateTotpFactorResponseAuthenticationChallenge;
|
|
@@ -184,57 +153,32 @@ interface VerifyTotpFactorRequest {
|
|
|
184
153
|
code: string;
|
|
185
154
|
authenticationChallengeId: string;
|
|
186
155
|
}
|
|
187
|
-
type AuthenticationInformationResponseDataVerificationMethodsMfaProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider];
|
|
188
|
-
declare const AuthenticationInformationResponseDataVerificationMethodsMfaProvider: {
|
|
189
|
-
readonly MFA: "MFA";
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* @nullable
|
|
193
|
-
*/
|
|
194
156
|
type AuthenticationInformationResponseDataVerificationMethodsMfa = {
|
|
195
|
-
provider:
|
|
157
|
+
provider: "MFA";
|
|
196
158
|
isSetUp: boolean;
|
|
197
159
|
/** @nullable */
|
|
198
160
|
lastUsed?: string | null;
|
|
199
161
|
} | null;
|
|
200
|
-
type AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider];
|
|
201
|
-
declare const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider: {
|
|
202
|
-
readonly Password: "Password";
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* @nullable
|
|
206
|
-
*/
|
|
207
162
|
type AuthenticationInformationResponseDataVerificationMethodsPassword = {
|
|
208
|
-
provider:
|
|
163
|
+
provider: "Password";
|
|
209
164
|
isSetUp: boolean;
|
|
210
165
|
/** @nullable */
|
|
211
166
|
lastUsed?: string | null;
|
|
212
167
|
isCurrentSession: boolean;
|
|
213
168
|
} | 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
169
|
type AuthenticationInformationResponseDataVerificationMethodsPasskey = {
|
|
225
|
-
provider:
|
|
170
|
+
provider: "Passkey";
|
|
226
171
|
isSetUp: boolean;
|
|
227
172
|
/** @nullable */
|
|
228
173
|
lastUsed?: string | null;
|
|
229
|
-
passKeys:
|
|
174
|
+
passKeys: {
|
|
175
|
+
id: string;
|
|
176
|
+
}[];
|
|
230
177
|
isCurrentSession: boolean;
|
|
231
178
|
} | null;
|
|
232
179
|
type AuthenticationInformationResponseDataVerificationMethods = {
|
|
233
|
-
/** @nullable */
|
|
234
180
|
Mfa?: AuthenticationInformationResponseDataVerificationMethodsMfa;
|
|
235
|
-
/** @nullable */
|
|
236
181
|
Password?: AuthenticationInformationResponseDataVerificationMethodsPassword;
|
|
237
|
-
/** @nullable */
|
|
238
182
|
Passkey?: AuthenticationInformationResponseDataVerificationMethodsPasskey;
|
|
239
183
|
};
|
|
240
184
|
type AuthenticationInformationResponseDataPasswordSettings = {
|
|
@@ -267,9 +211,6 @@ type ActiveSessionState = {
|
|
|
267
211
|
/** @nullable */
|
|
268
212
|
expiresAt?: string | null;
|
|
269
213
|
};
|
|
270
|
-
/**
|
|
271
|
-
* @nullable
|
|
272
|
-
*/
|
|
273
214
|
type ActiveSessionCurrentLocation = {
|
|
274
215
|
cityName: string;
|
|
275
216
|
countryISOCode: string;
|
|
@@ -284,7 +225,6 @@ interface ActiveSession {
|
|
|
284
225
|
/** @nullable */
|
|
285
226
|
organizationId?: string | null;
|
|
286
227
|
state: ActiveSessionState;
|
|
287
|
-
/** @nullable */
|
|
288
228
|
currentLocation?: ActiveSessionCurrentLocation;
|
|
289
229
|
usedSsoAuth: boolean;
|
|
290
230
|
usedPasswordAuth: boolean;
|
|
@@ -314,13 +254,9 @@ interface ActiveSession {
|
|
|
314
254
|
interface ActiveSessionsResponse {
|
|
315
255
|
data: ActiveSession[];
|
|
316
256
|
}
|
|
317
|
-
type SendVerificationResponseType = (typeof SendVerificationResponseType)[keyof typeof SendVerificationResponseType];
|
|
318
|
-
declare const SendVerificationResponseType: {
|
|
319
|
-
readonly EmailVerification: "EmailVerification";
|
|
320
|
-
};
|
|
321
257
|
interface SendVerificationResponse {
|
|
322
258
|
authenticationChallenge: string;
|
|
323
|
-
type:
|
|
259
|
+
type: "EmailVerification";
|
|
324
260
|
}
|
|
325
261
|
interface VerifyRequest {
|
|
326
262
|
code: string;
|
|
@@ -344,12 +280,8 @@ interface VerifyPasskeyRequest {
|
|
|
344
280
|
challengeId: string;
|
|
345
281
|
response: VerifyPasskeyRequestResponse;
|
|
346
282
|
}
|
|
347
|
-
type SettingsResponseObject = (typeof SettingsResponseObject)[keyof typeof SettingsResponseObject];
|
|
348
|
-
declare const SettingsResponseObject: {
|
|
349
|
-
readonly settings: "settings";
|
|
350
|
-
};
|
|
351
283
|
interface SettingsResponse {
|
|
352
|
-
object:
|
|
284
|
+
object: "settings";
|
|
353
285
|
authkitOrigin: string;
|
|
354
286
|
/** @nullable */
|
|
355
287
|
logoDarkIconPath?: string | null;
|
|
@@ -429,101 +361,45 @@ interface SsoConnectionSessionJSON {
|
|
|
429
361
|
createdAt: string;
|
|
430
362
|
state: (typeof SsoConnectionSessionJSONState)[keyof typeof SsoConnectionSessionJSONState];
|
|
431
363
|
}
|
|
432
|
-
type
|
|
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 = {
|
|
364
|
+
type SsoConnection = {
|
|
477
365
|
id: string;
|
|
478
|
-
type:
|
|
366
|
+
type: "AdfsSaml" | "Auth0Saml" | "AzureSaml" | "CasSaml" | "ClassLinkSaml" | "CloudflareSaml" | "CyberArkSaml" | "DuoSaml" | "GenericSaml" | "GoogleSaml" | "JumpCloudSaml" | "KeycloakSaml" | "LastPassSaml" | "MiniOrangeSaml" | "NetIqSaml" | "OktaSaml" | "OneLoginSaml" | "OracleSaml" | "PingFederateSaml" | "PingOneSaml" | "RipplingSaml" | "SalesforceSaml" | "ShibbolethGenericSaml" | "ShibbolethSaml" | "SimpleSamlPhpSaml" | "TestIdp" | "VmWareSaml";
|
|
479
367
|
name: string;
|
|
480
|
-
state:
|
|
368
|
+
state: "Inactive" | "Validating" | "Active" | "Deleting";
|
|
481
369
|
x509Certificates: X509CertificateJSON[];
|
|
482
|
-
latestExpiringCertificate?:
|
|
483
|
-
latestExpiredCertificate?:
|
|
370
|
+
latestExpiringCertificate?: X509CertificateJSON | null;
|
|
371
|
+
latestExpiredCertificate?: X509CertificateJSON | null;
|
|
484
372
|
createdAt: string;
|
|
485
|
-
providerTag:
|
|
486
|
-
lastSession?:
|
|
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 = {
|
|
373
|
+
providerTag: "Saml";
|
|
374
|
+
lastSession?: SsoConnectionSessionJSON | null;
|
|
375
|
+
} | ({
|
|
512
376
|
id: string;
|
|
513
377
|
name: string;
|
|
514
|
-
state:
|
|
515
|
-
type:
|
|
378
|
+
state: "Inactive" | "Validating" | "Active" | "Deleting";
|
|
379
|
+
type: "AdpOidc" | "Auth0Migration" | "CleverOidc" | "EntraIdOidc" | "GenericOidc" | "GoogleOidc" | "OktaOidc" | "LoginGovOidc";
|
|
516
380
|
createdAt: string;
|
|
517
|
-
providerTag:
|
|
518
|
-
lastSession?:
|
|
519
|
-
}
|
|
520
|
-
|
|
381
|
+
providerTag: "OpenIdConnect";
|
|
382
|
+
lastSession?: SsoConnectionSessionJSON | null;
|
|
383
|
+
} & {
|
|
384
|
+
/** @nullable */
|
|
521
385
|
x509Certificates?: null;
|
|
386
|
+
/** @nullable */
|
|
522
387
|
latestExpiringCertificate?: null;
|
|
388
|
+
/** @nullable */
|
|
523
389
|
latestExpiredCertificate?: null;
|
|
524
|
-
};
|
|
525
|
-
type
|
|
526
|
-
type
|
|
390
|
+
});
|
|
391
|
+
type AuditLogStreamState = "Active" | "Inactive" | "Error" | "Invalid";
|
|
392
|
+
type AuditLogStreamType = "Datadog" | "Splunk" | "S3" | "GoogleCloudStorage" | "GenericHttps" | "AzureSentinel";
|
|
393
|
+
interface AuditLogStreamJSON {
|
|
394
|
+
id: string;
|
|
395
|
+
state: AuditLogStreamState;
|
|
396
|
+
type: AuditLogStreamType;
|
|
397
|
+
/** @nullable */
|
|
398
|
+
errorMessage?: string | null;
|
|
399
|
+
/** @nullable */
|
|
400
|
+
lastSyncedEventId?: string | null;
|
|
401
|
+
auditLogTrailId: string;
|
|
402
|
+
}
|
|
527
403
|
interface ListOrganizationApiKeysResponseData {
|
|
528
404
|
id: string;
|
|
529
405
|
name: string;
|
|
@@ -539,7 +415,7 @@ type ListOrganizationApiKeysResponseListMetadata = {
|
|
|
539
415
|
};
|
|
540
416
|
interface ListOrganizationApiKeysResponse {
|
|
541
417
|
data: ListOrganizationApiKeysResponseData[];
|
|
542
|
-
|
|
418
|
+
list_metadata: ListOrganizationApiKeysResponseListMetadata;
|
|
543
419
|
}
|
|
544
420
|
interface CreateOrganizationApiKeyRequest {
|
|
545
421
|
name: string;
|
|
@@ -566,137 +442,193 @@ type ListOrganizationApiKeyPermissionsResponseListMetadata = {
|
|
|
566
442
|
};
|
|
567
443
|
interface ListOrganizationApiKeyPermissionsResponse {
|
|
568
444
|
data: ListOrganizationApiKeyPermission[];
|
|
569
|
-
|
|
445
|
+
list_metadata: ListOrganizationApiKeyPermissionsResponseListMetadata;
|
|
570
446
|
}
|
|
571
|
-
|
|
572
|
-
|
|
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];
|
|
447
|
+
type DataInstallation = {
|
|
448
|
+
object: "data_installation" | "connected_account";
|
|
581
449
|
id: string;
|
|
450
|
+
/** @nullable */
|
|
451
|
+
user_id?: string | null;
|
|
452
|
+
/** @nullable */
|
|
453
|
+
organization_id?: string | null;
|
|
454
|
+
scopes: string[];
|
|
455
|
+
state: "connected" | "needs_reauthorization";
|
|
456
|
+
created_at: string;
|
|
457
|
+
updated_at: string;
|
|
458
|
+
} & {
|
|
582
459
|
/** @nullable */
|
|
583
460
|
userlandUserId?: string | null;
|
|
584
461
|
/** @nullable */
|
|
585
462
|
organizationId?: string | null;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
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;
|
|
463
|
+
createdAt?: string;
|
|
464
|
+
updatedAt?: string;
|
|
465
|
+
};
|
|
643
466
|
interface DataIntegration {
|
|
644
|
-
object:
|
|
467
|
+
object: "data_integration";
|
|
645
468
|
id: string;
|
|
646
469
|
name: string;
|
|
647
470
|
/** @nullable */
|
|
648
471
|
description?: string | null;
|
|
649
472
|
slug: string;
|
|
650
|
-
integrationType:
|
|
651
|
-
ownership:
|
|
652
|
-
credentialsType:
|
|
653
|
-
/** @nullable */
|
|
473
|
+
integrationType: "asana" | "box" | "cal-dot-com" | "calendly" | "confluence" | "dropbox" | "frame-io" | "front" | "github" | "gitlab" | "gmail" | "google" | "google-calendar" | "google-drive" | "helpscout" | "hubspot" | "intercom" | "jira" | "linear" | "microsoft" | "microsoft-onedrive" | "microsoft-onenote" | "microsoft-outlook" | "microsoft-outlook-calendar" | "microsoft-sharepoint" | "microsoft-teams" | "microsoft-todo" | "notion" | "prefect" | "pydantic-logfire" | "salesforce" | "sentry" | "slack" | "snowflake" | "stripe" | "xero" | "zendesk";
|
|
474
|
+
ownership: "userland_user" | "organization";
|
|
475
|
+
credentialsType: "shared" | "custom";
|
|
654
476
|
scopes?: string[] | null;
|
|
655
477
|
createdAt: string;
|
|
656
478
|
updatedAt: string;
|
|
657
|
-
installation?:
|
|
479
|
+
installation?: DataInstallation | null;
|
|
658
480
|
}
|
|
659
481
|
interface DataIntegrationsResponse {
|
|
660
482
|
data: DataIntegration[];
|
|
661
483
|
}
|
|
662
|
-
type
|
|
484
|
+
type GetDataIntegrationAuthorizeUrlResponse = {
|
|
663
485
|
url: string;
|
|
664
486
|
redirectToken: string;
|
|
665
|
-
}
|
|
666
|
-
type GetDataIntegrationAuthorizeUrlResponseAllOfTwo = {
|
|
487
|
+
} & {
|
|
667
488
|
handoffToken?: string;
|
|
668
489
|
};
|
|
669
|
-
type GetDataIntegrationAuthorizeUrlResponse = GetDataIntegrationAuthorizeUrlResponseAllOf & GetDataIntegrationAuthorizeUrlResponseAllOfTwo;
|
|
670
490
|
interface GetAuthorizationStatusResponse {
|
|
671
491
|
isConnecting: boolean;
|
|
672
492
|
}
|
|
673
|
-
type
|
|
493
|
+
type DirectoryType = (typeof DirectoryType)[keyof typeof DirectoryType];
|
|
494
|
+
declare const DirectoryType: {
|
|
495
|
+
readonly azure_scim_v20: "azure scim v2.0";
|
|
496
|
+
readonly bamboohr: "bamboohr";
|
|
497
|
+
readonly breathe_hr: "breathe hr";
|
|
498
|
+
readonly cezanne_hr: "cezanne hr";
|
|
499
|
+
readonly cyberark_scim_v20: "cyberark scim v2.0";
|
|
500
|
+
readonly fourth_hr: "fourth hr";
|
|
501
|
+
readonly generic_scim_v20: "generic scim v2.0";
|
|
502
|
+
readonly gsuite_directory: "gsuite directory";
|
|
503
|
+
readonly gusto: "gusto";
|
|
504
|
+
readonly hibob: "hibob";
|
|
505
|
+
readonly jump_cloud_scim_v20: "jump cloud scim v2.0";
|
|
506
|
+
readonly okta_scim_v20: "okta scim v2.0";
|
|
507
|
+
readonly onelogin_scim_v20: "onelogin scim v2.0";
|
|
508
|
+
readonly people_hr: "people hr";
|
|
509
|
+
readonly personio: "personio";
|
|
510
|
+
readonly pingfederate_scim_v20: "pingfederate scim v2.0";
|
|
511
|
+
readonly rippling: "rippling";
|
|
512
|
+
readonly rippling_scim_v20: "rippling scim v2.0";
|
|
513
|
+
readonly s3: "s3";
|
|
514
|
+
readonly sailpoint_scim_v20: "sailpoint scim v2.0";
|
|
515
|
+
readonly sftp: "sftp";
|
|
516
|
+
readonly sftp_workday: "sftp workday";
|
|
517
|
+
readonly workday: "workday";
|
|
518
|
+
};
|
|
519
|
+
type DirectoryState = (typeof DirectoryState)[keyof typeof DirectoryState];
|
|
520
|
+
declare const DirectoryState: {
|
|
521
|
+
readonly requires_type: "requires_type";
|
|
522
|
+
readonly linked: "linked";
|
|
523
|
+
readonly validating: "validating";
|
|
524
|
+
readonly invalid_credentials: "invalid_credentials";
|
|
525
|
+
readonly unlinked: "unlinked";
|
|
526
|
+
readonly deleting: "deleting";
|
|
527
|
+
};
|
|
528
|
+
interface DirectoryUsersMetadata {
|
|
529
|
+
active: number;
|
|
530
|
+
inactive: number;
|
|
531
|
+
}
|
|
532
|
+
interface DirectoryMetadata {
|
|
533
|
+
users: DirectoryUsersMetadata;
|
|
534
|
+
groups: number;
|
|
535
|
+
}
|
|
536
|
+
interface Directory {
|
|
537
|
+
id: string;
|
|
538
|
+
name: string;
|
|
539
|
+
type: DirectoryType;
|
|
540
|
+
state: DirectoryState;
|
|
541
|
+
createdAt: string;
|
|
542
|
+
updatedAt: string;
|
|
543
|
+
/** @nullable */
|
|
544
|
+
lastSyncRunAt?: string | null;
|
|
545
|
+
metadata: DirectoryMetadata;
|
|
546
|
+
}
|
|
547
|
+
interface DirectoriesResponse {
|
|
548
|
+
data: Directory[];
|
|
549
|
+
link: string;
|
|
550
|
+
}
|
|
551
|
+
type CreateOrganizationApiKey400 = {
|
|
552
|
+
message: string;
|
|
553
|
+
};
|
|
554
|
+
type CreateOrganizationApiKey403 = {
|
|
555
|
+
message: string;
|
|
556
|
+
};
|
|
557
|
+
type CreateOrganizationApiKey404 = {
|
|
558
|
+
message: string;
|
|
559
|
+
};
|
|
560
|
+
type CreateOrganizationApiKey422ErrorsItem = {
|
|
561
|
+
code: string;
|
|
562
|
+
field: string;
|
|
563
|
+
};
|
|
564
|
+
type CreateOrganizationApiKey422 = {
|
|
565
|
+
message: string;
|
|
566
|
+
errors: CreateOrganizationApiKey422ErrorsItem[];
|
|
567
|
+
};
|
|
568
|
+
type ListOrganizationApiKeysParams = {
|
|
569
|
+
limit?: number;
|
|
570
|
+
before?: string;
|
|
571
|
+
after?: string;
|
|
674
572
|
search?: string;
|
|
675
|
-
|
|
573
|
+
};
|
|
574
|
+
type ListOrganizationApiKeys400 = {
|
|
575
|
+
message: string;
|
|
576
|
+
};
|
|
577
|
+
type ListOrganizationApiKeys403 = {
|
|
578
|
+
message: string;
|
|
579
|
+
};
|
|
580
|
+
type ListOrganizationApiKeyPermissionsParams = {
|
|
581
|
+
search?: string;
|
|
582
|
+
limit?: number;
|
|
676
583
|
before?: string;
|
|
677
584
|
after?: string;
|
|
678
|
-
role?: string;
|
|
679
585
|
};
|
|
680
|
-
type
|
|
681
|
-
|
|
682
|
-
listMetadata: ListMetadata;
|
|
586
|
+
type ListOrganizationApiKeyPermissions400 = {
|
|
587
|
+
message: string;
|
|
683
588
|
};
|
|
684
|
-
type
|
|
589
|
+
type ListOrganizationApiKeyPermissions403 = {
|
|
685
590
|
message: string;
|
|
686
591
|
};
|
|
687
|
-
type
|
|
592
|
+
type DeleteOrganizationApiKey200 = {
|
|
593
|
+
success: boolean;
|
|
594
|
+
};
|
|
595
|
+
type DeleteOrganizationApiKey403 = {
|
|
688
596
|
message: string;
|
|
689
597
|
};
|
|
690
|
-
type
|
|
598
|
+
type DeleteOrganizationApiKey404 = {
|
|
691
599
|
message: string;
|
|
692
600
|
};
|
|
693
|
-
type
|
|
601
|
+
type DeleteDataInstallation200 = {
|
|
602
|
+
success: boolean;
|
|
603
|
+
};
|
|
604
|
+
type DeleteDataInstallation403 = {
|
|
694
605
|
message: string;
|
|
695
606
|
};
|
|
696
|
-
type
|
|
607
|
+
type DeleteDataInstallation404 = {
|
|
697
608
|
message: string;
|
|
698
609
|
};
|
|
699
|
-
type
|
|
610
|
+
type MyDataIntegrations403 = {
|
|
611
|
+
message: string;
|
|
612
|
+
};
|
|
613
|
+
type GetDataInstallationAuthorizationStatus400 = {
|
|
614
|
+
message: string;
|
|
615
|
+
};
|
|
616
|
+
type GetDataInstallationAuthorizationStatus403 = {
|
|
617
|
+
message: string;
|
|
618
|
+
};
|
|
619
|
+
type GetDataInstallationAuthorizationStatus404 = {
|
|
620
|
+
message: string;
|
|
621
|
+
};
|
|
622
|
+
type GetDataIntegrationAuthorizeUrlParams = {
|
|
623
|
+
requireHandoff?: boolean;
|
|
624
|
+
};
|
|
625
|
+
type GetDataIntegrationAuthorizeUrl400 = {
|
|
626
|
+
message: string;
|
|
627
|
+
};
|
|
628
|
+
type GetDataIntegrationAuthorizeUrl403 = {
|
|
629
|
+
message: string;
|
|
630
|
+
};
|
|
631
|
+
type GetDataIntegrationAuthorizeUrl404 = {
|
|
700
632
|
message: string;
|
|
701
633
|
};
|
|
702
634
|
type InviteMemberBody = {
|
|
@@ -719,6 +651,19 @@ type InviteMember403 = {
|
|
|
719
651
|
type InviteMember404 = {
|
|
720
652
|
message: string;
|
|
721
653
|
};
|
|
654
|
+
type RevokeInvite200 = {
|
|
655
|
+
id: string;
|
|
656
|
+
success: boolean;
|
|
657
|
+
};
|
|
658
|
+
type RevokeInvite400 = {
|
|
659
|
+
message: string;
|
|
660
|
+
};
|
|
661
|
+
type RevokeInvite403 = {
|
|
662
|
+
message: string;
|
|
663
|
+
};
|
|
664
|
+
type RevokeInvite404 = {
|
|
665
|
+
message: string;
|
|
666
|
+
};
|
|
722
667
|
type ResendInvite201 = {
|
|
723
668
|
/** @nullable */
|
|
724
669
|
id?: string | null;
|
|
@@ -736,17 +681,21 @@ type ResendInvite404 = {
|
|
|
736
681
|
type ResendInvite422 = {
|
|
737
682
|
message: string;
|
|
738
683
|
};
|
|
739
|
-
type
|
|
740
|
-
|
|
741
|
-
|
|
684
|
+
type MembersParams = {
|
|
685
|
+
search?: string;
|
|
686
|
+
limit?: string;
|
|
687
|
+
before?: string;
|
|
688
|
+
after?: string;
|
|
689
|
+
role?: string;
|
|
742
690
|
};
|
|
743
|
-
type
|
|
744
|
-
|
|
691
|
+
type Members200 = {
|
|
692
|
+
data: Member[];
|
|
693
|
+
list_metadata: ListMetadata;
|
|
745
694
|
};
|
|
746
|
-
type
|
|
695
|
+
type Members403 = {
|
|
747
696
|
message: string;
|
|
748
697
|
};
|
|
749
|
-
type
|
|
698
|
+
type Members404 = {
|
|
750
699
|
message: string;
|
|
751
700
|
};
|
|
752
701
|
type RemoveMember200 = {
|
|
@@ -787,84 +736,72 @@ type Organizations403 = {
|
|
|
787
736
|
type Organizations404 = {
|
|
788
737
|
message: string;
|
|
789
738
|
};
|
|
790
|
-
type
|
|
739
|
+
type Roles403 = {
|
|
791
740
|
message: string;
|
|
792
741
|
};
|
|
793
|
-
type
|
|
794
|
-
firstName?: string;
|
|
795
|
-
lastName?: string;
|
|
796
|
-
locale?: string;
|
|
797
|
-
};
|
|
798
|
-
type UpdateMe400 = {
|
|
742
|
+
type Roles404 = {
|
|
799
743
|
message: string;
|
|
800
744
|
};
|
|
801
|
-
type
|
|
745
|
+
type RolesAndConfig403 = {
|
|
802
746
|
message: string;
|
|
803
747
|
};
|
|
804
|
-
type
|
|
748
|
+
type RolesAndConfig404 = {
|
|
805
749
|
message: string;
|
|
806
750
|
};
|
|
807
|
-
type
|
|
751
|
+
type AuthenticationInformation403 = {
|
|
808
752
|
message: string;
|
|
809
753
|
};
|
|
810
|
-
type
|
|
754
|
+
type CreatePassword201 = {
|
|
811
755
|
success: boolean;
|
|
812
756
|
};
|
|
813
|
-
type
|
|
757
|
+
type CreatePassword400 = {
|
|
814
758
|
message: string;
|
|
815
759
|
};
|
|
816
|
-
type
|
|
760
|
+
type CreatePassword403 = {
|
|
817
761
|
message: string;
|
|
818
762
|
};
|
|
819
|
-
type
|
|
820
|
-
success: boolean;
|
|
821
|
-
};
|
|
822
|
-
type DeleteTotpFactors400 = {
|
|
763
|
+
type CreateTotpFactor400 = {
|
|
823
764
|
message: string;
|
|
824
765
|
};
|
|
825
|
-
type
|
|
766
|
+
type CreateTotpFactor403 = {
|
|
826
767
|
message: string;
|
|
827
768
|
};
|
|
828
|
-
type
|
|
769
|
+
type Me403 = {
|
|
829
770
|
message: string;
|
|
830
771
|
};
|
|
831
|
-
type
|
|
832
|
-
|
|
772
|
+
type UpdateMeBody = {
|
|
773
|
+
firstName?: string;
|
|
774
|
+
lastName?: string;
|
|
775
|
+
locale?: string;
|
|
833
776
|
};
|
|
834
|
-
type
|
|
777
|
+
type UpdateMe400 = {
|
|
835
778
|
message: string;
|
|
836
779
|
};
|
|
837
|
-
type
|
|
780
|
+
type UpdateMe403 = {
|
|
838
781
|
message: string;
|
|
839
782
|
};
|
|
840
|
-
type
|
|
841
|
-
success: boolean;
|
|
842
|
-
};
|
|
843
|
-
type UpdatePassword400 = {
|
|
783
|
+
type RegisterPasskey400 = {
|
|
844
784
|
message: string;
|
|
845
785
|
};
|
|
846
|
-
type
|
|
786
|
+
type RegisterPasskey403 = {
|
|
847
787
|
message: string;
|
|
848
788
|
};
|
|
849
|
-
type
|
|
789
|
+
type VerifyPasskey200 = {
|
|
850
790
|
success: boolean;
|
|
851
791
|
};
|
|
852
|
-
type
|
|
792
|
+
type VerifyPasskey400 = {
|
|
853
793
|
message: string;
|
|
854
794
|
};
|
|
855
|
-
type
|
|
795
|
+
type VerifyPasskey403 = {
|
|
856
796
|
message: string;
|
|
857
797
|
};
|
|
858
|
-
type
|
|
798
|
+
type DeletePasskey200 = {
|
|
859
799
|
success: boolean;
|
|
860
800
|
};
|
|
861
|
-
type
|
|
862
|
-
message: string;
|
|
863
|
-
};
|
|
864
|
-
type RevokeSession403 = {
|
|
801
|
+
type DeletePasskey400 = {
|
|
865
802
|
message: string;
|
|
866
803
|
};
|
|
867
|
-
type
|
|
804
|
+
type DeletePasskey403 = {
|
|
868
805
|
message: string;
|
|
869
806
|
};
|
|
870
807
|
type SendVerification400 = {
|
|
@@ -873,46 +810,64 @@ type SendVerification400 = {
|
|
|
873
810
|
type SendVerification403 = {
|
|
874
811
|
message: string;
|
|
875
812
|
};
|
|
876
|
-
type
|
|
813
|
+
type Sessions403 = {
|
|
877
814
|
message: string;
|
|
878
815
|
};
|
|
879
|
-
type
|
|
816
|
+
type RevokeAllSessions200 = {
|
|
817
|
+
success: boolean;
|
|
818
|
+
};
|
|
819
|
+
type RevokeAllSessions400 = {
|
|
880
820
|
message: string;
|
|
881
821
|
};
|
|
882
|
-
type
|
|
822
|
+
type RevokeAllSessions403 = {
|
|
883
823
|
message: string;
|
|
884
824
|
};
|
|
885
|
-
type
|
|
825
|
+
type RevokeSession200 = {
|
|
826
|
+
success: boolean;
|
|
827
|
+
};
|
|
828
|
+
type RevokeSession400 = {
|
|
886
829
|
message: string;
|
|
887
830
|
};
|
|
888
|
-
type
|
|
831
|
+
type RevokeSession403 = {
|
|
832
|
+
message: string;
|
|
833
|
+
};
|
|
834
|
+
type DeleteTotpFactors200 = {
|
|
889
835
|
success: boolean;
|
|
890
836
|
};
|
|
891
|
-
type
|
|
837
|
+
type DeleteTotpFactors400 = {
|
|
892
838
|
message: string;
|
|
893
839
|
};
|
|
894
|
-
type
|
|
840
|
+
type DeleteTotpFactors403 = {
|
|
895
841
|
message: string;
|
|
896
842
|
};
|
|
897
|
-
type
|
|
843
|
+
type UpdatePassword201 = {
|
|
898
844
|
success: boolean;
|
|
899
845
|
};
|
|
900
|
-
type
|
|
846
|
+
type UpdatePassword400 = {
|
|
901
847
|
message: string;
|
|
902
848
|
};
|
|
903
|
-
type
|
|
849
|
+
type UpdatePassword403 = {
|
|
904
850
|
message: string;
|
|
905
851
|
};
|
|
906
|
-
type
|
|
852
|
+
type Verify400 = {
|
|
907
853
|
message: string;
|
|
908
854
|
};
|
|
909
|
-
type
|
|
910
|
-
|
|
855
|
+
type Verify403 = {
|
|
856
|
+
message: string;
|
|
911
857
|
};
|
|
912
|
-
type
|
|
858
|
+
type VerifyTotpFactor200 = {
|
|
859
|
+
success: boolean;
|
|
860
|
+
};
|
|
861
|
+
type VerifyTotpFactor400 = {
|
|
913
862
|
message: string;
|
|
914
863
|
};
|
|
915
|
-
type
|
|
864
|
+
type VerifyTotpFactor403 = {
|
|
865
|
+
message: string;
|
|
866
|
+
};
|
|
867
|
+
type GetAuditLogStream200 = AuditLogStreamJSON | {
|
|
868
|
+
[key: string]: unknown;
|
|
869
|
+
};
|
|
870
|
+
type GetAuditLogStream403 = {
|
|
916
871
|
message: string;
|
|
917
872
|
};
|
|
918
873
|
type GenerateAdminPortalLinkParams = {
|
|
@@ -922,6 +877,7 @@ type GenerateAdminPortalLinkIntent = (typeof GenerateAdminPortalLinkIntent)[keyo
|
|
|
922
877
|
declare const GenerateAdminPortalLinkIntent: {
|
|
923
878
|
readonly domain_verification: "domain_verification";
|
|
924
879
|
readonly sso: "sso";
|
|
880
|
+
readonly log_streams: "log_streams";
|
|
925
881
|
};
|
|
926
882
|
type GenerateAdminPortalLink201 = {
|
|
927
883
|
link: string;
|
|
@@ -935,215 +891,359 @@ type GenerateAdminPortalLink404 = {
|
|
|
935
891
|
type GenerateAdminPortalLink500 = {
|
|
936
892
|
message: string;
|
|
937
893
|
};
|
|
938
|
-
type
|
|
939
|
-
|
|
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;
|
|
894
|
+
type ListOrganizationDomains200 = {
|
|
895
|
+
data: OrganizationDomain[];
|
|
952
896
|
};
|
|
953
|
-
type
|
|
897
|
+
type ListOrganizationDomains403 = {
|
|
954
898
|
message: string;
|
|
955
899
|
};
|
|
956
|
-
type
|
|
900
|
+
type ListOrganizationDomains404 = {
|
|
957
901
|
message: string;
|
|
958
902
|
};
|
|
959
|
-
type
|
|
960
|
-
code: string;
|
|
961
|
-
field: string;
|
|
962
|
-
};
|
|
963
|
-
type CreateOrganizationApiKey422 = {
|
|
903
|
+
type DeleteOrganizationDomain403 = {
|
|
964
904
|
message: string;
|
|
965
|
-
errors: CreateOrganizationApiKey422ErrorsItem[];
|
|
966
|
-
};
|
|
967
|
-
type ListOrganizationApiKeysParams = {
|
|
968
|
-
limit?: number;
|
|
969
|
-
before?: string;
|
|
970
|
-
after?: string;
|
|
971
|
-
search?: string;
|
|
972
905
|
};
|
|
973
|
-
type
|
|
906
|
+
type DeleteOrganizationDomain404 = {
|
|
974
907
|
message: string;
|
|
975
908
|
};
|
|
976
|
-
type
|
|
909
|
+
type ReverifyOrganizationDomain403 = {
|
|
977
910
|
message: string;
|
|
978
911
|
};
|
|
979
|
-
type
|
|
980
|
-
search?: string;
|
|
981
|
-
limit?: number;
|
|
982
|
-
before?: string;
|
|
983
|
-
after?: string;
|
|
984
|
-
};
|
|
985
|
-
type ListOrganizationApiKeyPermissions400 = {
|
|
912
|
+
type ReverifyOrganizationDomain404 = {
|
|
986
913
|
message: string;
|
|
987
914
|
};
|
|
988
|
-
type
|
|
915
|
+
type ListDirectories403 = {
|
|
989
916
|
message: string;
|
|
990
917
|
};
|
|
991
|
-
type
|
|
992
|
-
success: boolean;
|
|
993
|
-
};
|
|
994
|
-
type DeleteOrganizationApiKey403 = {
|
|
918
|
+
type ListDirectories404 = {
|
|
995
919
|
message: string;
|
|
996
920
|
};
|
|
997
|
-
type
|
|
921
|
+
type GetDirectory403 = {
|
|
998
922
|
message: string;
|
|
999
923
|
};
|
|
1000
|
-
type
|
|
924
|
+
type GetDirectory404 = {
|
|
1001
925
|
message: string;
|
|
1002
926
|
};
|
|
1003
|
-
type
|
|
1004
|
-
requireHandoff?: boolean;
|
|
1005
|
-
};
|
|
1006
|
-
type GetDataIntegrationAuthorizeUrl400 = {
|
|
927
|
+
type Settings403 = {
|
|
1007
928
|
message: string;
|
|
1008
929
|
};
|
|
1009
|
-
type
|
|
1010
|
-
|
|
930
|
+
type createOrganizationApiKeyResponse201 = {
|
|
931
|
+
data: CreateOrganizationApiKeyResponse;
|
|
932
|
+
status: 201;
|
|
1011
933
|
};
|
|
1012
|
-
type
|
|
1013
|
-
|
|
934
|
+
type createOrganizationApiKeyResponse400 = {
|
|
935
|
+
data: CreateOrganizationApiKey400;
|
|
936
|
+
status: 400;
|
|
1014
937
|
};
|
|
1015
|
-
type
|
|
1016
|
-
|
|
938
|
+
type createOrganizationApiKeyResponse403 = {
|
|
939
|
+
data: CreateOrganizationApiKey403;
|
|
940
|
+
status: 403;
|
|
1017
941
|
};
|
|
1018
|
-
type
|
|
1019
|
-
|
|
942
|
+
type createOrganizationApiKeyResponse404 = {
|
|
943
|
+
data: CreateOrganizationApiKey404;
|
|
944
|
+
status: 404;
|
|
1020
945
|
};
|
|
1021
|
-
type
|
|
1022
|
-
|
|
946
|
+
type createOrganizationApiKeyResponse422 = {
|
|
947
|
+
data: CreateOrganizationApiKey422;
|
|
948
|
+
status: 422;
|
|
1023
949
|
};
|
|
1024
|
-
type
|
|
1025
|
-
|
|
950
|
+
type createOrganizationApiKeyResponseSuccess = createOrganizationApiKeyResponse201 & {
|
|
951
|
+
headers: Headers;
|
|
1026
952
|
};
|
|
1027
|
-
type
|
|
1028
|
-
|
|
953
|
+
type createOrganizationApiKeyResponseError = (createOrganizationApiKeyResponse400 | createOrganizationApiKeyResponse403 | createOrganizationApiKeyResponse404 | createOrganizationApiKeyResponse422) & {
|
|
954
|
+
headers: Headers;
|
|
1029
955
|
};
|
|
1030
|
-
type
|
|
1031
|
-
|
|
956
|
+
type createOrganizationApiKeyResponse = createOrganizationApiKeyResponseSuccess | createOrganizationApiKeyResponseError;
|
|
957
|
+
declare const getCreateOrganizationApiKeyUrl: () => string;
|
|
958
|
+
declare const createOrganizationApiKey: (createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest, options?: RequestInit) => Promise<createOrganizationApiKeyResponse>;
|
|
959
|
+
declare const getCreateOrganizationApiKeyMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
|
|
960
|
+
arg: CreateOrganizationApiKeyRequest;
|
|
961
|
+
}) => Promise<createOrganizationApiKeyResponse>;
|
|
962
|
+
declare const getCreateOrganizationApiKeyMutationKey: () => readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys"];
|
|
963
|
+
type CreateOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createOrganizationApiKey>>>;
|
|
964
|
+
declare const useCreateOrganizationApiKey: <TError = Promise<CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422>>(options?: {
|
|
965
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, Key, CreateOrganizationApiKeyRequest, Awaited<ReturnType<typeof createOrganizationApiKey>>> & {
|
|
966
|
+
swrKey?: string;
|
|
967
|
+
};
|
|
968
|
+
fetch?: RequestInit;
|
|
969
|
+
}) => {
|
|
970
|
+
isMutating: boolean;
|
|
971
|
+
trigger: swr_mutation.TriggerWithArgs<createOrganizationApiKeyResponse, TError, string | readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys"], CreateOrganizationApiKeyRequest>;
|
|
972
|
+
reset: () => void;
|
|
973
|
+
error: TError | undefined;
|
|
974
|
+
data: createOrganizationApiKeyResponse | undefined;
|
|
975
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys"];
|
|
1032
976
|
};
|
|
1033
|
-
type
|
|
1034
|
-
data:
|
|
977
|
+
type listOrganizationApiKeysResponse200 = {
|
|
978
|
+
data: ListOrganizationApiKeysResponse;
|
|
1035
979
|
status: 200;
|
|
1036
980
|
};
|
|
1037
|
-
type
|
|
1038
|
-
data:
|
|
1039
|
-
status:
|
|
981
|
+
type listOrganizationApiKeysResponse400 = {
|
|
982
|
+
data: ListOrganizationApiKeys400;
|
|
983
|
+
status: 400;
|
|
1040
984
|
};
|
|
1041
|
-
type
|
|
1042
|
-
data:
|
|
1043
|
-
status:
|
|
985
|
+
type listOrganizationApiKeysResponse403 = {
|
|
986
|
+
data: ListOrganizationApiKeys403;
|
|
987
|
+
status: 403;
|
|
1044
988
|
};
|
|
1045
|
-
type
|
|
989
|
+
type listOrganizationApiKeysResponseSuccess = listOrganizationApiKeysResponse200 & {
|
|
1046
990
|
headers: Headers;
|
|
1047
991
|
};
|
|
1048
|
-
type
|
|
992
|
+
type listOrganizationApiKeysResponseError = (listOrganizationApiKeysResponse400 | listOrganizationApiKeysResponse403) & {
|
|
1049
993
|
headers: Headers;
|
|
1050
994
|
};
|
|
1051
|
-
type
|
|
1052
|
-
declare const
|
|
1053
|
-
declare const
|
|
1054
|
-
declare const
|
|
1055
|
-
type
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof members>>, TError> & {
|
|
995
|
+
type listOrganizationApiKeysResponse = listOrganizationApiKeysResponseSuccess | listOrganizationApiKeysResponseError;
|
|
996
|
+
declare const getListOrganizationApiKeysUrl: (params?: ListOrganizationApiKeysParams) => string;
|
|
997
|
+
declare const listOrganizationApiKeys: (params?: ListOrganizationApiKeysParams, options?: RequestInit) => Promise<listOrganizationApiKeysResponse>;
|
|
998
|
+
declare const getListOrganizationApiKeysKey: (params?: ListOrganizationApiKeysParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys", ...ListOrganizationApiKeysParams[]];
|
|
999
|
+
type ListOrganizationApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeys>>>;
|
|
1000
|
+
declare const useListOrganizationApiKeys: <TError = Promise<ListOrganizationApiKeys400 | ListOrganizationApiKeys403>>(params?: ListOrganizationApiKeysParams, options?: {
|
|
1001
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError> & {
|
|
1059
1002
|
swrKey?: Key;
|
|
1060
1003
|
enabled?: boolean;
|
|
1061
1004
|
};
|
|
1062
1005
|
fetch?: RequestInit;
|
|
1063
1006
|
}) => {
|
|
1064
|
-
data:
|
|
1007
|
+
data: listOrganizationApiKeysResponse | undefined;
|
|
1065
1008
|
error: TError | undefined;
|
|
1066
|
-
mutate: swr.KeyedMutator<
|
|
1009
|
+
mutate: swr.KeyedMutator<listOrganizationApiKeysResponse>;
|
|
1067
1010
|
isValidating: boolean;
|
|
1068
1011
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1069
1012
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1070
1013
|
};
|
|
1071
|
-
type
|
|
1072
|
-
data:
|
|
1014
|
+
type listOrganizationApiKeyPermissionsResponse200 = {
|
|
1015
|
+
data: ListOrganizationApiKeyPermissionsResponse;
|
|
1073
1016
|
status: 200;
|
|
1074
1017
|
};
|
|
1075
|
-
type
|
|
1076
|
-
data:
|
|
1077
|
-
status:
|
|
1018
|
+
type listOrganizationApiKeyPermissionsResponse400 = {
|
|
1019
|
+
data: ListOrganizationApiKeyPermissions400;
|
|
1020
|
+
status: 400;
|
|
1078
1021
|
};
|
|
1079
|
-
type
|
|
1080
|
-
data:
|
|
1081
|
-
status:
|
|
1022
|
+
type listOrganizationApiKeyPermissionsResponse403 = {
|
|
1023
|
+
data: ListOrganizationApiKeyPermissions403;
|
|
1024
|
+
status: 403;
|
|
1082
1025
|
};
|
|
1083
|
-
type
|
|
1026
|
+
type listOrganizationApiKeyPermissionsResponseSuccess = listOrganizationApiKeyPermissionsResponse200 & {
|
|
1084
1027
|
headers: Headers;
|
|
1085
1028
|
};
|
|
1086
|
-
type
|
|
1029
|
+
type listOrganizationApiKeyPermissionsResponseError = (listOrganizationApiKeyPermissionsResponse400 | listOrganizationApiKeyPermissionsResponse403) & {
|
|
1087
1030
|
headers: Headers;
|
|
1088
1031
|
};
|
|
1089
|
-
type
|
|
1090
|
-
declare const
|
|
1091
|
-
declare const
|
|
1092
|
-
declare const
|
|
1093
|
-
type
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof roles>>, TError> & {
|
|
1032
|
+
type listOrganizationApiKeyPermissionsResponse = listOrganizationApiKeyPermissionsResponseSuccess | listOrganizationApiKeyPermissionsResponseError;
|
|
1033
|
+
declare const getListOrganizationApiKeyPermissionsUrl: (params?: ListOrganizationApiKeyPermissionsParams) => string;
|
|
1034
|
+
declare const listOrganizationApiKeyPermissions: (params?: ListOrganizationApiKeyPermissionsParams, options?: RequestInit) => Promise<listOrganizationApiKeyPermissionsResponse>;
|
|
1035
|
+
declare const getListOrganizationApiKeyPermissionsKey: (params?: ListOrganizationApiKeyPermissionsParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/permissions", ...ListOrganizationApiKeyPermissionsParams[]];
|
|
1036
|
+
type ListOrganizationApiKeyPermissionsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>;
|
|
1037
|
+
declare const useListOrganizationApiKeyPermissions: <TError = Promise<ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
|
|
1038
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError> & {
|
|
1097
1039
|
swrKey?: Key;
|
|
1098
1040
|
enabled?: boolean;
|
|
1099
1041
|
};
|
|
1100
1042
|
fetch?: RequestInit;
|
|
1101
1043
|
}) => {
|
|
1102
|
-
data:
|
|
1044
|
+
data: listOrganizationApiKeyPermissionsResponse | undefined;
|
|
1103
1045
|
error: TError | undefined;
|
|
1104
|
-
mutate: swr.KeyedMutator<
|
|
1046
|
+
mutate: swr.KeyedMutator<listOrganizationApiKeyPermissionsResponse>;
|
|
1105
1047
|
isValidating: boolean;
|
|
1106
1048
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1107
1049
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1108
1050
|
};
|
|
1109
|
-
type
|
|
1110
|
-
data:
|
|
1051
|
+
type deleteOrganizationApiKeyResponse200 = {
|
|
1052
|
+
data: DeleteOrganizationApiKey200;
|
|
1111
1053
|
status: 200;
|
|
1112
1054
|
};
|
|
1113
|
-
type
|
|
1114
|
-
data:
|
|
1055
|
+
type deleteOrganizationApiKeyResponse403 = {
|
|
1056
|
+
data: DeleteOrganizationApiKey403;
|
|
1115
1057
|
status: 403;
|
|
1116
1058
|
};
|
|
1117
|
-
type
|
|
1118
|
-
data:
|
|
1059
|
+
type deleteOrganizationApiKeyResponse404 = {
|
|
1060
|
+
data: DeleteOrganizationApiKey404;
|
|
1119
1061
|
status: 404;
|
|
1120
1062
|
};
|
|
1121
|
-
type
|
|
1063
|
+
type deleteOrganizationApiKeyResponseSuccess = deleteOrganizationApiKeyResponse200 & {
|
|
1122
1064
|
headers: Headers;
|
|
1123
1065
|
};
|
|
1124
|
-
type
|
|
1066
|
+
type deleteOrganizationApiKeyResponseError = (deleteOrganizationApiKeyResponse403 | deleteOrganizationApiKeyResponse404) & {
|
|
1125
1067
|
headers: Headers;
|
|
1126
1068
|
};
|
|
1127
|
-
type
|
|
1128
|
-
declare const
|
|
1129
|
-
declare const
|
|
1130
|
-
declare const
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
declare const
|
|
1134
|
-
|
|
1069
|
+
type deleteOrganizationApiKeyResponse = deleteOrganizationApiKeyResponseSuccess | deleteOrganizationApiKeyResponseError;
|
|
1070
|
+
declare const getDeleteOrganizationApiKeyUrl: (apiKeyId: string) => string;
|
|
1071
|
+
declare const deleteOrganizationApiKey: (apiKeyId: string, options?: RequestInit) => Promise<deleteOrganizationApiKeyResponse>;
|
|
1072
|
+
declare const getDeleteOrganizationApiKeyMutationFetcher: (apiKeyId: string, options?: RequestInit) => (_: Key, __: {
|
|
1073
|
+
arg: Arguments;
|
|
1074
|
+
}) => Promise<deleteOrganizationApiKeyResponse>;
|
|
1075
|
+
declare const getDeleteOrganizationApiKeyMutationKey: (apiKeyId: string) => readonly [`https://api.workos.com/_widgets/ApiKeys/${string}`];
|
|
1076
|
+
type DeleteOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationApiKey>>>;
|
|
1077
|
+
declare const useDeleteOrganizationApiKey: <TError = Promise<DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404>>(apiKeyId: string, options?: {
|
|
1078
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteOrganizationApiKey>>> & {
|
|
1079
|
+
swrKey?: string;
|
|
1080
|
+
};
|
|
1081
|
+
fetch?: RequestInit;
|
|
1082
|
+
}) => {
|
|
1083
|
+
isMutating: boolean;
|
|
1084
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<deleteOrganizationApiKeyResponse, TError, string | readonly [`https://api.workos.com/_widgets/ApiKeys/${string}`], Arguments>;
|
|
1085
|
+
reset: () => void;
|
|
1086
|
+
error: TError | undefined;
|
|
1087
|
+
data: deleteOrganizationApiKeyResponse | undefined;
|
|
1088
|
+
swrKey: string | readonly [`https://api.workos.com/_widgets/ApiKeys/${string}`];
|
|
1089
|
+
};
|
|
1090
|
+
type deleteDataInstallationResponse200 = {
|
|
1091
|
+
data: DeleteDataInstallation200;
|
|
1092
|
+
status: 200;
|
|
1093
|
+
};
|
|
1094
|
+
type deleteDataInstallationResponse403 = {
|
|
1095
|
+
data: DeleteDataInstallation403;
|
|
1096
|
+
status: 403;
|
|
1097
|
+
};
|
|
1098
|
+
type deleteDataInstallationResponse404 = {
|
|
1099
|
+
data: DeleteDataInstallation404;
|
|
1100
|
+
status: 404;
|
|
1101
|
+
};
|
|
1102
|
+
type deleteDataInstallationResponseSuccess = deleteDataInstallationResponse200 & {
|
|
1103
|
+
headers: Headers;
|
|
1104
|
+
};
|
|
1105
|
+
type deleteDataInstallationResponseError = (deleteDataInstallationResponse403 | deleteDataInstallationResponse404) & {
|
|
1106
|
+
headers: Headers;
|
|
1107
|
+
};
|
|
1108
|
+
type deleteDataInstallationResponse = deleteDataInstallationResponseSuccess | deleteDataInstallationResponseError;
|
|
1109
|
+
declare const getDeleteDataInstallationUrl: (installationId: string) => string;
|
|
1110
|
+
declare const deleteDataInstallation: (installationId: string, options?: RequestInit) => Promise<deleteDataInstallationResponse>;
|
|
1111
|
+
declare const getDeleteDataInstallationMutationFetcher: (installationId: string, options?: RequestInit) => (_: Key, __: {
|
|
1112
|
+
arg: Arguments;
|
|
1113
|
+
}) => Promise<deleteDataInstallationResponse>;
|
|
1114
|
+
declare const getDeleteDataInstallationMutationKey: (installationId: string) => readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`];
|
|
1115
|
+
type DeleteDataInstallationMutationResult = NonNullable<Awaited<ReturnType<typeof deleteDataInstallation>>>;
|
|
1116
|
+
declare const useDeleteDataInstallation: <TError = Promise<DeleteDataInstallation403 | DeleteDataInstallation404>>(installationId: string, options?: {
|
|
1117
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteDataInstallation>>> & {
|
|
1118
|
+
swrKey?: string;
|
|
1119
|
+
};
|
|
1120
|
+
fetch?: RequestInit;
|
|
1121
|
+
}) => {
|
|
1122
|
+
isMutating: boolean;
|
|
1123
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<deleteDataInstallationResponse, TError, string | readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`], Arguments>;
|
|
1124
|
+
reset: () => void;
|
|
1125
|
+
error: TError | undefined;
|
|
1126
|
+
data: deleteDataInstallationResponse | undefined;
|
|
1127
|
+
swrKey: string | readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`];
|
|
1128
|
+
};
|
|
1129
|
+
type myDataIntegrationsResponse200 = {
|
|
1130
|
+
data: DataIntegrationsResponse;
|
|
1131
|
+
status: 200;
|
|
1132
|
+
};
|
|
1133
|
+
type myDataIntegrationsResponse403 = {
|
|
1134
|
+
data: MyDataIntegrations403;
|
|
1135
|
+
status: 403;
|
|
1136
|
+
};
|
|
1137
|
+
type myDataIntegrationsResponseSuccess = myDataIntegrationsResponse200 & {
|
|
1138
|
+
headers: Headers;
|
|
1139
|
+
};
|
|
1140
|
+
type myDataIntegrationsResponseError = myDataIntegrationsResponse403 & {
|
|
1141
|
+
headers: Headers;
|
|
1142
|
+
};
|
|
1143
|
+
type myDataIntegrationsResponse = myDataIntegrationsResponseSuccess | myDataIntegrationsResponseError;
|
|
1144
|
+
declare const getMyDataIntegrationsUrl: () => string;
|
|
1145
|
+
declare const myDataIntegrations: (options?: RequestInit) => Promise<myDataIntegrationsResponse>;
|
|
1146
|
+
declare const getMyDataIntegrationsKey: () => readonly ["https://api.workos.com/_widgets/DataIntegrations/mine"];
|
|
1147
|
+
type MyDataIntegrationsQueryResult = NonNullable<Awaited<ReturnType<typeof myDataIntegrations>>>;
|
|
1148
|
+
declare const useMyDataIntegrations: <TError = Promise<MyDataIntegrations403>>(options?: {
|
|
1149
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof myDataIntegrations>>, TError> & {
|
|
1135
1150
|
swrKey?: Key;
|
|
1136
1151
|
enabled?: boolean;
|
|
1137
1152
|
};
|
|
1138
1153
|
fetch?: RequestInit;
|
|
1139
1154
|
}) => {
|
|
1140
|
-
data:
|
|
1155
|
+
data: myDataIntegrationsResponse | undefined;
|
|
1141
1156
|
error: TError | undefined;
|
|
1142
|
-
mutate: swr.KeyedMutator<
|
|
1157
|
+
mutate: swr.KeyedMutator<myDataIntegrationsResponse>;
|
|
1158
|
+
isValidating: boolean;
|
|
1159
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1160
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1161
|
+
};
|
|
1162
|
+
type getDataInstallationAuthorizationStatusResponse200 = {
|
|
1163
|
+
data: GetAuthorizationStatusResponse;
|
|
1164
|
+
status: 200;
|
|
1165
|
+
};
|
|
1166
|
+
type getDataInstallationAuthorizationStatusResponse400 = {
|
|
1167
|
+
data: GetDataInstallationAuthorizationStatus400;
|
|
1168
|
+
status: 400;
|
|
1169
|
+
};
|
|
1170
|
+
type getDataInstallationAuthorizationStatusResponse403 = {
|
|
1171
|
+
data: GetDataInstallationAuthorizationStatus403;
|
|
1172
|
+
status: 403;
|
|
1173
|
+
};
|
|
1174
|
+
type getDataInstallationAuthorizationStatusResponse404 = {
|
|
1175
|
+
data: GetDataInstallationAuthorizationStatus404;
|
|
1176
|
+
status: 404;
|
|
1177
|
+
};
|
|
1178
|
+
type getDataInstallationAuthorizationStatusResponseSuccess = getDataInstallationAuthorizationStatusResponse200 & {
|
|
1179
|
+
headers: Headers;
|
|
1180
|
+
};
|
|
1181
|
+
type getDataInstallationAuthorizationStatusResponseError = (getDataInstallationAuthorizationStatusResponse400 | getDataInstallationAuthorizationStatusResponse403 | getDataInstallationAuthorizationStatusResponse404) & {
|
|
1182
|
+
headers: Headers;
|
|
1183
|
+
};
|
|
1184
|
+
type getDataInstallationAuthorizationStatusResponse = getDataInstallationAuthorizationStatusResponseSuccess | getDataInstallationAuthorizationStatusResponseError;
|
|
1185
|
+
declare const getGetDataInstallationAuthorizationStatusUrl: (dataIntegrationId: string, state: string) => string;
|
|
1186
|
+
declare const getDataInstallationAuthorizationStatus: (dataIntegrationId: string, state: string, options?: RequestInit) => Promise<getDataInstallationAuthorizationStatusResponse>;
|
|
1187
|
+
declare const getGetDataInstallationAuthorizationStatusKey: (dataIntegrationId: string, state: string) => readonly [`https://api.workos.com/_widgets/DataIntegrations/${string}/authorization-status/${string}`];
|
|
1188
|
+
type GetDataInstallationAuthorizationStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>;
|
|
1189
|
+
declare const useGetDataInstallationAuthorizationStatus: <TError = Promise<GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>>(dataIntegrationId: string, state: string, options?: {
|
|
1190
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError> & {
|
|
1191
|
+
swrKey?: Key;
|
|
1192
|
+
enabled?: boolean;
|
|
1193
|
+
};
|
|
1194
|
+
fetch?: RequestInit;
|
|
1195
|
+
}) => {
|
|
1196
|
+
data: getDataInstallationAuthorizationStatusResponse | undefined;
|
|
1197
|
+
error: TError | undefined;
|
|
1198
|
+
mutate: swr.KeyedMutator<getDataInstallationAuthorizationStatusResponse>;
|
|
1199
|
+
isValidating: boolean;
|
|
1200
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1201
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1202
|
+
};
|
|
1203
|
+
type getDataIntegrationAuthorizeUrlResponse200 = {
|
|
1204
|
+
data: GetDataIntegrationAuthorizeUrlResponse;
|
|
1205
|
+
status: 200;
|
|
1206
|
+
};
|
|
1207
|
+
type getDataIntegrationAuthorizeUrlResponse400 = {
|
|
1208
|
+
data: GetDataIntegrationAuthorizeUrl400;
|
|
1209
|
+
status: 400;
|
|
1210
|
+
};
|
|
1211
|
+
type getDataIntegrationAuthorizeUrlResponse403 = {
|
|
1212
|
+
data: GetDataIntegrationAuthorizeUrl403;
|
|
1213
|
+
status: 403;
|
|
1214
|
+
};
|
|
1215
|
+
type getDataIntegrationAuthorizeUrlResponse404 = {
|
|
1216
|
+
data: GetDataIntegrationAuthorizeUrl404;
|
|
1217
|
+
status: 404;
|
|
1218
|
+
};
|
|
1219
|
+
type getDataIntegrationAuthorizeUrlResponseSuccess = getDataIntegrationAuthorizeUrlResponse200 & {
|
|
1220
|
+
headers: Headers;
|
|
1221
|
+
};
|
|
1222
|
+
type getDataIntegrationAuthorizeUrlResponseError = (getDataIntegrationAuthorizeUrlResponse400 | getDataIntegrationAuthorizeUrlResponse403 | getDataIntegrationAuthorizeUrlResponse404) & {
|
|
1223
|
+
headers: Headers;
|
|
1224
|
+
};
|
|
1225
|
+
type getDataIntegrationAuthorizeUrlResponse = getDataIntegrationAuthorizeUrlResponseSuccess | getDataIntegrationAuthorizeUrlResponseError;
|
|
1226
|
+
declare const getGetDataIntegrationAuthorizeUrlUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams) => string;
|
|
1227
|
+
declare const getDataIntegrationAuthorizeUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: RequestInit) => Promise<getDataIntegrationAuthorizeUrlResponse>;
|
|
1228
|
+
declare const getGetDataIntegrationAuthorizeUrlKey: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams) => readonly [`https://api.workos.com/_widgets/DataIntegrations/${string}/authorize`, ...GetDataIntegrationAuthorizeUrlParams[]];
|
|
1229
|
+
type GetDataIntegrationAuthorizeUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>;
|
|
1230
|
+
declare const useGetDataIntegrationAuthorizeUrl: <TError = Promise<GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
|
|
1231
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError> & {
|
|
1232
|
+
swrKey?: Key;
|
|
1233
|
+
enabled?: boolean;
|
|
1234
|
+
};
|
|
1235
|
+
fetch?: RequestInit;
|
|
1236
|
+
}) => {
|
|
1237
|
+
data: getDataIntegrationAuthorizeUrlResponse | undefined;
|
|
1238
|
+
error: TError | undefined;
|
|
1239
|
+
mutate: swr.KeyedMutator<getDataIntegrationAuthorizeUrlResponse>;
|
|
1143
1240
|
isValidating: boolean;
|
|
1144
1241
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1145
1242
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1146
1243
|
};
|
|
1244
|
+
/**
|
|
1245
|
+
* Sends an invitation email to a user to join the organization. If the user does not have an account, they will be prompted to create one upon accepting.
|
|
1246
|
+
*/
|
|
1147
1247
|
type inviteMemberResponse201 = {
|
|
1148
1248
|
data: InviteMember201;
|
|
1149
1249
|
status: 201;
|
|
@@ -1174,7 +1274,6 @@ declare const getInviteMemberMutationFetcher: (options?: RequestInit) => (_: Key
|
|
|
1174
1274
|
}) => Promise<inviteMemberResponse>;
|
|
1175
1275
|
declare const getInviteMemberMutationKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/invite-user"];
|
|
1176
1276
|
type InviteMemberMutationResult = NonNullable<Awaited<ReturnType<typeof inviteMember>>>;
|
|
1177
|
-
type InviteMemberMutationError = Promise<InviteMember400 | InviteMember403 | InviteMember404>;
|
|
1178
1277
|
declare const useInviteMember: <TError = Promise<InviteMember400 | InviteMember403 | InviteMember404>>(options?: {
|
|
1179
1278
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof inviteMember>>, TError, Key, InviteMemberBody, Awaited<ReturnType<typeof inviteMember>>> & {
|
|
1180
1279
|
swrKey?: string;
|
|
@@ -1188,6 +1287,55 @@ declare const useInviteMember: <TError = Promise<InviteMember400 | InviteMember4
|
|
|
1188
1287
|
data: inviteMemberResponse | undefined;
|
|
1189
1288
|
swrKey: string | readonly ["https://api.workos.com/_widgets/UserManagement/invite-user"];
|
|
1190
1289
|
};
|
|
1290
|
+
/**
|
|
1291
|
+
* Cancels a pending invitation for the specified user, preventing them from joining the organization via that invite link.
|
|
1292
|
+
*/
|
|
1293
|
+
type revokeInviteResponse200 = {
|
|
1294
|
+
data: RevokeInvite200;
|
|
1295
|
+
status: 200;
|
|
1296
|
+
};
|
|
1297
|
+
type revokeInviteResponse400 = {
|
|
1298
|
+
data: RevokeInvite400;
|
|
1299
|
+
status: 400;
|
|
1300
|
+
};
|
|
1301
|
+
type revokeInviteResponse403 = {
|
|
1302
|
+
data: RevokeInvite403;
|
|
1303
|
+
status: 403;
|
|
1304
|
+
};
|
|
1305
|
+
type revokeInviteResponse404 = {
|
|
1306
|
+
data: RevokeInvite404;
|
|
1307
|
+
status: 404;
|
|
1308
|
+
};
|
|
1309
|
+
type revokeInviteResponseSuccess = revokeInviteResponse200 & {
|
|
1310
|
+
headers: Headers;
|
|
1311
|
+
};
|
|
1312
|
+
type revokeInviteResponseError = (revokeInviteResponse400 | revokeInviteResponse403 | revokeInviteResponse404) & {
|
|
1313
|
+
headers: Headers;
|
|
1314
|
+
};
|
|
1315
|
+
type revokeInviteResponse = revokeInviteResponseSuccess | revokeInviteResponseError;
|
|
1316
|
+
declare const getRevokeInviteUrl: (userId: string) => string;
|
|
1317
|
+
declare const revokeInvite: (userId: string, options?: RequestInit) => Promise<revokeInviteResponse>;
|
|
1318
|
+
declare const getRevokeInviteMutationFetcher: (userId: string, options?: RequestInit) => (_: Key, __: {
|
|
1319
|
+
arg: Arguments;
|
|
1320
|
+
}) => Promise<revokeInviteResponse>;
|
|
1321
|
+
declare const getRevokeInviteMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}`];
|
|
1322
|
+
type RevokeInviteMutationResult = NonNullable<Awaited<ReturnType<typeof revokeInvite>>>;
|
|
1323
|
+
declare const useRevokeInvite: <TError = Promise<RevokeInvite400 | RevokeInvite403 | RevokeInvite404>>(userId: string, options?: {
|
|
1324
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeInvite>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeInvite>>> & {
|
|
1325
|
+
swrKey?: string;
|
|
1326
|
+
};
|
|
1327
|
+
fetch?: RequestInit;
|
|
1328
|
+
}) => {
|
|
1329
|
+
isMutating: boolean;
|
|
1330
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<revokeInviteResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}`], Arguments>;
|
|
1331
|
+
reset: () => void;
|
|
1332
|
+
error: TError | undefined;
|
|
1333
|
+
data: revokeInviteResponse | undefined;
|
|
1334
|
+
swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}`];
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* Resends the pending invitation email to the specified user. Returns an error if the invitation has already been accepted or has expired.
|
|
1338
|
+
*/
|
|
1191
1339
|
type resendInviteResponse201 = {
|
|
1192
1340
|
data: ResendInvite201;
|
|
1193
1341
|
status: 201;
|
|
@@ -1222,7 +1370,6 @@ declare const getResendInviteMutationFetcher: (userId: string, options?: Request
|
|
|
1222
1370
|
}) => Promise<resendInviteResponse>;
|
|
1223
1371
|
declare const getResendInviteMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}/resend`];
|
|
1224
1372
|
type ResendInviteMutationResult = NonNullable<Awaited<ReturnType<typeof resendInvite>>>;
|
|
1225
|
-
type ResendInviteMutationError = Promise<ResendInvite400 | ResendInvite403 | ResendInvite404 | ResendInvite422>;
|
|
1226
1373
|
declare const useResendInvite: <TError = Promise<ResendInvite400 | ResendInvite403 | ResendInvite404 | ResendInvite422>>(userId: string, options?: {
|
|
1227
1374
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof resendInvite>>, TError, Key, Arguments, Awaited<ReturnType<typeof resendInvite>>> & {
|
|
1228
1375
|
swrKey?: string;
|
|
@@ -1236,50 +1383,49 @@ declare const useResendInvite: <TError = Promise<ResendInvite400 | ResendInvite4
|
|
|
1236
1383
|
data: resendInviteResponse | undefined;
|
|
1237
1384
|
swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/invites/${string}/resend`];
|
|
1238
1385
|
};
|
|
1239
|
-
|
|
1240
|
-
|
|
1386
|
+
/**
|
|
1387
|
+
* Returns a paginated list of members belonging to the organization. Supports filtering by search term and role, and cursor-based pagination via before/after parameters.
|
|
1388
|
+
*/
|
|
1389
|
+
type membersResponse200 = {
|
|
1390
|
+
data: Members200;
|
|
1241
1391
|
status: 200;
|
|
1242
1392
|
};
|
|
1243
|
-
type
|
|
1244
|
-
data:
|
|
1245
|
-
status: 400;
|
|
1246
|
-
};
|
|
1247
|
-
type revokeInviteResponse403 = {
|
|
1248
|
-
data: RevokeInvite403;
|
|
1393
|
+
type membersResponse403 = {
|
|
1394
|
+
data: Members403;
|
|
1249
1395
|
status: 403;
|
|
1250
1396
|
};
|
|
1251
|
-
type
|
|
1252
|
-
data:
|
|
1397
|
+
type membersResponse404 = {
|
|
1398
|
+
data: Members404;
|
|
1253
1399
|
status: 404;
|
|
1254
1400
|
};
|
|
1255
|
-
type
|
|
1401
|
+
type membersResponseSuccess = membersResponse200 & {
|
|
1256
1402
|
headers: Headers;
|
|
1257
1403
|
};
|
|
1258
|
-
type
|
|
1404
|
+
type membersResponseError = (membersResponse403 | membersResponse404) & {
|
|
1259
1405
|
headers: Headers;
|
|
1260
1406
|
};
|
|
1261
|
-
type
|
|
1262
|
-
declare const
|
|
1263
|
-
declare const
|
|
1264
|
-
declare const
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
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;
|
|
1407
|
+
type membersResponse = membersResponseSuccess | membersResponseError;
|
|
1408
|
+
declare const getMembersUrl: (params?: MembersParams) => string;
|
|
1409
|
+
declare const members: (params?: MembersParams, options?: RequestInit) => Promise<membersResponse>;
|
|
1410
|
+
declare const getMembersKey: (params?: MembersParams) => readonly ["https://api.workos.com/_widgets/UserManagement/members", ...MembersParams[]];
|
|
1411
|
+
type MembersQueryResult = NonNullable<Awaited<ReturnType<typeof members>>>;
|
|
1412
|
+
declare const useMembers: <TError = Promise<Members403 | Members404>>(params?: MembersParams, options?: {
|
|
1413
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof members>>, TError> & {
|
|
1414
|
+
swrKey?: Key;
|
|
1415
|
+
enabled?: boolean;
|
|
1416
|
+
};
|
|
1417
|
+
fetch?: RequestInit;
|
|
1418
|
+
}) => {
|
|
1419
|
+
data: membersResponse | undefined;
|
|
1279
1420
|
error: TError | undefined;
|
|
1280
|
-
|
|
1281
|
-
|
|
1421
|
+
mutate: swr.KeyedMutator<membersResponse>;
|
|
1422
|
+
isValidating: boolean;
|
|
1423
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1424
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1282
1425
|
};
|
|
1426
|
+
/**
|
|
1427
|
+
* Removes the specified user from the organization by revoking their membership. The user account itself is not deleted.
|
|
1428
|
+
*/
|
|
1283
1429
|
type removeMemberResponse200 = {
|
|
1284
1430
|
data: RemoveMember200;
|
|
1285
1431
|
status: 200;
|
|
@@ -1310,7 +1456,6 @@ declare const getRemoveMemberMutationFetcher: (userId: string, options?: Request
|
|
|
1310
1456
|
}) => Promise<removeMemberResponse>;
|
|
1311
1457
|
declare const getRemoveMemberMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
|
|
1312
1458
|
type RemoveMemberMutationResult = NonNullable<Awaited<ReturnType<typeof removeMember>>>;
|
|
1313
|
-
type RemoveMemberMutationError = Promise<RemoveMember400 | RemoveMember403 | RemoveMember404>;
|
|
1314
1459
|
declare const useRemoveMember: <TError = Promise<RemoveMember400 | RemoveMember403 | RemoveMember404>>(userId: string, options?: {
|
|
1315
1460
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof removeMember>>, TError, Key, Arguments, Awaited<ReturnType<typeof removeMember>>> & {
|
|
1316
1461
|
swrKey?: string;
|
|
@@ -1324,6 +1469,9 @@ declare const useRemoveMember: <TError = Promise<RemoveMember400 | RemoveMember4
|
|
|
1324
1469
|
data: removeMemberResponse | undefined;
|
|
1325
1470
|
swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
|
|
1326
1471
|
};
|
|
1472
|
+
/**
|
|
1473
|
+
* Updates the specified member's organization membership, such as changing their assigned role.
|
|
1474
|
+
*/
|
|
1327
1475
|
type updateMemberResponse200 = {
|
|
1328
1476
|
data: UpdateMember200;
|
|
1329
1477
|
status: 200;
|
|
@@ -1358,7 +1506,6 @@ declare const getUpdateMemberMutationFetcher: (userId: string, options?: Request
|
|
|
1358
1506
|
}) => Promise<updateMemberResponse>;
|
|
1359
1507
|
declare const getUpdateMemberMutationKey: (userId: string) => readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
|
|
1360
1508
|
type UpdateMemberMutationResult = NonNullable<Awaited<ReturnType<typeof updateMember>>>;
|
|
1361
|
-
type UpdateMemberMutationError = Promise<UpdateMember400 | UpdateMember403 | UpdateMember404 | UpdateMember422>;
|
|
1362
1509
|
declare const useUpdateMember: <TError = Promise<UpdateMember400 | UpdateMember403 | UpdateMember404 | UpdateMember422>>(userId: string, options?: {
|
|
1363
1510
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updateMember>>, TError, Key, UpdateMemberBody, Awaited<ReturnType<typeof updateMember>>> & {
|
|
1364
1511
|
swrKey?: string;
|
|
@@ -1372,6 +1519,9 @@ declare const useUpdateMember: <TError = Promise<UpdateMember400 | UpdateMember4
|
|
|
1372
1519
|
data: updateMemberResponse | undefined;
|
|
1373
1520
|
swrKey: string | readonly [`https://api.workos.com/_widgets/UserManagement/members/${string}`];
|
|
1374
1521
|
};
|
|
1522
|
+
/**
|
|
1523
|
+
* Returns the list of organizations the authenticated user is a member of.
|
|
1524
|
+
*/
|
|
1375
1525
|
type organizationsResponse200 = {
|
|
1376
1526
|
data: OrganizationsResponse;
|
|
1377
1527
|
status: 200;
|
|
@@ -1395,7 +1545,6 @@ declare const getOrganizationsUrl: () => string;
|
|
|
1395
1545
|
declare const organizations: (options?: RequestInit) => Promise<organizationsResponse>;
|
|
1396
1546
|
declare const getOrganizationsKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/organizations"];
|
|
1397
1547
|
type OrganizationsQueryResult = NonNullable<Awaited<ReturnType<typeof organizations>>>;
|
|
1398
|
-
type OrganizationsQueryError = Promise<Organizations403 | Organizations404>;
|
|
1399
1548
|
declare const useOrganizations: <TError = Promise<Organizations403 | Organizations404>>(options?: {
|
|
1400
1549
|
swr?: SWRConfiguration<Awaited<ReturnType<typeof organizations>>, TError> & {
|
|
1401
1550
|
swrKey?: Key;
|
|
@@ -1410,200 +1559,89 @@ declare const useOrganizations: <TError = Promise<Organizations403 | Organizatio
|
|
|
1410
1559
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1411
1560
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1412
1561
|
};
|
|
1413
|
-
|
|
1414
|
-
|
|
1562
|
+
/**
|
|
1563
|
+
* Returns the list of roles available in the organization that can be assigned to members.
|
|
1564
|
+
*/
|
|
1565
|
+
type rolesResponse200 = {
|
|
1566
|
+
data: MemberRole[];
|
|
1415
1567
|
status: 200;
|
|
1416
1568
|
};
|
|
1417
|
-
type
|
|
1418
|
-
data:
|
|
1569
|
+
type rolesResponse403 = {
|
|
1570
|
+
data: Roles403;
|
|
1419
1571
|
status: 403;
|
|
1420
1572
|
};
|
|
1421
|
-
type
|
|
1573
|
+
type rolesResponse404 = {
|
|
1574
|
+
data: Roles404;
|
|
1575
|
+
status: 404;
|
|
1576
|
+
};
|
|
1577
|
+
type rolesResponseSuccess = rolesResponse200 & {
|
|
1422
1578
|
headers: Headers;
|
|
1423
1579
|
};
|
|
1424
|
-
type
|
|
1580
|
+
type rolesResponseError = (rolesResponse403 | rolesResponse404) & {
|
|
1425
1581
|
headers: Headers;
|
|
1426
1582
|
};
|
|
1427
|
-
type
|
|
1428
|
-
declare const
|
|
1429
|
-
declare const
|
|
1430
|
-
declare const
|
|
1431
|
-
type
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof me>>, TError> & {
|
|
1583
|
+
type rolesResponse = rolesResponseSuccess | rolesResponseError;
|
|
1584
|
+
declare const getRolesUrl: () => string;
|
|
1585
|
+
declare const roles: (options?: RequestInit) => Promise<rolesResponse>;
|
|
1586
|
+
declare const getRolesKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles"];
|
|
1587
|
+
type RolesQueryResult = NonNullable<Awaited<ReturnType<typeof roles>>>;
|
|
1588
|
+
declare const useRoles: <TError = Promise<Roles403 | Roles404>>(options?: {
|
|
1589
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof roles>>, TError> & {
|
|
1435
1590
|
swrKey?: Key;
|
|
1436
1591
|
enabled?: boolean;
|
|
1437
1592
|
};
|
|
1438
1593
|
fetch?: RequestInit;
|
|
1439
1594
|
}) => {
|
|
1440
|
-
data:
|
|
1595
|
+
data: rolesResponse | undefined;
|
|
1441
1596
|
error: TError | undefined;
|
|
1442
|
-
mutate: swr.KeyedMutator<
|
|
1597
|
+
mutate: swr.KeyedMutator<rolesResponse>;
|
|
1443
1598
|
isValidating: boolean;
|
|
1444
1599
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1445
1600
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1446
1601
|
};
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
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;
|
|
1602
|
+
/**
|
|
1603
|
+
* Returns the list of roles available in the organization along with the user management configuration, such as whether role assignment is enabled.
|
|
1604
|
+
*/
|
|
1605
|
+
type rolesAndConfigResponse200 = {
|
|
1606
|
+
data: RolesAndConfigResponse;
|
|
1529
1607
|
status: 200;
|
|
1530
1608
|
};
|
|
1531
|
-
type
|
|
1532
|
-
data:
|
|
1533
|
-
status: 400;
|
|
1534
|
-
};
|
|
1535
|
-
type verifyTotpFactorResponse403 = {
|
|
1536
|
-
data: VerifyTotpFactor403;
|
|
1609
|
+
type rolesAndConfigResponse403 = {
|
|
1610
|
+
data: RolesAndConfig403;
|
|
1537
1611
|
status: 403;
|
|
1538
1612
|
};
|
|
1539
|
-
type
|
|
1540
|
-
|
|
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;
|
|
1613
|
+
type rolesAndConfigResponse404 = {
|
|
1614
|
+
data: RolesAndConfig404;
|
|
1615
|
+
status: 404;
|
|
1578
1616
|
};
|
|
1579
|
-
type
|
|
1617
|
+
type rolesAndConfigResponseSuccess = rolesAndConfigResponse200 & {
|
|
1580
1618
|
headers: Headers;
|
|
1581
1619
|
};
|
|
1582
|
-
type
|
|
1620
|
+
type rolesAndConfigResponseError = (rolesAndConfigResponse403 | rolesAndConfigResponse404) & {
|
|
1583
1621
|
headers: Headers;
|
|
1584
1622
|
};
|
|
1585
|
-
type
|
|
1586
|
-
declare const
|
|
1587
|
-
declare const
|
|
1588
|
-
declare const
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
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;
|
|
1623
|
+
type rolesAndConfigResponse = rolesAndConfigResponseSuccess | rolesAndConfigResponseError;
|
|
1624
|
+
declare const getRolesAndConfigUrl: () => string;
|
|
1625
|
+
declare const rolesAndConfig: (options?: RequestInit) => Promise<rolesAndConfigResponse>;
|
|
1626
|
+
declare const getRolesAndConfigKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles-and-config"];
|
|
1627
|
+
type RolesAndConfigQueryResult = NonNullable<Awaited<ReturnType<typeof rolesAndConfig>>>;
|
|
1628
|
+
declare const useRolesAndConfig: <TError = Promise<RolesAndConfig403 | RolesAndConfig404>>(options?: {
|
|
1629
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof rolesAndConfig>>, TError> & {
|
|
1630
|
+
swrKey?: Key;
|
|
1631
|
+
enabled?: boolean;
|
|
1597
1632
|
};
|
|
1598
1633
|
fetch?: RequestInit;
|
|
1599
1634
|
}) => {
|
|
1600
|
-
|
|
1601
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<deleteTotpFactorsResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"], Arguments>;
|
|
1602
|
-
reset: () => void;
|
|
1635
|
+
data: rolesAndConfigResponse | undefined;
|
|
1603
1636
|
error: TError | undefined;
|
|
1604
|
-
|
|
1605
|
-
|
|
1637
|
+
mutate: swr.KeyedMutator<rolesAndConfigResponse>;
|
|
1638
|
+
isValidating: boolean;
|
|
1639
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1640
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1606
1641
|
};
|
|
1642
|
+
/**
|
|
1643
|
+
* Returns the authentication methods and MFA factors configured for the authenticated user, including enrolled TOTP factors and passkeys.
|
|
1644
|
+
*/
|
|
1607
1645
|
type authenticationInformationResponse200 = {
|
|
1608
1646
|
data: AuthenticationInformationResponse;
|
|
1609
1647
|
status: 200;
|
|
@@ -1623,7 +1661,6 @@ declare const getAuthenticationInformationUrl: () => string;
|
|
|
1623
1661
|
declare const authenticationInformation: (options?: RequestInit) => Promise<authenticationInformationResponse>;
|
|
1624
1662
|
declare const getAuthenticationInformationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/authentication-information"];
|
|
1625
1663
|
type AuthenticationInformationQueryResult = NonNullable<Awaited<ReturnType<typeof authenticationInformation>>>;
|
|
1626
|
-
type AuthenticationInformationQueryError = Promise<AuthenticationInformation403>;
|
|
1627
1664
|
declare const useAuthenticationInformation: <TError = Promise<AuthenticationInformation403>>(options?: {
|
|
1628
1665
|
swr?: SWRConfiguration<Awaited<ReturnType<typeof authenticationInformation>>, TError> & {
|
|
1629
1666
|
swrKey?: Key;
|
|
@@ -1638,6 +1675,9 @@ declare const useAuthenticationInformation: <TError = Promise<AuthenticationInfo
|
|
|
1638
1675
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1639
1676
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1640
1677
|
};
|
|
1678
|
+
/**
|
|
1679
|
+
* Sets a password for the authenticated user. Only available when the user does not already have a password configured. Requires elevated access.
|
|
1680
|
+
*/
|
|
1641
1681
|
type createPasswordResponse201 = {
|
|
1642
1682
|
data: CreatePassword201;
|
|
1643
1683
|
status: 201;
|
|
@@ -1664,7 +1704,6 @@ declare const getCreatePasswordMutationFetcher: (options?: RequestInit) => (_: K
|
|
|
1664
1704
|
}) => Promise<createPasswordResponse>;
|
|
1665
1705
|
declare const getCreatePasswordMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/create-password"];
|
|
1666
1706
|
type CreatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof createPassword>>>;
|
|
1667
|
-
type CreatePasswordMutationError = Promise<CreatePassword400 | CreatePassword403>;
|
|
1668
1707
|
declare const useCreatePassword: <TError = Promise<CreatePassword400 | CreatePassword403>>(options?: {
|
|
1669
1708
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createPassword>>, TError, Key, CreatePasswordRequest, Awaited<ReturnType<typeof createPassword>>> & {
|
|
1670
1709
|
swrKey?: string;
|
|
@@ -1678,240 +1717,129 @@ declare const useCreatePassword: <TError = Promise<CreatePassword400 | CreatePas
|
|
|
1678
1717
|
data: createPasswordResponse | undefined;
|
|
1679
1718
|
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/create-password"];
|
|
1680
1719
|
};
|
|
1681
|
-
|
|
1682
|
-
|
|
1720
|
+
/**
|
|
1721
|
+
* Initiates TOTP (authenticator app) enrollment for the authenticated user by generating a new TOTP secret and QR code. Requires elevated access.
|
|
1722
|
+
*/
|
|
1723
|
+
type createTotpFactorResponse201 = {
|
|
1724
|
+
data: CreateTotpFactorResponse;
|
|
1683
1725
|
status: 201;
|
|
1684
1726
|
};
|
|
1685
|
-
type
|
|
1686
|
-
data:
|
|
1727
|
+
type createTotpFactorResponse400 = {
|
|
1728
|
+
data: CreateTotpFactor400;
|
|
1687
1729
|
status: 400;
|
|
1688
1730
|
};
|
|
1689
|
-
type
|
|
1690
|
-
data:
|
|
1731
|
+
type createTotpFactorResponse403 = {
|
|
1732
|
+
data: CreateTotpFactor403;
|
|
1691
1733
|
status: 403;
|
|
1692
1734
|
};
|
|
1693
|
-
type
|
|
1735
|
+
type createTotpFactorResponseSuccess = createTotpFactorResponse201 & {
|
|
1694
1736
|
headers: Headers;
|
|
1695
1737
|
};
|
|
1696
|
-
type
|
|
1738
|
+
type createTotpFactorResponseError = (createTotpFactorResponse400 | createTotpFactorResponse403) & {
|
|
1697
1739
|
headers: Headers;
|
|
1698
1740
|
};
|
|
1699
|
-
type
|
|
1700
|
-
declare const
|
|
1701
|
-
declare const
|
|
1702
|
-
declare const
|
|
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, __: {
|
|
1741
|
+
type createTotpFactorResponse = createTotpFactorResponseSuccess | createTotpFactorResponseError;
|
|
1742
|
+
declare const getCreateTotpFactorUrl: () => string;
|
|
1743
|
+
declare const createTotpFactor: (options?: RequestInit) => Promise<createTotpFactorResponse>;
|
|
1744
|
+
declare const getCreateTotpFactorMutationFetcher: (options?: RequestInit) => (_: Key, __: {
|
|
1783
1745
|
arg: Arguments;
|
|
1784
|
-
}) => Promise<
|
|
1785
|
-
declare const
|
|
1786
|
-
type
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeSession>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeSession>>> & {
|
|
1746
|
+
}) => Promise<createTotpFactorResponse>;
|
|
1747
|
+
declare const getCreateTotpFactorMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/create-totp-factor"];
|
|
1748
|
+
type CreateTotpFactorMutationResult = NonNullable<Awaited<ReturnType<typeof createTotpFactor>>>;
|
|
1749
|
+
declare const useCreateTotpFactor: <TError = Promise<CreateTotpFactor400 | CreateTotpFactor403>>(options?: {
|
|
1750
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createTotpFactor>>, TError, Key, Arguments, Awaited<ReturnType<typeof createTotpFactor>>> & {
|
|
1790
1751
|
swrKey?: string;
|
|
1791
1752
|
};
|
|
1792
1753
|
fetch?: RequestInit;
|
|
1793
1754
|
}) => {
|
|
1794
1755
|
isMutating: boolean;
|
|
1795
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<
|
|
1756
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<createTotpFactorResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/create-totp-factor"], Arguments>;
|
|
1796
1757
|
reset: () => void;
|
|
1797
1758
|
error: TError | undefined;
|
|
1798
|
-
data:
|
|
1799
|
-
swrKey: string | readonly [
|
|
1759
|
+
data: createTotpFactorResponse | undefined;
|
|
1760
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/create-totp-factor"];
|
|
1800
1761
|
};
|
|
1801
|
-
|
|
1802
|
-
|
|
1762
|
+
/**
|
|
1763
|
+
* Returns the profile information of the currently authenticated user, including their name, email, and linked authentication factors.
|
|
1764
|
+
*/
|
|
1765
|
+
type meResponse200 = {
|
|
1766
|
+
data: Me;
|
|
1803
1767
|
status: 200;
|
|
1804
1768
|
};
|
|
1805
|
-
type
|
|
1806
|
-
data:
|
|
1769
|
+
type meResponse403 = {
|
|
1770
|
+
data: Me403;
|
|
1807
1771
|
status: 403;
|
|
1808
1772
|
};
|
|
1809
|
-
type
|
|
1773
|
+
type meResponseSuccess = meResponse200 & {
|
|
1810
1774
|
headers: Headers;
|
|
1811
1775
|
};
|
|
1812
|
-
type
|
|
1776
|
+
type meResponseError = meResponse403 & {
|
|
1813
1777
|
headers: Headers;
|
|
1814
1778
|
};
|
|
1815
|
-
type
|
|
1816
|
-
declare const
|
|
1817
|
-
declare const
|
|
1818
|
-
declare const
|
|
1819
|
-
type
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof sessions>>, TError> & {
|
|
1779
|
+
type meResponse = meResponseSuccess | meResponseError;
|
|
1780
|
+
declare const getMeUrl: () => string;
|
|
1781
|
+
declare const me: (options?: RequestInit) => Promise<meResponse>;
|
|
1782
|
+
declare const getMeKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/me"];
|
|
1783
|
+
type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;
|
|
1784
|
+
declare const useMe: <TError = Promise<Me403>>(options?: {
|
|
1785
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof me>>, TError> & {
|
|
1823
1786
|
swrKey?: Key;
|
|
1824
1787
|
enabled?: boolean;
|
|
1825
1788
|
};
|
|
1826
1789
|
fetch?: RequestInit;
|
|
1827
1790
|
}) => {
|
|
1828
|
-
data:
|
|
1791
|
+
data: meResponse | undefined;
|
|
1829
1792
|
error: TError | undefined;
|
|
1830
|
-
mutate: swr.KeyedMutator<
|
|
1793
|
+
mutate: swr.KeyedMutator<meResponse>;
|
|
1831
1794
|
isValidating: boolean;
|
|
1832
1795
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1833
1796
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1834
1797
|
};
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
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;
|
|
1798
|
+
/**
|
|
1799
|
+
* Updates the profile information of the currently authenticated user, such as their first name, last name, or email address.
|
|
1800
|
+
*/
|
|
1801
|
+
type updateMeResponse200 = {
|
|
1802
|
+
data: Me;
|
|
1877
1803
|
status: 200;
|
|
1878
1804
|
};
|
|
1879
|
-
type
|
|
1880
|
-
data:
|
|
1805
|
+
type updateMeResponse400 = {
|
|
1806
|
+
data: UpdateMe400;
|
|
1881
1807
|
status: 400;
|
|
1882
1808
|
};
|
|
1883
|
-
type
|
|
1884
|
-
data:
|
|
1809
|
+
type updateMeResponse403 = {
|
|
1810
|
+
data: UpdateMe403;
|
|
1885
1811
|
status: 403;
|
|
1886
1812
|
};
|
|
1887
|
-
type
|
|
1813
|
+
type updateMeResponseSuccess = updateMeResponse200 & {
|
|
1888
1814
|
headers: Headers;
|
|
1889
1815
|
};
|
|
1890
|
-
type
|
|
1816
|
+
type updateMeResponseError = (updateMeResponse400 | updateMeResponse403) & {
|
|
1891
1817
|
headers: Headers;
|
|
1892
1818
|
};
|
|
1893
|
-
type
|
|
1894
|
-
declare const
|
|
1895
|
-
declare const
|
|
1896
|
-
declare const
|
|
1897
|
-
arg:
|
|
1898
|
-
}) => Promise<
|
|
1899
|
-
declare const
|
|
1900
|
-
type
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verify>>, TError, Key, VerifyRequest, Awaited<ReturnType<typeof verify>>> & {
|
|
1819
|
+
type updateMeResponse = updateMeResponseSuccess | updateMeResponseError;
|
|
1820
|
+
declare const getUpdateMeUrl: () => string;
|
|
1821
|
+
declare const updateMe: (updateMeBody: UpdateMeBody, options?: RequestInit) => Promise<updateMeResponse>;
|
|
1822
|
+
declare const getUpdateMeMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
|
|
1823
|
+
arg: UpdateMeBody;
|
|
1824
|
+
}) => Promise<updateMeResponse>;
|
|
1825
|
+
declare const getUpdateMeMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/me"];
|
|
1826
|
+
type UpdateMeMutationResult = NonNullable<Awaited<ReturnType<typeof updateMe>>>;
|
|
1827
|
+
declare const useUpdateMe: <TError = Promise<UpdateMe400 | UpdateMe403>>(options?: {
|
|
1828
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updateMe>>, TError, Key, UpdateMeBody, Awaited<ReturnType<typeof updateMe>>> & {
|
|
1904
1829
|
swrKey?: string;
|
|
1905
1830
|
};
|
|
1906
1831
|
fetch?: RequestInit;
|
|
1907
1832
|
}) => {
|
|
1908
1833
|
isMutating: boolean;
|
|
1909
|
-
trigger: swr_mutation.TriggerWithArgs<
|
|
1834
|
+
trigger: swr_mutation.TriggerWithArgs<updateMeResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/me"], UpdateMeBody>;
|
|
1910
1835
|
reset: () => void;
|
|
1911
1836
|
error: TError | undefined;
|
|
1912
|
-
data:
|
|
1913
|
-
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/
|
|
1837
|
+
data: updateMeResponse | undefined;
|
|
1838
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/me"];
|
|
1914
1839
|
};
|
|
1840
|
+
/**
|
|
1841
|
+
* Initiates passkey (WebAuthn) registration for the authenticated user by returning the credential creation options. Requires elevated access.
|
|
1842
|
+
*/
|
|
1915
1843
|
type registerPasskeyResponse201 = {
|
|
1916
1844
|
data: RegisterPasskeyResponse;
|
|
1917
1845
|
status: 201;
|
|
@@ -1938,7 +1866,6 @@ declare const getRegisterPasskeyMutationFetcher: (options?: RequestInit) => (_:
|
|
|
1938
1866
|
}) => Promise<registerPasskeyResponse>;
|
|
1939
1867
|
declare const getRegisterPasskeyMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/passkeys"];
|
|
1940
1868
|
type RegisterPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof registerPasskey>>>;
|
|
1941
|
-
type RegisterPasskeyMutationError = Promise<RegisterPasskey400 | RegisterPasskey403>;
|
|
1942
1869
|
declare const useRegisterPasskey: <TError = Promise<RegisterPasskey400 | RegisterPasskey403>>(options?: {
|
|
1943
1870
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof registerPasskey>>, TError, Key, Arguments, Awaited<ReturnType<typeof registerPasskey>>> & {
|
|
1944
1871
|
swrKey?: string;
|
|
@@ -1952,6 +1879,9 @@ declare const useRegisterPasskey: <TError = Promise<RegisterPasskey400 | Registe
|
|
|
1952
1879
|
data: registerPasskeyResponse | undefined;
|
|
1953
1880
|
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/passkeys"];
|
|
1954
1881
|
};
|
|
1882
|
+
/**
|
|
1883
|
+
* Completes passkey (WebAuthn) registration by verifying the credential created by the authenticator. Requires elevated access.
|
|
1884
|
+
*/
|
|
1955
1885
|
type verifyPasskeyResponse200 = {
|
|
1956
1886
|
data: VerifyPasskey200;
|
|
1957
1887
|
status: 200;
|
|
@@ -1978,7 +1908,6 @@ declare const getVerifyPasskeyMutationFetcher: (options?: RequestInit) => (_: Ke
|
|
|
1978
1908
|
}) => Promise<verifyPasskeyResponse>;
|
|
1979
1909
|
declare const getVerifyPasskeyMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/passkeys/verify"];
|
|
1980
1910
|
type VerifyPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof verifyPasskey>>>;
|
|
1981
|
-
type VerifyPasskeyMutationError = Promise<VerifyPasskey400 | VerifyPasskey403>;
|
|
1982
1911
|
declare const useVerifyPasskey: <TError = Promise<VerifyPasskey400 | VerifyPasskey403>>(options?: {
|
|
1983
1912
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verifyPasskey>>, TError, Key, VerifyPasskeyRequest, Awaited<ReturnType<typeof verifyPasskey>>> & {
|
|
1984
1913
|
swrKey?: string;
|
|
@@ -1992,6 +1921,9 @@ declare const useVerifyPasskey: <TError = Promise<VerifyPasskey400 | VerifyPassk
|
|
|
1992
1921
|
data: verifyPasskeyResponse | undefined;
|
|
1993
1922
|
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/passkeys/verify"];
|
|
1994
1923
|
};
|
|
1924
|
+
/**
|
|
1925
|
+
* Removes the specified passkey from the authenticated user's account. Requires elevated access.
|
|
1926
|
+
*/
|
|
1995
1927
|
type deletePasskeyResponse200 = {
|
|
1996
1928
|
data: DeletePasskey200;
|
|
1997
1929
|
status: 200;
|
|
@@ -2018,7 +1950,6 @@ declare const getDeletePasskeyMutationFetcher: (passkeyId: string, options?: Req
|
|
|
2018
1950
|
}) => Promise<deletePasskeyResponse>;
|
|
2019
1951
|
declare const getDeletePasskeyMutationKey: (passkeyId: string) => readonly [`https://api.workos.com/_widgets/UserProfile/passkeys/${string}`];
|
|
2020
1952
|
type DeletePasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof deletePasskey>>>;
|
|
2021
|
-
type DeletePasskeyMutationError = Promise<DeletePasskey400 | DeletePasskey403>;
|
|
2022
1953
|
declare const useDeletePasskey: <TError = Promise<DeletePasskey400 | DeletePasskey403>>(passkeyId: string, options?: {
|
|
2023
1954
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deletePasskey>>, TError, Key, Arguments, Awaited<ReturnType<typeof deletePasskey>>> & {
|
|
2024
1955
|
swrKey?: string;
|
|
@@ -2032,554 +1963,666 @@ declare const useDeletePasskey: <TError = Promise<DeletePasskey400 | DeletePassk
|
|
|
2032
1963
|
data: deletePasskeyResponse | undefined;
|
|
2033
1964
|
swrKey: string | readonly [`https://api.workos.com/_widgets/UserProfile/passkeys/${string}`];
|
|
2034
1965
|
};
|
|
2035
|
-
|
|
2036
|
-
|
|
1966
|
+
/**
|
|
1967
|
+
* Sends a verification email to the authenticated user to confirm their email address.
|
|
1968
|
+
*/
|
|
1969
|
+
type sendVerificationResponse200 = {
|
|
1970
|
+
data: SendVerificationResponse;
|
|
2037
1971
|
status: 200;
|
|
2038
1972
|
};
|
|
2039
|
-
type
|
|
2040
|
-
data:
|
|
1973
|
+
type sendVerificationResponse400 = {
|
|
1974
|
+
data: SendVerification400;
|
|
1975
|
+
status: 400;
|
|
1976
|
+
};
|
|
1977
|
+
type sendVerificationResponse403 = {
|
|
1978
|
+
data: SendVerification403;
|
|
2041
1979
|
status: 403;
|
|
2042
1980
|
};
|
|
2043
|
-
type
|
|
1981
|
+
type sendVerificationResponseSuccess = sendVerificationResponse200 & {
|
|
2044
1982
|
headers: Headers;
|
|
2045
1983
|
};
|
|
2046
|
-
type
|
|
1984
|
+
type sendVerificationResponseError = (sendVerificationResponse400 | sendVerificationResponse403) & {
|
|
2047
1985
|
headers: Headers;
|
|
2048
1986
|
};
|
|
2049
|
-
type
|
|
2050
|
-
declare const
|
|
2051
|
-
declare const
|
|
2052
|
-
declare const
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
declare const
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
1987
|
+
type sendVerificationResponse = sendVerificationResponseSuccess | sendVerificationResponseError;
|
|
1988
|
+
declare const getSendVerificationUrl: () => string;
|
|
1989
|
+
declare const sendVerification: (options?: RequestInit) => Promise<sendVerificationResponse>;
|
|
1990
|
+
declare const getSendVerificationMutationFetcher: (options?: RequestInit) => (_: Key, __: {
|
|
1991
|
+
arg: Arguments;
|
|
1992
|
+
}) => Promise<sendVerificationResponse>;
|
|
1993
|
+
declare const getSendVerificationMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/send-verification"];
|
|
1994
|
+
type SendVerificationMutationResult = NonNullable<Awaited<ReturnType<typeof sendVerification>>>;
|
|
1995
|
+
declare const useSendVerification: <TError = Promise<SendVerification400 | SendVerification403>>(options?: {
|
|
1996
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof sendVerification>>, TError, Key, Arguments, Awaited<ReturnType<typeof sendVerification>>> & {
|
|
1997
|
+
swrKey?: string;
|
|
2059
1998
|
};
|
|
2060
1999
|
fetch?: RequestInit;
|
|
2061
2000
|
}) => {
|
|
2062
|
-
|
|
2001
|
+
isMutating: boolean;
|
|
2002
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<sendVerificationResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/send-verification"], Arguments>;
|
|
2003
|
+
reset: () => void;
|
|
2063
2004
|
error: TError | undefined;
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2067
|
-
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2005
|
+
data: sendVerificationResponse | undefined;
|
|
2006
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/send-verification"];
|
|
2068
2007
|
};
|
|
2069
|
-
|
|
2070
|
-
|
|
2008
|
+
/**
|
|
2009
|
+
* Returns all currently active sessions for the authenticated user, including device and location information where available.
|
|
2010
|
+
*/
|
|
2011
|
+
type sessionsResponse200 = {
|
|
2012
|
+
data: ActiveSessionsResponse;
|
|
2071
2013
|
status: 200;
|
|
2072
2014
|
};
|
|
2073
|
-
type
|
|
2074
|
-
data:
|
|
2015
|
+
type sessionsResponse403 = {
|
|
2016
|
+
data: Sessions403;
|
|
2075
2017
|
status: 403;
|
|
2076
2018
|
};
|
|
2077
|
-
type
|
|
2078
|
-
data: ListOrganizationDomains404;
|
|
2079
|
-
status: 404;
|
|
2080
|
-
};
|
|
2081
|
-
type listOrganizationDomainsResponseSuccess = listOrganizationDomainsResponse200 & {
|
|
2019
|
+
type sessionsResponseSuccess = sessionsResponse200 & {
|
|
2082
2020
|
headers: Headers;
|
|
2083
2021
|
};
|
|
2084
|
-
type
|
|
2022
|
+
type sessionsResponseError = sessionsResponse403 & {
|
|
2085
2023
|
headers: Headers;
|
|
2086
2024
|
};
|
|
2087
|
-
type
|
|
2088
|
-
declare const
|
|
2089
|
-
declare const
|
|
2090
|
-
declare const
|
|
2091
|
-
type
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationDomains>>, TError> & {
|
|
2025
|
+
type sessionsResponse = sessionsResponseSuccess | sessionsResponseError;
|
|
2026
|
+
declare const getSessionsUrl: () => string;
|
|
2027
|
+
declare const sessions: (options?: RequestInit) => Promise<sessionsResponse>;
|
|
2028
|
+
declare const getSessionsKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/sessions"];
|
|
2029
|
+
type SessionsQueryResult = NonNullable<Awaited<ReturnType<typeof sessions>>>;
|
|
2030
|
+
declare const useSessions: <TError = Promise<Sessions403>>(options?: {
|
|
2031
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof sessions>>, TError> & {
|
|
2095
2032
|
swrKey?: Key;
|
|
2096
2033
|
enabled?: boolean;
|
|
2097
2034
|
};
|
|
2098
2035
|
fetch?: RequestInit;
|
|
2099
2036
|
}) => {
|
|
2100
|
-
data:
|
|
2037
|
+
data: sessionsResponse | undefined;
|
|
2101
2038
|
error: TError | undefined;
|
|
2102
|
-
mutate: swr.KeyedMutator<
|
|
2039
|
+
mutate: swr.KeyedMutator<sessionsResponse>;
|
|
2103
2040
|
isValidating: boolean;
|
|
2104
2041
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2105
2042
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2106
2043
|
};
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2044
|
+
/**
|
|
2045
|
+
* Revokes all active sessions for the authenticated user except optionally the current one, signing them out of all other devices.
|
|
2046
|
+
*/
|
|
2047
|
+
type revokeAllSessionsResponse200 = {
|
|
2048
|
+
data: RevokeAllSessions200;
|
|
2049
|
+
status: 200;
|
|
2110
2050
|
};
|
|
2111
|
-
type
|
|
2112
|
-
data:
|
|
2051
|
+
type revokeAllSessionsResponse400 = {
|
|
2052
|
+
data: RevokeAllSessions400;
|
|
2053
|
+
status: 400;
|
|
2054
|
+
};
|
|
2055
|
+
type revokeAllSessionsResponse403 = {
|
|
2056
|
+
data: RevokeAllSessions403;
|
|
2113
2057
|
status: 403;
|
|
2114
2058
|
};
|
|
2115
|
-
type
|
|
2116
|
-
|
|
2117
|
-
status: 404;
|
|
2059
|
+
type revokeAllSessionsResponseSuccess = revokeAllSessionsResponse200 & {
|
|
2060
|
+
headers: Headers;
|
|
2118
2061
|
};
|
|
2119
|
-
type
|
|
2120
|
-
|
|
2121
|
-
status: 500;
|
|
2062
|
+
type revokeAllSessionsResponseError = (revokeAllSessionsResponse400 | revokeAllSessionsResponse403) & {
|
|
2063
|
+
headers: Headers;
|
|
2122
2064
|
};
|
|
2123
|
-
type
|
|
2065
|
+
type revokeAllSessionsResponse = revokeAllSessionsResponseSuccess | revokeAllSessionsResponseError;
|
|
2066
|
+
declare const getRevokeAllSessionsUrl: () => string;
|
|
2067
|
+
declare const revokeAllSessions: (revokeAllSessionsRequest: RevokeAllSessionsRequest, options?: RequestInit) => Promise<revokeAllSessionsResponse>;
|
|
2068
|
+
declare const getRevokeAllSessionsMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
|
|
2069
|
+
arg: RevokeAllSessionsRequest;
|
|
2070
|
+
}) => Promise<revokeAllSessionsResponse>;
|
|
2071
|
+
declare const getRevokeAllSessionsMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/sessions/revoke-all"];
|
|
2072
|
+
type RevokeAllSessionsMutationResult = NonNullable<Awaited<ReturnType<typeof revokeAllSessions>>>;
|
|
2073
|
+
declare const useRevokeAllSessions: <TError = Promise<RevokeAllSessions400 | RevokeAllSessions403>>(options?: {
|
|
2074
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeAllSessions>>, TError, Key, RevokeAllSessionsRequest, Awaited<ReturnType<typeof revokeAllSessions>>> & {
|
|
2075
|
+
swrKey?: string;
|
|
2076
|
+
};
|
|
2077
|
+
fetch?: RequestInit;
|
|
2078
|
+
}) => {
|
|
2079
|
+
isMutating: boolean;
|
|
2080
|
+
trigger: swr_mutation.TriggerWithArgs<revokeAllSessionsResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/sessions/revoke-all"], RevokeAllSessionsRequest>;
|
|
2081
|
+
reset: () => void;
|
|
2082
|
+
error: TError | undefined;
|
|
2083
|
+
data: revokeAllSessionsResponse | undefined;
|
|
2084
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/sessions/revoke-all"];
|
|
2085
|
+
};
|
|
2086
|
+
/**
|
|
2087
|
+
* Revokes a specific active session by ID, signing the user out of that particular device or browser.
|
|
2088
|
+
*/
|
|
2089
|
+
type revokeSessionResponse200 = {
|
|
2090
|
+
data: RevokeSession200;
|
|
2091
|
+
status: 200;
|
|
2092
|
+
};
|
|
2093
|
+
type revokeSessionResponse400 = {
|
|
2094
|
+
data: RevokeSession400;
|
|
2095
|
+
status: 400;
|
|
2096
|
+
};
|
|
2097
|
+
type revokeSessionResponse403 = {
|
|
2098
|
+
data: RevokeSession403;
|
|
2099
|
+
status: 403;
|
|
2100
|
+
};
|
|
2101
|
+
type revokeSessionResponseSuccess = revokeSessionResponse200 & {
|
|
2124
2102
|
headers: Headers;
|
|
2125
2103
|
};
|
|
2126
|
-
type
|
|
2104
|
+
type revokeSessionResponseError = (revokeSessionResponse400 | revokeSessionResponse403) & {
|
|
2127
2105
|
headers: Headers;
|
|
2128
2106
|
};
|
|
2129
|
-
type
|
|
2130
|
-
declare const
|
|
2131
|
-
declare const
|
|
2132
|
-
declare const
|
|
2107
|
+
type revokeSessionResponse = revokeSessionResponseSuccess | revokeSessionResponseError;
|
|
2108
|
+
declare const getRevokeSessionUrl: (sessionId: string) => string;
|
|
2109
|
+
declare const revokeSession: (sessionId: string, options?: RequestInit) => Promise<revokeSessionResponse>;
|
|
2110
|
+
declare const getRevokeSessionMutationFetcher: (sessionId: string, options?: RequestInit) => (_: Key, __: {
|
|
2133
2111
|
arg: Arguments;
|
|
2134
|
-
}) => Promise<
|
|
2135
|
-
declare const
|
|
2136
|
-
type
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof generateAdminPortalLink>>, TError, Key, Arguments, Awaited<ReturnType<typeof generateAdminPortalLink>>> & {
|
|
2112
|
+
}) => Promise<revokeSessionResponse>;
|
|
2113
|
+
declare const getRevokeSessionMutationKey: (sessionId: string) => readonly [`https://api.workos.com/_widgets/UserProfile/sessions/revoke/${string}`];
|
|
2114
|
+
type RevokeSessionMutationResult = NonNullable<Awaited<ReturnType<typeof revokeSession>>>;
|
|
2115
|
+
declare const useRevokeSession: <TError = Promise<RevokeSession400 | RevokeSession403>>(sessionId: string, options?: {
|
|
2116
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeSession>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeSession>>> & {
|
|
2140
2117
|
swrKey?: string;
|
|
2141
2118
|
};
|
|
2142
2119
|
fetch?: RequestInit;
|
|
2143
2120
|
}) => {
|
|
2144
2121
|
isMutating: boolean;
|
|
2145
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<
|
|
2122
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<revokeSessionResponse, TError, string | readonly [`https://api.workos.com/_widgets/UserProfile/sessions/revoke/${string}`], Arguments>;
|
|
2146
2123
|
reset: () => void;
|
|
2147
2124
|
error: TError | undefined;
|
|
2148
|
-
data:
|
|
2149
|
-
swrKey: string | readonly [
|
|
2125
|
+
data: revokeSessionResponse | undefined;
|
|
2126
|
+
swrKey: string | readonly [`https://api.workos.com/_widgets/UserProfile/sessions/revoke/${string}`];
|
|
2150
2127
|
};
|
|
2151
|
-
|
|
2152
|
-
|
|
2128
|
+
/**
|
|
2129
|
+
* Removes all TOTP factors enrolled for the authenticated user, disabling authenticator app as a second factor. Requires elevated access.
|
|
2130
|
+
*/
|
|
2131
|
+
type deleteTotpFactorsResponse200 = {
|
|
2132
|
+
data: DeleteTotpFactors200;
|
|
2153
2133
|
status: 200;
|
|
2154
2134
|
};
|
|
2155
|
-
type
|
|
2156
|
-
data:
|
|
2157
|
-
status:
|
|
2135
|
+
type deleteTotpFactorsResponse400 = {
|
|
2136
|
+
data: DeleteTotpFactors400;
|
|
2137
|
+
status: 400;
|
|
2158
2138
|
};
|
|
2159
|
-
type
|
|
2160
|
-
data:
|
|
2161
|
-
status:
|
|
2139
|
+
type deleteTotpFactorsResponse403 = {
|
|
2140
|
+
data: DeleteTotpFactors403;
|
|
2141
|
+
status: 403;
|
|
2162
2142
|
};
|
|
2163
|
-
type
|
|
2143
|
+
type deleteTotpFactorsResponseSuccess = deleteTotpFactorsResponse200 & {
|
|
2164
2144
|
headers: Headers;
|
|
2165
2145
|
};
|
|
2166
|
-
type
|
|
2146
|
+
type deleteTotpFactorsResponseError = (deleteTotpFactorsResponse400 | deleteTotpFactorsResponse403) & {
|
|
2167
2147
|
headers: Headers;
|
|
2168
2148
|
};
|
|
2169
|
-
type
|
|
2170
|
-
declare const
|
|
2171
|
-
declare const
|
|
2172
|
-
declare const
|
|
2149
|
+
type deleteTotpFactorsResponse = deleteTotpFactorsResponseSuccess | deleteTotpFactorsResponseError;
|
|
2150
|
+
declare const getDeleteTotpFactorsUrl: () => string;
|
|
2151
|
+
declare const deleteTotpFactors: (options?: RequestInit) => Promise<deleteTotpFactorsResponse>;
|
|
2152
|
+
declare const getDeleteTotpFactorsMutationFetcher: (options?: RequestInit) => (_: Key, __: {
|
|
2173
2153
|
arg: Arguments;
|
|
2174
|
-
}) => Promise<
|
|
2175
|
-
declare const
|
|
2176
|
-
type
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteOrganizationDomain>>> & {
|
|
2154
|
+
}) => Promise<deleteTotpFactorsResponse>;
|
|
2155
|
+
declare const getDeleteTotpFactorsMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"];
|
|
2156
|
+
type DeleteTotpFactorsMutationResult = NonNullable<Awaited<ReturnType<typeof deleteTotpFactors>>>;
|
|
2157
|
+
declare const useDeleteTotpFactors: <TError = Promise<DeleteTotpFactors400 | DeleteTotpFactors403>>(options?: {
|
|
2158
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteTotpFactors>>> & {
|
|
2180
2159
|
swrKey?: string;
|
|
2181
2160
|
};
|
|
2182
2161
|
fetch?: RequestInit;
|
|
2183
2162
|
}) => {
|
|
2184
2163
|
isMutating: boolean;
|
|
2185
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<
|
|
2164
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<deleteTotpFactorsResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"], Arguments>;
|
|
2186
2165
|
reset: () => void;
|
|
2187
2166
|
error: TError | undefined;
|
|
2188
|
-
data:
|
|
2189
|
-
swrKey: string | readonly [
|
|
2167
|
+
data: deleteTotpFactorsResponse | undefined;
|
|
2168
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/totp-factors"];
|
|
2190
2169
|
};
|
|
2191
|
-
|
|
2192
|
-
|
|
2170
|
+
/**
|
|
2171
|
+
* Changes the password for the authenticated user. Requires the current password to be supplied alongside the new password.
|
|
2172
|
+
*/
|
|
2173
|
+
type updatePasswordResponse201 = {
|
|
2174
|
+
data: UpdatePassword201;
|
|
2175
|
+
status: 201;
|
|
2176
|
+
};
|
|
2177
|
+
type updatePasswordResponse400 = {
|
|
2178
|
+
data: UpdatePassword400;
|
|
2179
|
+
status: 400;
|
|
2180
|
+
};
|
|
2181
|
+
type updatePasswordResponse403 = {
|
|
2182
|
+
data: UpdatePassword403;
|
|
2183
|
+
status: 403;
|
|
2184
|
+
};
|
|
2185
|
+
type updatePasswordResponseSuccess = updatePasswordResponse201 & {
|
|
2186
|
+
headers: Headers;
|
|
2187
|
+
};
|
|
2188
|
+
type updatePasswordResponseError = (updatePasswordResponse400 | updatePasswordResponse403) & {
|
|
2189
|
+
headers: Headers;
|
|
2190
|
+
};
|
|
2191
|
+
type updatePasswordResponse = updatePasswordResponseSuccess | updatePasswordResponseError;
|
|
2192
|
+
declare const getUpdatePasswordUrl: () => string;
|
|
2193
|
+
declare const updatePassword: (updatePasswordRequest: UpdatePasswordRequest, options?: RequestInit) => Promise<updatePasswordResponse>;
|
|
2194
|
+
declare const getUpdatePasswordMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
|
|
2195
|
+
arg: UpdatePasswordRequest;
|
|
2196
|
+
}) => Promise<updatePasswordResponse>;
|
|
2197
|
+
declare const getUpdatePasswordMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/update-password"];
|
|
2198
|
+
type UpdatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof updatePassword>>>;
|
|
2199
|
+
declare const useUpdatePassword: <TError = Promise<UpdatePassword400 | UpdatePassword403>>(options?: {
|
|
2200
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof updatePassword>>, TError, Key, UpdatePasswordRequest, Awaited<ReturnType<typeof updatePassword>>> & {
|
|
2201
|
+
swrKey?: string;
|
|
2202
|
+
};
|
|
2203
|
+
fetch?: RequestInit;
|
|
2204
|
+
}) => {
|
|
2205
|
+
isMutating: boolean;
|
|
2206
|
+
trigger: swr_mutation.TriggerWithArgs<updatePasswordResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/update-password"], UpdatePasswordRequest>;
|
|
2207
|
+
reset: () => void;
|
|
2208
|
+
error: TError | undefined;
|
|
2209
|
+
data: updatePasswordResponse | undefined;
|
|
2210
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/update-password"];
|
|
2211
|
+
};
|
|
2212
|
+
/**
|
|
2213
|
+
* Verifies the email address of the authenticated user using the code sent via the send-verification endpoint. On success, returns an elevated access token that grants access to sensitive operations such as MFA enrollment and passkey management.
|
|
2214
|
+
*/
|
|
2215
|
+
type verifyResponse200 = {
|
|
2216
|
+
data: VerifyResponse;
|
|
2193
2217
|
status: 200;
|
|
2194
2218
|
};
|
|
2195
|
-
type
|
|
2196
|
-
data:
|
|
2219
|
+
type verifyResponse400 = {
|
|
2220
|
+
data: Verify400;
|
|
2221
|
+
status: 400;
|
|
2222
|
+
};
|
|
2223
|
+
type verifyResponse403 = {
|
|
2224
|
+
data: Verify403;
|
|
2197
2225
|
status: 403;
|
|
2198
2226
|
};
|
|
2199
|
-
type
|
|
2200
|
-
|
|
2201
|
-
status: 404;
|
|
2227
|
+
type verifyResponseSuccess = verifyResponse200 & {
|
|
2228
|
+
headers: Headers;
|
|
2202
2229
|
};
|
|
2203
|
-
type
|
|
2230
|
+
type verifyResponseError = (verifyResponse400 | verifyResponse403) & {
|
|
2204
2231
|
headers: Headers;
|
|
2205
2232
|
};
|
|
2206
|
-
type
|
|
2233
|
+
type verifyResponse = verifyResponseSuccess | verifyResponseError;
|
|
2234
|
+
declare const getVerifyUrl: () => string;
|
|
2235
|
+
declare const verify: (verifyRequest: VerifyRequest, options?: RequestInit) => Promise<verifyResponse>;
|
|
2236
|
+
declare const getVerifyMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
|
|
2237
|
+
arg: VerifyRequest;
|
|
2238
|
+
}) => Promise<verifyResponse>;
|
|
2239
|
+
declare const getVerifyMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/verify"];
|
|
2240
|
+
type VerifyMutationResult = NonNullable<Awaited<ReturnType<typeof verify>>>;
|
|
2241
|
+
declare const useVerify: <TError = Promise<Verify400 | Verify403>>(options?: {
|
|
2242
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verify>>, TError, Key, VerifyRequest, Awaited<ReturnType<typeof verify>>> & {
|
|
2243
|
+
swrKey?: string;
|
|
2244
|
+
};
|
|
2245
|
+
fetch?: RequestInit;
|
|
2246
|
+
}) => {
|
|
2247
|
+
isMutating: boolean;
|
|
2248
|
+
trigger: swr_mutation.TriggerWithArgs<verifyResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/verify"], VerifyRequest>;
|
|
2249
|
+
reset: () => void;
|
|
2250
|
+
error: TError | undefined;
|
|
2251
|
+
data: verifyResponse | undefined;
|
|
2252
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/verify"];
|
|
2253
|
+
};
|
|
2254
|
+
/**
|
|
2255
|
+
* Completes TOTP enrollment by verifying the one-time code generated by the authenticator app. Requires elevated access.
|
|
2256
|
+
*/
|
|
2257
|
+
type verifyTotpFactorResponse200 = {
|
|
2258
|
+
data: VerifyTotpFactor200;
|
|
2259
|
+
status: 200;
|
|
2260
|
+
};
|
|
2261
|
+
type verifyTotpFactorResponse400 = {
|
|
2262
|
+
data: VerifyTotpFactor400;
|
|
2263
|
+
status: 400;
|
|
2264
|
+
};
|
|
2265
|
+
type verifyTotpFactorResponse403 = {
|
|
2266
|
+
data: VerifyTotpFactor403;
|
|
2267
|
+
status: 403;
|
|
2268
|
+
};
|
|
2269
|
+
type verifyTotpFactorResponseSuccess = verifyTotpFactorResponse200 & {
|
|
2207
2270
|
headers: Headers;
|
|
2208
2271
|
};
|
|
2209
|
-
type
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
declare const
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
declare const
|
|
2219
|
-
|
|
2272
|
+
type verifyTotpFactorResponseError = (verifyTotpFactorResponse400 | verifyTotpFactorResponse403) & {
|
|
2273
|
+
headers: Headers;
|
|
2274
|
+
};
|
|
2275
|
+
type verifyTotpFactorResponse = verifyTotpFactorResponseSuccess | verifyTotpFactorResponseError;
|
|
2276
|
+
declare const getVerifyTotpFactorUrl: () => string;
|
|
2277
|
+
declare const verifyTotpFactor: (verifyTotpFactorRequest: VerifyTotpFactorRequest, options?: RequestInit) => Promise<verifyTotpFactorResponse>;
|
|
2278
|
+
declare const getVerifyTotpFactorMutationFetcher: (options?: RequestInit) => (_: Key, { arg }: {
|
|
2279
|
+
arg: VerifyTotpFactorRequest;
|
|
2280
|
+
}) => Promise<verifyTotpFactorResponse>;
|
|
2281
|
+
declare const getVerifyTotpFactorMutationKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/verify-totp-factor"];
|
|
2282
|
+
type VerifyTotpFactorMutationResult = NonNullable<Awaited<ReturnType<typeof verifyTotpFactor>>>;
|
|
2283
|
+
declare const useVerifyTotpFactor: <TError = Promise<VerifyTotpFactor400 | VerifyTotpFactor403>>(options?: {
|
|
2284
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, Key, VerifyTotpFactorRequest, Awaited<ReturnType<typeof verifyTotpFactor>>> & {
|
|
2220
2285
|
swrKey?: string;
|
|
2221
2286
|
};
|
|
2222
2287
|
fetch?: RequestInit;
|
|
2223
2288
|
}) => {
|
|
2224
2289
|
isMutating: boolean;
|
|
2225
|
-
trigger: swr_mutation.
|
|
2290
|
+
trigger: swr_mutation.TriggerWithArgs<verifyTotpFactorResponse, TError, string | readonly ["https://api.workos.com/_widgets/UserProfile/verify-totp-factor"], VerifyTotpFactorRequest>;
|
|
2226
2291
|
reset: () => void;
|
|
2227
2292
|
error: TError | undefined;
|
|
2228
|
-
data:
|
|
2229
|
-
swrKey: string | readonly [
|
|
2293
|
+
data: verifyTotpFactorResponse | undefined;
|
|
2294
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/UserProfile/verify-totp-factor"];
|
|
2230
2295
|
};
|
|
2231
|
-
type
|
|
2232
|
-
data:
|
|
2296
|
+
type getAuditLogStreamResponse200 = {
|
|
2297
|
+
data: GetAuditLogStream200;
|
|
2233
2298
|
status: 200;
|
|
2234
2299
|
};
|
|
2235
|
-
type
|
|
2300
|
+
type getAuditLogStreamResponse403 = {
|
|
2301
|
+
data: GetAuditLogStream403;
|
|
2302
|
+
status: 403;
|
|
2303
|
+
};
|
|
2304
|
+
type getAuditLogStreamResponseSuccess = getAuditLogStreamResponse200 & {
|
|
2236
2305
|
headers: Headers;
|
|
2237
2306
|
};
|
|
2238
|
-
type
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
declare const
|
|
2245
|
-
|
|
2307
|
+
type getAuditLogStreamResponseError = getAuditLogStreamResponse403 & {
|
|
2308
|
+
headers: Headers;
|
|
2309
|
+
};
|
|
2310
|
+
type getAuditLogStreamResponse = getAuditLogStreamResponseSuccess | getAuditLogStreamResponseError;
|
|
2311
|
+
declare const getGetAuditLogStreamUrl: () => string;
|
|
2312
|
+
declare const getAuditLogStream: (options?: RequestInit) => Promise<getAuditLogStreamResponse>;
|
|
2313
|
+
declare const getGetAuditLogStreamKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/audit-log-stream"];
|
|
2314
|
+
type GetAuditLogStreamQueryResult = NonNullable<Awaited<ReturnType<typeof getAuditLogStream>>>;
|
|
2315
|
+
declare const useGetAuditLogStream: <TError = Promise<GetAuditLogStream403>>(options?: {
|
|
2316
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getAuditLogStream>>, TError> & {
|
|
2246
2317
|
swrKey?: Key;
|
|
2247
2318
|
enabled?: boolean;
|
|
2248
2319
|
};
|
|
2249
2320
|
fetch?: RequestInit;
|
|
2250
2321
|
}) => {
|
|
2251
|
-
data:
|
|
2252
|
-
headers: Headers;
|
|
2253
|
-
}) | undefined;
|
|
2322
|
+
data: getAuditLogStreamResponse | undefined;
|
|
2254
2323
|
error: TError | undefined;
|
|
2255
|
-
mutate: swr.KeyedMutator<
|
|
2256
|
-
headers: Headers;
|
|
2257
|
-
}>;
|
|
2324
|
+
mutate: swr.KeyedMutator<getAuditLogStreamResponse>;
|
|
2258
2325
|
isValidating: boolean;
|
|
2259
2326
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2260
2327
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2261
2328
|
};
|
|
2262
|
-
type
|
|
2263
|
-
data:
|
|
2329
|
+
type generateAdminPortalLinkResponse201 = {
|
|
2330
|
+
data: GenerateAdminPortalLink201;
|
|
2264
2331
|
status: 201;
|
|
2265
2332
|
};
|
|
2266
|
-
type
|
|
2267
|
-
data:
|
|
2268
|
-
status: 400;
|
|
2269
|
-
};
|
|
2270
|
-
type createOrganizationApiKeyResponse403 = {
|
|
2271
|
-
data: CreateOrganizationApiKey403;
|
|
2333
|
+
type generateAdminPortalLinkResponse403 = {
|
|
2334
|
+
data: GenerateAdminPortalLink403;
|
|
2272
2335
|
status: 403;
|
|
2273
2336
|
};
|
|
2274
|
-
type
|
|
2275
|
-
data:
|
|
2337
|
+
type generateAdminPortalLinkResponse404 = {
|
|
2338
|
+
data: GenerateAdminPortalLink404;
|
|
2276
2339
|
status: 404;
|
|
2277
2340
|
};
|
|
2278
|
-
type
|
|
2279
|
-
data:
|
|
2280
|
-
status:
|
|
2341
|
+
type generateAdminPortalLinkResponse500 = {
|
|
2342
|
+
data: GenerateAdminPortalLink500;
|
|
2343
|
+
status: 500;
|
|
2281
2344
|
};
|
|
2282
|
-
type
|
|
2345
|
+
type generateAdminPortalLinkResponseSuccess = generateAdminPortalLinkResponse201 & {
|
|
2283
2346
|
headers: Headers;
|
|
2284
2347
|
};
|
|
2285
|
-
type
|
|
2348
|
+
type generateAdminPortalLinkResponseError = (generateAdminPortalLinkResponse403 | generateAdminPortalLinkResponse404 | generateAdminPortalLinkResponse500) & {
|
|
2286
2349
|
headers: Headers;
|
|
2287
2350
|
};
|
|
2288
|
-
type
|
|
2289
|
-
declare const
|
|
2290
|
-
declare const
|
|
2291
|
-
declare const
|
|
2292
|
-
arg:
|
|
2293
|
-
}) => Promise<
|
|
2294
|
-
declare const
|
|
2295
|
-
type
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, Key, CreateOrganizationApiKeyRequest, Awaited<ReturnType<typeof createOrganizationApiKey>>> & {
|
|
2351
|
+
type generateAdminPortalLinkResponse = generateAdminPortalLinkResponseSuccess | generateAdminPortalLinkResponseError;
|
|
2352
|
+
declare const getGenerateAdminPortalLinkUrl: (params: GenerateAdminPortalLinkParams) => string;
|
|
2353
|
+
declare const generateAdminPortalLink: (params: GenerateAdminPortalLinkParams, options?: RequestInit) => Promise<generateAdminPortalLinkResponse>;
|
|
2354
|
+
declare const getGenerateAdminPortalLinkMutationFetcher: (params: GenerateAdminPortalLinkParams, options?: RequestInit) => (_: Key, __: {
|
|
2355
|
+
arg: Arguments;
|
|
2356
|
+
}) => Promise<generateAdminPortalLinkResponse>;
|
|
2357
|
+
declare const getGenerateAdminPortalLinkMutationKey: (params: GenerateAdminPortalLinkParams) => readonly ["https://api.workos.com/_widgets/admin-portal/generate-link", ...GenerateAdminPortalLinkParams[]];
|
|
2358
|
+
type GenerateAdminPortalLinkMutationResult = NonNullable<Awaited<ReturnType<typeof generateAdminPortalLink>>>;
|
|
2359
|
+
declare const useGenerateAdminPortalLink: <TError = Promise<GenerateAdminPortalLink403 | GenerateAdminPortalLink404 | GenerateAdminPortalLink500>>(params: GenerateAdminPortalLinkParams, options?: {
|
|
2360
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof generateAdminPortalLink>>, TError, Key, Arguments, Awaited<ReturnType<typeof generateAdminPortalLink>>> & {
|
|
2299
2361
|
swrKey?: string;
|
|
2300
2362
|
};
|
|
2301
2363
|
fetch?: RequestInit;
|
|
2302
2364
|
}) => {
|
|
2303
2365
|
isMutating: boolean;
|
|
2304
|
-
trigger: swr_mutation.
|
|
2366
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<generateAdminPortalLinkResponse, TError, string | readonly ["https://api.workos.com/_widgets/admin-portal/generate-link", ...GenerateAdminPortalLinkParams[]], Arguments>;
|
|
2305
2367
|
reset: () => void;
|
|
2306
|
-
error: TError | undefined;
|
|
2307
|
-
data:
|
|
2308
|
-
swrKey: string | readonly ["https://api.workos.com/_widgets/
|
|
2368
|
+
error: TError | undefined;
|
|
2369
|
+
data: generateAdminPortalLinkResponse | undefined;
|
|
2370
|
+
swrKey: string | readonly ["https://api.workos.com/_widgets/admin-portal/generate-link", ...GenerateAdminPortalLinkParams[]];
|
|
2309
2371
|
};
|
|
2310
|
-
type
|
|
2311
|
-
data:
|
|
2372
|
+
type listOrganizationDomainsResponse200 = {
|
|
2373
|
+
data: ListOrganizationDomains200;
|
|
2312
2374
|
status: 200;
|
|
2313
2375
|
};
|
|
2314
|
-
type
|
|
2315
|
-
data:
|
|
2316
|
-
status: 400;
|
|
2317
|
-
};
|
|
2318
|
-
type listOrganizationApiKeysResponse403 = {
|
|
2319
|
-
data: ListOrganizationApiKeys403;
|
|
2376
|
+
type listOrganizationDomainsResponse403 = {
|
|
2377
|
+
data: ListOrganizationDomains403;
|
|
2320
2378
|
status: 403;
|
|
2321
2379
|
};
|
|
2322
|
-
type
|
|
2380
|
+
type listOrganizationDomainsResponse404 = {
|
|
2381
|
+
data: ListOrganizationDomains404;
|
|
2382
|
+
status: 404;
|
|
2383
|
+
};
|
|
2384
|
+
type listOrganizationDomainsResponseSuccess = listOrganizationDomainsResponse200 & {
|
|
2323
2385
|
headers: Headers;
|
|
2324
2386
|
};
|
|
2325
|
-
type
|
|
2387
|
+
type listOrganizationDomainsResponseError = (listOrganizationDomainsResponse403 | listOrganizationDomainsResponse404) & {
|
|
2326
2388
|
headers: Headers;
|
|
2327
2389
|
};
|
|
2328
|
-
type
|
|
2329
|
-
declare const
|
|
2330
|
-
declare const
|
|
2331
|
-
declare const
|
|
2332
|
-
type
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError> & {
|
|
2390
|
+
type listOrganizationDomainsResponse = listOrganizationDomainsResponseSuccess | listOrganizationDomainsResponseError;
|
|
2391
|
+
declare const getListOrganizationDomainsUrl: () => string;
|
|
2392
|
+
declare const listOrganizationDomains: (options?: RequestInit) => Promise<listOrganizationDomainsResponse>;
|
|
2393
|
+
declare const getListOrganizationDomainsKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/organization-domains"];
|
|
2394
|
+
type ListOrganizationDomainsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationDomains>>>;
|
|
2395
|
+
declare const useListOrganizationDomains: <TError = Promise<ListOrganizationDomains403 | ListOrganizationDomains404>>(options?: {
|
|
2396
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listOrganizationDomains>>, TError> & {
|
|
2336
2397
|
swrKey?: Key;
|
|
2337
2398
|
enabled?: boolean;
|
|
2338
2399
|
};
|
|
2339
2400
|
fetch?: RequestInit;
|
|
2340
2401
|
}) => {
|
|
2341
|
-
data:
|
|
2402
|
+
data: listOrganizationDomainsResponse | undefined;
|
|
2342
2403
|
error: TError | undefined;
|
|
2343
|
-
mutate: swr.KeyedMutator<
|
|
2404
|
+
mutate: swr.KeyedMutator<listOrganizationDomainsResponse>;
|
|
2344
2405
|
isValidating: boolean;
|
|
2345
2406
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2346
2407
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2347
2408
|
};
|
|
2348
|
-
type
|
|
2349
|
-
data:
|
|
2409
|
+
type deleteOrganizationDomainResponse200 = {
|
|
2410
|
+
data: OrganizationDomain;
|
|
2350
2411
|
status: 200;
|
|
2351
2412
|
};
|
|
2352
|
-
type
|
|
2353
|
-
data:
|
|
2354
|
-
status: 400;
|
|
2355
|
-
};
|
|
2356
|
-
type listOrganizationApiKeyPermissionsResponse403 = {
|
|
2357
|
-
data: ListOrganizationApiKeyPermissions403;
|
|
2413
|
+
type deleteOrganizationDomainResponse403 = {
|
|
2414
|
+
data: DeleteOrganizationDomain403;
|
|
2358
2415
|
status: 403;
|
|
2359
2416
|
};
|
|
2360
|
-
type
|
|
2417
|
+
type deleteOrganizationDomainResponse404 = {
|
|
2418
|
+
data: DeleteOrganizationDomain404;
|
|
2419
|
+
status: 404;
|
|
2420
|
+
};
|
|
2421
|
+
type deleteOrganizationDomainResponseSuccess = deleteOrganizationDomainResponse200 & {
|
|
2361
2422
|
headers: Headers;
|
|
2362
2423
|
};
|
|
2363
|
-
type
|
|
2424
|
+
type deleteOrganizationDomainResponseError = (deleteOrganizationDomainResponse403 | deleteOrganizationDomainResponse404) & {
|
|
2364
2425
|
headers: Headers;
|
|
2365
2426
|
};
|
|
2366
|
-
type
|
|
2367
|
-
declare const
|
|
2368
|
-
declare const
|
|
2369
|
-
declare const
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
declare const
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2427
|
+
type deleteOrganizationDomainResponse = deleteOrganizationDomainResponseSuccess | deleteOrganizationDomainResponseError;
|
|
2428
|
+
declare const getDeleteOrganizationDomainUrl: (domainId: string) => string;
|
|
2429
|
+
declare const deleteOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<deleteOrganizationDomainResponse>;
|
|
2430
|
+
declare const getDeleteOrganizationDomainMutationFetcher: (domainId: string, options?: RequestInit) => (_: Key, __: {
|
|
2431
|
+
arg: Arguments;
|
|
2432
|
+
}) => Promise<deleteOrganizationDomainResponse>;
|
|
2433
|
+
declare const getDeleteOrganizationDomainMutationKey: (domainId: string) => readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}`];
|
|
2434
|
+
type DeleteOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationDomain>>>;
|
|
2435
|
+
declare const useDeleteOrganizationDomain: <TError = Promise<DeleteOrganizationDomain403 | DeleteOrganizationDomain404>>(domainId: string, options?: {
|
|
2436
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteOrganizationDomain>>> & {
|
|
2437
|
+
swrKey?: string;
|
|
2376
2438
|
};
|
|
2377
2439
|
fetch?: RequestInit;
|
|
2378
2440
|
}) => {
|
|
2379
|
-
|
|
2441
|
+
isMutating: boolean;
|
|
2442
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<deleteOrganizationDomainResponse, TError, string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}`], Arguments>;
|
|
2443
|
+
reset: () => void;
|
|
2380
2444
|
error: TError | undefined;
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2384
|
-
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2445
|
+
data: deleteOrganizationDomainResponse | undefined;
|
|
2446
|
+
swrKey: string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}`];
|
|
2385
2447
|
};
|
|
2386
|
-
type
|
|
2387
|
-
data:
|
|
2448
|
+
type reverifyOrganizationDomainResponse200 = {
|
|
2449
|
+
data: OrganizationDomain;
|
|
2388
2450
|
status: 200;
|
|
2389
2451
|
};
|
|
2390
|
-
type
|
|
2391
|
-
data:
|
|
2452
|
+
type reverifyOrganizationDomainResponse403 = {
|
|
2453
|
+
data: ReverifyOrganizationDomain403;
|
|
2392
2454
|
status: 403;
|
|
2393
2455
|
};
|
|
2394
|
-
type
|
|
2395
|
-
data:
|
|
2456
|
+
type reverifyOrganizationDomainResponse404 = {
|
|
2457
|
+
data: ReverifyOrganizationDomain404;
|
|
2396
2458
|
status: 404;
|
|
2397
2459
|
};
|
|
2398
|
-
type
|
|
2460
|
+
type reverifyOrganizationDomainResponseSuccess = reverifyOrganizationDomainResponse200 & {
|
|
2399
2461
|
headers: Headers;
|
|
2400
2462
|
};
|
|
2401
|
-
type
|
|
2463
|
+
type reverifyOrganizationDomainResponseError = (reverifyOrganizationDomainResponse403 | reverifyOrganizationDomainResponse404) & {
|
|
2402
2464
|
headers: Headers;
|
|
2403
2465
|
};
|
|
2404
|
-
type
|
|
2405
|
-
declare const
|
|
2406
|
-
declare const
|
|
2407
|
-
declare const
|
|
2466
|
+
type reverifyOrganizationDomainResponse = reverifyOrganizationDomainResponseSuccess | reverifyOrganizationDomainResponseError;
|
|
2467
|
+
declare const getReverifyOrganizationDomainUrl: (domainId: string) => string;
|
|
2468
|
+
declare const reverifyOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<reverifyOrganizationDomainResponse>;
|
|
2469
|
+
declare const getReverifyOrganizationDomainMutationFetcher: (domainId: string, options?: RequestInit) => (_: Key, __: {
|
|
2408
2470
|
arg: Arguments;
|
|
2409
|
-
}) => Promise<
|
|
2410
|
-
declare const
|
|
2411
|
-
type
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof deleteOrganizationApiKey>>> & {
|
|
2471
|
+
}) => Promise<reverifyOrganizationDomainResponse>;
|
|
2472
|
+
declare const getReverifyOrganizationDomainMutationKey: (domainId: string) => readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}/reverify`];
|
|
2473
|
+
type ReverifyOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof reverifyOrganizationDomain>>>;
|
|
2474
|
+
declare const useReverifyOrganizationDomain: <TError = Promise<ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404>>(domainId: string, options?: {
|
|
2475
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, Key, Arguments, Awaited<ReturnType<typeof reverifyOrganizationDomain>>> & {
|
|
2415
2476
|
swrKey?: string;
|
|
2416
2477
|
};
|
|
2417
2478
|
fetch?: RequestInit;
|
|
2418
2479
|
}) => {
|
|
2419
2480
|
isMutating: boolean;
|
|
2420
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<
|
|
2481
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<reverifyOrganizationDomainResponse, TError, string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}/reverify`], Arguments>;
|
|
2421
2482
|
reset: () => void;
|
|
2422
2483
|
error: TError | undefined;
|
|
2423
|
-
data:
|
|
2424
|
-
swrKey: string | readonly [`https://api.workos.com/_widgets/
|
|
2484
|
+
data: reverifyOrganizationDomainResponse | undefined;
|
|
2485
|
+
swrKey: string | readonly [`https://api.workos.com/_widgets/admin-portal/organization-domains/${string}/reverify`];
|
|
2425
2486
|
};
|
|
2426
|
-
type
|
|
2427
|
-
data:
|
|
2487
|
+
type listSsoConnectionsResponse200 = {
|
|
2488
|
+
data: SsoConnection[];
|
|
2428
2489
|
status: 200;
|
|
2429
2490
|
};
|
|
2430
|
-
type
|
|
2431
|
-
data: MyDataIntegrations403;
|
|
2432
|
-
status: 403;
|
|
2433
|
-
};
|
|
2434
|
-
type myDataIntegrationsResponseSuccess = myDataIntegrationsResponse200 & {
|
|
2435
|
-
headers: Headers;
|
|
2436
|
-
};
|
|
2437
|
-
type myDataIntegrationsResponseError = myDataIntegrationsResponse403 & {
|
|
2491
|
+
type listSsoConnectionsResponseSuccess = listSsoConnectionsResponse200 & {
|
|
2438
2492
|
headers: Headers;
|
|
2439
2493
|
};
|
|
2440
|
-
type
|
|
2441
|
-
declare const
|
|
2442
|
-
declare const
|
|
2443
|
-
declare const
|
|
2444
|
-
type
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof myDataIntegrations>>, TError> & {
|
|
2494
|
+
type listSsoConnectionsResponse = listSsoConnectionsResponseSuccess;
|
|
2495
|
+
declare const getListSsoConnectionsUrl: () => string;
|
|
2496
|
+
declare const listSsoConnections: (options?: RequestInit) => Promise<listSsoConnectionsResponse>;
|
|
2497
|
+
declare const getListSsoConnectionsKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/sso-connections"];
|
|
2498
|
+
type ListSsoConnectionsQueryResult = NonNullable<Awaited<ReturnType<typeof listSsoConnections>>>;
|
|
2499
|
+
declare const useListSsoConnections: <TError = Promise<unknown>>(options?: {
|
|
2500
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listSsoConnections>>, TError> & {
|
|
2448
2501
|
swrKey?: Key;
|
|
2449
2502
|
enabled?: boolean;
|
|
2450
2503
|
};
|
|
2451
2504
|
fetch?: RequestInit;
|
|
2452
2505
|
}) => {
|
|
2453
|
-
data:
|
|
2506
|
+
data: (listSsoConnectionsResponse200 & {
|
|
2507
|
+
headers: Headers;
|
|
2508
|
+
}) | undefined;
|
|
2454
2509
|
error: TError | undefined;
|
|
2455
|
-
mutate: swr.KeyedMutator<
|
|
2510
|
+
mutate: swr.KeyedMutator<listSsoConnectionsResponse200 & {
|
|
2511
|
+
headers: Headers;
|
|
2512
|
+
}>;
|
|
2456
2513
|
isValidating: boolean;
|
|
2457
2514
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2458
2515
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2459
2516
|
};
|
|
2460
|
-
type
|
|
2461
|
-
data:
|
|
2517
|
+
type listDirectoriesResponse200 = {
|
|
2518
|
+
data: DirectoriesResponse;
|
|
2462
2519
|
status: 200;
|
|
2463
2520
|
};
|
|
2464
|
-
type
|
|
2465
|
-
data:
|
|
2466
|
-
status: 400;
|
|
2467
|
-
};
|
|
2468
|
-
type getDataIntegrationAuthorizeUrlResponse403 = {
|
|
2469
|
-
data: GetDataIntegrationAuthorizeUrl403;
|
|
2521
|
+
type listDirectoriesResponse403 = {
|
|
2522
|
+
data: ListDirectories403;
|
|
2470
2523
|
status: 403;
|
|
2471
2524
|
};
|
|
2472
|
-
type
|
|
2473
|
-
data:
|
|
2525
|
+
type listDirectoriesResponse404 = {
|
|
2526
|
+
data: ListDirectories404;
|
|
2474
2527
|
status: 404;
|
|
2475
2528
|
};
|
|
2476
|
-
type
|
|
2529
|
+
type listDirectoriesResponseSuccess = listDirectoriesResponse200 & {
|
|
2477
2530
|
headers: Headers;
|
|
2478
2531
|
};
|
|
2479
|
-
type
|
|
2532
|
+
type listDirectoriesResponseError = (listDirectoriesResponse403 | listDirectoriesResponse404) & {
|
|
2480
2533
|
headers: Headers;
|
|
2481
2534
|
};
|
|
2482
|
-
type
|
|
2483
|
-
declare const
|
|
2484
|
-
declare const
|
|
2485
|
-
declare const
|
|
2486
|
-
type
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError> & {
|
|
2535
|
+
type listDirectoriesResponse = listDirectoriesResponseSuccess | listDirectoriesResponseError;
|
|
2536
|
+
declare const getListDirectoriesUrl: () => string;
|
|
2537
|
+
declare const listDirectories: (options?: RequestInit) => Promise<listDirectoriesResponse>;
|
|
2538
|
+
declare const getListDirectoriesKey: () => readonly ["https://api.workos.com/_widgets/directory-sync/directories"];
|
|
2539
|
+
type ListDirectoriesQueryResult = NonNullable<Awaited<ReturnType<typeof listDirectories>>>;
|
|
2540
|
+
declare const useListDirectories: <TError = Promise<ListDirectories403 | ListDirectories404>>(options?: {
|
|
2541
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listDirectories>>, TError> & {
|
|
2490
2542
|
swrKey?: Key;
|
|
2491
2543
|
enabled?: boolean;
|
|
2492
2544
|
};
|
|
2493
2545
|
fetch?: RequestInit;
|
|
2494
2546
|
}) => {
|
|
2495
|
-
data:
|
|
2547
|
+
data: listDirectoriesResponse | undefined;
|
|
2496
2548
|
error: TError | undefined;
|
|
2497
|
-
mutate: swr.KeyedMutator<
|
|
2549
|
+
mutate: swr.KeyedMutator<listDirectoriesResponse>;
|
|
2498
2550
|
isValidating: boolean;
|
|
2499
2551
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2500
2552
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2501
2553
|
};
|
|
2502
|
-
type
|
|
2503
|
-
data:
|
|
2554
|
+
type getDirectoryResponse200 = {
|
|
2555
|
+
data: Directory;
|
|
2504
2556
|
status: 200;
|
|
2505
2557
|
};
|
|
2506
|
-
type
|
|
2507
|
-
data:
|
|
2508
|
-
status: 400;
|
|
2509
|
-
};
|
|
2510
|
-
type getDataInstallationAuthorizationStatusResponse403 = {
|
|
2511
|
-
data: GetDataInstallationAuthorizationStatus403;
|
|
2558
|
+
type getDirectoryResponse403 = {
|
|
2559
|
+
data: GetDirectory403;
|
|
2512
2560
|
status: 403;
|
|
2513
2561
|
};
|
|
2514
|
-
type
|
|
2515
|
-
data:
|
|
2562
|
+
type getDirectoryResponse404 = {
|
|
2563
|
+
data: GetDirectory404;
|
|
2516
2564
|
status: 404;
|
|
2517
2565
|
};
|
|
2518
|
-
type
|
|
2566
|
+
type getDirectoryResponseSuccess = getDirectoryResponse200 & {
|
|
2519
2567
|
headers: Headers;
|
|
2520
2568
|
};
|
|
2521
|
-
type
|
|
2569
|
+
type getDirectoryResponseError = (getDirectoryResponse403 | getDirectoryResponse404) & {
|
|
2522
2570
|
headers: Headers;
|
|
2523
2571
|
};
|
|
2524
|
-
type
|
|
2525
|
-
declare const
|
|
2526
|
-
declare const
|
|
2527
|
-
declare const
|
|
2528
|
-
type
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
swr?: SWRConfiguration<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError> & {
|
|
2572
|
+
type getDirectoryResponse = getDirectoryResponseSuccess | getDirectoryResponseError;
|
|
2573
|
+
declare const getGetDirectoryUrl: (directoryId: string) => string;
|
|
2574
|
+
declare const getDirectory: (directoryId: string, options?: RequestInit) => Promise<getDirectoryResponse>;
|
|
2575
|
+
declare const getGetDirectoryKey: (directoryId: string) => readonly [`https://api.workos.com/_widgets/directory-sync/directories/${string}`];
|
|
2576
|
+
type GetDirectoryQueryResult = NonNullable<Awaited<ReturnType<typeof getDirectory>>>;
|
|
2577
|
+
declare const useGetDirectory: <TError = Promise<GetDirectory403 | GetDirectory404>>(directoryId: string, options?: {
|
|
2578
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getDirectory>>, TError> & {
|
|
2532
2579
|
swrKey?: Key;
|
|
2533
2580
|
enabled?: boolean;
|
|
2534
2581
|
};
|
|
2535
2582
|
fetch?: RequestInit;
|
|
2536
2583
|
}) => {
|
|
2537
|
-
data:
|
|
2584
|
+
data: getDirectoryResponse | undefined;
|
|
2538
2585
|
error: TError | undefined;
|
|
2539
|
-
mutate: swr.KeyedMutator<
|
|
2586
|
+
mutate: swr.KeyedMutator<getDirectoryResponse>;
|
|
2540
2587
|
isValidating: boolean;
|
|
2541
2588
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2542
2589
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2543
2590
|
};
|
|
2544
|
-
|
|
2545
|
-
|
|
2591
|
+
/**
|
|
2592
|
+
* Returns the widget settings for the current environment, including enabled authentication methods and branding configuration.
|
|
2593
|
+
*/
|
|
2594
|
+
type settingsResponse200 = {
|
|
2595
|
+
data: SettingsResponse;
|
|
2546
2596
|
status: 200;
|
|
2547
2597
|
};
|
|
2548
|
-
type
|
|
2549
|
-
data:
|
|
2598
|
+
type settingsResponse403 = {
|
|
2599
|
+
data: Settings403;
|
|
2550
2600
|
status: 403;
|
|
2551
2601
|
};
|
|
2552
|
-
type
|
|
2553
|
-
data: DeleteDataInstallation404;
|
|
2554
|
-
status: 404;
|
|
2555
|
-
};
|
|
2556
|
-
type deleteDataInstallationResponseSuccess = deleteDataInstallationResponse200 & {
|
|
2602
|
+
type settingsResponseSuccess = settingsResponse200 & {
|
|
2557
2603
|
headers: Headers;
|
|
2558
2604
|
};
|
|
2559
|
-
type
|
|
2605
|
+
type settingsResponseError = settingsResponse403 & {
|
|
2560
2606
|
headers: Headers;
|
|
2561
2607
|
};
|
|
2562
|
-
type
|
|
2563
|
-
declare const
|
|
2564
|
-
declare const
|
|
2565
|
-
declare const
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
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;
|
|
2608
|
+
type settingsResponse = settingsResponseSuccess | settingsResponseError;
|
|
2609
|
+
declare const getSettingsUrl: () => string;
|
|
2610
|
+
declare const settings: (options?: RequestInit) => Promise<settingsResponse>;
|
|
2611
|
+
declare const getSettingsKey: () => readonly ["https://api.workos.com/_widgets/settings"];
|
|
2612
|
+
type SettingsQueryResult = NonNullable<Awaited<ReturnType<typeof settings>>>;
|
|
2613
|
+
declare const useSettings: <TError = Promise<Settings403>>(options?: {
|
|
2614
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof settings>>, TError> & {
|
|
2615
|
+
swrKey?: Key;
|
|
2616
|
+
enabled?: boolean;
|
|
2574
2617
|
};
|
|
2575
2618
|
fetch?: RequestInit;
|
|
2576
2619
|
}) => {
|
|
2577
|
-
|
|
2578
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<deleteDataInstallationResponse, TError, string | readonly [`https://api.workos.com/_widgets/DataIntegrations/installations/${string}`], Arguments>;
|
|
2579
|
-
reset: () => void;
|
|
2620
|
+
data: settingsResponse | undefined;
|
|
2580
2621
|
error: TError | undefined;
|
|
2581
|
-
|
|
2582
|
-
|
|
2622
|
+
mutate: swr.KeyedMutator<settingsResponse>;
|
|
2623
|
+
isValidating: boolean;
|
|
2624
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
2625
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
2583
2626
|
};
|
|
2584
2627
|
|
|
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 };
|
|
2628
|
+
export { type ActiveSession, type ActiveSessionCurrentLocation, type ActiveSessionState, type ActiveSessionsResponse, type AuditLogStreamJSON, type AuditLogStreamState, type AuditLogStreamType, type AuthenticationInformation403, type AuthenticationInformationQueryResult, type AuthenticationInformationResponse, type AuthenticationInformationResponseData, type AuthenticationInformationResponseDataPasswordSettings, type AuthenticationInformationResponseDataVerificationMethods, type AuthenticationInformationResponseDataVerificationMethodsMfa, type AuthenticationInformationResponseDataVerificationMethodsPasskey, type AuthenticationInformationResponseDataVerificationMethodsPassword, type CreateOrganizationApiKey400, type CreateOrganizationApiKey403, type CreateOrganizationApiKey404, type CreateOrganizationApiKey422, type CreateOrganizationApiKey422ErrorsItem, type CreateOrganizationApiKeyMutationResult, type CreateOrganizationApiKeyRequest, type CreateOrganizationApiKeyResponse, type CreatePassword201, type CreatePassword400, type CreatePassword403, type CreatePasswordMutationResult, type CreatePasswordRequest, type CreateTotpFactor400, type CreateTotpFactor403, type CreateTotpFactorMutationResult, type CreateTotpFactorResponse, type CreateTotpFactorResponseAuthenticationChallenge, type CreateTotpFactorResponseAuthenticationFactor, type DataInstallation, type DataIntegration, type DataIntegrationsResponse, type DeleteDataInstallation200, type DeleteDataInstallation403, type DeleteDataInstallation404, type DeleteDataInstallationMutationResult, type DeleteOrganizationApiKey200, type DeleteOrganizationApiKey403, type DeleteOrganizationApiKey404, type DeleteOrganizationApiKeyMutationResult, type DeleteOrganizationDomain403, type DeleteOrganizationDomain404, type DeleteOrganizationDomainMutationResult, type DeletePasskey200, type DeletePasskey400, type DeletePasskey403, type DeletePasskeyMutationResult, type DeleteTotpFactors200, type DeleteTotpFactors400, type DeleteTotpFactors403, type DeleteTotpFactorsMutationResult, type DirectoriesResponse, type Directory, type DirectoryMetadata, DirectoryState, DirectoryType, type DirectoryUsersMetadata, DomainVerificationNameServer, type GenerateAdminPortalLink201, type GenerateAdminPortalLink403, type GenerateAdminPortalLink404, type GenerateAdminPortalLink500, GenerateAdminPortalLinkIntent, type GenerateAdminPortalLinkMutationResult, type GenerateAdminPortalLinkParams, type GetAuditLogStream200, type GetAuditLogStream403, type GetAuditLogStreamQueryResult, type GetAuthorizationStatusResponse, type GetDataInstallationAuthorizationStatus400, type GetDataInstallationAuthorizationStatus403, type GetDataInstallationAuthorizationStatus404, type GetDataInstallationAuthorizationStatusQueryResult, type GetDataIntegrationAuthorizeUrl400, type GetDataIntegrationAuthorizeUrl403, type GetDataIntegrationAuthorizeUrl404, type GetDataIntegrationAuthorizeUrlParams, type GetDataIntegrationAuthorizeUrlQueryResult, type GetDataIntegrationAuthorizeUrlResponse, type GetDirectory403, type GetDirectory404, type GetDirectoryQueryResult, type InviteMember201, type InviteMember400, type InviteMember403, type InviteMember404, type InviteMemberBody, type InviteMemberMutationResult, type ListDirectories403, type ListDirectories404, type ListDirectoriesQueryResult, type ListMetadata, type ListOrganizationApiKeyPermission, type ListOrganizationApiKeyPermissions400, type ListOrganizationApiKeyPermissions403, type ListOrganizationApiKeyPermissionsParams, type ListOrganizationApiKeyPermissionsQueryResult, type ListOrganizationApiKeyPermissionsResponse, type ListOrganizationApiKeyPermissionsResponseListMetadata, type ListOrganizationApiKeys400, type ListOrganizationApiKeys403, type ListOrganizationApiKeysParams, type ListOrganizationApiKeysQueryResult, type ListOrganizationApiKeysResponse, type ListOrganizationApiKeysResponseData, type ListOrganizationApiKeysResponseListMetadata, type ListOrganizationDomains200, type ListOrganizationDomains403, type ListOrganizationDomains404, type ListOrganizationDomainsQueryResult, type ListSsoConnectionsQueryResult, type Me, type Me403, type MeOauthProfiles, type MeQueryResult, type Member, type MemberActions, MemberActionsItem, type MemberRole, type MemberRoles, MemberStatus, type Members200, type Members403, type Members404, type MembersParams, type MembersQueryResult, type MyDataIntegrations403, type MyDataIntegrationsQueryResult, type OAuthProfile, OidcSessionState, type OrganizationDomain, OrganizationDomainState, type OrganizationInfo, type Organizations403, type Organizations404, type OrganizationsQueryResult, type OrganizationsResponse, type RegisterPasskey400, type RegisterPasskey403, type RegisterPasskeyMutationResult, type RegisterPasskeyResponse, type RegisterPasskeyResponseOptions, type RemoveMember200, type RemoveMember400, type RemoveMember403, type RemoveMember404, type RemoveMemberMutationResult, type ResendInvite201, type ResendInvite400, type ResendInvite403, type ResendInvite404, type ResendInvite422, type ResendInviteMutationResult, type ReverifyOrganizationDomain403, type ReverifyOrganizationDomain404, type ReverifyOrganizationDomainMutationResult, type RevokeAllSessions200, type RevokeAllSessions400, type RevokeAllSessions403, type RevokeAllSessionsMutationResult, type RevokeAllSessionsRequest, type RevokeInvite200, type RevokeInvite400, type RevokeInvite403, type RevokeInvite404, type RevokeInviteMutationResult, type RevokeSession200, type RevokeSession400, type RevokeSession403, type RevokeSessionMutationResult, type Roles403, type Roles404, type RolesAndConfig403, type RolesAndConfig404, type RolesAndConfigQueryResult, type RolesAndConfigResponse, type RolesQueryResult, SamlSessionState, type SendVerification400, type SendVerification403, type SendVerificationMutationResult, type SendVerificationResponse, type Sessions403, type SessionsQueryResult, type Settings403, type SettingsQueryResult, type SettingsResponse, type SsoConnection, type SsoConnectionSessionJSON, SsoConnectionSessionJSONState, type UpdateMe400, type UpdateMe403, type UpdateMeBody, type UpdateMeMutationResult, type UpdateMember200, type UpdateMember400, type UpdateMember403, type UpdateMember404, type UpdateMember422, type UpdateMemberBody, type UpdateMemberMutationResult, type UpdatePassword201, type UpdatePassword400, type UpdatePassword403, type UpdatePasswordMutationResult, type UpdatePasswordRequest, type Verify400, type Verify403, type VerifyMutationResult, type VerifyPasskey200, type VerifyPasskey400, type VerifyPasskey403, type VerifyPasskeyMutationResult, type VerifyPasskeyRequest, type VerifyPasskeyRequestResponse, type VerifyRequest, type VerifyResponse, type VerifyTotpFactor200, type VerifyTotpFactor400, type VerifyTotpFactor403, 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, getAuditLogStream, type getAuditLogStreamResponse, type getAuditLogStreamResponse200, type getAuditLogStreamResponse403, type getAuditLogStreamResponseError, type getAuditLogStreamResponseSuccess, 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, getDirectory, type getDirectoryResponse, type getDirectoryResponse200, type getDirectoryResponse403, type getDirectoryResponse404, type getDirectoryResponseError, type getDirectoryResponseSuccess, getGenerateAdminPortalLinkMutationFetcher, getGenerateAdminPortalLinkMutationKey, getGenerateAdminPortalLinkUrl, getGetAuditLogStreamKey, getGetAuditLogStreamUrl, getGetDataInstallationAuthorizationStatusKey, getGetDataInstallationAuthorizationStatusUrl, getGetDataIntegrationAuthorizeUrlKey, getGetDataIntegrationAuthorizeUrlUrl, getGetDirectoryKey, getGetDirectoryUrl, getInviteMemberMutationFetcher, getInviteMemberMutationKey, getInviteMemberUrl, getListDirectoriesKey, getListDirectoriesUrl, 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, listDirectories, type listDirectoriesResponse, type listDirectoriesResponse200, type listDirectoriesResponse403, type listDirectoriesResponse404, type listDirectoriesResponseError, type listDirectoriesResponseSuccess, 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, useGetAuditLogStream, useGetDataInstallationAuthorizationStatus, useGetDataIntegrationAuthorizeUrl, useGetDirectory, useInviteMember, useListDirectories, 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 };
|