@workos-inc/node 9.3.1 → 10.1.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.
@@ -492,7 +492,6 @@ interface ListAuthorizationResourcesOptions extends PaginationOptions {
492
492
  parentResourceId?: string;
493
493
  parentResourceTypeSlug?: string;
494
494
  parentExternalId?: string;
495
- search?: string;
496
495
  }
497
496
  interface SerializedListAuthorizationResourcesOptions extends PaginationOptions {
498
497
  organization_id?: string;
@@ -500,7 +499,6 @@ interface SerializedListAuthorizationResourcesOptions extends PaginationOptions
500
499
  parent_resource_id?: string;
501
500
  parent_resource_type_slug?: string;
502
501
  parent_external_id?: string;
503
- search?: string;
504
502
  }
505
503
  //#endregion
506
504
  //#region src/authorization/interfaces/get-authorization-resource-by-external-id-options.interface.d.ts
@@ -1022,6 +1020,8 @@ interface Profile<CustomAttributesType extends UnknownRecord> {
1022
1020
  connectionType: ConnectionType;
1023
1021
  /** The user's email address. */
1024
1022
  email: string;
1023
+ /** The user's full name. */
1024
+ name?: string;
1025
1025
  /** The user's first name. */
1026
1026
  firstName?: string;
1027
1027
  /** The user's last name. */
@@ -1046,6 +1046,7 @@ interface ProfileResponse<CustomAttributesType extends UnknownRecord> {
1046
1046
  connection_id: string;
1047
1047
  connection_type: ConnectionType;
1048
1048
  email: string;
1049
+ name?: string;
1049
1050
  first_name?: string;
1050
1051
  last_name?: string;
1051
1052
  role?: RoleResponse;
@@ -1157,6 +1158,7 @@ interface AuthenticateWithMagicAuthOptions extends AuthenticateWithOptionsBase {
1157
1158
  email: string;
1158
1159
  invitationToken?: string;
1159
1160
  linkAuthorizationCode?: string;
1161
+ radarAuthAttemptId?: string;
1160
1162
  }
1161
1163
  interface AuthenticateUserWithMagicAuthCredentials {
1162
1164
  clientSecret: string | undefined;
@@ -1167,6 +1169,7 @@ interface SerializedAuthenticateWithMagicAuthOptions extends SerializedAuthentic
1167
1169
  email: string;
1168
1170
  invitation_token?: string;
1169
1171
  link_authorization_code?: string;
1172
+ radar_auth_attempt_id?: string;
1170
1173
  }
1171
1174
  //#endregion
1172
1175
  //#region src/user-management/interfaces/authenticate-with-organization-selection.interface.d.ts
@@ -1188,6 +1191,7 @@ interface AuthenticateWithPasswordOptions extends AuthenticateWithOptionsBase {
1188
1191
  email: string;
1189
1192
  password: string;
1190
1193
  invitationToken?: string;
1194
+ radarAuthAttemptId?: string;
1191
1195
  }
1192
1196
  interface AuthenticateUserWithPasswordCredentials {
1193
1197
  clientSecret: string | undefined;
@@ -1197,6 +1201,7 @@ interface SerializedAuthenticateWithPasswordOptions extends SerializedAuthentica
1197
1201
  email: string;
1198
1202
  password: string;
1199
1203
  invitation_token?: string;
1204
+ radar_auth_attempt_id?: string;
1200
1205
  }
1201
1206
  //#endregion
1202
1207
  //#region src/user-management/interfaces/authenticate-with-refresh-token-options.interface.d.ts
@@ -1248,6 +1253,8 @@ interface User {
1248
1253
  emailVerified: boolean;
1249
1254
  /** A URL reference to an image representing the user. */
1250
1255
  profilePictureUrl: string | null;
1256
+ /** The full name of the user. */
1257
+ name: string | null;
1251
1258
  /** The first name of the user. */
1252
1259
  firstName: string | null;
1253
1260
  /** The last name of the user. */
@@ -1271,6 +1278,7 @@ interface UserResponse {
1271
1278
  email: string;
1272
1279
  email_verified: boolean;
1273
1280
  profile_picture_url: string | null;
1281
+ name: string | null;
1274
1282
  first_name: string | null;
1275
1283
  last_name: string | null;
1276
1284
  last_sign_in_at: string | null;
@@ -1280,6 +1288,12 @@ interface UserResponse {
1280
1288
  external_id?: string;
1281
1289
  metadata?: Record<string, string>;
1282
1290
  }
1291
+ interface CreateUserResponse extends User {
1292
+ radarAuthAttemptId?: string;
1293
+ }
1294
+ interface CreateUserResponseResponse extends UserResponse {
1295
+ radar_auth_attempt_id?: string;
1296
+ }
1283
1297
  //#endregion
1284
1298
  //#region src/user-management/interfaces/authentication-response.interface.d.ts
1285
1299
  type AuthenticationMethod = 'SSO' | 'Password' | 'Passkey' | 'AppleOAuth' | 'BitbucketOAuth' | 'DiscordOAuth' | 'GitHubOAuth' | 'GitLabOAuth' | 'GoogleOAuth' | 'IntuitOAuth' | 'LinkedInOAuth' | 'MicrosoftOAuth' | 'SalesforceOAuth' | 'SlackOAuth' | 'VercelMarketplaceOAuth' | 'VercelOAuth' | 'XeroOAuth' | 'MagicAuth' | 'CrossAppAuth' | 'ExternalAuth' | 'MigratedSession' | 'Impersonation';
@@ -1308,7 +1322,7 @@ interface AuthenticateWithSessionCookieOptions {
1308
1322
  sessionData: string;
1309
1323
  cookiePassword?: string;
1310
1324
  }
1311
- interface AccessToken$1 {
1325
+ interface UserManagementAccessToken {
1312
1326
  sid: string;
1313
1327
  org_id?: string;
1314
1328
  role?: string;
@@ -1396,6 +1410,64 @@ interface AuthenticationEventResponse {
1396
1410
  user_id: string | null;
1397
1411
  }
1398
1412
  //#endregion
1413
+ //#region src/multi-factor-auth/interfaces/totp.interface.d.ts
1414
+ interface Totp {
1415
+ issuer: string;
1416
+ user: string;
1417
+ }
1418
+ interface TotpWithSecrets extends Totp {
1419
+ qrCode: string;
1420
+ secret: string;
1421
+ uri: string;
1422
+ }
1423
+ interface TotpResponse {
1424
+ issuer: string;
1425
+ user: string;
1426
+ }
1427
+ interface TotpWithSecretsResponse extends TotpResponse {
1428
+ qr_code: string;
1429
+ secret: string;
1430
+ uri: string;
1431
+ }
1432
+ //#endregion
1433
+ //#region src/user-management/interfaces/authentication-factor.interface.d.ts
1434
+ interface AuthenticationFactor {
1435
+ object: 'authentication_factor';
1436
+ id: string;
1437
+ createdAt: string;
1438
+ updatedAt: string;
1439
+ type: 'totp';
1440
+ totp: Totp;
1441
+ userId: string;
1442
+ }
1443
+ interface AuthenticationFactorWithSecrets {
1444
+ object: 'authentication_factor';
1445
+ id: string;
1446
+ createdAt: string;
1447
+ updatedAt: string;
1448
+ type: 'totp';
1449
+ totp: TotpWithSecrets;
1450
+ userId: string;
1451
+ }
1452
+ interface AuthenticationFactorResponse {
1453
+ object: 'authentication_factor';
1454
+ id: string;
1455
+ created_at: string;
1456
+ updated_at: string;
1457
+ type: 'totp';
1458
+ totp: TotpResponse;
1459
+ user_id: string;
1460
+ }
1461
+ interface AuthenticationFactorWithSecretsResponse {
1462
+ object: 'authentication_factor';
1463
+ id: string;
1464
+ created_at: string;
1465
+ updated_at: string;
1466
+ type: 'totp';
1467
+ totp: TotpWithSecretsResponse;
1468
+ user_id: string;
1469
+ }
1470
+ //#endregion
1399
1471
  //#region src/user-management/interfaces/authentication-radar-risk-detected-event.interface.d.ts
1400
1472
  type AuthenticationRadarRiskDetectedEventData = {
1401
1473
  authMethod: string;
@@ -1466,10 +1538,16 @@ interface PKCEAuthorizationURLResult {
1466
1538
  interface CreateMagicAuthOptions {
1467
1539
  email: string;
1468
1540
  invitationToken?: string;
1541
+ ipAddress?: string;
1542
+ userAgent?: string;
1543
+ radarAuthAttemptId?: string;
1469
1544
  }
1470
1545
  interface SerializedCreateMagicAuthOptions {
1471
1546
  email: string;
1472
1547
  invitation_token?: string;
1548
+ ip_address?: string;
1549
+ user_agent?: string;
1550
+ radar_auth_attempt_id?: string;
1473
1551
  }
1474
1552
  //#endregion
1475
1553
  //#region src/user-management/interfaces/create-organization-membership-options.interface.d.ts
@@ -1503,22 +1581,28 @@ interface CreateUserOptions {
1503
1581
  password?: string;
1504
1582
  passwordHash?: string;
1505
1583
  passwordHashType?: PasswordHashType;
1584
+ name?: string;
1506
1585
  firstName?: string;
1507
1586
  lastName?: string;
1508
1587
  emailVerified?: boolean;
1509
1588
  externalId?: string;
1510
1589
  metadata?: Record<string, string>;
1590
+ ipAddress?: string;
1591
+ userAgent?: string;
1511
1592
  }
1512
1593
  interface SerializedCreateUserOptions {
1513
1594
  email: string;
1514
1595
  password?: string;
1515
1596
  password_hash?: string;
1516
1597
  password_hash_type?: PasswordHashType;
1598
+ name?: string;
1517
1599
  first_name?: string;
1518
1600
  last_name?: string;
1519
1601
  email_verified?: boolean;
1520
1602
  external_id?: string;
1521
1603
  metadata?: Record<string, string>;
1604
+ ip_address?: string;
1605
+ user_agent?: string;
1522
1606
  }
1523
1607
  //#endregion
1524
1608
  //#region src/user-management/interfaces/email-verification.interface.d.ts
@@ -1584,64 +1668,6 @@ interface SerializedEnrollUserInMfaFactorOptions {
1584
1668
  totp_secret?: string;
1585
1669
  }
1586
1670
  //#endregion
1587
- //#region src/multi-factor-auth/interfaces/totp.interface.d.ts
1588
- interface Totp {
1589
- issuer: string;
1590
- user: string;
1591
- }
1592
- interface TotpWithSecrets extends Totp {
1593
- qrCode: string;
1594
- secret: string;
1595
- uri: string;
1596
- }
1597
- interface TotpResponse {
1598
- issuer: string;
1599
- user: string;
1600
- }
1601
- interface TotpWithSecretsResponse extends TotpResponse {
1602
- qr_code: string;
1603
- secret: string;
1604
- uri: string;
1605
- }
1606
- //#endregion
1607
- //#region src/user-management/interfaces/factor.interface.d.ts
1608
- interface Factor$1 {
1609
- object: 'authentication_factor';
1610
- id: string;
1611
- createdAt: string;
1612
- updatedAt: string;
1613
- type: 'totp';
1614
- totp: Totp;
1615
- userId: string;
1616
- }
1617
- interface FactorWithSecrets$1 {
1618
- object: 'authentication_factor';
1619
- id: string;
1620
- createdAt: string;
1621
- updatedAt: string;
1622
- type: 'totp';
1623
- totp: TotpWithSecrets;
1624
- userId: string;
1625
- }
1626
- interface FactorResponse {
1627
- object: 'authentication_factor';
1628
- id: string;
1629
- created_at: string;
1630
- updated_at: string;
1631
- type: 'totp';
1632
- totp: TotpResponse;
1633
- user_id: string;
1634
- }
1635
- interface FactorWithSecretsResponse {
1636
- object: 'authentication_factor';
1637
- id: string;
1638
- created_at: string;
1639
- updated_at: string;
1640
- type: 'totp';
1641
- totp: TotpWithSecretsResponse;
1642
- user_id: string;
1643
- }
1644
- //#endregion
1645
1671
  //#region src/user-management/interfaces/identity.interface.d.ts
1646
1672
  interface Identity {
1647
1673
  idpId: string;
@@ -1875,6 +1901,12 @@ interface MagicAuthResponse {
1875
1901
  created_at: string;
1876
1902
  updated_at: string;
1877
1903
  }
1904
+ interface CreateMagicAuthResponse extends MagicAuth {
1905
+ radarAuthAttemptId?: string;
1906
+ }
1907
+ interface CreateMagicAuthResponseResponse extends MagicAuthResponse {
1908
+ radar_auth_attempt_id?: string;
1909
+ }
1878
1910
  interface MagicAuthEventResponse {
1879
1911
  object: 'magic_auth';
1880
1912
  id: string;
@@ -2048,6 +2080,7 @@ interface SerializedUpdateOrganizationMembershipOptions {
2048
2080
  interface UpdateUserOptions {
2049
2081
  userId: string;
2050
2082
  email?: string;
2083
+ name?: string;
2051
2084
  firstName?: string;
2052
2085
  lastName?: string;
2053
2086
  emailVerified?: boolean;
@@ -2060,6 +2093,7 @@ interface UpdateUserOptions {
2060
2093
  }
2061
2094
  interface SerializedUpdateUserOptions {
2062
2095
  email?: string;
2096
+ name?: string;
2063
2097
  first_name?: string;
2064
2098
  last_name?: string;
2065
2099
  email_verified?: boolean;
@@ -2386,13 +2420,20 @@ interface GetGroupOptions {
2386
2420
  //#endregion
2387
2421
  //#region src/groups/interfaces/group.interface.d.ts
2388
2422
  interface Group {
2423
+ /** The Group object. */
2389
2424
  object: 'group';
2425
+ /** The unique ID of the Group. */
2390
2426
  id: string;
2427
+ /** The ID of the Organization the Group belongs to. */
2391
2428
  organizationId: string;
2429
+ /** The name of the Group. */
2392
2430
  name: string;
2431
+ /** An optional description of the Group. */
2393
2432
  description: string | null;
2394
- createdAt: string;
2395
- updatedAt: string;
2433
+ /** An ISO 8601 timestamp. */
2434
+ createdAt: Date;
2435
+ /** An ISO 8601 timestamp. */
2436
+ updatedAt: Date;
2396
2437
  }
2397
2438
  interface GroupResponse {
2398
2439
  object: 'group';
@@ -3425,6 +3466,7 @@ interface AuthenticationActionContext {
3425
3466
  interface UserData {
3426
3467
  object: 'user_data';
3427
3468
  email: string;
3469
+ name: string | null;
3428
3470
  firstName: string;
3429
3471
  lastName: string;
3430
3472
  }
@@ -3452,6 +3494,7 @@ interface AuthenticationActionPayload {
3452
3494
  interface UserDataPayload {
3453
3495
  object: 'user_data';
3454
3496
  email: string;
3497
+ name: string | null;
3455
3498
  first_name: string;
3456
3499
  last_name: string;
3457
3500
  }
@@ -3525,36 +3568,6 @@ declare class Actions {
3525
3568
  }): Promise<ActionContext>;
3526
3569
  }
3527
3570
  //#endregion
3528
- //#region src/webhooks/webhooks.d.ts
3529
- declare class Webhooks {
3530
- private signatureProvider;
3531
- constructor(cryptoProvider: CryptoProvider);
3532
- get verifyHeader(): ({
3533
- payload,
3534
- sigHeader,
3535
- secret,
3536
- tolerance
3537
- }: {
3538
- payload: WebhookPayload;
3539
- sigHeader: string;
3540
- secret: string;
3541
- tolerance?: number;
3542
- }) => Promise<boolean>;
3543
- get computeSignature(): (timestamp: any, payload: WebhookPayload, secret: string) => Promise<string>;
3544
- get getTimestampAndSignatureHash(): (sigHeader: string) => [string, string];
3545
- constructEvent({
3546
- payload,
3547
- sigHeader,
3548
- secret,
3549
- tolerance
3550
- }: {
3551
- payload: WebhookPayload;
3552
- sigHeader: string;
3553
- secret: string;
3554
- tolerance?: number;
3555
- }): Promise<Event>;
3556
- }
3557
- //#endregion
3558
3571
  //#region src/pkce/pkce.d.ts
3559
3572
  interface PKCEPair {
3560
3573
  codeVerifier: string;
@@ -3669,98 +3682,601 @@ declare class ApiKeys {
3669
3682
  createOrganizationApiKey(options: CreateOrganizationApiKeyOptions, requestOptions?: CreateOrganizationApiKeyRequestOptions): Promise<CreatedApiKey>;
3670
3683
  }
3671
3684
  //#endregion
3672
- //#region src/directory-sync/directory-sync.d.ts
3673
- declare class DirectorySync {
3674
- private readonly workos;
3675
- constructor(workos: WorkOS);
3676
- /**
3677
- * List Directories
3678
- *
3679
- * Get a list of all of your existing directories matching the criteria specified.
3680
- * @param options - Pagination and filter options.
3681
- * @returns {Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>>}
3682
- * @throws 403 response from the API.
3683
- * @throws {UnprocessableEntityException} 422
3684
- */
3685
- listDirectories(options?: ListDirectoriesOptions): Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>>;
3686
- /**
3687
- * Get a Directory
3688
- *
3689
- * Get the details of an existing directory.
3690
- * @param id - Unique identifier for the Directory.
3691
- *
3692
- * @example
3693
- * "directory_01ECAZ4NV9QMV47GW873HDCX74"
3694
- *
3695
- * @returns {Promise<Directory>}
3696
- * @throws 403 response from the API.
3697
- * @throws {NotFoundException} 404
3698
- */
3699
- getDirectory(id: string): Promise<Directory>;
3700
- /**
3701
- * Delete a Directory
3702
- *
3703
- * Permanently deletes an existing directory. It cannot be undone.
3704
- * @param id - Unique identifier for the Directory.
3705
- *
3706
- * @example
3707
- * "directory_01ECAZ4NV9QMV47GW873HDCX74"
3708
- *
3709
- * @returns {Promise<void>}
3710
- * @throws 403 response from the API.
3711
- */
3712
- deleteDirectory(id: string): Promise<void>;
3713
- /**
3714
- * List Directory Groups
3715
- *
3716
- * Get a list of all of existing directory groups matching the criteria specified.
3717
- * @param options - Pagination and filter options.
3718
- * @returns {Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>}
3719
- * @throws 403 response from the API.
3720
- * @throws {NotFoundException} 404
3721
- * @throws {UnprocessableEntityException} 422
3722
- */
3723
- listGroups(options: ListDirectoryGroupsOptions): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>;
3724
- /**
3725
- * List Directory Users
3726
- *
3727
- * Get a list of all of existing Directory Users matching the criteria specified.
3728
- * @param options - Pagination and filter options.
3729
- * @returns {Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>}
3730
- * @throws 403 response from the API.
3731
- * @throws {NotFoundException} 404
3732
- * @throws {UnprocessableEntityException} 422
3733
- * @throws {RateLimitExceededException} 429
3734
- */
3735
- listUsers<TCustomAttributes extends object = DefaultCustomAttributes>(options: ListDirectoryUsersOptions): Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>;
3736
- /**
3737
- * Get a Directory User
3738
- *
3739
- * Get the details of an existing Directory User.
3740
- * @param user - Unique identifier for the Directory User.
3741
- *
3742
- * @example
3743
- * "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
3744
- * @returns {Promise<DirectoryUserWithGroups<TCustomAttributes>>}
3745
- * @throws 403 response from the API.
3746
- * @throws {NotFoundException} 404
3747
- */
3748
- getUser<TCustomAttributes extends object = DefaultCustomAttributes>(user: string): Promise<DirectoryUserWithGroups<TCustomAttributes>>;
3749
- /**
3750
- * Get a Directory Group
3751
- *
3752
- * Get the details of an existing Directory Group.
3753
- * @param group - Unique identifier for the Directory Group.
3754
- *
3755
- * @example
3756
- * "directory_group_01E1JJS84MFPPQ3G655FHTKX6Z"
3757
- * @returns {Promise<DirectoryGroup>}
3758
- * @throws 403 response from the API.
3759
- * @throws {NotFoundException} 404
3760
- */
3761
- getGroup(group: string): Promise<DirectoryGroup>;
3762
- }
3763
- //#endregion
3685
+ //#region src/connect/interfaces/user-object.interface.d.ts
3686
+ interface UserObject {
3687
+ /** 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. */
3688
+ id: string;
3689
+ /** The user's email address. */
3690
+ email: string;
3691
+ /** The user's first name. */
3692
+ firstName?: string;
3693
+ /** The user's last name. */
3694
+ lastName?: string;
3695
+ /** A set of key-value pairs to attach to the user. */
3696
+ metadata?: Record<string, string>;
3697
+ }
3698
+ interface UserObjectResponse {
3699
+ id: string;
3700
+ email: string;
3701
+ first_name?: string;
3702
+ last_name?: string;
3703
+ metadata?: Record<string, string>;
3704
+ }
3705
+ //#endregion
3706
+ //#region src/connect/interfaces/user-consent-option-choice.interface.d.ts
3707
+ interface UserConsentOptionChoice {
3708
+ /** The value of this choice. */
3709
+ value?: string;
3710
+ /** A human-readable label for this choice. */
3711
+ label?: string;
3712
+ }
3713
+ interface UserConsentOptionChoiceResponse {
3714
+ value?: string;
3715
+ label?: string;
3716
+ }
3717
+ //#endregion
3718
+ //#region src/connect/interfaces/user-consent-option.interface.d.ts
3719
+ interface UserConsentOption {
3720
+ /** The claim name for this consent option. */
3721
+ claim: string;
3722
+ /** The type of consent option. */
3723
+ type: 'enum';
3724
+ /** A human-readable label for this consent option. */
3725
+ label: string;
3726
+ /** The available choices for this consent option. */
3727
+ choices: UserConsentOptionChoice[];
3728
+ }
3729
+ interface UserConsentOptionResponse {
3730
+ claim: string;
3731
+ type: 'enum';
3732
+ label: string;
3733
+ choices: UserConsentOptionChoiceResponse[];
3734
+ }
3735
+ //#endregion
3736
+ //#region src/connect/interfaces/complete-oauth-2-options.interface.d.ts
3737
+ interface CompleteOAuth2Options {
3738
+ /** Identifier provided when AuthKit redirected to your login page. */
3739
+ externalAuthId: string;
3740
+ /** The user to create or update in AuthKit. */
3741
+ user: UserObject;
3742
+ /** Array of [User Consent Options](https://workos.com/docs/reference/workos-connect/standalone/user-consent-options) to store with the session. */
3743
+ userConsentOptions?: UserConsentOption[];
3744
+ }
3745
+ //#endregion
3746
+ //#region src/connect/interfaces/list-applications-options.interface.d.ts
3747
+ interface ListApplicationsOptions extends PaginationOptions {
3748
+ /** Filter Connect Applications by organization ID. */
3749
+ organizationId?: string;
3750
+ }
3751
+ //#endregion
3752
+ //#region src/connect/interfaces/redirect-uri-input.interface.d.ts
3753
+ interface RedirectUriInput {
3754
+ /** The redirect URI. */
3755
+ uri: string;
3756
+ /** Whether this is the default redirect URI. */
3757
+ default?: boolean | null;
3758
+ }
3759
+ interface RedirectUriInputResponse {
3760
+ uri: string;
3761
+ default?: boolean | null;
3762
+ }
3763
+ //#endregion
3764
+ //#region src/connect/interfaces/create-oauth-application.interface.d.ts
3765
+ interface CreateOAuthApplication {
3766
+ /** The name of the application. */
3767
+ name: string;
3768
+ /** The type of application to create. */
3769
+ applicationType: 'oauth';
3770
+ /** A description for the application. */
3771
+ description?: string | null;
3772
+ /** The OAuth scopes granted to the application. */
3773
+ scopes?: string[] | null;
3774
+ /** Redirect URIs for the application. */
3775
+ redirectUris?: RedirectUriInput[] | null;
3776
+ /** Whether the application uses PKCE (Proof Key for Code Exchange). */
3777
+ usesPkce?: boolean | null;
3778
+ /** Whether this is a first-party application. Third-party applications require an organization_id. */
3779
+ isFirstParty: boolean;
3780
+ /** The organization ID this application belongs to. Required when is_first_party is false. */
3781
+ organizationId?: string | null;
3782
+ }
3783
+ interface CreateOAuthApplicationResponse {
3784
+ name: string;
3785
+ application_type: 'oauth';
3786
+ description?: string | null;
3787
+ scopes?: string[] | null;
3788
+ redirect_uris?: RedirectUriInputResponse[] | null;
3789
+ uses_pkce?: boolean | null;
3790
+ is_first_party: boolean;
3791
+ organization_id?: string | null;
3792
+ }
3793
+ //#endregion
3794
+ //#region src/connect/interfaces/create-m2m-application.interface.d.ts
3795
+ interface CreateM2MApplication {
3796
+ /** The name of the application. */
3797
+ name: string;
3798
+ /** The type of application to create. */
3799
+ applicationType: 'm2m';
3800
+ /** A description for the application. */
3801
+ description?: string | null;
3802
+ /** The OAuth scopes granted to the application. */
3803
+ scopes?: string[] | null;
3804
+ /** The organization ID this application belongs to. */
3805
+ organizationId: string;
3806
+ }
3807
+ interface CreateM2MApplicationResponse {
3808
+ name: string;
3809
+ application_type: 'm2m';
3810
+ description?: string | null;
3811
+ scopes?: string[] | null;
3812
+ organization_id: string;
3813
+ }
3814
+ //#endregion
3815
+ //#region src/connect/interfaces/create-application-options.interface.d.ts
3816
+ type CreateApplicationOptions = {} & (CreateOAuthApplication | CreateM2MApplication);
3817
+ //#endregion
3818
+ //#region src/connect/interfaces/get-application-options.interface.d.ts
3819
+ interface GetApplicationOptions {
3820
+ /** The application ID or client ID of the Connect Application. */
3821
+ id: string;
3822
+ }
3823
+ //#endregion
3824
+ //#region src/connect/interfaces/update-application-options.interface.d.ts
3825
+ interface UpdateApplicationOptions {
3826
+ /** The application ID or client ID of the Connect Application. */
3827
+ id: string;
3828
+ /** The name of the application. */
3829
+ name?: string;
3830
+ /** A description for the application. */
3831
+ description?: string | null;
3832
+ /** The OAuth scopes granted to the application. */
3833
+ scopes?: string[] | null;
3834
+ /** Updated redirect URIs for the application. OAuth applications only. */
3835
+ redirectUris?: RedirectUriInput[] | null;
3836
+ }
3837
+ //#endregion
3838
+ //#region src/connect/interfaces/delete-application-options.interface.d.ts
3839
+ interface DeleteApplicationOptions {
3840
+ /** The application ID or client ID of the Connect Application. */
3841
+ id: string;
3842
+ }
3843
+ //#endregion
3844
+ //#region src/connect/interfaces/list-application-client-secrets-options.interface.d.ts
3845
+ interface ListApplicationClientSecretsOptions {
3846
+ /** The application ID or client ID of the Connect Application. */
3847
+ id: string;
3848
+ }
3849
+ //#endregion
3850
+ //#region src/connect/interfaces/create-application-client-secret-options.interface.d.ts
3851
+ interface CreateApplicationClientSecretOptions {
3852
+ /** The application ID or client ID of the Connect Application. */
3853
+ id: string;
3854
+ }
3855
+ //#endregion
3856
+ //#region src/connect/interfaces/delete-client-secret-options.interface.d.ts
3857
+ interface DeleteClientSecretOptions {
3858
+ /** The unique ID of the client secret. */
3859
+ id: string;
3860
+ }
3861
+ //#endregion
3862
+ //#region src/connect/interfaces/external-auth-complete-response.interface.d.ts
3863
+ interface ExternalAuthCompleteResponse {
3864
+ /** URI to redirect the user back to AuthKit to complete the OAuth flow. */
3865
+ redirectUri: string;
3866
+ }
3867
+ interface ExternalAuthCompleteResponseWire {
3868
+ redirect_uri: string;
3869
+ }
3870
+ //#endregion
3871
+ //#region src/connect/interfaces/connect-application-redirect-uri.interface.d.ts
3872
+ interface ConnectApplicationRedirectUri {
3873
+ /** The redirect URI for the application. */
3874
+ uri: string;
3875
+ /** Whether this is the default redirect URI. */
3876
+ default: boolean;
3877
+ }
3878
+ interface ConnectApplicationRedirectUriResponse {
3879
+ uri: string;
3880
+ default: boolean;
3881
+ }
3882
+ //#endregion
3883
+ //#region src/connect/interfaces/connect-application.interface.d.ts
3884
+ interface ConnectApplicationOAuth {
3885
+ /** Distinguishes the connect application object. */
3886
+ object: 'connect_application';
3887
+ /** The unique ID of the connect application. */
3888
+ id: string;
3889
+ /** The client ID of the connect application. */
3890
+ clientId: string;
3891
+ /** A description of the connect application. */
3892
+ description: string | null;
3893
+ /** The name of the connect application. */
3894
+ name: string;
3895
+ /** The scopes available for this application. */
3896
+ scopes: string[];
3897
+ /** An ISO 8601 timestamp. */
3898
+ createdAt: Date;
3899
+ /** An ISO 8601 timestamp. */
3900
+ updatedAt: Date;
3901
+ /** The type of the application. */
3902
+ applicationType: 'oauth';
3903
+ /** The redirect URIs configured for this application. */
3904
+ redirectUris: ConnectApplicationRedirectUri[];
3905
+ /** Whether the application uses PKCE for authorization. */
3906
+ usesPkce: boolean;
3907
+ /** Whether the application is a first-party application. */
3908
+ isFirstParty: boolean;
3909
+ /** Whether the application was dynamically registered. */
3910
+ wasDynamicallyRegistered?: boolean;
3911
+ /** The ID of the organization the application belongs to. */
3912
+ organizationId?: string;
3913
+ }
3914
+ interface ConnectApplicationOAuthResponse {
3915
+ /** Distinguishes the connect application object. */
3916
+ object: 'connect_application';
3917
+ /** The unique ID of the connect application. */
3918
+ id: string;
3919
+ /** The client ID of the connect application. */
3920
+ client_id: string;
3921
+ /** A description of the connect application. */
3922
+ description: string | null;
3923
+ /** The name of the connect application. */
3924
+ name: string;
3925
+ /** The scopes available for this application. */
3926
+ scopes: string[];
3927
+ /** An ISO 8601 timestamp. */
3928
+ created_at: string;
3929
+ /** An ISO 8601 timestamp. */
3930
+ updated_at: string;
3931
+ /** The type of the application. */
3932
+ application_type: 'oauth';
3933
+ /** The redirect URIs configured for this application. */
3934
+ redirect_uris: ConnectApplicationRedirectUriResponse[];
3935
+ /** Whether the application uses PKCE for authorization. */
3936
+ uses_pkce: boolean;
3937
+ /** Whether the application is a first-party application. */
3938
+ is_first_party: boolean;
3939
+ /** Whether the application was dynamically registered. */
3940
+ was_dynamically_registered?: boolean;
3941
+ /** The ID of the organization the application belongs to. */
3942
+ organization_id?: string;
3943
+ }
3944
+ interface ConnectApplicationM2M {
3945
+ /** Distinguishes the connect application object. */
3946
+ object: 'connect_application';
3947
+ /** The unique ID of the connect application. */
3948
+ id: string;
3949
+ /** The client ID of the connect application. */
3950
+ clientId: string;
3951
+ /** A description of the connect application. */
3952
+ description: string | null;
3953
+ /** The name of the connect application. */
3954
+ name: string;
3955
+ /** The scopes available for this application. */
3956
+ scopes: string[];
3957
+ /** An ISO 8601 timestamp. */
3958
+ createdAt: Date;
3959
+ /** An ISO 8601 timestamp. */
3960
+ updatedAt: Date;
3961
+ /** The type of the application. */
3962
+ applicationType: 'm2m';
3963
+ /** The ID of the organization the application belongs to. */
3964
+ organizationId: string;
3965
+ }
3966
+ interface ConnectApplicationM2MResponse {
3967
+ /** Distinguishes the connect application object. */
3968
+ object: 'connect_application';
3969
+ /** The unique ID of the connect application. */
3970
+ id: string;
3971
+ /** The client ID of the connect application. */
3972
+ client_id: string;
3973
+ /** A description of the connect application. */
3974
+ description: string | null;
3975
+ /** The name of the connect application. */
3976
+ name: string;
3977
+ /** The scopes available for this application. */
3978
+ scopes: string[];
3979
+ /** An ISO 8601 timestamp. */
3980
+ created_at: string;
3981
+ /** An ISO 8601 timestamp. */
3982
+ updated_at: string;
3983
+ /** The type of the application. */
3984
+ application_type: 'm2m';
3985
+ /** The ID of the organization the application belongs to. */
3986
+ organization_id: string;
3987
+ }
3988
+ type ConnectApplication = ConnectApplicationOAuth | ConnectApplicationM2M;
3989
+ type ConnectApplicationResponse = ConnectApplicationOAuthResponse | ConnectApplicationM2MResponse;
3990
+ //#endregion
3991
+ //#region src/connect/interfaces/application-credentials-list-item.interface.d.ts
3992
+ interface ApplicationCredentialsListItem {
3993
+ /** Distinguishes the connect application secret object. */
3994
+ object: 'connect_application_secret';
3995
+ /** The unique ID of the client secret. */
3996
+ id: string;
3997
+ /** A hint showing the last few characters of the secret value. */
3998
+ secretHint: string;
3999
+ /** The timestamp when the client secret was last used, or null if never used. */
4000
+ lastUsedAt: Date | null;
4001
+ /** An ISO 8601 timestamp. */
4002
+ createdAt: Date;
4003
+ /** An ISO 8601 timestamp. */
4004
+ updatedAt: Date;
4005
+ }
4006
+ interface ApplicationCredentialsListItemResponse {
4007
+ object: 'connect_application_secret';
4008
+ id: string;
4009
+ secret_hint: string;
4010
+ last_used_at: string | null;
4011
+ created_at: string;
4012
+ updated_at: string;
4013
+ }
4014
+ //#endregion
4015
+ //#region src/connect/interfaces/new-connect-application-secret.interface.d.ts
4016
+ interface NewConnectApplicationSecret {
4017
+ /** Distinguishes the connect application secret object. */
4018
+ object: 'connect_application_secret';
4019
+ /** The unique ID of the client secret. */
4020
+ id: string;
4021
+ /** A hint showing the last few characters of the secret value. */
4022
+ secretHint: string;
4023
+ /** The timestamp when the client secret was last used, or null if never used. */
4024
+ lastUsedAt: Date | null;
4025
+ /** An ISO 8601 timestamp. */
4026
+ createdAt: Date;
4027
+ /** An ISO 8601 timestamp. */
4028
+ updatedAt: Date;
4029
+ /** The plaintext secret value. Only returned at creation time and cannot be retrieved later. */
4030
+ secret: string;
4031
+ }
4032
+ interface NewConnectApplicationSecretResponse {
4033
+ object: 'connect_application_secret';
4034
+ id: string;
4035
+ secret_hint: string;
4036
+ last_used_at: string | null;
4037
+ created_at: string;
4038
+ updated_at: string;
4039
+ secret: string;
4040
+ }
4041
+ //#endregion
4042
+ //#region src/connect/connect.d.ts
4043
+ declare class Connect {
4044
+ private readonly workos;
4045
+ constructor(workos: WorkOS);
4046
+ /**
4047
+ * Complete external authentication
4048
+ *
4049
+ * 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.
4050
+ *
4051
+ * After successfully authenticating a user in your application, calling this endpoint will:
4052
+ *
4053
+ * - Create or update the user in AuthKit, using the given `id` as its `external_id`.
4054
+ * - Return a `redirect_uri` your application should redirect to in order for AuthKit to complete the flow
4055
+ *
4056
+ * 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.
4057
+ *
4058
+ * 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.
4059
+ * @param options - Object containing externalAuthId, user.
4060
+ * @param options.externalAuthId - Identifier provided when AuthKit redirected to your login page.
4061
+ * @example "ext_auth_01HXYZ123456789ABCDEFGHIJ"
4062
+ * @param options.user - The user to create or update in AuthKit.
4063
+ * @param options.userConsentOptions - Array of [User Consent Options](https://workos.com/docs/reference/workos-connect/standalone/user-consent-options) to store with the session.
4064
+ * @returns {Promise<ExternalAuthCompleteResponse>}
4065
+ * @throws {BadRequestException} 400
4066
+ * @throws {NotFoundException} 404
4067
+ * @throws {UnprocessableEntityException} 422
4068
+ */
4069
+ completeOAuth2(options: CompleteOAuth2Options): Promise<ExternalAuthCompleteResponse>;
4070
+ /**
4071
+ * List Connect Applications
4072
+ *
4073
+ * List all Connect Applications in the current environment with optional filtering.
4074
+ * @param options - Pagination and filter options.
4075
+ * @returns {Promise<AutoPaginatable<ConnectApplication, ListApplicationsOptions>>}
4076
+ * @throws {UnprocessableEntityException} 422
4077
+ */
4078
+ listApplications(options?: ListApplicationsOptions): Promise<AutoPaginatable<ConnectApplication, PaginationOptions>>;
4079
+ /**
4080
+ * Create a Connect Application
4081
+ *
4082
+ * Create a new Connect Application. Supports both OAuth and Machine-to-Machine (M2M) application types.
4083
+ * @param options - The request body.
4084
+ * @returns {Promise<ConnectApplication>}
4085
+ * @throws {NotFoundException} 404
4086
+ * @throws {UnprocessableEntityException} 422
4087
+ */
4088
+ createApplication(options: CreateApplicationOptions): Promise<ConnectApplication>;
4089
+ /**
4090
+ * Create oauth application.
4091
+ * @param name - The name of the application.
4092
+ * @param isFirstParty - Whether this is a first-party application. Third-party applications require an organization_id.
4093
+ * @param description - A description for the application.
4094
+ * @param scopes - The OAuth scopes granted to the application.
4095
+ * @param redirectUris - Redirect URIs for the application.
4096
+ * @param usesPkce - Whether the application uses PKCE (Proof Key for Code Exchange).
4097
+ * @param organizationId - The organization ID this application belongs to. Required when is_first_party is false.
4098
+ * @returns {Promise<ConnectApplication>}
4099
+ */
4100
+ createOAuthApplication(name: string, isFirstParty: boolean, description?: string | null, scopes?: string[] | null, redirectUris?: RedirectUriInput[] | null, usesPkce?: boolean | null, organizationId?: string | null): Promise<ConnectApplication>;
4101
+ /**
4102
+ * Create m2m application.
4103
+ * @param name - The name of the application.
4104
+ * @param organizationId - The organization ID this application belongs to.
4105
+ * @param description - A description for the application.
4106
+ * @param scopes - The OAuth scopes granted to the application.
4107
+ * @returns {Promise<ConnectApplication>}
4108
+ */
4109
+ createM2MApplication(name: string, organizationId: string, description?: string | null, scopes?: string[] | null): Promise<ConnectApplication>;
4110
+ /**
4111
+ * Get a Connect Application
4112
+ *
4113
+ * Retrieve details for a specific Connect Application by ID or client ID.
4114
+ * @param options - The request options.
4115
+ * @param options.id - The application ID or client ID of the Connect Application.
4116
+ * @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
4117
+ * @returns {Promise<ConnectApplication>}
4118
+ * @throws {NotFoundException} 404
4119
+ */
4120
+ getApplication(options: GetApplicationOptions): Promise<ConnectApplication>;
4121
+ /**
4122
+ * Update a Connect Application
4123
+ *
4124
+ * Update an existing Connect Application. For OAuth applications, you can update redirect URIs. For all applications, you can update the name, description, and scopes.
4125
+ * @param options - The request body.
4126
+ * @param options.id - The application ID or client ID of the Connect Application.
4127
+ * @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
4128
+ * @param options.name - The name of the application.
4129
+ * @example "My Application"
4130
+ * @param options.description - A description for the application.
4131
+ * @example "An application for managing user access"
4132
+ * @param options.scopes - The OAuth scopes granted to the application.
4133
+ * @example ["openid","profile","email"]
4134
+ * @param options.redirectUris - Updated redirect URIs for the application. OAuth applications only.
4135
+ * @example [{"uri":"https://example.com/callback","default":true}]
4136
+ * @returns {Promise<ConnectApplication>}
4137
+ * @throws {NotFoundException} 404
4138
+ * @throws {UnprocessableEntityException} 422
4139
+ */
4140
+ updateApplication(options: UpdateApplicationOptions): Promise<ConnectApplication>;
4141
+ /**
4142
+ * Delete a Connect Application
4143
+ *
4144
+ * Delete an existing Connect Application.
4145
+ * @param options - The request options.
4146
+ * @param options.id - The application ID or client ID of the Connect Application.
4147
+ * @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
4148
+ * @returns {Promise<void>}
4149
+ * @throws {NotFoundException} 404
4150
+ */
4151
+ deleteApplication(options: DeleteApplicationOptions): Promise<void>;
4152
+ /**
4153
+ * List Client Secrets for a Connect Application
4154
+ *
4155
+ * List all client secrets associated with a Connect Application.
4156
+ * @param options - The request options.
4157
+ * @param options.id - The application ID or client ID of the Connect Application.
4158
+ * @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
4159
+ * @returns {Promise<ApplicationCredentialsListItem[]>}
4160
+ * @throws {NotFoundException} 404
4161
+ */
4162
+ listApplicationClientSecrets(options: ListApplicationClientSecretsOptions): Promise<ApplicationCredentialsListItem[]>;
4163
+ /**
4164
+ * Create a new client secret for a Connect Application
4165
+ *
4166
+ * Create new secrets for a Connect Application.
4167
+ * @param options - The request body.
4168
+ * @param options.id - The application ID or client ID of the Connect Application.
4169
+ * @example "conn_app_01HXYZ123456789ABCDEFGHIJ"
4170
+ * @returns {Promise<NewConnectApplicationSecret>}
4171
+ * @throws {NotFoundException} 404
4172
+ * @throws {UnprocessableEntityException} 422
4173
+ */
4174
+ createApplicationClientSecret(options: CreateApplicationClientSecretOptions): Promise<NewConnectApplicationSecret>;
4175
+ /**
4176
+ * Delete a Client Secret
4177
+ *
4178
+ * Delete (revoke) an existing client secret.
4179
+ * @param options - The request options.
4180
+ * @param options.id - The unique ID of the client secret.
4181
+ * @example "secret_01J9Q2Z3X4Y5W6V7U8T9S0R1Q"
4182
+ * @returns {Promise<void>}
4183
+ * @throws {NotFoundException} 404
4184
+ */
4185
+ deleteClientSecret(options: DeleteClientSecretOptions): Promise<void>;
4186
+ }
4187
+ //#endregion
4188
+ //#region src/directory-sync/directory-sync.d.ts
4189
+ declare class DirectorySync {
4190
+ private readonly workos;
4191
+ constructor(workos: WorkOS);
4192
+ /**
4193
+ * List Directories
4194
+ *
4195
+ * Get a list of all of your existing directories matching the criteria specified.
4196
+ * @param options - Pagination and filter options.
4197
+ * @returns {Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>>}
4198
+ * @throws 403 response from the API.
4199
+ * @throws {UnprocessableEntityException} 422
4200
+ */
4201
+ listDirectories(options?: ListDirectoriesOptions): Promise<AutoPaginatable<Directory, SerializedListDirectoriesOptions>>;
4202
+ /**
4203
+ * Get a Directory
4204
+ *
4205
+ * Get the details of an existing directory.
4206
+ * @param id - Unique identifier for the Directory.
4207
+ *
4208
+ * @example
4209
+ * "directory_01ECAZ4NV9QMV47GW873HDCX74"
4210
+ *
4211
+ * @returns {Promise<Directory>}
4212
+ * @throws 403 response from the API.
4213
+ * @throws {NotFoundException} 404
4214
+ */
4215
+ getDirectory(id: string): Promise<Directory>;
4216
+ /**
4217
+ * Delete a Directory
4218
+ *
4219
+ * Permanently deletes an existing directory. It cannot be undone.
4220
+ * @param id - Unique identifier for the Directory.
4221
+ *
4222
+ * @example
4223
+ * "directory_01ECAZ4NV9QMV47GW873HDCX74"
4224
+ *
4225
+ * @returns {Promise<void>}
4226
+ * @throws 403 response from the API.
4227
+ */
4228
+ deleteDirectory(id: string): Promise<void>;
4229
+ /**
4230
+ * List Directory Groups
4231
+ *
4232
+ * Get a list of all of existing directory groups matching the criteria specified.
4233
+ * @param options - Pagination and filter options.
4234
+ * @returns {Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>}
4235
+ * @throws 403 response from the API.
4236
+ * @throws {NotFoundException} 404
4237
+ * @throws {UnprocessableEntityException} 422
4238
+ */
4239
+ listGroups(options: ListDirectoryGroupsOptions): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>;
4240
+ /**
4241
+ * List Directory Users
4242
+ *
4243
+ * Get a list of all of existing Directory Users matching the criteria specified.
4244
+ * @param options - Pagination and filter options.
4245
+ * @returns {Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>}
4246
+ * @throws 403 response from the API.
4247
+ * @throws {NotFoundException} 404
4248
+ * @throws {UnprocessableEntityException} 422
4249
+ * @throws {RateLimitExceededException} 429
4250
+ */
4251
+ listUsers<TCustomAttributes extends object = DefaultCustomAttributes>(options: ListDirectoryUsersOptions): Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>;
4252
+ /**
4253
+ * Get a Directory User
4254
+ *
4255
+ * Get the details of an existing Directory User.
4256
+ * @param user - Unique identifier for the Directory User.
4257
+ *
4258
+ * @example
4259
+ * "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
4260
+ * @returns {Promise<DirectoryUserWithGroups<TCustomAttributes>>}
4261
+ * @throws 403 response from the API.
4262
+ * @throws {NotFoundException} 404
4263
+ */
4264
+ getUser<TCustomAttributes extends object = DefaultCustomAttributes>(user: string): Promise<DirectoryUserWithGroups<TCustomAttributes>>;
4265
+ /**
4266
+ * Get a Directory Group
4267
+ *
4268
+ * Get the details of an existing Directory Group.
4269
+ * @param group - Unique identifier for the Directory Group.
4270
+ *
4271
+ * @example
4272
+ * "directory_group_01E1JJS84MFPPQ3G655FHTKX6Z"
4273
+ * @returns {Promise<DirectoryGroup>}
4274
+ * @throws 403 response from the API.
4275
+ * @throws {NotFoundException} 404
4276
+ */
4277
+ getGroup(group: string): Promise<DirectoryGroup>;
4278
+ }
4279
+ //#endregion
3764
4280
  //#region src/events/interfaces/list-events-options.interface.d.ts
3765
4281
  interface ListEventOptions {
3766
4282
  events: EventName[];
@@ -3989,12 +4505,23 @@ interface AccessToken {
3989
4505
  scopes: string[];
3990
4506
  missingScopes: string[];
3991
4507
  }
4508
+ interface SerializedAccessToken {
4509
+ object: 'access_token';
4510
+ access_token: string;
4511
+ expires_at: string | null;
4512
+ scopes: string[];
4513
+ missing_scopes: string[];
4514
+ }
3992
4515
  //#endregion
3993
4516
  //#region src/pipes/interfaces/get-access-token.interface.d.ts
3994
4517
  interface GetAccessTokenOptions {
3995
4518
  userId: string;
3996
4519
  organizationId?: string | null;
3997
4520
  }
4521
+ interface SerializedGetAccessTokenOptions {
4522
+ user_id: string;
4523
+ organization_id?: string | null;
4524
+ }
3998
4525
  interface GetAccessTokenSuccessResponse {
3999
4526
  active: true;
4000
4527
  accessToken: AccessToken;
@@ -4004,6 +4531,15 @@ interface GetAccessTokenFailureResponse {
4004
4531
  error: 'not_installed' | 'needs_reauthorization';
4005
4532
  }
4006
4533
  type GetAccessTokenResponse = GetAccessTokenSuccessResponse | GetAccessTokenFailureResponse;
4534
+ interface SerializedGetAccessTokenSuccessResponse {
4535
+ active: true;
4536
+ access_token: SerializedAccessToken;
4537
+ }
4538
+ interface SerializedGetAccessTokenFailureResponse {
4539
+ active: false;
4540
+ error: 'not_installed' | 'needs_reauthorization';
4541
+ }
4542
+ type SerializedGetAccessTokenResponse = SerializedGetAccessTokenSuccessResponse | SerializedGetAccessTokenFailureResponse;
4007
4543
  //#endregion
4008
4544
  //#region src/pipes/pipes.d.ts
4009
4545
  declare class Pipes {
@@ -4017,6 +4553,224 @@ declare class Pipes {
4017
4553
  }): Promise<GetAccessTokenResponse>;
4018
4554
  }
4019
4555
  //#endregion
4556
+ //#region src/radar/interfaces/radar-standalone-assess-request-auth-method.interface.d.ts
4557
+ declare const RadarStandaloneAssessRequestAuthMethod: {
4558
+ readonly Password: "Password";
4559
+ readonly Passkey: "Passkey";
4560
+ readonly Authenticator: "Authenticator";
4561
+ readonly SmsOtp: "SMS_OTP";
4562
+ readonly EmailOtp: "Email_OTP";
4563
+ readonly Social: "Social";
4564
+ readonly SSO: "SSO";
4565
+ readonly Other: "Other";
4566
+ };
4567
+ type RadarStandaloneAssessRequestAuthMethod = (typeof RadarStandaloneAssessRequestAuthMethod)[keyof typeof RadarStandaloneAssessRequestAuthMethod];
4568
+ //#endregion
4569
+ //#region src/radar/interfaces/radar-standalone-assess-request-action.interface.d.ts
4570
+ declare const RadarStandaloneAssessRequestAction: {
4571
+ readonly SignUp: "sign-up";
4572
+ readonly SignIn: "sign-in";
4573
+ };
4574
+ type RadarStandaloneAssessRequestAction = (typeof RadarStandaloneAssessRequestAction)[keyof typeof RadarStandaloneAssessRequestAction];
4575
+ //#endregion
4576
+ //#region src/radar/interfaces/create-attempt-options.interface.d.ts
4577
+ interface CreateAttemptOptions {
4578
+ /** The IP address of the request to assess. */
4579
+ ipAddress: string;
4580
+ /** The user agent string of the request to assess. */
4581
+ userAgent: string;
4582
+ /** The email address of the user making the request. */
4583
+ email: string;
4584
+ /** The authentication method being used. */
4585
+ authMethod: RadarStandaloneAssessRequestAuthMethod;
4586
+ /** The action being performed. */
4587
+ action: RadarStandaloneAssessRequestAction;
4588
+ }
4589
+ //#endregion
4590
+ //#region src/radar/interfaces/update-attempt-options.interface.d.ts
4591
+ interface UpdateAttemptOptions {
4592
+ /** The unique identifier of the Radar attempt to update. */
4593
+ id: string;
4594
+ /** Set to `"success"` to mark the challenge as completed. */
4595
+ challengeStatus?: 'success';
4596
+ /** Set to `"success"` to mark the authentication attempt as successful. */
4597
+ attemptStatus?: 'success';
4598
+ }
4599
+ //#endregion
4600
+ //#region src/radar/interfaces/radar-list-type.interface.d.ts
4601
+ declare const RadarListType: {
4602
+ readonly IpAddress: "ip_address";
4603
+ readonly Domain: "domain";
4604
+ readonly Email: "email";
4605
+ readonly Device: "device";
4606
+ readonly UserAgent: "user_agent";
4607
+ readonly DeviceFingerprint: "device_fingerprint";
4608
+ readonly Country: "country";
4609
+ };
4610
+ type RadarListType = (typeof RadarListType)[keyof typeof RadarListType];
4611
+ //#endregion
4612
+ //#region src/radar/interfaces/radar-list-action.interface.d.ts
4613
+ declare const RadarListAction: {
4614
+ readonly Block: "block";
4615
+ readonly Allow: "allow";
4616
+ };
4617
+ type RadarListAction = (typeof RadarListAction)[keyof typeof RadarListAction];
4618
+ //#endregion
4619
+ //#region src/radar/interfaces/add-list-entry-options.interface.d.ts
4620
+ interface AddListEntryOptions {
4621
+ /** The type of the Radar list (e.g. ip_address, domain, email). */
4622
+ type: RadarListType;
4623
+ /** The list action indicating whether to add the entry to the allow or block list. */
4624
+ action: RadarListAction;
4625
+ /** 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`). */
4626
+ entry: string;
4627
+ }
4628
+ //#endregion
4629
+ //#region src/radar/interfaces/remove-list-entry-options.interface.d.ts
4630
+ interface RemoveListEntryOptions {
4631
+ /** The type of the Radar list (e.g. ip_address, domain, email). */
4632
+ type: RadarListType;
4633
+ /** The list action indicating whether to remove the entry from the allow or block list. */
4634
+ action: RadarListAction;
4635
+ /** The value to remove from the list. Must match an existing entry. */
4636
+ entry: string;
4637
+ }
4638
+ //#endregion
4639
+ //#region src/radar/interfaces/radar-standalone-response-verdict.interface.d.ts
4640
+ declare const RadarStandaloneResponseVerdict: {
4641
+ readonly Allow: "allow";
4642
+ readonly Block: "block";
4643
+ readonly Challenge: "challenge";
4644
+ };
4645
+ type RadarStandaloneResponseVerdict = (typeof RadarStandaloneResponseVerdict)[keyof typeof RadarStandaloneResponseVerdict];
4646
+ //#endregion
4647
+ //#region src/radar/interfaces/radar-standalone-response-control.interface.d.ts
4648
+ declare const RadarStandaloneResponseControl: {
4649
+ readonly BotDetection: "bot_detection";
4650
+ readonly BruteForceAttack: "brute_force_attack";
4651
+ readonly DomainSignUpRateLimit: "domain_sign_up_rate_limit";
4652
+ readonly ImpossibleTravel: "impossible_travel";
4653
+ readonly RepeatSignUp: "repeat_sign_up";
4654
+ readonly StaleAccount: "stale_account";
4655
+ readonly UnrecognizedDevice: "unrecognized_device";
4656
+ readonly Restriction: "restriction";
4657
+ };
4658
+ type RadarStandaloneResponseControl = (typeof RadarStandaloneResponseControl)[keyof typeof RadarStandaloneResponseControl];
4659
+ //#endregion
4660
+ //#region src/radar/interfaces/radar-standalone-response-blocklist-type.interface.d.ts
4661
+ declare const RadarStandaloneResponseBlocklistType: {
4662
+ readonly IpAddress: "ip_address";
4663
+ readonly Domain: "domain";
4664
+ readonly Email: "email";
4665
+ readonly Device: "device";
4666
+ readonly UserAgent: "user_agent";
4667
+ readonly DeviceFingerprint: "device_fingerprint";
4668
+ readonly Country: "country";
4669
+ };
4670
+ type RadarStandaloneResponseBlocklistType = (typeof RadarStandaloneResponseBlocklistType)[keyof typeof RadarStandaloneResponseBlocklistType];
4671
+ //#endregion
4672
+ //#region src/radar/interfaces/radar-standalone-response.interface.d.ts
4673
+ interface RadarStandaloneResponse {
4674
+ /** The verdict of the risk assessment. */
4675
+ verdict: RadarStandaloneResponseVerdict;
4676
+ /** A human-readable reason for the verdict. */
4677
+ reason: string;
4678
+ /** Unique identifier of the authentication attempt. */
4679
+ attemptId: string;
4680
+ /** The Radar control that triggered the verdict. Only present if the verdict is `block` or `challenge`. */
4681
+ control?: RadarStandaloneResponseControl;
4682
+ /** The type of blocklist entry that triggered the verdict. Only present if the control is `restriction`. */
4683
+ blocklistType?: RadarStandaloneResponseBlocklistType;
4684
+ }
4685
+ interface RadarStandaloneResponseWire {
4686
+ verdict: RadarStandaloneResponseVerdict;
4687
+ reason: string;
4688
+ attempt_id: string;
4689
+ control?: RadarStandaloneResponseControl;
4690
+ blocklist_type?: RadarStandaloneResponseBlocklistType;
4691
+ }
4692
+ //#endregion
4693
+ //#region src/radar/interfaces/radar-list-entry-already-present-response.interface.d.ts
4694
+ interface RadarListEntryAlreadyPresentResponse {
4695
+ /** A message indicating the entry already exists. */
4696
+ message: string;
4697
+ }
4698
+ interface RadarListEntryAlreadyPresentResponseWire {
4699
+ message: string;
4700
+ }
4701
+ //#endregion
4702
+ //#region src/radar/radar.d.ts
4703
+ declare class Radar {
4704
+ private readonly workos;
4705
+ constructor(workos: WorkOS);
4706
+ /**
4707
+ * Create an attempt
4708
+ *
4709
+ * Assess a request for risk using the Radar engine and receive a verdict.
4710
+ * @param options - Object containing ipAddress, userAgent, email, authMethod, action.
4711
+ * @param options.ipAddress - The IP address of the request to assess.
4712
+ * @example "49.78.240.97"
4713
+ * @param options.userAgent - The user agent string of the request to assess.
4714
+ * @example "Mozilla/5.0"
4715
+ * @param options.email - The email address of the user making the request.
4716
+ * @example "user@example.com"
4717
+ * @param options.authMethod - The authentication method being used.
4718
+ * @example "Password"
4719
+ * @param options.action - The action being performed.
4720
+ * @example "sign-in"
4721
+ * @returns {Promise<RadarStandaloneResponse>}
4722
+ * @throws {BadRequestException} 400
4723
+ */
4724
+ createAttempt(options: CreateAttemptOptions): Promise<RadarStandaloneResponse>;
4725
+ /**
4726
+ * Update a Radar attempt
4727
+ *
4728
+ * 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.
4729
+ * @param options - The request body.
4730
+ * @param options.id - The unique identifier of the Radar attempt to update.
4731
+ * @example "radar_att_01HZBC6N1EB1ZY7KG32X"
4732
+ * @param options.challengeStatus - Set to `"success"` to mark the challenge as completed.
4733
+ * @example "success"
4734
+ * @param options.attemptStatus - Set to `"success"` to mark the authentication attempt as successful.
4735
+ * @example "success"
4736
+ * @returns {Promise<void>}
4737
+ * @throws {BadRequestException} 400
4738
+ * @throws {NotFoundException} 404
4739
+ */
4740
+ updateAttempt(options: UpdateAttemptOptions): Promise<void>;
4741
+ /**
4742
+ * Add an entry to a Radar list
4743
+ *
4744
+ * Add an entry to a Radar list.
4745
+ * @param options - Object containing entry.
4746
+ * @param options.type - The type of the Radar list (e.g. ip_address, domain, email).
4747
+ * @example "ip_address"
4748
+ * @param options.action - The list action indicating whether to add the entry to the allow or block list.
4749
+ * @example "block"
4750
+ * @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`).
4751
+ * @example "198.51.100.42"
4752
+ * @returns {Promise<RadarListEntryAlreadyPresentResponse>}
4753
+ * @throws {BadRequestException} 400
4754
+ */
4755
+ addListEntry(options: AddListEntryOptions): Promise<RadarListEntryAlreadyPresentResponse>;
4756
+ /**
4757
+ * Remove an entry from a Radar list
4758
+ *
4759
+ * Remove an entry from a Radar list.
4760
+ * @param options - Object containing entry.
4761
+ * @param options.type - The type of the Radar list (e.g. ip_address, domain, email).
4762
+ * @example "ip_address"
4763
+ * @param options.action - The list action indicating whether to remove the entry from the allow or block list.
4764
+ * @example "block"
4765
+ * @param options.entry - The value to remove from the list. Must match an existing entry.
4766
+ * @example "198.51.100.42"
4767
+ * @returns {Promise<void>}
4768
+ * @throws {BadRequestException} 400
4769
+ * @throws {NotFoundException} 404
4770
+ */
4771
+ removeListEntry(options: RemoveListEntryOptions): Promise<void>;
4772
+ }
4773
+ //#endregion
4020
4774
  //#region src/admin-portal/admin-portal.d.ts
4021
4775
  declare class AdminPortal {
4022
4776
  private readonly workos;
@@ -4173,6 +4927,15 @@ interface Challenge {
4173
4927
  code?: string;
4174
4928
  authenticationFactorId: string;
4175
4929
  }
4930
+ interface ChallengeResponse {
4931
+ object: 'authentication_challenge';
4932
+ id: string;
4933
+ created_at: string;
4934
+ updated_at: string;
4935
+ expires_at?: string;
4936
+ code?: string;
4937
+ authentication_factor_id: string;
4938
+ }
4176
4939
  //#endregion
4177
4940
  //#region src/multi-factor-auth/interfaces/enroll-factor-options.d.ts
4178
4941
  type EnrollFactorOptions = {
@@ -4190,6 +4953,9 @@ type EnrollFactorOptions = {
4190
4953
  interface Sms {
4191
4954
  phoneNumber: string;
4192
4955
  }
4956
+ interface SmsResponse {
4957
+ phone_number: string;
4958
+ }
4193
4959
  //#endregion
4194
4960
  //#region src/multi-factor-auth/interfaces/factor.interface.d.ts
4195
4961
  type FactorType = 'sms' | 'totp' | 'generic_otp';
@@ -4211,6 +4977,24 @@ interface FactorWithSecrets {
4211
4977
  sms?: Sms;
4212
4978
  totp?: TotpWithSecrets;
4213
4979
  }
4980
+ interface FactorResponse {
4981
+ object: 'authentication_factor';
4982
+ id: string;
4983
+ created_at: string;
4984
+ updated_at: string;
4985
+ type: FactorType;
4986
+ sms?: SmsResponse;
4987
+ totp?: TotpResponse;
4988
+ }
4989
+ interface FactorWithSecretsResponse {
4990
+ object: 'authentication_factor';
4991
+ id: string;
4992
+ created_at: string;
4993
+ updated_at: string;
4994
+ type: FactorType;
4995
+ sms?: SmsResponse;
4996
+ totp?: TotpWithSecretsResponse;
4997
+ }
4214
4998
  //#endregion
4215
4999
  //#region src/multi-factor-auth/interfaces/verify-challenge-options.d.ts
4216
5000
  interface VerifyChallengeOptions {
@@ -4223,6 +5007,10 @@ interface VerifyResponse {
4223
5007
  challenge: Challenge;
4224
5008
  valid: boolean;
4225
5009
  }
5010
+ interface VerifyResponseResponse {
5011
+ challenge: ChallengeResponse;
5012
+ valid: boolean;
5013
+ }
4226
5014
  //#endregion
4227
5015
  //#region src/multi-factor-auth/multi-factor-auth.d.ts
4228
5016
  declare class MultiFactorAuth {
@@ -4293,7 +5081,7 @@ declare class MultiFactorAuth {
4293
5081
  * @throws {UnprocessableEntityException} 422
4294
5082
  */
4295
5083
  createUserAuthFactor(payload: EnrollAuthFactorOptions): Promise<{
4296
- authenticationFactor: FactorWithSecrets$1;
5084
+ authenticationFactor: AuthenticationFactorWithSecrets;
4297
5085
  authenticationChallenge: Challenge;
4298
5086
  }>;
4299
5087
  /**
@@ -4304,7 +5092,7 @@ declare class MultiFactorAuth {
4304
5092
  * @returns {Promise<AutoPaginatable<UMFactor, PaginationOptions>>}
4305
5093
  * @throws {UnprocessableEntityException} 422
4306
5094
  */
4307
- listUserAuthFactors(options: ListAuthFactorsOptions): Promise<AutoPaginatable<Factor$1, PaginationOptions>>;
5095
+ listUserAuthFactors(options: ListAuthFactorsOptions): Promise<AutoPaginatable<AuthenticationFactor, PaginationOptions>>;
4308
5096
  }
4309
5097
  //#endregion
4310
5098
  //#region src/audit-logs/interfaces/audit-log-export-options.interface.d.ts
@@ -5003,12 +5791,12 @@ declare class UserManagement {
5003
5791
  *
5004
5792
  * Create a new user in the current environment.
5005
5793
  * @param payload - Object containing email.
5006
- * @returns {Promise<User>}
5794
+ * @returns {Promise<CreateUserResponse>}
5007
5795
  * @throws {BadRequestException} 400
5008
5796
  * @throws {NotFoundException} 404
5009
5797
  * @throws {UnprocessableEntityException} 422
5010
5798
  */
5011
- createUser(payload: CreateUserOptions): Promise<User>;
5799
+ createUser(payload: CreateUserOptions): Promise<CreateUserResponse>;
5012
5800
  /** Authenticate with magic auth. */
5013
5801
  authenticateWithMagicAuth(payload: AuthenticateWithMagicAuthOptions): Promise<AuthenticationResponse>;
5014
5802
  /** Authenticate with password. */
@@ -5095,12 +5883,12 @@ declare class UserManagement {
5095
5883
  *
5096
5884
  * Creates a one-time authentication code that can be sent to the user's email address. The code expires in 10 minutes. To verify the code, [authenticate the user with Magic Auth](https://workos.com/docs/reference/authkit/authentication/magic-auth).
5097
5885
  * @param options - Object containing email.
5098
- * @returns {Promise<MagicAuth>}
5886
+ * @returns {Promise<CreateMagicAuthResponse>}
5099
5887
  * @throws {BadRequestException} 400
5100
5888
  * @throws {UnprocessableEntityException} 422
5101
5889
  * @throws {RateLimitExceededException} 429
5102
5890
  */
5103
- createMagicAuth(options: CreateMagicAuthOptions): Promise<MagicAuth>;
5891
+ createMagicAuth(options: CreateMagicAuthOptions): Promise<CreateMagicAuthResponse>;
5104
5892
  /**
5105
5893
  * Verify email
5106
5894
  *
@@ -5519,13 +6307,131 @@ declare class FeatureFlags {
5519
6307
  declare class Groups {
5520
6308
  private readonly workos;
5521
6309
  constructor(workos: WorkOS);
6310
+ /**
6311
+ * List Group members
6312
+ *
6313
+ * Get a list of organization memberships in a group.
6314
+ * @param options - Pagination and filter options.
6315
+ * @param options.organizationId - Unique identifier of the Organization.
6316
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6317
+ * @param options.groupId - Unique identifier of the Group.
6318
+ * @example "group_01HXYZ123456789ABCDEFGHIJ"
6319
+ * @returns {Promise<AutoPaginatable<AuthorizationOrganizationMembership>>}
6320
+ * @throws {AuthorizationException} 403
6321
+ * @throws {NotFoundException} 404
6322
+ */
6323
+ listOrganizationMemberships(options: ListGroupOrganizationMembershipsOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
6324
+ /**
6325
+ * List groups
6326
+ *
6327
+ * Get a paginated list of groups within an organization.
6328
+ * @param options - Pagination and filter options.
6329
+ * @param options.organizationId - The ID of the organization.
6330
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6331
+ * @returns {Promise<AutoPaginatable<Group, PaginationOptions>>}
6332
+ * @throws {AuthorizationException} 403
6333
+ * @throws {NotFoundException} 404
6334
+ */
6335
+ listGroups(options: ListGroupsOptions): Promise<AutoPaginatable<Group, PaginationOptions>>;
6336
+ /**
6337
+ * Create a group
6338
+ *
6339
+ * Create a new group within an organization.
6340
+ * @param options - Object containing name.
6341
+ * @param options.organizationId - The ID of the organization.
6342
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6343
+ * @param options.name - The name of the Group.
6344
+ * @example "Engineering"
6345
+ * @param options.description - An optional description of the Group.
6346
+ * @example "The engineering team"
6347
+ * @returns {Promise<Group>}
6348
+ * @throws {BadRequestException} 400
6349
+ * @throws {AuthorizationException} 403
6350
+ * @throws {NotFoundException} 404
6351
+ * @throws {UnprocessableEntityException} 422
6352
+ */
5522
6353
  createGroup(options: CreateGroupOptions): Promise<Group>;
5523
- listGroups(options: ListGroupsOptions): Promise<AutoPaginatable<Group>>;
6354
+ /**
6355
+ * Get a group
6356
+ *
6357
+ * Retrieve a group by its ID within an organization.
6358
+ * @param options - The request options.
6359
+ * @param options.organizationId - The ID of the organization.
6360
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6361
+ * @param options.groupId - The ID of the group.
6362
+ * @example "group_01HXYZ123456789ABCDEFGHIJ"
6363
+ * @returns {Promise<Group>}
6364
+ * @throws {AuthorizationException} 403
6365
+ * @throws {NotFoundException} 404
6366
+ */
5524
6367
  getGroup(options: GetGroupOptions): Promise<Group>;
6368
+ /**
6369
+ * Update a group
6370
+ *
6371
+ * Update an existing group. Only the fields provided in the request body will be updated.
6372
+ * @param options - The request body.
6373
+ * @param options.organizationId - The ID of the organization.
6374
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6375
+ * @param options.groupId - The ID of the group.
6376
+ * @example "group_01HXYZ123456789ABCDEFGHIJ"
6377
+ * @param options.name - The name of the Group.
6378
+ * @example "Engineering"
6379
+ * @param options.description - An optional description of the Group.
6380
+ * @example "The engineering team"
6381
+ * @returns {Promise<Group>}
6382
+ * @throws {BadRequestException} 400
6383
+ * @throws {AuthorizationException} 403
6384
+ * @throws {NotFoundException} 404
6385
+ * @throws {UnprocessableEntityException} 422
6386
+ */
5525
6387
  updateGroup(options: UpdateGroupOptions): Promise<Group>;
6388
+ /**
6389
+ * Delete a group
6390
+ *
6391
+ * Delete a group from an organization.
6392
+ * @param options - The request options.
6393
+ * @param options.organizationId - The ID of the organization.
6394
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6395
+ * @param options.groupId - The ID of the group.
6396
+ * @example "group_01HXYZ123456789ABCDEFGHIJ"
6397
+ * @returns {Promise<void>}
6398
+ * @throws {AuthorizationException} 403
6399
+ * @throws {NotFoundException} 404
6400
+ */
5526
6401
  deleteGroup(options: DeleteGroupOptions): Promise<void>;
6402
+ /**
6403
+ * Add a member to a Group
6404
+ *
6405
+ * Add an organization membership to a group.
6406
+ * @param options - Object containing organizationMembershipId.
6407
+ * @param options.organizationId - Unique identifier of the Organization.
6408
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6409
+ * @param options.groupId - Unique identifier of the Group.
6410
+ * @example "group_01HXYZ123456789ABCDEFGHIJ"
6411
+ * @param options.organizationMembershipId - The ID of the Organization Membership to add to the group.
6412
+ * @example "om_01HXYZ123456789ABCDEFGHIJ"
6413
+ * @returns {Promise<Group>}
6414
+ * @throws {BadRequestException} 400
6415
+ * @throws {AuthorizationException} 403
6416
+ * @throws {NotFoundException} 404
6417
+ * @throws {UnprocessableEntityException} 422
6418
+ */
5527
6419
  addOrganizationMembership(options: AddGroupOrganizationMembershipOptions): Promise<Group>;
5528
- listOrganizationMemberships(options: ListGroupOrganizationMembershipsOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
6420
+ /**
6421
+ * Remove a member from a Group
6422
+ *
6423
+ * Remove an organization membership from a group.
6424
+ * @param options - The request options.
6425
+ * @param options.organizationId - Unique identifier of the Organization.
6426
+ * @example "org_01EHWNCE74X7JSDV0X3SZ3KJNY"
6427
+ * @param options.groupId - Unique identifier of the Group.
6428
+ * @example "group_01HXYZ123456789ABCDEFGHIJ"
6429
+ * @param options.omId - Unique identifier of the Organization Membership.
6430
+ * @example "om_01HXYZ123456789ABCDEFGHIJ"
6431
+ * @returns {Promise<void>}
6432
+ * @throws {AuthorizationException} 403
6433
+ * @throws {NotFoundException} 404
6434
+ */
5529
6435
  removeOrganizationMembership(options: RemoveGroupOrganizationMembershipOptions): Promise<void>;
5530
6436
  }
5531
6437
  //#endregion
@@ -5536,9 +6442,19 @@ interface GetTokenOptions {
5536
6442
  userId?: string;
5537
6443
  scopes?: WidgetScope[];
5538
6444
  }
6445
+ interface SerializedGetTokenOptions {
6446
+ organization_id: string;
6447
+ user_id?: string;
6448
+ scopes?: WidgetScope[];
6449
+ }
6450
+ declare const serializeGetTokenOptions: (options: GetTokenOptions) => SerializedGetTokenOptions;
5539
6451
  interface GetTokenResponse {
5540
6452
  token: string;
5541
6453
  }
6454
+ interface GetTokenResponseResponse {
6455
+ token: string;
6456
+ }
6457
+ declare const deserializeGetTokenResponse: (data: GetTokenResponseResponse) => GetTokenResponse;
5542
6458
  //#endregion
5543
6459
  //#region src/widgets/widgets.d.ts
5544
6460
  declare class Widgets {
@@ -5909,68 +6825,261 @@ declare class Authorization {
5909
6825
  * @throws {BadRequestException} 400
5910
6826
  * @throws 403 response from the API.
5911
6827
  * @throws {NotFoundException} 404
5912
- * @throws {ConflictException} 409
5913
- * @throws {UnprocessableEntityException} 422
6828
+ * @throws {ConflictException} 409
6829
+ * @throws {UnprocessableEntityException} 422
6830
+ */
6831
+ updateResource(options: UpdateAuthorizationResourceOptions): Promise<AuthorizationResource>;
6832
+ /**
6833
+ * Delete an authorization resource
6834
+ *
6835
+ * Delete an authorization resource and all its descendants.
6836
+ * @param options.cascadeDelete - If true, deletes all descendant resources and role assignments. If not set and the resource has children or assignments, the request will fail.
6837
+ * @default false
6838
+ * @param options - Additional query options.
6839
+ * @returns {Promise<void>}
6840
+ * @throws {BadRequestException} 400
6841
+ * @throws 403 response from the API.
6842
+ * @throws {NotFoundException} 404
6843
+ * @throws {ConflictException} 409
6844
+ */
6845
+ deleteResource(options: DeleteAuthorizationResourceOptions): Promise<void>;
6846
+ /**
6847
+ * List resources
6848
+ *
6849
+ * Get a paginated list of authorization resources.
6850
+ * @param options - Pagination and filter options.
6851
+ * @returns {Promise<AutoPaginatable<AuthorizationResource, PaginationOptions>>}
6852
+ * @throws 403 response from the API.
6853
+ * @throws {UnprocessableEntityException} 422
6854
+ */
6855
+ listResources(options?: ListAuthorizationResourcesOptions): Promise<AutoPaginatable<AuthorizationResource>>;
6856
+ /**
6857
+ * Get a resource by external ID
6858
+ *
6859
+ * Retrieve the details of an authorization resource by its external ID, organization, and resource type. This is useful when you only have the external ID from your system and need to fetch the full resource details.
6860
+ * @param organizationId - The ID of the organization that owns the resource.
6861
+ *
6862
+ * @example
6863
+ * "org_01EHZNVPK3SFK441A1RGBFSHRT"
6864
+ *
6865
+ * @param resourceTypeSlug - The slug of the resource type.
6866
+ *
6867
+ * @example
6868
+ * "project"
6869
+ *
6870
+ * @param externalId - An identifier you provide to reference the resource in your system.
6871
+ *
6872
+ * @example
6873
+ * "proj-456"
6874
+ *
6875
+ * @returns {Promise<AuthorizationResource>}
6876
+ * @throws 403 response from the API.
6877
+ * @throws {NotFoundException} 404
6878
+ */
6879
+ getResourceByExternalId(options: GetAuthorizationResourceByExternalIdOptions): Promise<AuthorizationResource>;
6880
+ /**
6881
+ * Update a resource by external ID
6882
+ *
6883
+ * Update an existing authorization resource using its external ID.
6884
+ * @param organizationId - The ID of the organization that owns the resource.
6885
+ *
6886
+ * @example
6887
+ * "org_01EHZNVPK3SFK441A1RGBFSHRT"
6888
+ *
6889
+ * @param resourceTypeSlug - The slug of the resource type.
6890
+ *
6891
+ * @example
6892
+ * "project"
6893
+ *
6894
+ * @param externalId - An identifier you provide to reference the resource in your system.
6895
+ *
6896
+ * @example
6897
+ * "proj-456"
6898
+ *
6899
+ * @param options - The request body.
6900
+ * @returns {Promise<AuthorizationResource>}
6901
+ * @throws {BadRequestException} 400
6902
+ * @throws 403 response from the API.
6903
+ * @throws {NotFoundException} 404
6904
+ * @throws {ConflictException} 409
6905
+ * @throws {UnprocessableEntityException} 422
6906
+ */
6907
+ updateResourceByExternalId(options: UpdateAuthorizationResourceByExternalIdOptions): Promise<AuthorizationResource>;
6908
+ /**
6909
+ * Delete an authorization resource by external ID
6910
+ *
6911
+ * Delete an authorization resource by organization, resource type, and external ID. This also deletes all descendant resources.
6912
+ * @param organizationId - The ID of the organization that owns the resource.
6913
+ *
6914
+ * @example
6915
+ * "org_01EHZNVPK3SFK441A1RGBFSHRT"
6916
+ *
6917
+ * @param resourceTypeSlug - The slug of the resource type.
6918
+ *
6919
+ * @example
6920
+ * "project"
6921
+ *
6922
+ * @param externalId - An identifier you provide to reference the resource in your system.
6923
+ *
6924
+ * @example
6925
+ * "proj-456"
6926
+ *
6927
+ * @param options - Additional query options.
6928
+ * @returns {Promise<void>}
6929
+ * @throws {BadRequestException} 400
6930
+ * @throws 403 response from the API.
6931
+ * @throws {NotFoundException} 404
6932
+ * @throws {ConflictException} 409
6933
+ */
6934
+ deleteResourceByExternalId(options: DeleteAuthorizationResourceByExternalIdOptions): Promise<void>;
6935
+ /**
6936
+ * Check authorization
6937
+ *
6938
+ * Check if an organization membership has a specific permission on a resource. Supports identification by resource_id OR by resource_external_id + resource_type_slug.
6939
+ * @param options - Object containing permissionSlug.
6940
+ * @returns {Promise<AuthorizationCheckResult>}
6941
+ * @throws 403 response from the API.
6942
+ * @throws {NotFoundException} 404
6943
+ * @throws {UnprocessableEntityException} 422
6944
+ */
6945
+ check(options: AuthorizationCheckOptions): Promise<AuthorizationCheckResult>;
6946
+ /**
6947
+ * List role assignments
6948
+ *
6949
+ * List all role assignments for an organization membership. This returns all roles that have been assigned to the user on resources, including organization-level and sub-resource roles.
6950
+ * @param organizationMembershipId - The ID of the organization membership.
6951
+ *
6952
+ * @example
6953
+ * "om_01HXYZ123456789ABCDEFGHIJ"
6954
+ *
6955
+ * @param options - Pagination and filter options.
6956
+ * @returns {Promise<AutoPaginatable<RoleAssignment>>}
6957
+ * @throws 403 response from the API.
6958
+ * @throws {NotFoundException} 404
6959
+ */
6960
+ listRoleAssignments(options: ListRoleAssignmentsOptions): Promise<AutoPaginatable<RoleAssignment>>;
6961
+ /**
6962
+ * List role assignments for a resource
6963
+ *
6964
+ * List all role assignments granted on a resource. This returns every role assignment scoped to the resource, regardless of which organization membership received it.
6965
+ * @param resourceId - The ID of the authorization resource.
6966
+ *
6967
+ * @example
6968
+ * "authz_resource_01HXYZ123456789ABCDEFGHIJ"
6969
+ *
6970
+ * @param options - Pagination and filter options.
6971
+ * @returns {Promise<AutoPaginatable<RoleAssignment>>}
6972
+ * @throws 403 response from the API.
6973
+ * @throws {NotFoundException} 404
6974
+ */
6975
+ listRoleAssignmentsForResource(options: ListRoleAssignmentsForResourceOptions): Promise<AutoPaginatable<RoleAssignment>>;
6976
+ /**
6977
+ * List role assignments for a resource by external ID
6978
+ *
6979
+ * List all role assignments granted on a resource identified by its external ID, organization, and resource type. This returns every role assignment scoped to the resource, regardless of which organization membership received it.
6980
+ * @param organizationId - The ID of the organization that owns the resource.
6981
+ *
6982
+ * @example
6983
+ * "org_01EHZNVPK3SFK441A1RGBFSHRT"
6984
+ *
6985
+ * @param resourceTypeSlug - The slug of the resource type this resource belongs to.
6986
+ *
6987
+ * @example
6988
+ * "project"
6989
+ *
6990
+ * @param externalId - An identifier you provide to reference the resource in your system.
6991
+ *
6992
+ * @example
6993
+ * "proj-456"
6994
+ *
6995
+ * @param options - Pagination and filter options.
6996
+ * @returns {Promise<AutoPaginatable<RoleAssignment>>}
6997
+ * @throws 403 response from the API.
6998
+ * @throws {NotFoundException} 404
5914
6999
  */
5915
- updateResource(options: UpdateAuthorizationResourceOptions): Promise<AuthorizationResource>;
7000
+ listResourceRoleAssignments(options: ListRoleAssignmentsForResourceByExternalIdOptions): Promise<AutoPaginatable<RoleAssignment>>;
5916
7001
  /**
5917
- * Delete an authorization resource
7002
+ * Assign a role
5918
7003
  *
5919
- * Delete an authorization resource and all its descendants.
5920
- * @param options.cascadeDelete - If true, deletes all descendant resources and role assignments. If not set and the resource has children or assignments, the request will fail.
5921
- * @default false
5922
- * @param options - Additional query options.
5923
- * @returns {Promise<void>}
5924
- * @throws {BadRequestException} 400
7004
+ * Assign a role to an organization membership on a specific resource.
7005
+ * @param options - Object containing roleSlug.
7006
+ * @returns {Promise<RoleAssignment>}
5925
7007
  * @throws 403 response from the API.
5926
7008
  * @throws {NotFoundException} 404
5927
- * @throws {ConflictException} 409
7009
+ * @throws {UnprocessableEntityException} 422
5928
7010
  */
5929
- deleteResource(options: DeleteAuthorizationResourceOptions): Promise<void>;
7011
+ assignRole(options: AssignRoleOptions): Promise<RoleAssignment>;
5930
7012
  /**
5931
- * List resources
7013
+ * Remove a role assignment
5932
7014
  *
5933
- * Get a paginated list of authorization resources.
5934
- * @param options - Pagination and filter options.
5935
- * @returns {Promise<AutoPaginatable<AuthorizationResource, PaginationOptions>>}
7015
+ * Remove a role assignment by role slug and resource.
7016
+ * @param options - Object containing roleSlug.
7017
+ * @returns {Promise<void>}
5936
7018
  * @throws 403 response from the API.
7019
+ * @throws {NotFoundException} 404
5937
7020
  * @throws {UnprocessableEntityException} 422
5938
7021
  */
5939
- listResources(options?: ListAuthorizationResourcesOptions): Promise<AutoPaginatable<AuthorizationResource>>;
7022
+ removeRole(options: RemoveRoleOptions): Promise<void>;
5940
7023
  /**
5941
- * Get a resource by external ID
7024
+ * Remove a role assignment by ID
5942
7025
  *
5943
- * Retrieve the details of an authorization resource by its external ID, organization, and resource type. This is useful when you only have the external ID from your system and need to fetch the full resource details.
5944
- * @param organizationId - The ID of the organization that owns the resource.
7026
+ * Remove a role assignment using its ID.
7027
+ * @param organizationMembershipId - The ID of the organization membership.
5945
7028
  *
5946
7029
  * @example
5947
- * "org_01EHZNVPK3SFK441A1RGBFSHRT"
7030
+ * "om_01HXYZ123456789ABCDEFGHIJ"
5948
7031
  *
5949
- * @param resourceTypeSlug - The slug of the resource type.
7032
+ * @param roleAssignmentId - The ID of the role assignment to remove.
5950
7033
  *
5951
7034
  * @example
5952
- * "project"
7035
+ * "role_assignment_01HXYZ123456789ABCDEFGH"
5953
7036
  *
5954
- * @param externalId - An identifier you provide to reference the resource in your system.
7037
+ * @returns {Promise<void>}
7038
+ * @throws 403 response from the API.
7039
+ * @throws {NotFoundException} 404
7040
+ */
7041
+ removeRoleAssignment(options: RemoveRoleAssignmentOptions): Promise<void>;
7042
+ /**
7043
+ * List resources for organization membership
7044
+ *
7045
+ * Returns all child resources of a parent resource where the organization membership has a specific permission. This is useful for resource discovery—answering "What projects can this user access in this workspace?"
7046
+ *
7047
+ * You must provide either `parent_resource_id` or both `parent_resource_external_id` and `parent_resource_type_slug` to identify the parent resource.
7048
+ * @param organizationMembershipId - The ID of the organization membership.
5955
7049
  *
5956
7050
  * @example
5957
- * "proj-456"
7051
+ * "om_01HXYZ123456789ABCDEFGHIJ"
5958
7052
  *
5959
- * @returns {Promise<AuthorizationResource>}
7053
+ * @param options - Pagination and filter options.
7054
+ * @returns {Promise<AutoPaginatable<AuthorizationResource>>}
7055
+ * @throws {BadRequestException} 400
5960
7056
  * @throws 403 response from the API.
5961
7057
  * @throws {NotFoundException} 404
7058
+ * @throws {UnprocessableEntityException} 422
5962
7059
  */
5963
- getResourceByExternalId(options: GetAuthorizationResourceByExternalIdOptions): Promise<AuthorizationResource>;
7060
+ listResourcesForMembership(options: ListResourcesForMembershipOptions): Promise<AutoPaginatable<AuthorizationResource>>;
5964
7061
  /**
5965
- * Update a resource by external ID
7062
+ * List organization memberships for resource
5966
7063
  *
5967
- * Update an existing authorization resource using its external ID.
7064
+ * Returns all organization memberships that have a specific permission on a resource instance. This is useful for answering "Who can access this resource?".
7065
+ * @param options - Pagination and filter options.
7066
+ * @returns {Promise<AutoPaginatable<BaseOrganizationMembership, PaginationOptions>>}
7067
+ * @throws {BadRequestException} 400
7068
+ * @throws 403 response from the API.
7069
+ * @throws {NotFoundException} 404
7070
+ * @throws {UnprocessableEntityException} 422
7071
+ */
7072
+ listMembershipsForResource(options: ListMembershipsForResourceOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
7073
+ /**
7074
+ * List memberships for a resource by external ID
7075
+ *
7076
+ * Returns all organization memberships that have a specific permission on a resource, using the resource's external ID. This is useful for answering "Who can access this resource?" when you only have the external ID.
5968
7077
  * @param organizationId - The ID of the organization that owns the resource.
5969
7078
  *
5970
7079
  * @example
5971
7080
  * "org_01EHZNVPK3SFK441A1RGBFSHRT"
5972
7081
  *
5973
- * @param resourceTypeSlug - The slug of the resource type.
7082
+ * @param resourceTypeSlug - The slug of the resource type this resource belongs to.
5974
7083
  *
5975
7084
  * @example
5976
7085
  * "project"
@@ -5980,239 +7089,829 @@ declare class Authorization {
5980
7089
  * @example
5981
7090
  * "proj-456"
5982
7091
  *
5983
- * @param options - The request body.
5984
- * @returns {Promise<AuthorizationResource>}
7092
+ * @param options - Pagination and filter options.
7093
+ * @returns {Promise<AutoPaginatable<UserOrganizationMembershipBaseListData>>}
5985
7094
  * @throws {BadRequestException} 400
5986
7095
  * @throws 403 response from the API.
5987
7096
  * @throws {NotFoundException} 404
5988
- * @throws {ConflictException} 409
5989
7097
  * @throws {UnprocessableEntityException} 422
5990
7098
  */
5991
- updateResourceByExternalId(options: UpdateAuthorizationResourceByExternalIdOptions): Promise<AuthorizationResource>;
7099
+ listMembershipsForResourceByExternalId(options: ListMembershipsForResourceByExternalIdOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
5992
7100
  /**
5993
- * Delete an authorization resource by external ID
7101
+ * List effective permissions for an organization membership on a resource
5994
7102
  *
5995
- * Delete an authorization resource by organization, resource type, and external ID. This also deletes all descendant resources.
5996
- * @param organizationId - The ID of the organization that owns the resource.
7103
+ * Returns all permissions the organization membership effectively has on a resource, including permissions inherited through roles assigned to ancestor resources.
7104
+ * @param organizationMembershipId - The ID of the organization membership.
5997
7105
  *
5998
7106
  * @example
5999
- * "org_01EHZNVPK3SFK441A1RGBFSHRT"
7107
+ * "om_01HXYZ123456789ABCDEFGHIJ"
6000
7108
  *
6001
- * @param resourceTypeSlug - The slug of the resource type.
7109
+ * @param resourceId - The ID of the authorization resource.
6002
7110
  *
6003
7111
  * @example
6004
- * "project"
7112
+ * "authz_resource_01HXYZ123456789ABCDEFGHIJ"
6005
7113
  *
6006
- * @param externalId - An identifier you provide to reference the resource in your system.
7114
+ * @param options - Pagination and filter options.
7115
+ * @returns {Promise<AutoPaginatable<AuthorizationPermission>>}
7116
+ * @throws 403 response from the API.
7117
+ * @throws {NotFoundException} 404
7118
+ * @throws {UnprocessableEntityException} 422
7119
+ */
7120
+ listEffectivePermissions(options: ListEffectivePermissionsOptions): Promise<AutoPaginatable<Permission>>;
7121
+ /**
7122
+ * List effective permissions for an organization membership on a resource by external ID
6007
7123
  *
6008
- * @example
6009
- * "proj-456"
7124
+ * 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.
7125
+ * @param options - Pagination and filter options.
7126
+ * @returns {Promise<AutoPaginatable<Permission, PaginationOptions>>}
7127
+ * @throws 403 response from the API.
7128
+ * @throws {NotFoundException} 404
7129
+ * @throws {UnprocessableEntityException} 422
7130
+ */
7131
+ listEffectivePermissionsByExternalId(options: ListEffectivePermissionsByExternalIdOptions): Promise<AutoPaginatable<Permission>>;
7132
+ }
7133
+ //#endregion
7134
+ //#region src/vault/interfaces/key/create-data-key.interface.d.ts
7135
+ interface CreateDataKeyOptions {
7136
+ context: KeyContext;
7137
+ }
7138
+ //#endregion
7139
+ //#region src/vault/interfaces/key/decrypt-data-key.interface.d.ts
7140
+ interface DecryptDataKeyOptions {
7141
+ keys: string;
7142
+ }
7143
+ interface DecryptDataKeyResponse {
7144
+ data_key: string;
7145
+ id: string;
7146
+ }
7147
+ //#endregion
7148
+ //#region src/vault/interfaces/create-rekey-options.interface.d.ts
7149
+ interface CreateRekeyOptions {
7150
+ /** Map of values used to determine the new encryption key. */
7151
+ context: Record<string, string>;
7152
+ /** Base64-encoded encrypted data key blob to re-encrypt. */
7153
+ encryptedKeys: string;
7154
+ }
7155
+ //#endregion
7156
+ //#region src/vault/interfaces/list-objects-options.interface.d.ts
7157
+ interface ListObjectsOptions extends PaginationOptions {
7158
+ /** Filter results by name or structured search JSON. */
7159
+ search?: string;
7160
+ /** ISO 8601 timestamp to filter by last modified time. */
7161
+ updatedAfter?: Date;
7162
+ }
7163
+ //#endregion
7164
+ //#region src/vault/interfaces/object/create-object.interface.d.ts
7165
+ interface CreateObjectEntity {
7166
+ name: string;
7167
+ value: string;
7168
+ key_context: KeyContext;
7169
+ }
7170
+ interface CreateObjectOptions {
7171
+ name: string;
7172
+ value: string;
7173
+ context: KeyContext;
7174
+ }
7175
+ //#endregion
7176
+ //#region src/vault/interfaces/object.interface.d.ts
7177
+ interface ObjectUpdateBy {
7178
+ id: string;
7179
+ name: string;
7180
+ }
7181
+ //#endregion
7182
+ //#region src/vault/interfaces/object/read-object.interface.d.ts
7183
+ interface ReadObjectOptions {
7184
+ id: string;
7185
+ }
7186
+ interface ReadObjectMetadataResponse {
7187
+ context: KeyContext;
7188
+ environment_id: string;
7189
+ id: string;
7190
+ key_id: string;
7191
+ updated_at: string;
7192
+ updated_by: ObjectUpdateBy;
7193
+ version_id: string;
7194
+ }
7195
+ interface ReadObjectResponse {
7196
+ id: string;
7197
+ metadata: ReadObjectMetadataResponse;
7198
+ name: string;
7199
+ value?: string;
7200
+ }
7201
+ //#endregion
7202
+ //#region src/vault/interfaces/object/update-object.interface.d.ts
7203
+ interface UpdateObjectEntity {
7204
+ value: string;
7205
+ version_check?: string;
7206
+ }
7207
+ interface UpdateObjectOptions {
7208
+ id: string;
7209
+ value: string;
7210
+ versionCheck?: string;
7211
+ }
7212
+ //#endregion
7213
+ //#region src/vault/interfaces/delete-vault-object-options.interface.d.ts
7214
+ interface DeleteVaultObjectOptions {
7215
+ /** Unique identifier of the object. */
7216
+ id: string;
7217
+ /** Expected current version for optimistic locking. */
7218
+ versionCheck?: string;
7219
+ }
7220
+ //#endregion
7221
+ //#region src/vault/interfaces/create-data-key-response.interface.d.ts
7222
+ interface CreateDataKeyResponse {
7223
+ /** Map of values used to determine the encryption key. */
7224
+ context: Record<string, string>;
7225
+ /** Base64-encoded data encryption key. */
7226
+ dataKey?: string;
7227
+ /** Base64-encoded encrypted data key blob. */
7228
+ encryptedKeys?: string;
7229
+ /** Unique identifier for the generated data key. */
7230
+ id: string;
7231
+ }
7232
+ interface CreateDataKeyResponseWire {
7233
+ context: Record<string, string>;
7234
+ data_key: string;
7235
+ encrypted_keys: string;
7236
+ id: string;
7237
+ }
7238
+ //#endregion
7239
+ //#region src/vault/interfaces/actor.interface.d.ts
7240
+ /** The user or API key that performed an action. */
7241
+ interface Actor {
7242
+ /** Unique identifier of the actor. */
7243
+ id: string;
7244
+ /** Display name of the actor. */
7245
+ name: string;
7246
+ }
7247
+ interface ActorResponse {
7248
+ id: string;
7249
+ name: string;
7250
+ }
7251
+ //#endregion
7252
+ //#region src/vault/interfaces/object-metadata.interface.d.ts
7253
+ /** Metadata for a stored encrypted object. */
7254
+ interface ObjectMetadata {
7255
+ /** Map of values used to determine the encryption key. */
7256
+ context: Record<string, string>;
7257
+ /** Environment the object belongs to. */
7258
+ environmentId: string;
7259
+ /** Unique identifier of the object. */
7260
+ id: string;
7261
+ /** Encryption key identifier. */
7262
+ keyId: string;
7263
+ /** Timestamp of the last update. */
7264
+ updatedAt: Date;
7265
+ updatedBy: Actor;
7266
+ /** Current version identifier of the object. */
7267
+ versionId?: string | null;
7268
+ }
7269
+ interface ObjectMetadataResponse {
7270
+ context: Record<string, string>;
7271
+ environment_id: string;
7272
+ id: string;
7273
+ key_id: string;
7274
+ updated_at: string;
7275
+ updated_by: ActorResponse;
7276
+ version_id?: string | null;
7277
+ }
7278
+ //#endregion
7279
+ //#region src/vault/interfaces/vault-object.interface.d.ts
7280
+ /** An encrypted object with its decrypted value and metadata. */
7281
+ interface VaultObject {
7282
+ /** Unique identifier of the object. */
7283
+ id: string;
7284
+ metadata: ObjectMetadata;
7285
+ /** Unique name of the object. */
7286
+ name: string;
7287
+ /** Decrypted plaintext value. */
7288
+ value?: string;
7289
+ }
7290
+ interface VaultObjectResponse {
7291
+ id: string;
7292
+ metadata: ObjectMetadataResponse;
7293
+ name: string;
7294
+ value: string;
7295
+ }
7296
+ //#endregion
7297
+ //#region src/vault/interfaces/object-version.interface.d.ts
7298
+ /** A static snapshot of an encrypted object. */
7299
+ interface ObjectVersion {
7300
+ /** Timestamp when the version was created. */
7301
+ createdAt: Date;
7302
+ /** Whether this is the active version. */
7303
+ currentVersion: boolean;
7304
+ /** Hash of the object value. */
7305
+ etag?: string;
7306
+ /** Unique identifier of the version. */
7307
+ id: string;
7308
+ /** Number of bytes of stored data. */
7309
+ size?: number;
7310
+ }
7311
+ interface ObjectVersionResponse {
7312
+ created_at: string;
7313
+ current_version: boolean;
7314
+ etag?: string;
7315
+ id: string;
7316
+ size?: number;
7317
+ }
7318
+ //#endregion
7319
+ //#region src/vault/interfaces/list-metadata.interface.d.ts
7320
+ /** Cursor-based pagination metadata. */
7321
+ interface ListMetadata {
7322
+ /** Cursor for the next page of results. */
7323
+ after?: string | null;
7324
+ /** Cursor for the previous page of results. */
7325
+ before?: string | null;
7326
+ }
7327
+ //#endregion
7328
+ //#region src/vault/interfaces/version-list-response.interface.d.ts
7329
+ interface VersionListResponse {
7330
+ /** List of object versions. */
7331
+ data: ObjectVersion[];
7332
+ listMetadata: ListMetadata;
7333
+ }
7334
+ //#endregion
7335
+ //#region src/vault/interfaces/object-summary.interface.d.ts
7336
+ /** Summary of an encrypted object returned in list responses. */
7337
+ interface ObjectSummary {
7338
+ /** Unique identifier of the object. */
7339
+ id: string;
7340
+ /** Unique name of the object. */
7341
+ name: string;
7342
+ /** Timestamp of the last update. */
7343
+ updatedAt?: Date | null;
7344
+ }
7345
+ interface ObjectSummaryResponse {
7346
+ id: string;
7347
+ name: string;
7348
+ updated_at?: string | null;
7349
+ }
7350
+ //#endregion
7351
+ //#region src/vault/interfaces/read-object-by-name-options.interface.d.ts
7352
+ interface ReadObjectByNameOptions {
7353
+ /** Unique name of the object. */
7354
+ name: string;
7355
+ }
7356
+ //#endregion
7357
+ //#region src/vault/vault.d.ts
7358
+ declare class Vault {
7359
+ private readonly workos;
7360
+ constructor(workos: WorkOS);
7361
+ /**
7362
+ * Read an object by name
6010
7363
  *
6011
- * @param options - Additional query options.
6012
- * @returns {Promise<void>}
7364
+ * Fetch and decrypt an object by its unique name.
7365
+ * @param options - The object name string or request options.
7366
+ * @param options.name - Unique name of the object.
7367
+ * @example "my-secret"
7368
+ * @returns {Promise<VaultObject>}
6013
7369
  * @throws {BadRequestException} 400
6014
- * @throws 403 response from the API.
6015
7370
  * @throws {NotFoundException} 404
6016
- * @throws {ConflictException} 409
6017
7371
  */
6018
- deleteResourceByExternalId(options: DeleteAuthorizationResourceByExternalIdOptions): Promise<void>;
7372
+ readObjectByName(name: string): Promise<VaultObject>;
7373
+ readObjectByName(options: ReadObjectByNameOptions): Promise<VaultObject>;
6019
7374
  /**
6020
- * Check authorization
7375
+ * Create a data key
6021
7376
  *
6022
- * Check if an organization membership has a specific permission on a resource. Supports identification by resource_id OR by resource_external_id + resource_type_slug.
6023
- * @param options - Object containing permissionSlug.
6024
- * @returns {Promise<AuthorizationCheckResult>}
6025
- * @throws 403 response from the API.
6026
- * @throws {NotFoundException} 404
7377
+ * Generate an isolated encryption key for local encryption operations.
7378
+ * @param options - Object containing context.
7379
+ * @param options.context - Map of values used to determine the encryption key.
7380
+ * @example {"organization_id":"org_01K8ZYT4AWJ6XP0E0S8CTBHE3P"}
7381
+ * @returns {Promise<DataKeyPair>}
7382
+ * @throws {BadRequestException} 400
6027
7383
  * @throws {UnprocessableEntityException} 422
6028
7384
  */
6029
- check(options: AuthorizationCheckOptions): Promise<AuthorizationCheckResult>;
7385
+ createDataKey(options: CreateDataKeyOptions): Promise<DataKeyPair>;
6030
7386
  /**
6031
- * List role assignments
6032
- *
6033
- * List all role assignments for an organization membership. This returns all roles that have been assigned to the user on resources, including organization-level and sub-resource roles.
6034
- * @param organizationMembershipId - The ID of the organization membership.
6035
- *
6036
- * @example
6037
- * "om_01HXYZ123456789ABCDEFGHIJ"
7387
+ * Decrypt a data key
6038
7388
  *
6039
- * @param options - Pagination and filter options.
6040
- * @returns {Promise<AutoPaginatable<RoleAssignment>>}
6041
- * @throws 403 response from the API.
6042
- * @throws {NotFoundException} 404
7389
+ * Decrypt a previously encrypted data key from WorkOS Vault.
7390
+ * @param options - Object containing keys.
7391
+ * @param options.keys - Base64-encoded encrypted data key to decrypt.
7392
+ * @example "V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj"
7393
+ * @returns {Promise<DataKey>}
7394
+ * @throws {BadRequestException} 400
6043
7395
  */
6044
- listRoleAssignments(options: ListRoleAssignmentsOptions): Promise<AutoPaginatable<RoleAssignment>>;
7396
+ decryptDataKey(options: DecryptDataKeyOptions): Promise<DataKey>;
6045
7397
  /**
6046
- * List role assignments for a resource
6047
- *
6048
- * List all role assignments granted on a resource. This returns every role assignment scoped to the resource, regardless of which organization membership received it.
6049
- * @param resourceId - The ID of the authorization resource.
7398
+ * Re-encrypt a data key
6050
7399
  *
6051
- * @example
6052
- * "authz_resource_01HXYZ123456789ABCDEFGHIJ"
6053
- *
6054
- * @param options - Pagination and filter options.
6055
- * @returns {Promise<AutoPaginatable<RoleAssignment>>}
6056
- * @throws 403 response from the API.
6057
- * @throws {NotFoundException} 404
7400
+ * Decrypt an existing data key and re-encrypt it under a new key context.
7401
+ * @param options - Object containing context, encryptedKeys.
7402
+ * @param options.context - Map of values used to determine the new encryption key.
7403
+ * @example {"organization_id":"org_01K8ZYT4AWJ6XP0E0S8CTBHE3P"}
7404
+ * @param options.encryptedKeys - Base64-encoded encrypted data key blob to re-encrypt.
7405
+ * @example "V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj"
7406
+ * @returns {Promise<CreateDataKeyResponse>}
7407
+ * @throws {BadRequestException} 400
7408
+ * @throws {UnprocessableEntityException} 422
6058
7409
  */
6059
- listRoleAssignmentsForResource(options: ListRoleAssignmentsForResourceOptions): Promise<AutoPaginatable<RoleAssignment>>;
7410
+ createRekey(options: CreateRekeyOptions): Promise<CreateDataKeyResponse>;
6060
7411
  /**
6061
- * List role assignments for a resource by external ID
6062
- *
6063
- * List all role assignments granted on a resource identified by its external ID, organization, and resource type. This returns every role assignment scoped to the resource, regardless of which organization membership received it.
6064
- * @param organizationId - The ID of the organization that owns the resource.
6065
- *
6066
- * @example
6067
- * "org_01EHZNVPK3SFK441A1RGBFSHRT"
6068
- *
6069
- * @param resourceTypeSlug - The slug of the resource type this resource belongs to.
6070
- *
6071
- * @example
6072
- * "project"
6073
- *
6074
- * @param externalId - An identifier you provide to reference the resource in your system.
6075
- *
6076
- * @example
6077
- * "proj-456"
7412
+ * List objects
6078
7413
  *
7414
+ * List all encrypted objects with cursor-based pagination.
6079
7415
  * @param options - Pagination and filter options.
6080
- * @returns {Promise<AutoPaginatable<RoleAssignment>>}
6081
- * @throws 403 response from the API.
6082
- * @throws {NotFoundException} 404
7416
+ * @returns {Promise<AutoPaginatable<ObjectSummary, PaginationOptions>>}
7417
+ * @throws {BadRequestException} 400
6083
7418
  */
6084
- listResourceRoleAssignments(options: ListRoleAssignmentsForResourceByExternalIdOptions): Promise<AutoPaginatable<RoleAssignment>>;
7419
+ listObjects(options?: ListObjectsOptions): Promise<AutoPaginatable<ObjectSummary, PaginationOptions>>;
6085
7420
  /**
6086
- * Assign a role
7421
+ * Create an object
6087
7422
  *
6088
- * Assign a role to an organization membership on a specific resource.
6089
- * @param options - Object containing roleSlug.
6090
- * @returns {Promise<RoleAssignment>}
6091
- * @throws 403 response from the API.
6092
- * @throws {NotFoundException} 404
7423
+ * Encrypt and store a new key-value object.
7424
+ * @param options - Object containing keyContext, name, value.
7425
+ * @param options.keyContext - Map of values used to determine the encryption key.
7426
+ * @example {"organization_id":"org_01K8ZYT4AWJ6XP0E0S8CTBHE3P"}
7427
+ * @param options.name - Unique name for the object.
7428
+ * @example "my-secret"
7429
+ * @param options.value - Plaintext data to encrypt and store.
7430
+ * @example "s3cr3t-v4lu3"
7431
+ * @returns {Promise<ObjectMetadata>}
7432
+ * @throws {BadRequestException} 400
7433
+ * @throws {ConflictException} 409
6093
7434
  * @throws {UnprocessableEntityException} 422
6094
7435
  */
6095
- assignRole(options: AssignRoleOptions): Promise<RoleAssignment>;
7436
+ createObject(options: CreateObjectOptions): Promise<ObjectMetadata>;
6096
7437
  /**
6097
- * Remove a role assignment
7438
+ * Read an object by ID
6098
7439
  *
6099
- * Remove a role assignment by role slug and resource.
6100
- * @param options - Object containing roleSlug.
6101
- * @returns {Promise<void>}
6102
- * @throws 403 response from the API.
7440
+ * Fetch and decrypt an object by its unique identifier.
7441
+ * @param options - The request options.
7442
+ * @param options.id - Unique identifier of the object.
7443
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
7444
+ * @returns {Promise<VaultObject>}
7445
+ * @throws {BadRequestException} 400
6103
7446
  * @throws {NotFoundException} 404
6104
- * @throws {UnprocessableEntityException} 422
6105
7447
  */
6106
- removeRole(options: RemoveRoleOptions): Promise<void>;
7448
+ readObject(options: ReadObjectOptions): Promise<VaultObject>;
6107
7449
  /**
6108
- * Remove a role assignment by ID
6109
- *
6110
- * Remove a role assignment using its ID.
6111
- * @param organizationMembershipId - The ID of the organization membership.
6112
- *
6113
- * @example
6114
- * "om_01HXYZ123456789ABCDEFGHIJ"
6115
- *
6116
- * @param roleAssignmentId - The ID of the role assignment to remove.
6117
- *
6118
- * @example
6119
- * "role_assignment_01HXYZ123456789ABCDEFGH"
7450
+ * Update an object
7451
+ *
7452
+ * Update the value of an existing encrypted object.
7453
+ * @param options - Object containing value.
7454
+ * @param options.id - Unique identifier of the object.
7455
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
7456
+ * @param options.value - New plaintext value.
7457
+ * @example "upd4t3d-v4lu3"
7458
+ * @param options.versionCheck - ID of the expected current version for optimistic locking.
7459
+ * @example "c3d4e5f6-7890-abcd-ef12-34567890abcd"
7460
+ * @returns {Promise<VaultObject>}
7461
+ * @throws {BadRequestException} 400
7462
+ * @throws {ConflictException} 409
7463
+ */
7464
+ updateObject(options: UpdateObjectOptions): Promise<VaultObject>;
7465
+ /**
7466
+ * Delete an object
6120
7467
  *
7468
+ * Delete an encrypted object.
7469
+ * @param options - Additional query options.
7470
+ * @param options.id - Unique identifier of the object.
7471
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
7472
+ * @param options.versionCheck - Expected current version for optimistic locking.
7473
+ * @example "c3d4e5f6-7890-abcd-ef12-34567890abcd"
6121
7474
  * @returns {Promise<void>}
6122
- * @throws 403 response from the API.
6123
7475
  * @throws {NotFoundException} 404
7476
+ * @throws {ConflictException} 409
6124
7477
  */
6125
- removeRoleAssignment(options: RemoveRoleAssignmentOptions): Promise<void>;
7478
+ deleteObject(options: DeleteVaultObjectOptions): Promise<void>;
6126
7479
  /**
6127
- * List resources for organization membership
6128
- *
6129
- * Returns all child resources of a parent resource where the organization membership has a specific permission. This is useful for resource discovery—answering "What projects can this user access in this workspace?"
6130
- *
6131
- * You must provide either `parent_resource_id` or both `parent_resource_external_id` and `parent_resource_type_slug` to identify the parent resource.
6132
- * @param organizationMembershipId - The ID of the organization membership.
6133
- *
6134
- * @example
6135
- * "om_01HXYZ123456789ABCDEFGHIJ"
7480
+ * Describe an object
6136
7481
  *
6137
- * @param options - Pagination and filter options.
6138
- * @returns {Promise<AutoPaginatable<AuthorizationResource>>}
7482
+ * Fetch metadata for an object without decrypting it.
7483
+ * @param options - The request options.
7484
+ * @param options.id - Unique identifier of the object.
7485
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
7486
+ * @returns {Promise<VaultObject>}
6139
7487
  * @throws {BadRequestException} 400
6140
- * @throws 403 response from the API.
6141
7488
  * @throws {NotFoundException} 404
6142
- * @throws {UnprocessableEntityException} 422
6143
7489
  */
6144
- listResourcesForMembership(options: ListResourcesForMembershipOptions): Promise<AutoPaginatable<AuthorizationResource>>;
7490
+ describeObject(options: ReadObjectOptions): Promise<VaultObject>;
6145
7491
  /**
6146
- * List organization memberships for resource
7492
+ * List object versions
6147
7493
  *
6148
- * Returns all organization memberships that have a specific permission on a resource instance. This is useful for answering "Who can access this resource?".
6149
- * @param options - Pagination and filter options.
6150
- * @returns {Promise<AutoPaginatable<BaseOrganizationMembership, PaginationOptions>>}
7494
+ * Retrieve all versions for a specific object.
7495
+ * @param options - The request options.
7496
+ * @param options.id - Unique identifier of the object.
7497
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
7498
+ * @returns {Promise<ObjectVersion[]>}
6151
7499
  * @throws {BadRequestException} 400
6152
- * @throws 403 response from the API.
6153
7500
  * @throws {NotFoundException} 404
6154
- * @throws {UnprocessableEntityException} 422
6155
7501
  */
6156
- listMembershipsForResource(options: ListMembershipsForResourceOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
7502
+ listObjectVersions(options: ReadObjectOptions): Promise<VersionListResponse['data']>;
7503
+ private decode;
7504
+ decrypt(encryptedData: string, associatedData?: string): Promise<string>;
7505
+ encrypt(data: string, context: KeyContext, associatedData?: string): Promise<string>;
7506
+ }
7507
+ //#endregion
7508
+ //#region src/workos.d.ts
7509
+ /** WorkOS REST API */
7510
+ declare class WorkOS {
7511
+ readonly baseURL: string;
7512
+ readonly client: HttpClient;
7513
+ readonly clientId?: string;
7514
+ readonly key?: string;
7515
+ readonly options: WorkOSOptions;
7516
+ readonly pkce: PKCE;
7517
+ private readonly hasApiKey;
7518
+ readonly actions: Actions;
7519
+ readonly apiKeys: ApiKeys;
7520
+ readonly auditLogs: AuditLogs;
7521
+ readonly authorization: Authorization;
7522
+ readonly directorySync: DirectorySync;
7523
+ readonly connect: Connect;
7524
+ readonly events: Events;
7525
+ readonly featureFlags: FeatureFlags;
7526
+ readonly groups: Groups;
7527
+ readonly multiFactorAuth: MultiFactorAuth;
7528
+ readonly organizations: Organizations;
7529
+ readonly organizationDomains: OrganizationDomains;
7530
+ readonly passwordless: Passwordless;
7531
+ readonly pipes: Pipes;
7532
+ readonly radar: Radar;
7533
+ readonly adminPortal: AdminPortal;
7534
+ readonly sso: SSO;
7535
+ readonly userManagement: UserManagement;
7536
+ readonly vault: Vault;
7537
+ readonly webhooks: Webhooks;
7538
+ readonly widgets: Widgets;
6157
7539
  /**
6158
- * List memberships for a resource by external ID
7540
+ * Create a new WorkOS client.
6159
7541
  *
6160
- * Returns all organization memberships that have a specific permission on a resource, using the resource's external ID. This is useful for answering "Who can access this resource?" when you only have the external ID.
6161
- * @param organizationId - The ID of the organization that owns the resource.
7542
+ * @param keyOrOptions - API key string, or options object
7543
+ * @param maybeOptions - Options when first argument is API key
6162
7544
  *
6163
7545
  * @example
6164
- * "org_01EHZNVPK3SFK441A1RGBFSHRT"
6165
- *
6166
- * @param resourceTypeSlug - The slug of the resource type this resource belongs to.
7546
+ * // Server-side with API key (string)
7547
+ * const workos = new WorkOS('sk_...');
6167
7548
  *
6168
7549
  * @example
6169
- * "project"
6170
- *
6171
- * @param externalId - An identifier you provide to reference the resource in your system.
7550
+ * // Server-side with API key (object)
7551
+ * const workos = new WorkOS({ apiKey: 'sk_...', clientId: 'client_...' });
6172
7552
  *
6173
7553
  * @example
6174
- * "proj-456"
7554
+ * // PKCE/public client (no API key)
7555
+ * const workos = new WorkOS({ clientId: 'client_...' });
7556
+ */
7557
+ constructor(keyOrOptions?: string | WorkOSOptions, maybeOptions?: WorkOSOptions);
7558
+ private createUserAgent;
7559
+ createWebhookClient(): Webhooks;
7560
+ createActionsClient(): Actions;
7561
+ getCryptoProvider(): CryptoProvider;
7562
+ createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient;
7563
+ get version(): string;
7564
+ /**
7565
+ * Require API key for methods that need it.
7566
+ * @param methodName - Name of the method requiring API key (for error message)
7567
+ * @throws ApiKeyRequiredException if no API key was provided
7568
+ */
7569
+ requireApiKey(methodName: string): void;
7570
+ post<Result = any, Entity = any>(path: string, entity: Entity, options?: PostOptions): Promise<{
7571
+ data: Result;
7572
+ }>;
7573
+ get<Result = any>(path: string, options?: GetOptions): Promise<{
7574
+ data: Result;
7575
+ }>;
7576
+ put<Result = any, Entity = any>(path: string, entity: Entity, options?: PutOptions): Promise<{
7577
+ data: Result;
7578
+ }>;
7579
+ patch<Result = any, Entity = any>(path: string, entity: Entity, options?: PatchOptions): Promise<{
7580
+ data: Result;
7581
+ }>;
7582
+ delete(path: string, query?: any): Promise<void>;
7583
+ deleteWithBody<Entity = any>(path: string, entity: Entity): Promise<void>;
7584
+ emitWarning(warning: string): void;
7585
+ private handleParseError;
7586
+ private handleHttpError;
7587
+ }
7588
+ //#endregion
7589
+ //#region src/webhooks/interfaces/list-webhook-endpoints-options.interface.d.ts
7590
+ type ListWebhookEndpointsOptions = PaginationOptions;
7591
+ //#endregion
7592
+ //#region src/webhooks/interfaces/create-webhook-endpoint-events.interface.d.ts
7593
+ declare const CreateWebhookEndpointEvents: {
7594
+ readonly AuthenticationEmailVerificationSucceeded: "authentication.email_verification_succeeded";
7595
+ readonly AuthenticationMagicAuthFailed: "authentication.magic_auth_failed";
7596
+ readonly AuthenticationMagicAuthSucceeded: "authentication.magic_auth_succeeded";
7597
+ readonly AuthenticationMfaSucceeded: "authentication.mfa_succeeded";
7598
+ readonly AuthenticationOAuthFailed: "authentication.oauth_failed";
7599
+ readonly AuthenticationOAuthSucceeded: "authentication.oauth_succeeded";
7600
+ readonly AuthenticationPasswordFailed: "authentication.password_failed";
7601
+ readonly AuthenticationPasswordSucceeded: "authentication.password_succeeded";
7602
+ readonly AuthenticationPasskeyFailed: "authentication.passkey_failed";
7603
+ readonly AuthenticationPasskeySucceeded: "authentication.passkey_succeeded";
7604
+ readonly AuthenticationSSOFailed: "authentication.sso_failed";
7605
+ readonly AuthenticationSSOStarted: "authentication.sso_started";
7606
+ readonly AuthenticationSSOSucceeded: "authentication.sso_succeeded";
7607
+ readonly AuthenticationSSOTimedOut: "authentication.sso_timed_out";
7608
+ readonly AuthenticationRadarRiskDetected: "authentication.radar_risk_detected";
7609
+ readonly ApiKeyCreated: "api_key.created";
7610
+ readonly ApiKeyRevoked: "api_key.revoked";
7611
+ readonly ConnectionActivated: "connection.activated";
7612
+ readonly ConnectionDeactivated: "connection.deactivated";
7613
+ readonly ConnectionSAMLCertificateRenewalRequired: "connection.saml_certificate_renewal_required";
7614
+ readonly ConnectionSAMLCertificateRenewed: "connection.saml_certificate_renewed";
7615
+ readonly ConnectionDeleted: "connection.deleted";
7616
+ readonly DsyncActivated: "dsync.activated";
7617
+ readonly DsyncDeleted: "dsync.deleted";
7618
+ readonly DsyncGroupCreated: "dsync.group.created";
7619
+ readonly DsyncGroupDeleted: "dsync.group.deleted";
7620
+ readonly DsyncGroupUpdated: "dsync.group.updated";
7621
+ readonly DsyncGroupUserAdded: "dsync.group.user_added";
7622
+ readonly DsyncGroupUserRemoved: "dsync.group.user_removed";
7623
+ readonly DsyncUserCreated: "dsync.user.created";
7624
+ readonly DsyncUserDeleted: "dsync.user.deleted";
7625
+ readonly DsyncUserUpdated: "dsync.user.updated";
7626
+ readonly EmailVerificationCreated: "email_verification.created";
7627
+ readonly GroupCreated: "group.created";
7628
+ readonly GroupDeleted: "group.deleted";
7629
+ readonly GroupMemberAdded: "group.member_added";
7630
+ readonly GroupMemberRemoved: "group.member_removed";
7631
+ readonly GroupUpdated: "group.updated";
7632
+ readonly FlagCreated: "flag.created";
7633
+ readonly FlagDeleted: "flag.deleted";
7634
+ readonly FlagUpdated: "flag.updated";
7635
+ readonly FlagRuleUpdated: "flag.rule_updated";
7636
+ readonly InvitationAccepted: "invitation.accepted";
7637
+ readonly InvitationCreated: "invitation.created";
7638
+ readonly InvitationResent: "invitation.resent";
7639
+ readonly InvitationRevoked: "invitation.revoked";
7640
+ readonly MagicAuthCreated: "magic_auth.created";
7641
+ readonly OrganizationCreated: "organization.created";
7642
+ readonly OrganizationDeleted: "organization.deleted";
7643
+ readonly OrganizationUpdated: "organization.updated";
7644
+ readonly OrganizationDomainCreated: "organization_domain.created";
7645
+ readonly OrganizationDomainDeleted: "organization_domain.deleted";
7646
+ readonly OrganizationDomainUpdated: "organization_domain.updated";
7647
+ readonly OrganizationDomainVerified: "organization_domain.verified";
7648
+ readonly OrganizationDomainVerificationFailed: "organization_domain.verification_failed";
7649
+ readonly PasswordResetCreated: "password_reset.created";
7650
+ readonly PasswordResetSucceeded: "password_reset.succeeded";
7651
+ readonly UserCreated: "user.created";
7652
+ readonly UserUpdated: "user.updated";
7653
+ readonly UserDeleted: "user.deleted";
7654
+ readonly OrganizationMembershipCreated: "organization_membership.created";
7655
+ readonly OrganizationMembershipDeleted: "organization_membership.deleted";
7656
+ readonly OrganizationMembershipUpdated: "organization_membership.updated";
7657
+ readonly RoleCreated: "role.created";
7658
+ readonly RoleDeleted: "role.deleted";
7659
+ readonly RoleUpdated: "role.updated";
7660
+ readonly OrganizationRoleCreated: "organization_role.created";
7661
+ readonly OrganizationRoleDeleted: "organization_role.deleted";
7662
+ readonly OrganizationRoleUpdated: "organization_role.updated";
7663
+ readonly PermissionCreated: "permission.created";
7664
+ readonly PermissionDeleted: "permission.deleted";
7665
+ readonly PermissionUpdated: "permission.updated";
7666
+ readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
7667
+ readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
7668
+ readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
7669
+ readonly SessionCreated: "session.created";
7670
+ readonly SessionRevoked: "session.revoked";
7671
+ readonly WaitlistUserApproved: "waitlist_user.approved";
7672
+ readonly WaitlistUserCreated: "waitlist_user.created";
7673
+ readonly WaitlistUserDenied: "waitlist_user.denied";
7674
+ };
7675
+ type CreateWebhookEndpointEvents = (typeof CreateWebhookEndpointEvents)[keyof typeof CreateWebhookEndpointEvents];
7676
+ //#endregion
7677
+ //#region src/webhooks/interfaces/create-webhook-endpoint-options.interface.d.ts
7678
+ interface CreateWebhookEndpointOptions {
7679
+ /** The HTTPS URL where webhooks will be sent. */
7680
+ endpointUrl: string;
7681
+ /** The events that the Webhook Endpoint is subscribed to. */
7682
+ events: CreateWebhookEndpointEvents[];
7683
+ }
7684
+ //#endregion
7685
+ //#region src/webhooks/interfaces/update-webhook-endpoint-status.interface.d.ts
7686
+ declare const UpdateWebhookEndpointStatus: {
7687
+ readonly Enabled: "enabled";
7688
+ readonly Disabled: "disabled";
7689
+ };
7690
+ type UpdateWebhookEndpointStatus = (typeof UpdateWebhookEndpointStatus)[keyof typeof UpdateWebhookEndpointStatus];
7691
+ //#endregion
7692
+ //#region src/webhooks/interfaces/update-webhook-endpoint-events.interface.d.ts
7693
+ declare const UpdateWebhookEndpointEvents: {
7694
+ readonly AuthenticationEmailVerificationSucceeded: "authentication.email_verification_succeeded";
7695
+ readonly AuthenticationMagicAuthFailed: "authentication.magic_auth_failed";
7696
+ readonly AuthenticationMagicAuthSucceeded: "authentication.magic_auth_succeeded";
7697
+ readonly AuthenticationMfaSucceeded: "authentication.mfa_succeeded";
7698
+ readonly AuthenticationOAuthFailed: "authentication.oauth_failed";
7699
+ readonly AuthenticationOAuthSucceeded: "authentication.oauth_succeeded";
7700
+ readonly AuthenticationPasswordFailed: "authentication.password_failed";
7701
+ readonly AuthenticationPasswordSucceeded: "authentication.password_succeeded";
7702
+ readonly AuthenticationPasskeyFailed: "authentication.passkey_failed";
7703
+ readonly AuthenticationPasskeySucceeded: "authentication.passkey_succeeded";
7704
+ readonly AuthenticationSSOFailed: "authentication.sso_failed";
7705
+ readonly AuthenticationSSOStarted: "authentication.sso_started";
7706
+ readonly AuthenticationSSOSucceeded: "authentication.sso_succeeded";
7707
+ readonly AuthenticationSSOTimedOut: "authentication.sso_timed_out";
7708
+ readonly AuthenticationRadarRiskDetected: "authentication.radar_risk_detected";
7709
+ readonly ApiKeyCreated: "api_key.created";
7710
+ readonly ApiKeyRevoked: "api_key.revoked";
7711
+ readonly ConnectionActivated: "connection.activated";
7712
+ readonly ConnectionDeactivated: "connection.deactivated";
7713
+ readonly ConnectionSAMLCertificateRenewalRequired: "connection.saml_certificate_renewal_required";
7714
+ readonly ConnectionSAMLCertificateRenewed: "connection.saml_certificate_renewed";
7715
+ readonly ConnectionDeleted: "connection.deleted";
7716
+ readonly DsyncActivated: "dsync.activated";
7717
+ readonly DsyncDeleted: "dsync.deleted";
7718
+ readonly DsyncGroupCreated: "dsync.group.created";
7719
+ readonly DsyncGroupDeleted: "dsync.group.deleted";
7720
+ readonly DsyncGroupUpdated: "dsync.group.updated";
7721
+ readonly DsyncGroupUserAdded: "dsync.group.user_added";
7722
+ readonly DsyncGroupUserRemoved: "dsync.group.user_removed";
7723
+ readonly DsyncUserCreated: "dsync.user.created";
7724
+ readonly DsyncUserDeleted: "dsync.user.deleted";
7725
+ readonly DsyncUserUpdated: "dsync.user.updated";
7726
+ readonly EmailVerificationCreated: "email_verification.created";
7727
+ readonly GroupCreated: "group.created";
7728
+ readonly GroupDeleted: "group.deleted";
7729
+ readonly GroupMemberAdded: "group.member_added";
7730
+ readonly GroupMemberRemoved: "group.member_removed";
7731
+ readonly GroupUpdated: "group.updated";
7732
+ readonly FlagCreated: "flag.created";
7733
+ readonly FlagDeleted: "flag.deleted";
7734
+ readonly FlagUpdated: "flag.updated";
7735
+ readonly FlagRuleUpdated: "flag.rule_updated";
7736
+ readonly InvitationAccepted: "invitation.accepted";
7737
+ readonly InvitationCreated: "invitation.created";
7738
+ readonly InvitationResent: "invitation.resent";
7739
+ readonly InvitationRevoked: "invitation.revoked";
7740
+ readonly MagicAuthCreated: "magic_auth.created";
7741
+ readonly OrganizationCreated: "organization.created";
7742
+ readonly OrganizationDeleted: "organization.deleted";
7743
+ readonly OrganizationUpdated: "organization.updated";
7744
+ readonly OrganizationDomainCreated: "organization_domain.created";
7745
+ readonly OrganizationDomainDeleted: "organization_domain.deleted";
7746
+ readonly OrganizationDomainUpdated: "organization_domain.updated";
7747
+ readonly OrganizationDomainVerified: "organization_domain.verified";
7748
+ readonly OrganizationDomainVerificationFailed: "organization_domain.verification_failed";
7749
+ readonly PasswordResetCreated: "password_reset.created";
7750
+ readonly PasswordResetSucceeded: "password_reset.succeeded";
7751
+ readonly UserCreated: "user.created";
7752
+ readonly UserUpdated: "user.updated";
7753
+ readonly UserDeleted: "user.deleted";
7754
+ readonly OrganizationMembershipCreated: "organization_membership.created";
7755
+ readonly OrganizationMembershipDeleted: "organization_membership.deleted";
7756
+ readonly OrganizationMembershipUpdated: "organization_membership.updated";
7757
+ readonly RoleCreated: "role.created";
7758
+ readonly RoleDeleted: "role.deleted";
7759
+ readonly RoleUpdated: "role.updated";
7760
+ readonly OrganizationRoleCreated: "organization_role.created";
7761
+ readonly OrganizationRoleDeleted: "organization_role.deleted";
7762
+ readonly OrganizationRoleUpdated: "organization_role.updated";
7763
+ readonly PermissionCreated: "permission.created";
7764
+ readonly PermissionDeleted: "permission.deleted";
7765
+ readonly PermissionUpdated: "permission.updated";
7766
+ readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
7767
+ readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
7768
+ readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
7769
+ readonly SessionCreated: "session.created";
7770
+ readonly SessionRevoked: "session.revoked";
7771
+ readonly WaitlistUserApproved: "waitlist_user.approved";
7772
+ readonly WaitlistUserCreated: "waitlist_user.created";
7773
+ readonly WaitlistUserDenied: "waitlist_user.denied";
7774
+ };
7775
+ type UpdateWebhookEndpointEvents = (typeof UpdateWebhookEndpointEvents)[keyof typeof UpdateWebhookEndpointEvents];
7776
+ //#endregion
7777
+ //#region src/webhooks/interfaces/update-webhook-endpoint-options.interface.d.ts
7778
+ interface UpdateWebhookEndpointOptions {
7779
+ /** Unique identifier of the Webhook Endpoint. */
7780
+ id: string;
7781
+ /** The HTTPS URL where webhooks will be sent. */
7782
+ endpointUrl?: string;
7783
+ /** Whether the Webhook Endpoint is enabled or disabled. */
7784
+ status?: UpdateWebhookEndpointStatus;
7785
+ /** The events that the Webhook Endpoint is subscribed to. */
7786
+ events?: UpdateWebhookEndpointEvents[];
7787
+ }
7788
+ //#endregion
7789
+ //#region src/webhooks/interfaces/delete-webhook-endpoint-options.interface.d.ts
7790
+ interface DeleteWebhookEndpointOptions {
7791
+ /** Unique identifier of the Webhook Endpoint. */
7792
+ id: string;
7793
+ }
7794
+ //#endregion
7795
+ //#region src/webhooks/interfaces/webhook-endpoint-status.interface.d.ts
7796
+ declare const WebhookEndpointStatus: {
7797
+ readonly Enabled: "enabled";
7798
+ readonly Disabled: "disabled";
7799
+ };
7800
+ type WebhookEndpointStatus = (typeof WebhookEndpointStatus)[keyof typeof WebhookEndpointStatus];
7801
+ //#endregion
7802
+ //#region src/webhooks/interfaces/webhook-endpoint.interface.d.ts
7803
+ interface WebhookEndpoint {
7804
+ /** Distinguishes the Webhook Endpoint object. */
7805
+ object: 'webhook_endpoint';
7806
+ /** Unique identifier of the Webhook Endpoint. */
7807
+ id: string;
7808
+ /** The URL to which webhooks are sent. */
7809
+ endpointUrl: string;
7810
+ /** The secret used to sign webhook payloads. */
7811
+ secret: string;
7812
+ /** Whether the Webhook Endpoint is enabled or disabled. */
7813
+ status: WebhookEndpointStatus;
7814
+ /** The events that the Webhook Endpoint is subscribed to. */
7815
+ events: string[];
7816
+ /** An ISO 8601 timestamp. */
7817
+ createdAt: Date;
7818
+ /** An ISO 8601 timestamp. */
7819
+ updatedAt: Date;
7820
+ }
7821
+ interface WebhookEndpointResponse {
7822
+ object: 'webhook_endpoint';
7823
+ id: string;
7824
+ endpoint_url: string;
7825
+ secret: string;
7826
+ status: WebhookEndpointStatus;
7827
+ events: string[];
7828
+ created_at: string;
7829
+ updated_at: string;
7830
+ }
7831
+ //#endregion
7832
+ //#region src/webhooks/webhooks.d.ts
7833
+ declare class Webhooks {
7834
+ private readonly workos;
7835
+ constructor(workos: WorkOS);
7836
+ /**
7837
+ * List Webhook Endpoints
6175
7838
  *
7839
+ * Get a list of all of your existing webhook endpoints.
6176
7840
  * @param options - Pagination and filter options.
6177
- * @returns {Promise<AutoPaginatable<UserOrganizationMembershipBaseListData>>}
6178
- * @throws {BadRequestException} 400
6179
- * @throws 403 response from the API.
6180
- * @throws {NotFoundException} 404
6181
- * @throws {UnprocessableEntityException} 422
7841
+ * @returns {Promise<AutoPaginatable<WebhookEndpoint, PaginationOptions>>}
6182
7842
  */
6183
- listMembershipsForResourceByExternalId(options: ListMembershipsForResourceByExternalIdOptions): Promise<AutoPaginatable<AuthorizationOrganizationMembership>>;
7843
+ listWebhookEndpoints(options?: ListWebhookEndpointsOptions): Promise<AutoPaginatable<WebhookEndpoint, PaginationOptions>>;
6184
7844
  /**
6185
- * List effective permissions for an organization membership on a resource
6186
- *
6187
- * Returns all permissions the organization membership effectively has on a resource, including permissions inherited through roles assigned to ancestor resources.
6188
- * @param organizationMembershipId - The ID of the organization membership.
6189
- *
6190
- * @example
6191
- * "om_01HXYZ123456789ABCDEFGHIJ"
6192
- *
6193
- * @param resourceId - The ID of the authorization resource.
7845
+ * Create a Webhook Endpoint
6194
7846
  *
6195
- * @example
6196
- * "authz_resource_01HXYZ123456789ABCDEFGHIJ"
7847
+ * Create a new webhook endpoint to receive event notifications.
7848
+ * @param options - Object containing endpointUrl, events.
7849
+ * @param options.endpointUrl - The HTTPS URL where webhooks will be sent.
7850
+ * @example "https://example.com/webhooks"
7851
+ * @param options.events - The events that the Webhook Endpoint is subscribed to.
7852
+ * @example ["user.created","dsync.user.created"]
7853
+ * @returns {Promise<WebhookEndpoint>}
7854
+ * @throws {ConflictException} 409
7855
+ * @throws {UnprocessableEntityException} 422
7856
+ */
7857
+ createWebhookEndpoint(options: CreateWebhookEndpointOptions): Promise<WebhookEndpoint>;
7858
+ /**
7859
+ * Update a Webhook Endpoint
6197
7860
  *
6198
- * @param options - Pagination and filter options.
6199
- * @returns {Promise<AutoPaginatable<AuthorizationPermission>>}
6200
- * @throws 403 response from the API.
7861
+ * Update the properties of an existing webhook endpoint.
7862
+ * @param options - The request body.
7863
+ * @param options.id - Unique identifier of the Webhook Endpoint.
7864
+ * @example "we_0123456789"
7865
+ * @param options.endpointUrl - The HTTPS URL where webhooks will be sent.
7866
+ * @example "https://example.com/webhooks"
7867
+ * @param options.status - Whether the Webhook Endpoint is enabled or disabled.
7868
+ * @example "enabled"
7869
+ * @param options.events - The events that the Webhook Endpoint is subscribed to.
7870
+ * @example ["user.created","dsync.user.created"]
7871
+ * @returns {Promise<WebhookEndpoint>}
6201
7872
  * @throws {NotFoundException} 404
7873
+ * @throws {ConflictException} 409
6202
7874
  * @throws {UnprocessableEntityException} 422
6203
7875
  */
6204
- listEffectivePermissions(options: ListEffectivePermissionsOptions): Promise<AutoPaginatable<Permission>>;
7876
+ updateWebhookEndpoint(options: UpdateWebhookEndpointOptions): Promise<WebhookEndpoint>;
6205
7877
  /**
6206
- * List effective permissions for an organization membership on a resource by external ID
7878
+ * Delete a Webhook Endpoint
6207
7879
  *
6208
- * 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.
6209
- * @param options - Pagination and filter options.
6210
- * @returns {Promise<AutoPaginatable<Permission, PaginationOptions>>}
6211
- * @throws 403 response from the API.
7880
+ * Delete an existing webhook endpoint.
7881
+ * @param options - The request options.
7882
+ * @param options.id - Unique identifier of the Webhook Endpoint.
7883
+ * @example "we_0123456789"
7884
+ * @returns {Promise<void>}
6212
7885
  * @throws {NotFoundException} 404
6213
- * @throws {UnprocessableEntityException} 422
6214
7886
  */
6215
- listEffectivePermissionsByExternalId(options: ListEffectivePermissionsByExternalIdOptions): Promise<AutoPaginatable<Permission>>;
7887
+ deleteWebhookEndpoint(options: DeleteWebhookEndpointOptions): Promise<void>;
7888
+ private _signatureProvider?;
7889
+ private get signatureProvider();
7890
+ get verifyHeader(): ({
7891
+ payload,
7892
+ sigHeader,
7893
+ secret,
7894
+ tolerance
7895
+ }: {
7896
+ payload: WebhookPayload;
7897
+ sigHeader: string;
7898
+ secret: string;
7899
+ tolerance?: number;
7900
+ }) => Promise<boolean>;
7901
+ get computeSignature(): (timestamp: any, payload: WebhookPayload, secret: string) => Promise<string>;
7902
+ get getTimestampAndSignatureHash(): (sigHeader: string) => [string, string];
7903
+ constructEvent({
7904
+ payload,
7905
+ sigHeader,
7906
+ secret,
7907
+ tolerance
7908
+ }: {
7909
+ payload: WebhookPayload;
7910
+ sigHeader: string;
7911
+ secret: string;
7912
+ tolerance?: number;
7913
+ }): Promise<Event>;
7914
+ private parseVerifiedPayload;
6216
7915
  }
6217
7916
  //#endregion
6218
7917
  //#region src/common/exceptions/api-key-required.exception.d.ts
@@ -6538,216 +8237,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
6538
8237
  declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
6539
8238
  declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
6540
8239
  //#endregion
6541
- //#region src/index.worker.d.ts
6542
- declare class WorkOSWorker extends WorkOS {
6543
- /** @override */
6544
- createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient;
6545
- /** @override */
6546
- createWebhookClient(): Webhooks;
6547
- getCryptoProvider(): CryptoProvider;
6548
- /** @override */
6549
- createActionsClient(): Actions;
6550
- /** @override */
6551
- emitWarning(warning: string): void;
6552
- }
6553
- //#endregion
6554
- //#region src/vault/interfaces/key/create-data-key.interface.d.ts
6555
- interface CreateDataKeyOptions {
6556
- context: KeyContext;
6557
- }
6558
- interface CreateDataKeyResponse {
6559
- context: KeyContext;
6560
- data_key: string;
6561
- encrypted_keys: string;
6562
- id: string;
6563
- }
6564
- //#endregion
6565
- //#region src/vault/interfaces/key/decrypt-data-key.interface.d.ts
6566
- interface DecryptDataKeyOptions {
6567
- keys: string;
6568
- }
6569
- interface DecryptDataKeyResponse {
6570
- data_key: string;
6571
- id: string;
6572
- }
6573
- //#endregion
6574
- //#region src/vault/interfaces/object/create-object.interface.d.ts
6575
- interface CreateObjectEntity {
6576
- name: string;
6577
- value: string;
6578
- key_context: KeyContext;
6579
- }
6580
- interface CreateObjectOptions {
6581
- name: string;
6582
- value: string;
6583
- context: KeyContext;
6584
- }
6585
- //#endregion
6586
- //#region src/vault/interfaces/object/delete-object.interface.d.ts
6587
- interface DeleteObjectOptions {
6588
- id: string;
6589
- }
6590
- //#endregion
6591
- //#region src/vault/interfaces/object.interface.d.ts
6592
- interface ObjectDigest {
6593
- id: string;
6594
- name: string;
6595
- updatedAt: Date;
6596
- }
6597
- interface ObjectUpdateBy {
6598
- id: string;
6599
- name: string;
6600
- }
6601
- interface ObjectMetadata {
6602
- context: KeyContext;
6603
- environmentId: string;
6604
- id: string;
6605
- keyId: string;
6606
- updatedAt: Date;
6607
- updatedBy: ObjectUpdateBy;
6608
- versionId: string;
6609
- }
6610
- interface VaultObject {
6611
- id: string;
6612
- metadata: ObjectMetadata;
6613
- name: string;
6614
- value?: string;
6615
- }
6616
- interface ObjectVersion {
6617
- createdAt: Date;
6618
- currentVersion: boolean;
6619
- id: string;
6620
- }
6621
- //#endregion
6622
- //#region src/vault/interfaces/object/read-object.interface.d.ts
6623
- interface ReadObjectOptions {
6624
- id: string;
6625
- }
6626
- interface ReadObjectMetadataResponse {
6627
- context: KeyContext;
6628
- environment_id: string;
6629
- id: string;
6630
- key_id: string;
6631
- updated_at: string;
6632
- updated_by: ObjectUpdateBy;
6633
- version_id: string;
6634
- }
6635
- interface ReadObjectResponse {
6636
- id: string;
6637
- metadata: ReadObjectMetadataResponse;
6638
- name: string;
6639
- value?: string;
6640
- }
6641
- //#endregion
6642
- //#region src/vault/interfaces/object/update-object.interface.d.ts
6643
- interface UpdateObjectEntity {
6644
- value: string;
6645
- version_check?: string;
6646
- }
6647
- interface UpdateObjectOptions {
6648
- id: string;
6649
- value: string;
6650
- versionCheck?: string;
6651
- }
6652
- //#endregion
6653
- //#region src/vault/vault.d.ts
6654
- declare class Vault {
6655
- private readonly workos;
6656
- private cryptoProvider;
6657
- constructor(workos: WorkOS);
6658
- private decode;
6659
- createObject(options: CreateObjectOptions): Promise<ObjectMetadata>;
6660
- listObjects(options?: PaginationOptions | undefined): Promise<List<ObjectDigest>>;
6661
- listObjectVersions(options: ReadObjectOptions): Promise<ObjectVersion[]>;
6662
- readObject(options: ReadObjectOptions): Promise<VaultObject>;
6663
- readObjectByName(name: string): Promise<VaultObject>;
6664
- describeObject(options: ReadObjectOptions): Promise<VaultObject>;
6665
- updateObject(options: UpdateObjectOptions): Promise<VaultObject>;
6666
- deleteObject(options: DeleteObjectOptions): Promise<void>;
6667
- createDataKey(options: CreateDataKeyOptions): Promise<DataKeyPair>;
6668
- decryptDataKey(options: DecryptDataKeyOptions): Promise<DataKey>;
6669
- encrypt(data: string, context: KeyContext, associatedData?: string): Promise<string>;
6670
- decrypt(encryptedData: string, associatedData?: string): Promise<string>;
6671
- }
6672
- //#endregion
6673
- //#region src/workos.d.ts
6674
- /** WorkOS REST API */
6675
- declare class WorkOS {
6676
- readonly baseURL: string;
6677
- readonly client: HttpClient;
6678
- readonly clientId?: string;
6679
- readonly key?: string;
6680
- readonly options: WorkOSOptions;
6681
- readonly pkce: PKCE;
6682
- private readonly hasApiKey;
6683
- readonly actions: Actions;
6684
- readonly apiKeys: ApiKeys;
6685
- readonly auditLogs: AuditLogs;
6686
- readonly authorization: Authorization;
6687
- readonly directorySync: DirectorySync;
6688
- readonly events: Events;
6689
- readonly featureFlags: FeatureFlags;
6690
- readonly groups: Groups;
6691
- readonly multiFactorAuth: MultiFactorAuth;
6692
- readonly organizations: Organizations;
6693
- readonly organizationDomains: OrganizationDomains;
6694
- readonly passwordless: Passwordless;
6695
- readonly pipes: Pipes;
6696
- readonly adminPortal: AdminPortal;
6697
- readonly sso: SSO;
6698
- readonly userManagement: UserManagement;
6699
- readonly vault: Vault;
6700
- readonly webhooks: Webhooks;
6701
- readonly widgets: Widgets;
6702
- /**
6703
- * Create a new WorkOS client.
6704
- *
6705
- * @param keyOrOptions - API key string, or options object
6706
- * @param maybeOptions - Options when first argument is API key
6707
- *
6708
- * @example
6709
- * // Server-side with API key (string)
6710
- * const workos = new WorkOS('sk_...');
6711
- *
6712
- * @example
6713
- * // Server-side with API key (object)
6714
- * const workos = new WorkOS({ apiKey: 'sk_...', clientId: 'client_...' });
6715
- *
6716
- * @example
6717
- * // PKCE/public client (no API key)
6718
- * const workos = new WorkOS({ clientId: 'client_...' });
6719
- */
6720
- constructor(keyOrOptions?: string | WorkOSOptions, maybeOptions?: WorkOSOptions);
6721
- private createUserAgent;
6722
- createWebhookClient(): Webhooks;
6723
- createActionsClient(): Actions;
6724
- getCryptoProvider(): CryptoProvider;
6725
- createHttpClient(options: WorkOSOptions, userAgent: string): HttpClient;
6726
- get version(): string;
6727
- /**
6728
- * Require API key for methods that need it.
6729
- * @param methodName - Name of the method requiring API key (for error message)
6730
- * @throws ApiKeyRequiredException if no API key was provided
6731
- */
6732
- requireApiKey(methodName: string): void;
6733
- post<Result = any, Entity = any>(path: string, entity: Entity, options?: PostOptions): Promise<{
6734
- data: Result;
6735
- }>;
6736
- get<Result = any>(path: string, options?: GetOptions): Promise<{
6737
- data: Result;
6738
- }>;
6739
- put<Result = any, Entity = any>(path: string, entity: Entity, options?: PutOptions): Promise<{
6740
- data: Result;
6741
- }>;
6742
- patch<Result = any, Entity = any>(path: string, entity: Entity, options?: PatchOptions): Promise<{
6743
- data: Result;
6744
- }>;
6745
- delete(path: string, query?: any): Promise<void>;
6746
- deleteWithBody<Entity = any>(path: string, entity: Entity): Promise<void>;
6747
- emitWarning(warning: string): void;
6748
- private handleParseError;
6749
- private handleHttpError;
6750
- }
6751
- //#endregion
6752
- 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 };
6753
- //# sourceMappingURL=workos-D5a84gFU.d.mts.map
8240
+ export { ReadObjectMetadataResponse as $, PermissionDeletedEvent as $a, UserManagementAuthorizationURLOptions as $c, ListDirectoryUsersOptions as $d, GroupDeletedEvent as $i, AuthenticateWithOptionsBase as $l, UserConsentOptionChoiceResponse as $n, SerializedCreateGroupOptions as $o, AuthenticationPasskeySucceededEvent as $r, ResendInvitationOptions as $s, RadarStandaloneResponseVerdict as $t, RoleAssignmentResource as $u, ApiKeyRequiredException as A, OrganizationDomainVerificationFailedEventResponse as Aa, SerializedListInvitationsOptions as Ac, UpdatePermissionOptions as Ad, DsyncGroupUserRemovedEventResponse as Ai, ImpersonatorResponse as Al, ConnectApplicationResponse as An, VaultDekDecryptedEvent as Ao, PatchOptions as Ar, OrganizationDomainVerificationStrategy as As, AuditLogExport as At, RoleEvent as Au, ObjectSummaryResponse as B, OrganizationRoleCreatedEventResponse as Ba, EmailVerification as Bc, CreateOrganizationRoleOptions as Bd, EventBase as Bi, AuthenticateWithOrganizationSelectionOptions as Bl, GetApplicationOptions as Bn, DataKey as Bo, AuthenticationEmailVerificationSucceededEventResponse as Br, UpdateOrganizationMembershipOptions as Bs, FactorWithSecretsResponse as Bt, RemoveRoleOptionsWithResourceId as Bu, BadRequestException as C, OrganizationDomainCreatedEvent as Ca, AuthorizationOrganizationMembershipResponse as Cc, CreateOptionsWithParentExternalId as Cd, DsyncGroupDeletedEvent as Ci, AuthenticationResponse as Cl, ApplicationCredentialsListItem as Cn, VaultDataCreatedEventResponse as Co, DomainData as Cr, ApiKey as Cs, CreateAuditLogEventRequestOptions as Ct, DirectoryUserWithGroups as Cu, isAuthenticationErrorData as D, OrganizationDomainUpdatedEvent as Da, OrganizationMembershipResponse as Dc, UpdateAuthorizationResourceOptions as Dd, DsyncGroupUserAddedEvent as Di, User as Dl, ConnectApplicationM2MResponse as Dn, VaultDataReadEventResponse as Do, UnprocessableEntityError as Dr, OrganizationDomain as Ds, AuditLogSchemaMetadata as Dt, OrganizationRoleEventResponse as Du, AuthenticationException as E, OrganizationDomainDeletedEventResponse as Ea, OrganizationMembership as Ec, SerializedUpdateAuthorizationResourceOptions as Ed, DsyncGroupUpdatedEventResponse as Ei, CreateUserResponseResponse as El, ConnectApplicationM2M as En, VaultDataReadEvent as Eo, WorkOSOptions as Er, OrganizationDomainVerificationFailedResponse as Es, AuditLogSchema as Et, OrganizationRoleEvent as Eu, UpdateWebhookEndpointEvents as F, OrganizationMembershipDeleted as Fa, InvitationEventResponse as Fc, RemoveOrganizationRolePermissionOptions as Fd, DsyncUserUpdatedEvent as Fi, SerializedAuthenticateWithRefreshTokenOptions as Fl, DeleteClientSecretOptions as Fn, VaultKekCreatedEventResponse as Fo, ApiKeyCreatedEvent as Fr, SerializedUpdateUserPasswordOptions as Fs, VerifyResponseResponse as Ft, ListEffectivePermissionsOptions as Fu, ObjectMetadata as G, OrganizationUpdatedEvent as Ga, SerializedCreateUserOptions as Gc, SerializedUpdateEnvironmentRoleOptions as Gd, FlagDeletedEvent as Gi, AuthenticateUserWithEmailVerificationCredentials as Gl, CreateOAuthApplicationResponse as Gn, RemoveGroupOrganizationMembershipOptions as Go, AuthenticationMfaSucceededEvent as Gr, SendVerificationEmailOptions as Gs, ChallengeResponse as Gt, BaseAssignRoleOptions as Gu, ObjectVersionResponse as H, OrganizationRoleDeletedEventResponse as Ha, EmailVerificationEventResponse as Hc, OrganizationRole as Hd, EventResponse as Hi, AuthenticateUserWithMagicAuthCredentials as Hl, CreateM2MApplication as Hn, KeyContext as Ho, AuthenticationMagicAuthFailedEventResponse as Hr, Session as Hs, SmsResponse as Ht, AssignRoleOptions as Hu, UpdateWebhookEndpointStatus as I, OrganizationMembershipDeletedResponse as Ia, InvitationResponse as Ic, AddOrganizationRolePermissionOptions as Id, DsyncUserUpdatedEventResponse as Ii, AuthenticateUserWithPasswordCredentials as Il, CreateApplicationClientSecretOptions as In, VaultMetadataReadEvent as Io, ApiKeyCreatedEventResponse as Ir, UpdateUserPasswordOptions as Is, VerifyChallengeOptions as It, RemoveRoleAssignmentOptions as Iu, ActorResponse as J, PasswordResetCreatedEventResponse as Ja, CreateOrganizationMembershipOptions as Jc, SerializedCreateEnvironmentRoleOptions as Jd, FlagRuleUpdatedEventResponse as Ji, AuthenticateWithCodeAndVerifierOptions as Jl, ListApplicationsOptions as Jn, Group as Jo, AuthenticationOAuthFailedEventResponse as Jr, RevokeSessionOptions as Js, RadarListEntryAlreadyPresentResponseWire as Jt, ListRoleAssignmentsForResourceOptions as Ju, ObjectMetadataResponse as K, OrganizationUpdatedResponse as Ka, CreatePasswordResetOptions as Kc, UpdateEnvironmentRoleOptions as Kd, FlagDeletedEventResponse as Ki, AuthenticateWithEmailVerificationOptions as Kl, RedirectUriInput as Kn, ListGroupsOptions as Ko, AuthenticationMfaSucceededEventResponse as Kr, SendInvitationOptions as Ks, ChallengeFactorOptions as Kt, SerializedAssignRoleOptions as Ku, CreateWebhookEndpointEvents as L, OrganizationMembershipUpdated as La, Identity as Lc, SetOrganizationRolePermissionsOptions as Ld, EmailVerificationCreatedEvent as Li, AuthenticateWithPasswordOptions as Ll, ListApplicationClientSecretsOptions as Ln, VaultMetadataReadEventResponse as Lo, ApiKeyRevokedEvent as Lr, SerializedUpdateUserOptions as Ls, Factor as Lt, BaseRemoveRoleOptions as Lu, WebhookEndpoint as M, OrganizationDomainVerifiedEventResponse as Ma, ListAuthFactorsOptions as Mc, SerializedCreatePermissionOptions as Md, DsyncUserCreatedEventResponse as Mi, SerializedAuthenticateWithRefreshTokenPublicClientOptions as Ml, ConnectApplicationRedirectUriResponse as Mn, VaultDekReadEvent as Mo, ListResponse as Mr, SerializedCreateOrganizationDomainOptions as Ms, AuditLogExportOptions as Mt, RoleList as Mu, WebhookEndpointResponse as N, OrganizationMembershipCreated as Na, Invitation as Nc, Permission as Nd, DsyncUserDeletedEvent as Ni, AuthenticateUserWithRefreshTokenCredentials as Nl, ExternalAuthCompleteResponse as Nn, VaultDekReadEventResponse as No, GetOptions as Nr, SerializedVerifyEmailOptions as Ns, SerializedAuditLogExportOptions as Nt, RoleResponse as Nu, GenericServerException as O, OrganizationDomainUpdatedEventResponse as Oa, OrganizationMembershipStatus as Oc, ListPermissionsOptions as Od, DsyncGroupUserAddedEventResponse as Oi, UserResponse as Ol, ConnectApplicationOAuth as On, VaultDataUpdatedEvent as Oo, PutOptions as Or, OrganizationDomainResponse as Os, AuditLogSchemaResponse as Ot, OrganizationRoleResponse as Ou, WebhookEndpointStatus as P, OrganizationMembershipCreatedResponse as Pa, InvitationEvent as Pc, PermissionResponse as Pd, DsyncUserDeletedEventResponse as Pi, AuthenticateWithRefreshTokenOptions as Pl, ExternalAuthCompleteResponseWire as Pn, VaultKekCreatedEvent as Po, GenerateLinkIntent as Pr, VerifyEmailOptions as Ps, VerifyResponse as Pt, ListEffectivePermissionsByExternalIdOptions as Pu, UpdateObjectOptions as Q, PermissionCreatedEventResponse as Qa, PKCEAuthorizationURLResult as Qc, EnvironmentRoleResponse as Qd, GroupCreatedEventResponse as Qi, SerializedAuthenticateWithCodeOptions as Ql, UserConsentOptionChoice as Qn, CreateGroupOptions as Qo, AuthenticationPasskeyFailedEventResponse as Qr, SerializedResetPasswordOptions as Qs, RadarStandaloneResponseControl as Qt, RoleAssignment as Qu, WorkOS as R, OrganizationMembershipUpdatedResponse as Ra, EnrollAuthFactorOptions as Rc, SerializedUpdateOrganizationRoleOptions as Rd, EmailVerificationCreatedEventResponse as Ri, SerializedAuthenticateWithPasswordOptions as Rl, DeleteApplicationOptions as Rn, VaultNamesListedEvent as Ro, ApiKeyRevokedEventResponse as Rr, UpdateUserOptions as Rs, FactorResponse as Rt, RemoveRoleOptions as Ru, ConflictException as S, OrganizationDeletedResponse as Sa, AuthorizationOrganizationMembership as Sc, CreateAuthorizationResourceOptions as Sd, DsyncGroupCreatedEventResponse as Si, UserManagementAccessToken as Sl, NewConnectApplicationSecretResponse as Sn, VaultDataCreatedEvent as So, SerializedCreateOrganizationOptions as Sr, SerializedCreateOrganizationApiKeyOptions as Ss, CreateAuditLogEventOptions as St, DirectoryUserResponse as Su, AuthenticationErrorData as T, OrganizationDomainDeletedEvent as Ta, BaseOrganizationMembershipResponse as Tc, SerializedCreateAuthorizationResourceOptions as Td, DsyncGroupUpdatedEvent as Ti, CreateUserResponse as Tl, ConnectApplication as Tn, VaultDataDeletedEventResponse as To, WorkOSResponseError as Tr, OrganizationDomainVerificationFailed as Ts, AuditLogActorSchema as Tt, ListOrganizationRolesResponse as Tu, VaultObject as U, OrganizationRoleUpdatedEvent as Ua, EmailVerificationResponse as Uc, AddEnvironmentRolePermissionOptions as Ud, FlagCreatedEvent as Ui, AuthenticateWithMagicAuthOptions as Ul, CreateM2MApplicationResponse as Un, SerializedUpdateGroupOptions as Uo, AuthenticationMagicAuthSucceededEvent as Ur, SessionResponse as Us, EnrollFactorOptions as Ut, AssignRoleOptionsWithResourceExternalId as Uu, ObjectVersion as V, OrganizationRoleDeletedEvent as Va, EmailVerificationEvent as Vc, SerializedCreateOrganizationRoleOptions as Vd, EventName as Vi, SerializedAuthenticateWithOrganizationSelectionOptions as Vl, CreateApplicationOptions as Vn, DataKeyPair as Vo, AuthenticationMagicAuthFailedEvent as Vr, AuthMethod as Vs, Sms as Vt, SerializedRemoveRoleOptions as Vu, VaultObjectResponse as W, OrganizationRoleUpdatedEventResponse as Wa, CreateUserOptions as Wc, SetEnvironmentRolePermissionsOptions as Wd, FlagCreatedEventResponse as Wi, SerializedAuthenticateWithMagicAuthOptions as Wl, CreateOAuthApplication as Wn, UpdateGroupOptions as Wo, AuthenticationMagicAuthSucceededEventResponse as Wr, SessionStatus as Ws, Challenge as Wt, AssignRoleOptionsWithResourceId as Wu, CreateDataKeyResponseWire as X, PasswordResetSucceededEventResponse as Xa, CreateMagicAuthOptions as Xc, EnvironmentRoleList as Xd, FlagUpdatedEventResponse as Xi, AuthenticateUserWithCodeCredentials as Xl, UserConsentOption as Xn, GetGroupOptions as Xo, AuthenticationOAuthSucceededEventResponse as Xr, serializeRevokeSessionOptions as Xs, RadarStandaloneResponseWire as Xt, ListRoleAssignmentsOptions as Xu, CreateDataKeyResponse as Y, PasswordResetSucceededEvent as Ya, SerializedCreateOrganizationMembershipOptions as Yc, EnvironmentRole as Yd, FlagUpdatedEvent as Yi, SerializedAuthenticateWithCodeAndVerifierOptions as Yl, CompleteOAuth2Options as Yn, GroupResponse as Yo, AuthenticationOAuthSucceededEvent as Yr, SerializedRevokeSessionOptions as Ys, RadarStandaloneResponse as Yt, SerializedListRoleAssignmentsForResourceOptions as Yu, UpdateObjectEntity as Z, PermissionCreatedEvent as Za, SerializedCreateMagicAuthOptions as Zc, EnvironmentRoleListResponse as Zd, GroupCreatedEvent as Zi, AuthenticateWithCodeOptions as Zl, UserConsentOptionResponse as Zn, DeleteGroupOptions as Zo, AuthenticationPasskeyFailedEvent as Zr, ResetPasswordOptions as Zs, RadarStandaloneResponseBlocklistType as Zt, SerializedListRoleAssignmentsOptions as Zu, SignatureVerificationException as _, MagicAuthCreatedEvent as _a, ListUserFeatureFlagsOptions as _c, GetAuthorizationResourceByExternalIdOptions as _d, RequestOptions as _f, DsyncActivatedEvent as _i, AuthenticateWithSessionCookieFailedResponse as _l, PasswordlessSession as _n, UserDeletedEventResponse as _o, OrganizationResponse as _r, ListOrganizationApiKeysOptions as _s, CreateAuditLogSchemaRequestOptions as _t, ConnectionType as _u, PublicWorkOS as a, GroupMemberRemovedEvent as aa, PasswordResetEventResponse as ac, ListResourcesForMembershipOptions as ad, DirectoryGroupResponse as af, AuthenticationRadarRiskDetectedEvent as ai, AuthenticationFactorWithSecretsResponse as al, GetAccessTokenOptions as an, RoleDeletedEvent as ao, Actions as ar, RemoveFlagTargetOptions as as, DecryptDataKeyResponse as at, ProfileAndTokenResponse as au, NotFoundException as b, OrganizationCreatedResponse as ba, ListOrganizationMembershipsOptions as bc, AuthorizationResource as bd, CryptoProvider as bf, DsyncDeletedEventResponse as bi, AuthenticateWithSessionCookieSuccessResponse as bl, SerializedListEventOptions as bn, VaultByokKeyVerificationCompletedEvent as bo, CreateOrganizationOptions as br, CreateOrganizationApiKeyOptions as bs, AuditLogActor as bt, DefaultCustomAttributes as bu, PortalLinkResponseWire as c, GroupUpdatedEventResponse as ca, CreateMagicAuthResponseResponse as cc, SerializedListResourcesForMembershipOptions as cd, DirectoryState as cf, AuthenticationSSOFailedEventResponse as ci, TotpWithSecrets as cl, SerializedGetAccessTokenFailureResponse as cn, RoleUpdatedEventResponse as co, UserRegistrationActionResponseData as cr, FlagPollResponse as cs, GetTokenResponse as ct, OauthTokens as cu, IntentOptions as d, InvitationCreatedEvent as da, MagicAuthEventResponse as dc, AuthorizationCheckOptionsWithResourceId as dd, EventDirectory as df, ConnectionActivatedEvent as di, AuthenticationEventResponse as dl, SerializedGetAccessTokenSuccessResponse as dn, SessionRevokedEvent as do, UserData as dr, FeatureFlagResponse as ds, WidgetScope as dt, SerializedListConnectionsOptions as du, GroupDeletedEventResponse as ea, SerializedResendInvitationOptions as ec, RoleAssignmentResourceResponse as ed, ListDirectoryGroupsOptions as ef, AuthenticationPasskeySucceededEventResponse as ei, AuthenticationRadarRiskDetectedEventData as el, RadarListAction as en, PermissionDeletedEventResponse as eo, UserObject as er, AddGroupOrganizationMembershipOptions as es, ReadObjectOptions as et, AuthenticateWithSessionOptions as eu, IntentOptionsResponse as f, InvitationCreatedEventResponse as fa, MagicAuthResponse as fc, AuthorizationCheckResult as fd, EventDirectoryResponse as ff, ConnectionActivatedEventResponse as fi, AuthenticationEventSso as fl, AccessToken as fn, SessionRevokedEventResponse as fo, UserDataPayload as fr, EvaluationContext as fs, deserializeGetTokenResponse as ft, GetProfileAndTokenOptions as fu, UnauthorizedException as g, InvitationRevokedEventResponse as ga, SerializedListUsersOptions as gc, UpdateAuthorizationResourceByExternalIdOptions as gd, RequestHeaders as gf, ConnectionDeletedEventResponse as gi, SerializedAuthenticateWithTotpOptions as gl, SerializedCreatePasswordlessSessionOptions as gn, UserDeletedEvent as go, Organization as gr, ValidateApiKeyResponse as gs, CreateAuditLogSchemaOptions as gt, ConnectionResponse as gu, UnprocessableEntityException as h, InvitationRevokedEvent as ha, ListUsersOptions as hc, DeleteAuthorizationResourceByExternalIdOptions as hd, HttpClientResponseInterface as hf, ConnectionDeletedEvent as hi, AuthenticateWithTotpOptions as hl, CreatePasswordlessSessionOptions as hn, UserCreatedEventResponse as ho, UpdateOrganizationOptions as hr, ValidateApiKeyOptions as hs, CookieSession as ht, ConnectionDomain as hu, PublicUserManagement as i, GroupMemberEventResponseData as ia, PasswordResetEvent as ic, ListMembershipsForResourceOptions as id, DirectoryGroup as if, AuthenticationPasswordSucceededEventResponse as ii, AuthenticationFactorWithSecrets as il, GetAccessTokenFailureResponse as in, RoleCreatedEventResponse as io, PKCEPair as ir, RuntimeClientOptions as is, DecryptDataKeyOptions as it, ProfileAndToken as iu, Webhooks as j, OrganizationDomainVerifiedEvent as ja, ListGroupsForOrganizationMembershipOptions as jc, CreatePermissionOptions as jd, DsyncUserCreatedEvent as ji, AuthenticateWithRefreshTokenPublicClientOptions as jl, ConnectApplicationRedirectUri as jn, VaultDekDecryptedEventResponse as jo, List as jr, CreateOrganizationDomainOptions as js, AuditLogExportResponse as jt, RoleEventResponse as ju, WorkOSErrorData as k, OrganizationDomainVerificationFailedEvent as ka, ListInvitationsOptions as kc, SerializedUpdatePermissionOptions as kd, DsyncGroupUserRemovedEvent as ki, Impersonator as kl, ConnectApplicationOAuthResponse as kn, VaultDataUpdatedEventResponse as ko, PostOptions as kr, OrganizationDomainState as ks, AuditLogTargetSchema as kt, Role as ku, GenerateLink as l, InvitationAcceptedEvent as la, MagicAuth as lc, AuthorizationCheckOptions as ld, DirectoryStateResponse as lf, AuthenticationSSOSucceededEvent as li, TotpWithSecretsResponse as ll, SerializedGetAccessTokenOptions as ln, SessionCreatedEvent as lo, ActionContext as lr, FlagTarget as ls, GetTokenResponseResponse as lt, OauthTokensResponse as lu, SSOIntentOptionsResponse as m, InvitationResentEventResponse as ma, Locale as mc, DeleteAuthorizationResourceOptions as md, HttpClientInterface as mf, ConnectionDeactivatedEventResponse as mi, AuthenticateUserWithTotpCredentials as ml, SendSessionResponse as mn, UserCreatedEvent as mo, SerializedUpdateOrganizationOptions as mr, SerializedValidateApiKeyResponse as ms, FeatureFlagsRuntimeClient as mt, Connection as mu, PublicClientOptions as n, GroupMemberAddedEventResponse as na, RefreshSessionResponse as nc, RoleAssignmentRole as nd, SerializedListDirectoriesOptions as nf, AuthenticationPasswordFailedEventResponse as ni, AuthenticationFactor as nl, RadarStandaloneAssessRequestAction as nn, PermissionUpdatedEventResponse as no, AutoPaginatable as nr, RuntimeClientStats as ns, CreateObjectEntity as nt, SerializedAuthenticateWithOptionsBase as nu, createWorkOS as o, GroupMemberRemovedEventResponse as oa, PasswordResetResponse as oc, ListResourcesForMembershipOptionsWithParentExternalId as od, Directory as of, AuthenticationRadarRiskDetectedEventResponse as oi, Totp as ol, GetAccessTokenResponse as on, RoleDeletedEventResponse as oo, AuthenticationActionResponseData as or, ListFeatureFlagsOptions as os, CreateDataKeyOptions as ot, Profile as ou, SSOIntentOptions as p, InvitationResentEvent as pa, LogoutURLOptions as pc, SerializedAuthorizationCheckOptions as pd, HttpClient as pf, ConnectionDeactivatedEvent as pi, AuthenticationEventSsoResponse as pl, SerializedAccessToken as pn, UnknownEvent as po, UserRegistrationActionPayload as pr, AddFlagTargetOptions as ps, serializeGetTokenOptions as pt, GetProfileOptions as pu, Actor as q, PasswordResetCreatedEvent as qa, SerializedCreatePasswordResetOptions as qc, CreateEnvironmentRoleOptions as qd, FlagRuleUpdatedEvent as qi, SerializedAuthenticateWithEmailVerificationOptions as ql, RedirectUriInputResponse as qn, ListGroupOrganizationMembershipsOptions as qo, AuthenticationOAuthFailedEvent as qr, SerializedSendInvitationOptions as qs, RadarListEntryAlreadyPresentResponse as qt, ListRoleAssignmentsForResourceByExternalIdOptions as qu, PublicSSO as r, GroupMemberEventData as ra, PasswordReset as rc, ListMembershipsForResourceByExternalIdOptions as rd, PaginationOptions as rf, AuthenticationPasswordSucceededEvent as ri, AuthenticationFactorResponse as rl, RadarStandaloneAssessRequestAuthMethod as rn, RoleCreatedEvent as ro, PKCE as rr, RuntimeClientLogger as rs, CreateObjectOptions as rt, WithResolvedClientId as ru, PortalLinkResponse as s, GroupUpdatedEvent as sa, CreateMagicAuthResponse as sc, ListResourcesForMembershipOptionsWithParentId as sd, DirectoryResponse as sf, AuthenticationSSOFailedEvent as si, TotpResponse as sl, GetAccessTokenSuccessResponse as sn, RoleUpdatedEvent as so, ResponsePayload as sr, FlagPollEntry as ss, GetTokenOptions as st, ProfileResponse as su, ConfidentialClientOptions as t, GroupMemberAddedEvent as ta, RefreshSessionFailureReason as tc, RoleAssignmentResponse as td, ListDirectoriesOptions as tf, AuthenticationPasswordFailedEvent as ti, AuthenticationRadarRiskDetectedEventResponseData as tl, RadarListType as tn, PermissionUpdatedEvent as to, UserObjectResponse as tr, SerializedAddGroupOrganizationMembershipOptions as ts, ReadObjectResponse as tt, SerializedAuthenticatePublicClientBase as tu, GenerateLinkResponse as u, InvitationAcceptedEventResponse as ua, MagicAuthEvent as uc, AuthorizationCheckOptionsWithResourceExternalId as ud, DirectoryType as uf, AuthenticationSSOSucceededEventResponse as ui, AuthenticationEvent as ul, SerializedGetAccessTokenResponse as un, SessionCreatedEventResponse as uo, ActionPayload as ur, FeatureFlag as us, SerializedGetTokenOptions as ut, ListConnectionsOptions as uu, RateLimitExceededException as v, MagicAuthCreatedEventResponse as va, ListSessionsOptions as vc, ListAuthorizationResourcesOptions as vd, ResponseHeaderValue as vf, DsyncActivatedEventResponse as vi, AuthenticateWithSessionCookieFailureReason as vl, PasswordlessSessionResponse as vn, UserUpdatedEvent as vo, ListOrganizationsOptions as vr, CreatedApiKey as vs, CreateAuditLogSchemaResponse as vt, SSOAuthorizationURLOptions as vu, AuthenticationErrorCode as w, OrganizationDomainCreatedEventResponse as wa, BaseOrganizationMembership as wc, CreateOptionsWithParentResourceId as wd, DsyncGroupDeletedEventResponse as wi, AuthenticationResponseResponse as wl, ApplicationCredentialsListItemResponse as wn, VaultDataDeletedEvent as wo, DomainDataState as wr, SerializedApiKey as ws, SerializedCreateAuditLogEventOptions as wt, DirectoryUserWithGroupsResponse as wu, NoApiKeyProvidedException as x, OrganizationDeletedEvent as xa, SerializedListOrganizationMembershipsOptions as xc, AuthorizationResourceResponse as xd, DsyncGroupCreatedEvent as xi, SessionCookieData as xl, NewConnectApplicationSecret as xn, VaultByokKeyVerificationCompletedEventResponse as xo, CreateOrganizationRequestOptions as xr, CreateOrganizationApiKeyRequestOptions as xs, AuditLogTarget as xt, DirectoryUser as xu, OauthException as y, OrganizationCreatedEvent as ya, SerializedListSessionsOptions as yc, SerializedListAuthorizationResourcesOptions as yd, ResponseHeaders as yf, DsyncDeletedEvent as yi, AuthenticateWithSessionCookieOptions as yl, ListEventOptions as yn, UserUpdatedEventResponse as yo, ListOrganizationFeatureFlagsOptions as yr, SerializedCreatedApiKey as ys, SerializedCreateAuditLogSchemaOptions as yt, SSOPKCEAuthorizationURLResult as yu, ObjectSummary as z, OrganizationRoleCreatedEvent as za, SerializedEnrollUserInMfaFactorOptions as zc, UpdateOrganizationRoleOptions as zd, Event as zi, AuthenticateUserWithOrganizationSelectionCredentials as zl, UpdateApplicationOptions as zn, VaultNamesListedEventResponse as zo, AuthenticationEmailVerificationSucceededEvent as zr, SerializedUpdateOrganizationMembershipOptions as zs, FactorWithSecrets as zt, RemoveRoleOptionsWithResourceExternalId as zu };
8241
+ //# sourceMappingURL=factory-BNdbGia2.d.mts.map