hostinger-api-sdk 1.23.0 → 1.25.0

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.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.24.0
7
+ * API Version: 1.26.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -19,14 +19,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = void 0;
23
- exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = void 0;
24
- exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = void 0;
25
- exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = void 0;
26
- exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = void 0;
27
- exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = void 0;
28
- exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = void 0;
29
- exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = void 0;
22
+ exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = void 0;
23
+ exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = void 0;
24
+ exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = void 0;
25
+ exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = void 0;
26
+ exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = void 0;
27
+ exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = void 0;
28
+ exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = void 0;
29
+ exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = void 0;
30
30
  const axios_1 = require("axios");
31
31
  // Some imports not used depending on template conditions
32
32
  // @ts-ignore
@@ -157,6 +157,22 @@ exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = {
157
157
  _301: '301',
158
158
  _302: '302'
159
159
  };
160
+ exports.DomainsV1IRTPVerificationResourceStatusEnum = {
161
+ Pending: 'pending',
162
+ Completed: 'completed',
163
+ Canceled: 'canceled'
164
+ };
165
+ exports.DomainsV1MoveMoveResourceStatusEnum = {
166
+ Initiated: 'initiated',
167
+ Activating: 'activating',
168
+ Completed: 'completed'
169
+ };
170
+ exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
171
+ Owner: 'owner',
172
+ Admin: 'admin',
173
+ Billing: 'billing',
174
+ Tech: 'tech'
175
+ };
160
176
  exports.DomainsV1WHOISProfileResourceEntityTypeEnum = {
161
177
  Individual: 'individual',
162
178
  Organization: 'organization'
@@ -4784,22 +4800,25 @@ class DomainsForwardingApi extends base_1.BaseAPI {
4784
4800
  }
4785
4801
  exports.DomainsForwardingApi = DomainsForwardingApi;
4786
4802
  /**
4787
- * DomainsPortfolioApi - axios parameter creator
4803
+ * DomainsMoveApi - axios parameter creator
4788
4804
  * @export
4789
4805
  */
4790
- const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4806
+ const DomainsMoveApiAxiosParamCreator = function (configuration) {
4791
4807
  return {
4792
4808
  /**
4793
- * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
4794
- * @summary Disable domain lock
4809
+ * Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
4810
+ * @summary Accept incoming domain move
4795
4811
  * @param {string} domain Domain name
4812
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
4796
4813
  * @param {*} [options] Override http request option.
4797
4814
  * @throws {RequiredError}
4798
4815
  */
4799
- disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4816
+ acceptIncomingDomainMoveV1: (domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveIncomingUpdateRequest, options = {}) {
4800
4817
  // verify required parameter 'domain' is not null or undefined
4801
- (0, common_1.assertParamExists)('disableDomainLockV1', 'domain', domain);
4802
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
4818
+ (0, common_1.assertParamExists)('acceptIncomingDomainMoveV1', 'domain', domain);
4819
+ // verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
4820
+ (0, common_1.assertParamExists)('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest);
4821
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
4803
4822
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4804
4823
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4805
4824
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4807,31 +4826,33 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4807
4826
  if (configuration) {
4808
4827
  baseOptions = configuration.baseOptions;
4809
4828
  }
4810
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4829
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4811
4830
  const localVarHeaderParameter = {};
4812
4831
  const localVarQueryParameter = {};
4813
4832
  // authentication apiToken required
4814
4833
  // http bearer authentication required
4815
4834
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4835
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4816
4836
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4817
4837
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4818
4838
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4839
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration);
4819
4840
  return {
4820
4841
  url: (0, common_1.toPathString)(localVarUrlObj),
4821
4842
  options: localVarRequestOptions,
4822
4843
  };
4823
4844
  }),
4824
4845
  /**
4825
- * Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
4826
- * @summary Disable privacy protection
4846
+ * Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
4847
+ * @summary Cancel outgoing domain move
4827
4848
  * @param {string} domain Domain name
4828
4849
  * @param {*} [options] Override http request option.
4829
4850
  * @throws {RequiredError}
4830
4851
  */
4831
- disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4852
+ cancelOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4832
4853
  // verify required parameter 'domain' is not null or undefined
4833
- (0, common_1.assertParamExists)('disablePrivacyProtectionV1', 'domain', domain);
4834
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
4854
+ (0, common_1.assertParamExists)('cancelOutgoingDomainMoveV1', 'domain', domain);
4855
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
4835
4856
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4836
4857
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4837
4858
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4854,24 +4875,20 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4854
4875
  };
4855
4876
  }),
4856
4877
  /**
4857
- * Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
4858
- * @summary Enable domain lock
4859
- * @param {string} domain Domain name
4878
+ * Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
4879
+ * @summary Get incoming domain move list
4860
4880
  * @param {*} [options] Override http request option.
4861
4881
  * @throws {RequiredError}
4862
4882
  */
4863
- enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4864
- // verify required parameter 'domain' is not null or undefined
4865
- (0, common_1.assertParamExists)('enableDomainLockV1', 'domain', domain);
4866
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
4867
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4883
+ getIncomingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4884
+ const localVarPath = `/api/domains/v1/move/incoming`;
4868
4885
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4869
4886
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4870
4887
  let baseOptions;
4871
4888
  if (configuration) {
4872
4889
  baseOptions = configuration.baseOptions;
4873
4890
  }
4874
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4891
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4875
4892
  const localVarHeaderParameter = {};
4876
4893
  const localVarQueryParameter = {};
4877
4894
  // authentication apiToken required
@@ -4886,16 +4903,17 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4886
4903
  };
4887
4904
  }),
4888
4905
  /**
4889
- * Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
4890
- * @summary Enable privacy protection
4906
+ * Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
4907
+ * @summary Get incoming domain move
4891
4908
  * @param {string} domain Domain name
4909
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
4892
4910
  * @param {*} [options] Override http request option.
4893
4911
  * @throws {RequiredError}
4894
4912
  */
4895
- enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4913
+ getIncomingDomainMoveV1: (domain_1, forceSync_1, ...args_1) => __awaiter(this, [domain_1, forceSync_1, ...args_1], void 0, function* (domain, forceSync, options = {}) {
4896
4914
  // verify required parameter 'domain' is not null or undefined
4897
- (0, common_1.assertParamExists)('enablePrivacyProtectionV1', 'domain', domain);
4898
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
4915
+ (0, common_1.assertParamExists)('getIncomingDomainMoveV1', 'domain', domain);
4916
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
4899
4917
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4900
4918
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4901
4919
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4903,12 +4921,15 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4903
4921
  if (configuration) {
4904
4922
  baseOptions = configuration.baseOptions;
4905
4923
  }
4906
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4924
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4907
4925
  const localVarHeaderParameter = {};
4908
4926
  const localVarQueryParameter = {};
4909
4927
  // authentication apiToken required
4910
4928
  // http bearer authentication required
4911
4929
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4930
+ if (forceSync !== undefined) {
4931
+ localVarQueryParameter['force_sync'] = forceSync;
4932
+ }
4912
4933
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4913
4934
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4914
4935
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4918,17 +4939,13 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4918
4939
  };
4919
4940
  }),
4920
4941
  /**
4921
- * Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
4922
- * @summary Get domain authorization code
4923
- * @param {string} domain Domain name
4942
+ * Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
4943
+ * @summary Get outgoing domain move list
4924
4944
  * @param {*} [options] Override http request option.
4925
4945
  * @throws {RequiredError}
4926
4946
  */
