@wix/auto_sdk_identity_authentication 1.0.3 → 1.0.5

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.
Files changed (65) hide show
  1. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +2 -2
  2. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +2 -1
  3. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -1
  4. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +42 -0
  5. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -1
  6. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +6 -6
  7. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -1
  8. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +8 -8
  9. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +2 -1
  10. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -1
  11. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts +98 -109
  12. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +17 -1
  13. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -1
  14. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +105 -115
  15. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +17 -1
  16. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -1
  17. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +2 -2
  18. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +1 -1
  19. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -1
  20. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +42 -0
  21. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -1
  22. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +6 -6
  23. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -1
  24. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +8 -8
  25. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +1 -1
  26. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -1
  27. package/build/es/src/iam-authentication-v1-authentication-authentication.types.d.ts +98 -109
  28. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +16 -0
  29. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -1
  30. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +105 -115
  31. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +16 -0
  32. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -1
  33. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +2 -2
  34. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +2 -1
  35. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -1
  36. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +42 -0
  37. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -1
  38. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +6 -6
  39. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -1
  40. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +8 -8
  41. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +2 -1
  42. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -1
  43. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts +98 -109
  44. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +17 -1
  45. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -1
  46. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +105 -115
  47. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +17 -1
  48. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -1
  49. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +2 -2
  50. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +1 -1
  51. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -1
  52. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +42 -0
  53. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -1
  54. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +6 -6
  55. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -1
  56. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +8 -8
  57. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +1 -1
  58. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -1
  59. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.d.ts +98 -109
  60. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +16 -0
  61. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -1
  62. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +105 -115
  63. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +16 -0
  64. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -1
  65. package/package.json +3 -3
@@ -35,5 +35,5 @@ export function verify(httpClient) {
35
35
  // @ts-ignore
36
36
  { httpClient });
37
37
  }
38
- export { AddressTag, EmailTag, FactorStatus, FactorType, MfaReason, PhoneTag, PrivacyStatus, Reason, StateType, Status, StatusName, TenantType, } from './iam-authentication-v1-authentication-authentication.universal.js';
38
+ export { AddressTag, EmailTag, FactorStatus, FactorType, MfaReason, PhoneTag, PrivacyStatus, Reason, StateType, Status, StatusName, TenantType, UserVerificationRequirement, } from './iam-authentication-v1-authentication-authentication.universal.js';
39
39
  //# sourceMappingURL=iam-authentication-v1-authentication-authentication.public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iam-authentication-v1-authentication-authentication.public.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication-authentication.public.ts"],"names":[],"mappings":"AACA,OAAO,EAeL,cAAc,IAAI,uBAAuB,EACzC,aAAa,IAAI,sBAAsB,EACvC,OAAO,IAAI,gBAAgB,EAC3B,MAAM,IAAI,eAAe,EACzB,UAAU,IAAI,mBAAmB,EACjC,MAAM,IAAI,eAAe,EACzB,MAAM,IAAI,eAAe,GAC1B,MAAM,oEAAoE,CAAC;AAE5E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,OAAgB,EAAE,OAA2B,EAAE,EAAE,CACvD,mBAAmB,CACjB,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAmBD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,OAAgB,EAAE,OAAwB,EAAE,EAAE,CACpD,gBAAgB,CACd,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAgBD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,EAAE,CAC7B,uBAAuB,CACrB,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,OAA8B,EAAE,EAAE,CACxC,sBAAsB,CACpB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AASD,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,OAAgB,EAAE,OAAuB,EAAE,EAAE,CACnD,eAAe,CACb,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AASD,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,OAAuB,EAAE,EAAE,CACjC,eAAe,CACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,UAAsB,EAAE,OAAuB,EAAE,EAAE,CACzD,eAAe,CACb,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AASD,OAAO,EAEL,UAAU,EAeV,QAAQ,EAGR,YAAY,EACZ,UAAU,EAmBV,SAAS,EAGT,QAAQ,EACR,aAAa,EAOb,MAAM,EAaN,SAAS,EACT,MAAM,EACN,UAAU,EAEV,UAAU,GAaX,MAAM,oEAAoE,CAAC"}
