@wix/auto_sdk_identity_authentication 1.0.31 → 1.0.33

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 (37) hide show
  1. package/build/cjs/index.d.ts +36 -16
  2. package/build/cjs/index.js +2 -153
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +215 -183
  5. package/build/cjs/index.typings.js +2 -144
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +155 -145
  8. package/build/cjs/meta.js +2 -112
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +36 -16
  11. package/build/es/index.mjs +1 -150
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +215 -183
  14. package/build/es/index.typings.mjs +1 -141
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +155 -145
  17. package/build/es/meta.mjs +1 -109
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +36 -16
  20. package/build/internal/cjs/index.js +2 -153
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +215 -183
  23. package/build/internal/cjs/index.typings.js +2 -144
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +155 -145
  26. package/build/internal/cjs/meta.js +2 -112
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +36 -16
  29. package/build/internal/es/index.mjs +1 -150
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +215 -183
  32. package/build/internal/es/index.typings.mjs +1 -141
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +155 -145
  35. package/build/internal/es/meta.mjs +1 -109
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { RegisterV2Request as RegisterV2Request$1, StateMachineResponse as StateMachineResponse$1, LoginV2Request as LoginV2Request$1, ChangePasswordRequest as ChangePasswordRequest$1, ChangePasswordResponse as ChangePasswordResponse$1, SignOnRequest as SignOnRequest$1, SignOnResponse as SignOnResponse$1, LogoutRequest as LogoutRequest$1, RawHttpResponse as RawHttpResponse$1, VerifyRequest as VerifyRequest$1 } from './index.typings.mjs';
1
+ import { RegisterV2Request as RegisterV2Request$1, StateMachineResponse as StateMachineResponse$1, LoginV2Request as LoginV2Request$1, ChangePasswordRequest as ChangePasswordRequest$1, ChangePasswordResponse as ChangePasswordResponse$1, SignOnRequest as SignOnRequest$1, SignOnResponse as SignOnResponse$1, LogoutRequest as LogoutRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Authentication {
@@ -31,13 +31,13 @@ interface LoginIdTypeOneOf {
31
31
  email?: string;
32
32
  }
33
33
  interface IdentityProfile {
34
- /** Profile first name. */
34
+ /** Member's first name. */
35
35
  firstName?: string | null;
36
- /** Profile last name. */
36
+ /** Member's last name. */
37
37
  lastName?: string | null;
38
- /** Profile nickname. */
38
+ /** Member's display nickname. */
39
39
  nickname?: string | null;
40
- /** Profile picture URL. */
40
+ /** URL to member's profile picture. */
41
41
  picture?: string | null;
42
42
  /**
43
43
  * Deprecated. Use `secondaryEmails` instead.
@@ -54,27 +54,27 @@ interface IdentityProfile {
54
54
  */
55
55
  phones?: string[];
56
56
  /**
57
- * List of profile labels.
57
+ * Labels associated with the member.
58
58
  * @maxSize 2000
59
59
  */
60
60
  labels?: string[];
61
61
  /**
62
- * Profile language.
62
+ * Member's preferred language code.
63
63
  * @format LANGUAGE
64
64
  */
65
65
  language?: string | null;
66
- /** Profile privacy status. */
66
+ /** Member's profile visibility setting. */
67
67
  privacyStatus?: PrivacyStatusWithLiterals;
68
68
  /**
69
69
  * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
70
70
  * are used to store additional information about your site or app's contacts.
71
71
  */
72
72
  customFields?: CustomField[];
73
- /** List of profile email addresses. */
73
+ /** Additional email addresses for the member. */
74
74
  secondaryEmails?: SecondaryEmail[];
75
- /** List of profile phone numbers. */
75
+ /** Phone numbers associated with the member. */
76
76
  phonesV2?: Phone[];
77
- /** List of profile physical addresses. */
77
+ /** Physical addresses for the member. */
78
78
  addresses?: AddressWrapper[];
79
79
  /**
80
80
  * Company name.
@@ -87,79 +87,83 @@ interface IdentityProfile {
87
87
  */
88
88
  position?: string | null;
89
89
  /**
90
- * Profile birthdate in `YYYY-MM-DD` format.
90
+ * Member's birth date in `YYYY-MM-DD` format.
91
91
  * @format LOCAL_DATE
92
92
  */
93
93
  birthdate?: string | null;
94
94
  /**
95
- * Profile slug.
95
+ * URL-friendly slug for the member's profile.
96
96
  * @maxLength 255
97
97
  */
98
98
  slug?: string | null;
99
- /** Consent to be added to mailing list */
99
+ /** Whether the member consents to receive marketing communications. */
100
100
  subscription?: boolean | null;
101
101
  /**
102
- * Government id for personal/corporate (Vat ID).
102
+ * Tax ID or VAT number for personal or corporate use.
103
103
  * @maxLength 1000
104
104
  */
105
105
  vatId?: string | null;
106
106
  }
107
107
  declare enum PrivacyStatus {
108
- /** No defined privacy status. */
108
+ /** No privacy status defined. */
109
109
  UNDEFINED = "UNDEFINED",
110
- /** Profile details, such as profile name and profile picture, are visible to other members. */
110
+ /** Profile details are visible to other members. */
111
111
  PUBLIC = "PUBLIC",
112
- /** Profile details aren't visible to other members. */
112
+ /** Profile details are hidden from other members. */
113
113
  PRIVATE = "PRIVATE"
114
114
  }
115
115
  /** @enumType */
116
116
  type PrivacyStatusWithLiterals = PrivacyStatus | 'UNDEFINED' | 'PUBLIC' | 'PRIVATE';
117
117
  interface CustomField {
118
118
  /**
119
- * Custom field name. The name must match one of the key properties of the objects returned by
120
- * [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields)
121
- * with the `custom.` prefix removed.
119
+ * Custom field name matching an extended field key (without `custom.` prefix).
120
+ *
121
+ * Must match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields).
122
122
  */
123
123
  name?: string;
124
- /** Custom field value. */
124
+ /** Value for the custom field. */
125
125
  value?: V1CustomValue;
126
126
  }
127
127
  interface V1CustomValue extends V1CustomValueValueOneOf {
128
- /** String value. */
128
+ /** Text value. */
129
129
  strValue?: string;
130
- /** Number value. */
130
+ /** Numeric value. */
131
131
  numValue?: number;
132
- /** Date value. */
132
+ /** Date/time value. */
133
133
  dateValue?: Date | null;
134
- /** Array of values. */
134
+ /** List of values. */
135
135
  listValue?: V1ListValue;
136
- /** Map of values. */
136
+ /** Key-value pairs. */
137
137
  mapValue?: V1MapValue;
138
+ /** Bool value */
139
+ boolValue?: boolean;
138
140
  }
139
141
  /** @oneof */
140
142
  interface V1CustomValueValueOneOf {
141
- /** String value. */
143
+ /** Text value. */
142
144
  strValue?: string;
143
- /** Number value. */
145
+ /** Numeric value. */
144
146
  numValue?: number;
145
- /** Date value. */
147
+ /** Date/time value. */
146
148
  dateValue?: Date | null;
147
- /** Array of values. */
149
+ /** List of values. */
148
150
  listValue?: V1ListValue;
149
- /** Map of values. */
151
+ /** Key-value pairs. */
150
152
  mapValue?: V1MapValue;
153
+ /** Bool value */
154
+ boolValue?: boolean;
151
155
  }
152
156
  interface V1ListValue {
153
- /** Custom value. */
157
+ /** List of custom values. */
154
158
  value?: V1CustomValue[];
155
159
  }
156
160
  interface V1MapValue {
157
- /** Mapped custom value. */
161
+ /** Map of custom field values. */
158
162
  value?: Record<string, V1CustomValue>;
159
163
  }
160
164
  interface SecondaryEmail {
161
165
  /**
162
- * Email address.
166
+ * Secondary email address.
163
167
  * @format EMAIL
164
168
  */
165
169
  email?: string;
@@ -176,12 +180,12 @@ declare enum EmailTag {
176
180
  type EmailTagWithLiterals = EmailTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'WORK';
177
181
  interface Phone {
178
182
  /**
179
- * Phone country code.
183
+ * Country code for the phone number.
180
184
  * @format COUNTRY
181
185
  */
182
186
  countryCode?: string | null;
183
187
  /**
184
- * Phone number.
188
+ * Phone number without country code.
185
189
  * @format PHONE
186
190
  */
187
191
  phone?: string;
@@ -199,7 +203,7 @@ declare enum PhoneTag {
199
203
  /** @enumType */
200
204
  type PhoneTagWithLiterals = PhoneTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
201
205
  interface AddressWrapper {
202
- /** Address. */
206
+ /** Physical address details. */
203
207
  address?: Address;
204
208
  /** Address tag. */
205
209
  tag?: AddressTagWithLiterals;
@@ -278,11 +282,11 @@ declare enum StateType {
278
282
  UNKNOWN_STATE = "UNKNOWN_STATE",
279
283
  /** Login completed successfully. */
280
284
  SUCCESS = "SUCCESS",
281
- /** Indicates that the member needs the owner to approve their registration. */
285
+ /** Member needs the owner to approve their registration. */
282
286
  REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
283
- /** Indicates that the member needs to verify their email. */
287
+ /** Member needs to verify their email. */
284
288
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
285
- /** Indicates that the `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
289
+ /** The `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */
286
290
  STATUS_CHECK = "STATUS_CHECK"
287
291
  }
288
292
  /** @enumType */
@@ -324,8 +328,6 @@ interface Identity {
324
328
  email?: Email;
325
329
  /** Identity's current status. */
326
330
  status?: StatusV2;
327
- /** Custom attributes. */
328
- customAttributes?: Record<string, any> | null;
329
331
  /**
330
332
  * Identity verification factors.
331
333
  * @maxSize 10
@@ -557,91 +559,10 @@ interface WebAuthnChallengeData {
557
559
  */
558
560
  challengeId?: string;
559
561
  /**
560
- * The challenge that will be signed by the authenticator during the WebAuthn authentication ceremony.
561
- * This should be a cryptographically secure random value with at least 16 bytes of entropy.
562
- * The value is used to prevent replay attacks and MUST be randomly generated by the implementer.
563
- */
564
- challenge?: Uint8Array;
565
- /**
566
- * The timeout in milliseconds for the WebAuthn authentication ceremony.
567
- * After this time, the challenge will be considered expired and the authentication will need to be restarted.
568
- * This is optional and may be overridden by the client if provided.
569
- * The WebAuthn spec recommends a timeout of at least 1 minute (60000ms).
570
- */
571
- timeoutMs?: number | null;
572
- /**
573
- * Optional list of credentials that are acceptable for this authentication ceremony.
574
- * If empty, all credentials associated with the user will be considered.
575
- * @maxSize 50
576
- */
577
- allowCredentials?: PublicKeyCredentialDescriptor[];
578
- /** Specifies the requirement for user verification during the authentication ceremony. */
579
- userVerification?: UserVerificationRequirementWithLiterals;
580
- /**
581
- * Optional hints to guide the client UI
582
- * Examples include "security-key" to emphasize external authenticators
583
- * or "client-device" to emphasize built-in authenticators
584
- * @maxLength 50
585
- * @maxSize 10
586
- */
587
- hints?: string[];
588
- /**
589
- * Optional extensions for the authentication ceremony
590
- * Provides additional parameters for specialized WebAuthn functionality
591
- */
592
- extensions?: AuthenticationExtensionInputs;
593
- }
594
- interface PublicKeyCredentialDescriptor {
595
- /** The credential ID */
596
- id?: Uint8Array;
597
- /**
598
- * An optional hint as to the transports used by the credential
599
- * Examples include "usb", "nfc", "ble", "internal", "hybrid"
600
- * @maxLength 50
601
- * @maxSize 10
602
- */
603
- transports?: string[];
604
- }
605
- declare enum UserVerificationRequirement {
606
- /** Default unspecified value */
607
- USER_VERIFICATION_UNSPECIFIED = "USER_VERIFICATION_UNSPECIFIED",
608
- /**
609
- * The Relying Party requires user verification and will fail the operation if the response doesn't have the UV flag
610
- * set
611
- */
612
- USER_VERIFICATION_REQUIRED = "USER_VERIFICATION_REQUIRED",
613
- /** The Relying Party prefers user verification but will not fail the operation if unavailable */
614
- USER_VERIFICATION_PREFERRED = "USER_VERIFICATION_PREFERRED",
615
- /** The Relying Party does not want user verification employed (e.g., to minimize disruption to the user experience) */
616
- USER_VERIFICATION_DISCOURAGED = "USER_VERIFICATION_DISCOURAGED"
617
- }
618
- /** @enumType */
619
- type UserVerificationRequirementWithLiterals = UserVerificationRequirement | 'USER_VERIFICATION_UNSPECIFIED' | 'USER_VERIFICATION_REQUIRED' | 'USER_VERIFICATION_PREFERRED' | 'USER_VERIFICATION_DISCOURAGED';
620
- interface AuthenticationExtensionInputs extends AuthenticationExtensionInputsLargeBlobOperationOneOf {
621
- /** Read existing large blob data from the authenticator */
622
- largeBlobRead?: boolean;
623
- /** Write data to the authenticator's large blob storage */
624
- largeBlobWrite?: Uint8Array;
625
- /**
626
- * FIDO AppID Extension (appid)
627
- * An AppID that was used for previously registered U2F authenticators
628
- * This makes already-registered U2F credentials forward-compatible with the WebAuthn API
629
- * @maxLength 256
630
- */
631
- appid?: string;
632
- /**
633
- * User Verification Method Extension (uvm)
634
- * Requests the authenticator to report which verification methods were used
635
- * Examples include fingerprint, PIN, or facial recognition
562
+ * A PublicKeyCredentialRequestOptions JSON as defined in the WebAuthn spec (https://www.w3.org/TR/webauthn-3/#dictdef-publickeycredentialrequestoptions).
563
+ * @maxLength 40000
636
564
  */
637
- uvm?: boolean;
638
- }
639
- /** @oneof */
640
- interface AuthenticationExtensionInputsLargeBlobOperationOneOf {
641
- /** Read existing large blob data from the authenticator */
642
- largeBlobRead?: boolean;
643
- /** Write data to the authenticator's large blob storage */
644
- largeBlobWrite?: Uint8Array;
565
+ publicKeyCredentialRequestOptionsJson?: string;
645
566
  }
646
567
  interface LoginV2Request {
647
568
  /** Identifier of identity logging in. */
@@ -684,7 +605,11 @@ interface ExternalEmailVerifyData {
684
605
  code?: string | null;
685
606
  }
686
607
  interface ChangePasswordRequest {
687
- /** The new password to set for the logged in user */
608
+ /**
609
+ * New password to set for the logged-in member.
610
+ *
611
+ * The password must meet the site's configured password requirements for length and complexity.
612
+ */
688
613
  newPassword: string;
689
614
  }
690
615
  interface ChangePasswordResponse {
@@ -709,8 +634,24 @@ interface LoginWithIdpConnectionRequest {
709
634
  * Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
710
635
  */
711
636
  sessionId?: string;
637
+ /**
638
+ * Base64-encoded encryption key for securing the authentication response.
639
+ *
640
+ * Used to encrypt the authentication response sent via BroadcastChannel API.
641
+ * Encryption uses AES-GCM with a random IV.
642
+ */
712
643
  encryptionKey?: string;
644
+ /**
645
+ * Visitor ID for tracking purposes.
646
+ *
647
+ * Optional identifier for analytics and tracking the authentication flow.
648
+ */
713
649
  visitorId?: string | null;
650
+ /**
651
+ * Browser session identifier.
652
+ *
653
+ * Optional identifier for correlating the authentication request with browser session data.
654
+ */
714
655
  bsi?: string | null;
715
656
  }
716
657
  declare enum TenantType {
@@ -765,58 +706,122 @@ interface LoginWithIdpConnectionTokenParamsRequest {
765
706
  tokenParams?: Record<string, string>;
766
707
  }
767
708
  interface SignOnRequest {
768
- /** the identifier of the identity */
709
+ /**
710
+ * Member identifier for authentication.
711
+ *
712
+ * Currently only email addresses are supported.
713
+ */
769
714
  loginId: LoginId;
770
- /** profile of the identity */
715
+ /**
716
+ * Member profile information.
717
+ *
718
+ * Profile data such as first name, last name, and other member details.
719
+ * If the member already exists, provided profile information will update the existing member's profile.
720
+ * If the member doesn't exist, this profile information is used to create the new member.
721
+ */
771
722
  profile?: IdentityProfile;
772
- /** when true will mark the email of the identity as verified */
723
+ /**
724
+ * Whether to mark the member's email as verified without requiring verification.
725
+ *
726
+ * When `true`, marks the email as verified without requiring verification.
727
+ * Use with caution in production as this bypasses security verification.
728
+ *
729
+ * Default: `false`
730
+ */
773
731
  verifyEmail?: boolean;
774
- /** when false will create a new contact instead of merging the existing contact into the identity */
732
+ /**
733
+ * Whether to merge with an existing contact with the same email address.
734
+ *
735
+ * When `true`, links the member to an existing contact record with the same email
736
+ * and inherits contact data. When `false`, creates a new contact record.
737
+ *
738
+ * Default: `true`
739
+ */
775
740
  mergeExistingContact?: boolean;
776
741
  }
777
742
  interface SignOnResponse {
778
- /** session token for the requested identity */
743
+ /**
744
+ * Session token for the authenticated member.
745
+ *
746
+ * Use this token to obtain access and refresh tokens for subsequent API calls.
747
+ */
779
748
  sessionToken?: string;
780
- /** The Identity of the provided login_id */
749
+ /**
750
+ * Member identity information.
751
+ *
752
+ * Contains the member's identity details after successful authentication.
753
+ */
781
754
  identity?: Identity;
782
755
  }
783
756
  /** logout request payload */
784
757
  interface LogoutRequest {
785
758
  /**
786
- * redirect after logout
759
+ * URL to redirect to after logout.
760
+ *
761
+ * Optional redirect destination after the logout process completes.
787
762
  * @format WEB_URL
788
763
  */
789
764
  postLogoutRedirectUri?: string | null;
790
765
  /**
791
- * caller identifier
766
+ * Client identifier for the logout request.
767
+ *
768
+ * Identifies the application or client initiating the logout.
792
769
  * @format GUID
793
770
  */
794
771
  clientId?: string | null;
795
772
  }
796
773
  interface VerifyRequest extends VerifyRequestFactorDataOneOf {
774
+ /** SMS verification code sent to the member's phone number. */
797
775
  smsData?: SmsVerifyData;
776
+ /** Voice call verification code received by the member. */
798
777
  callData?: CallVerifyData;
778
+ /** Email verification code sent to the member's email address. */
799
779
  emailData?: ExternalEmailVerifyData;
780
+ /** TOTP code from the member's authenticator app. */
800
781
  totpData?: TotpVerifyData;
782
+ /** Push notification authentication response from the member's device. */
801
783
  pushData?: PushVerifyData;
784
+ /** WebAuthn response from biometric or security key authentication. */
802
785
  webauthnData?: WebAuthnVerifyData;
786
+ /** RecoveryCode response from a one-time code. */
787
+ recoveryCodeData?: RecoveryCodeVerifyData;
803
788
  /**
804
- * TODO: is this a reasonable maxLength?
789
+ * State token from the initial authentication response.
790
+ *
791
+ * Required to continue the multi-step authentication process.
805
792
  * @maxLength 1000
806
793
  */
807
794
  stateToken?: string;
808
- factorType: FactorTypeWithLiterals;
809
- /** Relevant for second factors only. */
795
+ /**
796
+ * Type of authentication factor being verified.
797
+ *
798
+ * Specifies which verification method is being used (SMS, email, TOTP, etc.).
799
+ */
800
+ factorType?: FactorTypeWithLiterals;
801
+ /**
802
+ * Whether to remember this device for future authentication.
803
+ *
804
+ * When `true`, reduces future authentication requirements for this device.
805
+ * Only applicable for second factor authentication.
806
+ */
810
807
  rememberThisDevice?: boolean;
811
808
  }
812
809
  /** @oneof */
813
810
  interface VerifyRequestFactorDataOneOf {
811
+ /** SMS verification code sent to the member's phone number. */
814
812
  smsData?: SmsVerifyData;
813
+ /** Voice call verification code received by the member. */
815
814
  callData?: CallVerifyData;
815
+ /** Email verification code sent to the member's email address. */
816
816
  emailData?: ExternalEmailVerifyData;
817
+ /** TOTP code from the member's authenticator app. */
817
818
  totpData?: TotpVerifyData;
819
+ /** Push notification authentication response from the member's device. */
818
820
  pushData?: PushVerifyData;
821
+ /** WebAuthn response from biometric or security key authentication. */
819
822
  webauthnData?: WebAuthnVerifyData;
823
+ /** RecoveryCode response from a one-time code. */
824
+ recoveryCodeData?: RecoveryCodeVerifyData;
820
825
  }
821
826
  interface SmsVerifyData {
822
827
  /**
@@ -843,10 +848,18 @@ interface PushVerifyData {
843
848
  /** @maxLength 36 */
844
849
  transactionId?: string | null;
845
850
  }
851
+ interface RecoveryCodeVerifyData {
852
+ /**
853
+ * @minLength 1
854
+ * @maxLength 100
855
+ */
856
+ code?: string | null;
857
+ }
846
858
  interface GetWebauthnChallengeRequest {
847
859
  /**
848
- * Identifier of identity for which the WebAuthn challenge is requested for.
849
- * If not provided an anonymous webAuthn challenge will be returned.
860
+ * Identifier of the member requesting the WebAuthn challenge.
861
+ *
862
+ * If not provided, returns an anonymous WebAuthn challenge for usernameless authentication.
850
863
  */
851
864
  loginId?: LoginId;
852
865
  }
@@ -980,8 +993,5 @@ declare function loginV2(): __PublicMethodMetaInfo<'POST', {}, LoginV2Request$1,
980
993
  declare function changePassword(): __PublicMethodMetaInfo<'POST', {}, ChangePasswordRequest$1, ChangePasswordRequest, ChangePasswordResponse$1, ChangePasswordResponse>;
981
994
  declare function signOn(): __PublicMethodMetaInfo<'POST', {}, SignOnRequest$1, SignOnRequest, SignOnResponse$1, SignOnResponse>;
982
995
  declare function logout(): __PublicMethodMetaInfo<'GET', {}, LogoutRequest$1, LogoutRequest, RawHttpResponse$1, RawHttpResponse>;
983
- declare function verify(): __PublicMethodMetaInfo<'POST', {
984
- factorType: string;
985
- }, VerifyRequest$1, VerifyRequest, StateMachineResponse$1, StateMachineResponse>;
986
996
 
987
- export { type Address as AddressOriginal, AddressTag as AddressTagOriginal, type AddressTagWithLiterals as AddressTagWithLiteralsOriginal, type AddressWrapper as AddressWrapperOriginal, type AuthenticationExtensionInputsLargeBlobOperationOneOf as AuthenticationExtensionInputsLargeBlobOperationOneOfOriginal, type AuthenticationExtensionInputs as AuthenticationExtensionInputsOriginal, type Authentication as AuthenticationOriginal, type AuthenticatorConnection as AuthenticatorConnectionOriginal, type CallVerifyData as CallVerifyDataOriginal, type CaptchaToken as CaptchaTokenOriginal, type CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOfOriginal, type ChangePasswordRequest as ChangePasswordRequestOriginal, type ChangePasswordResponse as ChangePasswordResponseOriginal, type Connection as ConnectionOriginal, type ConnectionTypeOneOf as ConnectionTypeOneOfOriginal, type CustomField as CustomFieldOriginal, type CustomValue as CustomValueOriginal, type CustomValueValueOneOf as CustomValueValueOneOfOriginal, type Email as EmailOriginal, EmailTag as EmailTagOriginal, type EmailTagWithLiterals as EmailTagWithLiteralsOriginal, type ExternalEmailVerifyData as ExternalEmailVerifyDataOriginal, type Factor as FactorOriginal, FactorStatus as FactorStatusOriginal, type FactorStatusWithLiterals as FactorStatusWithLiteralsOriginal, FactorType as FactorTypeOriginal, type FactorTypeWithLiterals as FactorTypeWithLiteralsOriginal, type GetWebauthnChallengeRequest as GetWebauthnChallengeRequestOriginal, type GetWebauthnChallengeResponse as GetWebauthnChallengeResponseOriginal, type HeadersEntry as HeadersEntryOriginal, type Identity as IdentityOriginal, type IdentityProfile as IdentityProfileOriginal, type IdpConnection as IdpConnectionOriginal, type ListValue as ListValueOriginal, type LoginCallbackRequest as LoginCallbackRequestOriginal, type LoginId as LoginIdOriginal, type LoginIdTypeOneOf as LoginIdTypeOneOfOriginal, type LoginV2ApplicationErrors as LoginV2ApplicationErrorsOriginal, type LoginV2Request as LoginV2RequestOriginal, type LoginV2ValidationErrors as LoginV2ValidationErrorsOriginal, type LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequestOriginal, type LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequestOriginal, type LogoutRequest as LogoutRequestOriginal, type MapValue as MapValueOriginal, type Metadata as MetadataOriginal, type MfaChallengeData as MfaChallengeDataOriginal, MfaReason as MfaReasonOriginal, type MfaReasonWithLiterals as MfaReasonWithLiteralsOriginal, type PathParametersEntry as PathParametersEntryOriginal, type Phone as PhoneOriginal, PhoneTag as PhoneTagOriginal, type PhoneTagWithLiterals as PhoneTagWithLiteralsOriginal, PrivacyStatus as PrivacyStatusOriginal, type PrivacyStatusWithLiterals as PrivacyStatusWithLiteralsOriginal, type PublicKeyCredentialDescriptor as PublicKeyCredentialDescriptorOriginal, type PushChallengeData as PushChallengeDataOriginal, type PushVerifyData as PushVerifyDataOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, Reason as ReasonOriginal, type ReasonWithLiterals as ReasonWithLiteralsOriginal, type RegisterV2ApplicationErrors as RegisterV2ApplicationErrorsOriginal, type RegisterV2Request as RegisterV2RequestOriginal, type RegisterV2ValidationErrors as RegisterV2ValidationErrorsOriginal, type RequireMfaData as RequireMfaDataOriginal, type SecondaryEmail as SecondaryEmailOriginal, type SignOnRequest as SignOnRequestOriginal, type SignOnResponse as SignOnResponseOriginal, type SmsVerifyData as SmsVerifyDataOriginal, type StateMachineResponse as StateMachineResponseOriginal, type StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOfOriginal, StateType as StateTypeOriginal, type StateTypeWithLiterals as StateTypeWithLiteralsOriginal, StatusName as StatusNameOriginal, type StatusNameWithLiterals as StatusNameWithLiteralsOriginal, Status as StatusOriginal, type StatusV2 as StatusV2Original, type StatusWithLiterals as StatusWithLiteralsOriginal, TenantType as TenantTypeOriginal, type TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal, type TotpVerifyData as TotpVerifyDataOriginal, UserVerificationRequirement as UserVerificationRequirementOriginal, type UserVerificationRequirementWithLiterals as UserVerificationRequirementWithLiteralsOriginal, type V1CustomValue as V1CustomValueOriginal, type V1CustomValueValueOneOf as V1CustomValueValueOneOfOriginal, type V1Factor as V1FactorOriginal, type V1ListValue as V1ListValueOriginal, type V1MapValue as V1MapValueOriginal, type VerificationChallengeFactorChallengeDataOneOf as VerificationChallengeFactorChallengeDataOneOfOriginal, type VerificationChallenge as VerificationChallengeOriginal, type VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOfOriginal, type VerifyRequest as VerifyRequestOriginal, type WebAuthnChallengeData as WebAuthnChallengeDataOriginal, type WebAuthnVerifyData as WebAuthnVerifyDataOriginal, type __PublicMethodMetaInfo, changePassword, loginV2, logout, registerV2, signOn, verify };
997
+ export { type Address as AddressOriginal, AddressTag as AddressTagOriginal, type AddressTagWithLiterals as AddressTagWithLiteralsOriginal, type AddressWrapper as AddressWrapperOriginal, type Authentication as AuthenticationOriginal, type AuthenticatorConnection as AuthenticatorConnectionOriginal, type CallVerifyData as CallVerifyDataOriginal, type CaptchaToken as CaptchaTokenOriginal, type CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOfOriginal, type ChangePasswordRequest as ChangePasswordRequestOriginal, type ChangePasswordResponse as ChangePasswordResponseOriginal, type Connection as ConnectionOriginal, type ConnectionTypeOneOf as ConnectionTypeOneOfOriginal, type CustomField as CustomFieldOriginal, type CustomValue as CustomValueOriginal, type CustomValueValueOneOf as CustomValueValueOneOfOriginal, type Email as EmailOriginal, EmailTag as EmailTagOriginal, type EmailTagWithLiterals as EmailTagWithLiteralsOriginal, type ExternalEmailVerifyData as ExternalEmailVerifyDataOriginal, type Factor as FactorOriginal, FactorStatus as FactorStatusOriginal, type FactorStatusWithLiterals as FactorStatusWithLiteralsOriginal, FactorType as FactorTypeOriginal, type FactorTypeWithLiterals as FactorTypeWithLiteralsOriginal, type GetWebauthnChallengeRequest as GetWebauthnChallengeRequestOriginal, type GetWebauthnChallengeResponse as GetWebauthnChallengeResponseOriginal, type HeadersEntry as HeadersEntryOriginal, type Identity as IdentityOriginal, type IdentityProfile as IdentityProfileOriginal, type IdpConnection as IdpConnectionOriginal, type ListValue as ListValueOriginal, type LoginCallbackRequest as LoginCallbackRequestOriginal, type LoginId as LoginIdOriginal, type LoginIdTypeOneOf as LoginIdTypeOneOfOriginal, type LoginV2ApplicationErrors as LoginV2ApplicationErrorsOriginal, type LoginV2Request as LoginV2RequestOriginal, type LoginV2ValidationErrors as LoginV2ValidationErrorsOriginal, type LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequestOriginal, type LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequestOriginal, type LogoutRequest as LogoutRequestOriginal, type MapValue as MapValueOriginal, type Metadata as MetadataOriginal, type MfaChallengeData as MfaChallengeDataOriginal, MfaReason as MfaReasonOriginal, type MfaReasonWithLiterals as MfaReasonWithLiteralsOriginal, type PathParametersEntry as PathParametersEntryOriginal, type Phone as PhoneOriginal, PhoneTag as PhoneTagOriginal, type PhoneTagWithLiterals as PhoneTagWithLiteralsOriginal, PrivacyStatus as PrivacyStatusOriginal, type PrivacyStatusWithLiterals as PrivacyStatusWithLiteralsOriginal, type PushChallengeData as PushChallengeDataOriginal, type PushVerifyData as PushVerifyDataOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, Reason as ReasonOriginal, type ReasonWithLiterals as ReasonWithLiteralsOriginal, type RecoveryCodeVerifyData as RecoveryCodeVerifyDataOriginal, type RegisterV2ApplicationErrors as RegisterV2ApplicationErrorsOriginal, type RegisterV2Request as RegisterV2RequestOriginal, type RegisterV2ValidationErrors as RegisterV2ValidationErrorsOriginal, type RequireMfaData as RequireMfaDataOriginal, type SecondaryEmail as SecondaryEmailOriginal, type SignOnRequest as SignOnRequestOriginal, type SignOnResponse as SignOnResponseOriginal, type SmsVerifyData as SmsVerifyDataOriginal, type StateMachineResponse as StateMachineResponseOriginal, type StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOfOriginal, StateType as StateTypeOriginal, type StateTypeWithLiterals as StateTypeWithLiteralsOriginal, StatusName as StatusNameOriginal, type StatusNameWithLiterals as StatusNameWithLiteralsOriginal, Status as StatusOriginal, type StatusV2 as StatusV2Original, type StatusWithLiterals as StatusWithLiteralsOriginal, TenantType as TenantTypeOriginal, type TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal, type TotpVerifyData as TotpVerifyDataOriginal, type V1CustomValue as V1CustomValueOriginal, type V1CustomValueValueOneOf as V1CustomValueValueOneOfOriginal, type V1Factor as V1FactorOriginal, type V1ListValue as V1ListValueOriginal, type V1MapValue as V1MapValueOriginal, type VerificationChallengeFactorChallengeDataOneOf as VerificationChallengeFactorChallengeDataOneOfOriginal, type VerificationChallenge as VerificationChallengeOriginal, type VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOfOriginal, type VerifyRequest as VerifyRequestOriginal, type WebAuthnChallengeData as WebAuthnChallengeDataOriginal, type WebAuthnVerifyData as WebAuthnVerifyDataOriginal, type __PublicMethodMetaInfo, changePassword, loginV2, logout, registerV2, signOn };
@@ -132,20 +132,6 @@ function registerV2(payload) {
132
132
  }),
133
133
  data: serializedData,
134
134
  transformResponse: (payload2) => transformPaths(payload2, [
135
- {
136
- transformFn: transformRESTBytesToSDKBytes,
137
- paths: [
138
- {
139
- path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
140
- },
141
- {
142
- path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
143
- },
144
- {
145
- path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
146
- }
147
- ]
148
- },
149
135
  {
150
136
  transformFn: transformRESTTimestampToSDKTimestamp,
151
137
  paths: [
@@ -185,20 +171,6 @@ function loginV2(payload) {
185
171
  }),
186
172
  data: payload,
187
173
  transformResponse: (payload2) => transformPaths(payload2, [
188
- {
189
- transformFn: transformRESTBytesToSDKBytes,
190
- paths: [
191
- {
192
- path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
193
- },
194
- {
195
- path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
196
- },
197
- {
198
- path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
199
- }
200
- ]
201
- },
202
174
  {
203
175
  transformFn: transformRESTTimestampToSDKTimestamp,
204
176
  paths: [
@@ -316,59 +288,6 @@ function logout(payload) {
316
288
  }
317
289
  return __logout;
318
290
  }
319
- function verify(payload) {
320
- function __verify({ host }) {
321
- const metadata = {
322
- entityFqdn: "wix.iam.authentication.v1.authentication",
323
- method: "POST",
324
- methodFqn: "wix.iam.authentication.v1.AuthenticationService.Verify",
325
- packageName: PACKAGE_NAME,
326
- migrationOptions: {
327
- optInTransformResponse: true
328
- },
329
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
330
- protoPath: "/v2/{factorType}/verify",
331
- data: payload,
332
- host
333
- }),
334
- data: payload,
335
- transformResponse: (payload2) => transformPaths(payload2, [
336
- {
337
- transformFn: transformRESTBytesToSDKBytes,
338
- paths: [
339
- {
340
- path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
341
- },
342
- {
343
- path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
344
- },
345
- {
346
- path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
347
- }
348
- ]
349
- },
350
- {
351
- transformFn: transformRESTTimestampToSDKTimestamp,
352
- paths: [
353
- { path: "identity.createdDate" },
354
- { path: "identity.updatedDate" },
355
- { path: "identity.identityProfile.customFields.value.dateValue" },
356
- { path: "additionalData.*.dateValue" }
357
- ]
358
- },
359
- {
360
- transformFn: transformRESTFloatToSDKFloat,
361
- paths: [
362
- { path: "identity.identityProfile.customFields.value.numValue" },
363
- { path: "additionalData.*.numValue" }
364
- ]
365
- }
366
- ])
367
- };
368
- return metadata;
369
- }
370
- return __verify;
371
- }
372
291
 
373
292
  // src/iam-authentication-v1-authentication-authentication.types.ts
374
293
  var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
@@ -457,13 +376,6 @@ var MfaReason = /* @__PURE__ */ ((MfaReason2) => {
457
376
  MfaReason2["HIGH_RISK_LOGIN"] = "HIGH_RISK_LOGIN";
458
377
  return MfaReason2;
459
378
  })(MfaReason || {});
460
- var UserVerificationRequirement = /* @__PURE__ */ ((UserVerificationRequirement2) => {
461
- UserVerificationRequirement2["USER_VERIFICATION_UNSPECIFIED"] = "USER_VERIFICATION_UNSPECIFIED";
462
- UserVerificationRequirement2["USER_VERIFICATION_REQUIRED"] = "USER_VERIFICATION_REQUIRED";
463
- UserVerificationRequirement2["USER_VERIFICATION_PREFERRED"] = "USER_VERIFICATION_PREFERRED";
464
- UserVerificationRequirement2["USER_VERIFICATION_DISCOURAGED"] = "USER_VERIFICATION_DISCOURAGED";
465
- return UserVerificationRequirement2;
466
- })(UserVerificationRequirement || {});
467
379
  var TenantType = /* @__PURE__ */ ((TenantType2) => {
468
380
  TenantType2["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
469
381
  TenantType2["ACCOUNT"] = "ACCOUNT";
@@ -562,24 +474,6 @@ function logout2() {
562
474
  __originalResponseType: null
563
475
  };
564
476
  }
565
- function verify2() {
566
- const payload = { factorType: ":factorType" };
567
- const getRequestOptions = verify(payload);
568
- const getUrl = (context) => {
569
- const { url } = getRequestOptions(context);
570
- return url;
571
- };
572
- return {
573
- getUrl,
574
- httpMethod: "POST",
575
- path: "/v2/{factorType}/verify",
576
- pathParams: { factorType: "factorType" },
577
- __requestType: null,
578
- __originalRequestType: null,
579
- __responseType: null,
580
- __originalResponseType: null
581
- };
582
- }
583
477
  export {
584
478
  AddressTag as AddressTagOriginal,
585
479
  EmailTag as EmailTagOriginal,
@@ -593,12 +487,10 @@ export {
593
487
  StatusName as StatusNameOriginal,
594
488
  Status as StatusOriginal,
595
489
  TenantType as TenantTypeOriginal,
596
- UserVerificationRequirement as UserVerificationRequirementOriginal,
597
490
  changePassword2 as changePassword,
598
491
  loginV22 as loginV2,
599
492
  logout2 as logout,
600
493
  registerV22 as registerV2,
601
- signOn2 as signOn,
602
- verify2 as verify
494
+ signOn2 as signOn
603
495
  };
604
496
  //# sourceMappingURL=meta.mjs.map