4927
- getDomainAuthorizationCodeV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4928
- // verify required parameter 'domain' is not null or undefined
4929
- (0, common_1.assertParamExists)('getDomainAuthorizationCodeV1', 'domain', domain);
4930
- const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
4931
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4947
+ getOutgoingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4948
+ const localVarPath = `/api/domains/v1/move/outgoing`;
4932
4949
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4933
4950
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4934
4951
  let baseOptions;
@@ -4950,16 +4967,16 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4950
4967
  };
4951
4968
  }),
4952
4969
  /**
4953
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
4954
- * @summary Get domain details
4970
+ * Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
4971
+ * @summary Get outgoing domain move
4955
4972
  * @param {string} domain Domain name
4956
4973
  * @param {*} [options] Override http request option.
4957
4974
  * @throws {RequiredError}
4958
4975
  */
4959
- getDomainDetailsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4976
+ getOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4960
4977
  // verify required parameter 'domain' is not null or undefined
4961
- (0, common_1.assertParamExists)('getDomainDetailsV1', 'domain', domain);
4962
- const localVarPath = `/api/domains/v1/portfolio/{domain}`
4978
+ (0, common_1.assertParamExists)('getOutgoingDomainMoveV1', 'domain', domain);
4979
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
4963
4980
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4964
4981
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4965
4982
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4982,44 +4999,16 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4982
4999
  };
4983
5000
  }),
4984
5001
  /**
4985
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
4986
- * @summary Get domain list
4987
- * @param {*} [options] Override http request option.
4988
- * @throws {RequiredError}
4989
- */
4990
- getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4991
- const localVarPath = `/api/domains/v1/portfolio`;
4992
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4993
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4994
- let baseOptions;
4995
- if (configuration) {
4996
- baseOptions = configuration.baseOptions;
4997
- }
4998
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4999
- const localVarHeaderParameter = {};
5000
- const localVarQueryParameter = {};
5001
- // authentication apiToken required
5002
- // http bearer authentication required
5003
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5004
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5005
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5006
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5007
- return {
5008
- url: (0, common_1.toPathString)(localVarUrlObj),
5009
- options: localVarRequestOptions,
5010
- };
5011
- }),
5012
- /**
5013
- * Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
5014
- * @summary Get domain renewal information
5002
+ * Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
5003
+ * @summary Reject incoming domain move
5015
5004
  * @param {string} domain Domain name
5016
5005
  * @param {*} [options] Override http request option.
5017
5006
  * @throws {RequiredError}
5018
5007
  */
5019
- getDomainRenewalInformationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5008
+ rejectIncomingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5020
5009
  // verify required parameter 'domain' is not null or undefined
5021
- (0, common_1.assertParamExists)('getDomainRenewalInformationV1', 'domain', domain);
5022
- const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
5010
+ (0, common_1.assertParamExists)('rejectIncomingDomainMoveV1', 'domain', domain);
5011
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
5023
5012
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5024
5013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5025
5014
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5027,67 +5016,34 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5027
5016
  if (configuration) {
5028
5017
  baseOptions = configuration.baseOptions;
5029
5018
  }
5030
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5031
- const localVarHeaderParameter = {};
5032
- const localVarQueryParameter = {};
5033
- // authentication apiToken required
5034
- // http bearer authentication required
5035
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5036
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5037
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5038
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5039
- return {
5040
- url: (0, common_1.toPathString)(localVarUrlObj),
5041
- options: localVarRequestOptions,
5042
- };
5043
- }),
5044
- /**
5045
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
5046
- * @summary Purchase new domain
5047
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5048
- * @param {*} [options] Override http request option.
5049
- * @throws {RequiredError}
5050
- */
5051
- purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
5052
- // verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
5053
- (0, common_1.assertParamExists)('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
5054
- const localVarPath = `/api/domains/v1/portfolio`;
5055
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5056
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5057
- let baseOptions;
5058
- if (configuration) {
5059
- baseOptions = configuration.baseOptions;
5060
- }
5061
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5019
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5062
5020
  const localVarHeaderParameter = {};
5063
5021
  const localVarQueryParameter = {};
5064
5022
  // authentication apiToken required
5065
5023
  // http bearer authentication required
5066
5024
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5067
- localVarHeaderParameter['Content-Type'] = 'application/json';
5068
5025
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5069
5026
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5070
5027
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5071
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
5072
5028
  return {
5073
5029
  url: (0, common_1.toPathString)(localVarUrlObj),
5074
5030
  options: localVarRequestOptions,
5075
5031
  };
5076
5032
  }),
5077
5033
  /**
5078
- * Set nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. Use this endpoint to configure custom DNS hosting for domains.
5079
- * @summary Update domain nameservers
5034
+ * Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
5035
+ * @summary Start outgoing domain move
5080
5036
  * @param {string} domain Domain name
5081
- * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5037
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5082
5038
  * @param {*} [options] Override http request option.
5083
5039
  * @throws {RequiredError}
5084
5040
  */
5085
- updateDomainNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
5041
+ startOutgoingDomainMoveV1: (domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveOutgoingStoreRequest, options = {}) {
5086
5042
  // verify required parameter 'domain' is not null or undefined
5087
- (0, common_1.assertParamExists)('updateDomainNameserversV1', 'domain', domain);
5088
- // verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
5089
- (0, common_1.assertParamExists)('updateDomainNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
5090
- const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
5043
+ (0, common_1.assertParamExists)('startOutgoingDomainMoveV1', 'domain', domain);
5044
+ // verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
5045
+ (0, common_1.assertParamExists)('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest);
5046
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
5091
5047
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5092
5048
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5093
5049
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5095,7 +5051,7 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5095
5051
  if (configuration) {
5096
5052
  baseOptions = configuration.baseOptions;
5097
5053
  }
5098
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5099
5055
  const localVarHeaderParameter = {};
5100
5056
  const localVarQueryParameter = {};
5101
5057
  // authentication apiToken required
@@ -5105,7 +5061,7 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5105
5061
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5106
5062
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5107
5063
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5108
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
5064
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration);
5109
5065
  return {
5110
5066
  url: (0, common_1.toPathString)(localVarUrlObj),
5111
5067
  options: localVarRequestOptions,
@@ -5113,262 +5069,913 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5113
5069
  }),
5114
5070
  };
5115
5071
  };
5116
- exports.DomainsPortfolioApiAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator;
5072
+ exports.DomainsMoveApiAxiosParamCreator = DomainsMoveApiAxiosParamCreator;
5117
5073
  /**
5118
- * DomainsPortfolioApi - functional programming interface
5074
+ * DomainsMoveApi - functional programming interface
5119
5075
  * @export
5120
5076
  */
