@wix/auto_sdk_domains_registered-domains 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +26 -1
  2. package/build/cjs/index.js +8 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +8 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +26 -1
  8. package/build/cjs/meta.js +8 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +26 -1
  11. package/build/es/index.mjs +7 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +7 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +26 -1
  17. package/build/es/meta.mjs +7 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.typings.d.ts +26 -1
  21. package/build/internal/cjs/meta.d.ts +26 -1
  22. package/build/internal/es/index.d.mts +1 -1
  23. package/build/internal/es/index.typings.d.mts +26 -1
  24. package/build/internal/es/meta.d.mts +26 -1
  25. package/package.json +4 -5
  26. package/build/internal/cjs/index.js +0 -286
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -263
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -245
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/es/index.mjs +0 -250
  33. package/build/internal/es/index.mjs.map +0 -1
  34. package/build/internal/es/index.typings.mjs +0 -227
  35. package/build/internal/es/index.typings.mjs.map +0 -1
  36. package/build/internal/es/meta.mjs +0 -206
  37. package/build/internal/es/meta.mjs.map +0 -1
@@ -54,6 +54,13 @@ interface RegisteredDomain {
54
54
  techContact?: Contact;
55
55
  /** TLD-specific registration requirements */
56
56
  tldData?: TldSpecificData;
57
+ /**
58
+ * Nameservers the domain is delegated to at the registrar. Exactly 2 when set, empty otherwise.
59
+ * This is the real delegation, not the NS record of a Wix-managed DNS zone.
60
+ * @format HOSTNAME
61
+ * @maxSize 2
62
+ */
63
+ nameServers?: string[];
57
64
  }
58
65
  /** Contact information for domain registration */
