@workos-inc/node 10.4.1 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{factory-BWQXdnOa.cjs → factory-B6WUDYmR.cjs} +18 -10
- package/lib/factory-B6WUDYmR.cjs.map +1 -0
- package/lib/{factory-B4fXjv0Z.mjs → factory-C3tbwZax.mjs} +18 -10
- package/lib/factory-C3tbwZax.mjs.map +1 -0
- package/lib/{factory-DRMv73xI.d.mts → factory-nPldaSjn.d.cts} +17 -1
- package/lib/{factory-DRMv73xI.d.cts → factory-nPldaSjn.d.mts} +17 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.worker.cjs +1 -1
- package/lib/index.worker.d.cts +1 -1
- package/lib/index.worker.d.mts +1 -1
- package/lib/index.worker.mjs +1 -1
- package/package.json +1 -1
- package/lib/factory-B4fXjv0Z.mjs.map +0 -1
- package/lib/factory-BWQXdnOa.cjs.map +0 -1
|
@@ -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
|
|
@@ -4817,7 +4823,7 @@ var UserManagement = class {
|
|
|
4817
4823
|
* Or use getAuthorizationUrlWithPKCE() which handles PKCE automatically.
|
|
4818
4824
|
*/
|
|
4819
4825
|
getAuthorizationUrl(options) {
|
|
4820
|
-
const { claimNonce, connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, invitationToken, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
|
|
4826
|
+
const { claimNonce, connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, invitationToken, loginHint, maxAge, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
|
|
4821
4827
|
const resolvedClientId = this.resolveClientId(clientId);
|
|
4822
4828
|
if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
|
|
4823
4829
|
if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
|
|
@@ -4830,6 +4836,7 @@ var UserManagement = class {
|
|
|
4830
4836
|
domain_hint: domainHint,
|
|
4831
4837
|
invitation_token: invitationToken,
|
|
4832
4838
|
login_hint: loginHint,
|
|
4839
|
+
max_age: maxAge?.toString(),
|
|
4833
4840
|
provider,
|
|
4834
4841
|
provider_query_params: providerQueryParams,
|
|
4835
4842
|
provider_scopes: providerScopes,
|
|
@@ -4869,7 +4876,7 @@ var UserManagement = class {
|
|
|
4869
4876
|
* ```
|
|
4870
4877
|
*/
|
|
4871
4878
|
async getAuthorizationUrlWithPKCE(options) {
|
|
4872
|
-
const { clientId, connectionId, domainHint, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
|
|
4879
|
+
const { clientId, connectionId, domainHint, loginHint, maxAge, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
|
|
4873
4880
|
const resolvedClientId = this.resolveClientId(clientId);
|
|
4874
4881
|
if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
|
|
4875
4882
|
if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
|
|
@@ -4882,6 +4889,7 @@ var UserManagement = class {
|
|
|
4882
4889
|
organization_id: organizationId,
|
|
4883
4890
|
domain_hint: domainHint,
|
|
4884
4891
|
login_hint: loginHint,
|
|
4892
|
+
max_age: maxAge?.toString(),
|
|
4885
4893
|
provider,
|
|
4886
4894
|
provider_query_params: providerQueryParams,
|
|
4887
4895
|
provider_scopes: providerScopes,
|
|
@@ -7142,7 +7150,7 @@ var Vault = class {
|
|
|
7142
7150
|
};
|
|
7143
7151
|
//#endregion
|
|
7144
7152
|
//#region package.json
|
|
7145
|
-
var version = "10.
|
|
7153
|
+
var version = "10.6.0";
|
|
7146
7154
|
//#endregion
|
|
7147
7155
|
//#region src/workos.ts
|
|
7148
7156
|
const DEFAULT_HOSTNAME = "api.workos.com";
|
|
@@ -7673,4 +7681,4 @@ Object.defineProperty(exports, "serializeRevokeSessionOptions", {
|
|
|
7673
7681
|
}
|
|
7674
7682
|
});
|
|
7675
7683
|
|
|
7676
|
-
//# sourceMappingURL=factory-
|
|
7684
|
+
//# sourceMappingURL=factory-B6WUDYmR.cjs.map
|