@workos-inc/node 9.3.0 → 10.0.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-5S80C27h.cjs → factory-CKDJjzbQ.cjs} +1221 -329
- package/lib/factory-CKDJjzbQ.cjs.map +1 -0
- package/lib/{workos-Bm__aISC.d.mts → factory-Ct0t70G0.d.cts} +1975 -526
- package/lib/{workos-DS8Htvr7.d.cts → factory-awA8SmsZ.d.mts} +1975 -526
- package/lib/{factory-DSVg8BX4.mjs → factory-fIHNXxrd.mjs} +1210 -330
- package/lib/factory-fIHNXxrd.mjs.map +1 -0
- package/lib/index.cjs +275 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +284 -10
- package/lib/index.d.mts +284 -10
- package/lib/index.mjs +261 -3
- package/lib/index.mjs.map +1 -1
- package/lib/index.worker.cjs +2 -2
- package/lib/index.worker.cjs.map +1 -1
- package/lib/index.worker.d.cts +17 -2
- package/lib/index.worker.d.mts +17 -2
- package/lib/index.worker.mjs +2 -2
- package/lib/index.worker.mjs.map +1 -1
- package/lib/{webapi-CxKOxXjo.mjs → webapi-CKFbiPvQ.mjs} +3 -2
- package/lib/webapi-CKFbiPvQ.mjs.map +1 -0
- package/lib/{webapi-N7c2LUJd.cjs → webapi-lTzmUixq.cjs} +3 -2
- package/lib/webapi-lTzmUixq.cjs.map +1 -0
- package/package.json +5 -5
- package/lib/factory-5S80C27h.cjs.map +0 -1
- package/lib/factory-DSVg8BX4.mjs.map +0 -1
- package/lib/webapi-CxKOxXjo.mjs.map +0 -1
- package/lib/webapi-N7c2LUJd.cjs.map +0 -1
|
@@ -82,7 +82,6 @@ type RequestOptions = {
|
|
|
82
82
|
type ResponseHeaderValue = string | string[];
|
|
83
83
|
type ResponseHeaders = Record<string, ResponseHeaderValue>;
|
|
84
84
|
interface HttpClientInterface {
|
|
85
|
-
getClientName: () => string;
|
|
86
85
|
get(path: string, options: RequestOptions): any;
|
|
87
86
|
post<Entity = any>(path: string, entity: Entity, options: RequestOptions): any;
|
|
88
87
|
put<Entity = any>(path: string, entity: Entity, options: RequestOptions): any;
|
|
@@ -104,15 +103,12 @@ declare abstract class HttpClient implements HttpClientInterface {
|
|
|
104
103
|
readonly MINIMUM_SLEEP_TIME_IN_MILLISECONDS = 500;
|
|
105
104
|
readonly RETRY_STATUS_CODES: number[];
|
|
106
105
|
constructor(baseURL: string, options?: RequestInit | undefined);
|
|
107
|
-
/** The HTTP client name used for diagnostics */
|
|
108
|
-
getClientName(): string;
|
|
109
106
|
abstract get(path: string, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
110
107
|
abstract post<Entity = any>(path: string, entity: Entity, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
111
108
|
abstract put<Entity = any>(path: string, entity: Entity, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
112
109
|
abstract patch<Entity = any>(path: string, entity: Entity, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
113
110
|
abstract delete(path: string, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
114
111
|
abstract deleteWithBody<Entity = any>(path: string, entity: Entity, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
115
|
-
addClientToUserAgent(userAgent: string): string;
|
|
116
112
|
static getResourceURL(baseURL: string, path: string, params?: Record<string, any>): string;
|
|
117
113
|
static getQueryString(queryObj?: Record<string, any>): string | undefined;
|
|
118
114
|
static getContentTypeHeader(entity: any): RequestHeaders | undefined;
|
|
@@ -122,6 +118,9 @@ declare abstract class HttpClient implements HttpClientInterface {
|
|
|
122
118
|
sleep: (retryAttempt: number) => Promise<unknown>;
|
|
123
119
|
}
|
|
124
120
|
//#endregion
|
|
121
|
+
//#region src/common/crypto/decode-payload.d.ts
|
|
122
|
+
type WebhookPayload = string | Uint8Array | ArrayBuffer | object;
|
|
123
|
+
//#endregion
|
|
125
124
|
//#region src/directory-sync/interfaces/directory.interface.d.ts
|
|
126
125
|
type DirectoryType = 'azure scim v2.0' | 'bamboohr' | 'breathe hr' | 'cezanne hr' | 'cyberark scim v2.0' | 'fourth hr' | 'gsuite directory' | 'generic scim v2.0' | 'hibob' | 'jump cloud scim v2.0' | 'okta scim v2.0' | 'onelogin scim v2.0' | 'people hr' | 'personio' | 'pingfederate scim v2.0' | 'rippling scim v2.0' | 'sftp' | 'sftp workday' | 'workday';
|
|
127
126
|
type DirectoryState = 'active' | 'deleting' | 'inactive' | 'invalid_credentials' | 'validating';
|
|
@@ -493,7 +492,6 @@ interface ListAuthorizationResourcesOptions extends PaginationOptions {
|
|
|
493
492
|
parentResourceId?: string;
|
|
494
493
|
parentResourceTypeSlug?: string;
|
|
495
494
|
parentExternalId?: string;
|
|
496
|
-
search?: string;
|
|
497
495
|
}
|
|
498
496
|
interface SerializedListAuthorizationResourcesOptions extends PaginationOptions {
|
|
499
497
|
organization_id?: string;
|
|
@@ -501,7 +499,6 @@ interface SerializedListAuthorizationResourcesOptions extends PaginationOptions
|
|
|
501
499
|
parent_resource_id?: string;
|
|
502
500
|
parent_resource_type_slug?: string;
|
|
503
501
|
parent_external_id?: string;
|
|
504
|
-
search?: string;
|
|
505
502
|
}
|
|
506
503
|
//#endregion
|
|
507
504
|
//#region src/authorization/interfaces/get-authorization-resource-by-external-id-options.interface.d.ts
|
|
@@ -1309,7 +1306,7 @@ interface AuthenticateWithSessionCookieOptions {
|
|
|
1309
1306
|
sessionData: string;
|
|
1310
1307
|
cookiePassword?: string;
|
|
1311
1308
|
}
|
|
1312
|
-
interface
|
|
1309
|
+
interface UserManagementAccessToken {
|
|
1313
1310
|
sid: string;
|
|
1314
1311
|
org_id?: string;
|
|
1315
1312
|
role?: string;
|
|
@@ -1397,6 +1394,64 @@ interface AuthenticationEventResponse {
|
|
|
1397
1394
|
user_id: string | null;
|
|
1398
1395
|
}
|
|
1399
1396
|
//#endregion
|
|
1397
|
+
//#region src/multi-factor-auth/interfaces/totp.interface.d.ts
|
|
1398
|
+
interface Totp {
|
|
1399
|
+
issuer: string;
|
|
1400
|
+
user: string;
|
|
1401
|
+
}
|
|
1402
|
+
interface TotpWithSecrets extends Totp {
|
|
1403
|
+
qrCode: string;
|
|
1404
|
+
secret: string;
|
|
1405
|
+
uri: string;
|
|
1406
|
+
}
|
|
1407
|
+
interface TotpResponse {
|
|
1408
|
+
issuer: string;
|
|
1409
|
+
user: string;
|
|
1410
|
+
}
|
|
1411
|
+
interface TotpWithSecretsResponse extends TotpResponse {
|
|
1412
|
+
qr_code: string;
|
|
1413
|
+
secret: string;
|
|
1414
|
+
uri: string;
|
|
1415
|
+
}
|
|
1416
|
+
//#endregion
|
|
1417
|
+
//#region src/user-management/interfaces/authentication-factor.interface.d.ts
|
|
1418
|
+
interface AuthenticationFactor {
|
|
1419
|
+
object: 'authentication_factor';
|
|
1420
|
+
id: string;
|
|
1421
|
+
createdAt: string;
|
|
1422
|
+
updatedAt: string;
|
|
1423
|
+
type: 'totp';
|
|
1424
|
+
totp: Totp;
|
|
1425
|
+
userId: string;
|
|
1426
|
+
}
|
|
1427
|
+
interface AuthenticationFactorWithSecrets {
|
|
1428
|
+
object: 'authentication_factor';
|
|
1429
|
+
id: string;
|
|
1430
|
+
createdAt: string;
|
|
1431
|
+
updatedAt: string;
|
|
1432
|
+
type: 'totp';
|
|
1433
|
+
totp: TotpWithSecrets;
|
|
1434
|
+
userId: string;
|
|
1435
|
+
}
|
|
1436
|
+
interface AuthenticationFactorResponse {
|
|
1437
|
+
object: 'authentication_factor';
|
|
1438
|
+
id: string;
|
|
1439
|
+
created_at: string;
|
|
1440
|
+
updated_at: string;
|
|
1441
|
+
type: 'totp';
|
|
1442
|
+
totp: TotpResponse;
|
|
1443
|
+
user_id: string;
|
|
1444
|
+
}
|
|
1445
|
+
interface AuthenticationFactorWithSecretsResponse {
|
|
1446
|
+
object: 'authentication_factor';
|
|
1447
|
+
id: string;
|
|
1448
|
+
created_at: string;
|
|
1449
|
+
updated_at: string;
|
|
1450
|
+
type: 'totp';
|
|
1451
|
+
totp: TotpWithSecretsResponse;
|
|
1452
|
+
user_id: string;
|
|
1453
|
+
}
|
|
1454
|
+
//#endregion
|
|
1400
1455
|
//#region src/user-management/interfaces/authentication-radar-risk-detected-event.interface.d.ts
|
|
1401
1456
|
type AuthenticationRadarRiskDetectedEventData = {
|
|
1402
1457
|
authMethod: string;
|
|
@@ -1585,64 +1640,6 @@ interface SerializedEnrollUserInMfaFactorOptions {
|
|
|
1585
1640
|
totp_secret?: string;
|
|
1586
1641
|
}
|
|
1587
1642
|
//#endregion
|
|
1588
|
-
//#region src/multi-factor-auth/interfaces/totp.interface.d.ts
|
|
1589
|
-
interface Totp {
|
|
1590
|
-
issuer: string;
|
|
1591
|
-
user: string;
|
|
1592
|
-
}
|
|
1593
|
-
interface TotpWithSecrets extends Totp {
|
|
1594
|
-
qrCode: string;
|
|
1595
|
-
secret: string;
|
|
1596
|
-
uri: string;
|
|
1597
|
-
}
|
|
1598
|
-
interface TotpResponse {
|
|
1599
|
-
issuer: string;
|
|
1600
|
-
user: string;
|
|
1601
|
-
}
|
|
1602
|
-
interface TotpWithSecretsResponse extends TotpResponse {
|
|
1603
|
-
qr_code: string;
|
|
1604
|
-
secret: string;
|
|
1605
|
-
uri: string;
|
|
1606
|
-
}
|
|
1607
|
-
//#endregion
|
|
1608
|
-
//#region src/user-management/interfaces/factor.interface.d.ts
|
|
1609
|
-
interface Factor$1 {
|
|
1610
|
-
object: 'authentication_factor';
|
|
1611
|
-
id: string;
|
|
1612
|
-
createdAt: string;
|
|
1613
|
-
updatedAt: string;
|
|
1614
|
-
type: 'totp';
|
|
1615
|
-
totp: Totp;
|
|
1616
|
-
userId: string;
|
|
1617
|
-
}
|
|
1618
|
-
interface FactorWithSecrets$1 {
|
|
1619
|
-
object: 'authentication_factor';
|
|
1620
|
-
id: string;
|
|
1621
|
-
createdAt: string;
|
|
1622
|
-
updatedAt: string;
|
|
1623
|
-
type: 'totp';
|
|
1624
|
-
totp: TotpWithSecrets;
|
|
1625
|
-
userId: string;
|
|
1626
|
-
}
|
|
1627
|
-
interface FactorResponse {
|
|
1628
|
-
object: 'authentication_factor';
|
|
1629
|
-
id: string;
|
|
1630
|
-
created_at: string;
|
|
1631
|
-
updated_at: string;
|
|
1632
|
-
type: 'totp';
|
|
1633
|
-
totp: TotpResponse;
|
|
1634
|
-
user_id: string;
|
|
1635
|
-
}
|
|
1636
|
-
interface FactorWithSecretsResponse {
|
|
1637
|
-
object: 'authentication_factor';
|
|
1638
|
-
id: string;
|
|
1639
|
-
created_at: string;
|
|
1640
|
-
updated_at: string;
|
|
1641
|
-
type: 'totp';
|
|
1642
|
-
totp: TotpWithSecretsResponse;
|
|
1643
|
-
user_id: string;
|
|
1644
|
-
}
|
|
1645
|
-
//#endregion
|
|
1646
1643
|
//#region src/user-management/interfaces/identity.interface.d.ts
|
|
1647
1644
|
interface Identity {
|
|
1648
1645
|
idpId: string;
|
|
@@ -2387,13 +2384,20 @@ interface GetGroupOptions {
|
|
|
2387
2384
|
//#endregion
|
|
2388
2385
|
//#region src/groups/interfaces/group.interface.d.ts
|
|
2389
2386
|
interface Group {
|
|
2387
|
+
/** The Group object. */
|
|
2390
2388
|
object: 'group';
|
|
2389
|
+
/** The unique ID of the Group. */
|
|
2391
2390
|
id: string;
|
|
2391
|
+
/** The ID of the Organization the Group belongs to. */
|
|
2392
2392
|
organizationId: string;
|
|
2393
|
+
/** The name of the Group. */
|
|
2393
2394
|
name: string;
|
|
2395
|
+
/** An optional description of the Group. */
|
|
2394
2396
|
description: string | null;
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
+
/** An ISO 8601 timestamp. */
|
|
2398
|
+
createdAt: Date;
|
|
2399
|
+
/** An ISO 8601 timestamp. */
|
|
2400
|
+
updatedAt: Date;
|
|
2397
2401
|
}
|
|
2398
2402
|
interface GroupResponse {
|
|
2399
2403
|
object: 'group';
|
|
@@ -3502,7 +3506,7 @@ declare class Actions {
|
|
|
3502
3506
|
secret,
|
|
3503
3507
|
tolerance
|
|
3504
3508
|
}: {
|
|
3505
|
-
payload:
|
|
3509
|
+
payload: WebhookPayload;
|
|
3506
3510
|
sigHeader: string;
|
|
3507
3511
|
secret: string;
|
|
3508
3512
|
tolerance?: number;
|
|
@@ -3519,43 +3523,13 @@ declare class Actions {
|
|
|
3519
3523
|
secret,
|
|
3520
3524
|
tolerance
|
|
3521
3525
|
}: {
|
|
3522
|
-
payload:
|
|
3526
|
+
payload: WebhookPayload;
|
|
3523
3527
|
sigHeader: string;
|
|
3524
3528
|
secret: string;
|
|
3525
3529
|
tolerance?: number;
|
|
3526
3530
|
}): Promise<ActionContext>;
|
|
3527
3531
|
}
|
|
3528
3532
|
//#endregion
|
|
3529
|
-
//#region src/webhooks/webhooks.d.ts
|
|
3530
|
-
declare class Webhooks {
|
|
3531
|
-
private signatureProvider;
|
|
3532
|
-
constructor(cryptoProvider: CryptoProvider);
|
|
3533
|
-
get verifyHeader(): ({
|
|
3534
|
-
payload,
|
|
3535
|
-
sigHeader,
|
|
3536
|
-
secret,
|
|
3537
|
-
tolerance
|
|
3538
|
-
}: {
|
|
3539
|
-
payload: any;
|
|
3540
|
-
sigHeader: string;
|
|
3541
|
-
secret: string;
|
|
3542
|
-
tolerance?: number;
|
|
3543
|
-
}) => Promise<boolean>;
|
|
3544
|
-
get computeSignature(): (timestamp: any, payload: any, secret: string) => Promise<string>;
|
|
3545
|
-
get getTimestampAndSignatureHash(): (sigHeader: string) => [string, string];
|
|
3546
|
-
constructEvent({
|
|
3547
|
-
payload,
|
|
3548
|
-
sigHeader,
|
|
3549
|
-
secret,
|
|
3550
|
-
tolerance
|
|
3551
|
-
}: {
|
|
3552
|
-
payload: Record<string, unknown>;
|
|
3553
|
-
sigHeader: string;
|
|
3554
|
-
secret: string;
|
|
3555
|
-
tolerance?: number;
|
|
3556
|
-
}): Promise<Event>;
|
|
3557
|
-
}
|
|
3558
|
-
//#endregion
|
|
3559
3533
|
//#region src/pkce/pkce.d.ts
|
|
3560
3534
|
interface PKCEPair {
|
|
3561
3535
|
codeVerifier: string;
|
|
@@ -3670,244 +3644,747 @@ declare class ApiKeys {
|
|
|
3670
3644
|
createOrganizationApiKey(options: CreateOrganizationApiKeyOptions, requestOptions?: CreateOrganizationApiKeyRequestOptions): Promise<CreatedApiKey>;
|
|
3671
3645
|
}
|
|
3672
3646
|
//#endregion
|
|
3673
|
-
//#region src/
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
/**
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
*
|
|
3693
|
-
* @example
|
|
3694
|
-
* "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
3695
|
-
*
|
|
3696
|
-
* @returns {Promise<Directory>}
|
|
3697
|
-
* @throws 403 response from the API.
|
|
3698
|
-
* @throws {NotFoundException} 404
|
|
3699
|
-
*/
|
|
3700
|
-
getDirectory(id: string): Promise<Directory>;
|
|
3701
|
-
/**
|
|
3702
|
-
* Delete a Directory
|
|
3703
|
-
*
|
|
3704
|
-
* Permanently deletes an existing directory. It cannot be undone.
|
|
3705
|
-
* @param id - Unique identifier for the Directory.
|
|
3706
|
-
*
|
|
3707
|
-
* @example
|
|
3708
|
-
* "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
3709
|
-
*
|
|
3710
|
-
* @returns {Promise<void>}
|
|
3711
|
-
* @throws 403 response from the API.
|
|
3712
|
-
*/
|
|
3713
|
-
deleteDirectory(id: string): Promise<void>;
|
|
3714
|
-
/**
|
|
3715
|
-
* List Directory Groups
|
|
3716
|
-
*
|
|
3717
|
-
* Get a list of all of existing directory groups matching the criteria specified.
|
|
3718
|
-
* @param options - Pagination and filter options.
|
|
3719
|
-
* @returns {Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>}
|
|
3720
|
-
* @throws 403 response from the API.
|
|
3721
|
-
* @throws {NotFoundException} 404
|
|
3722
|
-
* @throws {UnprocessableEntityException} 422
|
|
3723
|
-
*/
|
|
3724
|
-
listGroups(options: ListDirectoryGroupsOptions): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>;
|
|
3725
|
-
/**
|
|
3726
|
-
* List Directory Users
|
|
3727
|
-
*
|
|
3728
|
-
* Get a list of all of existing Directory Users matching the criteria specified.
|
|
3729
|
-
* @param options - Pagination and filter options.
|
|
3730
|
-
* @returns {Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>}
|
|
3731
|
-
* @throws 403 response from the API.
|
|
3732
|
-
* @throws {NotFoundException} 404
|
|
3733
|
-
* @throws {UnprocessableEntityException} 422
|
|
3734
|
-
* @throws {RateLimitExceededException} 429
|
|
3735
|
-
*/
|
|
3736
|
-
listUsers<TCustomAttributes extends object = DefaultCustomAttributes>(options: ListDirectoryUsersOptions): Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>;
|
|
3737
|
-
/**
|
|
3738
|
-
* Get a Directory User
|
|
3739
|
-
*
|
|
3740
|
-
* Get the details of an existing Directory User.
|
|
3741
|
-
* @param user - Unique identifier for the Directory User.
|
|
3742
|
-
*
|
|
3743
|
-
* @example
|
|
3744
|
-
* "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
|
|
3745
|
-
* @returns {Promise<DirectoryUserWithGroups<TCustomAttributes>>}
|
|
3746
|
-
* @throws 403 response from the API.
|
|
3747
|
-
* @throws {NotFoundException} 404
|
|
3748
|
-
*/
|
|
3749
|
-
getUser<TCustomAttributes extends object = DefaultCustomAttributes>(user: string): Promise<DirectoryUserWithGroups<TCustomAttributes>>;
|
|
3750
|
-
/**
|
|
3751
|
-
* Get a Directory Group
|
|
3752
|
-
*
|
|
3753
|
-
* Get the details of an existing Directory Group.
|
|
3754
|
-
* @param group - Unique identifier for the Directory Group.
|
|
3755
|
-
*
|
|
3756
|
-
* @example
|
|
3757
|
-
* "directory_group_01E1JJS84MFPPQ3G655FHTKX6Z"
|
|
3758
|
-
* @returns {Promise<DirectoryGroup>}
|
|
3759
|
-
* @throws 403 response from the API.
|
|
3760
|
-
* @throws {NotFoundException} 404
|
|
3761
|
-
*/
|
|
3762
|
-
getGroup(group: string): Promise<DirectoryGroup>;
|
|
3647
|
+
//#region src/connect/interfaces/user-object.interface.d.ts
|
|
3648
|
+
interface UserObject {
|
|
3649
|
+
/** Your application's user identifier, which will be stored as an [`external_id`](https://workos.com/docs/authkit/metadata/external-identifiers). Used for upserting and deduplication. */
|
|
3650
|
+
id: string;
|
|
3651
|
+
/** The user's email address. */
|
|
3652
|
+
email: string;
|
|
3653
|
+
/** The user's first name. */
|
|
3654
|
+
firstName?: string;
|
|
3655
|
+
/** The user's last name. */
|
|
3656
|
+
lastName?: string;
|
|
3657
|
+
/** A set of key-value pairs to attach to the user. */
|
|
3658
|
+
metadata?: Record<string, string>;
|
|
3659
|
+
}
|
|
3660
|
+
interface UserObjectResponse {
|
|
3661
|
+
id: string;
|
|
3662
|
+
email: string;
|
|
3663
|
+
first_name?: string;
|
|
3664
|
+
last_name?: string;
|
|
3665
|
+
metadata?: Record<string, string>;
|
|
3763
3666
|
}
|
|
3764
3667
|
//#endregion
|
|
3765
|
-
//#region src/
|
|
3766
|
-
interface
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
after?: string;
|
|
3772
|
-
organizationId?: string;
|
|
3773
|
-
order?: 'asc' | 'desc';
|
|
3668
|
+
//#region src/connect/interfaces/user-consent-option-choice.interface.d.ts
|
|
3669
|
+
interface UserConsentOptionChoice {
|
|
3670
|
+
/** The value of this choice. */
|
|
3671
|
+
value?: string;
|
|
3672
|
+
/** A human-readable label for this choice. */
|
|
3673
|
+
label?: string;
|
|
3774
3674
|
}
|
|
3775
|
-
interface
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3675
|
+
interface UserConsentOptionChoiceResponse {
|
|
3676
|
+
value?: string;
|
|
3677
|
+
label?: string;
|
|
3678
|
+
}
|
|
3679
|
+
//#endregion
|
|
3680
|
+
//#region src/connect/interfaces/user-consent-option.interface.d.ts
|
|
3681
|
+
interface UserConsentOption {
|
|
3682
|
+
/** The claim name for this consent option. */
|
|
3683
|
+
claim: string;
|
|
3684
|
+
/** The type of consent option. */
|
|
3685
|
+
type: 'enum';
|
|
3686
|
+
/** A human-readable label for this consent option. */
|
|
3687
|
+
label: string;
|
|
3688
|
+
/** The available choices for this consent option. */
|
|
3689
|
+
choices: UserConsentOptionChoice[];
|
|
3690
|
+
}
|
|
3691
|
+
interface UserConsentOptionResponse {
|
|
3692
|
+
claim: string;
|
|
3693
|
+
type: 'enum';
|
|
3694
|
+
label: string;
|
|
3695
|
+
choices: UserConsentOptionChoiceResponse[];
|
|
3696
|
+
}
|
|
3697
|
+
//#endregion
|
|
3698
|
+
//#region src/connect/interfaces/complete-oauth-2-options.interface.d.ts
|
|
3699
|
+
interface CompleteOAuth2Options {
|
|
3700
|
+
/** Identifier provided when AuthKit redirected to your login page. */
|
|
3701
|
+
externalAuthId: string;
|
|
3702
|
+
/** The user to create or update in AuthKit. */
|
|
3703
|
+
user: UserObject;
|
|
3704
|
+
/** Array of [User Consent Options](https://workos.com/docs/reference/workos-connect/standalone/user-consent-options) to store with the session. */
|
|
3705
|
+
userConsentOptions?: UserConsentOption[];
|
|
3706
|
+
}
|
|
3707
|
+
//#endregion
|
|
3708
|
+
//#region src/connect/interfaces/list-applications-options.interface.d.ts
|
|
3709
|
+
interface ListApplicationsOptions extends PaginationOptions {
|
|
3710
|
+
/** Filter Connect Applications by organization ID. */
|
|
3711
|
+
organizationId?: string;
|
|
3712
|
+
}
|
|
3713
|
+
//#endregion
|
|
3714
|
+
//#region src/connect/interfaces/redirect-uri-input.interface.d.ts
|
|
3715
|
+
interface RedirectUriInput {
|
|
3716
|
+
/** The redirect URI. */
|
|
3717
|
+
uri: string;
|
|
3718
|
+
/** Whether this is the default redirect URI. */
|
|
3719
|
+
default?: boolean | null;
|
|
3720
|
+
}
|
|
3721
|
+
interface RedirectUriInputResponse {
|
|
3722
|
+
uri: string;
|
|
3723
|
+
default?: boolean | null;
|
|
3724
|
+
}
|
|
3725
|
+
//#endregion
|
|
3726
|
+
//#region src/connect/interfaces/create-oauth-application.interface.d.ts
|
|
3727
|
+
interface CreateOAuthApplication {
|
|
3728
|
+
/** The name of the application. */
|
|
3729
|
+
name: string;
|
|
3730
|
+
/** The type of application to create. */
|
|
3731
|
+
applicationType: 'oauth';
|
|
3732
|
+
/** A description for the application. */
|
|
3733
|
+
description?: string | null;
|
|
3734
|
+
/** The OAuth scopes granted to the application. */
|
|
3735
|
+
scopes?: string[] | null;
|
|
3736
|
+
/** Redirect URIs for the application. */
|
|
3737
|
+
redirectUris?: RedirectUriInput[] | null;
|
|
3738
|
+
/** Whether the application uses PKCE (Proof Key for Code Exchange). */
|
|
3739
|
+
usesPkce?: boolean | null;
|
|
3740
|
+
/** Whether this is a first-party application. Third-party applications require an organization_id. */
|
|
3741
|
+
isFirstParty: boolean;
|
|
3742
|
+
/** The organization ID this application belongs to. Required when is_first_party is false. */
|
|
3743
|
+
organizationId?: string | null;
|
|
3744
|
+
}
|
|
3745
|
+
interface CreateOAuthApplicationResponse {
|
|
3746
|
+
name: string;
|
|
3747
|
+
application_type: 'oauth';
|
|
3748
|
+
description?: string | null;
|
|
3749
|
+
scopes?: string[] | null;
|
|
3750
|
+
redirect_uris?: RedirectUriInputResponse[] | null;
|
|
3751
|
+
uses_pkce?: boolean | null;
|
|
3752
|
+
is_first_party: boolean;
|
|
3753
|
+
organization_id?: string | null;
|
|
3754
|
+
}
|
|
3755
|
+
//#endregion
|
|
3756
|
+
//#region src/connect/interfaces/create-m2m-application.interface.d.ts
|
|
3757
|
+
interface CreateM2MApplication {
|
|
3758
|
+
/** The name of the application. */
|
|
3759
|
+
name: string;
|
|
3760
|
+
/** The type of application to create. */
|
|
3761
|
+
applicationType: 'm2m';
|
|
3762
|
+
/** A description for the application. */
|
|
3763
|
+
description?: string | null;
|
|
3764
|
+
/** The OAuth scopes granted to the application. */
|
|
3765
|
+
scopes?: string[] | null;
|
|
3766
|
+
/** The organization ID this application belongs to. */
|
|
3767
|
+
organizationId: string;
|
|
3768
|
+
}
|
|
3769
|
+
interface CreateM2MApplicationResponse {
|
|
3770
|
+
name: string;
|
|
3771
|
+
application_type: 'm2m';
|
|
3772
|
+
description?: string | null;
|
|
3773
|
+
scopes?: string[] | null;
|
|
3774
|
+
organization_id: string;
|
|
3775
|
+
}
|
|
3776
|
+
//#endregion
|
|
3777
|
+
//#region src/connect/interfaces/create-application-options.interface.d.ts
|
|
3778
|
+
type CreateApplicationOptions = {} & (CreateOAuthApplication | CreateM2MApplication);
|
|
3779
|
+
//#endregion
|
|
3780
|
+
//#region src/connect/interfaces/get-application-options.interface.d.ts
|
|
3781
|
+
interface GetApplicationOptions {
|
|
3782
|
+
/** The application ID or client ID of the Connect Application. */
|
|
3783
|
+
id: string;
|
|
3784
|
+
}
|
|
3785
|
+
//#endregion
|
|
3786
|
+
//#region src/connect/interfaces/update-application-options.interface.d.ts
|
|
3787
|
+
interface UpdateApplicationOptions {
|
|
3788
|
+
/** The application ID or client ID of the Connect Application. */
|
|
3789
|
+
id: string;
|
|
3790
|
+
/** The name of the application. */
|
|
3791
|
+
name?: string;
|
|
3792
|
+
/** A description for the application. */
|
|
3793
|
+
description?: string | null;
|
|
3794
|
+
/** The OAuth scopes granted to the application. */
|
|
3795
|
+
scopes?: string[] | null;
|
|
3796
|
+
/** Updated redirect URIs for the application. OAuth applications only. */
|
|
3797
|
+
redirectUris?: RedirectUriInput[] | null;
|
|
3798
|
+
}
|
|
3799
|
+
//#endregion
|
|
3800
|
+
//#region src/connect/interfaces/delete-application-options.interface.d.ts
|
|
3801
|
+
interface DeleteApplicationOptions {
|
|
3802
|
+
/** The application ID or client ID of the Connect Application. */
|
|
3803
|
+
id: string;
|
|
3804
|
+
}
|
|
3805
|
+
//#endregion
|
|
3806
|
+
//#region src/connect/interfaces/list-application-client-secrets-options.interface.d.ts
|
|
3807
|
+
interface ListApplicationClientSecretsOptions {
|
|
3808
|
+
/** The application ID or client ID of the Connect Application. */
|
|
3809
|
+
id: string;
|
|
3810
|
+
}
|
|
3811
|
+
//#endregion
|
|
3812
|
+
//#region src/connect/interfaces/create-application-client-secret-options.interface.d.ts
|
|
3813
|
+
interface CreateApplicationClientSecretOptions {
|
|
3814
|
+
/** The application ID or client ID of the Connect Application. */
|
|
3815
|
+
id: string;
|
|
3816
|
+
}
|
|
3817
|
+
//#endregion
|
|
3818
|
+
//#region src/connect/interfaces/delete-client-secret-options.interface.d.ts
|
|
3819
|
+
interface DeleteClientSecretOptions {
|
|
3820
|
+
/** The unique ID of the client secret. */
|
|
3821
|
+
id: string;
|
|
3822
|
+
}
|
|
3823
|
+
//#endregion
|
|
3824
|
+
//#region src/connect/interfaces/external-auth-complete-response.interface.d.ts
|
|
3825
|
+
interface ExternalAuthCompleteResponse {
|
|
3826
|
+
/** URI to redirect the user back to AuthKit to complete the OAuth flow. */
|
|
3827
|
+
redirectUri: string;
|
|
3828
|
+
}
|
|
3829
|
+
interface ExternalAuthCompleteResponseWire {
|
|
3830
|
+
redirect_uri: string;
|
|
3831
|
+
}
|
|
3832
|
+
//#endregion
|
|
3833
|
+
//#region src/connect/interfaces/connect-application-redirect-uri.interface.d.ts
|
|
3834
|
+
interface ConnectApplicationRedirectUri {
|
|
3835
|
+
/** The redirect URI for the application. */
|
|
3836
|
+
uri: string;
|
|
3837
|
+
/** Whether this is the default redirect URI. */
|
|
3838
|
+
default: boolean;
|
|
3839
|
+
}
|
|
3840
|
+
interface ConnectApplicationRedirectUriResponse {
|
|
3841
|
+
uri: string;
|
|
3842
|
+
default: boolean;
|
|
3843
|
+
}
|
|
3844
|
+
//#endregion
|
|
3845
|
+
//#region src/connect/interfaces/connect-application.interface.d.ts
|
|
3846
|
+
interface ConnectApplicationOAuth {
|
|
3847
|
+
/** Distinguishes the connect application object. */
|
|
3848
|
+
object: 'connect_application';
|
|
3849
|
+
/** The unique ID of the connect application. */
|
|
3850
|
+
id: string;
|
|
3851
|
+
/** The client ID of the connect application. */
|
|
3852
|
+
clientId: string;
|
|
3853
|
+
/** A description of the connect application. */
|
|
3854
|
+
description: string | null;
|
|
3855
|
+
/** The name of the connect application. */
|
|
3856
|
+
name: string;
|
|
3857
|
+
/** The scopes available for this application. */
|
|
3858
|
+
scopes: string[];
|
|
3859
|
+
/** An ISO 8601 timestamp. */
|
|
3860
|
+
createdAt: Date;
|
|
3861
|
+
/** An ISO 8601 timestamp. */
|
|
3862
|
+
updatedAt: Date;
|
|
3863
|
+
/** The type of the application. */
|
|
3864
|
+
applicationType: 'oauth';
|
|
3865
|
+
/** The redirect URIs configured for this application. */
|
|
3866
|
+
redirectUris: ConnectApplicationRedirectUri[];
|
|
3867
|
+
/** Whether the application uses PKCE for authorization. */
|
|
3868
|
+
usesPkce: boolean;
|
|
3869
|
+
/** Whether the application is a first-party application. */
|
|
3870
|
+
isFirstParty: boolean;
|
|
3871
|
+
/** Whether the application was dynamically registered. */
|
|
3872
|
+
wasDynamicallyRegistered?: boolean;
|
|
3873
|
+
/** The ID of the organization the application belongs to. */
|
|
3874
|
+
organizationId?: string;
|
|
3875
|
+
}
|
|
3876
|
+
interface ConnectApplicationOAuthResponse {
|
|
3877
|
+
/** Distinguishes the connect application object. */
|
|
3878
|
+
object: 'connect_application';
|
|
3879
|
+
/** The unique ID of the connect application. */
|
|
3880
|
+
id: string;
|
|
3881
|
+
/** The client ID of the connect application. */
|
|
3882
|
+
client_id: string;
|
|
3883
|
+
/** A description of the connect application. */
|
|
3884
|
+
description: string | null;
|
|
3885
|
+
/** The name of the connect application. */
|
|
3886
|
+
name: string;
|
|
3887
|
+
/** The scopes available for this application. */
|
|
3888
|
+
scopes: string[];
|
|
3889
|
+
/** An ISO 8601 timestamp. */
|
|
3890
|
+
created_at: string;
|
|
3891
|
+
/** An ISO 8601 timestamp. */
|
|
3892
|
+
updated_at: string;
|
|
3893
|
+
/** The type of the application. */
|
|
3894
|
+
application_type: 'oauth';
|
|
3895
|
+
/** The redirect URIs configured for this application. */
|
|
3896
|
+
redirect_uris: ConnectApplicationRedirectUriResponse[];
|
|
3897
|
+
/** Whether the application uses PKCE for authorization. */
|
|
3898
|
+
uses_pkce: boolean;
|
|
3899
|
+
/** Whether the application is a first-party application. */
|
|
3900
|
+
is_first_party: boolean;
|
|
3901
|
+
/** Whether the application was dynamically registered. */
|
|
3902
|
+
was_dynamically_registered?: boolean;
|
|
3903
|
+
/** The ID of the organization the application belongs to. */
|
|
3781
3904
|
organization_id?: string;
|
|
3782
|
-
order?: 'asc' | 'desc';
|
|
3783
3905
|
}
|
|
3906
|
+
interface ConnectApplicationM2M {
|
|
3907
|
+
/** Distinguishes the connect application object. */
|
|
3908
|
+
object: 'connect_application';
|
|
3909
|
+
/** The unique ID of the connect application. */
|
|
3910
|
+
id: string;
|
|
3911
|
+
/** The client ID of the connect application. */
|
|
3912
|
+
clientId: string;
|
|
3913
|
+
/** A description of the connect application. */
|
|
3914
|
+
description: string | null;
|
|
3915
|
+
/** The name of the connect application. */
|
|
3916
|
+
name: string;
|
|
3917
|
+
/** The scopes available for this application. */
|
|
3918
|
+
scopes: string[];
|
|
3919
|
+
/** An ISO 8601 timestamp. */
|
|
3920
|
+
createdAt: Date;
|
|
3921
|
+
/** An ISO 8601 timestamp. */
|
|
3922
|
+
updatedAt: Date;
|
|
3923
|
+
/** The type of the application. */
|
|
3924
|
+
applicationType: 'm2m';
|
|
3925
|
+
/** The ID of the organization the application belongs to. */
|
|
3926
|
+
organizationId: string;
|
|
3927
|
+
}
|
|
3928
|
+
interface ConnectApplicationM2MResponse {
|
|
3929
|
+
/** Distinguishes the connect application object. */
|
|
3930
|
+
object: 'connect_application';
|
|
3931
|
+
/** The unique ID of the connect application. */
|
|
3932
|
+
id: string;
|
|
3933
|
+
/** The client ID of the connect application. */
|
|
3934
|
+
client_id: string;
|
|
3935
|
+
/** A description of the connect application. */
|
|
3936
|
+
description: string | null;
|
|
3937
|
+
/** The name of the connect application. */
|
|
3938
|
+
name: string;
|
|
3939
|
+
/** The scopes available for this application. */
|
|
3940
|
+
scopes: string[];
|
|
3941
|
+
/** An ISO 8601 timestamp. */
|
|
3942
|
+
created_at: string;
|
|
3943
|
+
/** An ISO 8601 timestamp. */
|
|
3944
|
+
updated_at: string;
|
|
3945
|
+
/** The type of the application. */
|
|
3946
|
+
application_type: 'm2m';
|
|
3947
|
+
/** The ID of the organization the application belongs to. */
|
|
3948
|
+
organization_id: string;
|
|
3949
|
+
}
|
|
3950
|
+
type ConnectApplication = ConnectApplicationOAuth | ConnectApplicationM2M;
|
|
3951
|
+
type ConnectApplicationResponse = ConnectApplicationOAuthResponse | ConnectApplicationM2MResponse;
|
|
3784
3952
|
//#endregion
|
|
3785
|
-
//#region src/
|
|
3786
|
-
|
|
3953
|
+
//#region src/connect/interfaces/application-credentials-list-item.interface.d.ts
|
|
3954
|
+
interface ApplicationCredentialsListItem {
|
|
3955
|
+
/** Distinguishes the connect application secret object. */
|
|
3956
|
+
object: 'connect_application_secret';
|
|
3957
|
+
/** The unique ID of the client secret. */
|
|
3958
|
+
id: string;
|
|
3959
|
+
/** A hint showing the last few characters of the secret value. */
|
|
3960
|
+
secretHint: string;
|
|
3961
|
+
/** The timestamp when the client secret was last used, or null if never used. */
|
|
3962
|
+
lastUsedAt: Date | null;
|
|
3963
|
+
/** An ISO 8601 timestamp. */
|
|
3964
|
+
createdAt: Date;
|
|
3965
|
+
/** An ISO 8601 timestamp. */
|
|
3966
|
+
updatedAt: Date;
|
|
3967
|
+
}
|
|
3968
|
+
interface ApplicationCredentialsListItemResponse {
|
|
3969
|
+
object: 'connect_application_secret';
|
|
3970
|
+
id: string;
|
|
3971
|
+
secret_hint: string;
|
|
3972
|
+
last_used_at: string | null;
|
|
3973
|
+
created_at: string;
|
|
3974
|
+
updated_at: string;
|
|
3975
|
+
}
|
|
3976
|
+
//#endregion
|
|
3977
|
+
//#region src/connect/interfaces/new-connect-application-secret.interface.d.ts
|
|
3978
|
+
interface NewConnectApplicationSecret {
|
|
3979
|
+
/** Distinguishes the connect application secret object. */
|
|
3980
|
+
object: 'connect_application_secret';
|
|
3981
|
+
/** The unique ID of the client secret. */
|
|
3982
|
+
id: string;
|
|
3983
|
+
/** A hint showing the last few characters of the secret value. */
|
|
3984
|
+
secretHint: string;
|
|
3985
|
+
/** The timestamp when the client secret was last used, or null if never used. */
|
|
3986
|
+
lastUsedAt: Date | null;
|
|
3987
|
+
/** An ISO 8601 timestamp. */
|
|
3988
|
+
createdAt: Date;
|
|
3989
|
+
/** An ISO 8601 timestamp. */
|
|
3990
|
+
updatedAt: Date;
|
|
3991
|
+
/** The plaintext secret value. Only returned at creation time and cannot be retrieved later. */
|
|
3992
|
+
secret: string;
|
|
3993
|
+
}
|
|
3994
|
+
interface NewConnectApplicationSecretResponse {
|
|
3995
|
+
object: 'connect_application_secret';
|
|
3996
|
+
id: string;
|
|
3997
|
+
secret_hint: string;
|
|
3998
|
+
last_used_at: string | null;
|
|
3999
|
+
created_at: string;
|
|
4000
|
+
updated_at: string;
|
|
4001
|
+
secret: string;
|
|
4002
|
+
}
|
|
4003
|
+
//#endregion
|
|
4004
|
+
//#region src/connect/connect.d.ts
|
|
4005
|
+
declare class Connect {
|
|
3787
4006
|
private readonly workos;
|
|
3788
4007
|
constructor(workos: WorkOS);
|
|
3789
4008
|
/**
|
|
3790
|
-
*
|
|
4009
|
+
* Complete external authentication
|
|
3791
4010
|
*
|
|
3792
|
-
*
|
|
3793
|
-
*
|
|
3794
|
-
*
|
|
4011
|
+
* Completes an external authentication flow and returns control to AuthKit. This endpoint is used with [Standalone Connect](https://workos.com/docs/authkit/connect/standalone) to bridge your existing authentication system with the Connect OAuth API infrastructure.
|
|
4012
|
+
*
|
|
4013
|
+
* After successfully authenticating a user in your application, calling this endpoint will:
|
|
4014
|
+
*
|
|
4015
|
+
* - Create or update the user in AuthKit, using the given `id` as its `external_id`.
|
|
4016
|
+
* - Return a `redirect_uri` your application should redirect to in order for AuthKit to complete the flow
|
|
4017
|
+
*
|
|
4018
|
+
* Users are automatically created or updated based on the `id` and `email` provided. If a user with the same `id` exists, their information is updated. Otherwise, a new user is created.
|
|
4019
|
+
*
|
|
4020
|
+
* If you provide a new `id` with an `email` that already belongs to an existing user, the request will fail with an error as email addresses are unique to a user.
|
|
4021
|
+
* @param options - Object containing externalAuthId, user.
|
|
4022
|
+
* @param options.externalAuthId - Identifier provided when AuthKit redirected to your login page.
|
|
4023
|
+
* @example "ext_auth_01HXYZ123456789ABCDEFGHIJ"
|
|
4024
|
+
* @param options.user - The user to create or update in AuthKit.
|
|
4025
|
+
* @param options.userConsentOptions - Array of [User Consent Options](https://workos.com/docs/reference/workos-connect/standalone/user-consent-options) to store with the session.
|
|
4026
|
+
* @returns {Promise<ExternalAuthCompleteResponse>}
|
|
3795
4027
|
* @throws {BadRequestException} 400
|
|
4028
|
+
* @throws {NotFoundException} 404
|
|
3796
4029
|
* @throws {UnprocessableEntityException} 422
|
|
3797
4030
|
*/
|
|
3798
|
-
|
|
3799
|
-
}
|
|
3800
|
-
//#endregion
|
|
3801
|
-
//#region src/organizations/organizations.d.ts
|
|
3802
|
-
declare class Organizations {
|
|
3803
|
-
private readonly workos;
|
|
3804
|
-
constructor(workos: WorkOS);
|
|
4031
|
+
completeOAuth2(options: CompleteOAuth2Options): Promise<ExternalAuthCompleteResponse>;
|
|
3805
4032
|
/**
|
|
3806
|
-
* List
|
|
4033
|
+
* List Connect Applications
|
|
3807
4034
|
*
|
|
3808
|
-
*
|
|
4035
|
+
* List all Connect Applications in the current environment with optional filtering.
|
|
3809
4036
|
* @param options - Pagination and filter options.
|
|
3810
|
-
* @returns {Promise<AutoPaginatable<
|
|
4037
|
+
* @returns {Promise<AutoPaginatable<ConnectApplication, ListApplicationsOptions>>}
|
|
3811
4038
|
* @throws {UnprocessableEntityException} 422
|
|
3812
4039
|
*/
|
|
3813
|
-
|
|
4040
|
+
listApplications(options?: ListApplicationsOptions): Promise<AutoPaginatable<ConnectApplication, ListApplicationsOptions>>;
|
|
3814
4041
|
/**
|
|
3815
|
-
* Create
|
|
4042
|
+
* Create a Connect Application
|
|
3816
4043
|
*
|
|
3817
|
-
*
|
|
3818
|
-
* @param
|
|
3819
|
-
* @returns {Promise<
|
|
3820
|
-
* @throws {
|
|
3821
|
-
* @throws {ConflictException} 409
|
|
4044
|
+
* Create a new Connect Application. Supports both OAuth and Machine-to-Machine (M2M) application types.
|
|
4045
|
+
* @param options - The request body.
|
|
4046
|
+
* @returns {Promise<ConnectApplication>}
|
|
4047
|
+
* @throws {NotFoundException} 404
|
|
3822
4048
|
* @throws {UnprocessableEntityException} 422
|
|
3823
4049
|
*/
|
|
3824
|
-
|
|
4050
|
+
createApplication(options: CreateApplicationOptions): Promise<ConnectApplication>;
|
|
3825
4051
|
/**
|
|
3826
|
-
*
|
|
4052
|
+
* Create oauth application.
|
|
4053
|
+
* @param name - The name of the application.
|
|
4054
|
+
* @param isFirstParty - Whether this is a first-party application. Third-party applications require an organization_id.
|
|
4055
|
+
* @param description - A description for the application.
|
|
4056
|
+
* @param scopes - The OAuth scopes granted to the application.
|
|
4057
|
+
* @param redirectUris - Redirect URIs for the application.
|
|
4058
|
+
* @param usesPkce - Whether the application uses PKCE (Proof Key for Code Exchange).
|
|
4059
|
+
* @param organizationId - The organization ID this application belongs to. Required when is_first_party is false.
|
|
4060
|
+
* @returns {Promise<ConnectApplication>}
|
|
4061
|
+
*/
|
|
4062
|
+
createOAuthApplication(name: string, isFirstParty: boolean, description?: string | null, scopes?: string[] | null, redirectUris?: RedirectUriInput[] | null, usesPkce?: boolean | null, organizationId?: string | null): Promise<ConnectApplication>;
|
|
4063
|
+
/**
|
|
4064
|
+
* Create m2m application.
|
|
4065
|
+
* @param name - The name of the application.
|
|
4066
|
+
* @param organizationId - The organization ID this application belongs to.
|
|
4067
|
+
* @param description - A description for the application.
|
|
4068
|
+
* @param scopes - The OAuth scopes granted to the application.
|
|
4069
|
+
* @returns {Promise<ConnectApplication>}
|
|
4070
|
+
*/
|
|
4071
|
+
createM2MApplication(name: string, organizationId: string, description?: string | null, scopes?: string[] | null): Promise<ConnectApplication>;
|
|
4072
|
+
/**
|
|
4073
|
+
* Get a Connect Application
|
|
3827
4074
|
*
|
|
3828
|
-
*
|
|
3829
|
-
* @param
|
|
4075
|
+
* Retrieve details for a specific Connect Application by ID or client ID.
|
|
4076
|
+
* @param options - The request options.
|
|
4077
|
+
* @param options.id - The application ID or client ID of the Connect Application.
|
|
4078
|
+
* @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
|
|
4079
|
+
* @returns {Promise<ConnectApplication>}
|
|
4080
|
+
* @throws {NotFoundException} 404
|
|
4081
|
+
*/
|
|
4082
|
+
getApplication(options: GetApplicationOptions): Promise<ConnectApplication>;
|
|
4083
|
+
/**
|
|
4084
|
+
* Update a Connect Application
|
|
3830
4085
|
*
|
|
3831
|
-
*
|
|
3832
|
-
*
|
|
4086
|
+
* Update an existing Connect Application. For OAuth applications, you can update redirect URIs. For all applications, you can update the name, description, and scopes.
|
|
4087
|
+
* @param options - The request body.
|
|
4088
|
+
* @param options.id - The application ID or client ID of the Connect Application.
|
|
4089
|
+
* @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
|
|
4090
|
+
* @param options.name - The name of the application.
|
|
4091
|
+
* @example "My Application"
|
|
4092
|
+
* @param options.description - A description for the application.
|
|
4093
|
+
* @example "An application for managing user access"
|
|
4094
|
+
* @param options.scopes - The OAuth scopes granted to the application.
|
|
4095
|
+
* @example ["openid","profile","email"]
|
|
4096
|
+
* @param options.redirectUris - Updated redirect URIs for the application. OAuth applications only.
|
|
4097
|
+
* @example [{"uri":"https://example.com/callback","default":true}]
|
|
4098
|
+
* @returns {Promise<ConnectApplication>}
|
|
4099
|
+
* @throws {NotFoundException} 404
|
|
4100
|
+
* @throws {UnprocessableEntityException} 422
|
|
4101
|
+
*/
|
|
4102
|
+
updateApplication(options: UpdateApplicationOptions): Promise<ConnectApplication>;
|
|
4103
|
+
/**
|
|
4104
|
+
* Delete a Connect Application
|
|
3833
4105
|
*
|
|
4106
|
+
* Delete an existing Connect Application.
|
|
4107
|
+
* @param options - The request options.
|
|
4108
|
+
* @param options.id - The application ID or client ID of the Connect Application.
|
|
4109
|
+
* @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
|
|
3834
4110
|
* @returns {Promise<void>}
|
|
3835
|
-
* @throws
|
|
4111
|
+
* @throws {NotFoundException} 404
|
|
3836
4112
|
*/
|
|
3837
|
-
|
|
4113
|
+
deleteApplication(options: DeleteApplicationOptions): Promise<void>;
|
|
3838
4114
|
/**
|
|
3839
|
-
*
|
|
3840
|
-
*
|
|
3841
|
-
* Get the details of an existing organization.
|
|
3842
|
-
* @param id - Unique identifier of the Organization.
|
|
4115
|
+
* List Client Secrets for a Connect Application
|
|
3843
4116
|
*
|
|
3844
|
-
*
|
|
3845
|
-
*
|
|
3846
|
-
*
|
|
3847
|
-
* @
|
|
4117
|
+
* List all client secrets associated with a Connect Application.
|
|
4118
|
+
* @param options - The request options.
|
|
4119
|
+
* @param options.id - The application ID or client ID of the Connect Application.
|
|
4120
|
+
* @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
|
|
4121
|
+
* @returns {Promise<ApplicationCredentialsListItem[]>}
|
|
3848
4122
|
* @throws {NotFoundException} 404
|
|
3849
4123
|
*/
|
|
3850
|
-
|
|
4124
|
+
listApplicationClientSecrets(options: ListApplicationClientSecretsOptions): Promise<ApplicationCredentialsListItem[]>;
|
|
3851
4125
|
/**
|
|
3852
|
-
*
|
|
3853
|
-
*
|
|
3854
|
-
* Get the details of an existing organization by an [external identifier](https://workos.com/docs/authkit/metadata/external-identifiers).
|
|
3855
|
-
* @param externalId - The external ID of the Organization.
|
|
3856
|
-
*
|
|
3857
|
-
* @example
|
|
3858
|
-
* "2fe01467-f7ea-4dd2-8b79-c2b4f56d0191"
|
|
4126
|
+
* Create a new client secret for a Connect Application
|
|
3859
4127
|
*
|
|
3860
|
-
*
|
|
4128
|
+
* Create new secrets for a Connect Application.
|
|
4129
|
+
* @param options - The request body.
|
|
4130
|
+
* @param options.id - The application ID or client ID of the Connect Application.
|
|
4131
|
+
* @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
|
|
4132
|
+
* @returns {Promise<NewConnectApplicationSecret>}
|
|
3861
4133
|
* @throws {NotFoundException} 404
|
|
4134
|
+
* @throws {UnprocessableEntityException} 422
|
|
3862
4135
|
*/
|
|
3863
|
-
|
|
4136
|
+
createApplicationClientSecret(options: CreateApplicationClientSecretOptions): Promise<NewConnectApplicationSecret>;
|
|
3864
4137
|
/**
|
|
3865
|
-
*
|
|
4138
|
+
* Delete a Client Secret
|
|
3866
4139
|
*
|
|
3867
|
-
*
|
|
3868
|
-
* @param
|
|
3869
|
-
* @
|
|
3870
|
-
* @
|
|
3871
|
-
* @
|
|
4140
|
+
* Delete (revoke) an existing client secret.
|
|
4141
|
+
* @param options - The request options.
|
|
4142
|
+
* @param options.id - The unique ID of the client secret.
|
|
4143
|
+
* @example "secret_01J9Q2Z3X4Y5W6V7U8T9S0R1Q"
|
|
4144
|
+
* @returns {Promise<void>}
|
|
3872
4145
|
* @throws {NotFoundException} 404
|
|
3873
|
-
* @throws {ConflictException} 409
|
|
3874
|
-
* @throws {UnprocessableEntityException} 422
|
|
3875
4146
|
*/
|
|
3876
|
-
|
|
4147
|
+
deleteClientSecret(options: DeleteClientSecretOptions): Promise<void>;
|
|
3877
4148
|
}
|
|
3878
4149
|
//#endregion
|
|
3879
|
-
//#region src/
|
|
3880
|
-
declare class
|
|
4150
|
+
//#region src/directory-sync/directory-sync.d.ts
|
|
4151
|
+
declare class DirectorySync {
|
|
3881
4152
|
private readonly workos;
|
|
3882
4153
|
constructor(workos: WorkOS);
|
|
3883
4154
|
/**
|
|
3884
|
-
*
|
|
4155
|
+
* List Directories
|
|
3885
4156
|
*
|
|
3886
|
-
* Get
|
|
3887
|
-
* @param
|
|
4157
|
+
* Get a list of all of your existing directories matching the criteria specified.
|
|
4158
|
+
* @param options - Pagination and filter options.
|
|
4159
|
+
* @returns {Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>>}
|
|
4160
|
+
* @throws 403 response from the API.
|
|
4161
|
+
* @throws {UnprocessableEntityException} 422
|
|
4162
|
+
*/
|
|
4163
|
+
listDirectories(options?: ListDirectoriesOptions): Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>>;
|
|
4164
|
+
/**
|
|
4165
|
+
* Get a Directory
|
|
4166
|
+
*
|
|
4167
|
+
* Get the details of an existing directory.
|
|
4168
|
+
* @param id - Unique identifier for the Directory.
|
|
3888
4169
|
*
|
|
3889
4170
|
* @example
|
|
3890
|
-
* "
|
|
4171
|
+
* "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
3891
4172
|
*
|
|
3892
|
-
* @returns {Promise<
|
|
4173
|
+
* @returns {Promise<Directory>}
|
|
4174
|
+
* @throws 403 response from the API.
|
|
3893
4175
|
* @throws {NotFoundException} 404
|
|
3894
4176
|
*/
|
|
3895
|
-
|
|
4177
|
+
getDirectory(id: string): Promise<Directory>;
|
|
3896
4178
|
/**
|
|
3897
|
-
*
|
|
4179
|
+
* Delete a Directory
|
|
3898
4180
|
*
|
|
3899
|
-
*
|
|
3900
|
-
* @param id - Unique identifier
|
|
4181
|
+
* Permanently deletes an existing directory. It cannot be undone.
|
|
4182
|
+
* @param id - Unique identifier for the Directory.
|
|
3901
4183
|
*
|
|
3902
4184
|
* @example
|
|
3903
|
-
* "
|
|
4185
|
+
* "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
3904
4186
|
*
|
|
3905
|
-
* @returns {Promise<
|
|
3906
|
-
* @throws
|
|
4187
|
+
* @returns {Promise<void>}
|
|
4188
|
+
* @throws 403 response from the API.
|
|
3907
4189
|
*/
|
|
3908
|
-
|
|
4190
|
+
deleteDirectory(id: string): Promise<void>;
|
|
3909
4191
|
/**
|
|
3910
|
-
*
|
|
4192
|
+
* List Directory Groups
|
|
4193
|
+
*
|
|
4194
|
+
* Get a list of all of existing directory groups matching the criteria specified.
|
|
4195
|
+
* @param options - Pagination and filter options.
|
|
4196
|
+
* @returns {Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>}
|
|
4197
|
+
* @throws 403 response from the API.
|
|
4198
|
+
* @throws {NotFoundException} 404
|
|
4199
|
+
* @throws {UnprocessableEntityException} 422
|
|
4200
|
+
*/
|
|
4201
|
+
listGroups(options: ListDirectoryGroupsOptions): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>;
|
|
4202
|
+
/**
|
|
4203
|
+
* List Directory Users
|
|
4204
|
+
*
|
|
4205
|
+
* Get a list of all of existing Directory Users matching the criteria specified.
|
|
4206
|
+
* @param options - Pagination and filter options.
|
|
4207
|
+
* @returns {Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>}
|
|
4208
|
+
* @throws 403 response from the API.
|
|
4209
|
+
* @throws {NotFoundException} 404
|
|
4210
|
+
* @throws {UnprocessableEntityException} 422
|
|
4211
|
+
* @throws {RateLimitExceededException} 429
|
|
4212
|
+
*/
|
|
4213
|
+
listUsers<TCustomAttributes extends object = DefaultCustomAttributes>(options: ListDirectoryUsersOptions): Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>;
|
|
4214
|
+
/**
|
|
4215
|
+
* Get a Directory User
|
|
4216
|
+
*
|
|
4217
|
+
* Get the details of an existing Directory User.
|
|
4218
|
+
* @param user - Unique identifier for the Directory User.
|
|
4219
|
+
*
|
|
4220
|
+
* @example
|
|
4221
|
+
* "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
|
|
4222
|
+
* @returns {Promise<DirectoryUserWithGroups<TCustomAttributes>>}
|
|
4223
|
+
* @throws 403 response from the API.
|
|
4224
|
+
* @throws {NotFoundException} 404
|
|
4225
|
+
*/
|
|
4226
|
+
getUser<TCustomAttributes extends object = DefaultCustomAttributes>(user: string): Promise<DirectoryUserWithGroups<TCustomAttributes>>;
|
|
4227
|
+
/**
|
|
4228
|
+
* Get a Directory Group
|
|
4229
|
+
*
|
|
4230
|
+
* Get the details of an existing Directory Group.
|
|
4231
|
+
* @param group - Unique identifier for the Directory Group.
|
|
4232
|
+
*
|
|
4233
|
+
* @example
|
|
4234
|
+
* "directory_group_01E1JJS84MFPPQ3G655FHTKX6Z"
|
|
4235
|
+
* @returns {Promise<DirectoryGroup>}
|
|
4236
|
+
* @throws 403 response from the API.
|
|
4237
|
+
* @throws {NotFoundException} 404
|
|
4238
|
+
*/
|
|
4239
|
+
getGroup(group: string): Promise<DirectoryGroup>;
|
|
4240
|
+
}
|
|
4241
|
+
//#endregion
|
|
4242
|
+
//#region src/events/interfaces/list-events-options.interface.d.ts
|
|
4243
|
+
interface ListEventOptions {
|
|
4244
|
+
events: EventName[];
|
|
4245
|
+
rangeStart?: string;
|
|
4246
|
+
rangeEnd?: string;
|
|
4247
|
+
limit?: number;
|
|
4248
|
+
after?: string;
|
|
4249
|
+
organizationId?: string;
|
|
4250
|
+
order?: 'asc' | 'desc';
|
|
4251
|
+
}
|
|
4252
|
+
interface SerializedListEventOptions {
|
|
4253
|
+
events: EventName[];
|
|
4254
|
+
range_start?: string;
|
|
4255
|
+
range_end?: string;
|
|
4256
|
+
limit?: number;
|
|
4257
|
+
after?: string;
|
|
4258
|
+
organization_id?: string;
|
|
4259
|
+
order?: 'asc' | 'desc';
|
|
4260
|
+
}
|
|
4261
|
+
//#endregion
|
|
4262
|
+
//#region src/events/events.d.ts
|
|
4263
|
+
declare class Events {
|
|
4264
|
+
private readonly workos;
|
|
4265
|
+
constructor(workos: WorkOS);
|
|
4266
|
+
/**
|
|
4267
|
+
* List events
|
|
4268
|
+
*
|
|
4269
|
+
* List events for the current environment.
|
|
4270
|
+
* @param options - Pagination and filter options.
|
|
4271
|
+
* @returns {Promise<List<Event>>}
|
|
4272
|
+
* @throws {BadRequestException} 400
|
|
4273
|
+
* @throws {UnprocessableEntityException} 422
|
|
4274
|
+
*/
|
|
4275
|
+
listEvents(options: ListEventOptions): Promise<List<Event>>;
|
|
4276
|
+
}
|
|
4277
|
+
//#endregion
|
|
4278
|
+
//#region src/organizations/organizations.d.ts
|
|
4279
|
+
declare class Organizations {
|
|
4280
|
+
private readonly workos;
|
|
4281
|
+
constructor(workos: WorkOS);
|
|
4282
|
+
/**
|
|
4283
|
+
* List Organizations
|
|
4284
|
+
*
|
|
4285
|
+
* Get a list of all of your existing organizations matching the criteria specified.
|
|
4286
|
+
* @param options - Pagination and filter options.
|
|
4287
|
+
* @returns {Promise<AutoPaginatable<Organization, ListOrganizationsOptions>>}
|
|
4288
|
+
* @throws {UnprocessableEntityException} 422
|
|
4289
|
+
*/
|
|
4290
|
+
listOrganizations(options?: ListOrganizationsOptions): Promise<AutoPaginatable<Organization, ListOrganizationsOptions>>;
|
|
4291
|
+
/**
|
|
4292
|
+
* Create an Organization
|
|
4293
|
+
*
|
|
4294
|
+
* Creates a new organization in the current environment.
|
|
4295
|
+
* @param payload - Object containing name.
|
|
4296
|
+
* @returns {Promise<Organization>}
|
|
4297
|
+
* @throws {BadRequestException} 400
|
|
4298
|
+
* @throws {ConflictException} 409
|
|
4299
|
+
* @throws {UnprocessableEntityException} 422
|
|
4300
|
+
*/
|
|
4301
|
+
createOrganization(payload: CreateOrganizationOptions, requestOptions?: CreateOrganizationRequestOptions): Promise<Organization>;
|
|
4302
|
+
/**
|
|
4303
|
+
* Delete an Organization
|
|
4304
|
+
*
|
|
4305
|
+
* Permanently deletes an organization in the current environment. It cannot be undone.
|
|
4306
|
+
* @param id - Unique identifier of the Organization.
|
|
4307
|
+
*
|
|
4308
|
+
* @example
|
|
4309
|
+
* "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
4310
|
+
*
|
|
4311
|
+
* @returns {Promise<void>}
|
|
4312
|
+
* @throws 403 response from the API.
|
|
4313
|
+
*/
|
|
4314
|
+
deleteOrganization(id: string): Promise<void>;
|
|
4315
|
+
/**
|
|
4316
|
+
* Get an Organization
|
|
4317
|
+
*
|
|
4318
|
+
* Get the details of an existing organization.
|
|
4319
|
+
* @param id - Unique identifier of the Organization.
|
|
4320
|
+
*
|
|
4321
|
+
* @example
|
|
4322
|
+
* "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
4323
|
+
*
|
|
4324
|
+
* @returns {Promise<Organization>}
|
|
4325
|
+
* @throws {NotFoundException} 404
|
|
4326
|
+
*/
|
|
4327
|
+
getOrganization(id: string): Promise<Organization>;
|
|
4328
|
+
/**
|
|
4329
|
+
* Get an Organization by External ID
|
|
4330
|
+
*
|
|
4331
|
+
* Get the details of an existing organization by an [external identifier](https://workos.com/docs/authkit/metadata/external-identifiers).
|
|
4332
|
+
* @param externalId - The external ID of the Organization.
|
|
4333
|
+
*
|
|
4334
|
+
* @example
|
|
4335
|
+
* "2fe01467-f7ea-4dd2-8b79-c2b4f56d0191"
|
|
4336
|
+
*
|
|
4337
|
+
* @returns {Promise<Organization>}
|
|
4338
|
+
* @throws {NotFoundException} 404
|
|
4339
|
+
*/
|
|
4340
|
+
getOrganizationByExternalId(externalId: string): Promise<Organization>;
|
|
4341
|
+
/**
|
|
4342
|
+
* Update an Organization
|
|
4343
|
+
*
|
|
4344
|
+
* Updates an organization in the current environment.
|
|
4345
|
+
* @param payload - The request body.
|
|
4346
|
+
* @returns {Promise<Organization>}
|
|
4347
|
+
* @throws {BadRequestException} 400
|
|
4348
|
+
* @throws 403 response from the API.
|
|
4349
|
+
* @throws {NotFoundException} 404
|
|
4350
|
+
* @throws {ConflictException} 409
|
|
4351
|
+
* @throws {UnprocessableEntityException} 422
|
|
4352
|
+
*/
|
|
4353
|
+
updateOrganization(options: UpdateOrganizationOptions): Promise<Organization>;
|
|
4354
|
+
}
|
|
4355
|
+
//#endregion
|
|
4356
|
+
//#region src/organization-domains/organization-domains.d.ts
|
|
4357
|
+
declare class OrganizationDomains {
|
|
4358
|
+
private readonly workos;
|
|
4359
|
+
constructor(workos: WorkOS);
|
|
4360
|
+
/**
|
|
4361
|
+
* Get an Organization Domain
|
|
4362
|
+
*
|
|
4363
|
+
* Get the details of an existing organization domain.
|
|
4364
|
+
* @param id - Unique identifier of the organization domain.
|
|
4365
|
+
*
|
|
4366
|
+
* @example
|
|
4367
|
+
* "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
|
|
4368
|
+
*
|
|
4369
|
+
* @returns {Promise<OrganizationDomain>}
|
|
4370
|
+
* @throws {NotFoundException} 404
|
|
4371
|
+
*/
|
|
4372
|
+
getOrganizationDomain(id: string): Promise<OrganizationDomain>;
|
|
4373
|
+
/**
|
|
4374
|
+
* Verify an Organization Domain
|
|
4375
|
+
*
|
|
4376
|
+
* Initiates verification process for an Organization Domain.
|
|
4377
|
+
* @param id - Unique identifier of the organization domain.
|
|
4378
|
+
*
|
|
4379
|
+
* @example
|
|
4380
|
+
* "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
|
|
4381
|
+
*
|
|
4382
|
+
* @returns {Promise<OrganizationDomain>}
|
|
4383
|
+
* @throws {BadRequestException} 400
|
|
4384
|
+
*/
|
|
4385
|
+
verifyOrganizationDomain(id: string): Promise<OrganizationDomain>;
|
|
4386
|
+
/**
|
|
4387
|
+
* Create an Organization Domain
|
|
3911
4388
|
*
|
|
3912
4389
|
* Creates a new Organization Domain.
|
|
3913
4390
|
* @param payload - Object containing domain, organizationId.
|
|
@@ -3990,12 +4467,23 @@ interface AccessToken {
|
|
|
3990
4467
|
scopes: string[];
|
|
3991
4468
|
missingScopes: string[];
|
|
3992
4469
|
}
|
|
4470
|
+
interface SerializedAccessToken {
|
|
4471
|
+
object: 'access_token';
|
|
4472
|
+
access_token: string;
|
|
4473
|
+
expires_at: string | null;
|
|
4474
|
+
scopes: string[];
|
|
4475
|
+
missing_scopes: string[];
|
|
4476
|
+
}
|
|
3993
4477
|
//#endregion
|
|
3994
4478
|
//#region src/pipes/interfaces/get-access-token.interface.d.ts
|
|
3995
4479
|
interface GetAccessTokenOptions {
|
|
3996
4480
|
userId: string;
|
|
3997
4481
|
organizationId?: string | null;
|
|
3998
4482
|
}
|
|
4483
|
+
interface SerializedGetAccessTokenOptions {
|
|
4484
|
+
user_id: string;
|
|
4485
|
+
organization_id?: string | null;
|
|
4486
|
+
}
|
|
3999
4487
|
interface GetAccessTokenSuccessResponse {
|
|
4000
4488
|
active: true;
|
|
4001
4489
|
accessToken: AccessToken;
|
|
@@ -4005,6 +4493,15 @@ interface GetAccessTokenFailureResponse {
|
|
|
4005
4493
|
error: 'not_installed' | 'needs_reauthorization';
|
|
4006
4494
|
}
|
|
4007
4495
|
type GetAccessTokenResponse = GetAccessTokenSuccessResponse | GetAccessTokenFailureResponse;
|
|
4496
|
+
interface SerializedGetAccessTokenSuccessResponse {
|
|
4497
|
+
active: true;
|
|
4498
|
+
access_token: SerializedAccessToken;
|
|
4499
|
+
}
|
|
4500
|
+
interface SerializedGetAccessTokenFailureResponse {
|
|
4501
|
+
active: false;
|
|
4502
|
+
error: 'not_installed' | 'needs_reauthorization';
|
|
4503
|
+
}
|
|
4504
|
+
type SerializedGetAccessTokenResponse = SerializedGetAccessTokenSuccessResponse | SerializedGetAccessTokenFailureResponse;
|
|
4008
4505
|
//#endregion
|
|
4009
4506
|
//#region src/pipes/pipes.d.ts
|
|
4010
4507
|
declare class Pipes {
|
|
@@ -4018,6 +4515,224 @@ declare class Pipes {
|
|
|
4018
4515
|
}): Promise<GetAccessTokenResponse>;
|
|
4019
4516
|
}
|
|
4020
4517
|
//#endregion
|
|
4518
|
+
//#region src/radar/interfaces/radar-standalone-assess-request-auth-method.interface.d.ts
|
|
4519
|
+
declare const RadarStandaloneAssessRequestAuthMethod: {
|
|
4520
|
+
readonly Password: "Password";
|
|
4521
|
+
readonly Passkey: "Passkey";
|
|
4522
|
+
readonly Authenticator: "Authenticator";
|
|
4523
|
+
readonly SmsOtp: "SMS_OTP";
|
|
4524
|
+
readonly EmailOtp: "Email_OTP";
|
|
4525
|
+
readonly Social: "Social";
|
|
4526
|
+
readonly SSO: "SSO";
|
|
4527
|
+
readonly Other: "Other";
|
|
4528
|
+
};
|
|
4529
|
+
type RadarStandaloneAssessRequestAuthMethod = (typeof RadarStandaloneAssessRequestAuthMethod)[keyof typeof RadarStandaloneAssessRequestAuthMethod];
|
|
4530
|
+
//#endregion
|
|
4531
|
+
//#region src/radar/interfaces/radar-standalone-assess-request-action.interface.d.ts
|
|
4532
|
+
declare const RadarStandaloneAssessRequestAction: {
|
|
4533
|
+
readonly SignUp: "sign-up";
|
|
4534
|
+
readonly SignIn: "sign-in";
|
|
4535
|
+
};
|
|
4536
|
+
type RadarStandaloneAssessRequestAction = (typeof RadarStandaloneAssessRequestAction)[keyof typeof RadarStandaloneAssessRequestAction];
|
|
4537
|
+
//#endregion
|
|
4538
|
+
//#region src/radar/interfaces/create-attempt-options.interface.d.ts
|
|
4539
|
+
interface CreateAttemptOptions {
|
|
4540
|
+
/** The IP address of the request to assess. */
|
|
4541
|
+
ipAddress: string;
|
|
4542
|
+
/** The user agent string of the request to assess. */
|
|
4543
|
+
userAgent: string;
|
|
4544
|
+
/** The email address of the user making the request. */
|
|
4545
|
+
email: string;
|
|
4546
|
+
/** The authentication method being used. */
|
|
4547
|
+
authMethod: RadarStandaloneAssessRequestAuthMethod;
|
|
4548
|
+
/** The action being performed. */
|
|
4549
|
+
action: RadarStandaloneAssessRequestAction;
|
|
4550
|
+
}
|
|
4551
|
+
//#endregion
|
|
4552
|
+
//#region src/radar/interfaces/update-attempt-options.interface.d.ts
|
|
4553
|
+
interface UpdateAttemptOptions {
|
|
4554
|
+
/** The unique identifier of the Radar attempt to update. */
|
|
4555
|
+
id: string;
|
|
4556
|
+
/** Set to `"success"` to mark the challenge as completed. */
|
|
4557
|
+
challengeStatus?: 'success';
|
|
4558
|
+
/** Set to `"success"` to mark the authentication attempt as successful. */
|
|
4559
|
+
attemptStatus?: 'success';
|
|
4560
|
+
}
|
|
4561
|
+
//#endregion
|
|
4562
|
+
//#region src/radar/interfaces/radar-list-type.interface.d.ts
|
|
4563
|
+
declare const RadarListType: {
|
|
4564
|
+
readonly IpAddress: "ip_address";
|
|
4565
|
+
readonly Domain: "domain";
|
|
4566
|
+
readonly Email: "email";
|
|
4567
|
+
readonly Device: "device";
|
|
4568
|
+
readonly UserAgent: "user_agent";
|
|
4569
|
+
readonly DeviceFingerprint: "device_fingerprint";
|
|
4570
|
+
readonly Country: "country";
|
|
4571
|
+
};
|
|
4572
|
+
type RadarListType = (typeof RadarListType)[keyof typeof RadarListType];
|
|
4573
|
+
//#endregion
|
|
4574
|
+
//#region src/radar/interfaces/radar-list-action.interface.d.ts
|
|
4575
|
+
declare const RadarListAction: {
|
|
4576
|
+
readonly Block: "block";
|
|
4577
|
+
readonly Allow: "allow";
|
|
4578
|
+
};
|
|
4579
|
+
type RadarListAction = (typeof RadarListAction)[keyof typeof RadarListAction];
|
|
4580
|
+
//#endregion
|
|
4581
|
+
//#region src/radar/interfaces/add-list-entry-options.interface.d.ts
|
|
4582
|
+
interface AddListEntryOptions {
|
|
4583
|
+
/** The type of the Radar list (e.g. ip_address, domain, email). */
|
|
4584
|
+
type: RadarListType;
|
|
4585
|
+
/** The list action indicating whether to add the entry to the allow or block list. */
|
|
4586
|
+
action: RadarListAction;
|
|
4587
|
+
/** The value to add to the list. Must match the format of the list type (e.g. a valid IP address for `ip_address`, a valid email for `email`). */
|
|
4588
|
+
entry: string;
|
|
4589
|
+
}
|
|
4590
|
+
//#endregion
|
|
4591
|
+
//#region src/radar/interfaces/remove-list-entry-options.interface.d.ts
|
|
4592
|
+
interface RemoveListEntryOptions {
|
|
4593
|
+
/** The type of the Radar list (e.g. ip_address, domain, email). */
|
|
4594
|
+
type: RadarListType;
|
|
4595
|
+
/** The list action indicating whether to remove the entry from the allow or block list. */
|
|
4596
|
+
action: RadarListAction;
|
|
4597
|
+
/** The value to remove from the list. Must match an existing entry. */
|
|
4598
|
+
entry: string;
|
|
4599
|
+
}
|
|
4600
|
+
//#endregion
|
|
4601
|
+
//#region src/radar/interfaces/radar-standalone-response-verdict.interface.d.ts
|
|
4602
|
+
declare const RadarStandaloneResponseVerdict: {
|
|
4603
|
+
readonly Allow: "allow";
|
|
4604
|
+
readonly Block: "block";
|
|
4605
|
+
readonly Challenge: "challenge";
|
|
4606
|
+
};
|
|
4607
|
+
type RadarStandaloneResponseVerdict = (typeof RadarStandaloneResponseVerdict)[keyof typeof RadarStandaloneResponseVerdict];
|
|
4608
|
+
//#endregion
|
|
4609
|
+
//#region src/radar/interfaces/radar-standalone-response-control.interface.d.ts
|
|
4610
|
+
declare const RadarStandaloneResponseControl: {
|
|
4611
|
+
readonly BotDetection: "bot_detection";
|
|
4612
|
+
readonly BruteForceAttack: "brute_force_attack";
|
|
4613
|
+
readonly DomainSignUpRateLimit: "domain_sign_up_rate_limit";
|
|
4614
|
+
readonly ImpossibleTravel: "impossible_travel";
|
|
4615
|
+
readonly RepeatSignUp: "repeat_sign_up";
|
|
4616
|
+
readonly StaleAccount: "stale_account";
|
|
4617
|
+
readonly UnrecognizedDevice: "unrecognized_device";
|
|
4618
|
+
readonly Restriction: "restriction";
|
|
4619
|
+
};
|
|
4620
|
+
type RadarStandaloneResponseControl = (typeof RadarStandaloneResponseControl)[keyof typeof RadarStandaloneResponseControl];
|
|
4621
|
+
//#endregion
|
|
4622
|
+
//#region src/radar/interfaces/radar-standalone-response-blocklist-type.interface.d.ts
|
|
4623
|
+
declare const RadarStandaloneResponseBlocklistType: {
|
|
4624
|
+
readonly IpAddress: "ip_address";
|
|
4625
|
+
readonly Domain: "domain";
|
|
4626
|
+
readonly Email: "email";
|
|
4627
|
+
readonly Device: "device";
|
|
4628
|
+
readonly UserAgent: "user_agent";
|
|
4629
|
+
readonly DeviceFingerprint: "device_fingerprint";
|
|
4630
|
+
readonly Country: "country";
|
|
4631
|
+
};
|
|
4632
|
+
type RadarStandaloneResponseBlocklistType = (typeof RadarStandaloneResponseBlocklistType)[keyof typeof RadarStandaloneResponseBlocklistType];
|
|
4633
|
+
//#endregion
|
|
4634
|
+
//#region src/radar/interfaces/radar-standalone-response.interface.d.ts
|
|
4635
|
+
interface RadarStandaloneResponse {
|
|
4636
|
+
/** The verdict of the risk assessment. */
|
|
4637
|
+
verdict: RadarStandaloneResponseVerdict;
|
|
4638
|
+
/** A human-readable reason for the verdict. */
|
|
4639
|
+
reason: string;
|
|
4640
|
+
/** Unique identifier of the authentication attempt. */
|
|
4641
|
+
attemptId: string;
|
|
4642
|
+
/** The Radar control that triggered the verdict. Only present if the verdict is `block` or `challenge`. */
|
|
4643
|
+
control?: RadarStandaloneResponseControl;
|
|
4644
|
+
/** The type of blocklist entry that triggered the verdict. Only present if the control is `restriction`. */
|
|
4645
|
+
blocklistType?: RadarStandaloneResponseBlocklistType;
|
|
4646
|
+
}
|
|
4647
|
+
interface RadarStandaloneResponseWire {
|
|
4648
|
+
verdict: RadarStandaloneResponseVerdict;
|
|
4649
|
+
reason: string;
|
|
4650
|
+
attempt_id: string;
|
|
4651
|
+
control?: RadarStandaloneResponseControl;
|
|
4652
|
+
blocklist_type?: RadarStandaloneResponseBlocklistType;
|
|
4653
|
+
}
|
|
4654
|
+
//#endregion
|
|
4655
|
+
//#region src/radar/interfaces/radar-list-entry-already-present-response.interface.d.ts
|
|
4656
|
+
interface RadarListEntryAlreadyPresentResponse {
|
|
4657
|
+
/** A message indicating the entry already exists. */
|
|
4658
|
+
message: string;
|
|
4659
|
+
}
|
|
4660
|
+
interface RadarListEntryAlreadyPresentResponseWire {
|
|
4661
|
+
message: string;
|
|
4662
|
+
}
|
|
4663
|
+
//#endregion
|
|
4664
|
+
//#region src/radar/radar.d.ts
|
|
4665
|
+
declare class Radar {
|
|
4666
|
+
private readonly workos;
|
|
4667
|
+
constructor(workos: WorkOS);
|
|
4668
|
+
/**
|
|
4669
|
+
* Create an attempt
|
|
4670
|
+
*
|
|
4671
|
+
* Assess a request for risk using the Radar engine and receive a verdict.
|
|
4672
|
+
* @param options - Object containing ipAddress, userAgent, email, authMethod, action.
|
|
4673
|
+
* @param options.ipAddress - The IP address of the request to assess.
|
|
4674
|
+
* @example "49.78.240.97"
|
|
4675
|
+
* @param options.userAgent - The user agent string of the request to assess.
|
|
4676
|
+
* @example "Mozilla/5.0"
|
|
4677
|
+
* @param options.email - The email address of the user making the request.
|
|
4678
|
+
* @example "user@example.com"
|
|
4679
|
+
* @param options.authMethod - The authentication method being used.
|
|
4680
|
+
* @example "Password"
|
|
4681
|
+
* @param options.action - The action being performed.
|
|
4682
|
+
* @example "sign-in"
|
|
4683
|
+
* @returns {Promise<RadarStandaloneResponse>}
|
|
4684
|
+
* @throws {BadRequestException} 400
|
|
4685
|
+
*/
|
|
4686
|
+
createAttempt(options: CreateAttemptOptions): Promise<RadarStandaloneResponse>;
|
|
4687
|
+
/**
|
|
4688
|
+
* Update a Radar attempt
|
|
4689
|
+
*
|
|
4690
|
+
* You may optionally inform Radar that an authentication attempt or challenge was successful using this endpoint. Some Radar controls depend on tracking recent successful attempts, such as impossible travel.
|
|
4691
|
+
* @param options - The request body.
|
|
4692
|
+
* @param options.id - The unique identifier of the Radar attempt to update.
|
|
4693
|
+
* @example "radar_att_01HZBC6N1EB1ZY7KG32X"
|
|
4694
|
+
* @param options.challengeStatus - Set to `"success"` to mark the challenge as completed.
|
|
4695
|
+
* @example "success"
|
|
4696
|
+
* @param options.attemptStatus - Set to `"success"` to mark the authentication attempt as successful.
|
|
4697
|
+
* @example "success"
|
|
4698
|
+
* @returns {Promise<void>}
|
|
4699
|
+
* @throws {BadRequestException} 400
|
|
4700
|
+
* @throws {NotFoundException} 404
|
|
4701
|
+
*/
|
|
4702
|
+
updateAttempt(options: UpdateAttemptOptions): Promise<void>;
|
|
4703
|
+
/**
|
|
4704
|
+
* Add an entry to a Radar list
|
|
4705
|
+
*
|
|
4706
|
+
* Add an entry to a Radar list.
|
|
4707
|
+
* @param options - Object containing entry.
|
|
4708
|
+
* @param options.type - The type of the Radar list (e.g. ip_address, domain, email).
|
|
4709
|
+
* @example "ip_address"
|
|
4710
|
+
* @param options.action - The list action indicating whether to add the entry to the allow or block list.
|
|
4711
|
+
* @example "block"
|
|
4712
|
+
* @param options.entry - The value to add to the list. Must match the format of the list type (e.g. a valid IP address for `ip_address`, a valid email for `email`).
|
|
4713
|
+
* @example "198.51.100.42"
|
|
4714
|
+
* @returns {Promise<RadarListEntryAlreadyPresentResponse>}
|
|
4715
|
+
* @throws {BadRequestException} 400
|
|
4716
|
+
*/
|
|
4717
|
+
addListEntry(options: AddListEntryOptions): Promise<RadarListEntryAlreadyPresentResponse>;
|
|
4718
|
+
/**
|
|
4719
|
+
* Remove an entry from a Radar list
|
|
4720
|
+
*
|
|
4721
|
+
* Remove an entry from a Radar list.
|
|
4722
|
+
* @param options - Object containing entry.
|
|
4723
|
+
* @param options.type - The type of the Radar list (e.g. ip_address, domain, email).
|
|
4724
|
+
* @example "ip_address"
|
|
4725
|
+
* @param options.action - The list action indicating whether to remove the entry from the allow or block list.
|
|
4726
|
+
* @example "block"
|
|
4727
|
+
* @param options.entry - The value to remove from the list. Must match an existing entry.
|
|
4728
|
+
* @example "198.51.100.42"
|
|
4729
|
+
* @returns {Promise<void>}
|
|
4730
|
+
* @throws {BadRequestException} 400
|
|
4731
|
+
* @throws {NotFoundException} 404
|
|
4732
|
+
*/
|
|
4733
|
+
removeListEntry(options: RemoveListEntryOptions): Promise<void>;
|
|
4734
|
+
}
|
|
4735
|
+
//#endregion
|
|
4021
4736
|
//#region src/admin-portal/admin-portal.d.ts
|
|
4022
4737
|
declare class AdminPortal {
|
|
4023
4738
|
private readonly workos;
|
|
@@ -4174,8 +4889,17 @@ interface Challenge {
|
|
|
4174
4889
|
code?: string;
|
|
4175
4890
|
authenticationFactorId: string;
|
|
4176
4891
|
}
|
|
4177
|
-
|
|
4178
|
-
|
|
4892
|
+
interface ChallengeResponse {
|
|
4893
|
+
object: 'authentication_challenge';
|
|
4894
|
+
id: string;
|
|
4895
|
+
created_at: string;
|
|
4896
|
+
updated_at: string;
|
|
4897
|
+
expires_at?: string;
|
|
4898
|
+
code?: string;
|
|
4899
|
+
authentication_factor_id: string;
|
|
4900
|
+
}
|
|
4901
|
+
//#endregion
|
|
4902
|
+
//#region src/multi-factor-auth/interfaces/enroll-factor-options.d.ts
|
|
4179
4903
|
type EnrollFactorOptions = {
|
|
4180
4904
|
type: 'sms';
|
|
4181
4905
|
phoneNumber: string;
|
|
@@ -4191,6 +4915,9 @@ type EnrollFactorOptions = {
|
|
|
4191
4915
|
interface Sms {
|
|
4192
4916
|
phoneNumber: string;
|
|
4193
4917
|
}
|
|
4918
|
+
interface SmsResponse {
|
|
4919
|
+
phone_number: string;
|
|
4920
|
+
}
|
|
4194
4921
|
//#endregion
|
|
4195
4922
|
//#region src/multi-factor-auth/interfaces/factor.interface.d.ts
|
|
4196
4923
|
type FactorType = 'sms' | 'totp' | 'generic_otp';
|
|
@@ -4212,6 +4939,24 @@ interface FactorWithSecrets {
|
|
|
4212
4939
|
sms?: Sms;
|
|
4213
4940
|
totp?: TotpWithSecrets;
|
|
4214
4941
|
}
|
|
4942
|
+
interface FactorResponse {
|
|
4943
|
+
object: 'authentication_factor';
|
|
4944
|
+
id: string;
|
|
4945
|
+
created_at: string;
|
|
4946
|
+
updated_at: string;
|
|
4947
|
+
type: FactorType;
|
|
4948
|
+
sms?: SmsResponse;
|
|
4949
|
+
totp?: TotpResponse;
|
|
4950
|
+
}
|
|
4951
|
+
interface FactorWithSecretsResponse {
|
|
4952
|
+
object: 'authentication_factor';
|
|
4953
|
+
id: string;
|
|
4954
|
+
created_at: string;
|
|
4955
|
+
updated_at: string;
|
|
4956
|
+
type: FactorType;
|
|
4957
|
+
sms?: SmsResponse;
|
|
4958
|
+
totp?: TotpWithSecretsResponse;
|
|
4959
|
+
}
|
|
4215
4960
|
//#endregion
|
|
4216
4961
|
//#region src/multi-factor-auth/interfaces/verify-challenge-options.d.ts
|
|
4217
4962
|
interface VerifyChallengeOptions {
|
|
@@ -4224,6 +4969,10 @@ interface VerifyResponse {
|
|
|
4224
4969
|
challenge: Challenge;
|
|
4225
4970
|
valid: boolean;
|
|
4226
4971
|
}
|
|
4972
|
+
interface VerifyResponseResponse {
|
|
4973
|
+
challenge: ChallengeResponse;
|
|
4974
|
+
valid: boolean;
|
|
4975
|
+
}
|
|
4227
4976
|
//#endregion
|
|
4228
4977
|
//#region src/multi-factor-auth/multi-factor-auth.d.ts
|
|
4229
4978
|
declare class MultiFactorAuth {
|
|
@@ -4294,7 +5043,7 @@ declare class MultiFactorAuth {
|
|
|
4294
5043
|
* @throws {UnprocessableEntityException} 422
|
|
4295
5044
|
*/
|
|
4296
5045
|
createUserAuthFactor(payload: EnrollAuthFactorOptions): Promise<{
|
|
4297
|
-
authenticationFactor:
|
|
5046
|
+
authenticationFactor: AuthenticationFactorWithSecrets;
|
|
4298
5047
|
authenticationChallenge: Challenge;
|
|
4299
5048
|
}>;
|
|
4300
5049
|
/**
|
|
@@ -4305,7 +5054,7 @@ declare class MultiFactorAuth {
|
|
|
4305
5054
|
* @returns {Promise<AutoPaginatable<UMFactor, PaginationOptions>>}
|
|
4306
5055
|
* @throws {UnprocessableEntityException} 422
|
|
4307
5056
|
*/
|
|
4308
|
-
listUserAuthFactors(options: ListAuthFactorsOptions): Promise<AutoPaginatable<
|
|
5057
|
+
listUserAuthFactors(options: ListAuthFactorsOptions): Promise<AutoPaginatable<AuthenticationFactor, PaginationOptions>>;
|
|
4309
5058
|
}
|
|
4310
5059
|
//#endregion
|
|
4311
5060
|
//#region src/audit-logs/interfaces/audit-log-export-options.interface.d.ts
|
|
@@ -5520,13 +6269,131 @@ declare class FeatureFlags {
|
|
|
5520
6269
|
declare class Groups {
|
|
5521
6270
|
private readonly workos;
|
|
5522
6271
|
constructor(workos: WorkOS);
|
|
6272
|
+
/**
|
|
6273
|
+
* List Group members
|
|
6274
|
+
*
|
|
6275
|
+
* Get a list of organization memberships in a group.
|
|
6276
|
+
* @param options - Pagination and filter options.
|
|
6277
|
+
* @param options.organizationId - Unique identifier of the Organization.
|
|
6278
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6279
|
+
* @param options.groupId - Unique identifier of the Group.
|
|
6280
|
+
* @example "group_01HXYZ123456789ABCDEFGHIJ"
|
|
6281
|
+
* @returns {Promise<AutoPaginatable<AuthorizationOrganizationMembership>>}
|
|
6282
|
+
* @throws {AuthorizationException} 403
|
|
6283
|
+
* @throws {NotFoundException} 404
|
|
6284
|
+
*/
|
|
6285
|
+
listOrganizationMemberships(options: ListGroupOrganizationMembershipsOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
|
|
6286
|
+
/**
|
|
6287
|
+
* List groups
|
|
6288
|
+
*
|
|
6289
|
+
* Get a paginated list of groups within an organization.
|
|
6290
|
+
* @param options - Pagination and filter options.
|
|
6291
|
+
* @param options.organizationId - The ID of the organization.
|
|
6292
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6293
|
+
* @returns {Promise<AutoPaginatable<Group, PaginationOptions>>}
|
|
6294
|
+
* @throws {AuthorizationException} 403
|
|
6295
|
+
* @throws {NotFoundException} 404
|
|
6296
|
+
*/
|
|
6297
|
+
listGroups(options: ListGroupsOptions): Promise<AutoPaginatable<Group, PaginationOptions>>;
|
|
6298
|
+
/**
|
|
6299
|
+
* Create a group
|
|
6300
|
+
*
|
|
6301
|
+
* Create a new group within an organization.
|
|
6302
|
+
* @param options - Object containing name.
|
|
6303
|
+
* @param options.organizationId - The ID of the organization.
|
|
6304
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6305
|
+
* @param options.name - The name of the Group.
|
|
6306
|
+
* @example "Engineering"
|
|
6307
|
+
* @param options.description - An optional description of the Group.
|
|
6308
|
+
* @example "The engineering team"
|
|
6309
|
+
* @returns {Promise<Group>}
|
|
6310
|
+
* @throws {BadRequestException} 400
|
|
6311
|
+
* @throws {AuthorizationException} 403
|
|
6312
|
+
* @throws {NotFoundException} 404
|
|
6313
|
+
* @throws {UnprocessableEntityException} 422
|
|
6314
|
+
*/
|
|
5523
6315
|
createGroup(options: CreateGroupOptions): Promise<Group>;
|
|
5524
|
-
|
|
6316
|
+
/**
|
|
6317
|
+
* Get a group
|
|
6318
|
+
*
|
|
6319
|
+
* Retrieve a group by its ID within an organization.
|
|
6320
|
+
* @param options - The request options.
|
|
6321
|
+
* @param options.organizationId - The ID of the organization.
|
|
6322
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6323
|
+
* @param options.groupId - The ID of the group.
|
|
6324
|
+
* @example "group_01HXYZ123456789ABCDEFGHIJ"
|
|
6325
|
+
* @returns {Promise<Group>}
|
|
6326
|
+
* @throws {AuthorizationException} 403
|
|
6327
|
+
* @throws {NotFoundException} 404
|
|
6328
|
+
*/
|
|
5525
6329
|
getGroup(options: GetGroupOptions): Promise<Group>;
|
|
6330
|
+
/**
|
|
6331
|
+
* Update a group
|
|
6332
|
+
*
|
|
6333
|
+
* Update an existing group. Only the fields provided in the request body will be updated.
|
|
6334
|
+
* @param options - The request body.
|
|
6335
|
+
* @param options.organizationId - The ID of the organization.
|
|
6336
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6337
|
+
* @param options.groupId - The ID of the group.
|
|
6338
|
+
* @example "group_01HXYZ123456789ABCDEFGHIJ"
|
|
6339
|
+
* @param options.name - The name of the Group.
|
|
6340
|
+
* @example "Engineering"
|
|
6341
|
+
* @param options.description - An optional description of the Group.
|
|
6342
|
+
* @example "The engineering team"
|
|
6343
|
+
* @returns {Promise<Group>}
|
|
6344
|
+
* @throws {BadRequestException} 400
|
|
6345
|
+
* @throws {AuthorizationException} 403
|
|
6346
|
+
* @throws {NotFoundException} 404
|
|
6347
|
+
* @throws {UnprocessableEntityException} 422
|
|
6348
|
+
*/
|
|
5526
6349
|
updateGroup(options: UpdateGroupOptions): Promise<Group>;
|
|
6350
|
+
/**
|
|
6351
|
+
* Delete a group
|
|
6352
|
+
*
|
|
6353
|
+
* Delete a group from an organization.
|
|
6354
|
+
* @param options - The request options.
|
|
6355
|
+
* @param options.organizationId - The ID of the organization.
|
|
6356
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6357
|
+
* @param options.groupId - The ID of the group.
|
|
6358
|
+
* @example "group_01HXYZ123456789ABCDEFGHIJ"
|
|
6359
|
+
* @returns {Promise<void>}
|
|
6360
|
+
* @throws {AuthorizationException} 403
|
|
6361
|
+
* @throws {NotFoundException} 404
|
|
6362
|
+
*/
|
|
5527
6363
|
deleteGroup(options: DeleteGroupOptions): Promise<void>;
|
|
6364
|
+
/**
|
|
6365
|
+
* Add a member to a Group
|
|
6366
|
+
*
|
|
6367
|
+
* Add an organization membership to a group.
|
|
6368
|
+
* @param options - Object containing organizationMembershipId.
|
|
6369
|
+
* @param options.organizationId - Unique identifier of the Organization.
|
|
6370
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6371
|
+
* @param options.groupId - Unique identifier of the Group.
|
|
6372
|
+
* @example "group_01HXYZ123456789ABCDEFGHIJ"
|
|
6373
|
+
* @param options.organizationMembershipId - The ID of the Organization Membership to add to the group.
|
|
6374
|
+
* @example "om_01HXYZ123456789ABCDEFGHIJ"
|
|
6375
|
+
* @returns {Promise<Group>}
|
|
6376
|
+
* @throws {BadRequestException} 400
|
|
6377
|
+
* @throws {AuthorizationException} 403
|
|
6378
|
+
* @throws {NotFoundException} 404
|
|
6379
|
+
* @throws {UnprocessableEntityException} 422
|
|
6380
|
+
*/
|
|
5528
6381
|
addOrganizationMembership(options: AddGroupOrganizationMembershipOptions): Promise<Group>;
|
|
5529
|
-
|
|
6382
|
+
/**
|
|
6383
|
+
* Remove a member from a Group
|
|
6384
|
+
*
|
|
6385
|
+
* Remove an organization membership from a group.
|
|
6386
|
+
* @param options - The request options.
|
|
6387
|
+
* @param options.organizationId - Unique identifier of the Organization.
|
|
6388
|
+
* @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
|
|
6389
|
+
* @param options.groupId - Unique identifier of the Group.
|
|
6390
|
+
* @example "group_01HXYZ123456789ABCDEFGHIJ"
|
|
6391
|
+
* @param options.omId - Unique identifier of the Organization Membership.
|
|
6392
|
+
* @example "om_01HXYZ123456789ABCDEFGHIJ"
|
|
6393
|
+
* @returns {Promise<void>}
|
|
6394
|
+
* @throws {AuthorizationException} 403
|
|
6395
|
+
* @throws {NotFoundException} 404
|
|
6396
|
+
*/
|
|
5530
6397
|
removeOrganizationMembership(options: RemoveGroupOrganizationMembershipOptions): Promise<void>;
|
|
5531
6398
|
}
|
|
5532
6399
|
//#endregion
|
|
@@ -5537,9 +6404,19 @@ interface GetTokenOptions {
|
|
|
5537
6404
|
userId?: string;
|
|
5538
6405
|
scopes?: WidgetScope[];
|
|
5539
6406
|
}
|
|
6407
|
+
interface SerializedGetTokenOptions {
|
|
6408
|
+
organization_id: string;
|
|
6409
|
+
user_id?: string;
|
|
6410
|
+
scopes?: WidgetScope[];
|
|
6411
|
+
}
|
|
6412
|
+
declare const serializeGetTokenOptions: (options: GetTokenOptions) => SerializedGetTokenOptions;
|
|
5540
6413
|
interface GetTokenResponse {
|
|
5541
6414
|
token: string;
|
|
5542
6415
|
}
|
|
6416
|
+
interface GetTokenResponseResponse {
|
|
6417
|
+
token: string;
|
|
6418
|
+
}
|
|
6419
|
+
declare const deserializeGetTokenResponse: (data: GetTokenResponseResponse) => GetTokenResponse;
|
|
5543
6420
|
//#endregion
|
|
5544
6421
|
//#region src/widgets/widgets.d.ts
|
|
5545
6422
|
declare class Widgets {
|
|
@@ -6175,45 +7052,828 @@ declare class Authorization {
|
|
|
6175
7052
|
* "proj-456"
|
|
6176
7053
|
*
|
|
6177
7054
|
* @param options - Pagination and filter options.
|
|
6178
|
-
* @returns {Promise<AutoPaginatable<UserOrganizationMembershipBaseListData>>}
|
|
6179
|
-
* @throws {BadRequestException} 400
|
|
6180
|
-
* @throws 403 response from the API.
|
|
6181
|
-
* @throws {NotFoundException} 404
|
|
6182
|
-
* @throws {UnprocessableEntityException} 422
|
|
7055
|
+
* @returns {Promise<AutoPaginatable<UserOrganizationMembershipBaseListData>>}
|
|
7056
|
+
* @throws {BadRequestException} 400
|
|
7057
|
+
* @throws 403 response from the API.
|
|
7058
|
+
* @throws {NotFoundException} 404
|
|
7059
|
+
* @throws {UnprocessableEntityException} 422
|
|
7060
|
+
*/
|
|
7061
|
+
listMembershipsForResourceByExternalId(options: ListMembershipsForResourceByExternalIdOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
|
|
7062
|
+
/**
|
|
7063
|
+
* List effective permissions for an organization membership on a resource
|
|
7064
|
+
*
|
|
7065
|
+
* Returns all permissions the organization membership effectively has on a resource, including permissions inherited through roles assigned to ancestor resources.
|
|
7066
|
+
* @param organizationMembershipId - The ID of the organization membership.
|
|
7067
|
+
*
|
|
7068
|
+
* @example
|
|
7069
|
+
* "om_01HXYZ123456789ABCDEFGHIJ"
|
|
7070
|
+
*
|
|
7071
|
+
* @param resourceId - The ID of the authorization resource.
|
|
7072
|
+
*
|
|
7073
|
+
* @example
|
|
7074
|
+
* "authz_resource_01HXYZ123456789ABCDEFGHIJ"
|
|
7075
|
+
*
|
|
7076
|
+
* @param options - Pagination and filter options.
|
|
7077
|
+
* @returns {Promise<AutoPaginatable<AuthorizationPermission>>}
|
|
7078
|
+
* @throws 403 response from the API.
|
|
7079
|
+
* @throws {NotFoundException} 404
|
|
7080
|
+
* @throws {UnprocessableEntityException} 422
|
|
7081
|
+
*/
|
|
7082
|
+
listEffectivePermissions(options: ListEffectivePermissionsOptions): Promise<AutoPaginatable<Permission>>;
|
|
7083
|
+
/**
|
|
7084
|
+
* List effective permissions for an organization membership on a resource by external ID
|
|
7085
|
+
*
|
|
7086
|
+
* Returns all permissions the organization membership effectively has on a resource identified by its external ID, including permissions inherited through roles assigned to ancestor resources.
|
|
7087
|
+
* @param options - Pagination and filter options.
|
|
7088
|
+
* @returns {Promise<AutoPaginatable<Permission, PaginationOptions>>}
|
|
7089
|
+
* @throws 403 response from the API.
|
|
7090
|
+
* @throws {NotFoundException} 404
|
|
7091
|
+
* @throws {UnprocessableEntityException} 422
|
|
7092
|
+
*/
|
|
7093
|
+
listEffectivePermissionsByExternalId(options: ListEffectivePermissionsByExternalIdOptions): Promise<AutoPaginatable<Permission>>;
|
|
7094
|
+
}
|
|
7095
|
+
//#endregion
|
|
7096
|
+
//#region src/vault/interfaces/key/create-data-key.interface.d.ts
|
|
7097
|
+
interface CreateDataKeyOptions {
|
|
7098
|
+
context: KeyContext;
|
|
7099
|
+
}
|
|
7100
|
+
//#endregion
|
|
7101
|
+
//#region src/vault/interfaces/key/decrypt-data-key.interface.d.ts
|
|
7102
|
+
interface DecryptDataKeyOptions {
|
|
7103
|
+
keys: string;
|
|
7104
|
+
}
|
|
7105
|
+
interface DecryptDataKeyResponse {
|
|
7106
|
+
data_key: string;
|
|
7107
|
+
id: string;
|
|
7108
|
+
}
|
|
7109
|
+
//#endregion
|
|
7110
|
+
//#region src/vault/interfaces/create-rekey-options.interface.d.ts
|
|
7111
|
+
interface CreateRekeyOptions {
|
|
7112
|
+
/** Map of values used to determine the new encryption key. */
|
|
7113
|
+
context: Record<string, string>;
|
|
7114
|
+
/** Base64-encoded encrypted data key blob to re-encrypt. */
|
|
7115
|
+
encryptedKeys: string;
|
|
7116
|
+
}
|
|
7117
|
+
//#endregion
|
|
7118
|
+
//#region src/vault/interfaces/list-objects-options.interface.d.ts
|
|
7119
|
+
interface ListObjectsOptions extends PaginationOptions {
|
|
7120
|
+
/** Filter results by name or structured search JSON. */
|
|
7121
|
+
search?: string;
|
|
7122
|
+
/** ISO 8601 timestamp to filter by last modified time. */
|
|
7123
|
+
updatedAfter?: Date;
|
|
7124
|
+
}
|
|
7125
|
+
//#endregion
|
|
7126
|
+
//#region src/vault/interfaces/object/create-object.interface.d.ts
|
|
7127
|
+
interface CreateObjectEntity {
|
|
7128
|
+
name: string;
|
|
7129
|
+
value: string;
|
|
7130
|
+
key_context: KeyContext;
|
|
7131
|
+
}
|
|
7132
|
+
interface CreateObjectOptions {
|
|
7133
|
+
name: string;
|
|
7134
|
+
value: string;
|
|
7135
|
+
context: KeyContext;
|
|
7136
|
+
}
|
|
7137
|
+
//#endregion
|
|
7138
|
+
//#region src/vault/interfaces/object.interface.d.ts
|
|
7139
|
+
interface ObjectUpdateBy {
|
|
7140
|
+
id: string;
|
|
7141
|
+
name: string;
|
|
7142
|
+
}
|
|
7143
|
+
//#endregion
|
|
7144
|
+
//#region src/vault/interfaces/object/read-object.interface.d.ts
|
|
7145
|
+
interface ReadObjectOptions {
|
|
7146
|
+
id: string;
|
|
7147
|
+
}
|
|
7148
|
+
interface ReadObjectMetadataResponse {
|
|
7149
|
+
context: KeyContext;
|
|
7150
|
+
environment_id: string;
|
|
7151
|
+
id: string;
|
|
7152
|
+
key_id: string;
|
|
7153
|
+
updated_at: string;
|
|
7154
|
+
updated_by: ObjectUpdateBy;
|
|
7155
|
+
version_id: string;
|
|
7156
|
+
}
|
|
7157
|
+
interface ReadObjectResponse {
|
|
7158
|
+
id: string;
|
|
7159
|
+
metadata: ReadObjectMetadataResponse;
|
|
7160
|
+
name: string;
|
|
7161
|
+
value?: string;
|
|
7162
|
+
}
|
|
7163
|
+
//#endregion
|
|
7164
|
+
//#region src/vault/interfaces/object/update-object.interface.d.ts
|
|
7165
|
+
interface UpdateObjectEntity {
|
|
7166
|
+
value: string;
|
|
7167
|
+
version_check?: string;
|
|
7168
|
+
}
|
|
7169
|
+
interface UpdateObjectOptions {
|
|
7170
|
+
id: string;
|
|
7171
|
+
value: string;
|
|
7172
|
+
versionCheck?: string;
|
|
7173
|
+
}
|
|
7174
|
+
//#endregion
|
|
7175
|
+
//#region src/vault/interfaces/delete-vault-object-options.interface.d.ts
|
|
7176
|
+
interface DeleteVaultObjectOptions {
|
|
7177
|
+
/** Unique identifier of the object. */
|
|
7178
|
+
id: string;
|
|
7179
|
+
/** Expected current version for optimistic locking. */
|
|
7180
|
+
versionCheck?: string;
|
|
7181
|
+
}
|
|
7182
|
+
//#endregion
|
|
7183
|
+
//#region src/vault/interfaces/create-data-key-response.interface.d.ts
|
|
7184
|
+
interface CreateDataKeyResponse {
|
|
7185
|
+
/** Map of values used to determine the encryption key. */
|
|
7186
|
+
context: Record<string, string>;
|
|
7187
|
+
/** Base64-encoded data encryption key. */
|
|
7188
|
+
dataKey?: string;
|
|
7189
|
+
/** Base64-encoded encrypted data key blob. */
|
|
7190
|
+
encryptedKeys?: string;
|
|
7191
|
+
/** Unique identifier for the generated data key. */
|
|
7192
|
+
id: string;
|
|
7193
|
+
}
|
|
7194
|
+
interface CreateDataKeyResponseWire {
|
|
7195
|
+
context: Record<string, string>;
|
|
7196
|
+
data_key: string;
|
|
7197
|
+
encrypted_keys: string;
|
|
7198
|
+
id: string;
|
|
7199
|
+
}
|
|
7200
|
+
//#endregion
|
|
7201
|
+
//#region src/vault/interfaces/actor.interface.d.ts
|
|
7202
|
+
/** The user or API key that performed an action. */
|
|
7203
|
+
interface Actor {
|
|
7204
|
+
/** Unique identifier of the actor. */
|
|
7205
|
+
id: string;
|
|
7206
|
+
/** Display name of the actor. */
|
|
7207
|
+
name: string;
|
|
7208
|
+
}
|
|
7209
|
+
interface ActorResponse {
|
|
7210
|
+
id: string;
|
|
7211
|
+
name: string;
|
|
7212
|
+
}
|
|
7213
|
+
//#endregion
|
|
7214
|
+
//#region src/vault/interfaces/object-metadata.interface.d.ts
|
|
7215
|
+
/** Metadata for a stored encrypted object. */
|
|
7216
|
+
interface ObjectMetadata {
|
|
7217
|
+
/** Map of values used to determine the encryption key. */
|
|
7218
|
+
context: Record<string, string>;
|
|
7219
|
+
/** Environment the object belongs to. */
|
|
7220
|
+
environmentId: string;
|
|
7221
|
+
/** Unique identifier of the object. */
|
|
7222
|
+
id: string;
|
|
7223
|
+
/** Encryption key identifier. */
|
|
7224
|
+
keyId: string;
|
|
7225
|
+
/** Timestamp of the last update. */
|
|
7226
|
+
updatedAt: Date;
|
|
7227
|
+
updatedBy: Actor;
|
|
7228
|
+
/** Current version identifier of the object. */
|
|
7229
|
+
versionId?: string | null;
|
|
7230
|
+
}
|
|
7231
|
+
interface ObjectMetadataResponse {
|
|
7232
|
+
context: Record<string, string>;
|
|
7233
|
+
environment_id: string;
|
|
7234
|
+
id: string;
|
|
7235
|
+
key_id: string;
|
|
7236
|
+
updated_at: string;
|
|
7237
|
+
updated_by: ActorResponse;
|
|
7238
|
+
version_id?: string | null;
|
|
7239
|
+
}
|
|
7240
|
+
//#endregion
|
|
7241
|
+
//#region src/vault/interfaces/vault-object.interface.d.ts
|
|
7242
|
+
/** An encrypted object with its decrypted value and metadata. */
|
|
7243
|
+
interface VaultObject {
|
|
7244
|
+
/** Unique identifier of the object. */
|
|
7245
|
+
id: string;
|
|
7246
|
+
metadata: ObjectMetadata;
|
|
7247
|
+
/** Unique name of the object. */
|
|
7248
|
+
name: string;
|
|
7249
|
+
/** Decrypted plaintext value. */
|
|
7250
|
+
value?: string;
|
|
7251
|
+
}
|
|
7252
|
+
interface VaultObjectResponse {
|
|
7253
|
+
id: string;
|
|
7254
|
+
metadata: ObjectMetadataResponse;
|
|
7255
|
+
name: string;
|
|
7256
|
+
value: string;
|
|
7257
|
+
}
|
|
7258
|
+
//#endregion
|
|
7259
|
+
//#region src/vault/interfaces/object-version.interface.d.ts
|
|
7260
|
+
/** A static snapshot of an encrypted object. */
|
|
7261
|
+
interface ObjectVersion {
|
|
7262
|
+
/** Timestamp when the version was created. */
|
|
7263
|
+
createdAt: Date;
|
|
7264
|
+
/** Whether this is the active version. */
|
|
7265
|
+
currentVersion: boolean;
|
|
7266
|
+
/** Hash of the object value. */
|
|
7267
|
+
etag?: string;
|
|
7268
|
+
/** Unique identifier of the version. */
|
|
7269
|
+
id: string;
|
|
7270
|
+
/** Number of bytes of stored data. */
|
|
7271
|
+
size?: number;
|
|
7272
|
+
}
|
|
7273
|
+
interface ObjectVersionResponse {
|
|
7274
|
+
created_at: string;
|
|
7275
|
+
current_version: boolean;
|
|
7276
|
+
etag?: string;
|
|
7277
|
+
id: string;
|
|
7278
|
+
size?: number;
|
|
7279
|
+
}
|
|
7280
|
+
//#endregion
|
|
7281
|
+
//#region src/vault/interfaces/list-metadata.interface.d.ts
|
|
7282
|
+
/** Cursor-based pagination metadata. */
|
|
7283
|
+
interface ListMetadata {
|
|
7284
|
+
/** Cursor for the next page of results. */
|
|
7285
|
+
after?: string | null;
|
|
7286
|
+
/** Cursor for the previous page of results. */
|
|
7287
|
+
before?: string | null;
|
|
7288
|
+
}
|
|
7289
|
+
//#endregion
|
|
7290
|
+
//#region src/vault/interfaces/version-list-response.interface.d.ts
|
|
7291
|
+
interface VersionListResponse {
|
|
7292
|
+
/** List of object versions. */
|
|
7293
|
+
data: ObjectVersion[];
|
|
7294
|
+
listMetadata: ListMetadata;
|
|
7295
|
+
}
|
|
7296
|
+
//#endregion
|
|
7297
|
+
//#region src/vault/interfaces/object-summary.interface.d.ts
|
|
7298
|
+
/** Summary of an encrypted object returned in list responses. */
|
|
7299
|
+
interface ObjectSummary {
|
|
7300
|
+
/** Unique identifier of the object. */
|
|
7301
|
+
id: string;
|
|
7302
|
+
/** Unique name of the object. */
|
|
7303
|
+
name: string;
|
|
7304
|
+
/** Timestamp of the last update. */
|
|
7305
|
+
updatedAt?: Date | null;
|
|
7306
|
+
}
|
|
7307
|
+
interface ObjectSummaryResponse {
|
|
7308
|
+
id: string;
|
|
7309
|
+
name: string;
|
|
7310
|
+
updated_at?: string | null;
|
|
7311
|
+
}
|
|
7312
|
+
//#endregion
|
|
7313
|
+
//#region src/vault/interfaces/read-object-by-name-options.interface.d.ts
|
|
7314
|
+
interface ReadObjectByNameOptions {
|
|
7315
|
+
/** Unique name of the object. */
|
|
7316
|
+
name: string;
|
|
7317
|
+
}
|
|
7318
|
+
//#endregion
|
|
7319
|
+
//#region src/vault/vault.d.ts
|
|
7320
|
+
declare class Vault {
|
|
7321
|
+
private readonly workos;
|
|
7322
|
+
constructor(workos: WorkOS);
|
|
7323
|
+
/**
|
|
7324
|
+
* Read an object by name
|
|
7325
|
+
*
|
|
7326
|
+
* Fetch and decrypt an object by its unique name.
|
|
7327
|
+
* @param options - The object name string or request options.
|
|
7328
|
+
* @param options.name - Unique name of the object.
|
|
7329
|
+
* @example "my-secret"
|
|
7330
|
+
* @returns {Promise<VaultObject>}
|
|
7331
|
+
* @throws {BadRequestException} 400
|
|
7332
|
+
* @throws {NotFoundException} 404
|
|
7333
|
+
*/
|
|
7334
|
+
readObjectByName(name: string): Promise<VaultObject>;
|
|
7335
|
+
readObjectByName(options: ReadObjectByNameOptions): Promise<VaultObject>;
|
|
7336
|
+
/**
|
|
7337
|
+
* Create a data key
|
|
7338
|
+
*
|
|
7339
|
+
* Generate an isolated encryption key for local encryption operations.
|
|
7340
|
+
* @param options - Object containing context.
|
|
7341
|
+
* @param options.context - Map of values used to determine the encryption key.
|
|
7342
|
+
* @example {"organization_id":"org_01K8ZYT4AWJ6XP0E0S8CTBHE3P"}
|
|
7343
|
+
* @returns {Promise<DataKeyPair>}
|
|
7344
|
+
* @throws {BadRequestException} 400
|
|
7345
|
+
* @throws {UnprocessableEntityException} 422
|
|
7346
|
+
*/
|
|
7347
|
+
createDataKey(options: CreateDataKeyOptions): Promise<DataKeyPair>;
|
|
7348
|
+
/**
|
|
7349
|
+
* Decrypt a data key
|
|
7350
|
+
*
|
|
7351
|
+
* Decrypt a previously encrypted data key from WorkOS Vault.
|
|
7352
|
+
* @param options - Object containing keys.
|
|
7353
|
+
* @param options.keys - Base64-encoded encrypted data key to decrypt.
|
|
7354
|
+
* @example "V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj"
|
|
7355
|
+
* @returns {Promise<DataKey>}
|
|
7356
|
+
* @throws {BadRequestException} 400
|
|
7357
|
+
*/
|
|
7358
|
+
decryptDataKey(options: DecryptDataKeyOptions): Promise<DataKey>;
|
|
7359
|
+
/**
|
|
7360
|
+
* Re-encrypt a data key
|
|
7361
|
+
*
|
|
7362
|
+
* Decrypt an existing data key and re-encrypt it under a new key context.
|
|
7363
|
+
* @param options - Object containing context, encryptedKeys.
|
|
7364
|
+
* @param options.context - Map of values used to determine the new encryption key.
|
|
7365
|
+
* @example {"organization_id":"org_01K8ZYT4AWJ6XP0E0S8CTBHE3P"}
|
|
7366
|
+
* @param options.encryptedKeys - Base64-encoded encrypted data key blob to re-encrypt.
|
|
7367
|
+
* @example "V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj"
|
|
7368
|
+
* @returns {Promise<CreateDataKeyResponse>}
|
|
7369
|
+
* @throws {BadRequestException} 400
|
|
7370
|
+
* @throws {UnprocessableEntityException} 422
|
|
7371
|
+
*/
|
|
7372
|
+
createRekey(options: CreateRekeyOptions): Promise<CreateDataKeyResponse>;
|
|
7373
|
+
/**
|
|
7374
|
+
* List objects
|
|
7375
|
+
*
|
|
7376
|
+
* List all encrypted objects with cursor-based pagination.
|
|
7377
|
+
* @param options - Pagination and filter options.
|
|
7378
|
+
* @returns {Promise<AutoPaginatable<ObjectSummary, PaginationOptions>>}
|
|
7379
|
+
* @throws {BadRequestException} 400
|
|
7380
|
+
*/
|
|
7381
|
+
listObjects(options?: ListObjectsOptions): Promise<AutoPaginatable<ObjectSummary, PaginationOptions>>;
|
|
7382
|
+
/**
|
|
7383
|
+
* Create an object
|
|
7384
|
+
*
|
|
7385
|
+
* Encrypt and store a new key-value object.
|
|
7386
|
+
* @param options - Object containing keyContext, name, value.
|
|
7387
|
+
* @param options.keyContext - Map of values used to determine the encryption key.
|
|
7388
|
+
* @example {"organization_id":"org_01K8ZYT4AWJ6XP0E0S8CTBHE3P"}
|
|
7389
|
+
* @param options.name - Unique name for the object.
|
|
7390
|
+
* @example "my-secret"
|
|
7391
|
+
* @param options.value - Plaintext data to encrypt and store.
|
|
7392
|
+
* @example "s3cr3t-v4lu3"
|
|
7393
|
+
* @returns {Promise<ObjectMetadata>}
|
|
7394
|
+
* @throws {BadRequestException} 400
|
|
7395
|
+
* @throws {ConflictException} 409
|
|
7396
|
+
* @throws {UnprocessableEntityException} 422
|
|
7397
|
+
*/
|
|
7398
|
+
createObject(options: CreateObjectOptions): Promise<ObjectMetadata>;
|
|
7399
|
+
/**
|
|
7400
|
+
* Read an object by ID
|
|
7401
|
+
*
|
|
7402
|
+
* Fetch and decrypt an object by its unique identifier.
|
|
7403
|
+
* @param options - The request options.
|
|
7404
|
+
* @param options.id - Unique identifier of the object.
|
|
7405
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
7406
|
+
* @returns {Promise<VaultObject>}
|
|
7407
|
+
* @throws {BadRequestException} 400
|
|
7408
|
+
* @throws {NotFoundException} 404
|
|
7409
|
+
*/
|
|
7410
|
+
readObject(options: ReadObjectOptions): Promise<VaultObject>;
|
|
7411
|
+
/**
|
|
7412
|
+
* Update an object
|
|
7413
|
+
*
|
|
7414
|
+
* Update the value of an existing encrypted object.
|
|
7415
|
+
* @param options - Object containing value.
|
|
7416
|
+
* @param options.id - Unique identifier of the object.
|
|
7417
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
7418
|
+
* @param options.value - New plaintext value.
|
|
7419
|
+
* @example "upd4t3d-v4lu3"
|
|
7420
|
+
* @param options.versionCheck - ID of the expected current version for optimistic locking.
|
|
7421
|
+
* @example "c3d4e5f6-7890-abcd-ef12-34567890abcd"
|
|
7422
|
+
* @returns {Promise<VaultObject>}
|
|
7423
|
+
* @throws {BadRequestException} 400
|
|
7424
|
+
* @throws {ConflictException} 409
|
|
7425
|
+
*/
|
|
7426
|
+
updateObject(options: UpdateObjectOptions): Promise<VaultObject>;
|
|
7427
|
+
/**
|
|
7428
|
+
* Delete an object
|
|
7429
|
+
*
|
|
7430
|
+
* Delete an encrypted object.
|
|
7431
|
+
* @param options - Additional query options.
|
|
7432
|
+
* @param options.id - Unique identifier of the object.
|
|
7433
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
7434
|
+
* @param options.versionCheck - Expected current version for optimistic locking.
|
|
7435
|
+
* @example "c3d4e5f6-7890-abcd-ef12-34567890abcd"
|
|
7436
|
+
* @returns {Promise<void>}
|
|
7437
|
+
* @throws {NotFoundException} 404
|
|
7438
|
+
* @throws {ConflictException} 409
|
|
7439
|
+
*/
|
|
7440
|
+
deleteObject(options: DeleteVaultObjectOptions): Promise<void>;
|
|
7441
|
+
/**
|
|
7442
|
+
* Describe an object
|
|
7443
|
+
*
|
|
7444
|
+
* Fetch metadata for an object without decrypting it.
|
|
7445
|
+
* @param options - The request options.
|
|
7446
|
+
* @param options.id - Unique identifier of the object.
|
|
7447
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
7448
|
+
* @returns {Promise<VaultObject>}
|
|
7449
|
+
* @throws {BadRequestException} 400
|
|
7450
|
+
* @throws {NotFoundException} 404
|
|
7451
|
+
*/
|
|
7452
|
+
describeObject(options: ReadObjectOptions): Promise<VaultObject>;
|
|
7453
|
+
/**
|
|
7454
|
+
* List object versions
|
|
7455
|
+
*
|
|
7456
|
+
* Retrieve all versions for a specific object.
|
|
7457
|
+
* @param options - The request options.
|
|
7458
|
+
* @param options.id - Unique identifier of the object.
|
|
7459
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
7460
|
+
* @returns {Promise<ObjectVersion[]>}
|
|
7461
|
+
* @throws {BadRequestException} 400
|
|
7462
|
+
* @throws {NotFoundException} 404
|
|
7463
|
+
*/
|
|
7464
|
+
listObjectVersions(options: ReadObjectOptions): Promise<VersionListResponse['data']>;
|
|
7465
|
+
private decode;
|
|
7466
|
+
decrypt(encryptedData: string, associatedData?: string): Promise<string>;
|
|
7467
|
+
encrypt(data: string, context: KeyContext, associatedData?: string): Promise<string>;
|
|
7468
|
+
}
|
|
7469
|
+
//#endregion
|
|
7470
|
+
//#region src/workos.d.ts
|
|
7471
|
+
/** WorkOS REST API */
|
|
7472
|
+
declare class WorkOS {
|
|
7473
|
+
readonly baseURL: string;
|
|
7474
|
+
readonly client: HttpClient;
|
|
7475
|
+
readonly clientId?: string;
|
|
7476
|
+
readonly key?: string;
|
|
7477
|
+
readonly options: WorkOSOptions;
|
|
7478
|
+
readonly pkce: PKCE;
|
|
7479
|
+
private readonly hasApiKey;
|
|
7480
|
+
readonly actions: Actions;
|
|
7481
|
+
readonly apiKeys: ApiKeys;
|
|
7482
|
+
readonly auditLogs: AuditLogs;
|
|
7483
|
+
readonly authorization: Authorization;
|
|
7484
|
+
readonly directorySync: DirectorySync;
|
|
7485
|
+
readonly connect: Connect;
|
|
7486
|
+
readonly events: Events;
|
|
7487
|
+
readonly featureFlags: FeatureFlags;
|
|
7488
|
+
readonly groups: Groups;
|
|
7489
|
+
readonly multiFactorAuth: MultiFactorAuth;
|
|
7490
|
+
readonly organizations: Organizations;
|
|
7491
|
+
readonly organizationDomains: OrganizationDomains;
|
|
7492
|
+
readonly passwordless: Passwordless;
|
|
7493
|
+
readonly pipes: Pipes;
|
|
7494
|
+
readonly radar: Radar;
|
|
7495
|
+
readonly adminPortal: AdminPortal;
|
|
7496
|
+
readonly sso: SSO;
|
|
7497
|
+
readonly userManagement: UserManagement;
|
|
7498
|
+
readonly vault: Vault;
|
|
7499
|
+
readonly webhooks: Webhooks;
|
|
7500
|
+
readonly widgets: Widgets;
|
|
7501
|
+
/**
|
|
7502
|
+
* Create a new WorkOS client.
|
|
7503
|
+
*
|
|
7504
|
+
* @param keyOrOptions - API key string, or options object
|
|
7505
|
+
* @param maybeOptions - Options when first argument is API key
|
|
7506
|
+
*
|
|
7507
|
+
* @example
|
|
7508
|
+
* // Server-side with API key (string)
|
|
7509
|
+
* const workos = new WorkOS('sk_...');
|
|
7510
|
+
*
|
|
7511
|
+
* @example
|
|
7512
|
+
* // Server-side with API key (object)
|
|
7513
|
+
* const workos = new WorkOS({ apiKey: 'sk_...', clientId: 'client_...' });
|
|
7514
|
+
*
|
|
7515
|
+
* @example
|
|
7516
|
+
* // PKCE/public client (no API key)
|
|
7517
|
+
* const workos = new WorkOS({ clientId: 'client_...' });
|
|
7518
|
+
*/
|
|
7519
|
+
constructor(keyOrOptions?: string | WorkOSOptions, maybeOptions?: WorkOSOptions);
|
|
7520
|
+
private createUserAgent;
|
|
7521
|
+
createWebhookClient(): Webhooks;
|
|
7522
|
+
createActionsClient(): Actions;
|
|
7523
|
+
getCryptoProvider(): CryptoProvider;
|
|
7524
|
+
createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient;
|
|
7525
|
+
get version(): string;
|
|
7526
|
+
/**
|
|
7527
|
+
* Require API key for methods that need it.
|
|
7528
|
+
* @param methodName - Name of the method requiring API key (for error message)
|
|
7529
|
+
* @throws ApiKeyRequiredException if no API key was provided
|
|
7530
|
+
*/
|
|
7531
|
+
requireApiKey(methodName: string): void;
|
|
7532
|
+
post<Result = any, Entity = any>(path: string, entity: Entity, options?: PostOptions): Promise<{
|
|
7533
|
+
data: Result;
|
|
7534
|
+
}>;
|
|
7535
|
+
get<Result = any>(path: string, options?: GetOptions): Promise<{
|
|
7536
|
+
data: Result;
|
|
7537
|
+
}>;
|
|
7538
|
+
put<Result = any, Entity = any>(path: string, entity: Entity, options?: PutOptions): Promise<{
|
|
7539
|
+
data: Result;
|
|
7540
|
+
}>;
|
|
7541
|
+
patch<Result = any, Entity = any>(path: string, entity: Entity, options?: PatchOptions): Promise<{
|
|
7542
|
+
data: Result;
|
|
7543
|
+
}>;
|
|
7544
|
+
delete(path: string, query?: any): Promise<void>;
|
|
7545
|
+
deleteWithBody<Entity = any>(path: string, entity: Entity): Promise<void>;
|
|
7546
|
+
emitWarning(warning: string): void;
|
|
7547
|
+
private handleParseError;
|
|
7548
|
+
private handleHttpError;
|
|
7549
|
+
}
|
|
7550
|
+
//#endregion
|
|
7551
|
+
//#region src/webhooks/interfaces/list-webhook-endpoints-options.interface.d.ts
|
|
7552
|
+
type ListWebhookEndpointsOptions = PaginationOptions;
|
|
7553
|
+
//#endregion
|
|
7554
|
+
//#region src/webhooks/interfaces/create-webhook-endpoint-events.interface.d.ts
|
|
7555
|
+
declare const CreateWebhookEndpointEvents: {
|
|
7556
|
+
readonly AuthenticationEmailVerificationSucceeded: "authentication.email_verification_succeeded";
|
|
7557
|
+
readonly AuthenticationMagicAuthFailed: "authentication.magic_auth_failed";
|
|
7558
|
+
readonly AuthenticationMagicAuthSucceeded: "authentication.magic_auth_succeeded";
|
|
7559
|
+
readonly AuthenticationMfaSucceeded: "authentication.mfa_succeeded";
|
|
7560
|
+
readonly AuthenticationOAuthFailed: "authentication.oauth_failed";
|
|
7561
|
+
readonly AuthenticationOAuthSucceeded: "authentication.oauth_succeeded";
|
|
7562
|
+
readonly AuthenticationPasswordFailed: "authentication.password_failed";
|
|
7563
|
+
readonly AuthenticationPasswordSucceeded: "authentication.password_succeeded";
|
|
7564
|
+
readonly AuthenticationPasskeyFailed: "authentication.passkey_failed";
|
|
7565
|
+
readonly AuthenticationPasskeySucceeded: "authentication.passkey_succeeded";
|
|
7566
|
+
readonly AuthenticationSSOFailed: "authentication.sso_failed";
|
|
7567
|
+
readonly AuthenticationSSOStarted: "authentication.sso_started";
|
|
7568
|
+
readonly AuthenticationSSOSucceeded: "authentication.sso_succeeded";
|
|
7569
|
+
readonly AuthenticationSSOTimedOut: "authentication.sso_timed_out";
|
|
7570
|
+
readonly AuthenticationRadarRiskDetected: "authentication.radar_risk_detected";
|
|
7571
|
+
readonly ApiKeyCreated: "api_key.created";
|
|
7572
|
+
readonly ApiKeyRevoked: "api_key.revoked";
|
|
7573
|
+
readonly ConnectionActivated: "connection.activated";
|
|
7574
|
+
readonly ConnectionDeactivated: "connection.deactivated";
|
|
7575
|
+
readonly ConnectionSAMLCertificateRenewalRequired: "connection.saml_certificate_renewal_required";
|
|
7576
|
+
readonly ConnectionSAMLCertificateRenewed: "connection.saml_certificate_renewed";
|
|
7577
|
+
readonly ConnectionDeleted: "connection.deleted";
|
|
7578
|
+
readonly DsyncActivated: "dsync.activated";
|
|
7579
|
+
readonly DsyncDeleted: "dsync.deleted";
|
|
7580
|
+
readonly DsyncGroupCreated: "dsync.group.created";
|
|
7581
|
+
readonly DsyncGroupDeleted: "dsync.group.deleted";
|
|
7582
|
+
readonly DsyncGroupUpdated: "dsync.group.updated";
|
|
7583
|
+
readonly DsyncGroupUserAdded: "dsync.group.user_added";
|
|
7584
|
+
readonly DsyncGroupUserRemoved: "dsync.group.user_removed";
|
|
7585
|
+
readonly DsyncUserCreated: "dsync.user.created";
|
|
7586
|
+
readonly DsyncUserDeleted: "dsync.user.deleted";
|
|
7587
|
+
readonly DsyncUserUpdated: "dsync.user.updated";
|
|
7588
|
+
readonly EmailVerificationCreated: "email_verification.created";
|
|
7589
|
+
readonly GroupCreated: "group.created";
|
|
7590
|
+
readonly GroupDeleted: "group.deleted";
|
|
7591
|
+
readonly GroupMemberAdded: "group.member_added";
|
|
7592
|
+
readonly GroupMemberRemoved: "group.member_removed";
|
|
7593
|
+
readonly GroupUpdated: "group.updated";
|
|
7594
|
+
readonly FlagCreated: "flag.created";
|
|
7595
|
+
readonly FlagDeleted: "flag.deleted";
|
|
7596
|
+
readonly FlagUpdated: "flag.updated";
|
|
7597
|
+
readonly FlagRuleUpdated: "flag.rule_updated";
|
|
7598
|
+
readonly InvitationAccepted: "invitation.accepted";
|
|
7599
|
+
readonly InvitationCreated: "invitation.created";
|
|
7600
|
+
readonly InvitationResent: "invitation.resent";
|
|
7601
|
+
readonly InvitationRevoked: "invitation.revoked";
|
|
7602
|
+
readonly MagicAuthCreated: "magic_auth.created";
|
|
7603
|
+
readonly OrganizationCreated: "organization.created";
|
|
7604
|
+
readonly OrganizationDeleted: "organization.deleted";
|
|
7605
|
+
readonly OrganizationUpdated: "organization.updated";
|
|
7606
|
+
readonly OrganizationDomainCreated: "organization_domain.created";
|
|
7607
|
+
readonly OrganizationDomainDeleted: "organization_domain.deleted";
|
|
7608
|
+
readonly OrganizationDomainUpdated: "organization_domain.updated";
|
|
7609
|
+
readonly OrganizationDomainVerified: "organization_domain.verified";
|
|
7610
|
+
readonly OrganizationDomainVerificationFailed: "organization_domain.verification_failed";
|
|
7611
|
+
readonly PasswordResetCreated: "password_reset.created";
|
|
7612
|
+
readonly PasswordResetSucceeded: "password_reset.succeeded";
|
|
7613
|
+
readonly UserCreated: "user.created";
|
|
7614
|
+
readonly UserUpdated: "user.updated";
|
|
7615
|
+
readonly UserDeleted: "user.deleted";
|
|
7616
|
+
readonly OrganizationMembershipCreated: "organization_membership.created";
|
|
7617
|
+
readonly OrganizationMembershipDeleted: "organization_membership.deleted";
|
|
7618
|
+
readonly OrganizationMembershipUpdated: "organization_membership.updated";
|
|
7619
|
+
readonly RoleCreated: "role.created";
|
|
7620
|
+
readonly RoleDeleted: "role.deleted";
|
|
7621
|
+
readonly RoleUpdated: "role.updated";
|
|
7622
|
+
readonly OrganizationRoleCreated: "organization_role.created";
|
|
7623
|
+
readonly OrganizationRoleDeleted: "organization_role.deleted";
|
|
7624
|
+
readonly OrganizationRoleUpdated: "organization_role.updated";
|
|
7625
|
+
readonly PermissionCreated: "permission.created";
|
|
7626
|
+
readonly PermissionDeleted: "permission.deleted";
|
|
7627
|
+
readonly PermissionUpdated: "permission.updated";
|
|
7628
|
+
readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
|
|
7629
|
+
readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
|
|
7630
|
+
readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
|
|
7631
|
+
readonly SessionCreated: "session.created";
|
|
7632
|
+
readonly SessionRevoked: "session.revoked";
|
|
7633
|
+
readonly WaitlistUserApproved: "waitlist_user.approved";
|
|
7634
|
+
readonly WaitlistUserCreated: "waitlist_user.created";
|
|
7635
|
+
readonly WaitlistUserDenied: "waitlist_user.denied";
|
|
7636
|
+
};
|
|
7637
|
+
type CreateWebhookEndpointEvents = (typeof CreateWebhookEndpointEvents)[keyof typeof CreateWebhookEndpointEvents];
|
|
7638
|
+
//#endregion
|
|
7639
|
+
//#region src/webhooks/interfaces/create-webhook-endpoint-options.interface.d.ts
|
|
7640
|
+
interface CreateWebhookEndpointOptions {
|
|
7641
|
+
/** The HTTPS URL where webhooks will be sent. */
|
|
7642
|
+
endpointUrl: string;
|
|
7643
|
+
/** The events that the Webhook Endpoint is subscribed to. */
|
|
7644
|
+
events: CreateWebhookEndpointEvents[];
|
|
7645
|
+
}
|
|
7646
|
+
//#endregion
|
|
7647
|
+
//#region src/webhooks/interfaces/update-webhook-endpoint-status.interface.d.ts
|
|
7648
|
+
declare const UpdateWebhookEndpointStatus: {
|
|
7649
|
+
readonly Enabled: "enabled";
|
|
7650
|
+
readonly Disabled: "disabled";
|
|
7651
|
+
};
|
|
7652
|
+
type UpdateWebhookEndpointStatus = (typeof UpdateWebhookEndpointStatus)[keyof typeof UpdateWebhookEndpointStatus];
|
|
7653
|
+
//#endregion
|
|
7654
|
+
//#region src/webhooks/interfaces/update-webhook-endpoint-events.interface.d.ts
|
|
7655
|
+
declare const UpdateWebhookEndpointEvents: {
|
|
7656
|
+
readonly AuthenticationEmailVerificationSucceeded: "authentication.email_verification_succeeded";
|
|
7657
|
+
readonly AuthenticationMagicAuthFailed: "authentication.magic_auth_failed";
|
|
7658
|
+
readonly AuthenticationMagicAuthSucceeded: "authentication.magic_auth_succeeded";
|
|
7659
|
+
readonly AuthenticationMfaSucceeded: "authentication.mfa_succeeded";
|
|
7660
|
+
readonly AuthenticationOAuthFailed: "authentication.oauth_failed";
|
|
7661
|
+
readonly AuthenticationOAuthSucceeded: "authentication.oauth_succeeded";
|
|
7662
|
+
readonly AuthenticationPasswordFailed: "authentication.password_failed";
|
|
7663
|
+
readonly AuthenticationPasswordSucceeded: "authentication.password_succeeded";
|
|
7664
|
+
readonly AuthenticationPasskeyFailed: "authentication.passkey_failed";
|
|
7665
|
+
readonly AuthenticationPasskeySucceeded: "authentication.passkey_succeeded";
|
|
7666
|
+
readonly AuthenticationSSOFailed: "authentication.sso_failed";
|
|
7667
|
+
readonly AuthenticationSSOStarted: "authentication.sso_started";
|
|
7668
|
+
readonly AuthenticationSSOSucceeded: "authentication.sso_succeeded";
|
|
7669
|
+
readonly AuthenticationSSOTimedOut: "authentication.sso_timed_out";
|
|
7670
|
+
readonly AuthenticationRadarRiskDetected: "authentication.radar_risk_detected";
|
|
7671
|
+
readonly ApiKeyCreated: "api_key.created";
|
|
7672
|
+
readonly ApiKeyRevoked: "api_key.revoked";
|
|
7673
|
+
readonly ConnectionActivated: "connection.activated";
|
|
7674
|
+
readonly ConnectionDeactivated: "connection.deactivated";
|
|
7675
|
+
readonly ConnectionSAMLCertificateRenewalRequired: "connection.saml_certificate_renewal_required";
|
|
7676
|
+
readonly ConnectionSAMLCertificateRenewed: "connection.saml_certificate_renewed";
|
|
7677
|
+
readonly ConnectionDeleted: "connection.deleted";
|
|
7678
|
+
readonly DsyncActivated: "dsync.activated";
|
|
7679
|
+
readonly DsyncDeleted: "dsync.deleted";
|
|
7680
|
+
readonly DsyncGroupCreated: "dsync.group.created";
|
|
7681
|
+
readonly DsyncGroupDeleted: "dsync.group.deleted";
|
|
7682
|
+
readonly DsyncGroupUpdated: "dsync.group.updated";
|
|
7683
|
+
readonly DsyncGroupUserAdded: "dsync.group.user_added";
|
|
7684
|
+
readonly DsyncGroupUserRemoved: "dsync.group.user_removed";
|
|
7685
|
+
readonly DsyncUserCreated: "dsync.user.created";
|
|
7686
|
+
readonly DsyncUserDeleted: "dsync.user.deleted";
|
|
7687
|
+
readonly DsyncUserUpdated: "dsync.user.updated";
|
|
7688
|
+
readonly EmailVerificationCreated: "email_verification.created";
|
|
7689
|
+
readonly GroupCreated: "group.created";
|
|
7690
|
+
readonly GroupDeleted: "group.deleted";
|
|
7691
|
+
readonly GroupMemberAdded: "group.member_added";
|
|
7692
|
+
readonly GroupMemberRemoved: "group.member_removed";
|
|
7693
|
+
readonly GroupUpdated: "group.updated";
|
|
7694
|
+
readonly FlagCreated: "flag.created";
|
|
7695
|
+
readonly FlagDeleted: "flag.deleted";
|
|
7696
|
+
readonly FlagUpdated: "flag.updated";
|
|
7697
|
+
readonly FlagRuleUpdated: "flag.rule_updated";
|
|
7698
|
+
readonly InvitationAccepted: "invitation.accepted";
|
|
7699
|
+
readonly InvitationCreated: "invitation.created";
|
|
7700
|
+
readonly InvitationResent: "invitation.resent";
|
|
7701
|
+
readonly InvitationRevoked: "invitation.revoked";
|
|
7702
|
+
readonly MagicAuthCreated: "magic_auth.created";
|
|
7703
|
+
readonly OrganizationCreated: "organization.created";
|
|
7704
|
+
readonly OrganizationDeleted: "organization.deleted";
|
|
7705
|
+
readonly OrganizationUpdated: "organization.updated";
|
|
7706
|
+
readonly OrganizationDomainCreated: "organization_domain.created";
|
|
7707
|
+
readonly OrganizationDomainDeleted: "organization_domain.deleted";
|
|
7708
|
+
readonly OrganizationDomainUpdated: "organization_domain.updated";
|
|
7709
|
+
readonly OrganizationDomainVerified: "organization_domain.verified";
|
|
7710
|
+
readonly OrganizationDomainVerificationFailed: "organization_domain.verification_failed";
|
|
7711
|
+
readonly PasswordResetCreated: "password_reset.created";
|
|
7712
|
+
readonly PasswordResetSucceeded: "password_reset.succeeded";
|
|
7713
|
+
readonly UserCreated: "user.created";
|
|
7714
|
+
readonly UserUpdated: "user.updated";
|
|
7715
|
+
readonly UserDeleted: "user.deleted";
|
|
7716
|
+
readonly OrganizationMembershipCreated: "organization_membership.created";
|
|
7717
|
+
readonly OrganizationMembershipDeleted: "organization_membership.deleted";
|
|
7718
|
+
readonly OrganizationMembershipUpdated: "organization_membership.updated";
|
|
7719
|
+
readonly RoleCreated: "role.created";
|
|
7720
|
+
readonly RoleDeleted: "role.deleted";
|
|
7721
|
+
readonly RoleUpdated: "role.updated";
|
|
7722
|
+
readonly OrganizationRoleCreated: "organization_role.created";
|
|
7723
|
+
readonly OrganizationRoleDeleted: "organization_role.deleted";
|
|
7724
|
+
readonly OrganizationRoleUpdated: "organization_role.updated";
|
|
7725
|
+
readonly PermissionCreated: "permission.created";
|
|
7726
|
+
readonly PermissionDeleted: "permission.deleted";
|
|
7727
|
+
readonly PermissionUpdated: "permission.updated";
|
|
7728
|
+
readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
|
|
7729
|
+
readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
|
|
7730
|
+
readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
|
|
7731
|
+
readonly SessionCreated: "session.created";
|
|
7732
|
+
readonly SessionRevoked: "session.revoked";
|
|
7733
|
+
readonly WaitlistUserApproved: "waitlist_user.approved";
|
|
7734
|
+
readonly WaitlistUserCreated: "waitlist_user.created";
|
|
7735
|
+
readonly WaitlistUserDenied: "waitlist_user.denied";
|
|
7736
|
+
};
|
|
7737
|
+
type UpdateWebhookEndpointEvents = (typeof UpdateWebhookEndpointEvents)[keyof typeof UpdateWebhookEndpointEvents];
|
|
7738
|
+
//#endregion
|
|
7739
|
+
//#region src/webhooks/interfaces/update-webhook-endpoint-options.interface.d.ts
|
|
7740
|
+
interface UpdateWebhookEndpointOptions {
|
|
7741
|
+
/** Unique identifier of the Webhook Endpoint. */
|
|
7742
|
+
id: string;
|
|
7743
|
+
/** The HTTPS URL where webhooks will be sent. */
|
|
7744
|
+
endpointUrl?: string;
|
|
7745
|
+
/** Whether the Webhook Endpoint is enabled or disabled. */
|
|
7746
|
+
status?: UpdateWebhookEndpointStatus;
|
|
7747
|
+
/** The events that the Webhook Endpoint is subscribed to. */
|
|
7748
|
+
events?: UpdateWebhookEndpointEvents[];
|
|
7749
|
+
}
|
|
7750
|
+
//#endregion
|
|
7751
|
+
//#region src/webhooks/interfaces/delete-webhook-endpoint-options.interface.d.ts
|
|
7752
|
+
interface DeleteWebhookEndpointOptions {
|
|
7753
|
+
/** Unique identifier of the Webhook Endpoint. */
|
|
7754
|
+
id: string;
|
|
7755
|
+
}
|
|
7756
|
+
//#endregion
|
|
7757
|
+
//#region src/webhooks/interfaces/webhook-endpoint-status.interface.d.ts
|
|
7758
|
+
declare const WebhookEndpointStatus: {
|
|
7759
|
+
readonly Enabled: "enabled";
|
|
7760
|
+
readonly Disabled: "disabled";
|
|
7761
|
+
};
|
|
7762
|
+
type WebhookEndpointStatus = (typeof WebhookEndpointStatus)[keyof typeof WebhookEndpointStatus];
|
|
7763
|
+
//#endregion
|
|
7764
|
+
//#region src/webhooks/interfaces/webhook-endpoint.interface.d.ts
|
|
7765
|
+
interface WebhookEndpoint {
|
|
7766
|
+
/** Distinguishes the Webhook Endpoint object. */
|
|
7767
|
+
object: 'webhook_endpoint';
|
|
7768
|
+
/** Unique identifier of the Webhook Endpoint. */
|
|
7769
|
+
id: string;
|
|
7770
|
+
/** The URL to which webhooks are sent. */
|
|
7771
|
+
endpointUrl: string;
|
|
7772
|
+
/** The secret used to sign webhook payloads. */
|
|
7773
|
+
secret: string;
|
|
7774
|
+
/** Whether the Webhook Endpoint is enabled or disabled. */
|
|
7775
|
+
status: WebhookEndpointStatus;
|
|
7776
|
+
/** The events that the Webhook Endpoint is subscribed to. */
|
|
7777
|
+
events: string[];
|
|
7778
|
+
/** An ISO 8601 timestamp. */
|
|
7779
|
+
createdAt: Date;
|
|
7780
|
+
/** An ISO 8601 timestamp. */
|
|
7781
|
+
updatedAt: Date;
|
|
7782
|
+
}
|
|
7783
|
+
interface WebhookEndpointResponse {
|
|
7784
|
+
object: 'webhook_endpoint';
|
|
7785
|
+
id: string;
|
|
7786
|
+
endpoint_url: string;
|
|
7787
|
+
secret: string;
|
|
7788
|
+
status: WebhookEndpointStatus;
|
|
7789
|
+
events: string[];
|
|
7790
|
+
created_at: string;
|
|
7791
|
+
updated_at: string;
|
|
7792
|
+
}
|
|
7793
|
+
//#endregion
|
|
7794
|
+
//#region src/webhooks/webhooks.d.ts
|
|
7795
|
+
declare class Webhooks {
|
|
7796
|
+
private readonly workos;
|
|
7797
|
+
constructor(workos: WorkOS);
|
|
7798
|
+
/**
|
|
7799
|
+
* List Webhook Endpoints
|
|
7800
|
+
*
|
|
7801
|
+
* Get a list of all of your existing webhook endpoints.
|
|
7802
|
+
* @param options - Pagination and filter options.
|
|
7803
|
+
* @returns {Promise<AutoPaginatable<WebhookEndpoint, PaginationOptions>>}
|
|
6183
7804
|
*/
|
|
6184
|
-
|
|
7805
|
+
listWebhookEndpoints(options?: ListWebhookEndpointsOptions): Promise<AutoPaginatable<WebhookEndpoint, PaginationOptions>>;
|
|
6185
7806
|
/**
|
|
6186
|
-
*
|
|
6187
|
-
*
|
|
6188
|
-
* Returns all permissions the organization membership effectively has on a resource, including permissions inherited through roles assigned to ancestor resources.
|
|
6189
|
-
* @param organizationMembershipId - The ID of the organization membership.
|
|
6190
|
-
*
|
|
6191
|
-
* @example
|
|
6192
|
-
* "om_01HXYZ123456789ABCDEFGHIJ"
|
|
6193
|
-
*
|
|
6194
|
-
* @param resourceId - The ID of the authorization resource.
|
|
7807
|
+
* Create a Webhook Endpoint
|
|
6195
7808
|
*
|
|
6196
|
-
*
|
|
6197
|
-
*
|
|
7809
|
+
* Create a new webhook endpoint to receive event notifications.
|
|
7810
|
+
* @param options - Object containing endpointUrl, events.
|
|
7811
|
+
* @param options.endpointUrl - The HTTPS URL where webhooks will be sent.
|
|
7812
|
+
* @example "https://example.com/webhooks"
|
|
7813
|
+
* @param options.events - The events that the Webhook Endpoint is subscribed to.
|
|
7814
|
+
* @example ["user.created","dsync.user.created"]
|
|
7815
|
+
* @returns {Promise<WebhookEndpoint>}
|
|
7816
|
+
* @throws {ConflictException} 409
|
|
7817
|
+
* @throws {UnprocessableEntityException} 422
|
|
7818
|
+
*/
|
|
7819
|
+
createWebhookEndpoint(options: CreateWebhookEndpointOptions): Promise<WebhookEndpoint>;
|
|
7820
|
+
/**
|
|
7821
|
+
* Update a Webhook Endpoint
|
|
6198
7822
|
*
|
|
6199
|
-
*
|
|
6200
|
-
* @
|
|
6201
|
-
* @
|
|
7823
|
+
* Update the properties of an existing webhook endpoint.
|
|
7824
|
+
* @param options - The request body.
|
|
7825
|
+
* @param options.id - Unique identifier of the Webhook Endpoint.
|
|
7826
|
+
* @example "we_0123456789"
|
|
7827
|
+
* @param options.endpointUrl - The HTTPS URL where webhooks will be sent.
|
|
7828
|
+
* @example "https://example.com/webhooks"
|
|
7829
|
+
* @param options.status - Whether the Webhook Endpoint is enabled or disabled.
|
|
7830
|
+
* @example "enabled"
|
|
7831
|
+
* @param options.events - The events that the Webhook Endpoint is subscribed to.
|
|
7832
|
+
* @example ["user.created","dsync.user.created"]
|
|
7833
|
+
* @returns {Promise<WebhookEndpoint>}
|
|
6202
7834
|
* @throws {NotFoundException} 404
|
|
7835
|
+
* @throws {ConflictException} 409
|
|
6203
7836
|
* @throws {UnprocessableEntityException} 422
|
|
6204
7837
|
*/
|
|
6205
|
-
|
|
7838
|
+
updateWebhookEndpoint(options: UpdateWebhookEndpointOptions): Promise<WebhookEndpoint>;
|
|
6206
7839
|
/**
|
|
6207
|
-
*
|
|
7840
|
+
* Delete a Webhook Endpoint
|
|
6208
7841
|
*
|
|
6209
|
-
*
|
|
6210
|
-
* @param options -
|
|
6211
|
-
* @
|
|
6212
|
-
* @
|
|
7842
|
+
* Delete an existing webhook endpoint.
|
|
7843
|
+
* @param options - The request options.
|
|
7844
|
+
* @param options.id - Unique identifier of the Webhook Endpoint.
|
|
7845
|
+
* @example "we_0123456789"
|
|
7846
|
+
* @returns {Promise<void>}
|
|
6213
7847
|
* @throws {NotFoundException} 404
|
|
6214
|
-
* @throws {UnprocessableEntityException} 422
|
|
6215
7848
|
*/
|
|
6216
|
-
|
|
7849
|
+
deleteWebhookEndpoint(options: DeleteWebhookEndpointOptions): Promise<void>;
|
|
7850
|
+
private _signatureProvider?;
|
|
7851
|
+
private get signatureProvider();
|
|
7852
|
+
get verifyHeader(): ({
|
|
7853
|
+
payload,
|
|
7854
|
+
sigHeader,
|
|
7855
|
+
secret,
|
|
7856
|
+
tolerance
|
|
7857
|
+
}: {
|
|
7858
|
+
payload: WebhookPayload;
|
|
7859
|
+
sigHeader: string;
|
|
7860
|
+
secret: string;
|
|
7861
|
+
tolerance?: number;
|
|
7862
|
+
}) => Promise<boolean>;
|
|
7863
|
+
get computeSignature(): (timestamp: any, payload: WebhookPayload, secret: string) => Promise<string>;
|
|
7864
|
+
get getTimestampAndSignatureHash(): (sigHeader: string) => [string, string];
|
|
7865
|
+
constructEvent({
|
|
7866
|
+
payload,
|
|
7867
|
+
sigHeader,
|
|
7868
|
+
secret,
|
|
7869
|
+
tolerance
|
|
7870
|
+
}: {
|
|
7871
|
+
payload: WebhookPayload;
|
|
7872
|
+
sigHeader: string;
|
|
7873
|
+
secret: string;
|
|
7874
|
+
tolerance?: number;
|
|
7875
|
+
}): Promise<Event>;
|
|
7876
|
+
private parseVerifiedPayload;
|
|
6217
7877
|
}
|
|
6218
7878
|
//#endregion
|
|
6219
7879
|
//#region src/common/exceptions/api-key-required.exception.d.ts
|
|
@@ -6539,216 +8199,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
|
|
|
6539
8199
|
declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
|
|
6540
8200
|
declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
|
|
6541
8201
|
//#endregion
|
|
6542
|
-
//#region src/index.worker.d.ts
|
|
6543
|
-
|
|
6544
|
-
/** @override */
|
|
6545
|
-
createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient;
|
|
6546
|
-
/** @override */
|
|
6547
|
-
createWebhookClient(): Webhooks;
|
|
6548
|
-
getCryptoProvider(): CryptoProvider;
|
|
6549
|
-
/** @override */
|
|
6550
|
-
createActionsClient(): Actions;
|
|
6551
|
-
/** @override */
|
|
6552
|
-
emitWarning(warning: string): void;
|
|
6553
|
-
}
|
|
6554
|
-
//#endregion
|
|
6555
|
-
//#region src/vault/interfaces/key/create-data-key.interface.d.ts
|
|
6556
|
-
interface CreateDataKeyOptions {
|
|
6557
|
-
context: KeyContext;
|
|
6558
|
-
}
|
|
6559
|
-
interface CreateDataKeyResponse {
|
|
6560
|
-
context: KeyContext;
|
|
6561
|
-
data_key: string;
|
|
6562
|
-
encrypted_keys: string;
|
|
6563
|
-
id: string;
|
|
6564
|
-
}
|
|
6565
|
-
//#endregion
|
|
6566
|
-
//#region src/vault/interfaces/key/decrypt-data-key.interface.d.ts
|
|
6567
|
-
interface DecryptDataKeyOptions {
|
|
6568
|
-
keys: string;
|
|
6569
|
-
}
|
|
6570
|
-
interface DecryptDataKeyResponse {
|
|
6571
|
-
data_key: string;
|
|
6572
|
-
id: string;
|
|
6573
|
-
}
|
|
6574
|
-
//#endregion
|
|
6575
|
-
//#region src/vault/interfaces/object/create-object.interface.d.ts
|
|
6576
|
-
interface CreateObjectEntity {
|
|
6577
|
-
name: string;
|
|
6578
|
-
value: string;
|
|
6579
|
-
key_context: KeyContext;
|
|
6580
|
-
}
|
|
6581
|
-
interface CreateObjectOptions {
|
|
6582
|
-
name: string;
|
|
6583
|
-
value: string;
|
|
6584
|
-
context: KeyContext;
|
|
6585
|
-
}
|
|
6586
|
-
//#endregion
|
|
6587
|
-
//#region src/vault/interfaces/object/delete-object.interface.d.ts
|
|
6588
|
-
interface DeleteObjectOptions {
|
|
6589
|
-
id: string;
|
|
6590
|
-
}
|
|
6591
|
-
//#endregion
|
|
6592
|
-
//#region src/vault/interfaces/object.interface.d.ts
|
|
6593
|
-
interface ObjectDigest {
|
|
6594
|
-
id: string;
|
|
6595
|
-
name: string;
|
|
6596
|
-
updatedAt: Date;
|
|
6597
|
-
}
|
|
6598
|
-
interface ObjectUpdateBy {
|
|
6599
|
-
id: string;
|
|
6600
|
-
name: string;
|
|
6601
|
-
}
|
|
6602
|
-
interface ObjectMetadata {
|
|
6603
|
-
context: KeyContext;
|
|
6604
|
-
environmentId: string;
|
|
6605
|
-
id: string;
|
|
6606
|
-
keyId: string;
|
|
6607
|
-
updatedAt: Date;
|
|
6608
|
-
updatedBy: ObjectUpdateBy;
|
|
6609
|
-
versionId: string;
|
|
6610
|
-
}
|
|
6611
|
-
interface VaultObject {
|
|
6612
|
-
id: string;
|
|
6613
|
-
metadata: ObjectMetadata;
|
|
6614
|
-
name: string;
|
|
6615
|
-
value?: string;
|
|
6616
|
-
}
|
|
6617
|
-
interface ObjectVersion {
|
|
6618
|
-
createdAt: Date;
|
|
6619
|
-
currentVersion: boolean;
|
|
6620
|
-
id: string;
|
|
6621
|
-
}
|
|
6622
|
-
//#endregion
|
|
6623
|
-
//#region src/vault/interfaces/object/read-object.interface.d.ts
|
|
6624
|
-
interface ReadObjectOptions {
|
|
6625
|
-
id: string;
|
|
6626
|
-
}
|
|
6627
|
-
interface ReadObjectMetadataResponse {
|
|
6628
|
-
context: KeyContext;
|
|
6629
|
-
environment_id: string;
|
|
6630
|
-
id: string;
|
|
6631
|
-
key_id: string;
|
|
6632
|
-
updated_at: string;
|
|
6633
|
-
updated_by: ObjectUpdateBy;
|
|
6634
|
-
version_id: string;
|
|
6635
|
-
}
|
|
6636
|
-
interface ReadObjectResponse {
|
|
6637
|
-
id: string;
|
|
6638
|
-
metadata: ReadObjectMetadataResponse;
|
|
6639
|
-
name: string;
|
|
6640
|
-
value?: string;
|
|
6641
|
-
}
|
|
6642
|
-
//#endregion
|
|
6643
|
-
//#region src/vault/interfaces/object/update-object.interface.d.ts
|
|
6644
|
-
interface UpdateObjectEntity {
|
|
6645
|
-
value: string;
|
|
6646
|
-
version_check?: string;
|
|
6647
|
-
}
|
|
6648
|
-
interface UpdateObjectOptions {
|
|
6649
|
-
id: string;
|
|
6650
|
-
value: string;
|
|
6651
|
-
versionCheck?: string;
|
|
6652
|
-
}
|
|
6653
|
-
//#endregion
|
|
6654
|
-
//#region src/vault/vault.d.ts
|
|
6655
|
-
declare class Vault {
|
|
6656
|
-
private readonly workos;
|
|
6657
|
-
private cryptoProvider;
|
|
6658
|
-
constructor(workos: WorkOS);
|
|
6659
|
-
private decode;
|
|
6660
|
-
createObject(options: CreateObjectOptions): Promise<ObjectMetadata>;
|
|
6661
|
-
listObjects(options?: PaginationOptions | undefined): Promise<List<ObjectDigest>>;
|
|
6662
|
-
listObjectVersions(options: ReadObjectOptions): Promise<ObjectVersion[]>;
|
|
6663
|
-
readObject(options: ReadObjectOptions): Promise<VaultObject>;
|
|
6664
|
-
readObjectByName(name: string): Promise<VaultObject>;
|
|
6665
|
-
describeObject(options: ReadObjectOptions): Promise<VaultObject>;
|
|
6666
|
-
updateObject(options: UpdateObjectOptions): Promise<VaultObject>;
|
|
6667
|
-
deleteObject(options: DeleteObjectOptions): Promise<void>;
|
|
6668
|
-
createDataKey(options: CreateDataKeyOptions): Promise<DataKeyPair>;
|
|
6669
|
-
decryptDataKey(options: DecryptDataKeyOptions): Promise<DataKey>;
|
|
6670
|
-
encrypt(data: string, context: KeyContext, associatedData?: string): Promise<string>;
|
|
6671
|
-
decrypt(encryptedData: string, associatedData?: string): Promise<string>;
|
|
6672
|
-
}
|
|
6673
|
-
//#endregion
|
|
6674
|
-
//#region src/workos.d.ts
|
|
6675
|
-
/** WorkOS REST API */
|
|
6676
|
-
declare class WorkOS {
|
|
6677
|
-
readonly baseURL: string;
|
|
6678
|
-
readonly client: HttpClient;
|
|
6679
|
-
readonly clientId?: string;
|
|
6680
|
-
readonly key?: string;
|
|
6681
|
-
readonly options: WorkOSOptions;
|
|
6682
|
-
readonly pkce: PKCE;
|
|
6683
|
-
private readonly hasApiKey;
|
|
6684
|
-
readonly actions: Actions;
|
|
6685
|
-
readonly apiKeys: ApiKeys;
|
|
6686
|
-
readonly auditLogs: AuditLogs;
|
|
6687
|
-
readonly authorization: Authorization;
|
|
6688
|
-
readonly directorySync: DirectorySync;
|
|
6689
|
-
readonly events: Events;
|
|
6690
|
-
readonly featureFlags: FeatureFlags;
|
|
6691
|
-
readonly groups: Groups;
|
|
6692
|
-
readonly multiFactorAuth: MultiFactorAuth;
|
|
6693
|
-
readonly organizations: Organizations;
|
|
6694
|
-
readonly organizationDomains: OrganizationDomains;
|
|
6695
|
-
readonly passwordless: Passwordless;
|
|
6696
|
-
readonly pipes: Pipes;
|
|
6697
|
-
readonly adminPortal: AdminPortal;
|
|
6698
|
-
readonly sso: SSO;
|
|
6699
|
-
readonly userManagement: UserManagement;
|
|
6700
|
-
readonly vault: Vault;
|
|
6701
|
-
readonly webhooks: Webhooks;
|
|
6702
|
-
readonly widgets: Widgets;
|
|
6703
|
-
/**
|
|
6704
|
-
* Create a new WorkOS client.
|
|
6705
|
-
*
|
|
6706
|
-
* @param keyOrOptions - API key string, or options object
|
|
6707
|
-
* @param maybeOptions - Options when first argument is API key
|
|
6708
|
-
*
|
|
6709
|
-
* @example
|
|
6710
|
-
* // Server-side with API key (string)
|
|
6711
|
-
* const workos = new WorkOS('sk_...');
|
|
6712
|
-
*
|
|
6713
|
-
* @example
|
|
6714
|
-
* // Server-side with API key (object)
|
|
6715
|
-
* const workos = new WorkOS({ apiKey: 'sk_...', clientId: 'client_...' });
|
|
6716
|
-
*
|
|
6717
|
-
* @example
|
|
6718
|
-
* // PKCE/public client (no API key)
|
|
6719
|
-
* const workos = new WorkOS({ clientId: 'client_...' });
|
|
6720
|
-
*/
|
|
6721
|
-
constructor(keyOrOptions?: string | WorkOSOptions, maybeOptions?: WorkOSOptions);
|
|
6722
|
-
private createUserAgent;
|
|
6723
|
-
createWebhookClient(): Webhooks;
|
|
6724
|
-
createActionsClient(): Actions;
|
|
6725
|
-
getCryptoProvider(): CryptoProvider;
|
|
6726
|
-
createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient;
|
|
6727
|
-
get version(): string;
|
|
6728
|
-
/**
|
|
6729
|
-
* Require API key for methods that need it.
|
|
6730
|
-
* @param methodName - Name of the method requiring API key (for error message)
|
|
6731
|
-
* @throws ApiKeyRequiredException if no API key was provided
|
|
6732
|
-
*/
|
|
6733
|
-
requireApiKey(methodName: string): void;
|
|
6734
|
-
post<Result = any, Entity = any>(path: string, entity: Entity, options?: PostOptions): Promise<{
|
|
6735
|
-
data: Result;
|
|
6736
|
-
}>;
|
|
6737
|
-
get<Result = any>(path: string, options?: GetOptions): Promise<{
|
|
6738
|
-
data: Result;
|
|
6739
|
-
}>;
|
|
6740
|
-
put<Result = any, Entity = any>(path: string, entity: Entity, options?: PutOptions): Promise<{
|
|
6741
|
-
data: Result;
|
|
6742
|
-
}>;
|
|
6743
|
-
patch<Result = any, Entity = any>(path: string, entity: Entity, options?: PatchOptions): Promise<{
|
|
6744
|
-
data: Result;
|
|
6745
|
-
}>;
|
|
6746
|
-
delete(path: string, query?: any): Promise<void>;
|
|
6747
|
-
deleteWithBody<Entity = any>(path: string, entity: Entity): Promise<void>;
|
|
6748
|
-
emitWarning(warning: string): void;
|
|
6749
|
-
private handleParseError;
|
|
6750
|
-
private handleHttpError;
|
|
6751
|
-
}
|
|
6752
|
-
//#endregion
|
|
6753
|
-
export { CreateAuditLogSchemaRequestOptions as $, FlagPollEntry as $a, ConnectionDomain as $c, VaultDekDecryptedEventResponse as $i, DeleteAuthorizationResourceByExternalIdOptions as $l, DsyncUserCreatedEvent as $n, MagicAuth as $o, OrganizationDomainVerifiedEvent as $r, AuthenticationEventSsoResponse as $s, List as $t, HttpClientResponseInterface as $u, IntentOptions as A, VaultNamesListedEventData as Aa, AuthenticateWithEmailVerificationOptions as Ac, RoleUpdatedEventResponse as Ai, SerializedAssignRoleOptions as Al, AuthenticationSSOFailedEventResponse as An, UpdateUserOptions as Ao, GroupUpdatedEventResponse as Ar, FactorWithSecrets$1 as As, UserRegistrationActionResponseData as At, UpdateEnvironmentRoleOptions as Au, NoApiKeyProvidedException as B, Group as Ba, SerializedAuthenticateWithOptionsBase as Bc, UserUpdatedEvent as Bi, RoleAssignmentRole as Bl, DsyncActivatedEventResponse as Bn, RevokeSessionOptions as Bo, MagicAuthCreatedEventResponse as Br, CreatePasswordResetOptions as Bs, ListOrganizationsOptions as Bt, SerializedListDirectoriesOptions as Bu, PublicUserManagement as C, VaultDekDecryptedEventResponseData as Ca, AuthenticateUserWithOrganizationSelectionCredentials as Cc, PermissionUpdatedEvent as Ci, RemoveRoleOptionsWithResourceExternalId as Cl, AuthenticationPasswordFailedEvent as Cn, CreateOrganizationDomainOptions as Co, GroupMemberAddedEvent as Cr, Invitation as Cs, AutoPaginatable as Ct, UpdateOrganizationRoleOptions as Cu, PortalLinkResponseWire as D, VaultKekCreatedEventResponseData as Da, AuthenticateWithMagicAuthOptions as Dc, RoleDeletedEvent as Di, AssignRoleOptionsWithResourceExternalId as Dl, AuthenticationRadarRiskDetectedEvent as Dn, SerializedUpdateUserPasswordOptions as Do, GroupMemberRemovedEvent as Dr, Identity as Ds, Actions as Dt, AddEnvironmentRolePermissionOptions as Du, PortalLinkResponse as E, VaultKekCreatedEventData as Ea, AuthenticateUserWithMagicAuthCredentials as Ec, RoleCreatedEventResponse as Ei, AssignRoleOptions as El, AuthenticationPasswordSucceededEventResponse as En, VerifyEmailOptions as Eo, GroupMemberEventResponseData as Er, InvitationResponse as Es, Webhooks as Et, OrganizationRole as Eu, UnauthorizedException as F, SerializedUpdateGroupOptions as Fa, AuthenticateWithCodeOptions as Fc, UnknownEvent as Fi, SerializedListRoleAssignmentsOptions as Fl, ConnectionDeactivatedEvent as Fn, SessionResponse as Fo, InvitationResentEvent as Fr, EmailVerificationEvent as Fs, UserRegistrationActionPayload as Ft, EnvironmentRoleListResponse as Fu, AuthenticationException as G, SerializedCreateGroupOptions as Ga, ProfileResponse as Gc, VaultDataCreatedEventResponse as Gi, ListResourcesForMembershipOptionsWithParentId as Gl, DsyncGroupDeletedEvent as Gn, ResendInvitationOptions as Go, OrganizationDomainCreatedEvent as Gr, SerializedCreateMagicAuthOptions as Gs, DomainData as Gt, DirectoryResponse as Gu, BadRequestException as H, GetGroupOptions as Ha, ProfileAndToken as Hc, VaultByokKeyVerificationCompletedEvent as Hi, ListMembershipsForResourceOptions as Hl, DsyncDeletedEventResponse as Hn, serializeRevokeSessionOptions as Ho, OrganizationCreatedResponse as Hr, CreateOrganizationMembershipOptions as Hs, CreateOrganizationOptions as Ht, DirectoryGroup as Hu, SignatureVerificationException as I, UpdateGroupOptions as Ia, SerializedAuthenticateWithCodeOptions as Ic, UserCreatedEvent as Ii, RoleAssignment as Il, ConnectionDeactivatedEventResponse as In, SessionStatus as Io, InvitationResentEventResponse as Ir, EmailVerificationEventResponse as Is, SerializedUpdateOrganizationOptions as It, EnvironmentRoleResponse as Iu, WorkOSErrorData as J, RuntimeClientStats as Ja, ListConnectionsOptions as Jc, VaultDataReadEvent as Ji, AuthorizationCheckOptionsWithResourceExternalId as Jl, DsyncGroupUpdatedEventResponse as Jn, RefreshSessionResponse as Jo, OrganizationDomainDeletedEventResponse as Jr, AuthenticationRadarRiskDetectedEventData as Js, WorkOSOptions as Jt, DirectoryType as Ju, isAuthenticationErrorData as K, AddGroupOrganizationMembershipOptions as Ka, OauthTokens as Kc, VaultDataDeletedEvent as Ki, SerializedListResourcesForMembershipOptions as Kl, DsyncGroupDeletedEventResponse as Kn, SerializedResendInvitationOptions as Ko, OrganizationDomainCreatedEventResponse as Kr, PKCEAuthorizationURLResult as Ks, DomainDataState as Kt, DirectoryState as Ku, RateLimitExceededException as L, RemoveGroupOrganizationMembershipOptions as La, AuthenticateWithOptionsBase as Lc, UserCreatedEventResponse as Li, RoleAssignmentResource as Ll, ConnectionDeletedEvent as Ln, SendVerificationEmailOptions as Lo, InvitationRevokedEvent as Lr, EmailVerificationResponse as Ls, UpdateOrganizationOptions as Lt, ListDirectoryUsersOptions as Lu, SSOIntentOptions as M, DataKey as Ma, AuthenticateWithCodeAndVerifierOptions as Mc, SessionCreatedEventResponse as Mi, ListRoleAssignmentsForResourceOptions as Ml, AuthenticationSSOSucceededEventResponse as Mn, UpdateOrganizationMembershipOptions as Mo, InvitationAcceptedEventResponse as Mr, EnrollAuthFactorOptions as Ms, ActionPayload as Mt, SerializedCreateEnvironmentRoleOptions as Mu, SSOIntentOptionsResponse as N, DataKeyPair as Na, SerializedAuthenticateWithCodeAndVerifierOptions as Nc, SessionRevokedEvent as Ni, SerializedListRoleAssignmentsForResourceOptions as Nl, ConnectionActivatedEvent as Nn, AuthMethod as No, InvitationCreatedEvent as Nr, SerializedEnrollUserInMfaFactorOptions as Ns, UserData as Nt, EnvironmentRole as Nu, GenerateLink as O, VaultMetadataReadEventData as Oa, SerializedAuthenticateWithMagicAuthOptions as Oc, RoleDeletedEventResponse as Oi, AssignRoleOptionsWithResourceId as Ol, AuthenticationRadarRiskDetectedEventResponse as On, UpdateUserPasswordOptions as Oo, GroupMemberRemovedEventResponse as Or, Factor$1 as Os, AuthenticationActionResponseData as Ot, SetEnvironmentRolePermissionsOptions as Ou, UnprocessableEntityException as P, KeyContext as Pa, AuthenticateUserWithCodeCredentials as Pc, SessionRevokedEventResponse as Pi, ListRoleAssignmentsOptions as Pl, ConnectionActivatedEventResponse as Pn, Session as Po, InvitationCreatedEventResponse as Pr, EmailVerification as Ps, UserDataPayload as Pt, EnvironmentRoleList as Pu, CreateAuditLogSchemaOptions as Q, ListFeatureFlagsOptions as Qa, Connection as Qc, VaultDekDecryptedEvent as Qi, DeleteAuthorizationResourceOptions as Ql, DsyncGroupUserRemovedEventResponse as Qn, PasswordResetResponse as Qo, OrganizationDomainVerificationFailedEventResponse as Qr, AuthenticationEventSso as Qs, PatchOptions as Qt, HttpClientInterface as Qu, OauthException as R, ListGroupsOptions as Ra, AuthenticateWithSessionOptions as Rc, UserDeletedEvent as Ri, RoleAssignmentResourceResponse as Rl, ConnectionDeletedEventResponse as Rn, SendInvitationOptions as Ro, InvitationRevokedEventResponse as Rr, CreateUserOptions as Rs, Organization as Rt, ListDirectoryGroupsOptions as Ru, PublicSSO as S, VaultDekDecryptedEventData as Sa, SerializedAuthenticateWithPasswordOptions as Sc, PermissionDeletedEventResponse as Si, RemoveRoleOptions as Sl, AuthenticationPasskeySucceededEventResponse as Sn, OrganizationDomainVerificationStrategy as So, GroupDeletedEventResponse as Sr, ListAuthFactorsOptions as Ss, SerializedListEventOptions as St, SerializedUpdateOrganizationRoleOptions as Su, createWorkOS as T, VaultDekReadEventResponseData as Ta, SerializedAuthenticateWithOrganizationSelectionOptions as Tc, RoleCreatedEvent as Ti, SerializedRemoveRoleOptions as Tl, AuthenticationPasswordSucceededEvent as Tn, SerializedVerifyEmailOptions as To, GroupMemberEventData as Tr, InvitationEventResponse as Ts, PKCEPair as Tt, SerializedCreateOrganizationRoleOptions as Tu, AuthenticationErrorCode as U, DeleteGroupOptions as Ua, ProfileAndTokenResponse as Uc, VaultByokKeyVerificationCompletedEventResponse as Ui, ListResourcesForMembershipOptions as Ul, DsyncGroupCreatedEvent as Un, ResetPasswordOptions as Uo, OrganizationDeletedEvent as Ur, SerializedCreateOrganizationMembershipOptions as Us, CreateOrganizationRequestOptions as Ut, DirectoryGroupResponse as Uu, ConflictException as V, GroupResponse as Va, WithResolvedClientId as Vc, UserUpdatedEventResponse as Vi, ListMembershipsForResourceByExternalIdOptions as Vl, DsyncDeletedEvent as Vn, SerializedRevokeSessionOptions as Vo, OrganizationCreatedEvent as Vr, SerializedCreatePasswordResetOptions as Vs, ListOrganizationFeatureFlagsOptions as Vt, PaginationOptions as Vu, AuthenticationErrorData as W, CreateGroupOptions as Wa, Profile as Wc, VaultDataCreatedEvent as Wi, ListResourcesForMembershipOptionsWithParentExternalId as Wl, DsyncGroupCreatedEventResponse as Wn, SerializedResetPasswordOptions as Wo, OrganizationDeletedResponse as Wr, CreateMagicAuthOptions as Ws, SerializedCreateOrganizationOptions as Wt, Directory as Wu, FeatureFlagsRuntimeClient as X, RuntimeClientOptions as Xa, GetProfileAndTokenOptions as Xc, VaultDataUpdatedEvent as Xi, AuthorizationCheckResult as Xl, DsyncGroupUserAddedEventResponse as Xn, PasswordResetEvent as Xo, OrganizationDomainUpdatedEventResponse as Xr, AuthenticationEvent as Xs, PutOptions as Xt, EventDirectoryResponse as Xu, ApiKeyRequiredException as Y, RuntimeClientLogger as Ya, SerializedListConnectionsOptions as Yc, VaultDataReadEventResponse as Yi, AuthorizationCheckOptionsWithResourceId as Yl, DsyncGroupUserAddedEvent as Yn, PasswordReset as Yo, OrganizationDomainUpdatedEvent as Yr, AuthenticationRadarRiskDetectedEventResponseData as Ys, UnprocessableEntityError as Yt, EventDirectory as Yu, CookieSession as Z, RemoveFlagTargetOptions as Za, GetProfileOptions as Zc, VaultDataUpdatedEventResponse as Zi, SerializedAuthorizationCheckOptions as Zl, DsyncGroupUserRemovedEvent as Zn, PasswordResetEventResponse as Zo, OrganizationDomainVerificationFailedEvent as Zr, AuthenticationEventResponse as Zs, PostOptions as Zt, HttpClient as Zu, CreateDataKeyOptions as _, VaultDataDeletedEventResponseData as _a, AuthenticateUserWithRefreshTokenCredentials as _c, PasswordResetSucceededEvent as _i, RoleResponse as _l, AuthenticationOAuthSucceededEvent as _n, OrganizationDomainVerificationFailed as _o, FlagUpdatedEvent as _r, OrganizationMembershipResponse as _s, CreatePasswordlessSessionOptions as _t, Permission as _u, ReadObjectOptions as a, VaultMetadataReadEventResponse as aa, AuthenticateWithSessionCookieFailureReason as ac, OrganizationMembershipUpdated as ai, DirectoryUser as al, ApiKeyRevokedEvent as an, AddFlagTargetOptions as ao, EmailVerificationCreatedEvent as ar, ListUsersOptions as as, CreateAuditLogEventRequestOptions as at, AuthorizationResourceResponse as au, ConfidentialClientOptions as b, VaultDataUpdatedEventData as ba, AuthenticateUserWithPasswordCredentials as bc, PermissionCreatedEventResponse as bi, RemoveRoleAssignmentOptions as bl, AuthenticationPasskeyFailedEventResponse as bn, OrganizationDomainResponse as bo, GroupCreatedEventResponse as br, SerializedListInvitationsOptions as bs, PasswordlessSessionResponse as bt, AddOrganizationRolePermissionOptions as bu, ObjectMetadata as c, VaultActor as ca, SessionCookieData as cc, OrganizationRoleCreatedEventResponse as ci, DirectoryUserWithGroupsResponse as cl, AuthenticationEmailVerificationSucceededEventResponse as cn, ValidateApiKeyResponse as co, EventBase as cr, ListSessionsOptions as cs, AuditLogSchema as ct, CreateOptionsWithParentResourceId as cu, VaultObject as d, VaultByokKeyProvider as da, User as dc, OrganizationRoleUpdatedEvent as di, OrganizationRoleEventResponse as dl, AuthenticationMagicAuthSucceededEvent as dn, SerializedCreatedApiKey as do, FlagCreatedEvent as dr, SerializedListOrganizationMembershipsOptions as ds, AuditLogTargetSchema as dt, UpdateAuthorizationResourceOptions as du, VaultDekReadEvent as ea, AuthenticateUserWithTotpCredentials as ec, RequestHeaders as ed, OrganizationDomainVerifiedEventResponse as ei, ConnectionResponse as el, ListResponse as en, FlagPollResponse as eo, DsyncUserCreatedEventResponse as er, MagicAuthEvent as es, CreateAuditLogSchemaResponse as et, UpdateAuthorizationResourceByExternalIdOptions as eu, DeleteObjectOptions as f, VaultByokKeyVerificationCompletedEventData as fa, UserResponse as fc, OrganizationRoleUpdatedEventResponse as fi, OrganizationRoleResponse as fl, AuthenticationMagicAuthSucceededEventResponse as fn, CreateOrganizationApiKeyOptions as fo, FlagCreatedEventResponse as fr, AuthorizationOrganizationMembership as fs, AuditLogExport as ft, ListPermissionsOptions as fu, DecryptDataKeyResponse as g, VaultDataDeletedEventData as ga, SerializedAuthenticateWithRefreshTokenPublicClientOptions as gc, PasswordResetCreatedEventResponse as gi, RoleList as gl, AuthenticationOAuthFailedEventResponse as gn, SerializedApiKey as go, FlagRuleUpdatedEventResponse as gr, OrganizationMembership as gs, SendSessionResponse as gt, SerializedCreatePermissionOptions as gu, DecryptDataKeyOptions as h, VaultDataCreatedEventResponseData as ha, AuthenticateWithRefreshTokenPublicClientOptions as hc, PasswordResetCreatedEvent as hi, RoleEventResponse as hl, AuthenticationOAuthFailedEvent as hn, ApiKey as ho, FlagRuleUpdatedEvent as hr, BaseOrganizationMembershipResponse as hs, SerializedAuditLogExportOptions as ht, CreatePermissionOptions as hu, ReadObjectMetadataResponse as i, VaultMetadataReadEvent as ia, AuthenticateWithSessionCookieFailedResponse as ic, CryptoProvider as id, OrganizationMembershipDeletedResponse as ii, DefaultCustomAttributes as il, ApiKeyCreatedEventResponse as in, EvaluationContext as io, DsyncUserUpdatedEventResponse as ir, Locale as is, CreateAuditLogEventOptions as it, AuthorizationResource as iu, IntentOptionsResponse as j, VaultNamesListedEventResponseData as ja, SerializedAuthenticateWithEmailVerificationOptions as jc, SessionCreatedEvent as ji, ListRoleAssignmentsForResourceByExternalIdOptions as jl, AuthenticationSSOSucceededEvent as jn, SerializedUpdateOrganizationMembershipOptions as jo, InvitationAcceptedEvent as jr, FactorWithSecretsResponse as js, ActionContext as jt, CreateEnvironmentRoleOptions as ju, GenerateLinkResponse as k, VaultMetadataReadEventResponseData as ka, AuthenticateUserWithEmailVerificationCredentials as kc, RoleUpdatedEvent as ki, BaseAssignRoleOptions as kl, AuthenticationSSOFailedEvent as kn, SerializedUpdateUserOptions as ko, GroupUpdatedEvent as kr, FactorResponse as ks, ResponsePayload as kt, SerializedUpdateEnvironmentRoleOptions as ku, ObjectUpdateBy as l, VaultActorResponse as la, AuthenticationResponse as lc, OrganizationRoleDeletedEvent as li, ListOrganizationRolesResponse as ll, AuthenticationMagicAuthFailedEvent as ln, ListOrganizationApiKeysOptions as lo, EventName as lr, SerializedListSessionsOptions as ls, AuditLogSchemaMetadata as lt, SerializedCreateAuthorizationResourceOptions as lu, CreateObjectOptions as m, VaultDataCreatedEventData as ma, ImpersonatorResponse as mc, OrganizationUpdatedResponse as mi, RoleEvent as ml, AuthenticationMfaSucceededEventResponse as mn, SerializedCreateOrganizationApiKeyOptions as mo, FlagDeletedEventResponse as mr, BaseOrganizationMembership as ms, AuditLogExportOptions as mt, UpdatePermissionOptions as mu, UpdateObjectEntity as n, VaultKekCreatedEvent as na, SerializedAuthenticateWithTotpOptions as nc, ResponseHeaderValue as nd, OrganizationMembershipCreatedResponse as ni, SSOAuthorizationURLOptions as nl, GenerateLinkIntent as nn, FeatureFlag as no, DsyncUserDeletedEventResponse as nr, MagicAuthResponse as ns, AuditLogActor as nt, ListAuthorizationResourcesOptions as nu, ReadObjectResponse as o, VaultNamesListedEvent as oa, AuthenticateWithSessionCookieOptions as oc, OrganizationMembershipUpdatedResponse as oi, DirectoryUserResponse as ol, ApiKeyRevokedEventResponse as on, SerializedValidateApiKeyResponse as oo, EmailVerificationCreatedEventResponse as or, SerializedListUsersOptions as os, SerializedCreateAuditLogEventOptions as ot, CreateAuthorizationResourceOptions as ou, CreateObjectEntity as p, VaultByokKeyVerificationCompletedEventResponseData as pa, Impersonator as pc, OrganizationUpdatedEvent as pi, Role as pl, AuthenticationMfaSucceededEvent as pn, CreateOrganizationApiKeyRequestOptions as po, FlagDeletedEvent as pr, AuthorizationOrganizationMembershipResponse as ps, AuditLogExportResponse as pt, SerializedUpdatePermissionOptions as pu, GenericServerException as q, SerializedAddGroupOrganizationMembershipOptions as qa, OauthTokensResponse as qc, VaultDataDeletedEventResponse as qi, AuthorizationCheckOptions as ql, DsyncGroupUpdatedEvent as qn, RefreshSessionFailureReason as qo, OrganizationDomainDeletedEvent as qr, UserManagementAuthorizationURLOptions as qs, WorkOSResponseError as qt, DirectoryStateResponse as qu, UpdateObjectOptions as r, VaultKekCreatedEventResponse as ra, AccessToken$1 as rc, ResponseHeaders as rd, OrganizationMembershipDeleted as ri, SSOPKCEAuthorizationURLResult as rl, ApiKeyCreatedEvent as rn, FeatureFlagResponse as ro, DsyncUserUpdatedEvent as rr, LogoutURLOptions as rs, AuditLogTarget as rt, SerializedListAuthorizationResourcesOptions as ru, ObjectDigest as s, VaultNamesListedEventResponse as sa, AuthenticateWithSessionCookieSuccessResponse as sc, OrganizationRoleCreatedEvent as si, DirectoryUserWithGroups as sl, AuthenticationEmailVerificationSucceededEvent as sn, ValidateApiKeyOptions as so, Event as sr, ListUserFeatureFlagsOptions as ss, AuditLogActorSchema as st, CreateOptionsWithParentExternalId as su, WorkOS as t, VaultDekReadEventResponse as ta, AuthenticateWithTotpOptions as tc, RequestOptions as td, OrganizationMembershipCreated as ti, ConnectionType as tl, GetOptions as tn, FlagTarget as to, DsyncUserDeletedEvent as tr, MagicAuthEventResponse as ts, SerializedCreateAuditLogSchemaOptions as tt, GetAuthorizationResourceByExternalIdOptions as tu, ObjectVersion as u, VaultActorSource as ua, AuthenticationResponseResponse as uc, OrganizationRoleDeletedEventResponse as ui, OrganizationRoleEvent as ul, AuthenticationMagicAuthFailedEventResponse as un, CreatedApiKey as uo, EventResponse as ur, ListOrganizationMembershipsOptions as us, AuditLogSchemaResponse as ut, SerializedUpdateAuthorizationResourceOptions as uu, CreateDataKeyResponse as v, VaultDataReadEventData as va, AuthenticateWithRefreshTokenOptions as vc, PasswordResetSucceededEventResponse as vi, ListEffectivePermissionsByExternalIdOptions as vl, AuthenticationOAuthSucceededEventResponse as vn, OrganizationDomainVerificationFailedResponse as vo, FlagUpdatedEventResponse as vr, OrganizationMembershipStatus as vs, SerializedCreatePasswordlessSessionOptions as vt, PermissionResponse as vu, PublicWorkOS as w, VaultDekReadEventData as wa, AuthenticateWithOrganizationSelectionOptions as wc, PermissionUpdatedEventResponse as wi, RemoveRoleOptionsWithResourceId as wl, AuthenticationPasswordFailedEventResponse as wn, SerializedCreateOrganizationDomainOptions as wo, GroupMemberAddedEventResponse as wr, InvitationEvent as ws, PKCE as wt, CreateOrganizationRoleOptions as wu, PublicClientOptions as x, VaultDataUpdatedEventResponseData as xa, AuthenticateWithPasswordOptions as xc, PermissionDeletedEvent as xi, BaseRemoveRoleOptions as xl, AuthenticationPasskeySucceededEvent as xn, OrganizationDomainState as xo, GroupDeletedEvent as xr, ListGroupsForOrganizationMembershipOptions as xs, ListEventOptions as xt, SetOrganizationRolePermissionsOptions as xu, WorkOSWorker as y, VaultDataReadEventResponseData as ya, SerializedAuthenticateWithRefreshTokenOptions as yc, PermissionCreatedEvent as yi, ListEffectivePermissionsOptions as yl, AuthenticationPasskeyFailedEvent as yn, OrganizationDomain as yo, GroupCreatedEvent as yr, ListInvitationsOptions as ys, PasswordlessSession as yt, RemoveOrganizationRolePermissionOptions as yu, NotFoundException as z, ListGroupOrganizationMembershipsOptions as za, SerializedAuthenticatePublicClientBase as zc, UserDeletedEventResponse as zi, RoleAssignmentResponse as zl, DsyncActivatedEvent as zn, SerializedSendInvitationOptions as zo, MagicAuthCreatedEvent as zr, SerializedCreateUserOptions as zs, OrganizationResponse as zt, ListDirectoriesOptions as zu };
|
|
6754
|
-
//# sourceMappingURL=workos-DS8Htvr7.d.cts.map
|
|
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-awA8SmsZ.d.mts.map
|