59
66
  interface Contact {
@@ -298,6 +305,17 @@ declare enum NexusCategory {
298
305
  }
299
306
  /** @enumType */
300
307
  type NexusCategoryWithLiterals = NexusCategory | 'C11' | 'C12' | 'C21' | 'C31' | 'C32';
308
+ /** Type of government-issued ID a .es registrant identifies itself with. */
309
+ declare enum IdType {
310
+ /** Any ID that is neither a NIF nor a NIE - typically a foreign national or tax ID. */
311
+ OTHER = "OTHER",
312
+ /** Spanish tax identification number. A Spanish company sends its CIF under this type. */
313
+ NIF = "NIF",
314
+ /** Foreigner identity number issued in Spain. */
315
+ NIE = "NIE"
316
+ }
317
+ /** @enumType */
318
+ type IdTypeWithLiterals = IdType | 'OTHER' | 'NIF' | 'NIE';
301
319
  /** Type of registrant recognized by the Israeli registry (ISOC-IL). */
302
320
  declare enum RegistrantType {
303
321
  /** Natural person. */
@@ -404,6 +422,13 @@ interface EsOptions {
404
422
  * @maxLength 20
405
423
  */
406
424
  govId?: string | null;
425
+ /**
426
+ * Type of the ID carried in `govId`. Required for .es domains - without it the registry
427
+ * substitutes a placeholder identification and the registration is non-compliant.
428
+ *
429
+ * Note: there is no CIF value - a Spanish company sends NIF carrying its CIF number.
430
+ */
431
+ idType?: IdTypeWithLiterals;
407
432
  }
408
433
  /** Registration options for .co.il and .org.il domains. */
409
434
  interface IlOptions {
@@ -819,4 +844,4 @@ type ApproveTransferApplicationErrors = {
819
844
  data?: Record<string, any>;
820
845
  };
821
846
 
822
- export { type AccountInfo, type ApproveTransferApplicationErrors, type ApproveTransferRequest, type ApproveTransferResponse, type BillingSubscriptionCancelled, type CaOptions, type ComAuOptions, type ComBrOptions, type ConnectedToSite, type ConnectionLost, type ConnectionVerified, type Contact, ContactVerificationStatus, type ContactVerificationStatusChanged, type ContactVerificationStatusWithLiterals, type CreateRegisteredDomainInternalRequest, type CreateRegisteredDomainInternalResponse, type CreateRegisteredDomainRequest, type CreateRegisteredDomainResponse, type DisconnectedFromSite, type DnssecChanged, type DomainChangedEvent, type DomainChangedEventPayloadOneOf, type DomainReleaseCouponEvent, type DomainReleaseCouponEventTriggerTypeInfoOneOf, type EligibilityIdType, EligibilityIdTypeEnum, type EligibilityIdTypeEnumWithLiterals, type EligibilityType, EligibilityTypeEnum, type EligibilityTypeEnumWithLiterals, type EntityType, EntityTypeEnum, type EntityTypeEnumWithLiterals, type EsOptions, type ExpirationDateChanged, type Expired, type GraceEnded, type IdentificationData, type IdentificationDataIdOneOf, type IlOptions, type InitiateTransferApplicationErrors, type InitiateTransferRequest, type InitiateTransferResponse, type ItOptions, type LegalType, LegalTypeEnum, type LegalTypeEnumWithLiterals, type ManagementTypeChanged, type MessageEnvelope, NexusCategory, type NexusCategoryWithLiterals, type OwnerChanged, type PolicyReason, PolicyReasonEnum, type PolicyReasonEnumWithLiterals, type PriceIncreaseProcessed, type PrivacyChanged, type PropagationStarted, type RedemptionEnded, type Registered, type RegisteredDomain, RegistrantType, type RegistrantTypeWithLiterals, type RegistrationCancelled, type RegistrationExtended, type ReviveFromChargebackInfo, type ScheduleContactDetailsReminderRequest, type ScheduleContactDetailsReminderResponse, type ScheduleNearExpirationReminderRequest, type ScheduleNearExpirationReminderResponse, type ScheduleParkAfterRefundRequest, type ScheduleParkAfterRefundResponse, type SeOptions, type TldSpecificData, type TldSpecificDataRequirementsOneOf, TldType, type TldTypeWithLiterals, TriggerType, type TriggerTypeWithLiterals, type UpdateRegisteredDomainRequest, type UpdateRegisteredDomainResponse, type UsOptions, type VerificationStarted, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
847
+ export { type AccountInfo, type ApproveTransferApplicationErrors, type ApproveTransferRequest, type ApproveTransferResponse, type BillingSubscriptionCancelled, type CaOptions, type ComAuOptions, type ComBrOptions, type ConnectedToSite, type ConnectionLost, type ConnectionVerified, type Contact, ContactVerificationStatus, type ContactVerificationStatusChanged, type ContactVerificationStatusWithLiterals, type CreateRegisteredDomainInternalRequest, type CreateRegisteredDomainInternalResponse, type CreateRegisteredDomainRequest, type CreateRegisteredDomainResponse, type DisconnectedFromSite, type DnssecChanged, type DomainChangedEvent, type DomainChangedEventPayloadOneOf, type DomainReleaseCouponEvent, type DomainReleaseCouponEventTriggerTypeInfoOneOf, type EligibilityIdType, EligibilityIdTypeEnum, type EligibilityIdTypeEnumWithLiterals, type EligibilityType, EligibilityTypeEnum, type EligibilityTypeEnumWithLiterals, type EntityType, EntityTypeEnum, type EntityTypeEnumWithLiterals, type EsOptions, type ExpirationDateChanged, type Expired, type GraceEnded, IdType, type IdTypeWithLiterals, type IdentificationData, type IdentificationDataIdOneOf, type IlOptions, type InitiateTransferApplicationErrors, type InitiateTransferRequest, type InitiateTransferResponse, type ItOptions, type LegalType, LegalTypeEnum, type LegalTypeEnumWithLiterals, type ManagementTypeChanged, type MessageEnvelope, NexusCategory, type NexusCategoryWithLiterals, type OwnerChanged, type PolicyReason, PolicyReasonEnum, type PolicyReasonEnumWithLiterals, type PriceIncreaseProcessed, type PrivacyChanged, type PropagationStarted, type RedemptionEnded, type Registered, type RegisteredDomain, RegistrantType, type RegistrantTypeWithLiterals, type RegistrationCancelled, type RegistrationExtended, type ReviveFromChargebackInfo, type ScheduleContactDetailsReminderRequest, type ScheduleContactDetailsReminderResponse, type ScheduleNearExpirationReminderRequest, type ScheduleNearExpirationReminderResponse, type ScheduleParkAfterRefundRequest, type ScheduleParkAfterRefundResponse, type SeOptions, type TldSpecificData, type TldSpecificDataRequirementsOneOf, TldType, type TldTypeWithLiterals, TriggerType, type TriggerTypeWithLiterals, type UpdateRegisteredDomainRequest, type UpdateRegisteredDomainResponse, type UsOptions, type VerificationStarted, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
@@ -24,6 +24,7 @@ __export(index_exports, {
24
24
  EligibilityIdTypeEnum: () => EligibilityIdTypeEnum,
25
25
  EligibilityTypeEnum: () => EligibilityTypeEnum,
26
26
  EntityTypeEnum: () => EntityTypeEnum,
27
+ IdType: () => IdType,
27
28
  LegalTypeEnum: () => LegalTypeEnum,
28
29
  NexusCategory: () => NexusCategory,
29
30
  PolicyReasonEnum: () => PolicyReasonEnum,
@@ -155,6 +156,12 @@ var NexusCategory = /* @__PURE__ */ ((NexusCategory2) => {
155
156
  NexusCategory2["C32"] = "C32";
156
157
  return NexusCategory2;
157
158
  })(NexusCategory || {});
159
+ var IdType = /* @__PURE__ */ ((IdType2) => {
160
+ IdType2["OTHER"] = "OTHER";
161
+ IdType2["NIF"] = "NIF";
162
+ IdType2["NIE"] = "NIE";
163
+ return IdType2;
164
+ })(IdType || {});
158
165
  var RegistrantType = /* @__PURE__ */ ((RegistrantType2) => {
159
166
  RegistrantType2["INDIVIDUAL"] = "INDIVIDUAL";
160
167
  RegistrantType2["ORGANIZATION"] = "ORGANIZATION";
@@ -273,6 +280,7 @@ var approveTransfer4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule
273
280
  EligibilityIdTypeEnum,
274
281
  EligibilityTypeEnum,
275
282
  EntityTypeEnum,
283
+ IdType,
276
284
  LegalTypeEnum,
277
285
  NexusCategory,
278
286
  PolicyReasonEnum,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../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":["export * from './src/premium-domains-v1-registered-domain-registered-domains.context.js';\n","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 } 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\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/** 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\n/** Registration options for .us domains. */\nexport interface UsOptions {\n /** Registrant's nexus category. Required for .us domains. */\n nexusCategory?: NexusCategoryWithLiterals;\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\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\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 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\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\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/** @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/**\n * Initiates a frictionless domain transfer to another Wix account identified by email.\n * @param domain - Domain name to transfer.\n * @param targetEmail - Email address of the Wix account to transfer the domain to.\n * @internal\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 frictionless domain transfer using a confirmation token from the invite email.\n * @param domain - Domain name to approve the transfer for.\n * @param confirmationToken - Confirmation token received in the transfer invite email.\n * @internal\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","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_registered-domains';\n\n/** Initiates a frictionless domain transfer to another Wix account identified by email. */\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 { protoPath: '/v1/domain-transfer/{domain}', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __initiateTransfer;\n}\n\n/** Approves a frictionless domain transfer using a confirmation token from the invite email. */\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: '/v1/domain-transfer/{domain}/approve',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __approveTransfer;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n ApproveTransferApplicationErrors,\n InitiateTransferApplicationErrors,\n approveTransfer as universalApproveTransfer,\n initiateTransfer as universalInitiateTransfer,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\n/** @internal */\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 domain transfer to another Wix account identified by email.\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\n/** @internal */\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 frictionless domain transfer using a confirmation token from the invite email.\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 {\n AccountInfo,\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 DomainReleaseCouponEvent,\n DomainReleaseCouponEventTriggerTypeInfoOneOf,\n EligibilityIdType,\n EligibilityIdTypeEnum,\n EligibilityType,\n EligibilityTypeEnum,\n EntityType,\n EntityTypeEnum,\n EsOptions,\n ExpirationDateChanged,\n Expired,\n GraceEnded,\n IdentificationData,\n IdentificationDataIdOneOf,\n IlOptions,\n InitiateTransferRequest,\n InitiateTransferResponse,\n ItOptions,\n LegalType,\n LegalTypeEnum,\n ManagementTypeChanged,\n MessageEnvelope,\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 ReviveFromChargebackInfo,\n ScheduleContactDetailsReminderRequest,\n ScheduleContactDetailsReminderResponse,\n ScheduleNearExpirationReminderRequest,\n ScheduleNearExpirationReminderResponse,\n ScheduleParkAfterRefundRequest,\n ScheduleParkAfterRefundResponse,\n SeOptions,\n TldSpecificData,\n TldSpecificDataRequirementsOneOf,\n TldType,\n TriggerType,\n UpdateRegisteredDomainRequest,\n UpdateRegisteredDomainResponse,\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} 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\n/** @internal */\nexport const initiateTransfer: MaybeContext<\n BuildRESTFunction<typeof publicInitiateTransfer> &\n typeof publicInitiateTransfer\n> = /*#__PURE__*/ createRESTModule(publicInitiateTransfer);\n/** @internal */\nexport const approveTransfer: MaybeContext<\n BuildRESTFunction<typeof publicApproveTransfer> & typeof publicApproveTransfer\n> = /*#__PURE__*/ createRESTModule(publicApproveTransfer);\n\nexport {\n LegalTypeEnum,\n EntityTypeEnum,\n PolicyReasonEnum,\n EligibilityTypeEnum,\n EligibilityIdTypeEnum,\n NexusCategory,\n RegistrantType,\n TldType,\n ContactVerificationStatus,\n TriggerType,\n WebhookIdentityType,\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 InitiateTransferRequest,\n InitiateTransferResponse,\n ApproveTransferRequest,\n ApproveTransferResponse,\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 MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\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 RegistrantTypeWithLiterals,\n TldTypeWithLiterals,\n ContactVerificationStatusWithLiterals,\n TriggerTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n InitiateTransferApplicationErrors,\n ApproveTransferApplicationErrors,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,wBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAA2B;AAI3B,SAAS,kFACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH,EAAE,WAAW,gCAAgC,MAAM,SAAS,KAAK;AAAA,MACnE;AAAA,MACA,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,gBAAgB,SAA6C;AAC3E,WAAS,kBAAkB,EAAE,KAAK,GAAQ;AACxC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAA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AA0B,EAAE,QAAQ,QAAQ,mBAAmB,OAAO;AAAA,QACtE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,mBAAmB;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AElkCO,SAASE,kBACd,YAC2B;AAC3B,SAAO,CAAC,QAAgB,gBACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,iBACd,YAC0B;AAC1B,SAAO,CAAC,QAAgB,sBACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC3CA,IAAAC,uBAAiC;AAI1B,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAElD,IAAMC,mBAEK,2DAAiBA,gBAAqB;","names":["approveTransfer","initiateTransfer","LegalTypeEnum","EntityTypeEnum","PolicyReasonEnum","EligibilityTypeEnum","EligibilityIdTypeEnum","NexusCategory","RegistrantType","TldType","ContactVerificationStatus","TriggerType","WebhookIdentityType","initiateTransfer","sdkTransformError","approveTransfer","initiateTransfer","approveTransfer","import_rest_modules","initiateTransfer","approveTransfer"]}
1
+ {"version":3,"sources":["../../index.ts","../../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":["export * from './src/premium-domains-v1-registered-domain-registered-domains.context.js';\n","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 } 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/** 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\n/** Registration options for .us domains. */\nexport interface UsOptions {\n /** Registrant's nexus category. Required for .us domains. */\n nexusCategory?: NexusCategoryWithLiterals;\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\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 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\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\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/** @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/**\n * Initiates a frictionless domain transfer to another Wix account identified by email.\n * @param domain - Domain name to transfer.\n * @param targetEmail - Email address of the Wix account to transfer the domain to.\n * @internal\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 frictionless domain transfer using a confirmation token from the invite email.\n * @param domain - Domain name to approve the transfer for.\n * @param confirmationToken - Confirmation token received in the transfer invite email.\n * @internal\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","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_registered-domains';\n\n/** Initiates a frictionless domain transfer to another Wix account identified by email. */\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 { protoPath: '/v1/domain-transfer/{domain}', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __initiateTransfer;\n}\n\n/** Approves a frictionless domain transfer using a confirmation token from the invite email. */\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: '/v1/domain-transfer/{domain}/approve',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __approveTransfer;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n ApproveTransferApplicationErrors,\n InitiateTransferApplicationErrors,\n approveTransfer as universalApproveTransfer,\n initiateTransfer as universalInitiateTransfer,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\n/** @internal */\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 domain transfer to another Wix account identified by email.\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\n/** @internal */\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 frictionless domain transfer using a confirmation token from the invite email.\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 {\n AccountInfo,\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 DomainReleaseCouponEvent,\n DomainReleaseCouponEventTriggerTypeInfoOneOf,\n EligibilityIdType,\n EligibilityIdTypeEnum,\n EligibilityType,\n EligibilityTypeEnum,\n EntityType,\n EntityTypeEnum,\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 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 ReviveFromChargebackInfo,\n ScheduleContactDetailsReminderRequest,\n ScheduleContactDetailsReminderResponse,\n ScheduleNearExpirationReminderRequest,\n ScheduleNearExpirationReminderResponse,\n ScheduleParkAfterRefundRequest,\n ScheduleParkAfterRefundResponse,\n SeOptions,\n TldSpecificData,\n TldSpecificDataRequirementsOneOf,\n TldType,\n TriggerType,\n UpdateRegisteredDomainRequest,\n UpdateRegisteredDomainResponse,\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} 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\n/** @internal */\nexport const initiateTransfer: MaybeContext<\n BuildRESTFunction<typeof publicInitiateTransfer> &\n typeof publicInitiateTransfer\n> = /*#__PURE__*/ createRESTModule(publicInitiateTransfer);\n/** @internal */\nexport const approveTransfer: MaybeContext<\n BuildRESTFunction<typeof publicApproveTransfer> & typeof publicApproveTransfer\n> = /*#__PURE__*/ createRESTModule(publicApproveTransfer);\n\nexport {\n LegalTypeEnum,\n EntityTypeEnum,\n PolicyReasonEnum,\n EligibilityTypeEnum,\n EligibilityIdTypeEnum,\n NexusCategory,\n IdType,\n RegistrantType,\n TldType,\n ContactVerificationStatus,\n TriggerType,\n WebhookIdentityType,\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 InitiateTransferRequest,\n InitiateTransferResponse,\n ApproveTransferRequest,\n ApproveTransferResponse,\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 MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\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 IdTypeWithLiterals,\n RegistrantTypeWithLiterals,\n TldTypeWithLiterals,\n ContactVerificationStatusWithLiterals,\n TriggerTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n InitiateTransferApplicationErrors,\n ApproveTransferApplicationErrors,\n} from './premium-domains-v1-registered-domain-registered-domains.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,wBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAA2B;AAI3B,SAAS,kFACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,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AAO;AAAA,QAChE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,aAAa;AAAA,IAC1B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAaA,eAAsBC,iBACpB,QACA,mBAKA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,UAC0C,gBAAgB,OAAO;AAEvE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,QAAQ,mBAAmB,OAAO;AAAA,QACtE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,mBAAmB;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE7lCO,SAASE,kBACd,YAC2B;AAC3B,SAAO,CAAC,QAAgB,gBACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,iBACd,YAC0B;AAC1B,SAAO,CAAC,QAAgB,sBACtBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC3CA,IAAAC,uBAAiC;AAI1B,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAElD,IAAMC,mBAEK,2DAAiBA,gBAAqB;","names":["approveTransfer","initiateTransfer","LegalTypeEnum","EntityTypeEnum","PolicyReasonEnum","EligibilityTypeEnum","EligibilityIdTypeEnum","NexusCategory","IdType","RegistrantType","TldType","ContactVerificationStatus","TriggerType","WebhookIdentityType","initiateTransfer","sdkTransformError","approveTransfer","initiateTransfer","approveTransfer","import_rest_modules","initiateTransfer","approveTransfer"]}
@@ -1 +1 @@
1
- export { AccountInfo, ApproveTransferApplicationErrors, ApproveTransferRequest, ApproveTransferResponse, BillingSubscriptionCancelled, CaOptions, ComAuOptions, ComBrOptions, ConnectedToSite, ConnectionLost, ConnectionVerified, Contact, ContactVerificationStatus, ContactVerificationStatusChanged, ContactVerificationStatusWithLiterals, CreateRegisteredDomainInternalRequest, CreateRegisteredDomainInternalResponse, CreateRegisteredDomainRequest, CreateRegisteredDomainResponse, DisconnectedFromSite, DnssecChanged, DomainChangedEvent, DomainChangedEventPayloadOneOf, DomainReleaseCouponEvent, DomainReleaseCouponEventTriggerTypeInfoOneOf, EligibilityIdType, EligibilityIdTypeEnum, EligibilityIdTypeEnumWithLiterals, EligibilityType, EligibilityTypeEnum, EligibilityTypeEnumWithLiterals, EntityType, EntityTypeEnum, EntityTypeEnumWithLiterals, EsOptions, ExpirationDateChanged, Expired, GraceEnded, IdentificationData, IdentificationDataIdOneOf, IlOptions, InitiateTransferApplicationErrors, InitiateTransferRequest, InitiateTransferResponse, ItOptions, LegalType, LegalTypeEnum, LegalTypeEnumWithLiterals, ManagementTypeChanged, MessageEnvelope, NexusCategory, NexusCategoryWithLiterals, OwnerChanged, PolicyReason, PolicyReasonEnum, PolicyReasonEnumWithLiterals, PriceIncreaseProcessed, PrivacyChanged, PropagationStarted, RedemptionEnded, Registered, RegisteredDomain, RegistrantType, RegistrantTypeWithLiterals, RegistrationCancelled, RegistrationExtended, ReviveFromChargebackInfo, ScheduleContactDetailsReminderRequest, ScheduleContactDetailsReminderResponse, ScheduleNearExpirationReminderRequest, ScheduleNearExpirationReminderResponse, ScheduleParkAfterRefundRequest, ScheduleParkAfterRefundResponse, SeOptions, TldSpecificData, TldSpecificDataRequirementsOneOf, TldType, TldTypeWithLiterals, TriggerType, TriggerTypeWithLiterals, UpdateRegisteredDomainRequest, UpdateRegisteredDomainResponse, UsOptions, VerificationStarted, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.js';
1
+ export { AccountInfo, ApproveTransferApplicationErrors, ApproveTransferRequest, ApproveTransferResponse, BillingSubscriptionCancelled, CaOptions, ComAuOptions, ComBrOptions, ConnectedToSite, ConnectionLost, ConnectionVerified, Contact, ContactVerificationStatus, ContactVerificationStatusChanged, ContactVerificationStatusWithLiterals, CreateRegisteredDomainInternalRequest, CreateRegisteredDomainInternalResponse, CreateRegisteredDomainRequest, CreateRegisteredDomainResponse, DisconnectedFromSite, DnssecChanged, DomainChangedEvent, DomainChangedEventPayloadOneOf, DomainReleaseCouponEvent, DomainReleaseCouponEventTriggerTypeInfoOneOf, EligibilityIdType, EligibilityIdTypeEnum, EligibilityIdTypeEnumWithLiterals, EligibilityType, EligibilityTypeEnum, EligibilityTypeEnumWithLiterals, EntityType, EntityTypeEnum, EntityTypeEnumWithLiterals, EsOptions, ExpirationDateChanged, Expired, GraceEnded, IdType, IdTypeWithLiterals, IdentificationData, IdentificationDataIdOneOf, IlOptions, InitiateTransferApplicationErrors, InitiateTransferRequest, InitiateTransferResponse, ItOptions, LegalType, LegalTypeEnum, LegalTypeEnumWithLiterals, ManagementTypeChanged, MessageEnvelope, NexusCategory, NexusCategoryWithLiterals, OwnerChanged, PolicyReason, PolicyReasonEnum, PolicyReasonEnumWithLiterals, PriceIncreaseProcessed, PrivacyChanged, PropagationStarted, RedemptionEnded, Registered, RegisteredDomain, RegistrantType, RegistrantTypeWithLiterals, RegistrationCancelled, RegistrationExtended, ReviveFromChargebackInfo, ScheduleContactDetailsReminderRequest, ScheduleContactDetailsReminderResponse, ScheduleNearExpirationReminderRequest, ScheduleNearExpirationReminderResponse, ScheduleParkAfterRefundRequest, ScheduleParkAfterRefundResponse, SeOptions, TldSpecificData, TldSpecificDataRequirementsOneOf, TldType, TldTypeWithLiterals, TriggerType, TriggerTypeWithLiterals, UpdateRegisteredDomainRequest, UpdateRegisteredDomainResponse, UsOptions, VerificationStarted, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.js';
@@ -24,6 +24,7 @@ __export(index_typings_exports, {
24
24
  EligibilityIdTypeEnum: () => EligibilityIdTypeEnum,
25
25
  EligibilityTypeEnum: () => EligibilityTypeEnum,
26
26
  EntityTypeEnum: () => EntityTypeEnum,
27
+ IdType: () => IdType,
27
28
  LegalTypeEnum: () => LegalTypeEnum,
28
29
  NexusCategory: () => NexusCategory,
29
30
  PolicyReasonEnum: () => PolicyReasonEnum,
@@ -155,6 +156,12 @@ var NexusCategory = /* @__PURE__ */ ((NexusCategory2) => {
155
156
  NexusCategory2["C32"] = "C32";
156
157
  return NexusCategory2;
157
158
  })(NexusCategory || {});
159
+ var IdType = /* @__PURE__ */ ((IdType2) => {
160
+ IdType2["OTHER"] = "OTHER";
161
+ IdType2["NIF"] = "NIF";
162
+ IdType2["NIE"] = "NIE";
163
+ return IdType2;
164
+ })(IdType || {});
158
165
  var RegistrantType = /* @__PURE__ */ ((RegistrantType2) => {
159
166
  RegistrantType2["INDIVIDUAL"] = "INDIVIDUAL";
160
167
  RegistrantType2["ORGANIZATION"] = "ORGANIZATION";
@@ -250,6 +257,7 @@ async function approveTransfer2(domain, confirmationToken) {
250
257
  EligibilityIdTypeEnum,
251
258
  EligibilityTypeEnum,
252
259
  EntityTypeEnum,
260
+ IdType,
253
261
  LegalTypeEnum,
254
262
  NexusCategory,
255
263
  PolicyReasonEnum,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v1-registered-domain-registered-domains.universal.ts","../../src/premium-domains-v1-registered-domain-registered-domains.http.ts"],"sourcesContent":["export * from './src/premium-domains-v1-registered-domain-registered-domains.universal.js';\n","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 } 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\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/** 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\n/** Registration options for .us domains. */\nexport interface UsOptions {\n /** Registrant's nexus category. Required for .us domains. */\n nexusCategory?: NexusCategoryWithLiterals;\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\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\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 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\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\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/** @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/**\n * Initiates a frictionless domain transfer to another Wix account identified by email.\n * @param domain - Domain name to transfer.\n * @param targetEmail - Email address of the Wix account to transfer the domain to.\n * @internal\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 frictionless domain transfer using a confirmation token from the invite email.\n * @param domain - Domain name to approve the transfer for.\n * @param confirmationToken - Confirmation token received in the transfer invite email.\n * @internal\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","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_registered-domains';\n\n/** Initiates a frictionless domain transfer to another Wix account identified by email. */\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 { protoPath: '/v1/domain-transfer/{domain}', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __initiateTransfer;\n}\n\n/** Approves a frictionless domain transfer using a confirmation token from the invite email. */\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: '/v1/domain-transfer/{domain}/approve',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __approveTransfer;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,wBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAA2B;AAI3B,SAAS,kFACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH,EAAE,WAAW,gCAAgC,MAAM,SAAS,KAAK;AAAA,MACnE;AAAA,MACA,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,gBAAgB,SAA6C;AAC3E,WAAS,kBAAkB,EAAE,KAAK,GAAQ;AACxC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AD2GO,IAAK,gBAAL,kBAAKC,mBAAL;AAEL,EAAAA,eAAA,SAAM;AAEN,EAAAA,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AsC;AAAA,IACpD;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,UAC0C,iBAAiB,OAAO;AAExE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,QAAQ,aAAa,OAAO;AAAA,QAChE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,aAAa;AAAA,IAC1B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAaA,eAAsBC,iBACpB,QACA,mBAKA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,UAC0C,gBAAgB,OAAO;AAEvE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,QAAQ,mBAAmB,OAAO;AAAA,QACtE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,mBAAmB;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["approveTransfer","initiateTransfer","LegalTypeEnum","EntityTypeEnum","PolicyReasonEnum","EligibilityTypeEnum","EligibilityIdTypeEnum","NexusCategory","RegistrantType","TldType","ContactVerificationStatus","TriggerType","WebhookIdentityType","initiateTransfer","sdkTransformError","approveTransfer"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v1-registered-domain-registered-domains.universal.ts","../../src/premium-domains-v1-registered-domain-registered-domains.http.ts"],"sourcesContent":["export * from './src/premium-domains-v1-registered-domain-registered-domains.universal.js';\n","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 } 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/** 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\n/** Registration options for .us domains. */\nexport interface UsOptions {\n /** Registrant's nexus category. Required for .us domains. */\n nexusCategory?: NexusCategoryWithLiterals;\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\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 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\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\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/** @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/**\n * Initiates a frictionless domain transfer to another Wix account identified by email.\n * @param domain - Domain name to transfer.\n * @param targetEmail - Email address of the Wix account to transfer the domain to.\n * @internal\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 frictionless domain transfer using a confirmation token from the invite email.\n * @param domain - Domain name to approve the transfer for.\n * @param confirmationToken - Confirmation token received in the transfer invite email.\n * @internal\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","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainsRegisteredDomainTransferBetweenAccountsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_registered-domains';\n\n/** Initiates a frictionless domain transfer to another Wix account identified by email. */\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 { protoPath: '/v1/domain-transfer/{domain}', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __initiateTransfer;\n}\n\n/** Approves a frictionless domain transfer using a confirmation token from the invite email. */\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: '/v1/domain-transfer/{domain}/approve',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __approveTransfer;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,wBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAA2B;AAI3B,SAAS,kFACP,MACA;AACA,QAAM,mBAAm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AO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,QAAQ,aAAa,OAAO;AAAA,QAChE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,aAAa;AAAA,IAC1B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAaA,eAAsBC,iBACpB,QACA,mBAKA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,UAC0C,gBAAgB,OAAO;AAEvE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,QAAQ,mBAAmB,OAAO;AAAA,QACtE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,mBAAmB;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["approveTransfer","initiateTransfer","LegalTypeEnum","EntityTypeEnum","PolicyReasonEnum","EligibilityTypeEnum","EligibilityIdTypeEnum","NexusCategory","IdType","RegistrantType","TldType","ContactVerificationStatus","TriggerType","WebhookIdentityType","initiateTransfer","sdkTransformError","approveTransfer"]}