5121
- const DomainsPortfolioApiFp = function (configuration) {
5122
- const localVarAxiosParamCreator = (0, exports.DomainsPortfolioApiAxiosParamCreator)(configuration);
5077
+ const DomainsMoveApiFp = function (configuration) {
5078
+ const localVarAxiosParamCreator = (0, exports.DomainsMoveApiAxiosParamCreator)(configuration);
5123
5079
  return {
5124
5080
  /**
5125
- * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5126
- * @summary Disable domain lock
5081
+ * Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
5082
+ * @summary Accept incoming domain move
5127
5083
  * @param {string} domain Domain name
5084
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
5128
5085
  * @param {*} [options] Override http request option.
5129
5086
  * @throws {RequiredError}
5130
5087
  */
5131
- disableDomainLockV1(domain, options) {
5088
+ acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
5132
5089
  return __awaiter(this, void 0, void 0, function* () {
5133
5090
  var _a, _b;
5134
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
5135
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5091
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
5092
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5136
5093
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5137
5094
  });
5138
5095
  },
5139
5096
  /**
5140
- * Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
5141
- * @summary Disable privacy protection
5097
+ * Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
5098
+ * @summary Cancel outgoing domain move
5142
5099
  * @param {string} domain Domain name
5143
5100
  * @param {*} [options] Override http request option.
5144
5101
  * @throws {RequiredError}
5145
5102
  */
5146
- disablePrivacyProtectionV1(domain, options) {
5103
+ cancelOutgoingDomainMoveV1(domain, options) {
5147
5104
  return __awaiter(this, void 0, void 0, function* () {
5148
5105
  var _a, _b;
5149
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
5150
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5106
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
5107
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5151
5108
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5152
5109
  });
5153
5110
  },
5154
5111
  /**
5155
- * Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
5156
- * @summary Enable domain lock
5157
- * @param {string} domain Domain name
5112
+ * Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
5113
+ * @summary Get incoming domain move list
5158
5114
  * @param {*} [options] Override http request option.
5159
5115
  * @throws {RequiredError}
5160
5116
  */
5161
- enableDomainLockV1(domain, options) {
5117
+ getIncomingDomainMoveListV1(options) {
5162
5118
  return __awaiter(this, void 0, void 0, function* () {
5163
5119
  var _a, _b;
5164
- const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
5165
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
5121
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5166
5122
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5167
5123
  });
5168
5124
  },
5169
5125
  /**
5170
- * Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
5171
- * @summary Enable privacy protection
5126
+ * Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
5127
+ * @summary Get incoming domain move
5172
5128
  * @param {string} domain Domain name
5129
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
5173
5130
  * @param {*} [options] Override http request option.
5174
5131
  * @throws {RequiredError}
5175
5132
  */
5176
- enablePrivacyProtectionV1(domain, options) {
5133
+ getIncomingDomainMoveV1(domain, forceSync, options) {
5177
5134
  return __awaiter(this, void 0, void 0, function* () {
5178
5135
  var _a, _b;
5179
- const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
5180
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
5137
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5181
5138
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5182
5139
  });
5183
5140
  },
5184
5141
  /**
5185
- * Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
5186
- * @summary Get domain authorization code
5187
- * @param {string} domain Domain name
5142
+ * Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
5143
+ * @summary Get outgoing domain move list
5188
5144
  * @param {*} [options] Override http request option.
5189
5145
  * @throws {RequiredError}
5190
5146
  */
5191
- getDomainAuthorizationCodeV1(domain, options) {
5147
+ getOutgoingDomainMoveListV1(options) {
5192
5148
  return __awaiter(this, void 0, void 0, function* () {
5193
5149
  var _a, _b;
5194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainAuthorizationCodeV1(domain, options);
5195
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainAuthorizationCodeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
5151
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5196
5152
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5197
5153
  });
5198
5154
  },
5199
5155
  /**
5200
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5201
- * @summary Get domain details
5156
+ * Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
5157
+ * @summary Get outgoing domain move
5202
5158
  * @param {string} domain Domain name
5203
5159
  * @param {*} [options] Override http request option.
5204
5160
  * @throws {RequiredError}
5205
5161
  */
5206
- getDomainDetailsV1(domain, options) {
5207
- return __awaiter(this, void 0, void 0, function* () {
5208
- var _a, _b;
5209
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainDetailsV1(domain, options);
5210
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5211
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5212
- });
5213
- },
5214
- /**
5215
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5216
- * @summary Get domain list
5217
- * @param {*} [options] Override http request option.
5218
- * @throws {RequiredError}
5219
- */
5220
- getDomainListV1(options) {
5162
+ getOutgoingDomainMoveV1(domain, options) {
5221
5163
  return __awaiter(this, void 0, void 0, function* () {
5222
5164
  var _a, _b;
5223
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
5224
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5165
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
5166
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5225
5167
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5226
5168
  });
5227
5169
  },
5228
5170
  /**
5229
- * Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
5230
- * @summary Get domain renewal information
5171
+ * Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
5172
+ * @summary Reject incoming domain move
5231
5173
  * @param {string} domain Domain name
5232
5174
  * @param {*} [options] Override http request option.
5233
5175
  * @throws {RequiredError}
5234
5176
  */
5235
- getDomainRenewalInformationV1(domain, options) {
5236
- return __awaiter(this, void 0, void 0, function* () {
5237
- var _a, _b;
5238
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainRenewalInformationV1(domain, options);
5239
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainRenewalInformationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5240
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5241
- });
5242
- },
5243
- /**
5244
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
5245
- * @summary Purchase new domain
5246
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5247
- * @param {*} [options] Override http request option.
5248
- * @throws {RequiredError}
5249
- */
5250
- purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5177
+ rejectIncomingDomainMoveV1(domain, options) {
5251
5178
  return __awaiter(this, void 0, void 0, function* () {
5252
5179
  var _a, _b;
5253
- const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
5254
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5180
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
5181
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5255
5182
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5256
5183
  });
5257
5184
  },
5258
5185
  /**
5259
- * Set nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. Use this endpoint to configure custom DNS hosting for domains.
5260
- * @summary Update domain nameservers
5186
+ * Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
5187
+ * @summary Start outgoing domain move
5261
5188
  * @param {string} domain Domain name
5262
- * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5189
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5263
5190
  * @param {*} [options] Override http request option.
5264
5191
  * @throws {RequiredError}
5265
5192
  */
5266
- updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
5193
+ startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
5267
5194
  return __awaiter(this, void 0, void 0, function* () {
5268
5195
  var _a, _b;
5269
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
5270
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.updateDomainNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
5197
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5271
5198
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5272
5199
  });
5273
5200
  },
5274
5201
  };
5275
5202
  };
5276
- exports.DomainsPortfolioApiFp = DomainsPortfolioApiFp;
5203
+ exports.DomainsMoveApiFp = DomainsMoveApiFp;
5277
5204
  /**
5278
- * DomainsPortfolioApi - factory interface
5205
+ * DomainsMoveApi - factory interface
5279
5206
  * @export
5280
5207
  */
5281
- const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
5282
- const localVarFp = (0, exports.DomainsPortfolioApiFp)(configuration);
5208
+ const DomainsMoveApiFactory = function (configuration, basePath, axios) {
5209
+ const localVarFp = (0, exports.DomainsMoveApiFp)(configuration);
5283
5210
  return {
5284
5211
  /**
5285
- * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5286
- * @summary Disable domain lock
5212
+ * Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
5213
+ * @summary Accept incoming domain move
5287
5214
  * @param {string} domain Domain name
5215
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
5288
5216
  * @param {*} [options] Override http request option.
5289
5217
  * @throws {RequiredError}
5290
5218
  */
5291
- disableDomainLockV1(domain, options) {
5292
- return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5219
+ acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
5220
+ return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
5293
5221
  },
5294
5222
  /**
5295
- * Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
5296
- * @summary Disable privacy protection
5223
+ * Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
5224
+ * @summary Cancel outgoing domain move
5297
5225
  * @param {string} domain Domain name
5298
5226
  * @param {*} [options] Override http request option.
5299
5227
  * @throws {RequiredError}
5300
5228
  */
5301
- disablePrivacyProtectionV1(domain, options) {
5302
- return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5229
+ cancelOutgoingDomainMoveV1(domain, options) {
5230
+ return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
5303
5231
  },
5304
5232
  /**
5305
- * Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
5306
- * @summary Enable domain lock
5307
- * @param {string} domain Domain name
5233
+ * Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
5234
+ * @summary Get incoming domain move list
5308
5235
  * @param {*} [options] Override http request option.
5309
5236
  * @throws {RequiredError}
5310
5237
  */
5311
- enableDomainLockV1(domain, options) {
5312
- return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5238
+ getIncomingDomainMoveListV1(options) {
5239
+ return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
5313
5240
  },
5314
5241
  /**
5315
- * Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
5316
- * @summary Enable privacy protection
5242
+ * Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
5243
+ * @summary Get incoming domain move
5317
5244
  * @param {string} domain Domain name
5245
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
5318
5246
  * @param {*} [options] Override http request option.
5319
5247
  * @throws {RequiredError}
5320
5248
  */
5321
- enablePrivacyProtectionV1(domain, options) {
5322
- return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5249
+ getIncomingDomainMoveV1(domain, forceSync, options) {
5250
+ return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
5323
5251
  },
5324
5252
  /**
5325
- * Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
5326
- * @summary Get domain authorization code
5327
- * @param {string} domain Domain name
5253
+ * Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
5254
+ * @summary Get outgoing domain move list
5328
5255
  * @param {*} [options] Override http request option.
5329
5256
  * @throws {RequiredError}
5330
5257
  */
5331
- getDomainAuthorizationCodeV1(domain, options) {
5332
- return localVarFp.getDomainAuthorizationCodeV1(domain, options).then((request) => request(axios, basePath));
5258
+ getOutgoingDomainMoveListV1(options) {
5259
+ return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
5333
5260
  },
5334
5261
  /**
5335
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5336
- * @summary Get domain details
5262
+ * Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
5263
+ * @summary Get outgoing domain move
5337
5264
  * @param {string} domain Domain name
5338
5265
  * @param {*} [options] Override http request option.
5339
5266
  * @throws {RequiredError}
5340
5267
  */
5341
- getDomainDetailsV1(domain, options) {
5342
- return localVarFp.getDomainDetailsV1(domain, options).then((request) => request(axios, basePath));
5343
- },
5344
- /**
5345
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5346
- * @summary Get domain list
5347
- * @param {*} [options] Override http request option.
5348
- * @throws {RequiredError}
5349
- */
5350
- getDomainListV1(options) {
5351
- return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
5268
+ getOutgoingDomainMoveV1(domain, options) {
5269
+ return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
5352
5270
  },
5353
5271
  /**
5354
- * Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
5355
- * @summary Get domain renewal information
5272
+ * Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
5273
+ * @summary Reject incoming domain move
5356
5274
  * @param {string} domain Domain name
5357
5275
  * @param {*} [options] Override http request option.
5358
5276
  * @throws {RequiredError}
5359
5277
  */
5360
- getDomainRenewalInformationV1(domain, options) {
5361
- return localVarFp.getDomainRenewalInformationV1(domain, options).then((request) => request(axios, basePath));
5278
+ rejectIncomingDomainMoveV1(domain, options) {
5279
+ return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
5362
5280
  },
5363
5281
  /**
5364
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
5365
- * @summary Purchase new domain
5366
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5282
+ * Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
5283
+ * @summary Start outgoing domain move
5284
+ * @param {string} domain Domain name
5285
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5367
5286
  * @param {*} [options] Override http request option.
5368
5287
  * @throws {RequiredError}
5369
5288
  */
5370
- purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5371
- return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
5289
+ startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
5290
+ return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
5291
+ },
5292
+ };
5293
+ };
5294
+ exports.DomainsMoveApiFactory = DomainsMoveApiFactory;
5295
+ /**
5296
+ * DomainsMoveApi - object-oriented interface
5297
+ * @export
5298
+ * @class DomainsMoveApi
5299
+ * @extends {BaseAPI}
5300
+ */
5301
+ class DomainsMoveApi extends base_1.BaseAPI {
5302
+ /**
5303
+ * Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
5304
+ * @summary Accept incoming domain move
5305
+ * @param {string} domain Domain name
5306
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
5307
+ * @param {*} [options] Override http request option.
5308
+ * @throws {RequiredError}
5309
+ * @memberof DomainsMoveApi
5310
+ */
5311
+ acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
5312
+ return (0, exports.DomainsMoveApiFp)(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
5313
+ }
5314
+ /**
5315
+ * Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
5316
+ * @summary Cancel outgoing domain move
5317
+ * @param {string} domain Domain name
5318
+ * @param {*} [options] Override http request option.
5319
+ * @throws {RequiredError}
5320
+ * @memberof DomainsMoveApi
5321
+ */
5322
+ cancelOutgoingDomainMoveV1(domain, options) {
5323
+ return (0, exports.DomainsMoveApiFp)(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
5324
+ }
5325
+ /**
5326
+ * Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
5327
+ * @summary Get incoming domain move list
5328
+ * @param {*} [options] Override http request option.
5329
+ * @throws {RequiredError}
5330
+ * @memberof DomainsMoveApi
5331
+ */
5332
+ getIncomingDomainMoveListV1(options) {
5333
+ return (0, exports.DomainsMoveApiFp)(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
5334
+ }
5335
+ /**
5336
+ * Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
5337
+ * @summary Get incoming domain move
5338
+ * @param {string} domain Domain name
5339
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
5340
+ * @param {*} [options] Override http request option.
5341
+ * @throws {RequiredError}
5342
+ * @memberof DomainsMoveApi
5343
+ */
5344
+ getIncomingDomainMoveV1(domain, forceSync, options) {
5345
+ return (0, exports.DomainsMoveApiFp)(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
5346
+ }
5347
+ /**
5348
+ * Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
5349
+ * @summary Get outgoing domain move list
5350
+ * @param {*} [options] Override http request option.
5351
+ * @throws {RequiredError}
5352
+ * @memberof DomainsMoveApi
5353
+ */
5354
+ getOutgoingDomainMoveListV1(options) {
5355
+ return (0, exports.DomainsMoveApiFp)(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
5356
+ }
5357
+ /**
5358
+ * Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
5359
+ * @summary Get outgoing domain move
5360
+ * @param {string} domain Domain name
5361
+ * @param {*} [options] Override http request option.
5362
+ * @throws {RequiredError}
5363
+ * @memberof DomainsMoveApi
5364
+ */
5365
+ getOutgoingDomainMoveV1(domain, options) {
5366
+ return (0, exports.DomainsMoveApiFp)(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
5367
+ }
5368
+ /**
5369
+ * Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
5370
+ * @summary Reject incoming domain move
5371
+ * @param {string} domain Domain name
5372
+ * @param {*} [options] Override http request option.
5373
+ * @throws {RequiredError}
5374
+ * @memberof DomainsMoveApi
5375
+ */
5376
+ rejectIncomingDomainMoveV1(domain, options) {
5377
+ return (0, exports.DomainsMoveApiFp)(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
5378
+ }
5379
+ /**
5380
+ * Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
5381
+ * @summary Start outgoing domain move
5382
+ * @param {string} domain Domain name
5383
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5384
+ * @param {*} [options] Override http request option.
5385
+ * @throws {RequiredError}
5386
+ * @memberof DomainsMoveApi
5387
+ */
5388
+ startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
5389
+ return (0, exports.DomainsMoveApiFp)(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
5390
+ }
5391
+ }
5392
+ exports.DomainsMoveApi = DomainsMoveApi;
5393
+ /**
5394
+ * DomainsPortfolioApi - axios parameter creator
5395
+ * @export
5396
+ */
5397
+ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5398
+ return {
5399
+ /**
5400
+ * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5401
+ * @summary Disable domain lock
5402
+ * @param {string} domain Domain name
5403
+ * @param {*} [options] Override http request option.
5404
+ * @throws {RequiredError}
5405
+ */
5406
+ disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5407
+ // verify required parameter 'domain' is not null or undefined
5408
+ (0, common_1.assertParamExists)('disableDomainLockV1', 'domain', domain);
5409
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
5410
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5412
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5413
+ let baseOptions;
5414
+ if (configuration) {
5415
+ baseOptions = configuration.baseOptions;
5416
+ }
5417
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5418
+ const localVarHeaderParameter = {};
5419
+ const localVarQueryParameter = {};
5420
+ // authentication apiToken required
5421
+ // http bearer authentication required
5422
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5423
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5425
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5426
+ return {
5427
+ url: (0, common_1.toPathString)(localVarUrlObj),
5428
+ options: localVarRequestOptions,
5429
+ };
5430
+ }),
5431
+ /**
5432
+ * Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
5433
+ * @summary Disable privacy protection
5434
+ * @param {string} domain Domain name
5435
+ * @param {*} [options] Override http request option.
5436
+ * @throws {RequiredError}
5437
+ */
5438
+ disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5439
+ // verify required parameter 'domain' is not null or undefined
5440
+ (0, common_1.assertParamExists)('disablePrivacyProtectionV1', 'domain', domain);
5441
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
5442
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5443
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5444
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5445
+ let baseOptions;
5446
+ if (configuration) {
5447
+ baseOptions = configuration.baseOptions;
5448
+ }
5449
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5450
+ const localVarHeaderParameter = {};
5451
+ const localVarQueryParameter = {};
5452
+ // authentication apiToken required
5453
+ // http bearer authentication required
5454
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5455
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5456
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5457
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5458
+ return {
5459
+ url: (0, common_1.toPathString)(localVarUrlObj),
5460
+ options: localVarRequestOptions,
5461
+ };
5462
+ }),
5463
+ /**
5464
+ * Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
5465
+ * @summary Enable domain lock
5466
+ * @param {string} domain Domain name
5467
+ * @param {*} [options] Override http request option.
5468
+ * @throws {RequiredError}
5469
+ */
5470
+ enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5471
+ // verify required parameter 'domain' is not null or undefined
5472
+ (0, common_1.assertParamExists)('enableDomainLockV1', 'domain', domain);
5473
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
5474
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5476
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5477
+ let baseOptions;
5478
+ if (configuration) {
5479
+ baseOptions = configuration.baseOptions;
5480
+ }
5481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5482
+ const localVarHeaderParameter = {};
5483
+ const localVarQueryParameter = {};
5484
+ // authentication apiToken required
5485
+ // http bearer authentication required
5486
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5487
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5489
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5490
+ return {
5491
+ url: (0, common_1.toPathString)(localVarUrlObj),
5492
+ options: localVarRequestOptions,
5493
+ };
5494
+ }),
5495
+ /**
5496
+ * Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
5497
+ * @summary Enable privacy protection
5498
+ * @param {string} domain Domain name
5499
+ * @param {*} [options] Override http request option.
5500
+ * @throws {RequiredError}
5501
+ */
5502
+ enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5503
+ // verify required parameter 'domain' is not null or undefined
5504
+ (0, common_1.assertParamExists)('enablePrivacyProtectionV1', 'domain', domain);
5505
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
5506
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5508
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5509
+ let baseOptions;
5510
+ if (configuration) {
5511
+ baseOptions = configuration.baseOptions;
5512
+ }
5513
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5514
+ const localVarHeaderParameter = {};
5515
+ const localVarQueryParameter = {};
5516
+ // authentication apiToken required
5517
+ // http bearer authentication required
5518
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5519
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5521
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5522
+ return {
5523
+ url: (0, common_1.toPathString)(localVarUrlObj),
5524
+ options: localVarRequestOptions,
5525
+ };
5526
+ }),
5527
+ /**
5528
+ * Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
5529
+ * @summary Get domain authorization code
5530
+ * @param {string} domain Domain name
5531
+ * @param {*} [options] Override http request option.
5532
+ * @throws {RequiredError}
5533
+ */
5534
+ getDomainAuthorizationCodeV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5535
+ // verify required parameter 'domain' is not null or undefined
5536
+ (0, common_1.assertParamExists)('getDomainAuthorizationCodeV1', 'domain', domain);
5537
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
5538
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5540
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5541
+ let baseOptions;
5542
+ if (configuration) {
5543
+ baseOptions = configuration.baseOptions;
5544
+ }
5545
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5546
+ const localVarHeaderParameter = {};
5547
+ const localVarQueryParameter = {};
5548
+ // authentication apiToken required
5549
+ // http bearer authentication required
5550
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5551
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5552
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5553
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5554
+ return {
5555
+ url: (0, common_1.toPathString)(localVarUrlObj),
5556
+ options: localVarRequestOptions,
5557
+ };
5558
+ }),
5559
+ /**
5560
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5561
+ * @summary Get domain details
5562
+ * @param {string} domain Domain name
5563
+ * @param {*} [options] Override http request option.
5564
+ * @throws {RequiredError}
5565
+ */
5566
+ getDomainDetailsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5567
+ // verify required parameter 'domain' is not null or undefined
5568
+ (0, common_1.assertParamExists)('getDomainDetailsV1', 'domain', domain);
5569
+ const localVarPath = `/api/domains/v1/portfolio/{domain}`
5570
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5571
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5572
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5573
+ let baseOptions;
5574
+ if (configuration) {
5575
+ baseOptions = configuration.baseOptions;
5576
+ }
5577
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5578
+ const localVarHeaderParameter = {};
5579
+ const localVarQueryParameter = {};
5580
+ // authentication apiToken required
5581
+ // http bearer authentication required
5582
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5583
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5584
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5585
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5586
+ return {
5587
+ url: (0, common_1.toPathString)(localVarUrlObj),
5588
+ options: localVarRequestOptions,
5589
+ };
5590
+ }),
5591
+ /**
5592
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5593
+ * @summary Get domain list
5594
+ * @param {*} [options] Override http request option.
5595
+ * @throws {RequiredError}
5596
+ */
5597
+ getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5598
+ const localVarPath = `/api/domains/v1/portfolio`;
5599
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5600
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5601
+ let baseOptions;
5602
+ if (configuration) {
5603
+ baseOptions = configuration.baseOptions;
5604
+ }
5605
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5606
+ const localVarHeaderParameter = {};
5607
+ const localVarQueryParameter = {};
5608
+ // authentication apiToken required
5609
+ // http bearer authentication required
5610
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5611
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5613
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5614
+ return {
5615
+ url: (0, common_1.toPathString)(localVarUrlObj),
5616
+ options: localVarRequestOptions,
5617
+ };
5618
+ }),
5619
+ /**
5620
+ * Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
5621
+ * @summary Get domain renewal information
5622
+ * @param {string} domain Domain name
5623
+ * @param {*} [options] Override http request option.
5624
+ * @throws {RequiredError}
5625
+ */
5626
+ getDomainRenewalInformationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5627
+ // verify required parameter 'domain' is not null or undefined
5628
+ (0, common_1.assertParamExists)('getDomainRenewalInformationV1', 'domain', domain);
5629
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
5630
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5631
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5632
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5633
+ let baseOptions;
5634
+ if (configuration) {
5635
+ baseOptions = configuration.baseOptions;
5636
+ }
5637
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5638
+ const localVarHeaderParameter = {};
5639
+ const localVarQueryParameter = {};
5640
+ // authentication apiToken required
5641
+ // http bearer authentication required
5642
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5643
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5644
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5645
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5646
+ return {
5647
+ url: (0, common_1.toPathString)(localVarUrlObj),
5648
+ options: localVarRequestOptions,
5649
+ };
5650
+ }),
5651
+ /**
5652
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
5653
+ * @summary Purchase new domain
5654
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5655
+ * @param {*} [options] Override http request option.
5656
+ * @throws {RequiredError}
5657
+ */
5658
+ purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
5659
+ // verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
5660
+ (0, common_1.assertParamExists)('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
5661
+ const localVarPath = `/api/domains/v1/portfolio`;
5662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5663
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5664
+ let baseOptions;
5665
+ if (configuration) {
5666
+ baseOptions = configuration.baseOptions;
5667
+ }
5668
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5669
+ const localVarHeaderParameter = {};
5670
+ const localVarQueryParameter = {};
5671
+ // authentication apiToken required
5672
+ // http bearer authentication required
5673
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5674
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5675
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5676
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5677
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5678
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
5679
+ return {
5680
+ url: (0, common_1.toPathString)(localVarUrlObj),
5681
+ options: localVarRequestOptions,
5682
+ };
5683
+ }),
5684
+ /**
5685
+ * Set nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. Use this endpoint to configure custom DNS hosting for domains.
5686
+ * @summary Update domain nameservers
5687
+ * @param {string} domain Domain name
5688
+ * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5689
+ * @param {*} [options] Override http request option.
5690
+ * @throws {RequiredError}
5691
+ */
5692
+ updateDomainNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
5693
+ // verify required parameter 'domain' is not null or undefined
5694
+ (0, common_1.assertParamExists)('updateDomainNameserversV1', 'domain', domain);
5695
+ // verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
5696
+ (0, common_1.assertParamExists)('updateDomainNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
5697
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
5698
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5700
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5701
+ let baseOptions;
5702
+ if (configuration) {
5703
+ baseOptions = configuration.baseOptions;
5704
+ }
5705
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5706
+ const localVarHeaderParameter = {};
5707
+ const localVarQueryParameter = {};
5708
+ // authentication apiToken required
5709
+ // http bearer authentication required
5710
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5711
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5712
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5713
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5714
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5715
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
5716
+ return {
5717
+ url: (0, common_1.toPathString)(localVarUrlObj),
5718
+ options: localVarRequestOptions,
5719
+ };
5720
+ }),
5721
+ };
5722
+ };
5723
+ exports.DomainsPortfolioApiAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator;
5724
+ /**
5725
+ * DomainsPortfolioApi - functional programming interface
5726
+ * @export
5727
+ */
5728
+ const DomainsPortfolioApiFp = function (configuration) {
5729
+ const localVarAxiosParamCreator = (0, exports.DomainsPortfolioApiAxiosParamCreator)(configuration);
5730
+ return {
5731
+ /**
5732
+ * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5733
+ * @summary Disable domain lock
5734
+ * @param {string} domain Domain name
5735
+ * @param {*} [options] Override http request option.
5736
+ * @throws {RequiredError}
5737
+ */
5738
+ disableDomainLockV1(domain, options) {
5739
+ return __awaiter(this, void 0, void 0, function* () {
5740
+ var _a, _b;
5741
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
5742
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5743
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5744
+ });
5745
+ },
5746
+ /**
5747
+ * Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
5748
+ * @summary Disable privacy protection
5749
+ * @param {string} domain Domain name
5750
+ * @param {*} [options] Override http request option.
5751
+ * @throws {RequiredError}
5752
+ */
5753
+ disablePrivacyProtectionV1(domain, options) {
5754
+ return __awaiter(this, void 0, void 0, function* () {
5755
+ var _a, _b;
5756
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
5757
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5758
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5759
+ });
5760
+ },
5761
+ /**
5762
+ * Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
5763
+ * @summary Enable domain lock
5764
+ * @param {string} domain Domain name
5765
+ * @param {*} [options] Override http request option.
5766
+ * @throws {RequiredError}
5767
+ */
5768
+ enableDomainLockV1(domain, options) {
5769
+ return __awaiter(this, void 0, void 0, function* () {
5770
+ var _a, _b;
5771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
5772
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5773
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5774
+ });
5775
+ },
5776
+ /**
5777
+ * Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
5778
+ * @summary Enable privacy protection
5779
+ * @param {string} domain Domain name
5780
+ * @param {*} [options] Override http request option.
5781
+ * @throws {RequiredError}
5782
+ */
5783
+ enablePrivacyProtectionV1(domain, options) {
5784
+ return __awaiter(this, void 0, void 0, function* () {
5785
+ var _a, _b;
5786
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
5787
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5788
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5789
+ });
5790
+ },
5791
+ /**
5792
+ * Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
5793
+ * @summary Get domain authorization code
5794
+ * @param {string} domain Domain name
5795
+ * @param {*} [options] Override http request option.
5796
+ * @throws {RequiredError}
5797
+ */
5798
+ getDomainAuthorizationCodeV1(domain, options) {
5799
+ return __awaiter(this, void 0, void 0, function* () {
5800
+ var _a, _b;
5801
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainAuthorizationCodeV1(domain, options);
5802
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainAuthorizationCodeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5803
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5804
+ });
5805
+ },
5806
+ /**
5807
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5808
+ * @summary Get domain details
5809
+ * @param {string} domain Domain name
5810
+ * @param {*} [options] Override http request option.
5811
+ * @throws {RequiredError}
5812
+ */
5813
+ getDomainDetailsV1(domain, options) {
5814
+ return __awaiter(this, void 0, void 0, function* () {
5815
+ var _a, _b;
5816
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainDetailsV1(domain, options);
5817
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5818
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5819
+ });
5820
+ },
5821
+ /**
5822
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5823
+ * @summary Get domain list
5824
+ * @param {*} [options] Override http request option.
5825
+ * @throws {RequiredError}
5826
+ */
5827
+ getDomainListV1(options) {
5828
+ return __awaiter(this, void 0, void 0, function* () {
5829
+ var _a, _b;
5830
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
5831
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5832
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5833
+ });
5834
+ },
5835
+ /**
5836
+ * Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
5837
+ * @summary Get domain renewal information
5838
+ * @param {string} domain Domain name
5839
+ * @param {*} [options] Override http request option.
5840
+ * @throws {RequiredError}
5841
+ */
5842
+ getDomainRenewalInformationV1(domain, options) {
5843
+ return __awaiter(this, void 0, void 0, function* () {
5844
+ var _a, _b;
5845
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainRenewalInformationV1(domain, options);
5846
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.getDomainRenewalInformationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5847
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5848
+ });
5849
+ },
5850
+ /**
5851
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
5852
+ * @summary Purchase new domain
5853
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5854
+ * @param {*} [options] Override http request option.
5855
+ * @throws {RequiredError}
5856
+ */
5857
+ purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5858
+ return __awaiter(this, void 0, void 0, function* () {
5859
+ var _a, _b;
5860
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
5861
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5862
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5863
+ });
5864
+ },
5865
+ /**
5866
+ * Set nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. Use this endpoint to configure custom DNS hosting for domains.
5867
+ * @summary Update domain nameservers
5868
+ * @param {string} domain Domain name
5869
+ * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5870
+ * @param {*} [options] Override http request option.
5871
+ * @throws {RequiredError}
5872
+ */
5873
+ updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
5874
+ return __awaiter(this, void 0, void 0, function* () {
5875
+ var _a, _b;
5876
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
5877
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.updateDomainNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5878
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5879
+ });
5880
+ },
5881
+ };
5882
+ };
5883
+ exports.DomainsPortfolioApiFp = DomainsPortfolioApiFp;
5884
+ /**
5885
+ * DomainsPortfolioApi - factory interface
5886
+ * @export
5887
+ */
5888
+ const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
5889
+ const localVarFp = (0, exports.DomainsPortfolioApiFp)(configuration);
5890
+ return {
5891
+ /**
5892
+ * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5893
+ * @summary Disable domain lock
5894
+ * @param {string} domain Domain name
5895
+ * @param {*} [options] Override http request option.
5896
+ * @throws {RequiredError}
5897
+ */
5898
+ disableDomainLockV1(domain, options) {
5899
+ return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5900
+ },
5901
+ /**
5902
+ * Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
5903
+ * @summary Disable privacy protection
5904
+ * @param {string} domain Domain name
5905
+ * @param {*} [options] Override http request option.
5906
+ * @throws {RequiredError}
5907
+ */
5908
+ disablePrivacyProtectionV1(domain, options) {
5909
+ return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5910
+ },
5911
+ /**
5912
+ * Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
5913
+ * @summary Enable domain lock
5914
+ * @param {string} domain Domain name
5915
+ * @param {*} [options] Override http request option.
5916
+ * @throws {RequiredError}
5917
+ */
5918
+ enableDomainLockV1(domain, options) {
5919
+ return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5920
+ },
5921
+ /**
5922
+ * Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
5923
+ * @summary Enable privacy protection
5924
+ * @param {string} domain Domain name
5925
+ * @param {*} [options] Override http request option.
5926
+ * @throws {RequiredError}
5927
+ */
5928
+ enablePrivacyProtectionV1(domain, options) {
5929
+ return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5930
+ },
5931
+ /**
5932
+ * Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
5933
+ * @summary Get domain authorization code
5934
+ * @param {string} domain Domain name
5935
+ * @param {*} [options] Override http request option.
5936
+ * @throws {RequiredError}
5937
+ */
5938
+ getDomainAuthorizationCodeV1(domain, options) {
5939
+ return localVarFp.getDomainAuthorizationCodeV1(domain, options).then((request) => request(axios, basePath));
5940
+ },
5941
+ /**
5942
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5943
+ * @summary Get domain details
5944
+ * @param {string} domain Domain name
5945
+ * @param {*} [options] Override http request option.
5946
+ * @throws {RequiredError}
5947
+ */
5948
+ getDomainDetailsV1(domain, options) {
5949
+ return localVarFp.getDomainDetailsV1(domain, options).then((request) => request(axios, basePath));
5950
+ },
5951
+ /**
5952
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5953
+ * @summary Get domain list
5954
+ * @param {*} [options] Override http request option.
5955
+ * @throws {RequiredError}
5956
+ */
5957
+ getDomainListV1(options) {
5958
+ return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
5959
+ },
5960
+ /**
5961
+ * Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
5962
+ * @summary Get domain renewal information
5963
+ * @param {string} domain Domain name
5964
+ * @param {*} [options] Override http request option.
5965
+ * @throws {RequiredError}
5966
+ */
5967
+ getDomainRenewalInformationV1(domain, options) {
5968
+ return localVarFp.getDomainRenewalInformationV1(domain, options).then((request) => request(axios, basePath));
5969
+ },
5970
+ /**
5971
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
5972
+ * @summary Purchase new domain
5973
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5974
+ * @param {*} [options] Override http request option.
5975
+ * @throws {RequiredError}
5976
+ */
5977
+ purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5978
+ return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
5372
5979
  },
