@workos-inc/node 10.4.0 → 10.5.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.
@@ -658,7 +658,8 @@ const serializeAuthenticateWithCodeOptions = (options) => ({
658
658
  code_verifier: options.codeVerifier,
659
659
  invitation_token: options.invitationToken,
660
660
  ip_address: options.ipAddress,
661
- user_agent: options.userAgent
661
+ user_agent: options.userAgent,
662
+ signals_id: options.signalsId
662
663
  });
663
664
  //#endregion
664
665
  //#region src/user-management/serializers/authenticate-with-code-and-verifier-options.serializer.ts
@@ -669,7 +670,8 @@ const serializeAuthenticateWithCodeAndVerifierOptions = (options) => ({
669
670
  code_verifier: options.codeVerifier,
670
671
  invitation_token: options.invitationToken,
671
672
  ip_address: options.ipAddress,
672
- user_agent: options.userAgent
673
+ user_agent: options.userAgent,
674
+ signals_id: options.signalsId
673
675
  });
674
676
  //#endregion
675
677
  //#region src/user-management/serializers/authenticate-with-magic-auth-options.serializer.ts
@@ -683,7 +685,8 @@ const serializeAuthenticateWithMagicAuthOptions = (options) => ({
683
685
  link_authorization_code: options.linkAuthorizationCode,
684
686
  ip_address: options.ipAddress,
685
687
  user_agent: options.userAgent,
686
- radar_auth_attempt_id: options.radarAuthAttemptId
688
+ radar_auth_attempt_id: options.radarAuthAttemptId,
689
+ signals_id: options.signalsId
687
690
  });
688
691
  //#endregion
689
692
  //#region src/user-management/serializers/authenticate-with-radar-email-challenge-options.serializer.ts
@@ -721,7 +724,8 @@ const serializeAuthenticateWithPasswordOptions = (options) => ({
721
724
  invitation_token: options.invitationToken,
722
725
  ip_address: options.ipAddress,
723
726
  user_agent: options.userAgent,
724
- radar_auth_attempt_id: options.radarAuthAttemptId
727
+ radar_auth_attempt_id: options.radarAuthAttemptId,
728
+ signals_id: options.signalsId
725
729
  });
726
730
  //#endregion
727
731
  //#region src/user-management/serializers/authenticate-with-refresh-token.options.serializer.ts
@@ -858,7 +862,8 @@ const serializeCreateMagicAuthOptions = (options) => ({
858
862
  invitation_token: options.invitationToken,
859
863
  ip_address: options.ipAddress,
860
864
  user_agent: options.userAgent,
861
- radar_auth_attempt_id: options.radarAuthAttemptId
865
+ radar_auth_attempt_id: options.radarAuthAttemptId,
866
+ signals_id: options.signalsId
862
867
  });
863
868
  //#endregion
864
869
  //#region src/user-management/serializers/create-password-reset-options.serializer.ts
@@ -1007,7 +1012,8 @@ const serializeCreateUserOptions = (options) => ({
1007
1012
  external_id: options.externalId,
1008
1013
  metadata: options.metadata,
1009
1014
  ip_address: options.ipAddress,
1010
- user_agent: options.userAgent
1015
+ user_agent: options.userAgent,
1016
+ signals_id: options.signalsId
1011
1017
  });
1012
1018
  //#endregion
1013
1019
  //#region src/user-management/serializers/send-radar-sms-challenge-options.serializer.ts
@@ -1366,8 +1372,9 @@ const deserializeProfileAndToken = (profileAndToken) => ({
1366
1372
  //#endregion
1367
1373
  //#region src/user-management/serializers/role.serializer.ts
1368
1374
  const deserializeRoleEvent = (role) => ({
1369
- object: "role",
1375
+ object: role.object,
1370
1376
  slug: role.slug,
1377
+ resourceTypeSlug: role.resource_type_slug,
1371
1378
  permissions: role.permissions,
1372
1379
  createdAt: role.created_at,
1373
1380
  updatedAt: role.updated_at
@@ -7141,7 +7148,7 @@ var Vault = class {
7141
7148
  };
7142
7149
  //#endregion
7143
7150
  //#region package.json
7144
- var version = "10.4.0";
7151
+ var version = "10.5.0";
7145
7152
  //#endregion
7146
7153
  //#region src/workos.ts
7147
7154
  const DEFAULT_HOSTNAME = "api.workos.com";
@@ -7487,4 +7494,4 @@ function createWorkOS(options) {
7487
7494
  //#endregion
7488
7495
  export { FetchHttpClient as A, NoApiKeyProvidedException as C, isAuthenticationErrorData as D, AuthenticationException as E, GenericServerException as O, NotFoundException as S, BadRequestException as T, UnprocessableEntityException as _, DomainDataState as a, RateLimitExceededException as b, FeatureFlagsRuntimeClient as c, serializeRevokeSessionOptions as d, AuthenticateWithSessionCookieFailureReason as f, Actions as g, AutoPaginatable as h, OrganizationDomainVerificationStrategy as i, SubtleCryptoProvider as j, ApiKeyRequiredException as k, CookieSession as l, Webhooks as m, ConnectionType as n, GenerateLinkIntent as o, PKCE as p, OrganizationDomainState as r, WorkOS as s, createWorkOS as t, RefreshSessionFailureReason as u, UnauthorizedException as v, ConflictException as w, OauthException as x, SignatureVerificationException as y };
7489
7496
 
7490
- //# sourceMappingURL=factory-CRqtXIIK.mjs.map
7497
+ //# sourceMappingURL=factory-Dv9gybeB.mjs.map