@wix/auto_sdk_identity_authentication 1.0.61 → 1.0.63

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.
@@ -13,6 +13,11 @@ interface RegisterV2Request {
13
13
  captchaTokens?: CaptchaToken[];
14
14
  /** Additional data that's relevant for the flow. */
15
15
  clientMetaData?: Record<string, any> | null;
16
+ /**
17
+ * The factor to register with: `PASSWORD`, the default, or `EMAIL`, which sends a code and returns
18
+ * `REQUIRE_REGISTRATION_FACTOR` until the code is submitted to `Verify`.
19
+ */
20
+ factorType?: FactorTypeWithLiterals;
16
21
  }
17
22
  interface LoginId extends LoginIdTypeOneOf {
18
23
  /**
@@ -273,6 +278,26 @@ interface RecaptchaForClientSiteKey {
273
278
  */
274
279
  siteKeyId?: string;
275
280
  }
281
+ declare enum FactorType {
282
+ /** Requires a password. */
283
+ PASSWORD = "PASSWORD",
284
+ /** Requires a code sent via SMS. */
285
+ SMS = "SMS",
286
+ /** Requires a code sent by phone call. */
287
+ CALL = "CALL",
288
+ /** Requires a code sent by email. */
289
+ EMAIL = "EMAIL",
290
+ /** Requires authentication via an authenticator app. */
291
+ TOTP = "TOTP",
292
+ /** Requires authentication via a push notification. */
293
+ PUSH = "PUSH",
294
+ /** Requires authentication via WebAuthn/passkey. */
295
+ WEBAUTHN = "WEBAUTHN",
296
+ /** Requires a recovery code. */
297
+ RECOVERY_CODE = "RECOVERY_CODE"
298
+ }
299
+ /** @enumType */
300
+ type FactorTypeWithLiterals = FactorType | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN' | 'RECOVERY_CODE';
276
301
  interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
277
302
  /** @internal */
278
303
  requireMfaData?: RequireMfaData;
@@ -329,7 +354,12 @@ declare enum StateType {
329
354
  */
330
355
  REQUIRE_FIRST_FACTOR = "REQUIRE_FIRST_FACTOR",
331
356
  /** Member is missing fields that are marked as required on the site's signup form, and needs to complete them to finish registration. */
332
- REQUIRE_MISSING_FIELDS = "REQUIRE_MISSING_FIELDS"
357
+ REQUIRE_MISSING_FIELDS = "REQUIRE_MISSING_FIELDS",
358
+ /**
359
+ * Registering identity must prove their sign-up factor (e.g. an emailed code) before the identity is created.
360
+ * @internal
361
+ */
362
+ REQUIRE_REGISTRATION_FACTOR = "REQUIRE_REGISTRATION_FACTOR"
333
363
  }
334
364
  /** @enumType */
335
365
  type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK' | 'REQUIRE_MISSING_FIELDS';
@@ -475,26 +505,6 @@ interface Factor {
475
505
  /** Factor status. */
476
506
  status?: StatusWithLiterals;
477
507
  }
478
- declare enum FactorType {
479
- /** Requires a password. */
480
- PASSWORD = "PASSWORD",
481
- /** Requires a code sent via SMS. */
482
- SMS = "SMS",
483
- /** Requires a code sent by phone call. */
484
- CALL = "CALL",
485
- /** Requires a code sent by email. */
486
- EMAIL = "EMAIL",
487
- /** Requires authentication via an authenticator app. */
488
- TOTP = "TOTP",
489
- /** Requires authentication via a push notification. */
490
- PUSH = "PUSH",
491
- /** Requires authentication via WebAuthn/passkey. */
492
- WEBAUTHN = "WEBAUTHN",
493
- /** Requires a recovery code. */
494
- RECOVERY_CODE = "RECOVERY_CODE"
495
- }
496
- /** @enumType */
497
- type FactorTypeWithLiterals = FactorType | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN' | 'RECOVERY_CODE';
498
508
  declare enum Status {
499
509
  /** Factor requires activation. */
500
510
  INACTIVE = "INACTIVE",
@@ -1216,6 +1226,11 @@ interface RegisterV2Options {
1216
1226
  captchaTokens?: CaptchaToken[];
1217
1227
  /** Additional data that's relevant for the flow. */
1218
1228
  clientMetaData?: Record<string, any> | null;
1229
+ /**
1230
+ * The factor to register with: `PASSWORD`, the default, or `EMAIL`, which sends a code and returns
1231
+ * `REQUIRE_REGISTRATION_FACTOR` until the code is submitted to `Verify`.
1232
+ */
1233
+ factorType?: FactorTypeWithLiterals;
1219
1234
  }
1220
1235
  /** @public
1221
1236
  * @requiredField email
@@ -14,6 +14,11 @@ 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;
17
22
  }
18
23
  interface LoginId extends LoginIdTypeOneOf {
19
24
  /**
@@ -284,6 +289,26 @@ interface RecaptchaForClientSiteKey {
284
289
  */
285
290
  siteKeyId?: string;
286
291
  }