5373
5980
  /**
5374
5981
  * Set nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. Use this endpoint to configure custom DNS hosting for domains.
@@ -5676,6 +6283,71 @@ exports.DomainsTransferApi = DomainsTransferApi;
5676
6283
  */
5677
6284
  const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5678
6285
  return {
6286
+ /**
6287
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
6288
+ * @summary Cancel pending IRTP verification
6289
+ * @param {string} domain Domain name
6290
+ * @param {*} [options] Override http request option.
6291
+ * @throws {RequiredError}
6292
+ */
6293
+ cancelPendingIRTPVerificationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
6294
+ // verify required parameter 'domain' is not null or undefined
6295
+ (0, common_1.assertParamExists)('cancelPendingIRTPVerificationV1', 'domain', domain);
6296
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
6297
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6298
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6299
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6300
+ let baseOptions;
6301
+ if (configuration) {
6302
+ baseOptions = configuration.baseOptions;
6303
+ }
6304
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
6305
+ const localVarHeaderParameter = {};
6306
+ const localVarQueryParameter = {};
6307
+ // authentication apiToken required
6308
+ // http bearer authentication required
6309
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6312
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6313
+ return {
6314
+ url: (0, common_1.toPathString)(localVarUrlObj),
6315
+ options: localVarRequestOptions,
6316
+ };
6317
+ }),
6318
+ /**
6319
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
6320
+ * @summary Change WHOIS profile for domain
6321
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6322
+ * @param {*} [options] Override http request option.
6323
+ * @throws {RequiredError}
6324
+ */
6325
+ changeWHOISProfileForDomainV1: (domainsV1WHOISChangeUpdateRequest_1, ...args_1) => __awaiter(this, [domainsV1WHOISChangeUpdateRequest_1, ...args_1], void 0, function* (domainsV1WHOISChangeUpdateRequest, options = {}) {
6326
+ // verify required parameter 'domainsV1WHOISChangeUpdateRequest' is not null or undefined
6327
+ (0, common_1.assertParamExists)('changeWHOISProfileForDomainV1', 'domainsV1WHOISChangeUpdateRequest', domainsV1WHOISChangeUpdateRequest);
6328
+ const localVarPath = `/api/domains/v1/whois/change`;
6329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6330
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6331
+ let baseOptions;
6332
+ if (configuration) {
6333
+ baseOptions = configuration.baseOptions;
6334
+ }
6335
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6336
+ const localVarHeaderParameter = {};
6337
+ const localVarQueryParameter = {};
6338
+ // authentication apiToken required
6339
+ // http bearer authentication required
6340
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6341
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6342
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6343
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6344
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6345
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1WHOISChangeUpdateRequest, localVarRequestOptions, configuration);
6346
+ return {
6347
+ url: (0, common_1.toPathString)(localVarUrlObj),
6348
+ options: localVarRequestOptions,
6349
+ };
6350
+ }),
5679
6351
  /**
5680
6352
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5681
6353
  * @summary Create WHOIS profile
@@ -5741,6 +6413,38 @@ const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5741
6413
  options: localVarRequestOptions,
5742
6414
  };
5743
6415
  }),
6416
+ /**
6417
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
6418
+ * @summary Get pending IRTP verification
6419
+ * @param {string} domain Domain name
6420
+ * @param {*} [options] Override http request option.
6421
+ * @throws {RequiredError}
6422
+ */
6423
+ getPendingIRTPVerificationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
6424
+ // verify required parameter 'domain' is not null or undefined
6425
+ (0, common_1.assertParamExists)('getPendingIRTPVerificationV1', 'domain', domain);
6426
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
6427
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6428
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6429
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6430
+ let baseOptions;
6431
+ if (configuration) {
6432
+ baseOptions = configuration.baseOptions;
6433
+ }
6434
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6435
+ const localVarHeaderParameter = {};
6436
+ const localVarQueryParameter = {};
6437
+ // authentication apiToken required
6438
+ // http bearer authentication required
6439
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6440
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6442
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6443
+ return {
6444
+ url: (0, common_1.toPathString)(localVarUrlObj),
6445
+ options: localVarRequestOptions,
6446
+ };
6447
+ }),
5744
6448
  /**
5745
6449
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5746
6450
  * @summary Get WHOIS profile list
@@ -5855,7 +6559,7 @@ const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5855
6559
  if (configuration) {
5856
6560
  baseOptions = configuration.baseOptions;
5857
6561
  }
5858
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6562
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5859
6563
  const localVarHeaderParameter = {};
5860
6564
  const localVarQueryParameter = {};
5861
6565
  // authentication apiToken required
@@ -5911,6 +6615,36 @@ exports.DomainsWHOISApiAxiosParamCreator = DomainsWHOISApiAxiosParamCreator;
5911
6615
  const DomainsWHOISApiFp = function (configuration) {
5912
6616
  const localVarAxiosParamCreator = (0, exports.DomainsWHOISApiAxiosParamCreator)(configuration);
5913
6617
  return {
6618
+ /**
6619
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
6620
+ * @summary Cancel pending IRTP verification
6621
+ * @param {string} domain Domain name
6622
+ * @param {*} [options] Override http request option.
6623
+ * @throws {RequiredError}
6624
+ */
6625
+ cancelPendingIRTPVerificationV1(domain, options) {
6626
+ return __awaiter(this, void 0, void 0, function* () {
6627
+ var _a, _b;
6628
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPendingIRTPVerificationV1(domain, options);
6629
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.cancelPendingIRTPVerificationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6630
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6631
+ });
6632
+ },
6633
+ /**
6634
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
6635
+ * @summary Change WHOIS profile for domain
6636
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6637
+ * @param {*} [options] Override http request option.
6638
+ * @throws {RequiredError}
6639
+ */
6640
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6641
+ return __awaiter(this, void 0, void 0, function* () {
6642
+ var _a, _b;
6643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options);
6644
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.changeWHOISProfileForDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6645
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6646
+ });
6647
+ },
5914
6648
  /**
5915
6649
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5916
6650
  * @summary Create WHOIS profile
@@ -5941,6 +6675,21 @@ const DomainsWHOISApiFp = function (configuration) {
5941
6675
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5942
6676
  });
5943
6677
  },
6678
+ /**
6679
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
6680
+ * @summary Get pending IRTP verification
6681
+ * @param {string} domain Domain name
6682
+ * @param {*} [options] Override http request option.
6683
+ * @throws {RequiredError}
6684
+ */
6685
+ getPendingIRTPVerificationV1(domain, options) {
6686
+ return __awaiter(this, void 0, void 0, function* () {
6687
+ var _a, _b;
6688
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPendingIRTPVerificationV1(domain, options);
6689
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.getPendingIRTPVerificationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6690
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6691
+ });
6692
+ },
5944
6693
  /**
5945
6694
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5946
6695
  * @summary Get WHOIS profile list
@@ -6026,6 +6775,26 @@ exports.DomainsWHOISApiFp = DomainsWHOISApiFp;
6026
6775
  const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
6027
6776
  const localVarFp = (0, exports.DomainsWHOISApiFp)(configuration);
6028
6777
  return {
6778
+ /**
6779
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
6780
+ * @summary Cancel pending IRTP verification
6781
+ * @param {string} domain Domain name
6782
+ * @param {*} [options] Override http request option.
6783
+ * @throws {RequiredError}
6784
+ */
6785
+ cancelPendingIRTPVerificationV1(domain, options) {
6786
+ return localVarFp.cancelPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
6787
+ },
6788
+ /**
6789
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
6790
+ * @summary Change WHOIS profile for domain
6791
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6792
+ * @param {*} [options] Override http request option.
6793
+ * @throws {RequiredError}
6794
+ */
6795
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6796
+ return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
6797
+ },
6029
6798
  /**
6030
6799
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
6031
6800
  * @summary Create WHOIS profile
@@ -6046,6 +6815,16 @@ const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
6046
6815
  deleteWHOISProfileV1(whoisId, options) {
6047
6816
  return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
6048
6817
  },
6818
+ /**
6819
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
6820
+ * @summary Get pending IRTP verification
6821
+ * @param {string} domain Domain name
6822
+ * @param {*} [options] Override http request option.
6823
+ * @throws {RequiredError}
6824
+ */
6825
+ getPendingIRTPVerificationV1(domain, options) {
6826
+ return localVarFp.getPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
6827
+ },
6049
6828
  /**
6050
6829
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
6051
6830
  * @summary Get WHOIS profile list
@@ -6106,6 +6885,28 @@ exports.DomainsWHOISApiFactory = DomainsWHOISApiFactory;
6106
6885
  * @extends {BaseAPI}
6107
6886
  */