1
+ {"version":3,"file":"iam-authentication-v1-authentication-authentication.public.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication-authentication.public.ts"],"names":[],"mappings":"AACA,OAAO,EAYL,cAAc,IAAI,uBAAuB,EACzC,aAAa,IAAI,sBAAsB,EACvC,OAAO,IAAI,gBAAgB,EAC3B,MAAM,IAAI,eAAe,EACzB,UAAU,IAAI,mBAAmB,EACjC,MAAM,IAAI,eAAe,EACzB,MAAM,IAAI,eAAe,GAC1B,MAAM,oEAAoE,CAAC;AAE5E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,OAAgB,EAAE,OAA2B,EAAE,EAAE,CACvD,mBAAmB,CACjB,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,C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@ export declare enum FactorType {
392
392
  /** Requires authentication via an authenticator app. */
393
393
  TOTP = "TOTP",
394
394
  /** Requires authentication via a push notification. */
395
- PUSH = "PUSH"
395
+ PUSH = "PUSH",
396
+ /** Requires authentication via WebAuthn/passkey. */
397
+ WEBAUTHN = "WEBAUTHN"
396
398
  }
397
399
  export declare enum Status {
398
400
  /** Factor requires activation. */
@@ -479,12 +481,14 @@ export interface MfaChallengeData {
479
481
  }
480
482
  export interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
481
483
  pushData?: PushChallengeData;
484
+ webauthnData?: WebAuthnChallengeData;
482
485
  /** @maxLength 200 */
483
486
  hint?: string | null;
484
487
  }
485
488
  /** @oneof */
486
489
  export interface VerificationChallengeFactorChallengeDataOneOf {
487
490
  pushData?: PushChallengeData;
491
+ webauthnData?: WebAuthnChallengeData;
488
492
  }
489
493
  export interface PushChallengeData {
490
494
  /**
@@ -494,6 +498,99 @@ export interface PushChallengeData {
494
498
  */
495
499
  transactionId?: string;
496
500
  }
