@stytch/vanilla-js 4.3.2 → 4.4.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @stytch/vanilla-js
2
2
 
3
+ ## 4.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7754915: Re-order and align phone number country code list with allowed countries
8
+
9
+ ## 4.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 50bb749: Adds headless methods for interacting with b2b recovery codes
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [50bb749]
18
+ - Updated dependencies [e4c0a70]
19
+ - @stytch/core@2.5.0
20
+
3
21
  ## 4.3.2
4
22
 
5
23
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { IHeadlessB2BDiscoveryClient, IHeadlessB2BMagicLinksClient, IHeadlessB2BMemberClient, IHeadlessB2BSelfClient, IHeadlessB2BOAuthClient, IHeadlessB2BOrganizationClient, IHeadlessB2BOTPsClient, IHeadlessB2BTOTPsClient, IHeadlessB2BSessionClient, IHeadlessB2BSSOClient, IHeadlessB2BRBACClient, StytchClientOptions } from "@stytch/core/public";
1
+ import { IHeadlessB2BDiscoveryClient, IHeadlessB2BMagicLinksClient, IHeadlessB2BMemberClient, IHeadlessB2BSelfClient, IHeadlessB2BOAuthClient, IHeadlessB2BOrganizationClient, IHeadlessB2BOTPsClient, IHeadlessB2BTOTPsClient, IHeadlessB2BSessionClient, IHeadlessB2BSSOClient, IHeadlessB2BRecoveryCodesClient, IHeadlessB2BRBACClient, StytchClientOptions } from "@stytch/core/public";
2
2
  import { Callbacks as Callbacks$0 } from "@stytch/core/public";
3
3
  import { StyleConfig as StyleConfig$0 } from "@stytch/core/public";
4
4
  import { StytchB2BUIConfig as StytchB2BUIConfig$0 } from "@stytch/core/public";
@@ -597,9 +597,9 @@ interface IHeadlessB2BPasswordClient {
597
597
  *
598
598
  * @returns A {@link B2BPasswordAuthenticateResponse} indicating the password is valid and that the Member is now logged in.
599
599
  *
600
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
601
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
602
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
600
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
601
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
602
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
603
603
  */
604
604
  authenticate(options: B2BPasswordAuthenticateOptions): Promise<B2BPasswordAuthenticateResponse>;
605
605
  /**
@@ -619,9 +619,9 @@ interface IHeadlessB2BPasswordClient {
619
619
  *
620
620
  * @returns A {@link B2BPasswordResetByEmailStartResponse} indicating the password is valid and that the Member is now logged in.
621
621
  *
622
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
623
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
624
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
622
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
623
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
624
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
625
625
  */
626
626
  resetByEmailStart(options: B2BPasswordResetByEmailStartOptions): Promise<B2BPasswordResetByEmailStartResponse>;
627
627
  /**
@@ -647,9 +647,9 @@ interface IHeadlessB2BPasswordClient {
647
647
  *
648
648
  * @returns A {@link B2BPasswordResetByEmailResponse} indicating the password is valid and that the Member is now logged in.
649
649
  *
650
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
651
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
652
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
650
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
651
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
652
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
653
653
  */
654
654
  resetByEmail(options: B2BPasswordResetByEmailOptions): Promise<B2BPasswordResetByEmailResponse>;
655
655
  /**
@@ -667,9 +667,9 @@ interface IHeadlessB2BPasswordClient {
667
667
  *
668
668
  * @returns A {@link B2BPasswordStrengthCheckResponse} containing password strength feedback.
669
669
  *
670
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
671
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
672
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
670
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
671
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
672
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
673
673
  */
674
674
  strengthCheck(options: B2BPasswordStrengthCheckOptions): Promise<B2BPasswordStrengthCheckResponse>;
675
675
  /**
@@ -689,9 +689,9 @@ interface IHeadlessB2BPasswordClient {
689
689
  *
690
690
  * @returns A {@link B2BPasswordResetByExistingPasswordResponse} indicating the password is valid and that the Member is now logged in.
691
691
  *
692
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
693
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
694
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
692
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
693
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
694
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
695
695
  */
696
696
  resetByExistingPassword(options: B2BPasswordResetByExistingPasswordOptions): Promise<B2BPasswordResetByExistingPasswordResponse>;
697
697
  /**
@@ -709,9 +709,9 @@ interface IHeadlessB2BPasswordClient {
709
709
  *
710
710
  * @returns A {@link B2BPasswordResetBySessionResponse} indicating the password is valid and that the Member is now logged in.
711
711
  *
712
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
713
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
714
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
712
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
713
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
714
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
715
715
  */
716
716
  resetBySession(options: B2BPasswordResetBySessionOptions): Promise<B2BPasswordResetBySessionResponse>;
717
717
  }
@@ -745,6 +745,7 @@ declare class StytchB2BHeadlessClient {
745
745
  passwords: IHeadlessB2BPasswordClient;
746
746
  otps: IHeadlessB2BOTPsClient;
747
747
  totp: IHeadlessB2BTOTPsClient;
748
+ recoveryCodes: IHeadlessB2BRecoveryCodesClient;
748
749
  rbac: IHeadlessB2BRBACClient;
749
750
  constructor(_PUBLIC_TOKEN: string, options?: StytchClientOptions);
750
751
  }
