{"version":3,"sources":["../../src/iam-verification-v1-start-response-verification.http.ts","../../src/iam-verification-v1-start-response-verification.types.ts","../../src/iam-verification-v1-start-response-verification.meta.ts"],"sourcesContent":["import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n  { path: 'identity.createdDate' },\n  { path: 'identity.updatedDate' },\n  { path: 'identity.identityProfile.customFields.value.dateValue' },\n  { path: 'additionalData.*.dateValue' },\n];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'identity.identityProfile.customFields.value.numValue' },\n  { path: 'additionalData.*.numValue' },\n];\n\nfunction resolveWixIamVerificationV1VerificationServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/_api/iam/verification',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/iam/verification',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/iam/verification',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/iam/verification/v1/auth/resend',\n        destPath: '/v1/auth/resend',\n      },\n      {\n        srcPath: '/iam/verification/v1/Start',\n        destPath: '/v1/Start',\n      },\n      {\n        srcPath: '/iam/verification/v1/auth/verify',\n        destPath: '/v1/auth/verify',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_verification';\n\n/**\n * Starts an email verification process by sending a verification code to the identity's email address.\n * The code is sent to the email associated with the provided `identityId`, and the returned `verificationId`\n * identifies the verification process.\n *\n * Email verification is required when the registering member is already listed as a contact, or when it\n * is required by the site's member settings.\n *\n * During registration or authentication, the member then completes verification by calling\n * `VerifyDuringAuthentication` with the `state_token` of the `REQUIRE_EMAIL_VERIFICATION` state — not the\n * `verificationId` returned here, which `VerifyDuringAuthentication` does not accept.\n */\nexport function start(payload: object): RequestOptionsFactory<any> {\n  function __start({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.iam.verification.v1.start_response',\n      method: 'POST' as any,\n      methodFqn: 'wix.iam.verification.v1.VerificationService.Start',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixIamVerificationV1VerificationServiceUrl({\n        protoPath: '/v1/start',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __start;\n}\n\n/**\n * Continues the registration process when a member is required to verify an email address\n * using a verification code received by email.\n *\n * Email verification is required when the registering member is already listed as a contact.\n *\n * Typically, after a successful verification, you generate and use member tokens for the\n * registered member so that subsequent API calls are called as part of a member session.\n */\nexport function verifyDuringAuthentication(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __verifyDuringAuthentication({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.iam.verification.v1.start_response',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.iam.verification.v1.VerificationService.VerifyDuringAuthentication',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixIamVerificationV1VerificationServiceUrl({\n        protoPath: '/v1/auth/verify',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: TRANSFORM_PATHS_1,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __verifyDuringAuthentication;\n}\n","export interface StartResponse {\n  /** the identifier of the verification process */\n  verificationId?: string;\n}\n\nexport interface StartRequest {\n  /**\n   * ID of the identity whose email address should be verified. The verification code is sent to this identity's\n   * email. Currently required — the request fails if it is omitted.\n   * @format GUID\n   */\n  identityId?: string | null;\n  /** Delivery channel for the verification code. Currently only `EMAIL` is supported. */\n  target?: TargetWithLiterals;\n}\n\n/** The delivery channel used to send the verification code. */\nexport enum Target {\n  /** Send the verification code to the identity's email address. */\n  EMAIL = 'EMAIL',\n}\n\n/** @enumType */\nexport type TargetWithLiterals = Target | 'EMAIL';\n\nexport interface VerifyRequest {\n  /**\n   * the code to verify\n   * @minLength 6\n   * @maxLength 6\n   */\n  code?: string;\n  /** the identifier of the verification process */\n  verificationId?: string;\n}\n\nexport interface VerifyResponse {}\n\nexport interface VerifyDuringAuthenticationRequest {\n  /**\n   * The code to verify.\n   * @minLength 6\n   * @maxLength 6\n   */\n  code: string;\n  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */\n  stateToken: string;\n}\n\nexport interface StateMachineResponse\n  extends StateMachineResponseStateDataOneOf {\n  /** @internal */\n  requireMfaData?: RequireMfaData;\n  /**\n   * User needs to solve an MFA challenge, such as providing the code that sent to them by SMS.\n   * @internal\n   */\n  mfaChallengeData?: MfaChallengeData;\n  /**\n   * Identity must prove a first factor before the IdP connection is merged.\n   * @internal\n   */\n  requireFirstFactorData?: RequireFirstFactorData;\n  /** Current state of the login or registration process. */\n  state?: StateTypeWithLiterals;\n  /** Session token. If `state` is not `SUCCESS`, this field is undefined. */\n  sessionToken?: string | null;\n  /** Token that represents the current state of the login or registration process. */\n  stateToken?: string | null;\n  /** Identity of the current member. */\n  identity?: Identity;\n  /** Additional data relevant to the login or registration process. */\n  additionalData?: Record<string, CustomValue>;\n}\n\n/** @oneof */\nexport interface StateMachineResponseStateDataOneOf {\n  /** @internal */\n  requireMfaData?: RequireMfaData;\n  /**\n   * User needs to solve an MFA challenge, such as providing the code that sent to them by SMS.\n   * @internal\n   */\n  mfaChallengeData?: MfaChallengeData;\n  /**\n   * Identity must prove a first factor before the IdP connection is merged.\n   * @internal\n   */\n  requireFirstFactorData?: RequireFirstFactorData;\n}\n\nexport enum StateType {\n  /** Initial unknown state. */\n  UNKNOWN_STATE = 'UNKNOWN_STATE',\n  /** Login completed successfully. */\n  SUCCESS = 'SUCCESS',\n  /** Member needs the owner to approve their registration. */\n  REQUIRE_OWNER_APPROVAL = 'REQUIRE_OWNER_APPROVAL',\n  /** Member needs to verify their email. */\n  REQUIRE_EMAIL_VERIFICATION = 'REQUIRE_EMAIL_VERIFICATION',\n  /** The `status` is not one that prevents the member logging in, meaning it's not `OFFLINE`, `BLOCKED`, or `DELETED`. */\n  STATUS_CHECK = 'STATUS_CHECK',\n  /**\n   * Multi-factor authentication is required to complete login.\n   * @internal\n   */\n  REQUIRE_MFA = 'REQUIRE_MFA',\n  /**\n   * Indicates that the member needs to verify themselves using the selected verication factor type.\n   * @internal\n   */\n  MFA_CHALLENGE = 'MFA_CHALLENGE',\n  /**\n   * User needs to provide the first factor authentication (e.g., password, webAuthN).\n   * @internal\n   */\n  REQUIRE_FIRST_FACTOR = 'REQUIRE_FIRST_FACTOR',\n  /** Member must submit the profile-completion form to continue registration. */\n  REQUIRE_PROFILE_COMPLETION = 'REQUIRE_PROFILE_COMPLETION',\n  /**\n   * Registering identity must prove their sign-up factor (e.g. an emailed code) before the identity is created.\n   * @internal\n   */\n  REQUIRE_REGISTER_CHALLENGE = 'REQUIRE_REGISTER_CHALLENGE',\n  /**\n   * Identity logging in must enter the code sent to their email before the login continues.\n   * @internal\n   */\n  REQUIRE_LOGIN_CHALLENGE = 'REQUIRE_LOGIN_CHALLENGE',\n}\n\n/** @enumType */\nexport type StateTypeWithLiterals =\n  | StateType\n  | 'UNKNOWN_STATE'\n  | 'SUCCESS'\n  | 'REQUIRE_OWNER_APPROVAL'\n  | 'REQUIRE_EMAIL_VERIFICATION'\n  | 'STATUS_CHECK'\n  | 'REQUIRE_PROFILE_COMPLETION';\n\nexport interface Identity {\n  /**\n   * Identity ID.\n   * @format GUID\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the identity is updated.\n   * To prevent conflicting changes,\n   * the current revision must be passed when updating the identity.\n   *\n   * Ignored when creating an identity.\n   */\n  revision?: string | null;\n  /**\n   * Date and time the identity was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the identity was updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /** The identity configured connections to authenticate with. */\n  connections?: Connection[];\n  /** Identity profile. */\n  identityProfile?: IdentityProfile;\n  /**\n   * Additional information about the identity that can impact user access.\n   * This data cannot be set.\n   */\n  metadata?: Metadata;\n  /** Identity email address. */\n  email?: Email;\n  /** Identity's current status. */\n  status?: StatusV2;\n  /**\n   * Custom attributes.\n   * @internal\n   */\n  customAttributes?: Record<string, any> | null;\n  /**\n   * Identity verification factors.\n   * @maxSize 10\n   * @readonly\n   */\n  factors?: Factor[];\n}\n\nexport interface Connection extends ConnectionTypeOneOf {\n  /** IDP connection. */\n  idpConnection?: IdpConnection;\n  /** Authenticator connection. */\n  authenticatorConnection?: AuthenticatorConnection;\n}\n\n/** @oneof */\nexport interface ConnectionTypeOneOf {\n  /** IDP connection. */\n  idpConnection?: IdpConnection;\n  /** Authenticator connection. */\n  authenticatorConnection?: AuthenticatorConnection;\n}\n\nexport interface IdpConnection {\n  /**\n   * IDP connection ID.\n   * @format GUID\n   */\n  idpConnectionId?: string;\n  /** IDP user ID. */\n  idpUserId?: string;\n}\n\nexport interface AuthenticatorConnection {\n  /**\n   * Authenticator connection ID.\n   * @format GUID\n   */\n  authenticatorConnectionId?: string;\n  /** Whether re-enrollment is required. */\n  reEnrollmentRequired?: boolean;\n}\n\nexport interface IdentityProfile {\n  /** Member's first name. */\n  firstName?: string | null;\n  /** Member's last name. */\n  lastName?: string | null;\n  /** Member's display nickname. */\n  nickname?: string | null;\n  /** URL to member's profile picture. */\n  picture?: string | null;\n  /**\n   * Deprecated. Use `secondaryEmails` instead.\n   * @deprecated Deprecated. Use `secondaryEmails` instead.\n   * @replacedBy secondary_emails\n   * @targetRemovalDate 2023-11-01\n   */\n  emails?: string[];\n  /**\n   * Deprecated. Use `phonesV2` instead.\n   * @deprecated Deprecated. Use `phonesV2` instead.\n   * @replacedBy phones_v2\n   * @targetRemovalDate 2023-11-01\n   */\n  phones?: string[];\n  /**\n   * Labels associated with the member.\n   * @maxSize 2000\n   */\n  labels?: string[];\n  /**\n   * Member's preferred language code.\n   * @format LANGUAGE\n   */\n  language?: string | null;\n  /** Member's profile visibility setting. */\n  privacyStatus?: PrivacyStatusWithLiterals;\n  /**\n   * Any number of custom fields. [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)\n   * are used to store additional information about your site or app's contacts.\n   */\n  customFields?: CustomField[];\n  /** Additional email addresses for the member. */\n  secondaryEmails?: SecondaryEmail[];\n  /** Phone numbers associated with the member. */\n  phonesV2?: Phone[];\n  /** Physical addresses for the member. */\n  addresses?: AddressWrapper[];\n  /**\n   * Company name.\n   * @maxLength 1000\n   */\n  company?: string | null;\n  /**\n   * Position within company.\n   * @maxLength 1000\n   */\n  position?: string | null;\n  /**\n   * Member's birth date in `YYYY-MM-DD` format.\n   * @format LOCAL_DATE\n   */\n  birthdate?: string | null;\n  /**\n   * URL-friendly slug for the member's profile.\n   * @maxLength 255\n   */\n  slug?: string | null;\n  /** Whether the member consents to receive marketing communications. */\n  subscription?: boolean | null;\n  /**\n   * Tax ID or VAT number for personal or corporate use.\n   * @maxLength 1000\n   */\n  vatId?: string | null;\n}\n\nexport enum PrivacyStatus {\n  /** No privacy status defined. */\n  UNDEFINED = 'UNDEFINED',\n  /** Profile details are visible to other members. */\n  PUBLIC = 'PUBLIC',\n  /** Profile details are hidden from other members. */\n  PRIVATE = 'PRIVATE',\n}\n\n/** @enumType */\nexport type PrivacyStatusWithLiterals =\n  | PrivacyStatus\n  | 'UNDEFINED'\n  | 'PUBLIC'\n  | 'PRIVATE';\n\nexport interface CustomField {\n  /**\n   * Custom field name matching an extended field key (without `custom.` prefix).\n   *\n   * Must match a key from [`List Extended Fields`](https://dev.wix.com/docs/rest/api-reference/contacts/extended-fields/list-extended-fields).\n   */\n  name?: string;\n  /** Value for the custom field. */\n  value?: V1CustomValue;\n}\n\nexport interface V1CustomValue extends V1CustomValueValueOneOf {\n  /** Text value. */\n  strValue?: string;\n  /** Numeric value. */\n  numValue?: number;\n  /** Date/time value. */\n  dateValue?: Date | null;\n  /** List of values. */\n  listValue?: V1ListValue;\n  /** Key-value pairs. */\n  mapValue?: V1MapValue;\n  /** Bool value */\n  boolValue?: boolean;\n}\n\n/** @oneof */\nexport interface V1CustomValueValueOneOf {\n  /** Text value. */\n  strValue?: string;\n  /** Numeric value. */\n  numValue?: number;\n  /** Date/time value. */\n  dateValue?: Date | null;\n  /** List of values. */\n  listValue?: V1ListValue;\n  /** Key-value pairs. */\n  mapValue?: V1MapValue;\n  /** Bool value */\n  boolValue?: boolean;\n}\n\nexport interface V1ListValue {\n  /** List of custom values. */\n  value?: V1CustomValue[];\n}\n\nexport interface V1MapValue {\n  /** Map of custom field values. */\n  value?: Record<string, V1CustomValue>;\n}\n\nexport interface SecondaryEmail {\n  /**\n   * Secondary email address.\n   * @format EMAIL\n   */\n  email?: string;\n  /** Email tag. */\n  tag?: EmailTagWithLiterals;\n}\n\nexport enum EmailTag {\n  UNTAGGED = 'UNTAGGED',\n  MAIN = 'MAIN',\n  HOME = 'HOME',\n  WORK = 'WORK',\n}\n\n/** @enumType */\nexport type EmailTagWithLiterals =\n  | EmailTag\n  | 'UNTAGGED'\n  | 'MAIN'\n  | 'HOME'\n  | 'WORK';\n\nexport interface Phone {\n  /**\n   * Country code for the phone number.\n   * @format COUNTRY\n   */\n  countryCode?: string | null;\n  /**\n   * Phone number without country code.\n   * @format PHONE\n   */\n  phone?: string;\n  /** Phone tag. */\n  tag?: PhoneTagWithLiterals;\n}\n\nexport enum PhoneTag {\n  UNTAGGED = 'UNTAGGED',\n  MAIN = 'MAIN',\n  HOME = 'HOME',\n  MOBILE = 'MOBILE',\n  WORK = 'WORK',\n  FAX = 'FAX',\n}\n\n/** @enumType */\nexport type PhoneTagWithLiterals =\n  | PhoneTag\n  | 'UNTAGGED'\n  | 'MAIN'\n  | 'HOME'\n  | 'MOBILE'\n  | 'WORK'\n  | 'FAX';\n\nexport interface AddressWrapper {\n  /** Physical address details. */\n  address?: Address;\n  /** Address tag. */\n  tag?: AddressTagWithLiterals;\n}\n\n/** Physical address */\nexport interface Address {\n  /**\n   * Country code.\n   * @format COUNTRY\n   */\n  country?: string | null;\n  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /** Zip/postal code. */\n  postalCode?: string | null;\n  /** Main address line, usually street and number as free text. */\n  addressLine?: string | null;\n  /** Free text providing more detailed address info. Usually contains apartment, suite, and floor. */\n  addressLine2?: string | null;\n  /**\n   * A string containing the full address of this location.\n   * @internal\n   */\n  formattedAddress?: string | null;\n  /**\n   * Street name.\n   * @maxLength 1000\n   */\n  streetName?: string | null;\n  /**\n   * Street number.\n   * @maxLength 1000\n   */\n  streetNumber?: string | null;\n}\n\nexport enum AddressTag {\n  UNTAGGED = 'UNTAGGED',\n  HOME = 'HOME',\n  WORK = 'WORK',\n  BILLING = 'BILLING',\n  SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type AddressTagWithLiterals =\n  | AddressTag\n  | 'UNTAGGED'\n  | 'HOME'\n  | 'WORK'\n  | 'BILLING'\n  | 'SHIPPING';\n\nexport interface Metadata {\n  /**\n   * General tags. For example, `\"isOwner\"`.\n   * @internal\n   * @readonly\n   */\n  tags?: string[];\n}\n\nexport interface Email {\n  /**\n   * Email address.\n   * @format EMAIL\n   */\n  address?: string;\n  /** Whether the email address is verified. */\n  isVerified?: boolean;\n}\n\nexport interface StatusV2 {\n  /** Descriptive name of the identity status. */\n  name?: StatusNameWithLiterals;\n  /** Reasons for the current identity status. */\n  reasons?: ReasonWithLiterals[];\n}\n\nexport enum StatusName {\n  /** Unknown status. This value isn't used. */\n  UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n  /** Identity is pending verification, owner approval, or both. */\n  PENDING = 'PENDING',\n  /** Identity is active and can log in. */\n  ACTIVE = 'ACTIVE',\n  /** Identity is deleted. This identity can't log in. */\n  DELETED = 'DELETED',\n  /** Identity is blocked. This identity can't log in. */\n  BLOCKED = 'BLOCKED',\n  /** Identity is offline. This identity can't log in. */\n  OFFLINE = 'OFFLINE',\n}\n\n/** @enumType */\nexport type StatusNameWithLiterals =\n  | StatusName\n  | 'UNKNOWN_STATUS'\n  | 'PENDING'\n  | 'ACTIVE'\n  | 'DELETED'\n  | 'BLOCKED'\n  | 'OFFLINE';\n\nexport enum Reason {\n  /** Unknown reason. This value isn't used. */\n  UNKNOWN_REASON = 'UNKNOWN_REASON',\n  /** The identity is waiting for admin approval. After the approval, the identity has an `ACTIVE` status. */\n  PENDING_ADMIN_APPROVAL_REQUIRED = 'PENDING_ADMIN_APPROVAL_REQUIRED',\n  /** The identity has to verify the email. After the verification, the identity has an `ACTIVE` status. */\n  PENDING_EMAIL_VERIFICATION_REQUIRED = 'PENDING_EMAIL_VERIFICATION_REQUIRED',\n  /** The identity must complete the site's profile-completion form. Other pending requirements may remain after completion. */\n  PENDING_PROFILE_COMPLETION_REQUIRED = 'PENDING_PROFILE_COMPLETION_REQUIRED',\n}\n\n/** @enumType */\nexport type ReasonWithLiterals =\n  | Reason\n  | 'UNKNOWN_REASON'\n  | 'PENDING_ADMIN_APPROVAL_REQUIRED'\n  | 'PENDING_EMAIL_VERIFICATION_REQUIRED'\n  | 'PENDING_PROFILE_COMPLETION_REQUIRED';\n\nexport interface Factor {\n  /**\n   * Factor ID.\n   * @format GUID\n   */\n  factorId?: string;\n  /** Factor type. */\n  type?: FactorTypeWithLiterals;\n  /** Factor status. */\n  status?: StatusWithLiterals;\n}\n\nexport enum FactorType {\n  /** Requires a password. */\n  PASSWORD = 'PASSWORD',\n  /** Requires a code sent via SMS. */\n  SMS = 'SMS',\n  /** Requires a code sent by phone call. */\n  CALL = 'CALL',\n  /** Requires a code sent by email. */\n  EMAIL = 'EMAIL',\n  /** Requires authentication via an authenticator app. */\n  TOTP = 'TOTP',\n  /** Requires authentication via a push notification. */\n  PUSH = 'PUSH',\n  /** Requires authentication via WebAuthn/passkey. */\n  WEBAUTHN = 'WEBAUTHN',\n  /** Requires a recovery code. */\n  RECOVERY_CODE = 'RECOVERY_CODE',\n}\n\n/** @enumType */\nexport type FactorTypeWithLiterals =\n  | FactorType\n  | 'PASSWORD'\n  | 'SMS'\n  | 'CALL'\n  | 'EMAIL'\n  | 'TOTP'\n  | 'PUSH'\n  | 'WEBAUTHN'\n  | 'RECOVERY_CODE';\n\nexport enum Status {\n  /** Factor requires activation. */\n  INACTIVE = 'INACTIVE',\n  /** Factor is active and can be used for authentication. */\n  ACTIVE = 'ACTIVE',\n  /** Factor is blocked and cannot be used for authentication. The user should reenroll the factor. */\n  REQUIRE_REENROLL = 'REQUIRE_REENROLL',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'INACTIVE'\n  | 'ACTIVE'\n  | 'REQUIRE_REENROLL';\n\nexport interface CustomValue extends CustomValueValueOneOf {\n  /** String value. */\n  strValue?: string;\n  /** Number value. */\n  numValue?: number;\n  /** Date value. */\n  dateValue?: Date | null;\n  /** List value. */\n  listValue?: ListValue;\n  /** Map value. */\n  mapValue?: MapValue;\n}\n\n/** @oneof */\nexport interface CustomValueValueOneOf {\n  /** String value. */\n  strValue?: string;\n  /** Number value. */\n  numValue?: number;\n  /** Date value. */\n  dateValue?: Date | null;\n  /** List value. */\n  listValue?: ListValue;\n  /** Map value. */\n  mapValue?: MapValue;\n}\n\nexport interface ListValue {\n  /** Custom value. */\n  value?: CustomValue[];\n}\n\nexport interface MapValue {\n  /** Mapped custom value. */\n  value?: Record<string, CustomValue>;\n}\n\nexport interface RequireMfaData {\n  /**\n   * The factors available for the user to perform the required MFA.\n   * @maxSize 100\n   */\n  availableFactors?: V1Factor[];\n  /** The reason the user is required to perform MFA. */\n  reason?: MfaReasonWithLiterals;\n}\n\nexport interface V1Factor {\n  /** Type of verification factor. */\n  factorType?: FactorTypeWithLiterals;\n  /** Availability status for second factor */\n  factorStatus?: FactorStatusWithLiterals;\n}\n\nexport enum FactorStatus {\n  ENABLED = 'ENABLED',\n  REQUIRE_ACTIVATION = 'REQUIRE_ACTIVATION',\n  REQUIRE_REENROLL = 'REQUIRE_REENROLL',\n  ENABLED_BY_RULE = 'ENABLED_BY_RULE',\n  DISABLED_BY_RULE = 'DISABLED_BY_RULE',\n}\n\n/** @enumType */\nexport type FactorStatusWithLiterals =\n  | FactorStatus\n  | 'ENABLED'\n  | 'REQUIRE_ACTIVATION'\n  | 'REQUIRE_REENROLL'\n  | 'ENABLED_BY_RULE'\n  | 'DISABLED_BY_RULE';\n\nexport enum MfaReason {\n  /** Mfa is required due to user settings */\n  USER_SETTINGS = 'USER_SETTINGS',\n  /** Mfa is required due to high risk login */\n  HIGH_RISK_LOGIN = 'HIGH_RISK_LOGIN',\n}\n\n/** @enumType */\nexport type MfaReasonWithLiterals =\n  | MfaReason\n  | 'USER_SETTINGS'\n  | 'HIGH_RISK_LOGIN';\n\nexport interface MfaChallengeData {\n  /** Type of verifation factor. */\n  factorType?: FactorTypeWithLiterals;\n  verificationChallengeData?: VerificationChallenge;\n  /**\n   * Factors types the user can choose from to verify themselves.\n   * @maxSize 100\n   */\n  availableFactors?: V1Factor[];\n  /** The reason the user is required for verification. */\n  reason?: MfaReasonWithLiterals;\n}\n\nexport interface VerificationChallenge\n  extends VerificationChallengeFactorChallengeDataOneOf {\n  pushData?: PushChallengeData;\n  webauthnData?: WebAuthnChallengeData;\n  /** @maxLength 200 */\n  hint?: string | null;\n}\n\n/** @oneof */\nexport interface VerificationChallengeFactorChallengeDataOneOf {\n  pushData?: PushChallengeData;\n  webauthnData?: WebAuthnChallengeData;\n}\n\nexport interface PushChallengeData {\n  /**\n   * This should be tied to a specific push notification.\n   * It will be sent in subsequent requests to verify the factor.\n   * @maxLength 36\n   */\n  transactionId?: string;\n}\n\nexport interface WebAuthnChallengeData {\n  /**\n   * A unique identifier for this challenge that will be used to correlate\n   * the authentication response with this challenge.\n   * This should be a cryptographically random GUID to prevent guessing attacks.\n   * @format GUID\n   */\n  challengeId?: string;\n  /**\n   * A PublicKeyCredentialRequestOptions JSON as defined in the WebAuthn spec (https://www.w3.org/TR/webauthn-3/#dictdef-publickeycredentialrequestoptions).\n   * @maxLength 40000\n   */\n  publicKeyCredentialRequestOptionsJson?: string;\n}\n\nexport interface RequireFirstFactorData {\n  /**\n   * Organization the identity is under.\n   * @format GUID\n   */\n  organizationId?: string;\n}\n\n/** @docsIgnore */\nexport type VerifyDuringAuthenticationApplicationErrors = {\n  code?: 'VERIFICATION_FAILED';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixIamVerificationV1StartResponse from './iam-verification-v1-start-response-verification.http.js';\nimport * as ambassadorWixIamVerificationV1StartResponseTypes from './iam-verification-v1-start-response-verification.types.js';\nimport * as ambassadorWixIamVerificationV1StartResponseUniversalTypes from './iam-verification-v1-start-response-verification.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function start(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixIamVerificationV1StartResponseUniversalTypes.StartRequest,\n  ambassadorWixIamVerificationV1StartResponseTypes.StartRequest,\n  ambassadorWixIamVerificationV1StartResponseUniversalTypes.StartResponse,\n  ambassadorWixIamVerificationV1StartResponseTypes.StartResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIamVerificationV1StartResponse.start(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/start',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function verifyDuringAuthentication(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixIamVerificationV1StartResponseUniversalTypes.VerifyDuringAuthenticationRequest,\n  ambassadorWixIamVerificationV1StartResponseTypes.VerifyDuringAuthenticationRequest,\n  ambassadorWixIamVerificationV1StartResponseUniversalTypes.StateMachineResponse,\n  ambassadorWixIamVerificationV1StartResponseTypes.StateMachineResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixIamVerificationV1StartResponse.verifyDuringAuthentication(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/auth/verify',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  StartResponse as StartResponseOriginal,\n  StartRequest as StartRequestOriginal,\n  Target as TargetOriginal,\n  TargetWithLiterals as TargetWithLiteralsOriginal,\n  VerifyRequest as VerifyRequestOriginal,\n  VerifyResponse as VerifyResponseOriginal,\n  VerifyDuringAuthenticationRequest as VerifyDuringAuthenticationRequestOriginal,\n  StateMachineResponse as StateMachineResponseOriginal,\n  StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOfOriginal,\n  StateType as StateTypeOriginal,\n  StateTypeWithLiterals as StateTypeWithLiteralsOriginal,\n  Identity as IdentityOriginal,\n  Connection as ConnectionOriginal,\n  ConnectionTypeOneOf as ConnectionTypeOneOfOriginal,\n  IdpConnection as IdpConnectionOriginal,\n  AuthenticatorConnection as AuthenticatorConnectionOriginal,\n  IdentityProfile as IdentityProfileOriginal,\n  PrivacyStatus as PrivacyStatusOriginal,\n  PrivacyStatusWithLiterals as PrivacyStatusWithLiteralsOriginal,\n  CustomField as CustomFieldOriginal,\n  V1CustomValue as V1CustomValueOriginal,\n  V1CustomValueValueOneOf as V1CustomValueValueOneOfOriginal,\n  V1ListValue as V1ListValueOriginal,\n  V1MapValue as V1MapValueOriginal,\n  SecondaryEmail as SecondaryEmailOriginal,\n  EmailTag as EmailTagOriginal,\n  EmailTagWithLiterals as EmailTagWithLiteralsOriginal,\n  Phone as PhoneOriginal,\n  PhoneTag as PhoneTagOriginal,\n  PhoneTagWithLiterals as PhoneTagWithLiteralsOriginal,\n  AddressWrapper as AddressWrapperOriginal,\n  Address as AddressOriginal,\n  AddressTag as AddressTagOriginal,\n  AddressTagWithLiterals as AddressTagWithLiteralsOriginal,\n  Metadata as MetadataOriginal,\n  Email as EmailOriginal,\n  StatusV2 as StatusV2Original,\n  StatusName as StatusNameOriginal,\n  StatusNameWithLiterals as StatusNameWithLiteralsOriginal,\n  Reason as ReasonOriginal,\n  ReasonWithLiterals as ReasonWithLiteralsOriginal,\n  Factor as FactorOriginal,\n  FactorType as FactorTypeOriginal,\n  FactorTypeWithLiterals as FactorTypeWithLiteralsOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  CustomValue as CustomValueOriginal,\n  CustomValueValueOneOf as CustomValueValueOneOfOriginal,\n  ListValue as ListValueOriginal,\n  MapValue as MapValueOriginal,\n  RequireMfaData as RequireMfaDataOriginal,\n  V1Factor as V1FactorOriginal,\n  FactorStatus as FactorStatusOriginal,\n  FactorStatusWithLiterals as FactorStatusWithLiteralsOriginal,\n  MfaReason as MfaReasonOriginal,\n  MfaReasonWithLiterals as MfaReasonWithLiteralsOriginal,\n  MfaChallengeData as MfaChallengeDataOriginal,\n  VerificationChallenge as VerificationChallengeOriginal,\n  VerificationChallengeFactorChallengeDataOneOf as VerificationChallengeFactorChallengeDataOneOfOriginal,\n  PushChallengeData as PushChallengeDataOriginal,\n  WebAuthnChallengeData as WebAuthnChallengeDataOriginal,\n  RequireFirstFactorData as RequireFirstFactorDataOriginal,\n  VerifyDuringAuthenticationApplicationErrors as VerifyDuringAuthenticationApplicationErrorsOriginal,\n} from './iam-verification-v1-start-response-verification.types.js';\n"],"mappings":";AAAA,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,uBAAuB;AAAA,EAC/B,EAAE,MAAM,uBAAuB;AAAA,EAC/B,EAAE,MAAM,wDAAwD;AAAA,EAChE,EAAE,MAAM,6BAA6B;AACvC;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,uDAAuD;AAAA,EAC/D,EAAE,MAAM,4BAA4B;AACtC;AAEA,SAAS,kDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,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A,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Target","StateType","PrivacyStatus","EmailTag","PhoneTag","AddressTag","StatusName","Reason","FactorType","Status","FactorStatus","MfaReason","start","verifyDuringAuthentication"]}