6108
6887
  class DomainsWHOISApi extends base_1.BaseAPI {
6888
+ /**
6889
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
6890
+ * @summary Cancel pending IRTP verification
6891
+ * @param {string} domain Domain name
6892
+ * @param {*} [options] Override http request option.
6893
+ * @throws {RequiredError}
6894
+ * @memberof DomainsWHOISApi
6895
+ */
6896
+ cancelPendingIRTPVerificationV1(domain, options) {
6897
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).cancelPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
6898
+ }
6899
+ /**
6900
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
6901
+ * @summary Change WHOIS profile for domain
6902
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6903
+ * @param {*} [options] Override http request option.
6904
+ * @throws {RequiredError}
6905
+ * @memberof DomainsWHOISApi
6906
+ */
6907
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6908
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
6909
+ }
6109
6910
  /**
6110
6911
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
6111
6912
  * @summary Create WHOIS profile
@@ -6128,6 +6929,17 @@ class DomainsWHOISApi extends base_1.BaseAPI {
6128
6929
  deleteWHOISProfileV1(whoisId, options) {
6129
6930
  return (0, exports.DomainsWHOISApiFp)(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6130
6931
  }
6932
+ /**
6933
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
6934
+ * @summary Get pending IRTP verification
6935
+ * @param {string} domain Domain name
6936
+ * @param {*} [options] Override http request option.
6937
+ * @throws {RequiredError}
6938
+ * @memberof DomainsWHOISApi
6939
+ */
6940
+ getPendingIRTPVerificationV1(domain, options) {
6941
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).getPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
6942
+ }
6131
6943
  /**
6132
6944
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
6133
6945
  * @summary Get WHOIS profile list