@@ -1,4 +1,4 @@
1
- import { IHeadlessB2BDiscoveryClient, IHeadlessB2BMagicLinksClient, IHeadlessB2BMemberClient, IHeadlessB2BSelfClient, IHeadlessB2BOAuthClient, IHeadlessB2BOrganizationClient, IHeadlessB2BOTPsClient, IHeadlessB2BTOTPsClient, IHeadlessB2BSessionClient, IHeadlessB2BSSOClient, IHeadlessB2BRBACClient, StytchClientOptions } from "@stytch/core/public";
1
+ import { IHeadlessB2BDiscoveryClient, IHeadlessB2BMagicLinksClient, IHeadlessB2BMemberClient, IHeadlessB2BSelfClient, IHeadlessB2BOAuthClient, IHeadlessB2BOrganizationClient, IHeadlessB2BOTPsClient, IHeadlessB2BTOTPsClient, IHeadlessB2BSessionClient, IHeadlessB2BSSOClient, IHeadlessB2BRecoveryCodesClient, IHeadlessB2BRBACClient, StytchClientOptions } from "@stytch/core/public";
2
2
  import { Callbacks as Callbacks$0 } from "@stytch/core/public";
3
3
  import { StyleConfig as StyleConfig$0 } from "@stytch/core/public";
4
4
  import { StytchB2BUIConfig as StytchB2BUIConfig$0 } from "@stytch/core/public";
@@ -597,9 +597,9 @@ interface IHeadlessB2BPasswordClient {
597
597
  *
598
598
  * @returns A {@link B2BPasswordAuthenticateResponse} indicating the password is valid and that the Member is now logged in.
599
599
  *
600
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
601
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
602
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
600
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
601
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
602
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
603
603
  */
604
604
  authenticate(options: B2BPasswordAuthenticateOptions): Promise<B2BPasswordAuthenticateResponse>;
605
605
  /**
@@ -619,9 +619,9 @@ interface IHeadlessB2BPasswordClient {
619
619
  *
620
620
  * @returns A {@link B2BPasswordResetByEmailStartResponse} indicating the password is valid and that the Member is now logged in.
621
621
  *
622
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
623
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
624
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
622
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
623
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
624
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
625
625
  */
626
626
  resetByEmailStart(options: B2BPasswordResetByEmailStartOptions): Promise<B2BPasswordResetByEmailStartResponse>;
627
627
  /**
@@ -647,9 +647,9 @@ interface IHeadlessB2BPasswordClient {
647
647
  *
648
648
  * @returns A {@link B2BPasswordResetByEmailResponse} indicating the password is valid and that the Member is now logged in.
649
649
  *
650
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
651
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
652
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
650
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
651
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
652
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
653
653
  */
654
654
  resetByEmail(options: B2BPasswordResetByEmailOptions): Promise<B2BPasswordResetByEmailResponse>;
655
655
  /**
@@ -667,9 +667,9 @@ interface IHeadlessB2BPasswordClient {
667
667
  *
668
668
  * @returns A {@link B2BPasswordStrengthCheckResponse} containing password strength feedback.
669
669
  *
670
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
671
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
672
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
670
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
671
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
672
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
673
673
  */
674
674
  strengthCheck(options: B2BPasswordStrengthCheckOptions): Promise<B2BPasswordStrengthCheckResponse>;
675
675
  /**
@@ -689,9 +689,9 @@ interface IHeadlessB2BPasswordClient {
689
689
  *
690
690
  * @returns A {@link B2BPasswordResetByExistingPasswordResponse} indicating the password is valid and that the Member is now logged in.
691
691
  *
692
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
693
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
694
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
692
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
693
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
694
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
695
695
  */
696
696
  resetByExistingPassword(options: B2BPasswordResetByExistingPasswordOptions): Promise<B2BPasswordResetByExistingPasswordResponse>;
697
697
  /**
@@ -709,9 +709,9 @@ interface IHeadlessB2BPasswordClient {
709
709
  *
710
710
  * @returns A {@link B2BPasswordResetBySessionResponse} indicating the password is valid and that the Member is now logged in.
711
711
  *
712
- * @throws A {@link StytchAPIError} when the Stytch API returns an error.
713
- * @throws A {@link StytchAPIUnreachableError} when the SDK cannot contact the Stytch API.
714
- * @throws A {@link StytchSDKUsageError} when called with invalid input (invalid email, invalid options, etc.)
712
+ * @throws A `StytchAPIError` when the Stytch API returns an error.
713
+ * @throws A `StytchAPIUnreachableError` when the SDK cannot contact the Stytch API.
714
+ * @throws A `StytchSDKUsageError` when called with invalid input (invalid email, invalid options, etc.)
715
715
  */
716
716
  resetBySession(options: B2BPasswordResetBySessionOptions): Promise<B2BPasswordResetBySessionResponse>;
717
717
  }
@@ -745,6 +745,7 @@ declare class StytchB2BHeadlessClient {
745
745
  passwords: IHeadlessB2BPasswordClient;
746
746
  otps: IHeadlessB2BOTPsClient;
747
747
  totp: IHeadlessB2BTOTPsClient;
748
+ recoveryCodes: IHeadlessB2BRecoveryCodesClient;
748
749
  rbac: IHeadlessB2BRBACClient;
749
750
  constructor(_PUBLIC_TOKEN: string, options?: StytchClientOptions);
750
751
  }