@wix/auto_sdk_domains_registered-domains 1.0.21 → 1.0.23

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 +1 @@
1
- {"version":3,"sources":["../../src/premium-domains-v1-registered-domain-registered-domains.universal.ts","../../src/premium-domains-v1-registered-domain-registered-domains.http.ts","../../src/premium-domains-v1-registered-domain-registered-domains.public.ts","../../src/premium-domains-v1-registered-domain-registered-domains.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1RegisteredDomain from './premium-domains-v1-registered-domain-registered-domains.http.js';\n\n/**\n * A registered domain is a domain that Wix has registered on behalf of a customer\n * with an external registar.\n */\nexport interface RegisteredDomain {\n /**\n * Domain ID. Identical to `domain`.\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Name of the domain including TLD.\n * Subdomains aren't supported. You can only register a root domain.\n * Domain name and TLD must be separated by a dot. For example,\n * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are\n * supported.\n *\n * Min: 3 characters\n * Max: 63 characters\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Date and time the `registeredDomain` object was created in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the `registeredDomain` object was last updated in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the registered domain\n * is updated. To prevent conflicting changes, the current revision must be\n * passed when updating the registered domain.\n *\n * Ignored when creating a registered domain.\n */\n revision?: string | null;\n /**\n * corresponds to service id in SBS\n * @format GUID\n */\n subscriptionId?: string | null;\n /** Registrant (domain owner) contact information */\n registrantContact?: Contact;\n /** Administrative contact information */\n adminContact?: Contact;\n /** Technical contact information */\n techContact?: Contact;\n /** TLD-specific registration requirements */\n tldData?: TldSpecificData;\n /**\n * Nameservers the domain is delegated to at the registrar. Exactly 2 when set, empty otherwise.\n * This is the real delegation, not the NS record of a Wix-managed DNS zone.\n * @format HOSTNAME\n * @maxSize 2\n */\n nameServers?: string[];\n}\n\n/** Contact information for domain registration */\nexport interface Contact {\n /**\n * First name\n * @minLength 1\n * @maxLength 100\n */\n firstName?: string;\n /**\n * Last name\n * @minLength 1\n * @maxLength 100\n */\n lastName?: string;\n /**\n * Email address\n * @format EMAIL\n */\n email?: string;\n /**\n * Company or organization name (optional)\n * @maxLength 100\n */\n company?: string | null;\n /**\n * Street address\n * @minLength 1\n * @maxLength 255\n */\n streetAddress?: string;\n /**\n * City\n * @minLength 1\n * @maxLength 30\n */\n city?: string;\n /**\n * Subdivision (such as state, prefecture, or province) in ISO-3166 alpha-2 format (optional)\n * @format SUBDIVISION\n */\n subdivision?: string | null;\n /**\n * Postal or ZIP code. Optional - some countries (e.g. Jamaica) have no postal system. Max 16 chars.\n * @maxLength 16\n */\n postalCode?: string | null;\n /**\n * ISO 3166-1 alpha-2 country code\n * @format COUNTRY\n */\n country?: string;\n /**\n * Phone number in international format\n * @format PHONE\n */\n phone?: string;\n}\n\n/** TLD-specific registration data required for certain domain extensions. The `tldType` determines which options field to set. */\nexport interface TldSpecificData extends TldSpecificDataRequirementsOneOf {\n /** Registration options for .ca domains. */\n caOptions?: CaOptions;\n /** Registration options for .it domains. */\n itOptions?: ItOptions;\n /** Registration options for .com.au domains. */\n comAuOptions?: ComAuOptions;\n /** Registration options for .com.br domains. */\n comBrOptions?: ComBrOptions;\n /** Registration options for .us domains. */\n usOptions?: UsOptions;\n /** Registration options for .se domains. */\n seOptions?: SeOptions;\n /** Registration options for .es domains. */\n esOptions?: EsOptions;\n /** Registration options for .co.il domains. */\n coIlOptions?: IlOptions;\n /** Registration options for .org.il domains. */\n orgIlOptions?: IlOptions;\n /** TLD-specific registration data required for certain domain extensions. The `tldType` determines which options field to set. */\n tldType?: TldTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TldSpecificDataRequirementsOneOf {\n /** Registration options for .ca domains. */\n caOptions?: CaOptions;\n /** Registration options for .it domains. */\n itOptions?: ItOptions;\n /** Registration options for .com.au domains. */\n comAuOptions?: ComAuOptions;\n /** Registration options for .com.br domains. */\n comBrOptions?: ComBrOptions;\n /** Registration options for .us domains. */\n usOptions?: UsOptions;\n /** Registration options for .se domains. */\n seOptions?: SeOptions;\n /** Registration options for .es domains. */\n esOptions?: EsOptions;\n /** Registration options for .co.il domains. */\n coIlOptions?: IlOptions;\n /** Registration options for .org.il domains. */\n orgIlOptions?: IlOptions;\n}\n\n/** Legal entity types recognized by the Canadian Internet Registration Authority (CIRA). */\nexport enum LegalTypeEnum {\n /** Aboriginal peoples. */\n ABO = 'ABO',\n /** Association. */\n ASS = 'ASS',\n /** Canadian corporation. */\n CCO = 'CCO',\n /** Canadian citizen. */\n CCT = 'CCT',\n /** Educational institution. */\n EDU = 'EDU',\n /** Government entity. */\n GOV = 'GOV',\n /** Hospital. */\n HOP = 'HOP',\n /** Indian band. */\n INB = 'INB',\n /** Library, archive, or museum. */\n LAM = 'LAM',\n /** Legal representative. */\n LGR = 'LGR',\n /** Her Majesty the Queen. */\n MAJ = 'MAJ',\n /** Official mark registered under the Trademarks Act. */\n OMK = 'OMK',\n /** Political party. */\n PLT = 'PLT',\n /** Partnership. */\n PRT = 'PRT',\n /** Permanent resident. */\n RES = 'RES',\n /** Trademark owner. */\n TDM = 'TDM',\n /** Trade union. */\n TRD = 'TRD',\n /** Trust. */\n TRS = 'TRS',\n}\n\n/** @enumType */\nexport type LegalTypeEnumWithLiterals =\n | LegalTypeEnum\n | 'ABO'\n | 'ASS'\n | 'CCO'\n | 'CCT'\n | 'EDU'\n | 'GOV'\n | 'HOP'\n | 'INB'\n | 'LAM'\n | 'LGR'\n | 'MAJ'\n | 'OMK'\n | 'PLT'\n | 'PRT'\n | 'RES'\n | 'TDM'\n | 'TRD'\n | 'TRS';\n\n/** Legal type of the registrant. */\nexport interface LegalType {\n value?: LegalTypeEnumWithLiterals;\n}\n\n/** Entity types recognized by the Italian registry (Registro.it). */\nexport enum EntityTypeEnum {\n /** Italian resident. */\n ITR = 'ITR',\n /** Foreign resident. */\n FOR = 'FOR',\n /** Company or sole proprietorship. */\n COM = 'COM',\n /** Freelance worker. */\n FWI = 'FWI',\n /** Nonprofit organization. */\n NPO = 'NPO',\n /** Public organization. */\n POI = 'POI',\n /** Other entity type. */\n OSI = 'OSI',\n}\n\n/** @enumType */\nexport type EntityTypeEnumWithLiterals =\n | EntityTypeEnum\n | 'ITR'\n | 'FOR'\n | 'COM'\n | 'FWI'\n | 'NPO'\n | 'POI'\n | 'OSI';\n\n/** Entity type of the registrant. */\nexport interface EntityType {\n value?: EntityTypeEnumWithLiterals;\n}\n\n/** Policy reasons recognized by the .au Domain Administration (auDA). */\nexport enum PolicyReasonEnum {\n /** Exact match to the registrant's name or trademark. */\n EXC = 'EXC',\n /** Close and substantial connection to the registrant. */\n CLS = 'CLS',\n}\n\n/** @enumType */\nexport type PolicyReasonEnumWithLiterals = PolicyReasonEnum | 'EXC' | 'CLS';\n\n/** Eligibility types recognized by the .au Domain Administration (auDA). */\nexport enum EligibilityTypeEnum {\n /** Company. */\n COM = 'COM',\n /** Sole trader. */\n STR = 'STR',\n /** Partnership. */\n PRT = 'PRT',\n /** Trademark owner. */\n TRO = 'TRO',\n /** Pending trademark owner. */\n PTO = 'PTO',\n /** Commonwealth entity. */\n CWE = 'CWE',\n /** Government body. */\n GVB = 'GVB',\n /** Incorporated association. */\n INA = 'INA',\n /** Trust. */\n TRS = 'TRS',\n /** Statutory body. */\n STB = 'STB',\n /** Trading cooperative. */\n TRC = 'TRC',\n /** Registered business. */\n RBU = 'RBU',\n}\n\n/** @enumType */\nexport type EligibilityTypeEnumWithLiterals =\n | EligibilityTypeEnum\n | 'COM'\n | 'STR'\n | 'PRT'\n | 'TRO'\n | 'PTO'\n | 'CWE'\n | 'GVB'\n | 'INA'\n | 'TRS'\n | 'STB'\n | 'TRC'\n | 'RBU';\n\n/** Identification types recognized by the .au Domain Administration (auDA). */\nexport enum EligibilityIdTypeEnum {\n /** Australian Business Number. */\n ABN = 'ABN',\n /** Australian Company Number. */\n ACN = 'ACN',\n}\n\n/** @enumType */\nexport type EligibilityIdTypeEnumWithLiterals =\n | EligibilityIdTypeEnum\n | 'ABN'\n | 'ACN';\n\n/** Reason the registrant is eligible for the domain name. */\nexport interface PolicyReason {\n value?: PolicyReasonEnumWithLiterals;\n}\n\n/** Type of entity registering the domain. */\nexport interface EligibilityType {\n value?: EligibilityTypeEnumWithLiterals;\n}\n\n/** Type of identification number provided for eligibility. */\nexport interface EligibilityIdType {\n value?: EligibilityIdTypeEnumWithLiterals;\n}\n\n/** Nexus category indicating the registrant's connection to the United States. */\nexport enum NexusCategory {\n /** US citizen. */\n C11 = 'C11',\n /** Permanent resident. */\n C12 = 'C12',\n /** US entity or organization. */\n C21 = 'C21',\n /** Foreign entity with a presence in the US market. */\n C31 = 'C31',\n /** Foreign entity with a US office. */\n C32 = 'C32',\n}\n\n/** @enumType */\nexport type NexusCategoryWithLiterals =\n | NexusCategory\n | 'C11'\n | 'C12'\n | 'C21'\n | 'C31'\n | 'C32';\n\n/** Purpose for which the .us domain's application was made. */\nexport enum UsAppPurpose {\n /** Business use for profit. */\n P1 = 'P1',\n /** Non-profit business, club, association, or religious organization. */\n P2 = 'P2',\n /** Personal use. */\n P3 = 'P3',\n /** Education purposes. */\n P4 = 'P4',\n /** Government purposes. */\n P5 = 'P5',\n}\n\n/** @enumType */\nexport type UsAppPurposeWithLiterals =\n | UsAppPurpose\n | 'P1'\n | 'P2'\n | 'P3'\n | 'P4'\n | 'P5';\n\n/** Type of government-issued ID a .es registrant identifies itself with. */\nexport enum IdType {\n /** Any ID that is neither a NIF nor a NIE - typically a foreign national or tax ID. */\n OTHER = 'OTHER',\n /** Spanish tax identification number. A Spanish company sends its CIF under this type. */\n NIF = 'NIF',\n /** Foreigner identity number issued in Spain. */\n NIE = 'NIE',\n}\n\n/** @enumType */\nexport type IdTypeWithLiterals = IdType | 'OTHER' | 'NIF' | 'NIE';\n\n/** Type of registrant recognized by the Israeli registry (ISOC-IL). */\nexport enum RegistrantType {\n /** Natural person. */\n INDIVIDUAL = 'INDIVIDUAL',\n /** Company, association, or other legal entity. */\n ORGANIZATION = 'ORGANIZATION',\n}\n\n/** @enumType */\nexport type RegistrantTypeWithLiterals =\n | RegistrantType\n | 'INDIVIDUAL'\n | 'ORGANIZATION';\n\n/** TLD-specific registration data required for certain domain extensions. The `tldType` determines which options field to set. */\nexport enum TldType {\n /** .ca domains. */\n CA = 'CA',\n /** .it domains. */\n IT = 'IT',\n /** .com.au domains. */\n COM_AU = 'COM_AU',\n /** .com.br domains. */\n COM_BR = 'COM_BR',\n /** .us domains. */\n US = 'US',\n /** .se domains. */\n SE = 'SE',\n /** .es domains. */\n ES = 'ES',\n /** .co.il domains. */\n CO_IL = 'CO_IL',\n /** .org.il domains. */\n ORG_IL = 'ORG_IL',\n}\n\n/** @enumType */\nexport type TldTypeWithLiterals =\n | TldType\n | 'CA'\n | 'IT'\n | 'COM_AU'\n | 'COM_BR'\n | 'US'\n | 'SE'\n | 'ES'\n | 'CO_IL'\n | 'ORG_IL';\n\n/** Registration options for .ca domains. */\nexport interface CaOptions {\n /** Registrant's legal type. Required for .ca domains. */\n legalType?: LegalType;\n}\n\n/** Registration options for .it domains. */\nexport interface ItOptions {\n /** Registrant's entity type. Required for .it domains. */\n entityType?: EntityType;\n /**\n * Registration code such as a VAT number, tax ID, or fiscal code. Required for .it domains. Maximum 20 characters.\n * @maxLength 20\n */\n regCode?: string | null;\n}\n\n/** Registration options for .com.au domains. */\nexport interface ComAuOptions {\n /** Reason the registrant is eligible for the domain name. Required for .com.au domains. */\n policyReason?: PolicyReason;\n /** Type of entity registering the domain. Required for .com.au domains. */\n eligibilityType?: EligibilityType;\n /** Type of identification number provided. Required for .com.au domains. */\n eligibilityIdType?: EligibilityIdType;\n /**\n * Eligibility identification number, such as an ABN or ACN. Required for .com.au domains. Maximum 20 characters.\n * @maxLength 20\n */\n eligibilityId?: string | null;\n /**\n * Registrant's entity name. Required for .com.au domains. Maximum 255 characters.\n * @maxLength 255\n */\n registrantName?: string | null;\n}\n\n/** Registration options for .com.br domains. */\nexport interface ComBrOptions {\n /**\n * Brazilian tax ID. CPF for individuals, CNPJ for companies.\n *\n * + CPF format: 123.456.789-87 (11 digits)\n * + CNPJ format: 01.234.456/5432-10 (14 digits)\n * @minLength 11\n * @maxLength 18\n */\n identificationNumber?: string | null;\n /**\n * Registrant's date of birth, in `YYYY-MM-DD` format. Required by the registry when the registrant is an\n * individual (CPF holder). Not needed for companies (CNPJ).\n * @format LOCAL_DATE\n */\n dateOfBirth?: string | null;\n}\n\n/** Registration options for .us domains. */\nexport interface UsOptions {\n /** Registrant's nexus category. Required for .us domains. */\n nexusCategory?: NexusCategoryWithLiterals;\n /** Registrant's application purpose. Required for .us domains. */\n usAppPurpose?: UsAppPurposeWithLiterals;\n /**\n * Domain owner's two-letter country of citizenship. Required for .us domains when\n * `nexus_category` is C31 or C32; not applicable otherwise.\n * @maxLength 2\n */\n nexusValidator?: string | null;\n}\n\n/** Registration options for .se domains. */\nexport interface SeOptions {\n /**\n * Registrant's identification number. Required for .se domains.\n *\n * + Individuals: national ID card or passport number.\n * + Organizations: business registration number or VAT-ID.\n * @maxLength 20\n */\n idNumber?: string | null;\n}\n\n/** Registration options for .es domains. */\nexport interface EsOptions {\n /**\n * Registrant's government-issued ID number. Required for .es domains.\n *\n * + Spanish registrants: DNI, NIF, or NIE.\n * + Foreign registrants: equivalent national ID or tax ID.\n *\n * Note: the admin contact must be a natural person (not a company).\n * @maxLength 20\n */\n govId?: string | null;\n /**\n * Type of the ID carried in `govId`. Required for .es domains - without it the registry\n * substitutes a placeholder identification and the registration is non-compliant.\n *\n * Note: there is no CIF value - a Spanish company sends NIF carrying its CIF number.\n */\n idType?: IdTypeWithLiterals;\n}\n\n/** Registration options for .co.il and .org.il domains. */\nexport interface IlOptions {\n /** Registrant's type. Required for .co.il and .org.il domains. */\n registrantType?: RegistrantTypeWithLiterals;\n /**\n * Registrant's company registration number. Required when `registrantType` is `ORGANIZATION`.\n *\n * For Israeli entities this is the 9-digit company number (ח.פ.). The registry validates the\n * format; it isn't validated by the registrar.\n * @maxLength 30\n */\n registrationNumber?: string | null;\n}\n\n/** Sent after the registrar accepted new name servers for a registered domain. */\nexport interface NameServersChanged {\n /**\n * Name of the domain whose name servers changed.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Name servers set on the domain.\n * @format HOSTNAME\n * @maxSize 2\n */\n nameServers?: string[];\n /**\n * Name servers the domain had before the change.\n * @format HOSTNAME\n * @maxSize 2\n */\n previousNameServers?: string[];\n}\n\nexport interface InitiateTransferRequest {\n /**\n * Domain name to transfer.\n * @format HOSTNAME\n */\n domain: string;\n /**\n * Email address of the Wix account to transfer the domain to.\n * @format EMAIL\n */\n targetEmail: string;\n}\n\nexport interface InitiateTransferResponse {}\n\nexport interface ApproveTransferRequest {\n /**\n * Domain name to approve the transfer for.\n * @format HOSTNAME\n */\n domain: string;\n /**\n * Confirmation token received in the transfer invite email.\n * @maxLength 1024\n */\n confirmationToken: string;\n}\n\nexport interface ApproveTransferResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface DomainChangedEvent extends DomainChangedEventPayloadOneOf {\n /** WARNING: `registered` event payload is DEPRECATED */\n registered?: Registered;\n /** WARNING: `registration_cancelled` event payload is DEPRECATED */\n registrationCancelled?: RegistrationCancelled;\n connectedToSite?: ConnectedToSite;\n disconnectedFromSite?: DisconnectedFromSite;\n /** WARNING: `registration_extended` event payload is DEPRECATED */\n registrationExtended?: RegistrationExtended;\n /** WARNING: `owner_changed` event payload is DEPRECATED */\n ownerChanged?: OwnerChanged;\n /** WARNING: `privacy_changed` event payload is DEPRECATED */\n privacyChanged?: PrivacyChanged;\n /** WARNING: `management_type_changed` event payload is DEPRECATED */\n managementTypeChanged?: ManagementTypeChanged;\n /** WARNING: `billing_subscription_cancelled` event payload is DEPRECATED */\n billingSubscriptionCancelled?: BillingSubscriptionCancelled;\n /** WARNING: `connection_verified` event payload is DEPRECATED */\n connectionVerified?: ConnectionVerified;\n /** WARNING: `connection_lost` event payload is DEPRECATED */\n connectionLost?: ConnectionLost;\n /** WARNING: `expiration_date_changed` event payload is DEPRECATED */\n expirationDateChanged?: ExpirationDateChanged;\n propagationStarted?: PropagationStarted;\n verificationStarted?: VerificationStarted;\n contactVerificationStatusChanged?: ContactVerificationStatusChanged;\n /** Expiry/GraceStarted */\n expired?: Expired;\n /** GraceEnded/RedemptionStarted */\n graceEnded?: GraceEnded;\n /** RedemptionEnded */\n redemptionEnded?: RedemptionEnded;\n /** enable or disable dnssec */\n dnssecChanged?: DnssecChanged;\n /** domain SKU updated due to price increase */\n priceIncreaseProcessed?: PriceIncreaseProcessed;\n domainName?: string;\n changeTime?: Date | null;\n}\n\n/** @oneof */\nexport interface DomainChangedEventPayloadOneOf {\n /** WARNING: `registered` event payload is DEPRECATED */\n registered?: Registered;\n /** WARNING: `registration_cancelled` event payload is DEPRECATED */\n registrationCancelled?: RegistrationCancelled;\n connectedToSite?: ConnectedToSite;\n disconnectedFromSite?: DisconnectedFromSite;\n /** WARNING: `registration_extended` event payload is DEPRECATED */\n registrationExtended?: RegistrationExtended;\n /** WARNING: `owner_changed` event payload is DEPRECATED */\n ownerChanged?: OwnerChanged;\n /** WARNING: `privacy_changed` event payload is DEPRECATED */\n privacyChanged?: PrivacyChanged;\n /** WARNING: `management_type_changed` event payload is DEPRECATED */\n managementTypeChanged?: ManagementTypeChanged;\n /** WARNING: `billing_subscription_cancelled` event payload is DEPRECATED */\n billingSubscriptionCancelled?: BillingSubscriptionCancelled;\n /** WARNING: `connection_verified` event payload is DEPRECATED */\n connectionVerified?: ConnectionVerified;\n /** WARNING: `connection_lost` event payload is DEPRECATED */\n connectionLost?: ConnectionLost;\n /** WARNING: `expiration_date_changed` event payload is DEPRECATED */\n expirationDateChanged?: ExpirationDateChanged;\n propagationStarted?: PropagationStarted;\n verificationStarted?: VerificationStarted;\n contactVerificationStatusChanged?: ContactVerificationStatusChanged;\n /** Expiry/GraceStarted */\n expired?: Expired;\n /** GraceEnded/RedemptionStarted */\n graceEnded?: GraceEnded;\n /** RedemptionEnded */\n redemptionEnded?: RedemptionEnded;\n /** enable or disable dnssec */\n dnssecChanged?: DnssecChanged;\n /** domain SKU updated due to price increase */\n priceIncreaseProcessed?: PriceIncreaseProcessed;\n}\n\nexport interface Registered {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface RegistrationCancelled {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ConnectedToSite {\n /** @format GUID */\n msid?: string;\n}\n\nexport interface DisconnectedFromSite {\n /** @format GUID */\n msid?: string;\n}\n\nexport interface RegistrationExtended {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface OwnerChanged {\n /** @format GUID */\n oldUserGuid?: string;\n /** @format GUID */\n newUserGuid?: string;\n /** @format GUID */\n oldRegistrationId?: string | null;\n /** @format GUID */\n newRegistrationId?: string | null;\n}\n\nexport interface PrivacyChanged {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ManagementTypeChanged {}\n\nexport interface BillingSubscriptionCancelled {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ConnectionVerified {}\n\nexport interface ConnectionLost {}\n\nexport interface ExpirationDateChanged {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface PropagationStarted {\n /** @format GUID */\n userGuid?: string;\n}\n\nexport interface VerificationStarted {\n /** @format GUID */\n userGuid?: string;\n}\n\nexport interface ContactVerificationStatusChanged {\n status?: ContactVerificationStatusWithLiterals;\n}\n\nexport enum ContactVerificationStatus {\n PENDING = 'PENDING',\n DEACTIVATED = 'DEACTIVATED',\n CONFIRMED_BY_WIX = 'CONFIRMED_BY_WIX',\n CONFIRMED_BY_REGDOTCOM = 'CONFIRMED_BY_REGDOTCOM',\n}\n\n/** @enumType */\nexport type ContactVerificationStatusWithLiterals =\n | ContactVerificationStatus\n | 'PENDING'\n | 'DEACTIVATED'\n | 'CONFIRMED_BY_WIX'\n | 'CONFIRMED_BY_REGDOTCOM';\n\nexport interface Expired {}\n\nexport interface GraceEnded {}\n\nexport interface RedemptionEnded {}\n\nexport interface DnssecChanged {\n /**\n * unique registration id\n * @format GUID\n */\n registrationId?: string;\n}\n\nexport interface PriceIncreaseProcessed {}\n\nexport interface DomainReleaseCouponEvent\n extends DomainReleaseCouponEventTriggerTypeInfoOneOf {\n reviveFromChargebackInfo?: ReviveFromChargebackInfo;\n domainName?: string;\n couponCode?: string;\n triggerType?: TriggerTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface DomainReleaseCouponEventTriggerTypeInfoOneOf {\n reviveFromChargebackInfo?: ReviveFromChargebackInfo;\n}\n\nexport enum TriggerType {\n UNKNOWN_EVENT_TYPE = 'UNKNOWN_EVENT_TYPE',\n REVIVE_FROM_CHARGEBACK = 'REVIVE_FROM_CHARGEBACK',\n}\n\n/** @enumType */\nexport type TriggerTypeWithLiterals =\n | TriggerType\n | 'UNKNOWN_EVENT_TYPE'\n | 'REVIVE_FROM_CHARGEBACK';\n\nexport interface ReviveFromChargebackInfo {\n /** @format GUID */\n extContractId?: string;\n}\n\nexport interface CreateRegisteredDomainRequest {\n /** Information about the domain to register including contact details. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface CreateRegisteredDomainResponse {\n /** Created registered domain. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface CreateRegisteredDomainInternalRequest {\n /** Information about the domain to register including contact details. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface CreateRegisteredDomainInternalResponse {\n /** Created registered domain. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface UpdateRegisteredDomainRequest {\n /** Registered domain with updated fields. */\n registeredDomain?: RegisteredDomain;\n /** Fields to update. Only specified fields are modified. */\n fieldMask?: string[];\n}\n\nexport interface UpdateRegisteredDomainResponse {\n /** Updated registered domain. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface ScheduleNearExpirationReminderRequest {\n /** @format HOSTNAME */\n domain?: string;\n}\n\nexport interface ScheduleNearExpirationReminderResponse {\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface ScheduleContactDetailsReminderRequest {\n /** @format HOSTNAME */\n domain?: string;\n}\n\nexport interface ScheduleContactDetailsReminderResponse {\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface ScheduleParkAfterRefundRequest {\n /** @format HOSTNAME */\n domain?: string;\n /** @format GUID */\n subscriptionId?: string;\n parkAtDate?: Date | null;\n}\n\nexport interface ScheduleParkAfterRefundResponse {\n registeredDomain?: RegisteredDomain;\n}\n\n/** @docsIgnore */\nexport type InitiateTransferApplicationErrors =\n | {\n code?: 'DOMAIN_NOT_OWNED_BY_CALLER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_NOT_ELIGIBLE_FOR_TRANSFER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'TARGET_EMAIL_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_TRANSFER_TO_SELF';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PENDING_TRANSFER_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ApproveTransferApplicationErrors =\n | {\n code?: 'TRANSFER_REQUEST_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CONFIRMATION_PROCESS_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CONFIRMATION_PROCESS_INVALID_TOKEN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CONFIRMATION_PROCESS_TOKEN_ALREADY_REPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_ALREADY_BELONGS_TO_USER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAINS_TRANSFER_BETWEEN_ACCOUNTS_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAINS_TRANSFER_FOR_PENDING_REDEMPTION_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAINS_TRANSFER_BETWEEN_ACCOUNTS_NOT_ALLOWED_FOR_BASE44';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'TRANSFER_APPROVER_ACCOUNT_MISMATCH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateRegisteredDomainApplicationErrors =\n | {\n code?: 'PARKING_NS_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_IS_PARKED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_IS_DEACTIVATED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_IS_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_TRANSFER_OUT_IN_PROGRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_NAME_SERVERS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_FIELD_MASK';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Initiates a frictionless transfer of a registered domain to another Wix account, identified by email.\n *\n * If a Wix account already exists for `targetEmail`, an email is sent to that account's owner inviting them to approve the transfer by calling [Approve Transfer](/registeredDomains/approve-transfer).\n *\n * The domain must belong to the calling account and must not be in a state that blocks transfer, such as a redemption period or an in-progress transfer between registrars.\n * @param domain - Domain name to transfer.\n * @param targetEmail - Email address of the Wix account to transfer the domain to.\n * @public\n * @documentationMaturity preview\n * @requiredField domain\n * @requiredField targetEmail\n * @permissionId premium:domains:v1:registered_domain:initiate_transfer\n * @fqn com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.InitiateTransfer\n */\nexport async function initiateTransfer(\n domain: string,\n targetEmail: string\n): Promise<\n void & {\n __applicationErrorsType?: InitiateTransferApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domain: domain,\n targetEmail: targetEmail,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1RegisteredDomain.initiateTransfer(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { domain: '$[0]', targetEmail: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['domain', 'targetEmail']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Approves a pending frictionless domain transfer using the confirmation token received in the transfer invite email.\n *\n * On success, the domain is reassigned from the source account to the calling account.\n *\n * Call [Initiate Transfer](/registeredDomains/initiate-transfer) first to start a transfer and generate a confirmation token.\n * @param domain - Domain name to approve the transfer for.\n * @param confirmationToken - Confirmation token received in the transfer invite email.\n * @public\n * @documentationMaturity preview\n * @requiredField confirmationToken\n * @requiredField domain\n * @permissionId premium:domains:v1:registered_domain:approve_transfer\n * @fqn com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.ApproveTransfer\n */\nexport async function approveTransfer(\n domain: string,\n confirmationToken: string\n): Promise<\n void & {\n __applicationErrorsType?: ApproveTransferApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domain: domain,\n confirmationToken: confirmationToken,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1RegisteredDomain.approveTransfer(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { domain: '$[0]', confirmationToken: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['domain', 'confirmationToken']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a registered domain.\n *\n * Only the fields listed in `fieldMask` are updated. You can update `name_servers`, `registrant_contact`, `admin_contact`, `tech_contact`, and `tld_data`. You can't update `name_servers` in the same call as any of the other fields.\n *\n * You can't change the name servers of a domain that's parked, deactivated, expired, or being transferred to another registrar.\n *\n * > **Important:** For ICANN-governed gTLDs, changing the registrant email may trigger a verification process requiring confirmation from both the old and new email addresses.\n * @param domain - Name of the domain including TLD.\n * Subdomains aren't supported. You can only register a root domain.\n * Domain name and TLD must be separated by a dot. For example,\n * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are\n * supported.\n *\n * Min: 3 characters\n * Max: 63 characters\n * @public\n * @documentationMaturity preview\n * @requiredField domain\n * @permissionId premium:domains:v1:registered_domain:update_registered_domain\n * @fqn com.wixpress.premium.domains.registered.RegisteredDomainService.UpdateRegisteredDomain\n */\nexport async function updateRegisteredDomain(\n domain: string,\n options?: UpdateRegisteredDomainOptions\n): Promise<\n NonNullablePaths<\n UpdateRegisteredDomainResponse,\n | `registeredDomain._id`\n | `registeredDomain.domain`\n | `registeredDomain.registrantContact.firstName`\n | `registeredDomain.registrantContact.lastName`\n | `registeredDomain.registrantContact.email`\n | `registeredDomain.registrantContact.streetAddress`\n | `registeredDomain.registrantContact.city`\n | `registeredDomain.registrantContact.country`\n | `registeredDomain.registrantContact.phone`\n | `registeredDomain.tldData.caOptions.legalType.value`\n | `registeredDomain.tldData.itOptions.entityType.value`\n | `registeredDomain.tldData.comAuOptions.policyReason.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityType.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value`\n | `registeredDomain.tldData.usOptions.nexusCategory`\n | `registeredDomain.tldData.usOptions.usAppPurpose`\n | `registeredDomain.tldData.esOptions.idType`\n | `registeredDomain.tldData.coIlOptions.registrantType`\n | `registeredDomain.tldData.tldType`\n | `registeredDomain.nameServers`,\n 4\n > & {\n __applicationErrorsType?: UpdateRegisteredDomainApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n registeredDomain: { ...options?.registeredDomain, domain: domain },\n fieldMask: options?.fieldMask,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1RegisteredDomain.updateRegisteredDomain(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { registeredDomain: '$[1].registeredDomain' },\n explicitPathsToArguments: {\n 'registeredDomain.domain': '$[0]',\n fieldMask: '$[1].fieldMask',\n },\n singleArgumentUnchanged: false,\n },\n ['domain', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateRegisteredDomainOptions {\n registeredDomain?: {\n /**\n * Domain ID. Identical to `domain`.\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Date and time the `registeredDomain` object was created in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the `registeredDomain` object was last updated in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the registered domain\n * is updated. To prevent conflicting changes, the current revision must be\n * passed when updating the registered domain.\n *\n * Ignored when creating a registered domain.\n */\n revision?: string | null;\n /**\n * corresponds to service id in SBS\n * @format GUID\n */\n subscriptionId?: string | null;\n /** Registrant (domain owner) contact information */\n registrantContact?: Contact;\n /** Administrative contact information */\n adminContact?: Contact;\n /** Technical contact information */\n techContact?: Contact;\n /** TLD-specific registration requirements */\n tldData?: TldSpecificData;\n /**\n * Nameservers the domain is delegated to at the registrar. Exactly 2 when set, empty otherwise.\n * This is the real delegation, not the NS record of a Wix-managed DNS zone.\n * @format HOSTNAME\n * @maxSize 2\n */\n nameServers?: string[];\n };\n /** Fields to update. Only specified fields are modified. */\n fieldMask?: string[];\n}\n","import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 = [{ path: 'fieldMask' }];\nconst TRANSFORM_PATHS_1 = [\n { path: 'registeredDomain.createdDate' },\n { path: 'registeredDomain.updatedDate' },\n];\n\nfunction resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n ],\n _: [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n ],\n _: [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_registered-domains';\n\n/**\n * Initiates a frictionless transfer of a registered domain to another Wix account, identified by email.\n *\n * If a Wix account already exists for `targetEmail`, an email is sent to that account's owner inviting them to approve the transfer by calling [Approve Transfer](/registeredDomains/approve-transfer).\n *\n * The domain must belong to the calling account and must not be in a state that blocks transfer, such as a redemption period or an in-progress transfer between registrars.\n */\nexport function initiateTransfer(payload: object): RequestOptionsFactory<any> {\n function __initiateTransfer({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.registered_domain',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.InitiateTransfer',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n {\n protoPath: '/domains/v1/transfer-between-accounts/{domain}',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __initiateTransfer;\n}\n\n/**\n * Approves a pending frictionless domain transfer using the confirmation token received in the transfer invite email.\n *\n * On success, the domain is reassigned from the source account to the calling account.\n *\n * Call [Initiate Transfer](/registeredDomains/initiate-transfer) first to start a transfer and generate a confirmation token.\n */\nexport function approveTransfer(payload: object): RequestOptionsFactory<any> {\n function __approveTransfer({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.registered_domain',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.ApproveTransfer',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n {\n protoPath: '/domains/v1/transfer-between-accounts/{domain}/approve',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __approveTransfer;\n}\n\n/**\n * Updates a registered domain.\n *\n * Only the fields listed in `fieldMask` are updated. You can update `name_servers`, `registrant_contact`, `admin_contact`, `tech_contact`, and `tld_data`. You can't update `name_servers` in the same call as any of the other fields.\n *\n * You can't change the name servers of a domain that's parked, deactivated, expired, or being transferred to another registrar.\n *\n * > **Important:** For ICANN-governed gTLDs, changing the registrant email may trigger a verification process requiring confirmation from both the old and new email addresses.\n */\nexport function updateRegisteredDomain(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateRegisteredDomain({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.registered_domain',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.premium.domains.registered.RegisteredDomainService.UpdateRegisteredDomain',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(\n {\n protoPath: '/v1/registered-domains/{registeredDomain.domain}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateRegisteredDomain;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ApproveTransferApplicationErrors,\n InitiateTransferApplicationErrors,\n UpdateRegisteredDomainApplicationErrors,\n UpdateRegisteredDomainOptions,\n UpdateRegisteredDomainResponse,\n approveTransfer as universalApproveTransfer,\n initiateTransfer as universalInitiateTransfer,\n updateRegisteredDomain as universalUpdateRegisteredDomain,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function initiateTransfer(\n httpClient: HttpClient\n): InitiateTransferSignature {\n return (domain: string, targetEmail: string) =>\n universalInitiateTransfer(\n domain,\n targetEmail,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface InitiateTransferSignature {\n /**\n * Initiates a frictionless transfer of a registered domain to another Wix account, identified by email.\n *\n * If a Wix account already exists for `targetEmail`, an email is sent to that account's owner inviting them to approve the transfer by calling [Approve Transfer](/registeredDomains/approve-transfer).\n *\n * The domain must belong to the calling account and must not be in a state that blocks transfer, such as a redemption period or an in-progress transfer between registrars.\n * @param - Domain name to transfer.\n * @param - Email address of the Wix account to transfer the domain to.\n */\n (domain: string, targetEmail: string): Promise<\n void & {\n __applicationErrorsType?: InitiateTransferApplicationErrors;\n }\n >;\n}\n\nexport function approveTransfer(\n httpClient: HttpClient\n): ApproveTransferSignature {\n return (domain: string, confirmationToken: string) =>\n universalApproveTransfer(\n domain,\n confirmationToken,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ApproveTransferSignature {\n /**\n * Approves a pending frictionless domain transfer using the confirmation token received in the transfer invite email.\n *\n * On success, the domain is reassigned from the source account to the calling account.\n *\n * Call [Initiate Transfer](/registeredDomains/initiate-transfer) first to start a transfer and generate a confirmation token.\n * @param - Domain name to approve the transfer for.\n * @param - Confirmation token received in the transfer invite email.\n */\n (domain: string, confirmationToken: string): Promise<\n void & {\n __applicationErrorsType?: ApproveTransferApplicationErrors;\n }\n >;\n}\n\nexport function updateRegisteredDomain(\n httpClient: HttpClient\n): UpdateRegisteredDomainSignature {\n return (domain: string, options?: UpdateRegisteredDomainOptions) =>\n universalUpdateRegisteredDomain(\n domain,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateRegisteredDomainSignature {\n /**\n * Updates a registered domain.\n *\n * Only the fields listed in `fieldMask` are updated. You can update `name_servers`, `registrant_contact`, `admin_contact`, `tech_contact`, and `tld_data`. You can't update `name_servers` in the same call as any of the other fields.\n *\n * You can't change the name servers of a domain that's parked, deactivated, expired, or being transferred to another registrar.\n *\n * > **Important:** For ICANN-governed gTLDs, changing the registrant email may trigger a verification process requiring confirmation from both the old and new email addresses.\n * @param - Name of the domain including TLD.\n * Subdomains aren't supported. You can only register a root domain.\n * Domain name and TLD must be separated by a dot. For example,\n * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are\n * supported.\n *\n * Min: 3 characters\n * Max: 63 characters\n */\n (domain: string, options?: UpdateRegisteredDomainOptions): Promise<\n NonNullablePaths<\n UpdateRegisteredDomainResponse,\n | `registeredDomain._id`\n | `registeredDomain.domain`\n | `registeredDomain.registrantContact.firstName`\n | `registeredDomain.registrantContact.lastName`\n | `registeredDomain.registrantContact.email`\n | `registeredDomain.registrantContact.streetAddress`\n | `registeredDomain.registrantContact.city`\n | `registeredDomain.registrantContact.country`\n | `registeredDomain.registrantContact.phone`\n | `registeredDomain.tldData.caOptions.legalType.value`\n | `registeredDomain.tldData.itOptions.entityType.value`\n | `registeredDomain.tldData.comAuOptions.policyReason.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityType.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value`\n | `registeredDomain.tldData.usOptions.nexusCategory`\n | `registeredDomain.tldData.usOptions.usAppPurpose`\n | `registeredDomain.tldData.esOptions.idType`\n | `registeredDomain.tldData.coIlOptions.registrantType`\n | `registeredDomain.tldData.tldType`\n | `registeredDomain.nameServers`,\n 4\n > & {\n __applicationErrorsType?: UpdateRegisteredDomainApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n ApproveTransferRequest,\n ApproveTransferResponse,\n BillingSubscriptionCancelled,\n CaOptions,\n ComAuOptions,\n ComBrOptions,\n ConnectedToSite,\n ConnectionLost,\n ConnectionVerified,\n Contact,\n ContactVerificationStatus,\n ContactVerificationStatusChanged,\n CreateRegisteredDomainInternalRequest,\n CreateRegisteredDomainInternalResponse,\n CreateRegisteredDomainRequest,\n CreateRegisteredDomainResponse,\n DisconnectedFromSite,\n DnssecChanged,\n DomainChangedEvent,\n DomainChangedEventPayloadOneOf,\n DomainEvent,\n DomainEventBodyOneOf,\n DomainReleaseCouponEvent,\n DomainReleaseCouponEventTriggerTypeInfoOneOf,\n EligibilityIdType,\n EligibilityIdTypeEnum,\n EligibilityType,\n EligibilityTypeEnum,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityType,\n EntityTypeEnum,\n EntityUpdatedEvent,\n EsOptions,\n ExpirationDateChanged,\n Expired,\n GraceEnded,\n IdType,\n IdentificationData,\n IdentificationDataIdOneOf,\n IlOptions,\n InitiateTransferRequest,\n InitiateTransferResponse,\n ItOptions,\n LegalType,\n LegalTypeEnum,\n ManagementTypeChanged,\n MessageEnvelope,\n NameServersChanged,\n NexusCategory,\n OwnerChanged,\n PolicyReason,\n PolicyReasonEnum,\n PriceIncreaseProcessed,\n PrivacyChanged,\n PropagationStarted,\n RedemptionEnded,\n Registered,\n RegisteredDomain,\n RegistrantType,\n RegistrationCancelled,\n RegistrationExtended,\n RestoreInfo,\n ReviveFromChargebackInfo,\n ScheduleContactDetailsReminderRequest,\n ScheduleContactDetailsReminderResponse,\n ScheduleNearExpirationReminderRequest,\n ScheduleNearExpirationReminderResponse,\n ScheduleParkAfterRefundRequest,\n ScheduleParkAfterRefundResponse,\n SeOptions,\n TldSpecificData,\n TldSpecificDataRequirementsOneOf,\n TldType,\n TriggerType,\n UpdateRegisteredDomainOptions,\n UpdateRegisteredDomainRequest,\n UpdateRegisteredDomainResponse,\n UsAppPurpose,\n UsOptions,\n VerificationStarted,\n WebhookIdentityType,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n","import {\n initiateTransfer as publicInitiateTransfer,\n approveTransfer as publicApproveTransfer,\n updateRegisteredDomain as publicUpdateRegisteredDomain,\n} from './premium-domains-v1-registered-domain-registered-domains.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const initiateTransfer: MaybeContext<\n BuildRESTFunction<typeof publicInitiateTransfer> &\n typeof publicInitiateTransfer\n> = /*#__PURE__*/ createRESTModule(publicInitiateTransfer);\nexport const approveTransfer: MaybeContext<\n BuildRESTFunction<typeof publicApproveTransfer> & typeof publicApproveTransfer\n> = /*#__PURE__*/ createRESTModule(publicApproveTransfer);\nexport const updateRegisteredDomain: MaybeContext<\n BuildRESTFunction<typeof publicUpdateRegisteredDomain> &\n typeof publicUpdateRegisteredDomain\n> = /*#__PURE__*/ createRESTModule(publicUpdateRegisteredDomain);\n\nexport {\n LegalTypeEnum,\n EntityTypeEnum,\n PolicyReasonEnum,\n EligibilityTypeEnum,\n EligibilityIdTypeEnum,\n NexusCategory,\n UsAppPurpose,\n IdType,\n RegistrantType,\n TldType,\n WebhookIdentityType,\n ContactVerificationStatus,\n TriggerType,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\nexport {\n RegisteredDomain,\n Contact,\n TldSpecificData,\n TldSpecificDataRequirementsOneOf,\n LegalType,\n EntityType,\n PolicyReason,\n EligibilityType,\n EligibilityIdType,\n CaOptions,\n ItOptions,\n ComAuOptions,\n ComBrOptions,\n UsOptions,\n SeOptions,\n EsOptions,\n IlOptions,\n NameServersChanged,\n InitiateTransferRequest,\n InitiateTransferResponse,\n ApproveTransferRequest,\n ApproveTransferResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n DomainChangedEvent,\n DomainChangedEventPayloadOneOf,\n Registered,\n RegistrationCancelled,\n ConnectedToSite,\n DisconnectedFromSite,\n RegistrationExtended,\n OwnerChanged,\n PrivacyChanged,\n ManagementTypeChanged,\n BillingSubscriptionCancelled,\n ConnectionVerified,\n ConnectionLost,\n ExpirationDateChanged,\n PropagationStarted,\n VerificationStarted,\n ContactVerificationStatusChanged,\n Expired,\n GraceEnded,\n RedemptionEnded,\n DnssecChanged,\n PriceIncreaseProcessed,\n DomainReleaseCouponEvent,\n DomainReleaseCouponEventTriggerTypeInfoOneOf,\n ReviveFromChargebackInfo,\n CreateRegisteredDomainRequest,\n CreateRegisteredDomainResponse,\n CreateRegisteredDomainInternalRequest,\n CreateRegisteredDomainInternalResponse,\n UpdateRegisteredDomainRequest,\n UpdateRegisteredDomainResponse,\n ScheduleNearExpirationReminderRequest,\n ScheduleNearExpirationReminderResponse,\n ScheduleContactDetailsReminderRequest,\n ScheduleContactDetailsReminderResponse,\n ScheduleParkAfterRefundRequest,\n ScheduleParkAfterRefundResponse,\n UpdateRegisteredDomainOptions,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\nexport {\n LegalTypeEnumWithLiterals,\n EntityTypeEnumWithLiterals,\n PolicyReasonEnumWithLiterals,\n EligibilityTypeEnumWithLiterals,\n EligibilityIdTypeEnumWithLiterals,\n NexusCategoryWithLiterals,\n UsAppPurposeWithLiterals,\n IdTypeWithLiterals,\n RegistrantTypeWithLiterals,\n TldTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n ContactVerificationStatusWithLiterals,\n TriggerTypeWithLiterals,\n InitiateTransferApplicationErrors,\n ApproveTransferApplicationErrors,\n UpdateRegisteredDomainApplicationErrors,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB,CAAC,EAAE,MAAM,YAAY,CAAC;AAChD,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,+BAA+B;AAAA,EACvC,EAAE,MAAM,+BAA+B;AACzC;AAEA,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,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C3B,SAAO,CAAC,QAAgB,gBACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAmBO,SAASC,iBACd,YAC0B;AAC1B,SAAO,CAAC,QAAgB,sBACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAmBO,SAASC,wBACd,YACiC;AACjC,SAAO,CAAC,QAAgB,YACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC7EA,SAAS,wBAAwB;AAG1B,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,0BAGK,iCAAiBA,uBAA4B;","names":["payload","LegalTypeEnum","EntityTypeEnum","PolicyReasonEnum","EligibilityTypeEnum","EligibilityIdTypeEnum","NexusCategory","UsAppPurpose","IdType","RegistrantType","TldType","WebhookIdentityType","ContactVerificationStatus","TriggerType","initiateTransfer","approveTransfer","updateRegisteredDomain","initiateTransfer","approveTransfer","updateRegisteredDomain","initiateTransfer","approveTransfer","updateRegisteredDomain"]}
1
+ {"version":3,"sources":["../../src/premium-domains-v1-registered-domain-registered-domains.universal.ts","../../src/premium-domains-v1-registered-domain-registered-domains.http.ts","../../src/premium-domains-v1-registered-domain-registered-domains.public.ts","../../src/premium-domains-v1-registered-domain-registered-domains.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1RegisteredDomain from './premium-domains-v1-registered-domain-registered-domains.http.js';\n\n/**\n * A registered domain is a domain that Wix has registered on behalf of a customer\n * with an external registar.\n */\nexport interface RegisteredDomain {\n /**\n * Domain ID. Identical to `domain`.\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Name of the domain including TLD.\n * Subdomains aren't supported. You can only register a root domain.\n * Domain name and TLD must be separated by a dot. For example,\n * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are\n * supported.\n *\n * Min: 3 characters\n * Max: 63 characters\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Date and time the `registeredDomain` object was created in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the `registeredDomain` object was last updated in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the registered domain\n * is updated. To prevent conflicting changes, the current revision must be\n * passed when updating the registered domain.\n *\n * Ignored when creating a registered domain.\n */\n revision?: string | null;\n /**\n * corresponds to service id in SBS\n * @format GUID\n */\n subscriptionId?: string | null;\n /** Registrant (domain owner) contact information */\n registrantContact?: Contact;\n /** Administrative contact information */\n adminContact?: Contact;\n /** Technical contact information */\n techContact?: Contact;\n /** TLD-specific registration requirements */\n tldData?: TldSpecificData;\n /**\n * Nameservers the domain is delegated to at the registrar. Exactly 2 when set, empty otherwise.\n * This is the real delegation, not the NS record of a Wix-managed DNS zone.\n * @format HOSTNAME\n * @maxSize 2\n */\n nameServers?: string[];\n}\n\n/** Contact information for domain registration */\nexport interface Contact {\n /**\n * First name\n * @minLength 1\n * @maxLength 100\n */\n firstName?: string;\n /**\n * Last name\n * @minLength 1\n * @maxLength 100\n */\n lastName?: string;\n /**\n * Email address\n * @format EMAIL\n */\n email?: string;\n /**\n * Company or organization name (optional)\n * @maxLength 100\n */\n company?: string | null;\n /**\n * Street address\n * @minLength 1\n * @maxLength 255\n */\n streetAddress?: string;\n /**\n * City\n * @minLength 1\n * @maxLength 30\n */\n city?: string;\n /**\n * Subdivision (such as state, prefecture, or province) in ISO-3166 alpha-2 format (optional)\n * @format SUBDIVISION\n */\n subdivision?: string | null;\n /**\n * Postal or ZIP code. Optional - some countries (e.g. Jamaica) have no postal system. Max 16 chars.\n * @maxLength 16\n */\n postalCode?: string | null;\n /**\n * ISO 3166-1 alpha-2 country code\n * @format COUNTRY\n */\n country?: string;\n /**\n * Phone number in international format\n * @format PHONE\n */\n phone?: string;\n}\n\n/** TLD-specific registration data required for certain domain extensions. The `tldType` determines which options field to set. */\nexport interface TldSpecificData extends TldSpecificDataRequirementsOneOf {\n /** Registration options for .ca domains. */\n caOptions?: CaOptions;\n /** Registration options for .it domains. */\n itOptions?: ItOptions;\n /** Registration options for .com.au domains. */\n comAuOptions?: ComAuOptions;\n /** Registration options for .com.br domains. */\n comBrOptions?: ComBrOptions;\n /** Registration options for .us domains. */\n usOptions?: UsOptions;\n /** Registration options for .se domains. */\n seOptions?: SeOptions;\n /** Registration options for .es domains. */\n esOptions?: EsOptions;\n /** Registration options for .co.il domains. */\n coIlOptions?: IlOptions;\n /** Registration options for .org.il domains. */\n orgIlOptions?: IlOptions;\n /** TLD-specific registration data required for certain domain extensions. The `tldType` determines which options field to set. */\n tldType?: TldTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TldSpecificDataRequirementsOneOf {\n /** Registration options for .ca domains. */\n caOptions?: CaOptions;\n /** Registration options for .it domains. */\n itOptions?: ItOptions;\n /** Registration options for .com.au domains. */\n comAuOptions?: ComAuOptions;\n /** Registration options for .com.br domains. */\n comBrOptions?: ComBrOptions;\n /** Registration options for .us domains. */\n usOptions?: UsOptions;\n /** Registration options for .se domains. */\n seOptions?: SeOptions;\n /** Registration options for .es domains. */\n esOptions?: EsOptions;\n /** Registration options for .co.il domains. */\n coIlOptions?: IlOptions;\n /** Registration options for .org.il domains. */\n orgIlOptions?: IlOptions;\n}\n\n/** Legal entity types recognized by the Canadian Internet Registration Authority (CIRA). */\nexport enum LegalTypeEnum {\n /** Aboriginal peoples. */\n ABO = 'ABO',\n /** Association. */\n ASS = 'ASS',\n /** Canadian corporation. */\n CCO = 'CCO',\n /** Canadian citizen. */\n CCT = 'CCT',\n /** Educational institution. */\n EDU = 'EDU',\n /** Government entity. */\n GOV = 'GOV',\n /** Hospital. */\n HOP = 'HOP',\n /** Indian band. */\n INB = 'INB',\n /** Library, archive, or museum. */\n LAM = 'LAM',\n /** Legal representative. */\n LGR = 'LGR',\n /** Her Majesty the Queen. */\n MAJ = 'MAJ',\n /** Official mark registered under the Trademarks Act. */\n OMK = 'OMK',\n /** Political party. */\n PLT = 'PLT',\n /** Partnership. */\n PRT = 'PRT',\n /** Permanent resident. */\n RES = 'RES',\n /** Trademark owner. */\n TDM = 'TDM',\n /** Trade union. */\n TRD = 'TRD',\n /** Trust. */\n TRS = 'TRS',\n}\n\n/** @enumType */\nexport type LegalTypeEnumWithLiterals =\n | LegalTypeEnum\n | 'ABO'\n | 'ASS'\n | 'CCO'\n | 'CCT'\n | 'EDU'\n | 'GOV'\n | 'HOP'\n | 'INB'\n | 'LAM'\n | 'LGR'\n | 'MAJ'\n | 'OMK'\n | 'PLT'\n | 'PRT'\n | 'RES'\n | 'TDM'\n | 'TRD'\n | 'TRS';\n\n/** Legal type of the registrant. */\nexport interface LegalType {\n value?: LegalTypeEnumWithLiterals;\n}\n\n/** Entity types recognized by the Italian registry (Registro.it). */\nexport enum EntityTypeEnum {\n /** Italian resident. */\n ITR = 'ITR',\n /** Foreign resident. */\n FOR = 'FOR',\n /** Company or sole proprietorship. */\n COM = 'COM',\n /** Freelance worker. */\n FWI = 'FWI',\n /** Nonprofit organization. */\n NPO = 'NPO',\n /** Public organization. */\n POI = 'POI',\n /** Other entity type. */\n OSI = 'OSI',\n}\n\n/** @enumType */\nexport type EntityTypeEnumWithLiterals =\n | EntityTypeEnum\n | 'ITR'\n | 'FOR'\n | 'COM'\n | 'FWI'\n | 'NPO'\n | 'POI'\n | 'OSI';\n\n/** Entity type of the registrant. */\nexport interface EntityType {\n value?: EntityTypeEnumWithLiterals;\n}\n\n/** Policy reasons recognized by the .au Domain Administration (auDA). */\nexport enum PolicyReasonEnum {\n /** Exact match to the registrant's name or trademark. */\n EXC = 'EXC',\n /** Close and substantial connection to the registrant. */\n CLS = 'CLS',\n}\n\n/** @enumType */\nexport type PolicyReasonEnumWithLiterals = PolicyReasonEnum | 'EXC' | 'CLS';\n\n/** Eligibility types recognized by the .au Domain Administration (auDA). */\nexport enum EligibilityTypeEnum {\n /** Company. */\n COM = 'COM',\n /** Sole trader. */\n STR = 'STR',\n /** Partnership. */\n PRT = 'PRT',\n /** Trademark owner. */\n TRO = 'TRO',\n /** Pending trademark owner. */\n PTO = 'PTO',\n /** Commonwealth entity. */\n CWE = 'CWE',\n /** Government body. */\n GVB = 'GVB',\n /** Incorporated association. */\n INA = 'INA',\n /** Trust. */\n TRS = 'TRS',\n /** Statutory body. */\n STB = 'STB',\n /** Trading cooperative. */\n TRC = 'TRC',\n /** Registered business. */\n RBU = 'RBU',\n}\n\n/** @enumType */\nexport type EligibilityTypeEnumWithLiterals =\n | EligibilityTypeEnum\n | 'COM'\n | 'STR'\n | 'PRT'\n | 'TRO'\n | 'PTO'\n | 'CWE'\n | 'GVB'\n | 'INA'\n | 'TRS'\n | 'STB'\n | 'TRC'\n | 'RBU';\n\n/** Identification types recognized by the .au Domain Administration (auDA). */\nexport enum EligibilityIdTypeEnum {\n /** Australian Business Number. */\n ABN = 'ABN',\n /** Australian Company Number. */\n ACN = 'ACN',\n}\n\n/** @enumType */\nexport type EligibilityIdTypeEnumWithLiterals =\n | EligibilityIdTypeEnum\n | 'ABN'\n | 'ACN';\n\n/** Reason the registrant is eligible for the domain name. */\nexport interface PolicyReason {\n value?: PolicyReasonEnumWithLiterals;\n}\n\n/** Type of entity registering the domain. */\nexport interface EligibilityType {\n value?: EligibilityTypeEnumWithLiterals;\n}\n\n/** Type of identification number provided for eligibility. */\nexport interface EligibilityIdType {\n value?: EligibilityIdTypeEnumWithLiterals;\n}\n\n/** Nexus category indicating the registrant's connection to the United States. */\nexport enum NexusCategory {\n /** US citizen. */\n C11 = 'C11',\n /** Permanent resident. */\n C12 = 'C12',\n /** US entity or organization. */\n C21 = 'C21',\n /** Foreign entity with a presence in the US market. */\n C31 = 'C31',\n /** Foreign entity with a US office. */\n C32 = 'C32',\n}\n\n/** @enumType */\nexport type NexusCategoryWithLiterals =\n | NexusCategory\n | 'C11'\n | 'C12'\n | 'C21'\n | 'C31'\n | 'C32';\n\n/** Purpose for which the .us domain's application was made. */\nexport enum UsAppPurpose {\n /** Business use for profit. */\n P1 = 'P1',\n /** Non-profit business, club, association, or religious organization. */\n P2 = 'P2',\n /** Personal use. */\n P3 = 'P3',\n /** Education purposes. */\n P4 = 'P4',\n /** Government purposes. */\n P5 = 'P5',\n}\n\n/** @enumType */\nexport type UsAppPurposeWithLiterals =\n | UsAppPurpose\n | 'P1'\n | 'P2'\n | 'P3'\n | 'P4'\n | 'P5';\n\n/** Type of government-issued ID a .es registrant identifies itself with. */\nexport enum IdType {\n /** Any ID that is neither a NIF nor a NIE - typically a foreign national or tax ID. */\n OTHER = 'OTHER',\n /** Spanish tax identification number. A Spanish company sends its CIF under this type. */\n NIF = 'NIF',\n /** Foreigner identity number issued in Spain. */\n NIE = 'NIE',\n}\n\n/** @enumType */\nexport type IdTypeWithLiterals = IdType | 'OTHER' | 'NIF' | 'NIE';\n\n/** Type of registrant recognized by the Israeli registry (ISOC-IL). */\nexport enum RegistrantType {\n /** Natural person. */\n INDIVIDUAL = 'INDIVIDUAL',\n /** Company, association, or other legal entity. */\n ORGANIZATION = 'ORGANIZATION',\n}\n\n/** @enumType */\nexport type RegistrantTypeWithLiterals =\n | RegistrantType\n | 'INDIVIDUAL'\n | 'ORGANIZATION';\n\n/** TLD-specific registration data required for certain domain extensions. The `tldType` determines which options field to set. */\nexport enum TldType {\n /** .ca domains. */\n CA = 'CA',\n /** .it domains. */\n IT = 'IT',\n /** .com.au domains. */\n COM_AU = 'COM_AU',\n /** .com.br domains. */\n COM_BR = 'COM_BR',\n /** .us domains. */\n US = 'US',\n /** .se domains. */\n SE = 'SE',\n /** .es domains. */\n ES = 'ES',\n /** .co.il domains. */\n CO_IL = 'CO_IL',\n /** .org.il domains. */\n ORG_IL = 'ORG_IL',\n}\n\n/** @enumType */\nexport type TldTypeWithLiterals =\n | TldType\n | 'CA'\n | 'IT'\n | 'COM_AU'\n | 'COM_BR'\n | 'US'\n | 'SE'\n | 'ES'\n | 'CO_IL'\n | 'ORG_IL';\n\n/** Registration options for .ca domains. */\nexport interface CaOptions {\n /** Registrant's legal type. Required for .ca domains. */\n legalType?: LegalType;\n}\n\n/** Registration options for .it domains. */\nexport interface ItOptions {\n /** Registrant's entity type. Required for .it domains. */\n entityType?: EntityType;\n /**\n * Registration code such as a VAT number, tax ID, or fiscal code. Required for .it domains. Maximum 20 characters.\n * @maxLength 20\n */\n regCode?: string | null;\n}\n\n/** Registration options for .com.au domains. */\nexport interface ComAuOptions {\n /** Reason the registrant is eligible for the domain name. Required for .com.au domains. */\n policyReason?: PolicyReason;\n /** Type of entity registering the domain. Required for .com.au domains. */\n eligibilityType?: EligibilityType;\n /** Type of identification number provided. Required for .com.au domains. */\n eligibilityIdType?: EligibilityIdType;\n /**\n * Eligibility identification number, such as an ABN or ACN. Required for .com.au domains. Maximum 20 characters.\n * @maxLength 20\n */\n eligibilityId?: string | null;\n /**\n * Registrant's entity name. Required for .com.au domains. Maximum 255 characters.\n * @maxLength 255\n */\n registrantName?: string | null;\n}\n\n/** Registration options for .com.br domains. */\nexport interface ComBrOptions {\n /**\n * Brazilian tax ID. CPF for individuals, CNPJ for companies.\n *\n * + CPF format: 123.456.789-87 (11 digits)\n * + CNPJ format: 01.234.456/5432-10 (14 digits)\n * @minLength 11\n * @maxLength 18\n */\n identificationNumber?: string | null;\n /**\n * Registrant's date of birth, in `YYYY-MM-DD` format. Required by the registry when the registrant is an\n * individual (CPF holder). Not needed for companies (CNPJ).\n * @format LOCAL_DATE\n */\n dateOfBirth?: string | null;\n}\n\n/** Registration options for .us domains. */\nexport interface UsOptions {\n /** Registrant's nexus category. Required for .us domains. */\n nexusCategory?: NexusCategoryWithLiterals;\n /** Registrant's application purpose. Required for .us domains. */\n usAppPurpose?: UsAppPurposeWithLiterals;\n /**\n * Domain owner's two-letter country of citizenship. Required for .us domains when\n * `nexus_category` is C31 or C32; not applicable otherwise.\n * @maxLength 2\n */\n nexusValidator?: string | null;\n}\n\n/** Registration options for .se domains. */\nexport interface SeOptions {\n /**\n * Registrant's identification number. Required for .se domains.\n *\n * + Individuals: national ID card or passport number.\n * + Organizations: business registration number or VAT-ID.\n * @maxLength 20\n */\n idNumber?: string | null;\n}\n\n/** Registration options for .es domains. */\nexport interface EsOptions {\n /**\n * Registrant's government-issued ID number. Required for .es domains.\n *\n * + Spanish registrants: DNI, NIF, or NIE.\n * + Foreign registrants: equivalent national ID or tax ID.\n *\n * Note: the admin contact must be a natural person (not a company).\n * @maxLength 20\n */\n govId?: string | null;\n /**\n * Type of the ID carried in `govId`. Required for .es domains - without it the registry\n * substitutes a placeholder identification and the registration is non-compliant.\n *\n * Note: there is no CIF value - a Spanish company sends NIF carrying its CIF number.\n */\n idType?: IdTypeWithLiterals;\n}\n\n/** Registration options for .co.il and .org.il domains. */\nexport interface IlOptions {\n /** Registrant's type. Required for .co.il and .org.il domains. */\n registrantType?: RegistrantTypeWithLiterals;\n /**\n * Registrant's company registration number. Required when `registrantType` is `ORGANIZATION`.\n *\n * For Israeli entities this is the 9-digit company number (ח.פ.). The registry validates the\n * format; it isn't validated by the registrar.\n * @maxLength 30\n */\n registrationNumber?: string | null;\n}\n\n/** Sent after the registrar accepted new name servers for a registered domain. */\nexport interface NameServersChanged {\n /**\n * Name of the domain whose name servers changed.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Name servers set on the domain.\n * @format HOSTNAME\n * @maxSize 2\n */\n nameServers?: string[];\n /**\n * Name servers the domain had before the change.\n * @format HOSTNAME\n * @maxSize 2\n */\n previousNameServers?: string[];\n}\n\nexport interface InitiateTransferRequest {\n /**\n * Domain name to transfer.\n * @format HOSTNAME\n */\n domain: string;\n /**\n * Email address of the Wix account to transfer the domain to.\n * @format EMAIL\n */\n targetEmail: string;\n}\n\nexport interface InitiateTransferResponse {}\n\nexport interface ApproveTransferRequest {\n /**\n * Domain name to approve the transfer for.\n * @format HOSTNAME\n */\n domain: string;\n /**\n * Confirmation token received in the transfer invite email.\n * @maxLength 1024\n */\n confirmationToken: string;\n}\n\nexport interface ApproveTransferResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface DomainChangedEvent extends DomainChangedEventPayloadOneOf {\n /** WARNING: `registered` event payload is DEPRECATED */\n registered?: Registered;\n /** WARNING: `registration_cancelled` event payload is DEPRECATED */\n registrationCancelled?: RegistrationCancelled;\n connectedToSite?: ConnectedToSite;\n disconnectedFromSite?: DisconnectedFromSite;\n /** WARNING: `registration_extended` event payload is DEPRECATED */\n registrationExtended?: RegistrationExtended;\n /** WARNING: `owner_changed` event payload is DEPRECATED */\n ownerChanged?: OwnerChanged;\n /** WARNING: `privacy_changed` event payload is DEPRECATED */\n privacyChanged?: PrivacyChanged;\n /** WARNING: `management_type_changed` event payload is DEPRECATED */\n managementTypeChanged?: ManagementTypeChanged;\n /** WARNING: `billing_subscription_cancelled` event payload is DEPRECATED */\n billingSubscriptionCancelled?: BillingSubscriptionCancelled;\n /** WARNING: `connection_verified` event payload is DEPRECATED */\n connectionVerified?: ConnectionVerified;\n /** WARNING: `connection_lost` event payload is DEPRECATED */\n connectionLost?: ConnectionLost;\n /** WARNING: `expiration_date_changed` event payload is DEPRECATED */\n expirationDateChanged?: ExpirationDateChanged;\n propagationStarted?: PropagationStarted;\n verificationStarted?: VerificationStarted;\n contactVerificationStatusChanged?: ContactVerificationStatusChanged;\n /** Expiry/GraceStarted */\n expired?: Expired;\n /** GraceEnded/RedemptionStarted */\n graceEnded?: GraceEnded;\n /** RedemptionEnded */\n redemptionEnded?: RedemptionEnded;\n /** enable or disable dnssec */\n dnssecChanged?: DnssecChanged;\n /** domain SKU updated due to price increase */\n priceIncreaseProcessed?: PriceIncreaseProcessed;\n domainName?: string;\n changeTime?: Date | null;\n}\n\n/** @oneof */\nexport interface DomainChangedEventPayloadOneOf {\n /** WARNING: `registered` event payload is DEPRECATED */\n registered?: Registered;\n /** WARNING: `registration_cancelled` event payload is DEPRECATED */\n registrationCancelled?: RegistrationCancelled;\n connectedToSite?: ConnectedToSite;\n disconnectedFromSite?: DisconnectedFromSite;\n /** WARNING: `registration_extended` event payload is DEPRECATED */\n registrationExtended?: RegistrationExtended;\n /** WARNING: `owner_changed` event payload is DEPRECATED */\n ownerChanged?: OwnerChanged;\n /** WARNING: `privacy_changed` event payload is DEPRECATED */\n privacyChanged?: PrivacyChanged;\n /** WARNING: `management_type_changed` event payload is DEPRECATED */\n managementTypeChanged?: ManagementTypeChanged;\n /** WARNING: `billing_subscription_cancelled` event payload is DEPRECATED */\n billingSubscriptionCancelled?: BillingSubscriptionCancelled;\n /** WARNING: `connection_verified` event payload is DEPRECATED */\n connectionVerified?: ConnectionVerified;\n /** WARNING: `connection_lost` event payload is DEPRECATED */\n connectionLost?: ConnectionLost;\n /** WARNING: `expiration_date_changed` event payload is DEPRECATED */\n expirationDateChanged?: ExpirationDateChanged;\n propagationStarted?: PropagationStarted;\n verificationStarted?: VerificationStarted;\n contactVerificationStatusChanged?: ContactVerificationStatusChanged;\n /** Expiry/GraceStarted */\n expired?: Expired;\n /** GraceEnded/RedemptionStarted */\n graceEnded?: GraceEnded;\n /** RedemptionEnded */\n redemptionEnded?: RedemptionEnded;\n /** enable or disable dnssec */\n dnssecChanged?: DnssecChanged;\n /** domain SKU updated due to price increase */\n priceIncreaseProcessed?: PriceIncreaseProcessed;\n}\n\nexport interface Registered {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface RegistrationCancelled {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ConnectedToSite {\n /** @format GUID */\n msid?: string;\n}\n\nexport interface DisconnectedFromSite {\n /** @format GUID */\n msid?: string;\n}\n\nexport interface RegistrationExtended {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface OwnerChanged {\n /** @format GUID */\n oldUserGuid?: string;\n /** @format GUID */\n newUserGuid?: string;\n /** @format GUID */\n oldRegistrationId?: string | null;\n /** @format GUID */\n newRegistrationId?: string | null;\n}\n\nexport interface PrivacyChanged {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ManagementTypeChanged {}\n\nexport interface BillingSubscriptionCancelled {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ConnectionVerified {}\n\nexport interface ConnectionLost {}\n\nexport interface ExpirationDateChanged {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface PropagationStarted {\n /** @format GUID */\n userGuid?: string;\n}\n\nexport interface VerificationStarted {\n /** @format GUID */\n userGuid?: string;\n}\n\nexport interface ContactVerificationStatusChanged {\n status?: ContactVerificationStatusWithLiterals;\n}\n\nexport enum ContactVerificationStatus {\n PENDING = 'PENDING',\n DEACTIVATED = 'DEACTIVATED',\n CONFIRMED_BY_WIX = 'CONFIRMED_BY_WIX',\n CONFIRMED_BY_REGDOTCOM = 'CONFIRMED_BY_REGDOTCOM',\n}\n\n/** @enumType */\nexport type ContactVerificationStatusWithLiterals =\n | ContactVerificationStatus\n | 'PENDING'\n | 'DEACTIVATED'\n | 'CONFIRMED_BY_WIX'\n | 'CONFIRMED_BY_REGDOTCOM';\n\nexport interface Expired {}\n\nexport interface GraceEnded {}\n\nexport interface RedemptionEnded {}\n\nexport interface DnssecChanged {\n /**\n * unique registration id\n * @format GUID\n */\n registrationId?: string;\n}\n\nexport interface PriceIncreaseProcessed {}\n\nexport interface DomainReleaseCouponEvent\n extends DomainReleaseCouponEventTriggerTypeInfoOneOf {\n reviveFromChargebackInfo?: ReviveFromChargebackInfo;\n domainName?: string;\n couponCode?: string;\n triggerType?: TriggerTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface DomainReleaseCouponEventTriggerTypeInfoOneOf {\n reviveFromChargebackInfo?: ReviveFromChargebackInfo;\n}\n\nexport enum TriggerType {\n UNKNOWN_EVENT_TYPE = 'UNKNOWN_EVENT_TYPE',\n REVIVE_FROM_CHARGEBACK = 'REVIVE_FROM_CHARGEBACK',\n}\n\n/** @enumType */\nexport type TriggerTypeWithLiterals =\n | TriggerType\n | 'UNKNOWN_EVENT_TYPE'\n | 'REVIVE_FROM_CHARGEBACK';\n\nexport interface ReviveFromChargebackInfo {\n /** @format GUID */\n extContractId?: string;\n}\n\nexport interface CreateRegisteredDomainRequest {\n /** Information about the domain to register including contact details. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface CreateRegisteredDomainResponse {\n /** Created registered domain. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface CreateRegisteredDomainInternalRequest {\n /** Information about the domain to register including contact details. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface CreateRegisteredDomainInternalResponse {\n /** Created registered domain. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface UpdateRegisteredDomainRequest {\n /** Registered domain with updated fields. */\n registeredDomain?: RegisteredDomain;\n /** Fields to update. Only specified fields are modified. */\n fieldMask?: string[];\n}\n\nexport interface UpdateRegisteredDomainResponse {\n /** Updated registered domain. */\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface ScheduleNearExpirationReminderRequest {\n /** @format HOSTNAME */\n domain?: string;\n}\n\nexport interface ScheduleNearExpirationReminderResponse {\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface ScheduleContactDetailsReminderRequest {\n /** @format HOSTNAME */\n domain?: string;\n}\n\nexport interface ScheduleContactDetailsReminderResponse {\n registeredDomain?: RegisteredDomain;\n}\n\nexport interface ScheduleParkAfterRefundRequest {\n /** @format HOSTNAME */\n domain?: string;\n /** @format GUID */\n subscriptionId?: string;\n parkAtDate?: Date | null;\n}\n\nexport interface ScheduleParkAfterRefundResponse {\n registeredDomain?: RegisteredDomain;\n}\n\n/** @docsIgnore */\nexport type InitiateTransferApplicationErrors =\n | {\n code?: 'DOMAIN_NOT_OWNED_BY_CALLER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_NOT_ELIGIBLE_FOR_TRANSFER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'TARGET_EMAIL_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_TRANSFER_TO_SELF';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PENDING_TRANSFER_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ApproveTransferApplicationErrors =\n | {\n code?: 'TRANSFER_REQUEST_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CONFIRMATION_PROCESS_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CONFIRMATION_PROCESS_INVALID_TOKEN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CONFIRMATION_PROCESS_TOKEN_ALREADY_REPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_ALREADY_BELONGS_TO_USER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAINS_TRANSFER_BETWEEN_ACCOUNTS_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAINS_TRANSFER_FOR_PENDING_REDEMPTION_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAINS_TRANSFER_BETWEEN_ACCOUNTS_NOT_ALLOWED_FOR_BASE44';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'TRANSFER_APPROVER_ACCOUNT_MISMATCH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateRegisteredDomainApplicationErrors =\n | {\n code?: 'PARKING_NS_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_IS_PARKED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_IS_DEACTIVATED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_IS_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DOMAIN_TRANSFER_OUT_IN_PROGRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_NAME_SERVERS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_FIELD_MASK';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Initiates a frictionless transfer of a registered domain to another Wix account, identified by email.\n *\n * If a Wix account already exists for `targetEmail`, an email is sent to that account's owner inviting them to approve the transfer by calling [Approve Transfer](/registeredDomains/approve-transfer).\n *\n * The domain must belong to the calling account and must not be in a state that blocks transfer, such as a redemption period or an in-progress transfer between registrars.\n * @param domain - Domain name to transfer.\n * @param targetEmail - Email address of the Wix account to transfer the domain to.\n * @public\n * @documentationMaturity preview\n * @requiredField domain\n * @requiredField targetEmail\n * @permissionId premium:domains:v1:registered_domain:initiate_transfer\n * @applicableIdentity APP\n * @fqn com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.InitiateTransfer\n */\nexport async function initiateTransfer(\n domain: string,\n targetEmail: string\n): Promise<\n void & {\n __applicationErrorsType?: InitiateTransferApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domain: domain,\n targetEmail: targetEmail,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1RegisteredDomain.initiateTransfer(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { domain: '$[0]', targetEmail: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['domain', 'targetEmail']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Approves a pending frictionless domain transfer using the confirmation token received in the transfer invite email.\n *\n * On success, the domain is reassigned from the source account to the calling account.\n *\n * Call [Initiate Transfer](/registeredDomains/initiate-transfer) first to start a transfer and generate a confirmation token.\n * @param domain - Domain name to approve the transfer for.\n * @param confirmationToken - Confirmation token received in the transfer invite email.\n * @public\n * @documentationMaturity preview\n * @requiredField confirmationToken\n * @requiredField domain\n * @permissionId premium:domains:v1:registered_domain:approve_transfer\n * @applicableIdentity APP\n * @fqn com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.ApproveTransfer\n */\nexport async function approveTransfer(\n domain: string,\n confirmationToken: string\n): Promise<\n void & {\n __applicationErrorsType?: ApproveTransferApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n domain: domain,\n confirmationToken: confirmationToken,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1RegisteredDomain.approveTransfer(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { domain: '$[0]', confirmationToken: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['domain', 'confirmationToken']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a registered domain.\n *\n * Only the fields listed in `fieldMask` are updated. You can update `name_servers`, `registrant_contact`, `admin_contact`, `tech_contact`, and `tld_data`. You can't update `name_servers` in the same call as any of the other fields.\n *\n * You can't change the name servers of a domain that's parked, deactivated, expired, or being transferred to another registrar.\n *\n * > **Important:** For ICANN-governed gTLDs, changing the registrant email may trigger a verification process requiring confirmation from both the old and new email addresses.\n * @param domain - Name of the domain including TLD.\n * Subdomains aren't supported. You can only register a root domain.\n * Domain name and TLD must be separated by a dot. For example,\n * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are\n * supported.\n *\n * Min: 3 characters\n * Max: 63 characters\n * @public\n * @documentationMaturity preview\n * @requiredField domain\n * @permissionId premium:domains:v1:registered_domain:update_registered_domain\n * @applicableIdentity APP\n * @fqn com.wixpress.premium.domains.registered.RegisteredDomainService.UpdateRegisteredDomain\n */\nexport async function updateRegisteredDomain(\n domain: string,\n options?: UpdateRegisteredDomainOptions\n): Promise<\n NonNullablePaths<\n UpdateRegisteredDomainResponse,\n | `registeredDomain._id`\n | `registeredDomain.domain`\n | `registeredDomain.registrantContact.firstName`\n | `registeredDomain.registrantContact.lastName`\n | `registeredDomain.registrantContact.email`\n | `registeredDomain.registrantContact.streetAddress`\n | `registeredDomain.registrantContact.city`\n | `registeredDomain.registrantContact.country`\n | `registeredDomain.registrantContact.phone`\n | `registeredDomain.tldData.caOptions.legalType.value`\n | `registeredDomain.tldData.itOptions.entityType.value`\n | `registeredDomain.tldData.comAuOptions.policyReason.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityType.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value`\n | `registeredDomain.tldData.usOptions.nexusCategory`\n | `registeredDomain.tldData.usOptions.usAppPurpose`\n | `registeredDomain.tldData.esOptions.idType`\n | `registeredDomain.tldData.coIlOptions.registrantType`\n | `registeredDomain.tldData.tldType`\n | `registeredDomain.nameServers`,\n 4\n > & {\n __applicationErrorsType?: UpdateRegisteredDomainApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n registeredDomain: { ...options?.registeredDomain, domain: domain },\n fieldMask: options?.fieldMask,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1RegisteredDomain.updateRegisteredDomain(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { registeredDomain: '$[1].registeredDomain' },\n explicitPathsToArguments: {\n 'registeredDomain.domain': '$[0]',\n fieldMask: '$[1].fieldMask',\n },\n singleArgumentUnchanged: false,\n },\n ['domain', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateRegisteredDomainOptions {\n registeredDomain?: {\n /**\n * Domain ID. Identical to `domain`.\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Date and time the `registeredDomain` object was created in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the `registeredDomain` object was last updated in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the registered domain\n * is updated. To prevent conflicting changes, the current revision must be\n * passed when updating the registered domain.\n *\n * Ignored when creating a registered domain.\n */\n revision?: string | null;\n /**\n * corresponds to service id in SBS\n * @format GUID\n */\n subscriptionId?: string | null;\n /** Registrant (domain owner) contact information */\n registrantContact?: Contact;\n /** Administrative contact information */\n adminContact?: Contact;\n /** Technical contact information */\n techContact?: Contact;\n /** TLD-specific registration requirements */\n tldData?: TldSpecificData;\n /**\n * Nameservers the domain is delegated to at the registrar. Exactly 2 when set, empty otherwise.\n * This is the real delegation, not the NS record of a Wix-managed DNS zone.\n * @format HOSTNAME\n * @maxSize 2\n */\n nameServers?: string[];\n };\n /** Fields to update. Only specified fields are modified. */\n fieldMask?: string[];\n}\n","import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 = [{ path: 'fieldMask' }];\nconst TRANSFORM_PATHS_1 = [\n { path: 'registeredDomain.createdDate' },\n { path: 'registeredDomain.updatedDate' },\n];\n\nfunction resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n ],\n _: [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n {\n srcPath: '/premium/domains/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n ],\n _: [\n {\n srcPath: '/domains/v1/transfer-between-accounts',\n destPath: '/domains/v1/transfer-between-accounts',\n },\n {\n srcPath: '/premium/domains/v1/registered-domains',\n destPath: '/v1/registered-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_registered-domains';\n\n/**\n * Initiates a frictionless transfer of a registered domain to another Wix account, identified by email.\n *\n * If a Wix account already exists for `targetEmail`, an email is sent to that account's owner inviting them to approve the transfer by calling [Approve Transfer](/registeredDomains/approve-transfer).\n *\n * The domain must belong to the calling account and must not be in a state that blocks transfer, such as a redemption period or an in-progress transfer between registrars.\n */\nexport function initiateTransfer(payload: object): RequestOptionsFactory<any> {\n function __initiateTransfer({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.registered_domain',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.InitiateTransfer',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n {\n protoPath: '/domains/v1/transfer-between-accounts/{domain}',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __initiateTransfer;\n}\n\n/**\n * Approves a pending frictionless domain transfer using the confirmation token received in the transfer invite email.\n *\n * On success, the domain is reassigned from the source account to the calling account.\n *\n * Call [Initiate Transfer](/registeredDomains/initiate-transfer) first to start a transfer and generate a confirmation token.\n */\nexport function approveTransfer(payload: object): RequestOptionsFactory<any> {\n function __approveTransfer({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.registered_domain',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.ApproveTransfer',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n {\n protoPath: '/domains/v1/transfer-between-accounts/{domain}/approve',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __approveTransfer;\n}\n\n/**\n * Updates a registered domain.\n *\n * Only the fields listed in `fieldMask` are updated. You can update `name_servers`, `registrant_contact`, `admin_contact`, `tech_contact`, and `tld_data`. You can't update `name_servers` in the same call as any of the other fields.\n *\n * You can't change the name servers of a domain that's parked, deactivated, expired, or being transferred to another registrar.\n *\n * > **Important:** For ICANN-governed gTLDs, changing the registrant email may trigger a verification process requiring confirmation from both the old and new email addresses.\n */\nexport function updateRegisteredDomain(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateRegisteredDomain({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.registered_domain',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.premium.domains.registered.RegisteredDomainService.UpdateRegisteredDomain',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainsRegisteredRegisteredDomainServiceUrl(\n {\n protoPath: '/v1/registered-domains/{registeredDomain.domain}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateRegisteredDomain;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ApproveTransferApplicationErrors,\n InitiateTransferApplicationErrors,\n UpdateRegisteredDomainApplicationErrors,\n UpdateRegisteredDomainOptions,\n UpdateRegisteredDomainResponse,\n approveTransfer as universalApproveTransfer,\n initiateTransfer as universalInitiateTransfer,\n updateRegisteredDomain as universalUpdateRegisteredDomain,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function initiateTransfer(\n httpClient: HttpClient\n): InitiateTransferSignature {\n return (domain: string, targetEmail: string) =>\n universalInitiateTransfer(\n domain,\n targetEmail,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface InitiateTransferSignature {\n /**\n * Initiates a frictionless transfer of a registered domain to another Wix account, identified by email.\n *\n * If a Wix account already exists for `targetEmail`, an email is sent to that account's owner inviting them to approve the transfer by calling [Approve Transfer](/registeredDomains/approve-transfer).\n *\n * The domain must belong to the calling account and must not be in a state that blocks transfer, such as a redemption period or an in-progress transfer between registrars.\n * @param - Domain name to transfer.\n * @param - Email address of the Wix account to transfer the domain to.\n */\n (domain: string, targetEmail: string): Promise<\n void & {\n __applicationErrorsType?: InitiateTransferApplicationErrors;\n }\n >;\n}\n\nexport function approveTransfer(\n httpClient: HttpClient\n): ApproveTransferSignature {\n return (domain: string, confirmationToken: string) =>\n universalApproveTransfer(\n domain,\n confirmationToken,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ApproveTransferSignature {\n /**\n * Approves a pending frictionless domain transfer using the confirmation token received in the transfer invite email.\n *\n * On success, the domain is reassigned from the source account to the calling account.\n *\n * Call [Initiate Transfer](/registeredDomains/initiate-transfer) first to start a transfer and generate a confirmation token.\n * @param - Domain name to approve the transfer for.\n * @param - Confirmation token received in the transfer invite email.\n */\n (domain: string, confirmationToken: string): Promise<\n void & {\n __applicationErrorsType?: ApproveTransferApplicationErrors;\n }\n >;\n}\n\nexport function updateRegisteredDomain(\n httpClient: HttpClient\n): UpdateRegisteredDomainSignature {\n return (domain: string, options?: UpdateRegisteredDomainOptions) =>\n universalUpdateRegisteredDomain(\n domain,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateRegisteredDomainSignature {\n /**\n * Updates a registered domain.\n *\n * Only the fields listed in `fieldMask` are updated. You can update `name_servers`, `registrant_contact`, `admin_contact`, `tech_contact`, and `tld_data`. You can't update `name_servers` in the same call as any of the other fields.\n *\n * You can't change the name servers of a domain that's parked, deactivated, expired, or being transferred to another registrar.\n *\n * > **Important:** For ICANN-governed gTLDs, changing the registrant email may trigger a verification process requiring confirmation from both the old and new email addresses.\n * @param - Name of the domain including TLD.\n * Subdomains aren't supported. You can only register a root domain.\n * Domain name and TLD must be separated by a dot. For example,\n * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are\n * supported.\n *\n * Min: 3 characters\n * Max: 63 characters\n */\n (domain: string, options?: UpdateRegisteredDomainOptions): Promise<\n NonNullablePaths<\n UpdateRegisteredDomainResponse,\n | `registeredDomain._id`\n | `registeredDomain.domain`\n | `registeredDomain.registrantContact.firstName`\n | `registeredDomain.registrantContact.lastName`\n | `registeredDomain.registrantContact.email`\n | `registeredDomain.registrantContact.streetAddress`\n | `registeredDomain.registrantContact.city`\n | `registeredDomain.registrantContact.country`\n | `registeredDomain.registrantContact.phone`\n | `registeredDomain.tldData.caOptions.legalType.value`\n | `registeredDomain.tldData.itOptions.entityType.value`\n | `registeredDomain.tldData.comAuOptions.policyReason.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityType.value`\n | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value`\n | `registeredDomain.tldData.usOptions.nexusCategory`\n | `registeredDomain.tldData.usOptions.usAppPurpose`\n | `registeredDomain.tldData.esOptions.idType`\n | `registeredDomain.tldData.coIlOptions.registrantType`\n | `registeredDomain.tldData.tldType`\n | `registeredDomain.nameServers`,\n 4\n > & {\n __applicationErrorsType?: UpdateRegisteredDomainApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n ApproveTransferRequest,\n ApproveTransferResponse,\n BillingSubscriptionCancelled,\n CaOptions,\n ComAuOptions,\n ComBrOptions,\n ConnectedToSite,\n ConnectionLost,\n ConnectionVerified,\n Contact,\n ContactVerificationStatus,\n ContactVerificationStatusChanged,\n CreateRegisteredDomainInternalRequest,\n CreateRegisteredDomainInternalResponse,\n CreateRegisteredDomainRequest,\n CreateRegisteredDomainResponse,\n DisconnectedFromSite,\n DnssecChanged,\n DomainChangedEvent,\n DomainChangedEventPayloadOneOf,\n DomainEvent,\n DomainEventBodyOneOf,\n DomainReleaseCouponEvent,\n DomainReleaseCouponEventTriggerTypeInfoOneOf,\n EligibilityIdType,\n EligibilityIdTypeEnum,\n EligibilityType,\n EligibilityTypeEnum,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityType,\n EntityTypeEnum,\n EntityUpdatedEvent,\n EsOptions,\n ExpirationDateChanged,\n Expired,\n GraceEnded,\n IdType,\n IdentificationData,\n IdentificationDataIdOneOf,\n IlOptions,\n InitiateTransferRequest,\n InitiateTransferResponse,\n ItOptions,\n LegalType,\n LegalTypeEnum,\n ManagementTypeChanged,\n MessageEnvelope,\n NameServersChanged,\n NexusCategory,\n OwnerChanged,\n PolicyReason,\n PolicyReasonEnum,\n PriceIncreaseProcessed,\n PrivacyChanged,\n PropagationStarted,\n RedemptionEnded,\n Registered,\n RegisteredDomain,\n RegistrantType,\n RegistrationCancelled,\n RegistrationExtended,\n RestoreInfo,\n ReviveFromChargebackInfo,\n ScheduleContactDetailsReminderRequest,\n ScheduleContactDetailsReminderResponse,\n ScheduleNearExpirationReminderRequest,\n ScheduleNearExpirationReminderResponse,\n ScheduleParkAfterRefundRequest,\n ScheduleParkAfterRefundResponse,\n SeOptions,\n TldSpecificData,\n TldSpecificDataRequirementsOneOf,\n TldType,\n TriggerType,\n UpdateRegisteredDomainOptions,\n UpdateRegisteredDomainRequest,\n UpdateRegisteredDomainResponse,\n UsAppPurpose,\n UsOptions,\n VerificationStarted,\n WebhookIdentityType,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n","import {\n initiateTransfer as publicInitiateTransfer,\n approveTransfer as publicApproveTransfer,\n updateRegisteredDomain as publicUpdateRegisteredDomain,\n} from './premium-domains-v1-registered-domain-registered-domains.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const initiateTransfer: MaybeContext<\n BuildRESTFunction<typeof publicInitiateTransfer> &\n typeof publicInitiateTransfer\n> = /*#__PURE__*/ createRESTModule(publicInitiateTransfer);\nexport const approveTransfer: MaybeContext<\n BuildRESTFunction<typeof publicApproveTransfer> & typeof publicApproveTransfer\n> = /*#__PURE__*/ createRESTModule(publicApproveTransfer);\nexport const updateRegisteredDomain: MaybeContext<\n BuildRESTFunction<typeof publicUpdateRegisteredDomain> &\n typeof publicUpdateRegisteredDomain\n> = /*#__PURE__*/ createRESTModule(publicUpdateRegisteredDomain);\n\nexport {\n LegalTypeEnum,\n EntityTypeEnum,\n PolicyReasonEnum,\n EligibilityTypeEnum,\n EligibilityIdTypeEnum,\n NexusCategory,\n UsAppPurpose,\n IdType,\n RegistrantType,\n TldType,\n WebhookIdentityType,\n ContactVerificationStatus,\n TriggerType,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\nexport {\n RegisteredDomain,\n Contact,\n TldSpecificData,\n TldSpecificDataRequirementsOneOf,\n LegalType,\n EntityType,\n PolicyReason,\n EligibilityType,\n EligibilityIdType,\n CaOptions,\n ItOptions,\n ComAuOptions,\n ComBrOptions,\n UsOptions,\n SeOptions,\n EsOptions,\n IlOptions,\n NameServersChanged,\n InitiateTransferRequest,\n InitiateTransferResponse,\n ApproveTransferRequest,\n ApproveTransferResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n DomainChangedEvent,\n DomainChangedEventPayloadOneOf,\n Registered,\n RegistrationCancelled,\n ConnectedToSite,\n DisconnectedFromSite,\n RegistrationExtended,\n OwnerChanged,\n PrivacyChanged,\n ManagementTypeChanged,\n BillingSubscriptionCancelled,\n ConnectionVerified,\n ConnectionLost,\n ExpirationDateChanged,\n PropagationStarted,\n VerificationStarted,\n ContactVerificationStatusChanged,\n Expired,\n GraceEnded,\n RedemptionEnded,\n DnssecChanged,\n PriceIncreaseProcessed,\n DomainReleaseCouponEvent,\n DomainReleaseCouponEventTriggerTypeInfoOneOf,\n ReviveFromChargebackInfo,\n CreateRegisteredDomainRequest,\n CreateRegisteredDomainResponse,\n CreateRegisteredDomainInternalRequest,\n CreateRegisteredDomainInternalResponse,\n UpdateRegisteredDomainRequest,\n UpdateRegisteredDomainResponse,\n ScheduleNearExpirationReminderRequest,\n ScheduleNearExpirationReminderResponse,\n ScheduleContactDetailsReminderRequest,\n ScheduleContactDetailsReminderResponse,\n ScheduleParkAfterRefundRequest,\n ScheduleParkAfterRefundResponse,\n UpdateRegisteredDomainOptions,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\nexport {\n LegalTypeEnumWithLiterals,\n EntityTypeEnumWithLiterals,\n PolicyReasonEnumWithLiterals,\n EligibilityTypeEnumWithLiterals,\n EligibilityIdTypeEnumWithLiterals,\n NexusCategoryWithLiterals,\n UsAppPurposeWithLiterals,\n IdTypeWithLiterals,\n RegistrantTypeWithLiterals,\n TldTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n ContactVerificationStatusWithLiterals,\n TriggerTypeWithLiterals,\n InitiateTransferApplicationErrors,\n ApproveTransferApplicationErrors,\n UpdateRegisteredDomainApplicationErrors,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB,CAAC,EAAE,MAAM,YAAY,CAAC;AAChD,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,+BAA+B;AAAA,EACvC,EAAE,MAAM,+BAA+B;AACzC;AAEA,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;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,mBAAmB;AAAA,MACjB;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,IACA,GAAG;AAAA,MACD;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,OA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Category","UsAppPurpose","IdType","RegistrantType","TldType","WebhookIdentityType","ContactVerificationStatus","TriggerType","initiateTransfer","approveTransfer","updateRegisteredDomain","initiateTransfer","approveTransfer","updateRegisteredDomain","initiateTransfer","approveTransfer","updateRegisteredDomain"]}
@@ -1007,6 +1007,7 @@ type UpdateRegisteredDomainApplicationErrors = {
1007
1007
  * @requiredField domain
1008
1008
  * @requiredField targetEmail
1009
1009
  * @permissionId premium:domains:v1:registered_domain:initiate_transfer
1010
+ * @applicableIdentity APP
1010
1011
  * @fqn com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.InitiateTransfer
1011
1012
  */
1012
1013
  declare function initiateTransfer(domain: string, targetEmail: string): Promise<void & {
@@ -1025,6 +1026,7 @@ declare function initiateTransfer(domain: string, targetEmail: string): Promise<
1025
1026
  * @requiredField confirmationToken
1026
1027
  * @requiredField domain
1027
1028
  * @permissionId premium:domains:v1:registered_domain:approve_transfer
1029
+ * @applicableIdentity APP
1028
1030
  * @fqn com.wixpress.premium.domains.registered.DomainTransferBetweenAccountsService.ApproveTransfer
1029
1031
  */
1030
1032
  declare function approveTransfer(domain: string, confirmationToken: string): Promise<void & {
@@ -1050,6 +1052,7 @@ declare function approveTransfer(domain: string, confirmationToken: string): Pro
1050
1052
  * @documentationMaturity preview
1051
1053
  * @requiredField domain
1052
1054
  * @permissionId premium:domains:v1:registered_domain:update_registered_domain
1055
+ * @applicableIdentity APP
1053
1056
  * @fqn com.wixpress.premium.domains.registered.RegisteredDomainService.UpdateRegisteredDomain
1054
1057
  */
1055
1058
  declare function updateRegisteredDomain(domain: string, options?: UpdateRegisteredDomainOptions): Promise<NonNullablePaths<UpdateRegisteredDomainResponse, `registeredDomain._id` | `registeredDomain.domain` | `registeredDomain.registrantContact.firstName` | `registeredDomain.registrantContact.lastName` | `registeredDomain.registrantContact.email` | `registeredDomain.registrantContact.streetAddress` | `registeredDomain.registrantContact.city` | `registeredDomain.registrantContact.country` | `registeredDomain.registrantContact.phone` | `registeredDomain.tldData.caOptions.legalType.value` | `registeredDomain.tldData.itOptions.entityType.value` | `registeredDomain.tldData.comAuOptions.policyReason.value` | `registeredDomain.tldData.comAuOptions.eligibilityType.value` | `registeredDomain.tldData.comAuOptions.eligibilityIdType.value` | `registeredDomain.tldData.usOptions.nexusCategory` | `registeredDomain.tldData.usOptions.usAppPurpose` | `registeredDomain.tldData.esOptions.idType` | `registeredDomain.tldData.coIlOptions.registrantType` | `registeredDomain.tldData.tldType` | `registeredDomain.nameServers`, 4> & {