@wix/auto_sdk_identity_authentication 1.0.29 → 1.0.31

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.
@@ -1,6 +1,8 @@
1
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';
2
2
  import '@wix/sdk-types';
3
3
 
4
+ interface Authentication {
5
+ }
4
6
  interface RegisterV2Request {
5
7
  /** Identifier of the registering member. */
6
8
  loginId: LoginId;
@@ -481,6 +483,166 @@ interface MapValue {
481
483
  /** Mapped custom value. */
482
484
  value?: Record<string, CustomValue>;
483
485
  }
486
+ interface RequireMfaData {
487
+ /**
488
+ * The factors available for the user to perform the required MFA.
489
+ * @maxSize 100
490
+ */
491
+ availableFactors?: V1Factor[];
492
+ /** The reason the user is required to perform MFA. */
493
+ reason?: MfaReasonWithLiterals;
494
+ }
495
+ interface V1Factor {
496
+ /** Type of verification factor. */
497
+ factorType?: FactorTypeWithLiterals;
498
+ /** Availability status for second factor */
499
+ factorStatus?: FactorStatusWithLiterals;
500
+ }
501
+ declare enum FactorStatus {
502
+ UNKNOWN_FACTOR_STATUS = "UNKNOWN_FACTOR_STATUS",
503
+ ENABLED = "ENABLED",
504
+ REQUIRE_ACTIVATION = "REQUIRE_ACTIVATION",
505
+ REQUIRE_REENROLL = "REQUIRE_REENROLL",
506
+ ENABLED_BY_RULE = "ENABLED_BY_RULE",
507
+ DISABLED_BY_RULE = "DISABLED_BY_RULE"
508
+ }
509
+ /** @enumType */
510
+ type FactorStatusWithLiterals = FactorStatus | 'UNKNOWN_FACTOR_STATUS' | 'ENABLED' | 'REQUIRE_ACTIVATION' | 'REQUIRE_REENROLL' | 'ENABLED_BY_RULE' | 'DISABLED_BY_RULE';
511
+ declare enum MfaReason {
512
+ UNKNOWN_MFA_REASON = "UNKNOWN_MFA_REASON",
513
+ /** Mfa is required due to user settings */
514
+ USER_SETTINGS = "USER_SETTINGS",
515
+ /** Mfa is required due to high risk login */
516
+ HIGH_RISK_LOGIN = "HIGH_RISK_LOGIN"
517
+ }
518
+ /** @enumType */
519
+ type MfaReasonWithLiterals = MfaReason | 'UNKNOWN_MFA_REASON' | 'USER_SETTINGS' | 'HIGH_RISK_LOGIN';
520
+ interface MfaChallengeData {
521
+ /** Type of verifation factor. */
522
+ factorType?: FactorTypeWithLiterals;
523
+ verificationChallengeData?: VerificationChallenge;
524
+ /**
525
+ * Factors types the user can choose from to verify themselves.
526
+ * @maxSize 100
527
+ */
528
+ availableFactors?: V1Factor[];
529
+ /** The reason the user is required for verification. */
530
+ reason?: MfaReasonWithLiterals;
531
+ }
532
+ interface VerificationChallenge extends VerificationChallengeFactorChallengeDataOneOf {
533
+ pushData?: PushChallengeData;
534
+ webauthnData?: WebAuthnChallengeData;
535
+ /** @maxLength 200 */
536
+ hint?: string | null;
537
+ }
538
+ /** @oneof */
539
+ interface VerificationChallengeFactorChallengeDataOneOf {
540
+ pushData?: PushChallengeData;
541
+ webauthnData?: WebAuthnChallengeData;
542
+ }
543
+ interface PushChallengeData {
544
+ /**
545
+ * This should be tied to a specific push notification.
546
+ * It will be sent in subsequent requests to verify the factor.
547
+ * @maxLength 36
548
+ */
549
+ transactionId?: string;
550
+ }
551
+ interface WebAuthnChallengeData {
552
+ /**
553
+ * A unique identifier for this challenge that will be used to correlate
554
+ * the authentication response with this challenge.
555
+ * This should be a cryptographically random GUID to prevent guessing attacks.
556
+ * @format GUID
557
+ */
558
+ challengeId?: string;
559
+ /**
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
636
+ */
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;
645
+ }
484
646
  interface LoginV2Request {
485
647
  /** Identifier of identity logging in. */
486
648
  loginId: LoginId;
@@ -527,6 +689,40 @@ interface ChangePasswordRequest {
527
689
  }
528
690
  interface ChangePasswordResponse {
529
691
  }
692
+ interface LoginWithIdpConnectionRequest {
693
+ /**
694
+ * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData
695
+ * @format GUID
696
+ */
697
+ idpConnectionId?: string;
698
+ /**
699
+ * The id of the tenant the caller wants to login into
700
+ * @format GUID
701
+ */
702
+ tenantId?: string;
703
+ /** The type of the tenant the caller wants to login into */
704
+ tenantType?: TenantTypeWithLiterals;
705
+ customPayload?: Record<string, string>;
706
+ /**
707
+ * This flow ultimately returns an HTML page that asynchronously posts the LoginResponse via the BroadcastChannel API.
708
+ * The message will be posted to a channel named `wix-idp-$session_id`, and encrypted with the `encryption_key`.
709
+ * Encryption key should be base64 encoded. Encryption is done using AES-GCM with a random IV that's sent alongside the payload
710
+ */
711
+ sessionId?: string;
712
+ encryptionKey?: string;
713
+ visitorId?: string | null;
714
+ bsi?: string | null;
715
+ }
716
+ declare enum TenantType {
717
+ /** Unknown tenant type. This value isn't used. */
718
+ UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
719
+ /** The identity is a Wix user. */
720
+ ACCOUNT = "ACCOUNT",
721
+ /** The identity is a member. */
722
+ SITE = "SITE"
723
+ }
724
+ /** @enumType */
725
+ type TenantTypeWithLiterals = TenantType | 'UNKNOWN_TENANT_TYPE' | 'ACCOUNT' | 'SITE';
530
726
  interface RawHttpResponse {
531
727
  body?: Uint8Array;
532
728
  statusCode?: number | null;
@@ -536,6 +732,38 @@ interface HeadersEntry {
536
732
  key?: string;
537
733
  value?: string;
538
734
  }
735
+ interface RawHttpRequest {
736
+ body?: Uint8Array;
737
+ pathParams?: PathParametersEntry[];
738
+ queryParams?: QueryParametersEntry[];
739
+ headers?: HeadersEntry[];
740
+ method?: string;
741
+ rawPath?: string;
742
+ rawQuery?: string;
743
+ }
744
+ interface PathParametersEntry {
745
+ key?: string;
746
+ value?: string;
747
+ }
748
+ interface QueryParametersEntry {
749
+ key?: string;
750
+ value?: string;
751
+ }
752
+ interface LoginCallbackRequest {
753
+ /** state that that received on the redirect */
754
+ state?: string;
755
+ /** session token */
756
+ sessionToken?: string;
757
+ }
758
+ interface LoginWithIdpConnectionTokenParamsRequest {
759
+ /**
760
+ * The id of the connection id (can be fetched by calling connection-service.listEnabledConnectionsClientData)
761
+ * @format GUID
762
+ */
763
+ idpConnectionId?: string;
764
+ /** A set of fields that are required for the connection to be able to identify and authenticate the user */
765
+ tokenParams?: Record<string, string>;
766
+ }
539
767
  interface SignOnRequest {
540
768
  /** the identifier of the identity */
541
769
  loginId: LoginId;
@@ -615,6 +843,127 @@ interface PushVerifyData {
615
843
  /** @maxLength 36 */
616
844
  transactionId?: string | null;
617
845
  }
846
+ interface GetWebauthnChallengeRequest {
847
+ /**
848
+ * Identifier of identity for which the WebAuthn challenge is requested for.
849
+ * If not provided an anonymous webAuthn challenge will be returned.
850
+ */
851
+ loginId?: LoginId;
852
+ }
853
+ interface GetWebauthnChallengeResponse {
854
+ /** The challenge that will be used for a WebAuthn authentication ceremony. */
855
+ webauthn?: WebAuthnChallengeData;
856
+ }
857
+ /** @docsIgnore */
858
+ type RegisterV2ApplicationErrors = {
859
+ code?: 'UNIMPLEMENTED_FEATURE';
860
+ description?: string;
861
+ data?: Record<string, any>;
862
+ } | {
863
+ code?: 'THROTTLED_FEATURE';
864
+ description?: string;
865
+ data?: Record<string, any>;
866
+ } | {
867
+ code?: 'INVALID_CAPTCHA_TOKEN';
868
+ description?: string;
869
+ data?: Record<string, any>;
870
+ } | {
871
+ code?: 'CAPTCHA_TOKEN_REQUIRED';
872
+ description?: string;
873
+ data?: Record<string, any>;
874
+ } | {
875
+ code?: 'IP_ADDRESS_FILTERED';
876
+ description?: string;
877
+ data?: Record<string, any>;
878
+ } | {
879
+ code?: 'RECAPTCHA_FAILED';
880
+ description?: string;
881
+ data?: Record<string, any>;
882
+ } | {
883
+ code?: 'RECAPTCHA_REQUIRED';
884
+ description?: string;
885
+ data?: Record<string, any>;
886
+ } | {
887
+ code?: 'MISSING_CAPTCHA_TOKEN';
888
+ description?: string;
889
+ data?: Record<string, any>;
890
+ } | {
891
+ code?: 'USER_EMAIL_OFAC_ADDRESS';
892
+ description?: string;
893
+ data?: Record<string, any>;
894
+ } | {
895
+ code?: 'UNSUPPORTED_FIELD';
896
+ description?: string;
897
+ data?: Record<string, any>;
898
+ } | {
899
+ code?: 'ATTRIBUTE_NOT_FOUND';
900
+ description?: string;
901
+ data?: Record<string, any>;
902
+ } | {
903
+ code?: 'CLIENT_METADATA_NOT_FOUND';
904
+ description?: string;
905
+ data?: Record<string, any>;
906
+ } | {
907
+ code?: 'INVALID_LD_SESSION';
908
+ description?: string;
909
+ data?: Record<string, any>;
910
+ } | {
911
+ code?: 'DUPLICATE_EMAIL';
912
+ description?: string;
913
+ data?: Record<string, any>;
914
+ } | {
915
+ code?: 'COULD_NOT_CREATE_SET_ACCOUNT_USER';
916
+ description?: string;
917
+ data?: Record<string, any>;
918
+ } | {
919
+ code?: 'INVALID_USER_TYPE';
920
+ description?: string;
921
+ data?: Record<string, any>;
922
+ } | {
923
+ code?: 'REGISTRATION_TO_EDITORX_NOT_ALLOWED';
924
+ description?: string;
925
+ data?: Record<string, any>;
926
+ };
927
+ /** @docsIgnore */
928
+ type RegisterV2ValidationErrors = {
929
+ ruleName?: 'PROVIDE_TENANT_ID';
930
+ } | {
931
+ ruleName?: 'INVALID_AUTHENTICATOR_ID';
932
+ } | {
933
+ ruleName?: 'VALUEֹֹ_TOO_SHORT';
934
+ } | {
935
+ ruleName?: 'VALUEֹֹ_TOO_LONG';
936
+ } | {
937
+ ruleName?: 'VALUE_DID_NOT_MATCH';
938
+ };
939
+ /** @docsIgnore */
940
+ type LoginV2ApplicationErrors = {
941
+ code?: 'THROTTLED_FEATURE';
942
+ description?: string;
943
+ data?: Record<string, any>;
944
+ } | {
945
+ code?: 'INVALID_CAPTCHA_TOKEN';
946
+ description?: string;
947
+ data?: Record<string, any>;
948
+ } | {
949
+ code?: 'CAPTCHA_TOKEN_REQUIRED';
950
+ description?: string;
951
+ data?: Record<string, any>;
952
+ } | {
953
+ code?: 'REENROLLMENT_REQUIRED_BY_ADMIN';
954
+ description?: string;
955
+ data?: Record<string, any>;
956
+ } | {
957
+ code?: 'TRUSTED_CLIENTS_ONLY';
958
+ description?: string;
959
+ data?: Record<string, any>;
960
+ };
961
+ /** @docsIgnore */
962
+ type LoginV2ValidationErrors = {
963
+ ruleName?: 'PROVIDE_TENANT_ID';
964
+ } | {
965
+ ruleName?: 'INVALID_AUTHENTICATOR_ID';
966
+ };
618
967
 
619
968
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
620
969
  getUrl: (context: any) => string;
@@ -635,4 +984,4 @@ declare function verify(): __PublicMethodMetaInfo<'POST', {
635
984
  factorType: string;
636
985
  }, VerifyRequest$1, VerifyRequest, StateMachineResponse$1, StateMachineResponse>;
637
986
 
638
- export { type __PublicMethodMetaInfo, changePassword, loginV2, logout, registerV2, signOn, verify };
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 };
package/build/es/meta.mjs CHANGED
@@ -122,6 +122,9 @@ function registerV2(payload) {
122
122
  method: "POST",
123
123
  methodFqn: "wix.iam.authentication.v1.AuthenticationService.RegisterV2",
124
124
  packageName: PACKAGE_NAME,
125
+ migrationOptions: {
126
+ optInTransformResponse: true
127
+ },
125
128
  url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
126
129
  protoPath: "/v2/register",
127
130
  data: serializedData,
@@ -172,6 +175,9 @@ function loginV2(payload) {
172
175
  method: "POST",
173
176
  methodFqn: "wix.iam.authentication.v1.AuthenticationService.LoginV2",
174
177
  packageName: PACKAGE_NAME,
178
+ migrationOptions: {
179
+ optInTransformResponse: true
180
+ },
175
181
  url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
176
182
  protoPath: "/v2/login",
177
183
  data: payload,
@@ -222,6 +228,9 @@ function changePassword(payload) {
222
228
  method: "POST",
223
229
  methodFqn: "wix.iam.authentication.v1.AuthenticationService.ChangePassword",
224
230
  packageName: PACKAGE_NAME,
231
+ migrationOptions: {
232
+ optInTransformResponse: true
233
+ },
225
234
  url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
226
235
  protoPath: "/v2/change-password",
227
236
  data: payload,
@@ -250,6 +259,9 @@ function signOn(payload) {
250
259
  method: "POST",
251
260
  methodFqn: "wix.iam.authentication.v1.AuthenticationService.SignOn",
252
261
  packageName: PACKAGE_NAME,
262
+ migrationOptions: {
263
+ optInTransformResponse: true
264
+ },
253
265
  url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
254
266
  protoPath: "/v2/sign-on",
255
267
  data: serializedData,
@@ -284,6 +296,9 @@ function logout(payload) {
284
296
  method: "GET",
285
297
  methodFqn: "wix.iam.authentication.v1.AuthenticationService.Logout",
286
298
  packageName: PACKAGE_NAME,
299
+ migrationOptions: {
300
+ optInTransformResponse: true
301
+ },
287
302
  url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
288
303
  protoPath: "/v1/logout",
289
304
  data: payload,
@@ -308,6 +323,9 @@ function verify(payload) {
308
323
  method: "POST",
309
324
  methodFqn: "wix.iam.authentication.v1.AuthenticationService.Verify",
310
325
  packageName: PACKAGE_NAME,
326
+ migrationOptions: {
327
+ optInTransformResponse: true
328
+ },
311
329
  url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
312
330
  protoPath: "/v2/{factorType}/verify",
313
331
  data: payload,
@@ -352,6 +370,107 @@ function verify(payload) {
352
370
  return __verify;
353
371
  }
354
372
 
373
+ // src/iam-authentication-v1-authentication-authentication.types.ts
374
+ var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
375
+ PrivacyStatus2["UNDEFINED"] = "UNDEFINED";
376
+ PrivacyStatus2["PUBLIC"] = "PUBLIC";
377
+ PrivacyStatus2["PRIVATE"] = "PRIVATE";
378
+ return PrivacyStatus2;
379
+ })(PrivacyStatus || {});
380
+ var EmailTag = /* @__PURE__ */ ((EmailTag2) => {
381
+ EmailTag2["UNTAGGED"] = "UNTAGGED";
382
+ EmailTag2["MAIN"] = "MAIN";
383
+ EmailTag2["HOME"] = "HOME";
384
+ EmailTag2["WORK"] = "WORK";
385
+ return EmailTag2;
386
+ })(EmailTag || {});
387
+ var PhoneTag = /* @__PURE__ */ ((PhoneTag2) => {
388
+ PhoneTag2["UNTAGGED"] = "UNTAGGED";
389
+ PhoneTag2["MAIN"] = "MAIN";
390
+ PhoneTag2["HOME"] = "HOME";
391
+ PhoneTag2["MOBILE"] = "MOBILE";
392
+ PhoneTag2["WORK"] = "WORK";
393
+ PhoneTag2["FAX"] = "FAX";
394
+ return PhoneTag2;
395
+ })(PhoneTag || {});
396
+ var AddressTag = /* @__PURE__ */ ((AddressTag2) => {
397
+ AddressTag2["UNTAGGED"] = "UNTAGGED";
398
+ AddressTag2["HOME"] = "HOME";
399
+ AddressTag2["WORK"] = "WORK";
400
+ AddressTag2["BILLING"] = "BILLING";
401
+ AddressTag2["SHIPPING"] = "SHIPPING";
402
+ return AddressTag2;
403
+ })(AddressTag || {});
404
+ var StateType = /* @__PURE__ */ ((StateType2) => {
405
+ StateType2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
406
+ StateType2["SUCCESS"] = "SUCCESS";
407
+ StateType2["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
408
+ StateType2["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
409
+ StateType2["STATUS_CHECK"] = "STATUS_CHECK";
410
+ return StateType2;
411
+ })(StateType || {});
412
+ var StatusName = /* @__PURE__ */ ((StatusName2) => {
413
+ StatusName2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
414
+ StatusName2["PENDING"] = "PENDING";
415
+ StatusName2["ACTIVE"] = "ACTIVE";
416
+ StatusName2["DELETED"] = "DELETED";
417
+ StatusName2["BLOCKED"] = "BLOCKED";
418
+ StatusName2["OFFLINE"] = "OFFLINE";
419
+ return StatusName2;
420
+ })(StatusName || {});
421
+ var Reason = /* @__PURE__ */ ((Reason2) => {
422
+ Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
423
+ Reason2["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
424
+ Reason2["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
425
+ return Reason2;
426
+ })(Reason || {});
427
+ var FactorType = /* @__PURE__ */ ((FactorType2) => {
428
+ FactorType2["UNKNOWN_FACTOR_TYPE"] = "UNKNOWN_FACTOR_TYPE";
429
+ FactorType2["PASSWORD"] = "PASSWORD";
430
+ FactorType2["SMS"] = "SMS";
431
+ FactorType2["CALL"] = "CALL";
432
+ FactorType2["EMAIL"] = "EMAIL";
433
+ FactorType2["TOTP"] = "TOTP";
434
+ FactorType2["PUSH"] = "PUSH";
435
+ FactorType2["WEBAUTHN"] = "WEBAUTHN";
436
+ FactorType2["RECOVERY_CODE"] = "RECOVERY_CODE";
437
+ return FactorType2;
438
+ })(FactorType || {});
439
+ var Status = /* @__PURE__ */ ((Status2) => {
440
+ Status2["INACTIVE"] = "INACTIVE";
441
+ Status2["ACTIVE"] = "ACTIVE";
442
+ Status2["REQUIRE_REENROLL"] = "REQUIRE_REENROLL";
443
+ return Status2;
444
+ })(Status || {});
445
+ var FactorStatus = /* @__PURE__ */ ((FactorStatus2) => {
446
+ FactorStatus2["UNKNOWN_FACTOR_STATUS"] = "UNKNOWN_FACTOR_STATUS";
447
+ FactorStatus2["ENABLED"] = "ENABLED";
448
+ FactorStatus2["REQUIRE_ACTIVATION"] = "REQUIRE_ACTIVATION";
449
+ FactorStatus2["REQUIRE_REENROLL"] = "REQUIRE_REENROLL";
450
+ FactorStatus2["ENABLED_BY_RULE"] = "ENABLED_BY_RULE";
451
+ FactorStatus2["DISABLED_BY_RULE"] = "DISABLED_BY_RULE";
452
+ return FactorStatus2;
453
+ })(FactorStatus || {});
454
+ var MfaReason = /* @__PURE__ */ ((MfaReason2) => {
455
+ MfaReason2["UNKNOWN_MFA_REASON"] = "UNKNOWN_MFA_REASON";
456
+ MfaReason2["USER_SETTINGS"] = "USER_SETTINGS";
457
+ MfaReason2["HIGH_RISK_LOGIN"] = "HIGH_RISK_LOGIN";
458
+ return MfaReason2;
459
+ })(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
+ var TenantType = /* @__PURE__ */ ((TenantType2) => {
468
+ TenantType2["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
469
+ TenantType2["ACCOUNT"] = "ACCOUNT";
470
+ TenantType2["SITE"] = "SITE";
471
+ return TenantType2;
472
+ })(TenantType || {});
473
+
355
474
  // src/iam-authentication-v1-authentication-authentication.meta.ts
356
475
  function registerV22() {
357
476
  const payload = {};
@@ -462,6 +581,19 @@ function verify2() {
462
581
  };
463
582
  }
464
583
  export {
584
+ AddressTag as AddressTagOriginal,
585
+ EmailTag as EmailTagOriginal,
586
+ FactorStatus as FactorStatusOriginal,
587
+ FactorType as FactorTypeOriginal,
588
+ MfaReason as MfaReasonOriginal,
589
+ PhoneTag as PhoneTagOriginal,
590
+ PrivacyStatus as PrivacyStatusOriginal,
591
+ Reason as ReasonOriginal,
592
+ StateType as StateTypeOriginal,
593
+ StatusName as StatusNameOriginal,
594
+ Status as StatusOriginal,
595
+ TenantType as TenantTypeOriginal,
596
+ UserVerificationRequirement as UserVerificationRequirementOriginal,
465
597
  changePassword2 as changePassword,
466
598
  loginV22 as loginV2,
467
599
  logout2 as logout,