@wix/auto_sdk_identity_authentication 1.0.66 → 1.0.68

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.
@@ -358,8 +358,8 @@ declare enum StateType {
358
358
  * @internal
359
359
  */
360
360
  REQUIRE_FIRST_FACTOR = "REQUIRE_FIRST_FACTOR",
361
- /** Member is missing fields that are marked as required on the site's signup form, and needs to complete them to finish registration. */
362
- REQUIRE_MISSING_FIELDS = "REQUIRE_MISSING_FIELDS",
361
+ /** Member must submit the profile-completion form to continue registration. */
362
+ REQUIRE_PROFILE_COMPLETION = "REQUIRE_PROFILE_COMPLETION",
363
363
  /**
364
364
  * Registering identity must prove their sign-up factor (e.g. an emailed code) before the identity is created.
365
365
  * @internal
@@ -372,7 +372,7 @@ declare enum StateType {
372
372
  REQUIRE_LOGIN_CHALLENGE = "REQUIRE_LOGIN_CHALLENGE"
373
373
  }
374
374
  /** @enumType */
375
- type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK' | 'REQUIRE_MISSING_FIELDS';
375
+ type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK' | 'REQUIRE_PROFILE_COMPLETION';
376
376
  interface Identity {
377
377
  /**
378
378
  * Identity ID.
@@ -499,11 +499,11 @@ declare enum V1Reason {
499
499
  PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
500
500
  /** The identity has to verify the email. After the verification, the identity has an `ACTIVE` status. */
501
501
  PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED",
502
- /** The identity is missing fields that are marked as required on the site's signup form. After completing them, the identity has an `ACTIVE` status. */
503
- PENDING_REQUIRED_FIELDS_MISSING = "PENDING_REQUIRED_FIELDS_MISSING"
502
+ /** The identity must complete the site's profile-completion form. Other pending requirements may remain after completion. */
503
+ PENDING_PROFILE_COMPLETION_REQUIRED = "PENDING_PROFILE_COMPLETION_REQUIRED"
504
504
  }
505
505
  /** @enumType */
506
- type V1ReasonWithLiterals = V1Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED' | 'PENDING_REQUIRED_FIELDS_MISSING';
506
+ type V1ReasonWithLiterals = V1Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED' | 'PENDING_PROFILE_COMPLETION_REQUIRED';
507
507
  interface Factor {
508
508
  /**
509
509
  * Factor ID.
@@ -674,14 +674,6 @@ interface LoginV2Request {
674
674
  * @internal
675
675
  */
676
676
  webauthn?: WebAuthnVerifyData;
677
- /**
678
- * email OTP data:
679
- * 1. When the login_id is an email:
680
- * 1.a. if password or webauthn is provided, this field should not be provided.
681
- * 1.b. if password and webauthn are not provided, this field should contain an email OTP to attempt login.
682
- * @internal
683
- */
684
- emailOtp?: ExternalEmailVerifyData;
685
677
  /**
686
678
  * State token from a login flow that was started beforehand.
687
679
  *
@@ -689,6 +681,12 @@ interface LoginV2Request {
689
681
  * @maxLength 1000
690
682
  */
691
683
  stateToken?: string | null;
684
+ /**
685
+ * The factor to log in with. Unset, it's inferred from the fields present. `EMAIL` sends a code and returns
686
+ * `REQUIRE_LOGIN_CHALLENGE` until the code is submitted to `Verify`.
687
+ * @internal
688
+ */
689
+ factorType?: FactorTypeWithLiterals;
692
690
  }
693
691
  interface WebAuthnVerifyData {
694
692
  /**
@@ -713,13 +711,6 @@ interface WebAuthnVerifyData {
713
711
  */
714
712
  credential?: string | null;
715
713
  }
716
- interface ExternalEmailVerifyData {
717
- /**
718
- * @minLength 1
719
- * @maxLength 100
720
- */
721
- code?: string | null;
722
- }
723
714
  interface ChangePasswordRequest {
724
715
  /**
725
716
  * New password to set for the logged-in member.
@@ -1058,6 +1049,13 @@ interface CallVerifyData {
1058
1049
  */
1059
1050
  code?: string | null;
1060
1051
  }
1052
+ interface ExternalEmailVerifyData {
1053
+ /**
1054
+ * @minLength 1
1055
+ * @maxLength 100
1056
+ */
1057
+ code?: string | null;
1058
+ }
1061
1059
  interface TotpVerifyData {
1062
1060
  /**
1063
1061
  * @minLength 1
@@ -369,8 +369,8 @@ declare enum StateType {
369
369
  * @internal
370
370
  */
371
371
  REQUIRE_FIRST_FACTOR = "REQUIRE_FIRST_FACTOR",
372
- /** Member is missing fields that are marked as required on the site's signup form, and needs to complete them to finish registration. */
373
- REQUIRE_MISSING_FIELDS = "REQUIRE_MISSING_FIELDS",
372
+ /** Member must submit the profile-completion form to continue registration. */
373
+ REQUIRE_PROFILE_COMPLETION = "REQUIRE_PROFILE_COMPLETION",
374
374
  /**
375
375
  * Registering identity must prove their sign-up factor (e.g. an emailed code) before the identity is created.
376
376
  * @internal
@@ -383,7 +383,7 @@ declare enum StateType {
383
383
  REQUIRE_LOGIN_CHALLENGE = "REQUIRE_LOGIN_CHALLENGE"
384
384
  }
385
385
  /** @enumType */
386
- type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK' | 'REQUIRE_MISSING_FIELDS';
386
+ type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK' | 'REQUIRE_PROFILE_COMPLETION';
387
387
  interface Identity {
388
388
  /**
389
389
  * Identity ID.
@@ -510,11 +510,11 @@ declare enum V1Reason {
510
510
  PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
511
511
  /** The identity has to verify the email. After the verification, the identity has an `ACTIVE` status. */
512
512
  PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED",
513
- /** The identity is missing fields that are marked as required on the site's signup form. After completing them, the identity has an `ACTIVE` status. */
514
- PENDING_REQUIRED_FIELDS_MISSING = "PENDING_REQUIRED_FIELDS_MISSING"
513
+ /** The identity must complete the site's profile-completion form. Other pending requirements may remain after completion. */
514
+ PENDING_PROFILE_COMPLETION_REQUIRED = "PENDING_PROFILE_COMPLETION_REQUIRED"
515
515
  }
516
516
  /** @enumType */
517
- type V1ReasonWithLiterals = V1Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED' | 'PENDING_REQUIRED_FIELDS_MISSING';
517
+ type V1ReasonWithLiterals = V1Reason | 'UNKNOWN_REASON' | 'PENDING_ADMIN_APPROVAL_REQUIRED' | 'PENDING_EMAIL_VERIFICATION_REQUIRED' | 'PENDING_PROFILE_COMPLETION_REQUIRED';
518
518
  interface Factor {
519
519
  /**
520
520
  * Factor ID.
@@ -685,14 +685,6 @@ interface LoginV2Request {
685
685
  * @internal
686
686
  */
687
687
  webauthn?: WebAuthnVerifyData;
688
- /**
689
- * email OTP data:
690
- * 1. When the login_id is an email:
691
- * 1.a. if password or webauthn is provided, this field should not be provided.
692
- * 1.b. if password and webauthn are not provided, this field should contain an email OTP to attempt login.
693
- * @internal
694
- */
695
- emailOtp?: ExternalEmailVerifyData;
696
688
  /**
697
689
  * State token from a login flow that was started beforehand.
698
690
  *
@@ -700,6 +692,12 @@ interface LoginV2Request {
700
692
  * @maxLength 1000
701
693
  */
702
694
  stateToken?: string | null;
695
+ /**
696
+ * The factor to log in with. Unset, it's inferred from the fields present. `EMAIL` sends a code and returns
697
+ * `REQUIRE_LOGIN_CHALLENGE` until the code is submitted to `Verify`.
698
+ * @internal
699
+ */
700
+ factorType?: FactorTypeWithLiterals;
703
701
  }
704
702
  interface WebAuthnVerifyData {
705
703
  /**
@@ -724,13 +722,6 @@ interface WebAuthnVerifyData {
724
722
  */
725
723
  credential?: string | null;
726
724
  }
727
- interface ExternalEmailVerifyData {
728
- /**
729
- * @minLength 1
730
- * @maxLength 100
731
- */
732
- code?: string | null;
733
- }
734
725
  interface ChangePasswordRequest {
735
726
  /**
736
727
  * New password to set for the logged-in member.
@@ -1069,6 +1060,13 @@ interface CallVerifyData {
1069
1060
  */
1070
1061
  code?: string | null;
1071
1062
  }
1063
+ interface ExternalEmailVerifyData {
1064
+ /**
1065
+ * @minLength 1
1066
+ * @maxLength 100
1067
+ */
1068
+ code?: string | null;
1069
+ }
1072
1070
  interface TotpVerifyData {
1073
1071
  /**
1074
1072
  * @minLength 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_identity_authentication",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.iam.authentication.v1.authentication"
51
51
  }
52
52
  },
53
- "falconPackageHash": "9393863c8dc72fc013ab12a12dd2aff42de46fc466ffeb64048feff2"
53
+ "falconPackageHash": "e144a7ffb49feaae27b0a9f37c3a88c00834e82f77c3967930af22b9"
54
54
  }