501
+ export interface WebAuthnChallengeData {
502
+ /**
503
+ * A unique identifier for this challenge that will be used to correlate
504
+ * the authentication response with this challenge.
505
+ * This should be a cryptographically random GUID to prevent guessing attacks.
506
+ * @format GUID
507
+ */
508
+ challengeId?: string;
509
+ /**
510
+ * The challenge that will be signed by the authenticator during the WebAuthn authentication ceremony.
511
+ * This should be a cryptographically secure random value with at least 16 bytes of entropy.
512
+ * The value is used to prevent replay attacks and MUST be randomly generated by the implementer.
513
+ */
514
+ challenge?: Uint8Array;
515
+ /**
516
+ * The timeout in milliseconds for the WebAuthn authentication ceremony.
517
+ * After this time, the challenge will be considered expired and the authentication will need to be restarted.
518
+ * This is optional and may be overridden by the client if provided.
519
+ * The WebAuthn spec recommends a timeout of at least 1 minute (60000ms).
520
+ */
521
+ timeoutMs?: number | null;
522
+ /**
523
+ * Optional list of credentials that are acceptable for this authentication ceremony.
524
+ * If empty, all credentials associated with the user will be considered.
525
+ * @maxSize 10
526
+ */
527
+ allowCredentials?: PublicKeyCredentialDescriptor[];
528
+ /** Specifies the requirement for user verification during the authentication ceremony. */
529
+ userVerification?: UserVerificationRequirement;
530
+ /**
531
+ * Optional hints to guide the client UI
532
+ * Examples include "security-key" to emphasize external authenticators
533
+ * or "client-device" to emphasize built-in authenticators
534
+ * @maxLength 50
535
+ * @maxSize 10
536
+ */
537
+ hints?: string[];
538
+ /**
539
+ * Optional extensions for the authentication ceremony
540
+ * Provides additional parameters for specialized WebAuthn functionality
541
+ */
542
+ extensions?: AuthenticationExtensionInputs;
543
+ }
544
+ export interface PublicKeyCredentialDescriptor {
545
+ /** The credential ID */
546
+ id?: Uint8Array;
547
+ /**
548
+ * An optional hint as to the transports used by the credential
549
+ * Examples include "usb", "nfc", "ble", "internal", "hybrid"
550
+ * @maxLength 50
551
+ * @maxSize 10
552
+ */
553
+ transports?: string[];
554
+ }
555
+ export declare enum UserVerificationRequirement {
556
+ /** Default unspecified value */
557
+ USER_VERIFICATION_UNSPECIFIED = "USER_VERIFICATION_UNSPECIFIED",
558
+ /**
559
+ * The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
560
+ * set
561
+ */
562
+ USER_VERIFICATION_REQUIRED = "USER_VERIFICATION_REQUIRED",
563
+ /** The Relying Party prefers user verification but will not fail the operation if unavailable */
564
+ USER_VERIFICATION_PREFERRED = "USER_VERIFICATION_PREFERRED",
565
+ /** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
566
+ USER_VERIFICATION_DISCOURAGED = "USER_VERIFICATION_DISCOURAGED"
567
+ }
568
+ export interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
569
+ /** Read existing large blob data from the authenticator */
570
+ largeBlobRead?: boolean;
571
+ /** Write data to the authenticator's large blob storage */
572
+ largeBlobWrite?: Uint8Array;
573
+ /**
574
+ * FIDO AppID Extension (appid)
575
+ * An AppID that was used for previously registered U2F authenticators
576
+ * This makes already-registered U2F credentials forward-compatible with the WebAuthn API
577
+ * @maxLength 256
578
+ */
579
+ appid?: string;
580
+ /**
581
+ * User Verification Method Extension (uvm)
582
+ * Requests the authenticator to report which verification methods were used
583
+ * Examples include fingerprint, PIN, or facial recognition
584
+ */
585
+ uvm?: boolean;
586
+ }
587
+ /** @oneof */
588
+ export interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
589
+ /** Read existing large blob data from the authenticator */
590
+ largeBlobRead?: boolean;
591
+ /** Write data to the authenticator's large blob storage */
592
+ largeBlobWrite?: Uint8Array;
593
+ }
497
594
  export interface LoginV2Request {
498
595
  /** Identifier of identity logging in. */
499
596
  loginId: LoginId;
@@ -664,111 +761,3 @@ export interface PushVerifyData {
664
761
  /** @maxLength 36 */
665
762
  transactionId?: string | null;
666
763
  }
667
- interface V1FactorNonNullableFields {
668
- factorType: FactorType;
669
- factorStatus: FactorStatus;
670
- }
671
- interface RequireMfaDataNonNullableFields {
672
- availableFactors: V1FactorNonNullableFields[];
673
- reason: MfaReason;
674
- }
675
- interface PushChallengeDataNonNullableFields {
676
- transactionId: string;
677
- }
678
- interface VerificationChallengeNonNullableFields {
679
- pushData?: PushChallengeDataNonNullableFields;
680
- }
681
- interface MfaChallengeDataNonNullableFields {
682
- factorType: FactorType;
683
- verificationChallengeData?: VerificationChallengeNonNullableFields;
684
- availableFactors: V1FactorNonNullableFields[];
685
- reason: MfaReason;
686
- }
687
- interface IdpConnectionNonNullableFields {
688
- idpConnectionId: string;
689
- idpUserId: string;
690
- }
691
- interface AuthenticatorConnectionNonNullableFields {
692
- authenticatorConnectionId: string;
693
- reEnrollmentRequired: boolean;
694
- }
695
- interface ConnectionNonNullableFields {
696
- idpConnection?: IdpConnectionNonNullableFields;
697
- authenticatorConnection?: AuthenticatorConnectionNonNullableFields;
698
- }
699
- interface V1ListValueNonNullableFields {
700
- value: V1CustomValueNonNullableFields[];
701
- }
702
- interface V1CustomValueNonNullableFields {
703
- strValue: string;
704
- numValue: number;
705
- listValue?: V1ListValueNonNullableFields;
706
- }
707
- interface CustomFieldNonNullableFields {
708
- name: string;
709
- value?: V1CustomValueNonNullableFields;
710
- }
711
- interface SecondaryEmailNonNullableFields {
712
- email: string;
713
- tag: EmailTag;
714
- }
715
- interface PhoneNonNullableFields {
716
- phone: string;
717
- tag: PhoneTag;
718
- }
719
- interface AddressWrapperNonNullableFields {
720
- tag: AddressTag;
721
- }
722
- interface IdentityProfileNonNullableFields {
723
- emails: string[];
724
- phones: string[];
725
- labels: string[];
726
- privacyStatus: PrivacyStatus;
727
- customFields: CustomFieldNonNullableFields[];
728
- secondaryEmails: SecondaryEmailNonNullableFields[];
729
- phonesV2: PhoneNonNullableFields[];
730
- addresses: AddressWrapperNonNullableFields[];
731
- }
732
- interface MetadataNonNullableFields {
733
- tags: string[];
734
- }
735
- interface EmailNonNullableFields {
736
- address: string;
737
- isVerified: boolean;
738
- }
739
- interface StatusV2NonNullableFields {
740
- name: StatusName;
741
- reasons: Reason[];
742
- }
743
- interface FactorNonNullableFields {
744
- factorId: string;
745
- type: FactorType;
746
- status: Status;
747
- }
748
- interface IdentityNonNullableFields {
749
- connections: ConnectionNonNullableFields[];
750
- identityProfile?: IdentityProfileNonNullableFields;
751
- metadata?: MetadataNonNullableFields;
752
- email?: EmailNonNullableFields;
753
- status?: StatusV2NonNullableFields;
754
- factors: FactorNonNullableFields[];
755
- }
756
- export interface StateMachineResponseNonNullableFields {
757
- requireMfaData?: RequireMfaDataNonNullableFields;
758
- mfaChallengeData?: MfaChallengeDataNonNullableFields;
759
- state: StateType;
760
- identity?: IdentityNonNullableFields;
761
- }
762
- interface HeadersEntryNonNullableFields {
763
- key: string;
764
- value: string;
765
- }
766
- export interface RawHttpResponseNonNullableFields {
767
- body: Uint8Array;
768
- headers: HeadersEntryNonNullableFields[];
769
- }
770
- export interface SignOnResponseNonNullableFields {
771
- sessionToken: string;
772
- identity?: IdentityNonNullableFields;
773
- }
774
- export {};
@@ -75,6 +75,8 @@ export var FactorType;
75
75
  FactorType["TOTP"] = "TOTP";
76
76
  /** Requires authentication via a push notification. */
77
77
  FactorType["PUSH"] = "PUSH";
78
+ /** Requires authentication via WebAuthn/passkey. */
79
+ FactorType["WEBAUTHN"] = "WEBAUTHN";
78
80
  })(FactorType || (FactorType = {}));