292
+ declare enum FactorType {
293
+ /** Requires a password. */
294
+ PASSWORD = "PASSWORD",
295
+ /** Requires a code sent via SMS. */
296
+ SMS = "SMS",
297
+ /** Requires a code sent by phone call. */
298
+ CALL = "CALL",
299
+ /** Requires a code sent by email. */
300
+ EMAIL = "EMAIL",
301
+ /** Requires authentication via an authenticator app. */
302
+ TOTP = "TOTP",
303
+ /** Requires authentication via a push notification. */
304
+ PUSH = "PUSH",
305
+ /** Requires authentication via WebAuthn/passkey. */
306
+ WEBAUTHN = "WEBAUTHN",
307
+ /** Requires a recovery code. */
308
+ RECOVERY_CODE = "RECOVERY_CODE"
309
+ }
310
+ /** @enumType */
311
+ type FactorTypeWithLiterals = FactorType | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN' | 'RECOVERY_CODE';
287
312
  interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
288
313
  /** @internal */
289
314
  requireMfaData?: RequireMfaData;
@@ -340,7 +365,12 @@ declare enum StateType {
340
365
  */
341
366
  REQUIRE_FIRST_FACTOR = "REQUIRE_FIRST_FACTOR",
342
367
  /** Member is missing fields that are marked as required on the site's signup form, and needs to complete them to finish registration. */
343
- REQUIRE_MISSING_FIELDS = "REQUIRE_MISSING_FIELDS"
368
+ REQUIRE_MISSING_FIELDS = "REQUIRE_MISSING_FIELDS",
369
+ /**
370
+ * Registering identity must prove their sign-up factor (e.g. an emailed code) before the identity is created.
371
+ * @internal
372
+ */
373
+ REQUIRE_REGISTRATION_FACTOR = "REQUIRE_REGISTRATION_FACTOR"
344
374
  }
345
375
  /** @enumType */
346
376
  type StateTypeWithLiterals = StateType | 'UNKNOWN_STATE' | 'SUCCESS' | 'REQUIRE_OWNER_APPROVAL' | 'REQUIRE_EMAIL_VERIFICATION' | 'STATUS_CHECK' | 'REQUIRE_MISSING_FIELDS';
@@ -486,26 +516,6 @@ interface Factor {
486
516
  /** Factor status. */
487
517
  status?: StatusWithLiterals;
488
518
  }
489
- declare enum FactorType {
490
- /** Requires a password. */
491
- PASSWORD = "PASSWORD",
492
- /** Requires a code sent via SMS. */
493
- SMS = "SMS",
494
- /** Requires a code sent by phone call. */
495
- CALL = "CALL",
496
- /** Requires a code sent by email. */
497
- EMAIL = "EMAIL",
498
- /** Requires authentication via an authenticator app. */
499
- TOTP = "TOTP",
500
- /** Requires authentication via a push notification. */
501
- PUSH = "PUSH",
502
- /** Requires authentication via WebAuthn/passkey. */
503
- WEBAUTHN = "WEBAUTHN",
504
- /** Requires a recovery code. */
505
- RECOVERY_CODE = "RECOVERY_CODE"
506
- }
507
- /** @enumType */
508
- type FactorTypeWithLiterals = FactorType | 'PASSWORD' | 'SMS' | 'CALL' | 'EMAIL' | 'TOTP' | 'PUSH' | 'WEBAUTHN' | 'RECOVERY_CODE';
509
519
  declare enum Status {
510
520
  /** Factor requires activation. */
511
521
  INACTIVE = "INACTIVE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_identity_authentication",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
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": "2e6c4874f6a4a5f26be6924102a183634f4394ef028a2af10700fa01"
53
+ "falconPackageHash": "30a6c31ad9ab5a7b43fe48b78816b7b15c590957d6979e743746d06d"
54
54
  }