@wix/auto_sdk_identity_authentication 1.0.62 → 1.0.64

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.
@@ -14,6 +14,16 @@ interface RegisterV2Request {
14
14
  captchaTokens?: CaptchaToken[];
15
15
  /** Additional data that's relevant for the flow. */
16
16
  clientMetaData?: Record<string, any> | null;
17
+ /**
18
+ * The factor to register with: `PASSWORD`, the default, or `EMAIL`, which sends a code and returns
19
+ * `REQUIRE_REGISTRATION_FACTOR` until the code is submitted to `Verify`.
20
+ */
21
+ factorType?: FactorTypeWithLiterals;
22
+ /**
23
+ * ID of the organization the user registers into. The new user's account is created as a sub-account of this organization.
24
+ * @format GUID
25
+ */
26
+ organizationId?: string | null;
17
27
  }
18
28
  interface LoginId extends LoginIdTypeOneOf {
19
29
  /**
@@ -284,6 +294,26 @@ interface RecaptchaForClientSiteKey {
284
294
  */
285
295
  siteKeyId?: string;
286
296
  }
297
+ declare enum FactorType {
298
+ /** Requires a password. */
299
+ PASSWORD = "PASSWORD",
300
+ /** Requires a code sent via SMS. */
301
+ SMS = "SMS",
302
+ /** Requires a code sent by phone call. */
303
+ CALL = "CALL",
304
+ /** Requires a code sent by email. */
305
+ EMAIL = "EMAIL",
306
+ /** Requires authentication via an authenticator app. */
307
+ TOTP = "TOTP",
308
+ /** Requires authentication via a push notification. */
309
+ PUSH = "PUSH",
310
+ /** Requires authentication via WebAuthn/passkey. */
311
+ WEBAUTHN = "WEBAUTHN",
312
+ /** Requires a recovery code. */
313
+ RECOVERY_CODE = "RECOVERY_CODE"
314
+ }
315
+ /** @enumType */
316
+ type FactorTypeWithLiterals = FactorType | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN' | 'RECOVERY_CODE';
287
317
  interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
288
318
  /** @internal */
289
319
  requireMfaData?: RequireMfaData;
@@ -491,26 +521,6 @@ interface Factor {
491
521
  /** Factor status. */
492
522
  status?: StatusWithLiterals;
493
523
  }
494
- declare enum FactorType {
495
- /** Requires a password. */
496
- PASSWORD = "PASSWORD",
497
- /** Requires a code sent via SMS. */
498
- SMS = "SMS",
499
- /** Requires a code sent by phone call. */
500
- CALL = "CALL",
501
- /** Requires a code sent by email. */
502
- EMAIL = "EMAIL",
503
- /** Requires authentication via an authenticator app. */
504
- TOTP = "TOTP",
505
- /** Requires authentication via a push notification. */
506
- PUSH = "PUSH",
507
- /** Requires authentication via WebAuthn/passkey. */
508
- WEBAUTHN = "WEBAUTHN",
509
- /** Requires a recovery code. */
510
- RECOVERY_CODE = "RECOVERY_CODE"
511
- }
512
- /** @enumType */
513
- type FactorTypeWithLiterals = FactorType | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN' | 'RECOVERY_CODE';
514
524
  declare enum Status {
515
525
  /** Factor requires activation. */
516
526
  INACTIVE = "INACTIVE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_identity_authentication",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
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": "0cc3a25a0ee3523d142b487bcce0cb6e68064395e70e270b899291de"
53
+ "falconPackageHash": "fcd9edc1b9fd94f9284241f0216e138c880aba10f66397a018eb17dc"
54
54
  }