79
81
  export var Status;
80
82
  (function (Status) {
@@ -102,6 +104,20 @@ export var MfaReason;
102
104
  /** Mfa is required due to high risk login */
103
105
  MfaReason["HIGH_RISK_LOGIN"] = "HIGH_RISK_LOGIN";
104
106
  })(MfaReason || (MfaReason = {}));
107
+ export var UserVerificationRequirement;
108
+ (function (UserVerificationRequirement) {
109
+ /** Default unspecified value */
110
+ UserVerificationRequirement["USER_VERIFICATION_UNSPECIFIED"] = "USER_VERIFICATION_UNSPECIFIED";
111
+ /**
112
+ * The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
113
+ * set
114
+ */
115
+ UserVerificationRequirement["USER_VERIFICATION_REQUIRED"] = "USER_VERIFICATION_REQUIRED";
116
+ /** The Relying Party prefers user verification but will not fail the operation if unavailable */
117
+ UserVerificationRequirement["USER_VERIFICATION_PREFERRED"] = "USER_VERIFICATION_PREFERRED";
118
+ /** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
119
+ UserVerificationRequirement["USER_VERIFICATION_DISCOURAGED"] = "USER_VERIFICATION_DISCOURAGED";
120
+ })(UserVerificationRequirement || (UserVerificationRequirement = {}));
105
121
  export var TenantType;
106
122
  (function (TenantType) {
107
123
  TenantType["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
@@ -1 +1 @@
1
- {"version":3,"file":"iam-authentication-v1-authentication-authentication.types.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication-authentication.types.ts"],"names":[],"mappings":"AAoGA,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,iCAAiC;IACjC,wCAAuB,CAAA;IACvB,+FAA+F;IAC/F,kCAAiB,CAAA;IACjB,uDAAuD;IACvD,oCAAmB,CAAA;AACrB,CAA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,QAIjB;AAcD,MAAM,CAAN,IAAY,UAeX;AAfD,WAAY,UAAU;IACpB,2BAA2B;IAC3B,yDAA2C,CAAA;IAC3C,2BAA2B;IAC3B,mCAAqB,CAAA;IACrB,oCAAoC;IACpC,yBAAW,CAAA;IACX,0CAA0C;IAC1C,2BAAa,CAAA;IACb,qCAAqC;IACrC,6BAAe,CAAA;IACf,wDAAwD;IACxD,2BAAa,CAAA;IACb,uDAAuD;IACvD,2BAAa,CAAA;AACf,CAAC,EAfW,UAAU,KAAV,UAAU,QAerB;AAED,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,kCAAkC;IAClC,+BAAqB,CAAA;IACrB,2DAA2D;IAC3D,2BAAiB,CAAA;IACjB,oGAAoG;IACpG,+CAAqC,CAAA;AACvC,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AAwDD,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,mCAAmB,CAAA;IACnB,yDAAyC,CAAA;IACzC,qDAAqC,CAAA;IACrC,mDAAmC,CAAA;IACnC,qDAAqC,CAAA;AACvC,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AAED,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,2CAA2C;IAC3C,4CAA+B,CAAA;IAC/B,6CAA6C;IAC7C,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AA+ED,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
1
+ {"version":3,"file":"iam-authentication-v1-authentication-authentication.types.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication-authentication.types.ts"],"names":[],"mappings":"AAoGA,MAAM,CAAN,IAA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AAA;IACzD,iGAAiG;IACjG,0FAA2D,CAAA;IAC3D,uHAAuH;IACvH,8FAA+D,CAAA;AACjE,CAAC,EAZW,2BAA2B,KAA3B,2BAA2B,QAYtC;AA0ED,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
@@ -1,3 +1,4 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
1
2
  export interface Authentication {
2
3
  }
3
4
  export interface RegisterV2Request {
@@ -392,7 +393,9 @@ export declare enum FactorType {
392
393
  /** Requires authentication via an authenticator app. */
393
394
  TOTP = "TOTP",
394
395
  /** Requires authentication via a push notification. */
395
- PUSH = "PUSH"
396
+ PUSH = "PUSH",
397
+ /** Requires authentication via WebAuthn/passkey. */
398
+ WEBAUTHN = "WEBAUTHN"
396
399
  }
397
400
  export declare enum Status {
398
401
  /** Factor requires activation. */
@@ -479,12 +482,14 @@ export interface MfaChallengeData {
479
482
  }
480
483
  export interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
481
484
  pushData?: PushChallengeData;
485
+ webauthnData?: WebAuthnChallengeData;
482
486
  /** @maxLength 200 */
483
487
  hint?: string | null;
484
488
  }
485
489
  /** @oneof */
486
490
  export interface VerificationChallengeFactorChallengeDataOneOf {
487
491
  pushData?: PushChallengeData;
492
+ webauthnData?: WebAuthnChallengeData;
488
493
  }
489
494
  export interface PushChallengeData {
490
495
  /**
@@ -494,6 +499,99 @@ export interface PushChallengeData {
494
499
  */
495
500
  transactionId?: string;
496
501
  }
502
+ export interface WebAuthnChallengeData {
503
+ /**
504
+ * A unique identifier for this challenge that will be used to correlate
505
+ * the authentication response with this challenge.
506
+ * This should be a cryptographically random GUID to prevent guessing attacks.
507
+ * @format GUID
508
+ */
509
+ challengeId?: string;
510
+ /**
511
+ * The challenge that will be signed by the authenticator during the WebAuthn authentication ceremony.
512
+ * This should be a cryptographically secure random value with at least 16 bytes of entropy.
513
+ * The value is used to prevent replay attacks and MUST be randomly generated by the implementer.
514
+ */
515
+ challenge?: Uint8Array;
516
+ /**
517
+ * The timeout in milliseconds for the WebAuthn authentication ceremony.
518
+ * After this time, the challenge will be considered expired and the authentication will need to be restarted.
519
+ * This is optional and may be overridden by the client if provided.
520
+ * The WebAuthn spec recommends a timeout of at least 1 minute (60000ms).
521
+ */
522
+ timeoutMs?: number | null;
523
+ /**
524
+ * Optional list of credentials that are acceptable for this authentication ceremony.
525
+ * If empty, all credentials associated with the user will be considered.
526
+ * @maxSize 10
527
+ */
528
+ allowCredentials?: PublicKeyCredentialDescriptor[];
529
+ /** Specifies the requirement for user verification during the authentication ceremony. */
530
+ userVerification?: UserVerificationRequirement;
531
+ /**
532
+ * Optional hints to guide the client UI
533
+ * Examples include "security-key" to emphasize external authenticators
534
+ * or "client-device" to emphasize built-in authenticators
535
+ * @maxLength 50
536
+ * @maxSize 10
537
+ */
538
+ hints?: string[];
539
+ /**
540
+ * Optional extensions for the authentication ceremony
541
+ * Provides additional parameters for specialized WebAuthn functionality
542
+ */
543
+ extensions?: AuthenticationExtensionInputs;
544
+ }
545
+ export interface PublicKeyCredentialDescriptor {
546
+ /** The credential ID */
547
+ _id?: Uint8Array;
548
+ /**
549
+ * An optional hint as to the transports used by the credential
550
+ * Examples include "usb", "nfc", "ble", "internal", "hybrid"
551
+ * @maxLength 50
552
+ * @maxSize 10
553
+ */
554
+ transports?: string[];
555
+ }
556
+ export declare enum UserVerificationRequirement {
557
+ /** Default unspecified value */
558
+ USER_VERIFICATION_UNSPECIFIED = "USER_VERIFICATION_UNSPECIFIED",
559
+ /**
560
+ * The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
561
+ * set
562
+ */
563
+ USER_VERIFICATION_REQUIRED = "USER_VERIFICATION_REQUIRED",
564
+ /** The Relying Party prefers user verification but will not fail the operation if unavailable */
565
+ USER_VERIFICATION_PREFERRED = "USER_VERIFICATION_PREFERRED",
566
+ /** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
567
+ USER_VERIFICATION_DISCOURAGED = "USER_VERIFICATION_DISCOURAGED"
568
+ }
569
+ export interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
570
+ /** Read existing large blob data from the authenticator */
571
+ largeBlobRead?: boolean;
572
+ /** Write data to the authenticator's large blob storage */
573
+ largeBlobWrite?: Uint8Array;
574
+ /**
575
+ * FIDO AppID Extension (appid)
576
+ * An AppID that was used for previously registered U2F authenticators
577
+ * This makes already-registered U2F credentials forward-compatible with the WebAuthn API
578
+ * @maxLength 256
579
+ */
580
+ appid?: string;
581
+ /**
582
+ * User Verification Method Extension (uvm)
583
+ * Requests the authenticator to report which verification methods were used
584
+ * Examples include fingerprint, PIN, or facial recognition
585
+ */
586
+ uvm?: boolean;
587
+ }
588
+ /** @oneof */
589
+ export interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
590
+ /** Read existing large blob data from the authenticator */
591
+ largeBlobRead?: boolean;
592
+ /** Write data to the authenticator's large blob storage */
593
+ largeBlobWrite?: Uint8Array;
594
+ }
497
595
  export interface LoginV2Request {
498
596
  /** Identifier of identity logging in. */
499
597
  loginId: LoginId;
@@ -664,113 +762,6 @@ export interface PushVerifyData {
664
762
  /** @maxLength 36 */
665
763
  transactionId?: string | null;
666
764
  }
667
- interface V1FactorNonNullableFields {
668
- factorType: FactorType;
669
- factorStatus: FactorStatus;
670
- }
671
- interface RequireMfaDataNonNullableFields {
672
- availableFactors: V1FactorNonNullableFields[];
673
- reason: MfaReason;
674
- }
675
- interface PushChallengeDataNonNullableFields {
676
- transactionId: string;
677
- }
678
- interface VerificationChallengeNonNullableFields {
679
- pushData?: PushChallengeDataNonNullableFields;
680
- }
681
- interface MfaChallengeDataNonNullableFields {
682
- factorType: FactorType;
683
- verificationChallengeData?: VerificationChallengeNonNullableFields;
684
- availableFactors: V1FactorNonNullableFields[];
685
- reason: MfaReason;
686
- }
687
- interface IdpConnectionNonNullableFields {
688
- idpConnectionId: string;
689
- idpUserId: string;
690
- }
691
- interface AuthenticatorConnectionNonNullableFields {
692
- authenticatorConnectionId: string;
693
- reEnrollmentRequired: boolean;
694
- }
695
- interface ConnectionNonNullableFields {
696
- idpConnection?: IdpConnectionNonNullableFields;
697
- authenticatorConnection?: AuthenticatorConnectionNonNullableFields;
698
- }
699
- interface V1ListValueNonNullableFields {
700
- value: V1CustomValueNonNullableFields[];
701
- }
702
- interface V1CustomValueNonNullableFields {
703
- strValue: string;
704
- numValue: number;
705
- listValue?: V1ListValueNonNullableFields;
706
- }
707
- interface CustomFieldNonNullableFields {
708
- name: string;
709
- value?: V1CustomValueNonNullableFields;
710
- }
711
- interface SecondaryEmailNonNullableFields {
712
- email: string;
713
- tag: EmailTag;
714
- }
715
- interface PhoneNonNullableFields {
716
- phone: string;
717
- tag: PhoneTag;
718
- }
719
- interface AddressWrapperNonNullableFields {
720
- tag: AddressTag;
721
- }
722
- interface IdentityProfileNonNullableFields {
723
- emails: string[];
724
- phones: string[];
725
- labels: string[];
726
- privacyStatus: PrivacyStatus;
727
- customFields: CustomFieldNonNullableFields[];
728
- secondaryEmails: SecondaryEmailNonNullableFields[];
729
- phonesV2: PhoneNonNullableFields[];
730
- addresses: AddressWrapperNonNullableFields[];
731
- }
732
- interface MetadataNonNullableFields {
733
- tags: string[];
734
- }
735
- interface EmailNonNullableFields {
736
- address: string;
737
- isVerified: boolean;
738
- }
739
- interface StatusV2NonNullableFields {
740
- name: StatusName;
741
- reasons: Reason[];
742
- }
743
- interface FactorNonNullableFields {
744
- factorId: string;
745
- type: FactorType;
746
- status: Status;
747
- }
748
- interface IdentityNonNullableFields {
749
- connections: ConnectionNonNullableFields[];
750
- identityProfile?: IdentityProfileNonNullableFields;
751
- metadata?: MetadataNonNullableFields;
752
- email?: EmailNonNullableFields;
753
- status?: StatusV2NonNullableFields;
754
- factors: FactorNonNullableFields[];
755
- }
756
- export interface StateMachineResponseNonNullableFields {
757
- requireMfaData?: RequireMfaDataNonNullableFields;
758
- mfaChallengeData?: MfaChallengeDataNonNullableFields;
759
- state: StateType;
760
- identity?: IdentityNonNullableFields;
761
- }
762
- interface HeadersEntryNonNullableFields {
763
- key: string;
764
- value: string;
765
- }
766
- export interface RawHttpResponseNonNullableFields {
767
- body: Uint8Array;
768
- headers: HeadersEntryNonNullableFields[];
769
- }
770
- export interface SignOnResponseNonNullableFields {
771
- sessionToken: string;
772
- identity?: IdentityNonNullableFields;
773
- }
774
765
  /**
775
766
  * Registers a new member.
776
767
  *
@@ -785,7 +776,7 @@ export interface SignOnResponseNonNullableFields {
785
776
  * @requiredField loginId
786
777
  * @fqn wix.iam.authentication.v1.AuthenticationService.RegisterV2
787
778
  */
788
- export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
779
+ export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
789
780
  export interface RegisterV2Options {
790
781
  /** Password of the registering member. */
791
782
  password?: string;
@@ -807,7 +798,7 @@ export interface RegisterV2Options {
807
798
  * @requiredField loginId
808
799
  * @fqn wix.iam.authentication.v1.AuthenticationService.LoginV2
809
800
  */
810
- export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
801
+ export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
811
802
  export interface LoginV2Options {
812
803
  /** Password of the identity logging in. */
813
804
  password?: string;
@@ -830,7 +821,7 @@ export declare function changePassword(newPassword: string): Promise<void>;
830
821
  * @documentationMaturity preview
831
822
  * @fqn wix.iam.authentication.v1.AuthenticationService.LoginCallback
832
823
  */
833
- export declare function loginCallback(options?: LoginCallbackOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
824
+ export declare function loginCallback(options?: LoginCallbackOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
834
825
  export interface LoginCallbackOptions {
835
826
  /** state that that received on the redirect */
836
827
  state?: string;
@@ -847,7 +838,7 @@ export interface LoginCallbackOptions {
847
838
  * @applicableIdentity APP
848
839
  * @fqn wix.iam.authentication.v1.AuthenticationService.SignOn
849
840
  */
850
- export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<SignOnResponse & SignOnResponseNonNullableFields>;
841
+ export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<NonNullablePaths<SignOnResponse, `sessionToken` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
851
842
  export interface SignOnOptions {
852
843
  /** profile of the identity */
853
844
  profile?: IdentityProfile;
@@ -862,7 +853,7 @@ export interface SignOnOptions {
862
853
  * @documentationMaturity preview
863
854
  * @fqn wix.iam.authentication.v1.AuthenticationService.Logout
864
855
  */
865
- export declare function logout(options?: LogoutOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
856
+ export declare function logout(options?: LogoutOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
866
857
  export interface LogoutOptions {
867
858
  /**
868
859
  * redirect after logout
@@ -880,7 +871,7 @@ export interface LogoutOptions {
880
871
  * @requiredField factorType
881
872
  * @fqn wix.iam.authentication.v1.AuthenticationService.Verify
882
873
  */
883
- export declare function verify(factorType: FactorType, options?: VerifyOptions): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
874
+ export declare function verify(factorType: FactorType, options?: VerifyOptions): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.customFields.${number}.value.listValue.value` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.metadata.tags` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`>>;
884
875
  export interface VerifyOptions extends VerifyOptionsFactorDataOneOf {
885
876
  /**
886
877
  * TODO: is this a reasonable maxLength?
@@ -902,4 +893,3 @@ export interface VerifyOptionsFactorDataOneOf {
902
893
  totpData?: TotpVerifyData;
903
894
  pushData?: PushVerifyData;
904
895
  }
905
- export {};
@@ -81,6 +81,8 @@ export var FactorType;
81
81
  FactorType["TOTP"] = "TOTP";
82
82
  /** Requires authentication via a push notification. */
83
83
  FactorType["PUSH"] = "PUSH";
84
+ /** Requires authentication via WebAuthn/passkey. */
85
+ FactorType["WEBAUTHN"] = "WEBAUTHN";
84
86
  })(FactorType || (FactorType = {}));
85
87
  export var Status;
86
88
  (function (Status) {
@@ -108,6 +110,20 @@ export var MfaReason;
108
110
  /** Mfa is required due to high risk login */
109
111
  MfaReason["HIGH_RISK_LOGIN"] = "HIGH_RISK_LOGIN";
110
112
  })(MfaReason || (MfaReason = {}));
113
+ export var UserVerificationRequirement;
114
+ (function (UserVerificationRequirement) {
115
+ /** Default unspecified value */
116
+ UserVerificationRequirement["USER_VERIFICATION_UNSPECIFIED"] = "USER_VERIFICATION_UNSPECIFIED";
117
+ /**
118
+ * The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
119
+ * set
120
+ */
121
+ UserVerificationRequirement["USER_VERIFICATION_REQUIRED"] = "USER_VERIFICATION_REQUIRED";
122
+ /** The Relying Party prefers user verification but will not fail the operation if unavailable */
123
+ UserVerificationRequirement["USER_VERIFICATION_PREFERRED"] = "USER_VERIFICATION_PREFERRED";
124
+ /** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
125
+ UserVerificationRequirement["USER_VERIFICATION_DISCOURAGED"] = "USER_VERIFICATION_DISCOURAGED";
126
+ })(UserVerificationRequirement || (UserVerificationRequirement = {}));
111
127
  export var TenantType;
112
128
  (function (TenantType) {
113
129
  TenantType["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";