@workos-inc/node 10.0.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{factory-Ct0t70G0.d.cts → factory-CcE8UP1h.d.mts} +137 -24
- package/lib/{factory-fIHNXxrd.mjs → factory-CenLS49y.mjs} +118 -22
- package/lib/factory-CenLS49y.mjs.map +1 -0
- package/lib/{factory-CKDJjzbQ.cjs → factory-Cvq9SYzX.cjs} +117 -33
- package/lib/factory-Cvq9SYzX.cjs.map +1 -0
- package/lib/{factory-awA8SmsZ.d.mts → factory-eDncFka5.d.cts} +137 -24
- package/lib/index.cjs +12 -3
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +17 -2
- package/lib/index.d.mts +17 -2
- package/lib/index.mjs +12 -2
- package/lib/index.mjs.map +1 -1
- package/lib/index.worker.cjs +1 -1
- package/lib/index.worker.d.cts +2 -2
- package/lib/index.worker.d.mts +2 -2
- package/lib/index.worker.mjs +1 -1
- package/package.json +1 -1
- package/lib/factory-CKDJjzbQ.cjs.map +0 -1
- package/lib/factory-fIHNXxrd.mjs.map +0 -1
|
@@ -1020,6 +1020,8 @@ interface Profile<CustomAttributesType extends UnknownRecord> {
|
|
|
1020
1020
|
connectionType: ConnectionType;
|
|
1021
1021
|
/** The user's email address. */
|
|
1022
1022
|
email: string;
|
|
1023
|
+
/** The user's full name. */
|
|
1024
|
+
name?: string;
|
|
1023
1025
|
/** The user's first name. */
|
|
1024
1026
|
firstName?: string;
|
|
1025
1027
|
/** The user's last name. */
|
|
@@ -1044,6 +1046,7 @@ interface ProfileResponse<CustomAttributesType extends UnknownRecord> {
|
|
|
1044
1046
|
connection_id: string;
|
|
1045
1047
|
connection_type: ConnectionType;
|
|
1046
1048
|
email: string;
|
|
1049
|
+
name?: string;
|
|
1047
1050
|
first_name?: string;
|
|
1048
1051
|
last_name?: string;
|
|
1049
1052
|
role?: RoleResponse;
|
|
@@ -1155,6 +1158,7 @@ interface AuthenticateWithMagicAuthOptions extends AuthenticateWithOptionsBase {
|
|
|
1155
1158
|
email: string;
|
|
1156
1159
|
invitationToken?: string;
|
|
1157
1160
|
linkAuthorizationCode?: string;
|
|
1161
|
+
radarAuthAttemptId?: string;
|
|
1158
1162
|
}
|
|
1159
1163
|
interface AuthenticateUserWithMagicAuthCredentials {
|
|
1160
1164
|
clientSecret: string | undefined;
|
|
@@ -1165,6 +1169,41 @@ interface SerializedAuthenticateWithMagicAuthOptions extends SerializedAuthentic
|
|
|
1165
1169
|
email: string;
|
|
1166
1170
|
invitation_token?: string;
|
|
1167
1171
|
link_authorization_code?: string;
|
|
1172
|
+
radar_auth_attempt_id?: string;
|
|
1173
|
+
}
|
|
1174
|
+
//#endregion
|
|
1175
|
+
//#region src/user-management/interfaces/authenticate-with-radar-email-challenge-options.interface.d.ts
|
|
1176
|
+
interface AuthenticateWithRadarEmailChallengeOptions extends AuthenticateWithOptionsBase {
|
|
1177
|
+
code: string;
|
|
1178
|
+
radarChallengeId: string;
|
|
1179
|
+
pendingAuthenticationToken: string;
|
|
1180
|
+
}
|
|
1181
|
+
interface AuthenticateUserWithRadarEmailChallengeCredentials {
|
|
1182
|
+
clientSecret: string | undefined;
|
|
1183
|
+
}
|
|
1184
|
+
interface SerializedAuthenticateWithRadarEmailChallengeOptions extends SerializedAuthenticateWithOptionsBase {
|
|
1185
|
+
grant_type: 'urn:workos:oauth:grant-type:radar-email-challenge:code';
|
|
1186
|
+
code: string;
|
|
1187
|
+
radar_challenge_id: string;
|
|
1188
|
+
pending_authentication_token: string;
|
|
1189
|
+
}
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region src/user-management/interfaces/authenticate-with-radar-sms-challenge-options.interface.d.ts
|
|
1192
|
+
interface AuthenticateWithRadarSmsChallengeOptions extends AuthenticateWithOptionsBase {
|
|
1193
|
+
code: string;
|
|
1194
|
+
verificationId: string;
|
|
1195
|
+
phoneNumber: string;
|
|
1196
|
+
pendingAuthenticationToken: string;
|
|
1197
|
+
}
|
|
1198
|
+
interface AuthenticateUserWithRadarSmsChallengeCredentials {
|
|
1199
|
+
clientSecret: string | undefined;
|
|
1200
|
+
}
|
|
1201
|
+
interface SerializedAuthenticateWithRadarSmsChallengeOptions extends SerializedAuthenticateWithOptionsBase {
|
|
1202
|
+
grant_type: 'urn:workos:oauth:grant-type:radar-sms-challenge:code';
|
|
1203
|
+
code: string;
|
|
1204
|
+
verification_id: string;
|
|
1205
|
+
phone_number: string;
|
|
1206
|
+
pending_authentication_token: string;
|
|
1168
1207
|
}
|
|
1169
1208
|
//#endregion
|
|
1170
1209
|
//#region src/user-management/interfaces/authenticate-with-organization-selection.interface.d.ts
|
|
@@ -1186,6 +1225,7 @@ interface AuthenticateWithPasswordOptions extends AuthenticateWithOptionsBase {
|
|
|
1186
1225
|
email: string;
|
|
1187
1226
|
password: string;
|
|
1188
1227
|
invitationToken?: string;
|
|
1228
|
+
radarAuthAttemptId?: string;
|
|
1189
1229
|
}
|
|
1190
1230
|
interface AuthenticateUserWithPasswordCredentials {
|
|
1191
1231
|
clientSecret: string | undefined;
|
|
@@ -1195,6 +1235,7 @@ interface SerializedAuthenticateWithPasswordOptions extends SerializedAuthentica
|
|
|
1195
1235
|
email: string;
|
|
1196
1236
|
password: string;
|
|
1197
1237
|
invitation_token?: string;
|
|
1238
|
+
radar_auth_attempt_id?: string;
|
|
1198
1239
|
}
|
|
1199
1240
|
//#endregion
|
|
1200
1241
|
//#region src/user-management/interfaces/authenticate-with-refresh-token-options.interface.d.ts
|
|
@@ -1246,6 +1287,8 @@ interface User {
|
|
|
1246
1287
|
emailVerified: boolean;
|
|
1247
1288
|
/** A URL reference to an image representing the user. */
|
|
1248
1289
|
profilePictureUrl: string | null;
|
|
1290
|
+
/** The full name of the user. */
|
|
1291
|
+
name: string | null;
|
|
1249
1292
|
/** The first name of the user. */
|
|
1250
1293
|
firstName: string | null;
|
|
1251
1294
|
/** The last name of the user. */
|
|
@@ -1269,6 +1312,7 @@ interface UserResponse {
|
|
|
1269
1312
|
email: string;
|
|
1270
1313
|
email_verified: boolean;
|
|
1271
1314
|
profile_picture_url: string | null;
|
|
1315
|
+
name: string | null;
|
|
1272
1316
|
first_name: string | null;
|
|
1273
1317
|
last_name: string | null;
|
|
1274
1318
|
last_sign_in_at: string | null;
|
|
@@ -1278,6 +1322,12 @@ interface UserResponse {
|
|
|
1278
1322
|
external_id?: string;
|
|
1279
1323
|
metadata?: Record<string, string>;
|
|
1280
1324
|
}
|
|
1325
|
+
interface CreateUserResponse extends User {
|
|
1326
|
+
radarAuthAttemptId?: string;
|
|
1327
|
+
}
|
|
1328
|
+
interface CreateUserResponseResponse extends UserResponse {
|
|
1329
|
+
radar_auth_attempt_id?: string;
|
|
1330
|
+
}
|
|
1281
1331
|
//#endregion
|
|
1282
1332
|
//#region src/user-management/interfaces/authentication-response.interface.d.ts
|
|
1283
1333
|
type AuthenticationMethod = 'SSO' | 'Password' | 'Passkey' | 'AppleOAuth' | 'BitbucketOAuth' | 'DiscordOAuth' | 'GitHubOAuth' | 'GitLabOAuth' | 'GoogleOAuth' | 'IntuitOAuth' | 'LinkedInOAuth' | 'MicrosoftOAuth' | 'SalesforceOAuth' | 'SlackOAuth' | 'VercelMarketplaceOAuth' | 'VercelOAuth' | 'XeroOAuth' | 'MagicAuth' | 'CrossAppAuth' | 'ExternalAuth' | 'MigratedSession' | 'Impersonation';
|
|
@@ -1522,10 +1572,16 @@ interface PKCEAuthorizationURLResult {
|
|
|
1522
1572
|
interface CreateMagicAuthOptions {
|
|
1523
1573
|
email: string;
|
|
1524
1574
|
invitationToken?: string;
|
|
1575
|
+
ipAddress?: string;
|
|
1576
|
+
userAgent?: string;
|
|
1577
|
+
radarAuthAttemptId?: string;
|
|
1525
1578
|
}
|
|
1526
1579
|
interface SerializedCreateMagicAuthOptions {
|
|
1527
1580
|
email: string;
|
|
1528
1581
|
invitation_token?: string;
|
|
1582
|
+
ip_address?: string;
|
|
1583
|
+
user_agent?: string;
|
|
1584
|
+
radar_auth_attempt_id?: string;
|
|
1529
1585
|
}
|
|
1530
1586
|
//#endregion
|
|
1531
1587
|
//#region src/user-management/interfaces/create-organization-membership-options.interface.d.ts
|
|
@@ -1559,22 +1615,28 @@ interface CreateUserOptions {
|
|
|
1559
1615
|
password?: string;
|
|
1560
1616
|
passwordHash?: string;
|
|
1561
1617
|
passwordHashType?: PasswordHashType;
|
|
1618
|
+
name?: string;
|
|
1562
1619
|
firstName?: string;
|
|
1563
1620
|
lastName?: string;
|
|
1564
1621
|
emailVerified?: boolean;
|
|
1565
1622
|
externalId?: string;
|
|
1566
1623
|
metadata?: Record<string, string>;
|
|
1624
|
+
ipAddress?: string;
|
|
1625
|
+
userAgent?: string;
|
|
1567
1626
|
}
|
|
1568
1627
|
interface SerializedCreateUserOptions {
|
|
1569
1628
|
email: string;
|
|
1570
1629
|
password?: string;
|
|
1571
1630
|
password_hash?: string;
|
|
1572
1631
|
password_hash_type?: PasswordHashType;
|
|
1632
|
+
name?: string;
|
|
1573
1633
|
first_name?: string;
|
|
1574
1634
|
last_name?: string;
|
|
1575
1635
|
email_verified?: boolean;
|
|
1576
1636
|
external_id?: string;
|
|
1577
1637
|
metadata?: Record<string, string>;
|
|
1638
|
+
ip_address?: string;
|
|
1639
|
+
user_agent?: string;
|
|
1578
1640
|
}
|
|
1579
1641
|
//#endregion
|
|
1580
1642
|
//#region src/user-management/interfaces/email-verification.interface.d.ts
|
|
@@ -1873,6 +1935,12 @@ interface MagicAuthResponse {
|
|
|
1873
1935
|
created_at: string;
|
|
1874
1936
|
updated_at: string;
|
|
1875
1937
|
}
|
|
1938
|
+
interface CreateMagicAuthResponse extends MagicAuth {
|
|
1939
|
+
radarAuthAttemptId?: string;
|
|
1940
|
+
}
|
|
1941
|
+
interface CreateMagicAuthResponseResponse extends MagicAuthResponse {
|
|
1942
|
+
radar_auth_attempt_id?: string;
|
|
1943
|
+
}
|
|
1876
1944
|
interface MagicAuthEventResponse {
|
|
1877
1945
|
object: 'magic_auth';
|
|
1878
1946
|
id: string;
|
|
@@ -1993,6 +2061,30 @@ interface SerializedSendInvitationOptions {
|
|
|
1993
2061
|
locale?: Locale;
|
|
1994
2062
|
}
|
|
1995
2063
|
//#endregion
|
|
2064
|
+
//#region src/user-management/interfaces/send-radar-sms-challenge-options.interface.d.ts
|
|
2065
|
+
interface SendRadarSmsChallengeOptions {
|
|
2066
|
+
userId: string;
|
|
2067
|
+
pendingAuthenticationToken: string;
|
|
2068
|
+
phoneNumber: string;
|
|
2069
|
+
ipAddress?: string;
|
|
2070
|
+
userAgent?: string;
|
|
2071
|
+
}
|
|
2072
|
+
interface SerializedSendRadarSmsChallengeOptions {
|
|
2073
|
+
user_id: string;
|
|
2074
|
+
pending_authentication_token: string;
|
|
2075
|
+
phone_number: string;
|
|
2076
|
+
ip_address?: string;
|
|
2077
|
+
user_agent?: string;
|
|
2078
|
+
}
|
|
2079
|
+
interface SendRadarSmsChallengeResponse {
|
|
2080
|
+
verificationId: string;
|
|
2081
|
+
phoneNumber: string;
|
|
2082
|
+
}
|
|
2083
|
+
interface SendRadarSmsChallengeResponseResponse {
|
|
2084
|
+
verification_id: string;
|
|
2085
|
+
phone_number: string;
|
|
2086
|
+
}
|
|
2087
|
+
//#endregion
|
|
1996
2088
|
//#region src/user-management/interfaces/send-verification-email-options.interface.d.ts
|
|
1997
2089
|
interface SendVerificationEmailOptions {
|
|
1998
2090
|
userId: string;
|
|
@@ -2046,6 +2138,7 @@ interface SerializedUpdateOrganizationMembershipOptions {
|
|
|
2046
2138
|
interface UpdateUserOptions {
|
|
2047
2139
|
userId: string;
|
|
2048
2140
|
email?: string;
|
|
2141
|
+
name?: string;
|
|
2049
2142
|
firstName?: string;
|
|
2050
2143
|
lastName?: string;
|
|
2051
2144
|
emailVerified?: boolean;
|
|
@@ -2058,6 +2151,7 @@ interface UpdateUserOptions {
|
|
|
2058
2151
|
}
|
|
2059
2152
|
interface SerializedUpdateUserOptions {
|
|
2060
2153
|
email?: string;
|
|
2154
|
+
name?: string;
|
|
2061
2155
|
first_name?: string;
|
|
2062
2156
|
last_name?: string;
|
|
2063
2157
|
email_verified?: boolean;
|
|
@@ -3430,6 +3524,7 @@ interface AuthenticationActionContext {
|
|
|
3430
3524
|
interface UserData {
|
|
3431
3525
|
object: 'user_data';
|
|
3432
3526
|
email: string;
|
|
3527
|
+
name: string | null;
|
|
3433
3528
|
firstName: string;
|
|
3434
3529
|
lastName: string;
|
|
3435
3530
|
}
|
|
@@ -3457,6 +3552,7 @@ interface AuthenticationActionPayload {
|
|
|
3457
3552
|
interface UserDataPayload {
|
|
3458
3553
|
object: 'user_data';
|
|
3459
3554
|
email: string;
|
|
3555
|
+
name: string | null;
|
|
3460
3556
|
first_name: string;
|
|
3461
3557
|
last_name: string;
|
|
3462
3558
|
}
|
|
@@ -4037,7 +4133,7 @@ declare class Connect {
|
|
|
4037
4133
|
* @returns {Promise<AutoPaginatable<ConnectApplication, ListApplicationsOptions>>}
|
|
4038
4134
|
* @throws {UnprocessableEntityException} 422
|
|
4039
4135
|
*/
|
|
4040
|
-
listApplications(options?: ListApplicationsOptions): Promise<AutoPaginatable<ConnectApplication,
|
|
4136
|
+
listApplications(options?: ListApplicationsOptions): Promise<AutoPaginatable<ConnectApplication, PaginationOptions>>;
|
|
4041
4137
|
/**
|
|
4042
4138
|
* Create a Connect Application
|
|
4043
4139
|
*
|
|
@@ -5753,12 +5849,12 @@ declare class UserManagement {
|
|
|
5753
5849
|
*
|
|
5754
5850
|
* Create a new user in the current environment.
|
|
5755
5851
|
* @param payload - Object containing email.
|
|
5756
|
-
* @returns {Promise<
|
|
5852
|
+
* @returns {Promise<CreateUserResponse>}
|
|
5757
5853
|
* @throws {BadRequestException} 400
|
|
5758
5854
|
* @throws {NotFoundException} 404
|
|
5759
5855
|
* @throws {UnprocessableEntityException} 422
|
|
5760
5856
|
*/
|
|
5761
|
-
createUser(payload: CreateUserOptions): Promise<
|
|
5857
|
+
createUser(payload: CreateUserOptions): Promise<CreateUserResponse>;
|
|
5762
5858
|
/** Authenticate with magic auth. */
|
|
5763
5859
|
authenticateWithMagicAuth(payload: AuthenticateWithMagicAuthOptions): Promise<AuthenticationResponse>;
|
|
5764
5860
|
/** Authenticate with password. */
|
|
@@ -5799,6 +5895,12 @@ declare class UserManagement {
|
|
|
5799
5895
|
authenticateWithEmailVerification(payload: AuthenticateWithEmailVerificationOptions): Promise<AuthenticationResponse>;
|
|
5800
5896
|
/** Authenticate with organization selection. */
|
|
5801
5897
|
authenticateWithOrganizationSelection(payload: AuthenticateWithOrganizationSelectionOptions): Promise<AuthenticationResponse>;
|
|
5898
|
+
/** Send a Radar SMS challenge. */
|
|
5899
|
+
sendRadarSmsChallenge(payload: SendRadarSmsChallengeOptions): Promise<SendRadarSmsChallengeResponse>;
|
|
5900
|
+
/** Authenticate with Radar SMS challenge. */
|
|
5901
|
+
authenticateWithRadarSmsChallenge(payload: AuthenticateWithRadarSmsChallengeOptions): Promise<AuthenticationResponse>;
|
|
5902
|
+
/** Authenticate with Radar email challenge. */
|
|
5903
|
+
authenticateWithRadarEmailChallenge(payload: AuthenticateWithRadarEmailChallengeOptions): Promise<AuthenticationResponse>;
|
|
5802
5904
|
authenticateWithSessionCookie({
|
|
5803
5905
|
sessionData,
|
|
5804
5906
|
cookiePassword
|
|
@@ -5845,12 +5947,12 @@ declare class UserManagement {
|
|
|
5845
5947
|
*
|
|
5846
5948
|
* Creates a one-time authentication code that can be sent to the user's email address. The code expires in 10 minutes. To verify the code, [authenticate the user with Magic Auth](https://workos.com/docs/reference/authkit/authentication/magic-auth).
|
|
5847
5949
|
* @param options - Object containing email.
|
|
5848
|
-
* @returns {Promise<
|
|
5950
|
+
* @returns {Promise<CreateMagicAuthResponse>}
|
|
5849
5951
|
* @throws {BadRequestException} 400
|
|
5850
5952
|
* @throws {UnprocessableEntityException} 422
|
|
5851
5953
|
* @throws {RateLimitExceededException} 429
|
|
5852
5954
|
*/
|
|
5853
|
-
createMagicAuth(options: CreateMagicAuthOptions): Promise<
|
|
5955
|
+
createMagicAuth(options: CreateMagicAuthOptions): Promise<CreateMagicAuthResponse>;
|
|
5854
5956
|
/**
|
|
5855
5957
|
* Verify email
|
|
5856
5958
|
*
|
|
@@ -6397,26 +6499,35 @@ declare class Groups {
|
|
|
6397
6499
|
removeOrganizationMembership(options: RemoveGroupOrganizationMembershipOptions): Promise<void>;
|
|
6398
6500
|
}
|
|
6399
6501
|
//#endregion
|
|
6400
|
-
//#region src/widgets/interfaces/
|
|
6401
|
-
|
|
6402
|
-
|
|
6502
|
+
//#region src/widgets/interfaces/widget-session-token-scopes.interface.d.ts
|
|
6503
|
+
declare const WidgetSessionTokenScopes: {
|
|
6504
|
+
readonly WidgetsUsersTableManage: "widgets:users-table:manage";
|
|
6505
|
+
readonly WidgetsDomainVerificationManage: "widgets:domain-verification:manage";
|
|
6506
|
+
readonly WidgetsSSOManage: "widgets:sso:manage";
|
|
6507
|
+
readonly WidgetsApiKeysManage: "widgets:api-keys:manage";
|
|
6508
|
+
readonly WidgetsDsyncManage: "widgets:dsync:manage";
|
|
6509
|
+
readonly WidgetsAuditLogStreamingManage: "widgets:audit-log-streaming:manage";
|
|
6510
|
+
};
|
|
6511
|
+
type WidgetSessionTokenScopes = (typeof WidgetSessionTokenScopes)[keyof typeof WidgetSessionTokenScopes];
|
|
6512
|
+
//#endregion
|
|
6513
|
+
//#region src/widgets/interfaces/create-token-options.interface.d.ts
|
|
6514
|
+
interface CreateTokenOptions {
|
|
6515
|
+
/** The ID of the organization to scope the widget session to. */
|
|
6403
6516
|
organizationId: string;
|
|
6517
|
+
/** The ID of the user to issue the widget session token for. */
|
|
6404
6518
|
userId?: string;
|
|
6405
|
-
scopes
|
|
6406
|
-
|
|
6407
|
-
interface SerializedGetTokenOptions {
|
|
6408
|
-
organization_id: string;
|
|
6409
|
-
user_id?: string;
|
|
6410
|
-
scopes?: WidgetScope[];
|
|
6519
|
+
/** The scopes to grant the widget session. */
|
|
6520
|
+
scopes?: WidgetSessionTokenScopes[];
|
|
6411
6521
|
}
|
|
6412
|
-
|
|
6413
|
-
interface
|
|
6522
|
+
//#endregion
|
|
6523
|
+
//#region src/widgets/interfaces/widget-session-token-response.interface.d.ts
|
|
6524
|
+
interface WidgetSessionTokenResponse {
|
|
6525
|
+
/** The widget session token. */
|
|
6414
6526
|
token: string;
|
|
6415
6527
|
}
|
|
6416
|
-
interface
|
|
6528
|
+
interface WidgetSessionTokenResponseWire {
|
|
6417
6529
|
token: string;
|
|
6418
6530
|
}
|
|
6419
|
-
declare const deserializeGetTokenResponse: (data: GetTokenResponseResponse) => GetTokenResponse;
|
|
6420
6531
|
//#endregion
|
|
6421
6532
|
//#region src/widgets/widgets.d.ts
|
|
6422
6533
|
declare class Widgets {
|
|
@@ -6426,13 +6537,13 @@ declare class Widgets {
|
|
|
6426
6537
|
* Generate a widget token
|
|
6427
6538
|
*
|
|
6428
6539
|
* Generate a widget token scoped to an organization and user with the specified scopes.
|
|
6429
|
-
* @param
|
|
6430
|
-
* @returns {Promise<
|
|
6540
|
+
* @param options - The request options.
|
|
6541
|
+
* @returns {Promise<WidgetSessionTokenResponse>}
|
|
6431
6542
|
* @throws {BadRequestException} 400
|
|
6432
6543
|
* @throws {NotFoundException} 404
|
|
6433
6544
|
* @throws {UnprocessableEntityException} 422
|
|
6434
6545
|
*/
|
|
6435
|
-
createToken(
|
|
6546
|
+
createToken(options: CreateTokenOptions): Promise<WidgetSessionTokenResponse>;
|
|
6436
6547
|
}
|
|
6437
6548
|
//#endregion
|
|
6438
6549
|
//#region src/authorization/authorization.d.ts
|
|
@@ -7908,9 +8019,10 @@ declare class GenericServerException extends Error implements RequestException {
|
|
|
7908
8019
|
}
|
|
7909
8020
|
//#endregion
|
|
7910
8021
|
//#region src/common/exceptions/authentication.exception.d.ts
|
|
7911
|
-
type AuthenticationErrorCode = 'email_verification_required' | 'organization_selection_required' | 'mfa_enrollment' | 'mfa_challenge' | 'mfa_verification' | 'sso_required';
|
|
8022
|
+
type AuthenticationErrorCode = 'email_verification_required' | 'organization_selection_required' | 'mfa_enrollment' | 'mfa_challenge' | 'mfa_verification' | 'radar_email_challenge' | 'radar_sms_challenge' | 'sso_required';
|
|
7912
8023
|
interface BaseAuthenticationErrorData extends WorkOSErrorData {
|
|
7913
8024
|
pending_authentication_token?: string;
|
|
8025
|
+
radar_challenge_id?: string;
|
|
7914
8026
|
user?: UserResponse;
|
|
7915
8027
|
organizations?: Array<{
|
|
7916
8028
|
id: string;
|
|
@@ -7930,6 +8042,7 @@ declare class AuthenticationException extends GenericServerException {
|
|
|
7930
8042
|
readonly name = "AuthenticationException";
|
|
7931
8043
|
readonly code: AuthenticationErrorCode;
|
|
7932
8044
|
readonly pendingAuthenticationToken: string | undefined;
|
|
8045
|
+
readonly radarChallengeId: string | undefined;
|
|
7933
8046
|
constructor(status: number, rawData: AuthenticationErrorData, requestID: string);
|
|
7934
8047
|
}
|
|
7935
8048
|
//#endregion
|
|
@@ -8199,5 +8312,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
|
|
|
8199
8312
|
declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
|
|
8200
8313
|
declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
|
|
8201
8314
|
//#endregion
|
|
8202
|
-
export { ReadObjectMetadataResponse as $, PermissionDeletedEvent as $a, AuthenticationRadarRiskDetectedEventResponseData as $c, PaginationOptions as $d, GroupDeletedEvent as $i, WithResolvedClientId as $l, UserConsentOptionChoiceResponse as $n, SerializedCreateGroupOptions as $o, AuthenticationPasskeySucceededEvent as $r, ResendInvitationOptions as $s, RadarStandaloneResponseVerdict as $t, ListMembershipsForResourceByExternalIdOptions as $u, ApiKeyRequiredException as A, OrganizationDomainVerificationFailedEventResponse as Aa, ListAuthFactorsOptions as Ac, PermissionResponse as Ad, DsyncGroupUserRemovedEventResponse as Ai, AuthenticateWithRefreshTokenOptions as Al, ConnectApplicationResponse as An, VaultDekDecryptedEvent as Ao, PatchOptions as Ar, OrganizationDomainVerificationStrategy as As, AuditLogExport as At, ListEffectivePermissionsByExternalIdOptions as Au, ObjectSummaryResponse as B, OrganizationRoleCreatedEventResponse as Ba, EmailVerificationEventResponse as Bc, SetEnvironmentRolePermissionsOptions as Bd, EventBase as Bi, SerializedAuthenticateWithMagicAuthOptions as Bl, GetApplicationOptions as Bn, DataKey as Bo, AuthenticationEmailVerificationSucceededEventResponse as Br, UpdateOrganizationMembershipOptions as Bs, FactorWithSecretsResponse as Bt, AssignRoleOptionsWithResourceId as Bu, BadRequestException as C, OrganizationDomainCreatedEvent as Ca, BaseOrganizationMembershipResponse as Cc, UpdateAuthorizationResourceOptions as Cd, DsyncGroupDeletedEvent as Ci, User as Cl, ApplicationCredentialsListItem as Cn, VaultDataCreatedEventResponse as Co, DomainData as Cr, ApiKey as Cs, CreateAuditLogEventRequestOptions as Ct, OrganizationRoleEventResponse as Cu, isAuthenticationErrorData as D, OrganizationDomainUpdatedEvent as Da, ListInvitationsOptions as Dc, CreatePermissionOptions as Dd, DsyncGroupUserAddedEvent as Di, AuthenticateWithRefreshTokenPublicClientOptions as Dl, ConnectApplicationM2MResponse as Dn, VaultDataReadEventResponse as Do, UnprocessableEntityError as Dr, OrganizationDomain as Ds, AuditLogSchemaMetadata as Dt, RoleEventResponse as Du, AuthenticationException as E, OrganizationDomainDeletedEventResponse as Ea, OrganizationMembershipStatus as Ec, UpdatePermissionOptions as Ed, DsyncGroupUpdatedEventResponse as Ei, ImpersonatorResponse as El, ConnectApplicationM2M as En, VaultDataReadEvent as Eo, WorkOSOptions as Er, OrganizationDomainVerificationFailedResponse as Es, AuditLogSchema as Et, RoleEvent as Eu, UpdateWebhookEndpointEvents as F, OrganizationMembershipDeleted as Fa, Identity as Fc, UpdateOrganizationRoleOptions as Fd, DsyncUserUpdatedEvent as Fi, AuthenticateUserWithOrganizationSelectionCredentials as Fl, DeleteClientSecretOptions as Fn, VaultKekCreatedEventResponse as Fo, ApiKeyCreatedEvent as Fr, SerializedUpdateUserPasswordOptions as Fs, VerifyResponseResponse as Ft, RemoveRoleOptionsWithResourceExternalId as Fu, ObjectMetadata as G, OrganizationUpdatedEvent as Ga, SerializedCreatePasswordResetOptions as Gc, EnvironmentRole as Gd, FlagDeletedEvent as Gi, SerializedAuthenticateWithCodeAndVerifierOptions as Gl, CreateOAuthApplicationResponse as Gn, RemoveGroupOrganizationMembershipOptions as Go, AuthenticationMfaSucceededEvent as Gr, SendVerificationEmailOptions as Gs, ChallengeResponse as Gt, SerializedListRoleAssignmentsForResourceOptions as Gu, ObjectVersionResponse as H, OrganizationRoleDeletedEventResponse as Ha, CreateUserOptions as Hc, UpdateEnvironmentRoleOptions as Hd, EventResponse as Hi, AuthenticateWithEmailVerificationOptions as Hl, CreateM2MApplication as Hn, KeyContext as Ho, AuthenticationMagicAuthFailedEventResponse as Hr, Session as Hs, SmsResponse as Ht, SerializedAssignRoleOptions as Hu, UpdateWebhookEndpointStatus as I, OrganizationMembershipDeletedResponse as Ia, EnrollAuthFactorOptions as Ic, CreateOrganizationRoleOptions as Id, DsyncUserUpdatedEventResponse as Ii, AuthenticateWithOrganizationSelectionOptions as Il, CreateApplicationClientSecretOptions as In, VaultMetadataReadEvent as Io, ApiKeyCreatedEventResponse as Ir, UpdateUserPasswordOptions as Is, VerifyChallengeOptions as It, RemoveRoleOptionsWithResourceId as Iu, ActorResponse as J, PasswordResetCreatedEventResponse as Ja, CreateMagicAuthOptions as Jc, EnvironmentRoleResponse as Jd, FlagRuleUpdatedEventResponse as Ji, SerializedAuthenticateWithCodeOptions as Jl, ListApplicationsOptions as Jn, Group as Jo, AuthenticationOAuthFailedEventResponse as Jr, RevokeSessionOptions as Js, RadarListEntryAlreadyPresentResponseWire as Jt, RoleAssignment as Ju, ObjectMetadataResponse as K, OrganizationUpdatedResponse as Ka, CreateOrganizationMembershipOptions as Kc, EnvironmentRoleList as Kd, FlagDeletedEventResponse as Ki, AuthenticateUserWithCodeCredentials as Kl, RedirectUriInput as Kn, ListGroupsOptions as Ko, AuthenticationMfaSucceededEventResponse as Kr, SendInvitationOptions as Ks, ChallengeFactorOptions as Kt, ListRoleAssignmentsOptions as Ku, CreateWebhookEndpointEvents as L, OrganizationMembershipUpdated as La, SerializedEnrollUserInMfaFactorOptions as Lc, SerializedCreateOrganizationRoleOptions as Ld, EmailVerificationCreatedEvent as Li, SerializedAuthenticateWithOrganizationSelectionOptions as Ll, ListApplicationClientSecretsOptions as Ln, VaultMetadataReadEventResponse as Lo, ApiKeyRevokedEvent as Lr, SerializedUpdateUserOptions as Ls, Factor as Lt, SerializedRemoveRoleOptions as Lu, WebhookEndpoint as M, OrganizationDomainVerifiedEventResponse as Ma, InvitationEvent as Mc, AddOrganizationRolePermissionOptions as Md, DsyncUserCreatedEventResponse as Mi, AuthenticateUserWithPasswordCredentials as Ml, ConnectApplicationRedirectUriResponse as Mn, VaultDekReadEvent as Mo, ListResponse as Mr, SerializedCreateOrganizationDomainOptions as Ms, AuditLogExportOptions as Mt, RemoveRoleAssignmentOptions as Mu, WebhookEndpointResponse as N, OrganizationMembershipCreated as Na, InvitationEventResponse as Nc, SetOrganizationRolePermissionsOptions as Nd, DsyncUserDeletedEvent as Ni, AuthenticateWithPasswordOptions as Nl, ExternalAuthCompleteResponse as Nn, VaultDekReadEventResponse as No, GetOptions as Nr, SerializedVerifyEmailOptions as Ns, SerializedAuditLogExportOptions as Nt, BaseRemoveRoleOptions as Nu, GenericServerException as O, OrganizationDomainUpdatedEventResponse as Oa, SerializedListInvitationsOptions as Oc, SerializedCreatePermissionOptions as Od, DsyncGroupUserAddedEventResponse as Oi, SerializedAuthenticateWithRefreshTokenPublicClientOptions as Ol, ConnectApplicationOAuth as On, VaultDataUpdatedEvent as Oo, PutOptions as Or, OrganizationDomainResponse as Os, AuditLogSchemaResponse as Ot, RoleList as Ou, WebhookEndpointStatus as P, OrganizationMembershipCreatedResponse as Pa, InvitationResponse as Pc, SerializedUpdateOrganizationRoleOptions as Pd, DsyncUserDeletedEventResponse as Pi, SerializedAuthenticateWithPasswordOptions as Pl, ExternalAuthCompleteResponseWire as Pn, VaultKekCreatedEvent as Po, GenerateLinkIntent as Pr, VerifyEmailOptions as Ps, VerifyResponse as Pt, RemoveRoleOptions as Pu, UpdateObjectOptions as Q, PermissionCreatedEventResponse as Qa, AuthenticationRadarRiskDetectedEventData as Qc, SerializedListDirectoriesOptions as Qd, GroupCreatedEventResponse as Qi, SerializedAuthenticateWithOptionsBase as Ql, UserConsentOptionChoice as Qn, CreateGroupOptions as Qo, AuthenticationPasskeyFailedEventResponse as Qr, SerializedResetPasswordOptions as Qs, RadarStandaloneResponseControl as Qt, RoleAssignmentRole as Qu, WorkOS as R, OrganizationMembershipUpdatedResponse as Ra, EmailVerification as Rc, OrganizationRole as Rd, EmailVerificationCreatedEventResponse as Ri, AuthenticateUserWithMagicAuthCredentials as Rl, DeleteApplicationOptions as Rn, VaultNamesListedEvent as Ro, ApiKeyRevokedEventResponse as Rr, UpdateUserOptions as Rs, FactorResponse as Rt, AssignRoleOptions as Ru, ConflictException as S, OrganizationDeletedResponse as Sa, BaseOrganizationMembership as Sc, SerializedUpdateAuthorizationResourceOptions as Sd, DsyncGroupCreatedEventResponse as Si, AuthenticationResponseResponse as Sl, NewConnectApplicationSecretResponse as Sn, VaultDataCreatedEvent as So, SerializedCreateOrganizationOptions as Sr, SerializedCreateOrganizationApiKeyOptions as Ss, CreateAuditLogEventOptions as St, OrganizationRoleEvent as Su, AuthenticationErrorData as T, OrganizationDomainDeletedEvent as Ta, OrganizationMembershipResponse as Tc, SerializedUpdatePermissionOptions as Td, DsyncGroupUpdatedEvent as Ti, Impersonator as Tl, ConnectApplication as Tn, VaultDataDeletedEventResponse as To, WorkOSResponseError as Tr, OrganizationDomainVerificationFailed as Ts, AuditLogActorSchema as Tt, Role as Tu, VaultObject as U, OrganizationRoleUpdatedEvent as Ua, SerializedCreateUserOptions as Uc, CreateEnvironmentRoleOptions as Ud, FlagCreatedEvent as Ui, SerializedAuthenticateWithEmailVerificationOptions as Ul, CreateM2MApplicationResponse as Un, SerializedUpdateGroupOptions as Uo, AuthenticationMagicAuthSucceededEvent as Ur, SessionResponse as Us, EnrollFactorOptions as Ut, ListRoleAssignmentsForResourceByExternalIdOptions as Uu, ObjectVersion as V, OrganizationRoleDeletedEvent as Va, EmailVerificationResponse as Vc, SerializedUpdateEnvironmentRoleOptions as Vd, EventName as Vi, AuthenticateUserWithEmailVerificationCredentials as Vl, CreateApplicationOptions as Vn, DataKeyPair as Vo, AuthenticationMagicAuthFailedEvent as Vr, AuthMethod as Vs, Sms as Vt, BaseAssignRoleOptions as Vu, VaultObjectResponse as W, OrganizationRoleUpdatedEventResponse as Wa, CreatePasswordResetOptions as Wc, SerializedCreateEnvironmentRoleOptions as Wd, FlagCreatedEventResponse as Wi, AuthenticateWithCodeAndVerifierOptions as Wl, CreateOAuthApplication as Wn, UpdateGroupOptions as Wo, AuthenticationMagicAuthSucceededEventResponse as Wr, SessionStatus as Ws, Challenge as Wt, ListRoleAssignmentsForResourceOptions as Wu, CreateDataKeyResponseWire as X, PasswordResetSucceededEventResponse as Xa, PKCEAuthorizationURLResult as Xc, ListDirectoryGroupsOptions as Xd, FlagUpdatedEventResponse as Xi, AuthenticateWithSessionOptions as Xl, UserConsentOption as Xn, GetGroupOptions as Xo, AuthenticationOAuthSucceededEventResponse as Xr, serializeRevokeSessionOptions as Xs, RadarStandaloneResponseWire as Xt, RoleAssignmentResourceResponse as Xu, CreateDataKeyResponse as Y, PasswordResetSucceededEvent as Ya, SerializedCreateMagicAuthOptions as Yc, ListDirectoryUsersOptions as Yd, FlagUpdatedEvent as Yi, AuthenticateWithOptionsBase as Yl, CompleteOAuth2Options as Yn, GroupResponse as Yo, AuthenticationOAuthSucceededEvent as Yr, SerializedRevokeSessionOptions as Ys, RadarStandaloneResponse as Yt, RoleAssignmentResource as Yu, UpdateObjectEntity as Z, PermissionCreatedEvent as Za, UserManagementAuthorizationURLOptions as Zc, ListDirectoriesOptions as Zd, GroupCreatedEvent as Zi, SerializedAuthenticatePublicClientBase as Zl, UserConsentOptionResponse as Zn, DeleteGroupOptions as Zo, AuthenticationPasskeyFailedEvent as Zr, ResetPasswordOptions as Zs, RadarStandaloneResponseBlocklistType as Zt, RoleAssignmentResponse as Zu, SignatureVerificationException as _, MagicAuthCreatedEvent as _a, SerializedListSessionsOptions as _c, AuthorizationResourceResponse as _d, DsyncActivatedEvent as _i, AuthenticateWithSessionCookieOptions as _l, PasswordlessSession as _n, UserDeletedEventResponse as _o, OrganizationResponse as _r, ListOrganizationApiKeysOptions as _s, CreateAuditLogSchemaRequestOptions as _t, DirectoryUser as _u, PublicWorkOS as a, GroupMemberRemovedEvent as aa, PasswordResetEventResponse as ac, AuthorizationCheckOptions as ad, DirectoryStateResponse as af, AuthenticationRadarRiskDetectedEvent as ai, TotpResponse as al, GetAccessTokenOptions as an, RoleDeletedEvent as ao, Actions as ar, RemoveFlagTargetOptions as as, DecryptDataKeyResponse as at, OauthTokensResponse as au, NotFoundException as b, OrganizationCreatedResponse as ba, AuthorizationOrganizationMembership as bc, CreateOptionsWithParentResourceId as bd, DsyncDeletedEventResponse as bi, UserManagementAccessToken as bl, SerializedListEventOptions as bn, VaultByokKeyVerificationCompletedEvent as bo, CreateOrganizationOptions as br, CreateOrganizationApiKeyOptions as bs, AuditLogActor as bt, DirectoryUserWithGroupsResponse as bu, PortalLinkResponseWire as c, GroupUpdatedEventResponse as ca, MagicAuthEvent as cc, AuthorizationCheckResult as cd, EventDirectoryResponse as cf, AuthenticationSSOFailedEventResponse as ci, AuthenticationEvent as cl, SerializedGetAccessTokenFailureResponse as cn, RoleUpdatedEventResponse as co, UserRegistrationActionResponseData as cr, FlagPollResponse as cs, GetTokenResponse as ct, GetProfileAndTokenOptions as cu, IntentOptions as d, InvitationCreatedEvent as da, LogoutURLOptions as dc, DeleteAuthorizationResourceByExternalIdOptions as dd, HttpClientResponseInterface as df, ConnectionActivatedEvent as di, AuthenticationEventSsoResponse as dl, SerializedGetAccessTokenSuccessResponse as dn, SessionRevokedEvent as do, UserData as dr, FeatureFlagResponse as ds, WidgetScope as dt, ConnectionDomain as du, GroupDeletedEventResponse as ea, SerializedResendInvitationOptions as ec, ListMembershipsForResourceOptions as ed, DirectoryGroup as ef, AuthenticationPasskeySucceededEventResponse as ei, AuthenticationFactor as el, RadarListAction as en, PermissionDeletedEventResponse as eo, UserObject as er, AddGroupOrganizationMembershipOptions as es, ReadObjectOptions as et, ProfileAndToken as eu, IntentOptionsResponse as f, InvitationCreatedEventResponse as fa, Locale as fc, UpdateAuthorizationResourceByExternalIdOptions as fd, RequestHeaders as ff, ConnectionActivatedEventResponse as fi, AuthenticateUserWithTotpCredentials as fl, AccessToken as fn, SessionRevokedEventResponse as fo, UserDataPayload as fr, EvaluationContext as fs, deserializeGetTokenResponse as ft, ConnectionResponse as fu, UnauthorizedException as g, InvitationRevokedEventResponse as ga, ListSessionsOptions as gc, AuthorizationResource as gd, CryptoProvider as gf, ConnectionDeletedEventResponse as gi, AuthenticateWithSessionCookieFailureReason as gl, SerializedCreatePasswordlessSessionOptions as gn, UserDeletedEvent as go, Organization as gr, ValidateApiKeyResponse as gs, CreateAuditLogSchemaOptions as gt, DefaultCustomAttributes as gu, UnprocessableEntityException as h, InvitationRevokedEvent as ha, ListUserFeatureFlagsOptions as hc, SerializedListAuthorizationResourcesOptions as hd, ResponseHeaders as hf, ConnectionDeletedEvent as hi, AuthenticateWithSessionCookieFailedResponse as hl, CreatePasswordlessSessionOptions as hn, UserCreatedEventResponse as ho, UpdateOrganizationOptions as hr, ValidateApiKeyOptions as hs, CookieSession as ht, SSOPKCEAuthorizationURLResult as hu, PublicUserManagement as i, GroupMemberEventResponseData as ia, PasswordResetEvent as ic, SerializedListResourcesForMembershipOptions as id, DirectoryState as if, AuthenticationPasswordSucceededEventResponse as ii, Totp as il, GetAccessTokenFailureResponse as in, RoleCreatedEventResponse as io, PKCEPair as ir, RuntimeClientOptions as is, DecryptDataKeyOptions as it, OauthTokens as iu, Webhooks as j, OrganizationDomainVerifiedEvent as ja, Invitation as jc, RemoveOrganizationRolePermissionOptions as jd, DsyncUserCreatedEvent as ji, SerializedAuthenticateWithRefreshTokenOptions as jl, ConnectApplicationRedirectUri as jn, VaultDekDecryptedEventResponse as jo, List as jr, CreateOrganizationDomainOptions as js, AuditLogExportResponse as jt, ListEffectivePermissionsOptions as ju, WorkOSErrorData as k, OrganizationDomainVerificationFailedEvent as ka, ListGroupsForOrganizationMembershipOptions as kc, Permission as kd, DsyncGroupUserRemovedEvent as ki, AuthenticateUserWithRefreshTokenCredentials as kl, ConnectApplicationOAuthResponse as kn, VaultDataUpdatedEventResponse as ko, PostOptions as kr, OrganizationDomainState as ks, AuditLogTargetSchema as kt, RoleResponse as ku, GenerateLink as l, InvitationAcceptedEvent as la, MagicAuthEventResponse as lc, SerializedAuthorizationCheckOptions as ld, HttpClient as lf, AuthenticationSSOSucceededEvent as li, AuthenticationEventResponse as ll, SerializedGetAccessTokenOptions as ln, SessionCreatedEvent as lo, ActionContext as lr, FlagTarget as ls, GetTokenResponseResponse as lt, GetProfileOptions as lu, SSOIntentOptionsResponse as m, InvitationResentEventResponse as ma, SerializedListUsersOptions as mc, ListAuthorizationResourcesOptions as md, ResponseHeaderValue as mf, ConnectionDeactivatedEventResponse as mi, SerializedAuthenticateWithTotpOptions as ml, SendSessionResponse as mn, UserCreatedEvent as mo, SerializedUpdateOrganizationOptions as mr, SerializedValidateApiKeyResponse as ms, FeatureFlagsRuntimeClient as mt, SSOAuthorizationURLOptions as mu, PublicClientOptions as n, GroupMemberAddedEventResponse as na, RefreshSessionResponse as nc, ListResourcesForMembershipOptionsWithParentExternalId as nd, Directory as nf, AuthenticationPasswordFailedEventResponse as ni, AuthenticationFactorWithSecrets as nl, RadarStandaloneAssessRequestAction as nn, PermissionUpdatedEventResponse as no, AutoPaginatable as nr, RuntimeClientStats as ns, CreateObjectEntity as nt, Profile as nu, createWorkOS as o, GroupMemberRemovedEventResponse as oa, PasswordResetResponse as oc, AuthorizationCheckOptionsWithResourceExternalId as od, DirectoryType as of, AuthenticationRadarRiskDetectedEventResponse as oi, TotpWithSecrets as ol, GetAccessTokenResponse as on, RoleDeletedEventResponse as oo, AuthenticationActionResponseData as or, ListFeatureFlagsOptions as os, CreateDataKeyOptions as ot, ListConnectionsOptions as ou, SSOIntentOptions as p, InvitationResentEvent as pa, ListUsersOptions as pc, GetAuthorizationResourceByExternalIdOptions as pd, RequestOptions as pf, ConnectionDeactivatedEvent as pi, AuthenticateWithTotpOptions as pl, SerializedAccessToken as pn, UnknownEvent as po, UserRegistrationActionPayload as pr, AddFlagTargetOptions as ps, serializeGetTokenOptions as pt, ConnectionType as pu, Actor as q, PasswordResetCreatedEvent as qa, SerializedCreateOrganizationMembershipOptions as qc, EnvironmentRoleListResponse as qd, FlagRuleUpdatedEvent as qi, AuthenticateWithCodeOptions as ql, RedirectUriInputResponse as qn, ListGroupOrganizationMembershipsOptions as qo, AuthenticationOAuthFailedEvent as qr, SerializedSendInvitationOptions as qs, RadarListEntryAlreadyPresentResponse as qt, SerializedListRoleAssignmentsOptions as qu, PublicSSO as r, GroupMemberEventData as ra, PasswordReset as rc, ListResourcesForMembershipOptionsWithParentId as rd, DirectoryResponse as rf, AuthenticationPasswordSucceededEvent as ri, AuthenticationFactorWithSecretsResponse as rl, RadarStandaloneAssessRequestAuthMethod as rn, RoleCreatedEvent as ro, PKCE as rr, RuntimeClientLogger as rs, CreateObjectOptions as rt, ProfileResponse as ru, PortalLinkResponse as s, GroupUpdatedEvent as sa, MagicAuth as sc, AuthorizationCheckOptionsWithResourceId as sd, EventDirectory as sf, AuthenticationSSOFailedEvent as si, TotpWithSecretsResponse as sl, GetAccessTokenSuccessResponse as sn, RoleUpdatedEvent as so, ResponsePayload as sr, FlagPollEntry as ss, GetTokenOptions as st, SerializedListConnectionsOptions as su, ConfidentialClientOptions as t, GroupMemberAddedEvent as ta, RefreshSessionFailureReason as tc, ListResourcesForMembershipOptions as td, DirectoryGroupResponse as tf, AuthenticationPasswordFailedEvent as ti, AuthenticationFactorResponse as tl, RadarListType as tn, PermissionUpdatedEvent as to, UserObjectResponse as tr, SerializedAddGroupOrganizationMembershipOptions as ts, ReadObjectResponse as tt, ProfileAndTokenResponse as tu, GenerateLinkResponse as u, InvitationAcceptedEventResponse as ua, MagicAuthResponse as uc, DeleteAuthorizationResourceOptions as ud, HttpClientInterface as uf, AuthenticationSSOSucceededEventResponse as ui, AuthenticationEventSso as ul, SerializedGetAccessTokenResponse as un, SessionCreatedEventResponse as uo, ActionPayload as ur, FeatureFlag as us, SerializedGetTokenOptions as ut, Connection as uu, RateLimitExceededException as v, MagicAuthCreatedEventResponse as va, ListOrganizationMembershipsOptions as vc, CreateAuthorizationResourceOptions as vd, DsyncActivatedEventResponse as vi, AuthenticateWithSessionCookieSuccessResponse as vl, PasswordlessSessionResponse as vn, UserUpdatedEvent as vo, ListOrganizationsOptions as vr, CreatedApiKey as vs, CreateAuditLogSchemaResponse as vt, DirectoryUserResponse as vu, AuthenticationErrorCode as w, OrganizationDomainCreatedEventResponse as wa, OrganizationMembership as wc, ListPermissionsOptions as wd, DsyncGroupDeletedEventResponse as wi, UserResponse as wl, ApplicationCredentialsListItemResponse as wn, VaultDataDeletedEvent as wo, DomainDataState as wr, SerializedApiKey as ws, SerializedCreateAuditLogEventOptions as wt, OrganizationRoleResponse as wu, NoApiKeyProvidedException as x, OrganizationDeletedEvent as xa, AuthorizationOrganizationMembershipResponse as xc, SerializedCreateAuthorizationResourceOptions as xd, DsyncGroupCreatedEvent as xi, AuthenticationResponse as xl, NewConnectApplicationSecret as xn, VaultByokKeyVerificationCompletedEventResponse as xo, CreateOrganizationRequestOptions as xr, CreateOrganizationApiKeyRequestOptions as xs, AuditLogTarget as xt, ListOrganizationRolesResponse as xu, OauthException as y, OrganizationCreatedEvent as ya, SerializedListOrganizationMembershipsOptions as yc, CreateOptionsWithParentExternalId as yd, DsyncDeletedEvent as yi, SessionCookieData as yl, ListEventOptions as yn, UserUpdatedEventResponse as yo, ListOrganizationFeatureFlagsOptions as yr, SerializedCreatedApiKey as ys, SerializedCreateAuditLogSchemaOptions as yt, DirectoryUserWithGroups as yu, ObjectSummary as z, OrganizationRoleCreatedEvent as za, EmailVerificationEvent as zc, AddEnvironmentRolePermissionOptions as zd, Event as zi, AuthenticateWithMagicAuthOptions as zl, UpdateApplicationOptions as zn, VaultNamesListedEventResponse as zo, AuthenticationEmailVerificationSucceededEvent as zr, SerializedUpdateOrganizationMembershipOptions as zs, FactorWithSecrets as zt, AssignRoleOptionsWithResourceExternalId as zu };
|
|
8203
|
-
//# sourceMappingURL=factory-
|
|
8315
|
+
export { ReadObjectMetadataResponse as $, PermissionUpdatedEventResponse as $a, PKCEAuthorizationURLResult as $c, UpdateEnvironmentRoleOptions as $d, GroupMemberAddedEventResponse as $i, AuthenticateWithEmailVerificationOptions as $l, AutoPaginatable as $n, RuntimeClientStats as $o, AuthenticationPasswordFailedEventResponse as $r, SerializedResetPasswordOptions as $s, RadarStandaloneAssessRequestAction as $t, SerializedAssignRoleOptions as $u, ApiKeyRequiredException as A, OrganizationMembershipCreated as Aa, ListInvitationsOptions as Ac, CreateOptionsWithParentExternalId as Ad, DsyncUserDeletedEvent as Ai, Impersonator as Al, ExternalAuthCompleteResponse as An, VaultDekReadEventResponse as Ao, GetOptions as Ar, SerializedVerifyEmailOptions as As, SerializedAuditLogExportOptions as At, DirectoryUserWithGroups as Au, ObjectSummaryResponse as B, OrganizationRoleUpdatedEvent as Ba, SerializedEnrollUserInMfaFactorOptions as Bc, Permission as Bd, FlagCreatedEvent as Bi, AuthenticateUserWithOrganizationSelectionCredentials as Bl, CreateM2MApplicationResponse as Bn, SerializedUpdateGroupOptions as Bo, AuthenticationMagicAuthSucceededEvent as Br, SessionResponse as Bs, EnrollFactorOptions as Bt, RoleResponse as Bu, BadRequestException as C, OrganizationDomainDeletedEventResponse as Ca, AuthorizationOrganizationMembership as Cc, UpdateAuthorizationResourceByExternalIdOptions as Cd, RequestHeaders as Cf, DsyncGroupUpdatedEventResponse as Ci, UserManagementAccessToken as Cl, ConnectApplicationM2M as Cn, VaultDataReadEvent as Co, WorkOSOptions as Cr, OrganizationDomainVerificationFailedResponse as Cs, AuditLogSchema as Ct, ConnectionResponse as Cu, isAuthenticationErrorData as D, OrganizationDomainVerificationFailedEventResponse as Da, OrganizationMembership as Dc, AuthorizationResource as Dd, CryptoProvider as Df, DsyncGroupUserRemovedEventResponse as Di, CreateUserResponseResponse as Dl, ConnectApplicationResponse as Dn, VaultDekDecryptedEvent as Do, PatchOptions as Dr, OrganizationDomainVerificationStrategy as Ds, AuditLogExport as Dt, DefaultCustomAttributes as Du, AuthenticationException as E, OrganizationDomainVerificationFailedEvent as Ea, BaseOrganizationMembershipResponse as Ec, SerializedListAuthorizationResourcesOptions as Ed, ResponseHeaders as Ef, DsyncGroupUserRemovedEvent as Ei, CreateUserResponse as El, ConnectApplicationOAuthResponse as En, VaultDataUpdatedEventResponse as Eo, PostOptions as Er, OrganizationDomainState as Es, AuditLogTargetSchema as Et, SSOPKCEAuthorizationURLResult as Eu, UpdateWebhookEndpointEvents as F, OrganizationMembershipUpdatedResponse as Fa, InvitationEvent as Fc, ListPermissionsOptions as Fd, EmailVerificationCreatedEventResponse as Fi, AuthenticateWithRefreshTokenOptions as Fl, DeleteApplicationOptions as Fn, VaultNamesListedEvent as Fo, ApiKeyRevokedEventResponse as Fr, UpdateUserOptions as Fs, FactorResponse as Ft, OrganizationRoleResponse as Fu, ObjectMetadata as G, PasswordResetCreatedEventResponse as Ga, CreateUserOptions as Gc, SerializedUpdateOrganizationRoleOptions as Gd, FlagRuleUpdatedEventResponse as Gi, SerializedAuthenticateWithRadarSmsChallengeOptions as Gl, ListApplicationsOptions as Gn, Group as Go, AuthenticationOAuthFailedEventResponse as Gr, SendRadarSmsChallengeResponseResponse as Gs, RadarListEntryAlreadyPresentResponseWire as Gt, RemoveRoleOptions as Gu, ObjectVersionResponse as H, OrganizationUpdatedEvent as Ha, EmailVerificationEvent as Hc, RemoveOrganizationRolePermissionOptions as Hd, FlagDeletedEvent as Hi, SerializedAuthenticateWithOrganizationSelectionOptions as Hl, CreateOAuthApplicationResponse as Hn, RemoveGroupOrganizationMembershipOptions as Ho, AuthenticationMfaSucceededEvent as Hr, SendVerificationEmailOptions as Hs, ChallengeResponse as Ht, ListEffectivePermissionsOptions as Hu, UpdateWebhookEndpointStatus as I, OrganizationRoleCreatedEvent as Ia, InvitationEventResponse as Ic, SerializedUpdatePermissionOptions as Id, Event as Ii, SerializedAuthenticateWithRefreshTokenOptions as Il, UpdateApplicationOptions as In, VaultNamesListedEventResponse as Io, AuthenticationEmailVerificationSucceededEvent as Ir, SerializedUpdateOrganizationMembershipOptions as Is, FactorWithSecrets as It, Role as Iu, ActorResponse as J, PermissionCreatedEvent as Ja, SerializedCreatePasswordResetOptions as Jc, SerializedCreateOrganizationRoleOptions as Jd, GroupCreatedEvent as Ji, SerializedAuthenticateWithRadarEmailChallengeOptions as Jl, UserConsentOptionResponse as Jn, DeleteGroupOptions as Jo, AuthenticationPasskeyFailedEvent as Jr, SerializedSendInvitationOptions as Js, RadarStandaloneResponseBlocklistType as Jt, SerializedRemoveRoleOptions as Ju, ObjectMetadataResponse as K, PasswordResetSucceededEvent as Ka, SerializedCreateUserOptions as Kc, UpdateOrganizationRoleOptions as Kd, FlagUpdatedEvent as Ki, AuthenticateUserWithRadarEmailChallengeCredentials as Kl, CompleteOAuth2Options as Kn, GroupResponse as Ko, AuthenticationOAuthSucceededEvent as Kr, SerializedSendRadarSmsChallengeOptions as Ks, RadarStandaloneResponse as Kt, RemoveRoleOptionsWithResourceExternalId as Ku, CreateWebhookEndpointEvents as L, OrganizationRoleCreatedEventResponse as La, InvitationResponse as Lc, UpdatePermissionOptions as Ld, EventBase as Li, AuthenticateUserWithPasswordCredentials as Ll, GetApplicationOptions as Ln, DataKey as Lo, AuthenticationEmailVerificationSucceededEventResponse as Lr, UpdateOrganizationMembershipOptions as Ls, FactorWithSecretsResponse as Lt, RoleEvent as Lu, WebhookEndpoint as M, OrganizationMembershipDeleted as Ma, ListGroupsForOrganizationMembershipOptions as Mc, SerializedCreateAuthorizationResourceOptions as Md, DsyncUserUpdatedEvent as Mi, AuthenticateWithRefreshTokenPublicClientOptions as Ml, DeleteClientSecretOptions as Mn, VaultKekCreatedEventResponse as Mo, ApiKeyCreatedEvent as Mr, SerializedUpdateUserPasswordOptions as Ms, VerifyResponseResponse as Mt, ListOrganizationRolesResponse as Mu, WebhookEndpointResponse as N, OrganizationMembershipDeletedResponse as Na, ListAuthFactorsOptions as Nc, SerializedUpdateAuthorizationResourceOptions as Nd, DsyncUserUpdatedEventResponse as Ni, SerializedAuthenticateWithRefreshTokenPublicClientOptions as Nl, CreateApplicationClientSecretOptions as Nn, VaultMetadataReadEvent as No, ApiKeyCreatedEventResponse as Nr, UpdateUserPasswordOptions as Ns, VerifyChallengeOptions as Nt, OrganizationRoleEvent as Nu, GenericServerException as O, OrganizationDomainVerifiedEvent as Oa, OrganizationMembershipResponse as Oc, AuthorizationResourceResponse as Od, DsyncUserCreatedEvent as Oi, User as Ol, ConnectApplicationRedirectUri as On, VaultDekDecryptedEventResponse as Oo, List as Or, CreateOrganizationDomainOptions as Os, AuditLogExportResponse as Ot, DirectoryUser as Ou, WebhookEndpointStatus as P, OrganizationMembershipUpdated as Pa, Invitation as Pc, UpdateAuthorizationResourceOptions as Pd, EmailVerificationCreatedEvent as Pi, AuthenticateUserWithRefreshTokenCredentials as Pl, ListApplicationClientSecretsOptions as Pn, VaultMetadataReadEventResponse as Po, ApiKeyRevokedEvent as Pr, SerializedUpdateUserOptions as Ps, Factor as Pt, OrganizationRoleEventResponse as Pu, UpdateObjectOptions as Q, PermissionUpdatedEvent as Qa, SerializedCreateMagicAuthOptions as Qc, SerializedUpdateEnvironmentRoleOptions as Qd, GroupMemberAddedEvent as Qi, AuthenticateUserWithEmailVerificationCredentials as Ql, UserObjectResponse as Qn, SerializedAddGroupOrganizationMembershipOptions as Qo, AuthenticationPasswordFailedEvent as Qr, ResetPasswordOptions as Qs, RadarListType as Qt, BaseAssignRoleOptions as Qu, WorkOS as R, OrganizationRoleDeletedEvent as Ra, Identity as Rc, CreatePermissionOptions as Rd, EventName as Ri, AuthenticateWithPasswordOptions as Rl, CreateApplicationOptions as Rn, DataKeyPair as Ro, AuthenticationMagicAuthFailedEvent as Rr, AuthMethod as Rs, Sms as Rt, RoleEventResponse as Ru, ConflictException as S, OrganizationDomainDeletedEvent as Sa, SerializedListOrganizationMembershipsOptions as Sc, DeleteAuthorizationResourceByExternalIdOptions as Sd, HttpClientResponseInterface as Sf, DsyncGroupUpdatedEvent as Si, SessionCookieData as Sl, ConnectApplication as Sn, VaultDataDeletedEventResponse as So, WorkOSResponseError as Sr, OrganizationDomainVerificationFailed as Ss, AuditLogActorSchema as St, ConnectionDomain as Su, AuthenticationErrorData as T, OrganizationDomainUpdatedEventResponse as Ta, BaseOrganizationMembership as Tc, ListAuthorizationResourcesOptions as Td, ResponseHeaderValue as Tf, DsyncGroupUserAddedEventResponse as Ti, AuthenticationResponseResponse as Tl, ConnectApplicationOAuth as Tn, VaultDataUpdatedEvent as To, PutOptions as Tr, OrganizationDomainResponse as Ts, AuditLogSchemaResponse as Tt, SSOAuthorizationURLOptions as Tu, VaultObject as U, OrganizationUpdatedResponse as Ua, EmailVerificationEventResponse as Uc, AddOrganizationRolePermissionOptions as Ud, FlagDeletedEventResponse as Ui, AuthenticateUserWithRadarSmsChallengeCredentials as Ul, RedirectUriInput as Un, ListGroupsOptions as Uo, AuthenticationMfaSucceededEventResponse as Ur, SendRadarSmsChallengeOptions as Us, ChallengeFactorOptions as Ut, RemoveRoleAssignmentOptions as Uu, ObjectVersion as V, OrganizationRoleUpdatedEventResponse as Va, EmailVerification as Vc, PermissionResponse as Vd, FlagCreatedEventResponse as Vi, AuthenticateWithOrganizationSelectionOptions as Vl, CreateOAuthApplication as Vn, UpdateGroupOptions as Vo, AuthenticationMagicAuthSucceededEventResponse as Vr, SessionStatus as Vs, Challenge as Vt, ListEffectivePermissionsByExternalIdOptions as Vu, VaultObjectResponse as W, PasswordResetCreatedEvent as Wa, EmailVerificationResponse as Wc, SetOrganizationRolePermissionsOptions as Wd, FlagRuleUpdatedEvent as Wi, AuthenticateWithRadarSmsChallengeOptions as Wl, RedirectUriInputResponse as Wn, ListGroupOrganizationMembershipsOptions as Wo, AuthenticationOAuthFailedEvent as Wr, SendRadarSmsChallengeResponse as Ws, RadarListEntryAlreadyPresentResponse as Wt, BaseRemoveRoleOptions as Wu, CreateDataKeyResponseWire as X, PermissionDeletedEvent as Xa, SerializedCreateOrganizationMembershipOptions as Xc, AddEnvironmentRolePermissionOptions as Xd, GroupDeletedEvent as Xi, AuthenticateWithMagicAuthOptions as Xl, UserConsentOptionChoiceResponse as Xn, SerializedCreateGroupOptions as Xo, AuthenticationPasskeySucceededEvent as Xr, SerializedRevokeSessionOptions as Xs, RadarStandaloneResponseVerdict as Xt, AssignRoleOptionsWithResourceExternalId as Xu, CreateDataKeyResponse as Y, PermissionCreatedEventResponse as Ya, CreateOrganizationMembershipOptions as Yc, OrganizationRole as Yd, GroupCreatedEventResponse as Yi, AuthenticateUserWithMagicAuthCredentials as Yl, UserConsentOptionChoice as Yn, CreateGroupOptions as Yo, AuthenticationPasskeyFailedEventResponse as Yr, RevokeSessionOptions as Ys, RadarStandaloneResponseControl as Yt, AssignRoleOptions as Yu, UpdateObjectEntity as Z, PermissionDeletedEventResponse as Za, CreateMagicAuthOptions as Zc, SetEnvironmentRolePermissionsOptions as Zd, GroupDeletedEventResponse as Zi, SerializedAuthenticateWithMagicAuthOptions as Zl, UserObject as Zn, AddGroupOrganizationMembershipOptions as Zo, AuthenticationPasskeySucceededEventResponse as Zr, serializeRevokeSessionOptions as Zs, RadarListAction as Zt, AssignRoleOptionsWithResourceId as Zu, SignatureVerificationException as _, OrganizationCreatedResponse as _a, SerializedListUsersOptions as _c, AuthorizationCheckOptionsWithResourceExternalId as _d, DirectoryType as _f, DsyncDeletedEventResponse as _i, SerializedAuthenticateWithTotpOptions as _l, SerializedListEventOptions as _n, VaultByokKeyVerificationCompletedEvent as _o, CreateOrganizationOptions as _r, CreateOrganizationApiKeyOptions as _s, AuditLogActor as _t, ListConnectionsOptions as _u, PublicWorkOS as a, GroupUpdatedEventResponse as aa, PasswordResetEvent as ac, RoleAssignment as ad, EnvironmentRoleResponse as af, AuthenticationSSOFailedEventResponse as ai, AuthenticationFactorWithSecrets as al, SerializedGetAccessTokenFailureResponse as an, RoleUpdatedEventResponse as ao, UserRegistrationActionResponseData as ar, FlagPollResponse as as, DecryptDataKeyResponse as at, SerializedAuthenticateWithCodeOptions as au, NotFoundException as b, OrganizationDomainCreatedEvent as ba, SerializedListSessionsOptions as bc, SerializedAuthorizationCheckOptions as bd, HttpClient as bf, DsyncGroupDeletedEvent as bi, AuthenticateWithSessionCookieOptions as bl, ApplicationCredentialsListItem as bn, VaultDataCreatedEventResponse as bo, DomainData as br, ApiKey as bs, CreateAuditLogEventRequestOptions as bt, GetProfileOptions as bu, PortalLinkResponseWire as c, InvitationCreatedEvent as ca, CreateMagicAuthResponse as cc, RoleAssignmentResponse as cd, ListDirectoriesOptions as cf, ConnectionActivatedEvent as ci, TotpResponse as cl, SerializedGetAccessTokenSuccessResponse as cn, SessionRevokedEvent as co, UserData as cr, FeatureFlagResponse as cs, WidgetSessionTokenResponseWire as ct, SerializedAuthenticatePublicClientBase as cu, IntentOptions as d, InvitationResentEventResponse as da, MagicAuthEvent as dc, ListMembershipsForResourceOptions as dd, DirectoryGroup as df, ConnectionDeactivatedEventResponse as di, AuthenticationEvent as dl, SendSessionResponse as dn, UserCreatedEvent as do, SerializedUpdateOrganizationOptions as dr, SerializedValidateApiKeyResponse as ds, FeatureFlagsRuntimeClient as dt, ProfileAndToken as du, GroupMemberEventData as ea, ResendInvitationOptions as ec, ListRoleAssignmentsForResourceByExternalIdOptions as ed, CreateEnvironmentRoleOptions as ef, AuthenticationPasswordSucceededEvent as ei, UserManagementAuthorizationURLOptions as el, RadarStandaloneAssessRequestAuthMethod as en, RoleCreatedEvent as eo, PKCE as er, RuntimeClientLogger as es, ReadObjectOptions as et, SerializedAuthenticateWithEmailVerificationOptions as eu, IntentOptionsResponse as f, InvitationRevokedEvent as fa, MagicAuthEventResponse as fc, ListResourcesForMembershipOptions as fd, DirectoryGroupResponse as ff, ConnectionDeletedEvent as fi, AuthenticationEventResponse as fl, CreatePasswordlessSessionOptions as fn, UserCreatedEventResponse as fo, UpdateOrganizationOptions as fr, ValidateApiKeyOptions as fs, CookieSession as ft, ProfileAndTokenResponse as fu, UnauthorizedException as g, OrganizationCreatedEvent as ga, ListUsersOptions as gc, AuthorizationCheckOptions as gd, DirectoryStateResponse as gf, DsyncDeletedEvent as gi, AuthenticateWithTotpOptions as gl, ListEventOptions as gn, UserUpdatedEventResponse as go, ListOrganizationFeatureFlagsOptions as gr, SerializedCreatedApiKey as gs, SerializedCreateAuditLogSchemaOptions as gt, OauthTokensResponse as gu, UnprocessableEntityException as h, MagicAuthCreatedEventResponse as ha, Locale as hc, SerializedListResourcesForMembershipOptions as hd, DirectoryState as hf, DsyncActivatedEventResponse as hi, AuthenticateUserWithTotpCredentials as hl, PasswordlessSessionResponse as hn, UserUpdatedEvent as ho, ListOrganizationsOptions as hr, CreatedApiKey as hs, CreateAuditLogSchemaResponse as ht, OauthTokens as hu, PublicUserManagement as i, GroupUpdatedEvent as ia, PasswordReset as ic, SerializedListRoleAssignmentsOptions as id, EnvironmentRoleListResponse as if, AuthenticationSSOFailedEvent as ii, AuthenticationFactorResponse as il, GetAccessTokenSuccessResponse as in, RoleUpdatedEvent as io, ResponsePayload as ir, FlagPollEntry as is, DecryptDataKeyOptions as it, AuthenticateWithCodeOptions as iu, Webhooks as j, OrganizationMembershipCreatedResponse as ja, SerializedListInvitationsOptions as jc, CreateOptionsWithParentResourceId as jd, DsyncUserDeletedEventResponse as ji, ImpersonatorResponse as jl, ExternalAuthCompleteResponseWire as jn, VaultKekCreatedEvent as jo, GenerateLinkIntent as jr, VerifyEmailOptions as js, VerifyResponse as jt, DirectoryUserWithGroupsResponse as ju, WorkOSErrorData as k, OrganizationDomainVerifiedEventResponse as ka, OrganizationMembershipStatus as kc, CreateAuthorizationResourceOptions as kd, DsyncUserCreatedEventResponse as ki, UserResponse as kl, ConnectApplicationRedirectUriResponse as kn, VaultDekReadEvent as ko, ListResponse as kr, SerializedCreateOrganizationDomainOptions as ks, AuditLogExportOptions as kt, DirectoryUserResponse as ku, GenerateLink as l, InvitationCreatedEventResponse as la, CreateMagicAuthResponseResponse as lc, RoleAssignmentRole as ld, SerializedListDirectoriesOptions as lf, ConnectionActivatedEventResponse as li, TotpWithSecrets as ll, AccessToken as ln, SessionRevokedEventResponse as lo, UserDataPayload as lr, EvaluationContext as ls, CreateTokenOptions as lt, SerializedAuthenticateWithOptionsBase as lu, SSOIntentOptionsResponse as m, MagicAuthCreatedEvent as ma, LogoutURLOptions as mc, ListResourcesForMembershipOptionsWithParentId as md, DirectoryResponse as mf, DsyncActivatedEvent as mi, AuthenticationEventSsoResponse as ml, PasswordlessSession as mn, UserDeletedEventResponse as mo, OrganizationResponse as mr, ListOrganizationApiKeysOptions as ms, CreateAuditLogSchemaRequestOptions as mt, ProfileResponse as mu, PublicClientOptions as n, GroupMemberRemovedEvent as na, RefreshSessionFailureReason as nc, SerializedListRoleAssignmentsForResourceOptions as nd, EnvironmentRole as nf, AuthenticationRadarRiskDetectedEvent as ni, AuthenticationRadarRiskDetectedEventResponseData as nl, GetAccessTokenOptions as nn, RoleDeletedEvent as no, Actions as nr, RemoveFlagTargetOptions as ns, CreateObjectEntity as nt, SerializedAuthenticateWithCodeAndVerifierOptions as nu, createWorkOS as o, InvitationAcceptedEvent as oa, PasswordResetEventResponse as oc, RoleAssignmentResource as od, ListDirectoryUsersOptions as of, AuthenticationSSOSucceededEvent as oi, AuthenticationFactorWithSecretsResponse as ol, SerializedGetAccessTokenOptions as on, SessionCreatedEvent as oo, ActionContext as or, FlagTarget as os, CreateDataKeyOptions as ot, AuthenticateWithOptionsBase as ou, SSOIntentOptions as p, InvitationRevokedEventResponse as pa, MagicAuthResponse as pc, ListResourcesForMembershipOptionsWithParentExternalId as pd, Directory as pf, ConnectionDeletedEventResponse as pi, AuthenticationEventSso as pl, SerializedCreatePasswordlessSessionOptions as pn, UserDeletedEvent as po, Organization as pr, ValidateApiKeyResponse as ps, CreateAuditLogSchemaOptions as pt, Profile as pu, Actor as q, PasswordResetSucceededEventResponse as qa, CreatePasswordResetOptions as qc, CreateOrganizationRoleOptions as qd, FlagUpdatedEventResponse as qi, AuthenticateWithRadarEmailChallengeOptions as ql, UserConsentOption as qn, GetGroupOptions as qo, AuthenticationOAuthSucceededEventResponse as qr, SendInvitationOptions as qs, RadarStandaloneResponseWire as qt, RemoveRoleOptionsWithResourceId as qu, PublicSSO as r, GroupMemberRemovedEventResponse as ra, RefreshSessionResponse as rc, ListRoleAssignmentsOptions as rd, EnvironmentRoleList as rf, AuthenticationRadarRiskDetectedEventResponse as ri, AuthenticationFactor as rl, GetAccessTokenResponse as rn, RoleDeletedEventResponse as ro, AuthenticationActionResponseData as rr, ListFeatureFlagsOptions as rs, CreateObjectOptions as rt, AuthenticateUserWithCodeCredentials as ru, PortalLinkResponse as s, InvitationAcceptedEventResponse as sa, PasswordResetResponse as sc, RoleAssignmentResourceResponse as sd, ListDirectoryGroupsOptions as sf, AuthenticationSSOSucceededEventResponse as si, Totp as sl, SerializedGetAccessTokenResponse as sn, SessionCreatedEventResponse as so, ActionPayload as sr, FeatureFlag as ss, WidgetSessionTokenResponse as st, AuthenticateWithSessionOptions as su, ConfidentialClientOptions as t, GroupMemberEventResponseData as ta, SerializedResendInvitationOptions as tc, ListRoleAssignmentsForResourceOptions as td, SerializedCreateEnvironmentRoleOptions as tf, AuthenticationPasswordSucceededEventResponse as ti, AuthenticationRadarRiskDetectedEventData as tl, GetAccessTokenFailureResponse as tn, RoleCreatedEventResponse as to, PKCEPair as tr, RuntimeClientOptions as ts, ReadObjectResponse as tt, AuthenticateWithCodeAndVerifierOptions as tu, GenerateLinkResponse as u, InvitationResentEvent as ua, MagicAuth as uc, ListMembershipsForResourceByExternalIdOptions as ud, PaginationOptions as uf, ConnectionDeactivatedEvent as ui, TotpWithSecretsResponse as ul, SerializedAccessToken as un, UnknownEvent as uo, UserRegistrationActionPayload as ur, AddFlagTargetOptions as us, WidgetSessionTokenScopes as ut, WithResolvedClientId as uu, RateLimitExceededException as v, OrganizationDeletedEvent as va, ListUserFeatureFlagsOptions as vc, AuthorizationCheckOptionsWithResourceId as vd, EventDirectory as vf, DsyncGroupCreatedEvent as vi, AuthenticateWithSessionCookieFailedResponse as vl, NewConnectApplicationSecret as vn, VaultByokKeyVerificationCompletedEventResponse as vo, CreateOrganizationRequestOptions as vr, CreateOrganizationApiKeyRequestOptions as vs, AuditLogTarget as vt, SerializedListConnectionsOptions as vu, AuthenticationErrorCode as w, OrganizationDomainUpdatedEvent as wa, AuthorizationOrganizationMembershipResponse as wc, GetAuthorizationResourceByExternalIdOptions as wd, RequestOptions as wf, DsyncGroupUserAddedEvent as wi, AuthenticationResponse as wl, ConnectApplicationM2MResponse as wn, VaultDataReadEventResponse as wo, UnprocessableEntityError as wr, OrganizationDomain as ws, AuditLogSchemaMetadata as wt, ConnectionType as wu, NoApiKeyProvidedException as x, OrganizationDomainCreatedEventResponse as xa, ListOrganizationMembershipsOptions as xc, DeleteAuthorizationResourceOptions as xd, HttpClientInterface as xf, DsyncGroupDeletedEventResponse as xi, AuthenticateWithSessionCookieSuccessResponse as xl, ApplicationCredentialsListItemResponse as xn, VaultDataDeletedEvent as xo, DomainDataState as xr, SerializedApiKey as xs, SerializedCreateAuditLogEventOptions as xt, Connection as xu, OauthException as y, OrganizationDeletedResponse as ya, ListSessionsOptions as yc, AuthorizationCheckResult as yd, EventDirectoryResponse as yf, DsyncGroupCreatedEventResponse as yi, AuthenticateWithSessionCookieFailureReason as yl, NewConnectApplicationSecretResponse as yn, VaultDataCreatedEvent as yo, SerializedCreateOrganizationOptions as yr, SerializedCreateOrganizationApiKeyOptions as ys, CreateAuditLogEventOptions as yt, GetProfileAndTokenOptions as yu, ObjectSummary as z, OrganizationRoleDeletedEventResponse as za, EnrollAuthFactorOptions as zc, SerializedCreatePermissionOptions as zd, EventResponse as zi, SerializedAuthenticateWithPasswordOptions as zl, CreateM2MApplication as zn, KeyContext as zo, AuthenticationMagicAuthFailedEventResponse as zr, Session as zs, SmsResponse as zt, RoleList as zu };
|
|
8316
|
+
//# sourceMappingURL=factory-eDncFka5.d.cts.map
|
package/lib/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_factory = require("./factory-
|
|
2
|
+
const require_factory = require("./factory-Cvq9SYzX.cjs");
|
|
3
3
|
//#region src/groups/interfaces/user-organization-membership-base-list-data-status.interface.ts
|
|
4
4
|
const UserOrganizationMembershipBaseListDataStatus = {
|
|
5
5
|
Active: "active",
|
|
@@ -258,6 +258,16 @@ const WebhookEndpointStatus = {
|
|
|
258
258
|
Disabled: "disabled"
|
|
259
259
|
};
|
|
260
260
|
//#endregion
|
|
261
|
+
//#region src/widgets/interfaces/widget-session-token-scopes.interface.ts
|
|
262
|
+
const WidgetSessionTokenScopes = {
|
|
263
|
+
WidgetsUsersTableManage: "widgets:users-table:manage",
|
|
264
|
+
WidgetsDomainVerificationManage: "widgets:domain-verification:manage",
|
|
265
|
+
WidgetsSSOManage: "widgets:sso:manage",
|
|
266
|
+
WidgetsApiKeysManage: "widgets:api-keys:manage",
|
|
267
|
+
WidgetsDsyncManage: "widgets:dsync:manage",
|
|
268
|
+
WidgetsAuditLogStreamingManage: "widgets:audit-log-streaming:manage"
|
|
269
|
+
};
|
|
270
|
+
//#endregion
|
|
261
271
|
//#region src/index.ts
|
|
262
272
|
var WorkOSNode = class extends require_factory.WorkOS {
|
|
263
273
|
/** @override */
|
|
@@ -329,11 +339,10 @@ exports.UpdateWebhookEndpointStatus = UpdateWebhookEndpointStatus;
|
|
|
329
339
|
exports.UserOrganizationMembershipBaseListDataStatus = UserOrganizationMembershipBaseListDataStatus;
|
|
330
340
|
exports.VaultOrder = VaultOrder;
|
|
331
341
|
exports.WebhookEndpointStatus = WebhookEndpointStatus;
|
|
342
|
+
exports.WidgetSessionTokenScopes = WidgetSessionTokenScopes;
|
|
332
343
|
exports.WorkOS = WorkOSNode;
|
|
333
344
|
exports.createWorkOS = require_factory.createWorkOS;
|
|
334
|
-
exports.deserializeGetTokenResponse = require_factory.deserializeGetTokenResponse;
|
|
335
345
|
exports.isAuthenticationErrorData = require_factory.isAuthenticationErrorData;
|
|
336
|
-
exports.serializeGetTokenOptions = require_factory.serializeGetTokenOptions;
|
|
337
346
|
exports.serializeRevokeSessionOptions = require_factory.serializeRevokeSessionOptions;
|
|
338
347
|
|
|
339
348
|
//# sourceMappingURL=index.cjs.map
|
package/lib/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["WorkOS","FetchHttpClient","Webhooks","SubtleCryptoProvider","Actions"],"sources":["../src/groups/interfaces/user-organization-membership-base-list-data-status.interface.ts","../src/radar/interfaces/radar-list-action.interface.ts","../src/radar/interfaces/radar-list-type.interface.ts","../src/radar/interfaces/radar-standalone-assess-request-action.interface.ts","../src/radar/interfaces/radar-standalone-assess-request-auth-method.interface.ts","../src/radar/interfaces/radar-standalone-response-blocklist-type.interface.ts","../src/radar/interfaces/radar-standalone-response-control.interface.ts","../src/radar/interfaces/radar-standalone-response-verdict.interface.ts","../src/vault/interfaces/vault-order.interface.ts","../src/webhooks/interfaces/create-webhook-endpoint-events.interface.ts","../src/webhooks/interfaces/update-webhook-endpoint-events.interface.ts","../src/webhooks/interfaces/update-webhook-endpoint-status.interface.ts","../src/webhooks/interfaces/webhook-endpoint-status.interface.ts","../src/index.ts"],"sourcesContent":["// This file is auto-generated by oagen. Do not edit.\n\nexport const UserOrganizationMembershipBaseListDataStatus = {\n Active: 'active',\n Inactive: 'inactive',\n Pending: 'pending',\n} as const;\n\nexport type UserOrganizationMembershipBaseListDataStatus =\n (typeof UserOrganizationMembershipBaseListDataStatus)[keyof typeof UserOrganizationMembershipBaseListDataStatus];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarListAction = {\n Block: 'block',\n Allow: 'allow',\n} as const;\n\nexport type RadarListAction =\n (typeof RadarListAction)[keyof typeof RadarListAction];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarListType = {\n IpAddress: 'ip_address',\n Domain: 'domain',\n Email: 'email',\n Device: 'device',\n UserAgent: 'user_agent',\n DeviceFingerprint: 'device_fingerprint',\n Country: 'country',\n} as const;\n\nexport type RadarListType = (typeof RadarListType)[keyof typeof RadarListType];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneAssessRequestAction = {\n SignUp: 'sign-up',\n SignIn: 'sign-in',\n} as const;\n\nexport type RadarStandaloneAssessRequestAction =\n (typeof RadarStandaloneAssessRequestAction)[keyof typeof RadarStandaloneAssessRequestAction];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneAssessRequestAuthMethod = {\n Password: 'Password',\n Passkey: 'Passkey',\n Authenticator: 'Authenticator',\n SmsOtp: 'SMS_OTP',\n EmailOtp: 'Email_OTP',\n Social: 'Social',\n SSO: 'SSO',\n Other: 'Other',\n} as const;\n\nexport type RadarStandaloneAssessRequestAuthMethod =\n (typeof RadarStandaloneAssessRequestAuthMethod)[keyof typeof RadarStandaloneAssessRequestAuthMethod];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneResponseBlocklistType = {\n IpAddress: 'ip_address',\n Domain: 'domain',\n Email: 'email',\n Device: 'device',\n UserAgent: 'user_agent',\n DeviceFingerprint: 'device_fingerprint',\n Country: 'country',\n} as const;\n\nexport type RadarStandaloneResponseBlocklistType =\n (typeof RadarStandaloneResponseBlocklistType)[keyof typeof RadarStandaloneResponseBlocklistType];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneResponseControl = {\n BotDetection: 'bot_detection',\n BruteForceAttack: 'brute_force_attack',\n DomainSignUpRateLimit: 'domain_sign_up_rate_limit',\n ImpossibleTravel: 'impossible_travel',\n RepeatSignUp: 'repeat_sign_up',\n StaleAccount: 'stale_account',\n UnrecognizedDevice: 'unrecognized_device',\n Restriction: 'restriction',\n} as const;\n\nexport type RadarStandaloneResponseControl =\n (typeof RadarStandaloneResponseControl)[keyof typeof RadarStandaloneResponseControl];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneResponseVerdict = {\n Allow: 'allow',\n Block: 'block',\n Challenge: 'challenge',\n} as const;\n\nexport type RadarStandaloneResponseVerdict =\n (typeof RadarStandaloneResponseVerdict)[keyof typeof RadarStandaloneResponseVerdict];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const VaultOrder = {\n Asc: 'asc',\n Desc: 'desc',\n} as const;\n\nexport type VaultOrder = (typeof VaultOrder)[keyof typeof VaultOrder];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const CreateWebhookEndpointEvents = {\n AuthenticationEmailVerificationSucceeded:\n 'authentication.email_verification_succeeded',\n AuthenticationMagicAuthFailed: 'authentication.magic_auth_failed',\n AuthenticationMagicAuthSucceeded: 'authentication.magic_auth_succeeded',\n AuthenticationMfaSucceeded: 'authentication.mfa_succeeded',\n AuthenticationOAuthFailed: 'authentication.oauth_failed',\n AuthenticationOAuthSucceeded: 'authentication.oauth_succeeded',\n AuthenticationPasswordFailed: 'authentication.password_failed',\n AuthenticationPasswordSucceeded: 'authentication.password_succeeded',\n AuthenticationPasskeyFailed: 'authentication.passkey_failed',\n AuthenticationPasskeySucceeded: 'authentication.passkey_succeeded',\n AuthenticationSSOFailed: 'authentication.sso_failed',\n AuthenticationSSOStarted: 'authentication.sso_started',\n AuthenticationSSOSucceeded: 'authentication.sso_succeeded',\n AuthenticationSSOTimedOut: 'authentication.sso_timed_out',\n AuthenticationRadarRiskDetected: 'authentication.radar_risk_detected',\n ApiKeyCreated: 'api_key.created',\n ApiKeyRevoked: 'api_key.revoked',\n ConnectionActivated: 'connection.activated',\n ConnectionDeactivated: 'connection.deactivated',\n ConnectionSAMLCertificateRenewalRequired:\n 'connection.saml_certificate_renewal_required',\n ConnectionSAMLCertificateRenewed: 'connection.saml_certificate_renewed',\n ConnectionDeleted: 'connection.deleted',\n DsyncActivated: 'dsync.activated',\n DsyncDeleted: 'dsync.deleted',\n DsyncGroupCreated: 'dsync.group.created',\n DsyncGroupDeleted: 'dsync.group.deleted',\n DsyncGroupUpdated: 'dsync.group.updated',\n DsyncGroupUserAdded: 'dsync.group.user_added',\n DsyncGroupUserRemoved: 'dsync.group.user_removed',\n DsyncUserCreated: 'dsync.user.created',\n DsyncUserDeleted: 'dsync.user.deleted',\n DsyncUserUpdated: 'dsync.user.updated',\n EmailVerificationCreated: 'email_verification.created',\n GroupCreated: 'group.created',\n GroupDeleted: 'group.deleted',\n GroupMemberAdded: 'group.member_added',\n GroupMemberRemoved: 'group.member_removed',\n GroupUpdated: 'group.updated',\n FlagCreated: 'flag.created',\n FlagDeleted: 'flag.deleted',\n FlagUpdated: 'flag.updated',\n FlagRuleUpdated: 'flag.rule_updated',\n InvitationAccepted: 'invitation.accepted',\n InvitationCreated: 'invitation.created',\n InvitationResent: 'invitation.resent',\n InvitationRevoked: 'invitation.revoked',\n MagicAuthCreated: 'magic_auth.created',\n OrganizationCreated: 'organization.created',\n OrganizationDeleted: 'organization.deleted',\n OrganizationUpdated: 'organization.updated',\n OrganizationDomainCreated: 'organization_domain.created',\n OrganizationDomainDeleted: 'organization_domain.deleted',\n OrganizationDomainUpdated: 'organization_domain.updated',\n OrganizationDomainVerified: 'organization_domain.verified',\n OrganizationDomainVerificationFailed:\n 'organization_domain.verification_failed',\n PasswordResetCreated: 'password_reset.created',\n PasswordResetSucceeded: 'password_reset.succeeded',\n UserCreated: 'user.created',\n UserUpdated: 'user.updated',\n UserDeleted: 'user.deleted',\n OrganizationMembershipCreated: 'organization_membership.created',\n OrganizationMembershipDeleted: 'organization_membership.deleted',\n OrganizationMembershipUpdated: 'organization_membership.updated',\n RoleCreated: 'role.created',\n RoleDeleted: 'role.deleted',\n RoleUpdated: 'role.updated',\n OrganizationRoleCreated: 'organization_role.created',\n OrganizationRoleDeleted: 'organization_role.deleted',\n OrganizationRoleUpdated: 'organization_role.updated',\n PermissionCreated: 'permission.created',\n PermissionDeleted: 'permission.deleted',\n PermissionUpdated: 'permission.updated',\n PipesConnectedAccountConnected: 'pipes.connected_account.connected',\n PipesConnectedAccountDisconnected: 'pipes.connected_account.disconnected',\n PipesConnectedAccountReauthorizationNeeded:\n 'pipes.connected_account.reauthorization_needed',\n SessionCreated: 'session.created',\n SessionRevoked: 'session.revoked',\n WaitlistUserApproved: 'waitlist_user.approved',\n WaitlistUserCreated: 'waitlist_user.created',\n WaitlistUserDenied: 'waitlist_user.denied',\n} as const;\n\nexport type CreateWebhookEndpointEvents =\n (typeof CreateWebhookEndpointEvents)[keyof typeof CreateWebhookEndpointEvents];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const UpdateWebhookEndpointEvents = {\n AuthenticationEmailVerificationSucceeded:\n 'authentication.email_verification_succeeded',\n AuthenticationMagicAuthFailed: 'authentication.magic_auth_failed',\n AuthenticationMagicAuthSucceeded: 'authentication.magic_auth_succeeded',\n AuthenticationMfaSucceeded: 'authentication.mfa_succeeded',\n AuthenticationOAuthFailed: 'authentication.oauth_failed',\n AuthenticationOAuthSucceeded: 'authentication.oauth_succeeded',\n AuthenticationPasswordFailed: 'authentication.password_failed',\n AuthenticationPasswordSucceeded: 'authentication.password_succeeded',\n AuthenticationPasskeyFailed: 'authentication.passkey_failed',\n AuthenticationPasskeySucceeded: 'authentication.passkey_succeeded',\n AuthenticationSSOFailed: 'authentication.sso_failed',\n AuthenticationSSOStarted: 'authentication.sso_started',\n AuthenticationSSOSucceeded: 'authentication.sso_succeeded',\n AuthenticationSSOTimedOut: 'authentication.sso_timed_out',\n AuthenticationRadarRiskDetected: 'authentication.radar_risk_detected',\n ApiKeyCreated: 'api_key.created',\n ApiKeyRevoked: 'api_key.revoked',\n ConnectionActivated: 'connection.activated',\n ConnectionDeactivated: 'connection.deactivated',\n ConnectionSAMLCertificateRenewalRequired:\n 'connection.saml_certificate_renewal_required',\n ConnectionSAMLCertificateRenewed: 'connection.saml_certificate_renewed',\n ConnectionDeleted: 'connection.deleted',\n DsyncActivated: 'dsync.activated',\n DsyncDeleted: 'dsync.deleted',\n DsyncGroupCreated: 'dsync.group.created',\n DsyncGroupDeleted: 'dsync.group.deleted',\n DsyncGroupUpdated: 'dsync.group.updated',\n DsyncGroupUserAdded: 'dsync.group.user_added',\n DsyncGroupUserRemoved: 'dsync.group.user_removed',\n DsyncUserCreated: 'dsync.user.created',\n DsyncUserDeleted: 'dsync.user.deleted',\n DsyncUserUpdated: 'dsync.user.updated',\n EmailVerificationCreated: 'email_verification.created',\n GroupCreated: 'group.created',\n GroupDeleted: 'group.deleted',\n GroupMemberAdded: 'group.member_added',\n GroupMemberRemoved: 'group.member_removed',\n GroupUpdated: 'group.updated',\n FlagCreated: 'flag.created',\n FlagDeleted: 'flag.deleted',\n FlagUpdated: 'flag.updated',\n FlagRuleUpdated: 'flag.rule_updated',\n InvitationAccepted: 'invitation.accepted',\n InvitationCreated: 'invitation.created',\n InvitationResent: 'invitation.resent',\n InvitationRevoked: 'invitation.revoked',\n MagicAuthCreated: 'magic_auth.created',\n OrganizationCreated: 'organization.created',\n OrganizationDeleted: 'organization.deleted',\n OrganizationUpdated: 'organization.updated',\n OrganizationDomainCreated: 'organization_domain.created',\n OrganizationDomainDeleted: 'organization_domain.deleted',\n OrganizationDomainUpdated: 'organization_domain.updated',\n OrganizationDomainVerified: 'organization_domain.verified',\n OrganizationDomainVerificationFailed:\n 'organization_domain.verification_failed',\n PasswordResetCreated: 'password_reset.created',\n PasswordResetSucceeded: 'password_reset.succeeded',\n UserCreated: 'user.created',\n UserUpdated: 'user.updated',\n UserDeleted: 'user.deleted',\n OrganizationMembershipCreated: 'organization_membership.created',\n OrganizationMembershipDeleted: 'organization_membership.deleted',\n OrganizationMembershipUpdated: 'organization_membership.updated',\n RoleCreated: 'role.created',\n RoleDeleted: 'role.deleted',\n RoleUpdated: 'role.updated',\n OrganizationRoleCreated: 'organization_role.created',\n OrganizationRoleDeleted: 'organization_role.deleted',\n OrganizationRoleUpdated: 'organization_role.updated',\n PermissionCreated: 'permission.created',\n PermissionDeleted: 'permission.deleted',\n PermissionUpdated: 'permission.updated',\n PipesConnectedAccountConnected: 'pipes.connected_account.connected',\n PipesConnectedAccountDisconnected: 'pipes.connected_account.disconnected',\n PipesConnectedAccountReauthorizationNeeded:\n 'pipes.connected_account.reauthorization_needed',\n SessionCreated: 'session.created',\n SessionRevoked: 'session.revoked',\n WaitlistUserApproved: 'waitlist_user.approved',\n WaitlistUserCreated: 'waitlist_user.created',\n WaitlistUserDenied: 'waitlist_user.denied',\n} as const;\n\nexport type UpdateWebhookEndpointEvents =\n (typeof UpdateWebhookEndpointEvents)[keyof typeof UpdateWebhookEndpointEvents];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const UpdateWebhookEndpointStatus = {\n Enabled: 'enabled',\n Disabled: 'disabled',\n} as const;\n\nexport type UpdateWebhookEndpointStatus =\n (typeof UpdateWebhookEndpointStatus)[keyof typeof UpdateWebhookEndpointStatus];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const WebhookEndpointStatus = {\n Enabled: 'enabled',\n Disabled: 'disabled',\n} as const;\n\nexport type WebhookEndpointStatus =\n (typeof WebhookEndpointStatus)[keyof typeof WebhookEndpointStatus];\n","// @oagen-ignore-file\nimport { SubtleCryptoProvider } from './common/crypto/subtle-crypto-provider';\nimport { CryptoProvider } from './common/crypto/crypto-provider';\n\nimport { HttpClient } from './common/net/http-client';\nimport { FetchHttpClient } from './common/net/fetch-client';\n\nimport { Actions } from './actions/actions';\nimport { Webhooks } from './webhooks/webhooks';\nimport { WorkOS } from './workos';\nimport { WorkOSOptions } from './common/interfaces';\n\nexport * from './actions/interfaces';\nexport * from './api-keys/interfaces';\nexport * from './audit-logs/interfaces';\nexport * from './authorization/interfaces';\nexport * from './connect/interfaces';\nexport * from './common/exceptions';\nexport * from './common/interfaces';\nexport * from './common/utils/pagination';\nexport * from './directory-sync/interfaces';\nexport * from './events/interfaces';\nexport * from './feature-flags/interfaces';\nexport { FeatureFlagsRuntimeClient } from './feature-flags/runtime-client';\nexport * from './groups/interfaces';\nexport * from './multi-factor-auth/interfaces';\nexport * from './organizations/interfaces';\nexport * from './organization-domains/interfaces';\nexport * from './passwordless/interfaces';\nexport * from './pipes/interfaces';\nexport * from './admin-portal/interfaces';\nexport * from './radar/interfaces';\nexport * from './roles/interfaces';\nexport * from './sso/interfaces';\nexport * from './user-management/interfaces';\nexport { CookieSession } from './user-management/session';\nexport * from './vault/interfaces';\nexport * from './webhooks/interfaces';\nexport * from './widgets/interfaces';\nexport * from './pkce/pkce';\nexport {\n createWorkOS,\n type PublicWorkOS,\n type PublicUserManagement,\n type PublicSSO,\n type PublicClientOptions,\n type ConfidentialClientOptions,\n} from './factory';\n\nclass WorkOSNode extends WorkOS {\n /** @override */\n createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient {\n const headers: Record<string, string> = {};\n\n const configHeaders = options.config?.headers;\n if (configHeaders) {\n if (configHeaders instanceof Headers) {\n configHeaders.forEach((v, k) => (headers[k] = v));\n } else if (Array.isArray(configHeaders)) {\n configHeaders.forEach(([k, v]) => (headers[k] = v));\n } else {\n Object.assign(headers, configHeaders);\n }\n }\n\n headers['User-Agent'] = userAgent;\n\n if (this.key) {\n headers['Authorization'] = `Bearer ${this.key}`;\n }\n\n const opts = {\n ...options.config,\n timeout: options.timeout,\n headers,\n };\n\n return new FetchHttpClient(this.baseURL, opts, options.fetchFn);\n }\n\n /** @override */\n createWebhookClient(): Webhooks {\n return new Webhooks(this);\n }\n\n override getCryptoProvider(): CryptoProvider {\n return new SubtleCryptoProvider();\n }\n\n /** @override */\n createActionsClient(): Actions {\n return new Actions(this.getCryptoProvider());\n }\n\n /** @override */\n emitWarning(warning: string): void {\n return process.emitWarning(warning, 'WorkOS');\n }\n}\n\nexport { WorkOSNode as WorkOS };\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["WorkOS","FetchHttpClient","Webhooks","SubtleCryptoProvider","Actions"],"sources":["../src/groups/interfaces/user-organization-membership-base-list-data-status.interface.ts","../src/radar/interfaces/radar-list-action.interface.ts","../src/radar/interfaces/radar-list-type.interface.ts","../src/radar/interfaces/radar-standalone-assess-request-action.interface.ts","../src/radar/interfaces/radar-standalone-assess-request-auth-method.interface.ts","../src/radar/interfaces/radar-standalone-response-blocklist-type.interface.ts","../src/radar/interfaces/radar-standalone-response-control.interface.ts","../src/radar/interfaces/radar-standalone-response-verdict.interface.ts","../src/vault/interfaces/vault-order.interface.ts","../src/webhooks/interfaces/create-webhook-endpoint-events.interface.ts","../src/webhooks/interfaces/update-webhook-endpoint-events.interface.ts","../src/webhooks/interfaces/update-webhook-endpoint-status.interface.ts","../src/webhooks/interfaces/webhook-endpoint-status.interface.ts","../src/widgets/interfaces/widget-session-token-scopes.interface.ts","../src/index.ts"],"sourcesContent":["// This file is auto-generated by oagen. Do not edit.\n\nexport const UserOrganizationMembershipBaseListDataStatus = {\n Active: 'active',\n Inactive: 'inactive',\n Pending: 'pending',\n} as const;\n\nexport type UserOrganizationMembershipBaseListDataStatus =\n (typeof UserOrganizationMembershipBaseListDataStatus)[keyof typeof UserOrganizationMembershipBaseListDataStatus];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarListAction = {\n Block: 'block',\n Allow: 'allow',\n} as const;\n\nexport type RadarListAction =\n (typeof RadarListAction)[keyof typeof RadarListAction];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarListType = {\n IpAddress: 'ip_address',\n Domain: 'domain',\n Email: 'email',\n Device: 'device',\n UserAgent: 'user_agent',\n DeviceFingerprint: 'device_fingerprint',\n Country: 'country',\n} as const;\n\nexport type RadarListType = (typeof RadarListType)[keyof typeof RadarListType];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneAssessRequestAction = {\n SignUp: 'sign-up',\n SignIn: 'sign-in',\n} as const;\n\nexport type RadarStandaloneAssessRequestAction =\n (typeof RadarStandaloneAssessRequestAction)[keyof typeof RadarStandaloneAssessRequestAction];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneAssessRequestAuthMethod = {\n Password: 'Password',\n Passkey: 'Passkey',\n Authenticator: 'Authenticator',\n SmsOtp: 'SMS_OTP',\n EmailOtp: 'Email_OTP',\n Social: 'Social',\n SSO: 'SSO',\n Other: 'Other',\n} as const;\n\nexport type RadarStandaloneAssessRequestAuthMethod =\n (typeof RadarStandaloneAssessRequestAuthMethod)[keyof typeof RadarStandaloneAssessRequestAuthMethod];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneResponseBlocklistType = {\n IpAddress: 'ip_address',\n Domain: 'domain',\n Email: 'email',\n Device: 'device',\n UserAgent: 'user_agent',\n DeviceFingerprint: 'device_fingerprint',\n Country: 'country',\n} as const;\n\nexport type RadarStandaloneResponseBlocklistType =\n (typeof RadarStandaloneResponseBlocklistType)[keyof typeof RadarStandaloneResponseBlocklistType];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneResponseControl = {\n BotDetection: 'bot_detection',\n BruteForceAttack: 'brute_force_attack',\n DomainSignUpRateLimit: 'domain_sign_up_rate_limit',\n ImpossibleTravel: 'impossible_travel',\n RepeatSignUp: 'repeat_sign_up',\n StaleAccount: 'stale_account',\n UnrecognizedDevice: 'unrecognized_device',\n Restriction: 'restriction',\n} as const;\n\nexport type RadarStandaloneResponseControl =\n (typeof RadarStandaloneResponseControl)[keyof typeof RadarStandaloneResponseControl];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const RadarStandaloneResponseVerdict = {\n Allow: 'allow',\n Block: 'block',\n Challenge: 'challenge',\n} as const;\n\nexport type RadarStandaloneResponseVerdict =\n (typeof RadarStandaloneResponseVerdict)[keyof typeof RadarStandaloneResponseVerdict];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const VaultOrder = {\n Asc: 'asc',\n Desc: 'desc',\n} as const;\n\nexport type VaultOrder = (typeof VaultOrder)[keyof typeof VaultOrder];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const CreateWebhookEndpointEvents = {\n AuthenticationEmailVerificationSucceeded:\n 'authentication.email_verification_succeeded',\n AuthenticationMagicAuthFailed: 'authentication.magic_auth_failed',\n AuthenticationMagicAuthSucceeded: 'authentication.magic_auth_succeeded',\n AuthenticationMfaSucceeded: 'authentication.mfa_succeeded',\n AuthenticationOAuthFailed: 'authentication.oauth_failed',\n AuthenticationOAuthSucceeded: 'authentication.oauth_succeeded',\n AuthenticationPasswordFailed: 'authentication.password_failed',\n AuthenticationPasswordSucceeded: 'authentication.password_succeeded',\n AuthenticationPasskeyFailed: 'authentication.passkey_failed',\n AuthenticationPasskeySucceeded: 'authentication.passkey_succeeded',\n AuthenticationSSOFailed: 'authentication.sso_failed',\n AuthenticationSSOStarted: 'authentication.sso_started',\n AuthenticationSSOSucceeded: 'authentication.sso_succeeded',\n AuthenticationSSOTimedOut: 'authentication.sso_timed_out',\n AuthenticationRadarRiskDetected: 'authentication.radar_risk_detected',\n ApiKeyCreated: 'api_key.created',\n ApiKeyRevoked: 'api_key.revoked',\n ConnectionActivated: 'connection.activated',\n ConnectionDeactivated: 'connection.deactivated',\n ConnectionSAMLCertificateRenewalRequired:\n 'connection.saml_certificate_renewal_required',\n ConnectionSAMLCertificateRenewed: 'connection.saml_certificate_renewed',\n ConnectionDeleted: 'connection.deleted',\n DsyncActivated: 'dsync.activated',\n DsyncDeleted: 'dsync.deleted',\n DsyncGroupCreated: 'dsync.group.created',\n DsyncGroupDeleted: 'dsync.group.deleted',\n DsyncGroupUpdated: 'dsync.group.updated',\n DsyncGroupUserAdded: 'dsync.group.user_added',\n DsyncGroupUserRemoved: 'dsync.group.user_removed',\n DsyncUserCreated: 'dsync.user.created',\n DsyncUserDeleted: 'dsync.user.deleted',\n DsyncUserUpdated: 'dsync.user.updated',\n EmailVerificationCreated: 'email_verification.created',\n GroupCreated: 'group.created',\n GroupDeleted: 'group.deleted',\n GroupMemberAdded: 'group.member_added',\n GroupMemberRemoved: 'group.member_removed',\n GroupUpdated: 'group.updated',\n FlagCreated: 'flag.created',\n FlagDeleted: 'flag.deleted',\n FlagUpdated: 'flag.updated',\n FlagRuleUpdated: 'flag.rule_updated',\n InvitationAccepted: 'invitation.accepted',\n InvitationCreated: 'invitation.created',\n InvitationResent: 'invitation.resent',\n InvitationRevoked: 'invitation.revoked',\n MagicAuthCreated: 'magic_auth.created',\n OrganizationCreated: 'organization.created',\n OrganizationDeleted: 'organization.deleted',\n OrganizationUpdated: 'organization.updated',\n OrganizationDomainCreated: 'organization_domain.created',\n OrganizationDomainDeleted: 'organization_domain.deleted',\n OrganizationDomainUpdated: 'organization_domain.updated',\n OrganizationDomainVerified: 'organization_domain.verified',\n OrganizationDomainVerificationFailed:\n 'organization_domain.verification_failed',\n PasswordResetCreated: 'password_reset.created',\n PasswordResetSucceeded: 'password_reset.succeeded',\n UserCreated: 'user.created',\n UserUpdated: 'user.updated',\n UserDeleted: 'user.deleted',\n OrganizationMembershipCreated: 'organization_membership.created',\n OrganizationMembershipDeleted: 'organization_membership.deleted',\n OrganizationMembershipUpdated: 'organization_membership.updated',\n RoleCreated: 'role.created',\n RoleDeleted: 'role.deleted',\n RoleUpdated: 'role.updated',\n OrganizationRoleCreated: 'organization_role.created',\n OrganizationRoleDeleted: 'organization_role.deleted',\n OrganizationRoleUpdated: 'organization_role.updated',\n PermissionCreated: 'permission.created',\n PermissionDeleted: 'permission.deleted',\n PermissionUpdated: 'permission.updated',\n PipesConnectedAccountConnected: 'pipes.connected_account.connected',\n PipesConnectedAccountDisconnected: 'pipes.connected_account.disconnected',\n PipesConnectedAccountReauthorizationNeeded:\n 'pipes.connected_account.reauthorization_needed',\n SessionCreated: 'session.created',\n SessionRevoked: 'session.revoked',\n WaitlistUserApproved: 'waitlist_user.approved',\n WaitlistUserCreated: 'waitlist_user.created',\n WaitlistUserDenied: 'waitlist_user.denied',\n} as const;\n\nexport type CreateWebhookEndpointEvents =\n (typeof CreateWebhookEndpointEvents)[keyof typeof CreateWebhookEndpointEvents];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const UpdateWebhookEndpointEvents = {\n AuthenticationEmailVerificationSucceeded:\n 'authentication.email_verification_succeeded',\n AuthenticationMagicAuthFailed: 'authentication.magic_auth_failed',\n AuthenticationMagicAuthSucceeded: 'authentication.magic_auth_succeeded',\n AuthenticationMfaSucceeded: 'authentication.mfa_succeeded',\n AuthenticationOAuthFailed: 'authentication.oauth_failed',\n AuthenticationOAuthSucceeded: 'authentication.oauth_succeeded',\n AuthenticationPasswordFailed: 'authentication.password_failed',\n AuthenticationPasswordSucceeded: 'authentication.password_succeeded',\n AuthenticationPasskeyFailed: 'authentication.passkey_failed',\n AuthenticationPasskeySucceeded: 'authentication.passkey_succeeded',\n AuthenticationSSOFailed: 'authentication.sso_failed',\n AuthenticationSSOStarted: 'authentication.sso_started',\n AuthenticationSSOSucceeded: 'authentication.sso_succeeded',\n AuthenticationSSOTimedOut: 'authentication.sso_timed_out',\n AuthenticationRadarRiskDetected: 'authentication.radar_risk_detected',\n ApiKeyCreated: 'api_key.created',\n ApiKeyRevoked: 'api_key.revoked',\n ConnectionActivated: 'connection.activated',\n ConnectionDeactivated: 'connection.deactivated',\n ConnectionSAMLCertificateRenewalRequired:\n 'connection.saml_certificate_renewal_required',\n ConnectionSAMLCertificateRenewed: 'connection.saml_certificate_renewed',\n ConnectionDeleted: 'connection.deleted',\n DsyncActivated: 'dsync.activated',\n DsyncDeleted: 'dsync.deleted',\n DsyncGroupCreated: 'dsync.group.created',\n DsyncGroupDeleted: 'dsync.group.deleted',\n DsyncGroupUpdated: 'dsync.group.updated',\n DsyncGroupUserAdded: 'dsync.group.user_added',\n DsyncGroupUserRemoved: 'dsync.group.user_removed',\n DsyncUserCreated: 'dsync.user.created',\n DsyncUserDeleted: 'dsync.user.deleted',\n DsyncUserUpdated: 'dsync.user.updated',\n EmailVerificationCreated: 'email_verification.created',\n GroupCreated: 'group.created',\n GroupDeleted: 'group.deleted',\n GroupMemberAdded: 'group.member_added',\n GroupMemberRemoved: 'group.member_removed',\n GroupUpdated: 'group.updated',\n FlagCreated: 'flag.created',\n FlagDeleted: 'flag.deleted',\n FlagUpdated: 'flag.updated',\n FlagRuleUpdated: 'flag.rule_updated',\n InvitationAccepted: 'invitation.accepted',\n InvitationCreated: 'invitation.created',\n InvitationResent: 'invitation.resent',\n InvitationRevoked: 'invitation.revoked',\n MagicAuthCreated: 'magic_auth.created',\n OrganizationCreated: 'organization.created',\n OrganizationDeleted: 'organization.deleted',\n OrganizationUpdated: 'organization.updated',\n OrganizationDomainCreated: 'organization_domain.created',\n OrganizationDomainDeleted: 'organization_domain.deleted',\n OrganizationDomainUpdated: 'organization_domain.updated',\n OrganizationDomainVerified: 'organization_domain.verified',\n OrganizationDomainVerificationFailed:\n 'organization_domain.verification_failed',\n PasswordResetCreated: 'password_reset.created',\n PasswordResetSucceeded: 'password_reset.succeeded',\n UserCreated: 'user.created',\n UserUpdated: 'user.updated',\n UserDeleted: 'user.deleted',\n OrganizationMembershipCreated: 'organization_membership.created',\n OrganizationMembershipDeleted: 'organization_membership.deleted',\n OrganizationMembershipUpdated: 'organization_membership.updated',\n RoleCreated: 'role.created',\n RoleDeleted: 'role.deleted',\n RoleUpdated: 'role.updated',\n OrganizationRoleCreated: 'organization_role.created',\n OrganizationRoleDeleted: 'organization_role.deleted',\n OrganizationRoleUpdated: 'organization_role.updated',\n PermissionCreated: 'permission.created',\n PermissionDeleted: 'permission.deleted',\n PermissionUpdated: 'permission.updated',\n PipesConnectedAccountConnected: 'pipes.connected_account.connected',\n PipesConnectedAccountDisconnected: 'pipes.connected_account.disconnected',\n PipesConnectedAccountReauthorizationNeeded:\n 'pipes.connected_account.reauthorization_needed',\n SessionCreated: 'session.created',\n SessionRevoked: 'session.revoked',\n WaitlistUserApproved: 'waitlist_user.approved',\n WaitlistUserCreated: 'waitlist_user.created',\n WaitlistUserDenied: 'waitlist_user.denied',\n} as const;\n\nexport type UpdateWebhookEndpointEvents =\n (typeof UpdateWebhookEndpointEvents)[keyof typeof UpdateWebhookEndpointEvents];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const UpdateWebhookEndpointStatus = {\n Enabled: 'enabled',\n Disabled: 'disabled',\n} as const;\n\nexport type UpdateWebhookEndpointStatus =\n (typeof UpdateWebhookEndpointStatus)[keyof typeof UpdateWebhookEndpointStatus];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const WebhookEndpointStatus = {\n Enabled: 'enabled',\n Disabled: 'disabled',\n} as const;\n\nexport type WebhookEndpointStatus =\n (typeof WebhookEndpointStatus)[keyof typeof WebhookEndpointStatus];\n","// This file is auto-generated by oagen. Do not edit.\n\nexport const WidgetSessionTokenScopes = {\n WidgetsUsersTableManage: 'widgets:users-table:manage',\n WidgetsDomainVerificationManage: 'widgets:domain-verification:manage',\n WidgetsSSOManage: 'widgets:sso:manage',\n WidgetsApiKeysManage: 'widgets:api-keys:manage',\n WidgetsDsyncManage: 'widgets:dsync:manage',\n WidgetsAuditLogStreamingManage: 'widgets:audit-log-streaming:manage',\n} as const;\n\nexport type WidgetSessionTokenScopes =\n (typeof WidgetSessionTokenScopes)[keyof typeof WidgetSessionTokenScopes];\n","// @oagen-ignore-file\nimport { SubtleCryptoProvider } from './common/crypto/subtle-crypto-provider';\nimport { CryptoProvider } from './common/crypto/crypto-provider';\n\nimport { HttpClient } from './common/net/http-client';\nimport { FetchHttpClient } from './common/net/fetch-client';\n\nimport { Actions } from './actions/actions';\nimport { Webhooks } from './webhooks/webhooks';\nimport { WorkOS } from './workos';\nimport { WorkOSOptions } from './common/interfaces';\n\nexport * from './actions/interfaces';\nexport * from './api-keys/interfaces';\nexport * from './audit-logs/interfaces';\nexport * from './authorization/interfaces';\nexport * from './connect/interfaces';\nexport * from './common/exceptions';\nexport * from './common/interfaces';\nexport * from './common/utils/pagination';\nexport * from './directory-sync/interfaces';\nexport * from './events/interfaces';\nexport * from './feature-flags/interfaces';\nexport { FeatureFlagsRuntimeClient } from './feature-flags/runtime-client';\nexport * from './groups/interfaces';\nexport * from './multi-factor-auth/interfaces';\nexport * from './organizations/interfaces';\nexport * from './organization-domains/interfaces';\nexport * from './passwordless/interfaces';\nexport * from './pipes/interfaces';\nexport * from './admin-portal/interfaces';\nexport * from './radar/interfaces';\nexport * from './roles/interfaces';\nexport * from './sso/interfaces';\nexport * from './user-management/interfaces';\nexport { CookieSession } from './user-management/session';\nexport * from './vault/interfaces';\nexport * from './webhooks/interfaces';\nexport * from './widgets/interfaces';\nexport * from './pkce/pkce';\nexport {\n createWorkOS,\n type PublicWorkOS,\n type PublicUserManagement,\n type PublicSSO,\n type PublicClientOptions,\n type ConfidentialClientOptions,\n} from './factory';\n\nclass WorkOSNode extends WorkOS {\n /** @override */\n createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient {\n const headers: Record<string, string> = {};\n\n const configHeaders = options.config?.headers;\n if (configHeaders) {\n if (configHeaders instanceof Headers) {\n configHeaders.forEach((v, k) => (headers[k] = v));\n } else if (Array.isArray(configHeaders)) {\n configHeaders.forEach(([k, v]) => (headers[k] = v));\n } else {\n Object.assign(headers, configHeaders);\n }\n }\n\n headers['User-Agent'] = userAgent;\n\n if (this.key) {\n headers['Authorization'] = `Bearer ${this.key}`;\n }\n\n const opts = {\n ...options.config,\n timeout: options.timeout,\n headers,\n };\n\n return new FetchHttpClient(this.baseURL, opts, options.fetchFn);\n }\n\n /** @override */\n createWebhookClient(): Webhooks {\n return new Webhooks(this);\n }\n\n override getCryptoProvider(): CryptoProvider {\n return new SubtleCryptoProvider();\n }\n\n /** @override */\n createActionsClient(): Actions {\n return new Actions(this.getCryptoProvider());\n }\n\n /** @override */\n emitWarning(warning: string): void {\n return process.emitWarning(warning, 'WorkOS');\n }\n}\n\nexport { WorkOSNode as WorkOS };\n"],"mappings":"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"}
|