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/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.24.0
6
+ * API Version: 1.26.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -147,6 +147,22 @@ export const DomainsV1ForwardingUpdateRequestRedirectTypeEnum = {
147
147
  _301: '301',
148
148
  _302: '302'
149
149
  };
150
+ export const DomainsV1IRTPVerificationResourceStatusEnum = {
151
+ Pending: 'pending',
152
+ Completed: 'completed',
153
+ Canceled: 'canceled'
154
+ };
155
+ export const DomainsV1MoveMoveResourceStatusEnum = {
156
+ Initiated: 'initiated',
157
+ Activating: 'activating',
158
+ Completed: 'completed'
159
+ };
160
+ export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
161
+ Owner: 'owner',
162
+ Admin: 'admin',
163
+ Billing: 'billing',
164
+ Tech: 'tech'
165
+ };
150
166
  export const DomainsV1WHOISProfileResourceEntityTypeEnum = {
151
167
  Individual: 'individual',
152
168
  Organization: 'organization'
@@ -4698,22 +4714,25 @@ export class DomainsForwardingApi extends BaseAPI {
4698
4714
  }
4699
4715
  }
4700
4716
  /**
4701
- * DomainsPortfolioApi - axios parameter creator
4717
+ * DomainsMoveApi - axios parameter creator
4702
4718
  * @export
4703
4719
  */
4704
- export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4720
+ export const DomainsMoveApiAxiosParamCreator = function (configuration) {
4705
4721
  return {
4706
4722
  /**
4707
- * 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.
4708
- * @summary Disable domain lock
4723
+ * 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.
4724
+ * @summary Accept incoming domain move
4709
4725
  * @param {string} domain Domain name
4726
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
4710
4727
  * @param {*} [options] Override http request option.
4711
4728
  * @throws {RequiredError}
4712
4729
  */
4713
- disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4730
+ acceptIncomingDomainMoveV1: (domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveIncomingUpdateRequest, options = {}) {
4714
4731
  // verify required parameter 'domain' is not null or undefined
4715
- assertParamExists('disableDomainLockV1', 'domain', domain);
4716
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
4732
+ assertParamExists('acceptIncomingDomainMoveV1', 'domain', domain);
4733
+ // verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
4734
+ assertParamExists('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest);
4735
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
4717
4736
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4718
4737
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4719
4738
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4721,31 +4740,33 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4721
4740
  if (configuration) {
4722
4741
  baseOptions = configuration.baseOptions;
4723
4742
  }
4724
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4743
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4725
4744
  const localVarHeaderParameter = {};
4726
4745
  const localVarQueryParameter = {};
4727
4746
  // authentication apiToken required
4728
4747
  // http bearer authentication required
4729
4748
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4749
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4730
4750
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4731
4751
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4732
4752
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4753
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration);
4733
4754
  return {
4734
4755
  url: toPathString(localVarUrlObj),
4735
4756
  options: localVarRequestOptions,
4736
4757
  };
4737
4758
  }),
4738
4759
  /**
4739
- * 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.
4740
- * @summary Disable privacy protection
4760
+ * 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.
4761
+ * @summary Cancel outgoing domain move
4741
4762
  * @param {string} domain Domain name
4742
4763
  * @param {*} [options] Override http request option.
4743
4764
  * @throws {RequiredError}
4744
4765
  */
4745
- disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4766
+ cancelOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4746
4767
  // verify required parameter 'domain' is not null or undefined
4747
- assertParamExists('disablePrivacyProtectionV1', 'domain', domain);
4748
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
4768
+ assertParamExists('cancelOutgoingDomainMoveV1', 'domain', domain);
4769
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
4749
4770
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4750
4771
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4751
4772
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4768,24 +4789,20 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4768
4789
  };
4769
4790
  }),
4770
4791
  /**
4771
- * 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.
4772
- * @summary Enable domain lock
4773
- * @param {string} domain Domain name
4792
+ * 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.
4793
+ * @summary Get incoming domain move list
4774
4794
  * @param {*} [options] Override http request option.
4775
4795
  * @throws {RequiredError}
4776
4796
  */
4777
- enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4778
- // verify required parameter 'domain' is not null or undefined
4779
- assertParamExists('enableDomainLockV1', 'domain', domain);
4780
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
4781
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4797
+ getIncomingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4798
+ const localVarPath = `/api/domains/v1/move/incoming`;
4782
4799
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4783
4800
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4784
4801
  let baseOptions;
4785
4802
  if (configuration) {
4786
4803
  baseOptions = configuration.baseOptions;
4787
4804
  }
4788
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4805
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4789
4806
  const localVarHeaderParameter = {};
4790
4807
  const localVarQueryParameter = {};
4791
4808
  // authentication apiToken required
@@ -4800,16 +4817,17 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4800
4817
  };
4801
4818
  }),
4802
4819
  /**
4803
- * 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.
4804
- * @summary Enable privacy protection
4820
+ * 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.
4821
+ * @summary Get incoming domain move
4805
4822
  * @param {string} domain Domain name
4823
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
4806
4824
  * @param {*} [options] Override http request option.
4807
4825
  * @throws {RequiredError}
4808
4826
  */
4809
- enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4827
+ getIncomingDomainMoveV1: (domain_1, forceSync_1, ...args_1) => __awaiter(this, [domain_1, forceSync_1, ...args_1], void 0, function* (domain, forceSync, options = {}) {
4810
4828
  // verify required parameter 'domain' is not null or undefined
4811
- assertParamExists('enablePrivacyProtectionV1', 'domain', domain);
4812
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
4829
+ assertParamExists('getIncomingDomainMoveV1', 'domain', domain);
4830
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
4813
4831
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4814
4832
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4815
4833
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4817,12 +4835,15 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4817
4835
  if (configuration) {
4818
4836
  baseOptions = configuration.baseOptions;
4819
4837
  }
4820
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4838
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4821
4839
  const localVarHeaderParameter = {};
4822
4840
  const localVarQueryParameter = {};
4823
4841
  // authentication apiToken required
4824
4842
  // http bearer authentication required
4825
4843
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4844
+ if (forceSync !== undefined) {
4845
+ localVarQueryParameter['force_sync'] = forceSync;
4846
+ }
4826
4847
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4827
4848
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4828
4849
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4832,17 +4853,13 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4832
4853
  };
4833
4854
  }),
4834
4855
  /**
4835
- * 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.
4836
- * @summary Get domain authorization code
4837
- * @param {string} domain Domain name
4856
+ * 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.
4857
+ * @summary Get outgoing domain move list
4838
4858
  * @param {*} [options] Override http request option.
4839
4859
  * @throws {RequiredError}
4840
4860
  */
4841
- getDomainAuthorizationCodeV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4842
- // verify required parameter 'domain' is not null or undefined
4843
- assertParamExists('getDomainAuthorizationCodeV1', 'domain', domain);
4844
- const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
4845
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4861
+ getOutgoingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4862
+ const localVarPath = `/api/domains/v1/move/outgoing`;
4846
4863
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4847
4864
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4848
4865
  let baseOptions;
@@ -4864,16 +4881,16 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4864
4881
  };
4865
4882
  }),
4866
4883
  /**
4867
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
4868
- * @summary Get domain details
4884
+ * 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.
4885
+ * @summary Get outgoing domain move
4869
4886
  * @param {string} domain Domain name
4870
4887
  * @param {*} [options] Override http request option.
4871
4888
  * @throws {RequiredError}
4872
4889
  */
4873
- getDomainDetailsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4890
+ getOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4874
4891
  // verify required parameter 'domain' is not null or undefined
4875
- assertParamExists('getDomainDetailsV1', 'domain', domain);
4876
- const localVarPath = `/api/domains/v1/portfolio/{domain}`
4892
+ assertParamExists('getOutgoingDomainMoveV1', 'domain', domain);
4893
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
4877
4894
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4878
4895
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4879
4896
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4896,44 +4913,16 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4896
4913
  };
4897
4914
  }),
4898
4915
  /**
4899
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
4900
- * @summary Get domain list
4901
- * @param {*} [options] Override http request option.
4902
- * @throws {RequiredError}
4903
- */
4904
- getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4905
- const localVarPath = `/api/domains/v1/portfolio`;
4906
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4907
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4908
- let baseOptions;
4909
- if (configuration) {
4910
- baseOptions = configuration.baseOptions;
4911
- }
4912
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4913
- const localVarHeaderParameter = {};
4914
- const localVarQueryParameter = {};
4915
- // authentication apiToken required
4916
- // http bearer authentication required
4917
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4918
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4919
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4920
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4921
- return {
4922
- url: toPathString(localVarUrlObj),
4923
- options: localVarRequestOptions,
4924
- };
4925
- }),
4926
- /**
4927
- * 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.
4928
- * @summary Get domain renewal information
4916
+ * 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.
4917
+ * @summary Reject incoming domain move
4929
4918
  * @param {string} domain Domain name
4930
4919
  * @param {*} [options] Override http request option.
4931
4920
  * @throws {RequiredError}
4932
4921
  */
4933
- getDomainRenewalInformationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4922
+ rejectIncomingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4934
4923
  // verify required parameter 'domain' is not null or undefined
4935
- assertParamExists('getDomainRenewalInformationV1', 'domain', domain);
4936
- const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
4924
+ assertParamExists('rejectIncomingDomainMoveV1', 'domain', domain);
4925
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
4937
4926
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4938
4927
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4939
4928
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4941,67 +4930,34 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
4941
4930
  if (configuration) {
4942
4931
  baseOptions = configuration.baseOptions;
4943
4932
  }
4944
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4945
- const localVarHeaderParameter = {};
4946
- const localVarQueryParameter = {};
4947
- // authentication apiToken required
4948
- // http bearer authentication required
4949
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4950
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4951
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4952
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4953
- return {
4954
- url: toPathString(localVarUrlObj),
4955
- options: localVarRequestOptions,
4956
- };
4957
- }),
4958
- /**
4959
- * 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.
4960
- * @summary Purchase new domain
4961
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
4962
- * @param {*} [options] Override http request option.
4963
- * @throws {RequiredError}
4964
- */
4965
- purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
4966
- // verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
4967
- assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
4968
- const localVarPath = `/api/domains/v1/portfolio`;
4969
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4970
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4971
- let baseOptions;
4972
- if (configuration) {
4973
- baseOptions = configuration.baseOptions;
4974
- }
4975
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4933
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4976
4934
  const localVarHeaderParameter = {};
4977
4935
  const localVarQueryParameter = {};
4978
4936
  // authentication apiToken required
4979
4937
  // http bearer authentication required
4980
4938
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4981
- localVarHeaderParameter['Content-Type'] = 'application/json';
4982
4939
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4983
4940
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4984
4941
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4985
- localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
4986
4942
  return {
4987
4943
  url: toPathString(localVarUrlObj),
4988
4944
  options: localVarRequestOptions,
4989
4945
  };
4990
4946
  }),
4991
4947
  /**
4992
- * 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.
4993
- * @summary Update domain nameservers
4948
+ * 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.
4949
+ * @summary Start outgoing domain move
4994
4950
  * @param {string} domain Domain name
4995
- * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
4951
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
4996
4952
  * @param {*} [options] Override http request option.
4997
4953
  * @throws {RequiredError}
4998
4954
  */
4999
- updateDomainNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
4955
+ startOutgoingDomainMoveV1: (domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveOutgoingStoreRequest, options = {}) {
5000
4956
  // verify required parameter 'domain' is not null or undefined
5001
- assertParamExists('updateDomainNameserversV1', 'domain', domain);
5002
- // verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
5003
- assertParamExists('updateDomainNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
5004
- const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
4957
+ assertParamExists('startOutgoingDomainMoveV1', 'domain', domain);
4958
+ // verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
4959
+ assertParamExists('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest);
4960
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
5005
4961
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5006
4962
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5007
4963
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5009,7 +4965,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5009
4965
  if (configuration) {
5010
4966
  baseOptions = configuration.baseOptions;
5011
4967
  }
5012
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4968
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5013
4969
  const localVarHeaderParameter = {};
5014
4970
  const localVarQueryParameter = {};
5015
4971
  // authentication apiToken required
@@ -5019,7 +4975,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5019
4975
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5020
4976
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5021
4977
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5022
- localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
4978
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration);
5023
4979
  return {
5024
4980
  url: toPathString(localVarUrlObj),
5025
4981
  options: localVarRequestOptions,
@@ -5028,262 +4984,909 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5028
4984
  };
5029
4985
  };
5030
4986
  /**
5031
- * DomainsPortfolioApi - functional programming interface
4987
+ * DomainsMoveApi - functional programming interface
5032
4988
  * @export
5033
4989
  */
5034
- export const DomainsPortfolioApiFp = function (configuration) {
5035
- const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
4990
+ export const DomainsMoveApiFp = function (configuration) {
4991
+ const localVarAxiosParamCreator = DomainsMoveApiAxiosParamCreator(configuration);
5036
4992
  return {
5037
4993
  /**
5038
- * 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.
5039
- * @summary Disable domain lock
4994
+ * 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.
4995
+ * @summary Accept incoming domain move
5040
4996
  * @param {string} domain Domain name
4997
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
5041
4998
  * @param {*} [options] Override http request option.
5042
4999
  * @throws {RequiredError}
5043
5000
  */
5044
- disableDomainLockV1(domain, options) {
5001
+ acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
5045
5002
  return __awaiter(this, void 0, void 0, function* () {
5046
5003
  var _a, _b;
5047
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
5048
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5004
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
5005
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5049
5006
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5050
5007
  });
5051
5008
  },
5052
5009
  /**
5053
- * 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.
5054
- * @summary Disable privacy protection
5010
+ * 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.
5011
+ * @summary Cancel outgoing domain move
5055
5012
  * @param {string} domain Domain name
5056
5013
  * @param {*} [options] Override http request option.
5057
5014
  * @throws {RequiredError}
5058
5015
  */
5059
- disablePrivacyProtectionV1(domain, options) {
5016
+ cancelOutgoingDomainMoveV1(domain, options) {
5060
5017
  return __awaiter(this, void 0, void 0, function* () {
5061
5018
  var _a, _b;
5062
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
5063
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5019
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
5020
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5064
5021
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5065
5022
  });
5066
5023
  },
5067
5024
  /**
5068
- * 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.
5069
- * @summary Enable domain lock
5070
- * @param {string} domain Domain name
5025
+ * 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.
5026
+ * @summary Get incoming domain move list
5071
5027
  * @param {*} [options] Override http request option.
5072
5028
  * @throws {RequiredError}
5073
5029
  */
5074
- enableDomainLockV1(domain, options) {
5030
+ getIncomingDomainMoveListV1(options) {
5075
5031
  return __awaiter(this, void 0, void 0, function* () {
5076
5032
  var _a, _b;
5077
- const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
5078
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5033
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
5034
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5079
5035
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5080
5036
  });
5081
5037
  },
5082
5038
  /**
5083
- * 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.
5084
- * @summary Enable privacy protection
5039
+ * 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.
5040
+ * @summary Get incoming domain move
5085
5041
  * @param {string} domain Domain name
5042
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
5086
5043
  * @param {*} [options] Override http request option.
5087
5044
  * @throws {RequiredError}
5088
5045
  */
5089
- enablePrivacyProtectionV1(domain, options) {
5046
+ getIncomingDomainMoveV1(domain, forceSync, options) {
5090
5047
  return __awaiter(this, void 0, void 0, function* () {
5091
5048
  var _a, _b;
5092
- const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
5093
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5049
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
5050
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5094
5051
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5095
5052
  });
5096
5053
  },
5097
5054
  /**
5098
- * 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.
5099
- * @summary Get domain authorization code
5100
- * @param {string} domain Domain name
5055
+ * 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.
5056
+ * @summary Get outgoing domain move list
5101
5057
  * @param {*} [options] Override http request option.
5102
5058
  * @throws {RequiredError}
5103
5059
  */
5104
- getDomainAuthorizationCodeV1(domain, options) {
5060
+ getOutgoingDomainMoveListV1(options) {
5105
5061
  return __awaiter(this, void 0, void 0, function* () {
5106
5062
  var _a, _b;
5107
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainAuthorizationCodeV1(domain, options);
5108
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainAuthorizationCodeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5063
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
5064
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5109
5065
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5110
5066
  });
5111
5067
  },
5112
5068
  /**
5113
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5114
- * @summary Get domain details
5069
+ * 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.
5070
+ * @summary Get outgoing domain move
5115
5071
  * @param {string} domain Domain name
5116
5072
  * @param {*} [options] Override http request option.
5117
5073
  * @throws {RequiredError}
5118
5074
  */
5119
- getDomainDetailsV1(domain, options) {
5120
- return __awaiter(this, void 0, void 0, function* () {
5121
- var _a, _b;
5122
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainDetailsV1(domain, options);
5123
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5124
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5125
- });
5126
- },
5127
- /**
5128
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5129
- * @summary Get domain list
5130
- * @param {*} [options] Override http request option.
5131
- * @throws {RequiredError}
5132
- */
5133
- getDomainListV1(options) {
5075
+ getOutgoingDomainMoveV1(domain, options) {
5134
5076
  return __awaiter(this, void 0, void 0, function* () {
5135
5077
  var _a, _b;
5136
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
5137
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5078
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
5079
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5138
5080
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5139
5081
  });
5140
5082
  },
5141
5083
  /**
5142
- * 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.
5143
- * @summary Get domain renewal information
5084
+ * 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.
5085
+ * @summary Reject incoming domain move
5144
5086
  * @param {string} domain Domain name
5145
5087
  * @param {*} [options] Override http request option.
5146
5088
  * @throws {RequiredError}
5147
5089
  */
5148
- getDomainRenewalInformationV1(domain, options) {
5149
- return __awaiter(this, void 0, void 0, function* () {
5150
- var _a, _b;
5151
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainRenewalInformationV1(domain, options);
5152
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainRenewalInformationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5153
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5154
- });
5155
- },
5156
- /**
5157
- * 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.
5158
- * @summary Purchase new domain
5159
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5160
- * @param {*} [options] Override http request option.
5161
- * @throws {RequiredError}
5162
- */
5163
- purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5090
+ rejectIncomingDomainMoveV1(domain, options) {
5164
5091
  return __awaiter(this, void 0, void 0, function* () {
5165
5092
  var _a, _b;
5166
- const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
5167
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5093
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
5094
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5168
5095
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5169
5096
  });
5170
5097
  },
5171
5098
  /**
5172
- * 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.
5173
- * @summary Update domain nameservers
5099
+ * 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.
5100
+ * @summary Start outgoing domain move
5174
5101
  * @param {string} domain Domain name
5175
- * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5102
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5176
5103
  * @param {*} [options] Override http request option.
5177
5104
  * @throws {RequiredError}
5178
5105
  */
5179
- updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
5106
+ startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
5180
5107
  return __awaiter(this, void 0, void 0, function* () {
5181
5108
  var _a, _b;
5182
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
5183
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.updateDomainNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5109
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
5110
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5184
5111
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5185
5112
  });
5186
5113
  },
5187
5114
  };
5188
5115
  };
5189
5116
  /**
5190
- * DomainsPortfolioApi - factory interface
5117
+ * DomainsMoveApi - factory interface
5191
5118
  * @export
5192
5119
  */
5193
- export const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
5194
- const localVarFp = DomainsPortfolioApiFp(configuration);
5120
+ export const DomainsMoveApiFactory = function (configuration, basePath, axios) {
5121
+ const localVarFp = DomainsMoveApiFp(configuration);
5195
5122
  return {
5196
5123
  /**
5197
- * 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.
5198
- * @summary Disable domain lock
5124
+ * 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.
5125
+ * @summary Accept incoming domain move
5199
5126
  * @param {string} domain Domain name
5127
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
5200
5128
  * @param {*} [options] Override http request option.
5201
5129
  * @throws {RequiredError}
5202
5130
  */
5203
- disableDomainLockV1(domain, options) {
5204
- return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5131
+ acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
5132
+ return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
5205
5133
  },
5206
5134
  /**
5207
- * 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.
5208
- * @summary Disable privacy protection
5135
+ * 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.
5136
+ * @summary Cancel outgoing domain move
5209
5137
  * @param {string} domain Domain name
5210
5138
  * @param {*} [options] Override http request option.
5211
5139
  * @throws {RequiredError}
5212
5140
  */
5213
- disablePrivacyProtectionV1(domain, options) {
5214
- return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5141
+ cancelOutgoingDomainMoveV1(domain, options) {
5142
+ return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
5215
5143
  },
5216
5144
  /**
5217
- * 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.
5218
- * @summary Enable domain lock
5219
- * @param {string} domain Domain name
5145
+ * 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.
5146
+ * @summary Get incoming domain move list
5220
5147
  * @param {*} [options] Override http request option.
5221
5148
  * @throws {RequiredError}
5222
5149
  */
5223
- enableDomainLockV1(domain, options) {
5224
- return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5150
+ getIncomingDomainMoveListV1(options) {
5151
+ return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
5225
5152
  },
5226
5153
  /**
5227
- * 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.
5228
- * @summary Enable privacy protection
5154
+ * 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.
5155
+ * @summary Get incoming domain move
5229
5156
  * @param {string} domain Domain name
5157
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
5230
5158
  * @param {*} [options] Override http request option.
5231
5159
  * @throws {RequiredError}
5232
5160
  */
5233
- enablePrivacyProtectionV1(domain, options) {
5234
- return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5161
+ getIncomingDomainMoveV1(domain, forceSync, options) {
5162
+ return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
5235
5163
  },
5236
5164
  /**
5237
- * 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.
5238
- * @summary Get domain authorization code
5239
- * @param {string} domain Domain name
5165
+ * 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.
5166
+ * @summary Get outgoing domain move list
5240
5167
  * @param {*} [options] Override http request option.
5241
5168
  * @throws {RequiredError}
5242
5169
  */
5243
- getDomainAuthorizationCodeV1(domain, options) {
5244
- return localVarFp.getDomainAuthorizationCodeV1(domain, options).then((request) => request(axios, basePath));
5170
+ getOutgoingDomainMoveListV1(options) {
5171
+ return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
5245
5172
  },
5246
5173
  /**
5247
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5248
- * @summary Get domain details
5174
+ * 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.
5175
+ * @summary Get outgoing domain move
5249
5176
  * @param {string} domain Domain name
5250
5177
  * @param {*} [options] Override http request option.
5251
5178
  * @throws {RequiredError}
5252
5179
  */
5253
- getDomainDetailsV1(domain, options) {
5254
- return localVarFp.getDomainDetailsV1(domain, options).then((request) => request(axios, basePath));
5255
- },
5256
- /**
5257
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5258
- * @summary Get domain list
5259
- * @param {*} [options] Override http request option.
5260
- * @throws {RequiredError}
5261
- */
5262
- getDomainListV1(options) {
5263
- return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
5180
+ getOutgoingDomainMoveV1(domain, options) {
5181
+ return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
5264
5182
  },
5265
5183
  /**
5266
- * 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.
5267
- * @summary Get domain renewal information
5184
+ * 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.
5185
+ * @summary Reject incoming domain move
5268
5186
  * @param {string} domain Domain name
5269
5187
  * @param {*} [options] Override http request option.
5270
5188
  * @throws {RequiredError}
5271
5189
  */
5272
- getDomainRenewalInformationV1(domain, options) {
5273
- return localVarFp.getDomainRenewalInformationV1(domain, options).then((request) => request(axios, basePath));
5190
+ rejectIncomingDomainMoveV1(domain, options) {
5191
+ return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
5274
5192
  },
5275
5193
  /**
5276
- * 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.
5277
- * @summary Purchase new domain
5278
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5194
+ * 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.
5195
+ * @summary Start outgoing domain move
5196
+ * @param {string} domain Domain name
5197
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5279
5198
  * @param {*} [options] Override http request option.
5280
5199
  * @throws {RequiredError}
5281
5200
  */
5282
- purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5283
- return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
5201
+ startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
5202
+ return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
5284
5203
  },
5285
- /**
5286
- * 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.
5204
+ };
5205
+ };
5206
+ /**
5207
+ * DomainsMoveApi - object-oriented interface
5208
+ * @export
5209
+ * @class DomainsMoveApi
5210
+ * @extends {BaseAPI}
5211
+ */
5212
+ export class DomainsMoveApi extends BaseAPI {
5213
+ /**
5214
+ * 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.
5215
+ * @summary Accept incoming domain move
5216
+ * @param {string} domain Domain name
5217
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
5218
+ * @param {*} [options] Override http request option.
5219
+ * @throws {RequiredError}
5220
+ * @memberof DomainsMoveApi
5221
+ */
5222
+ acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
5223
+ return DomainsMoveApiFp(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
5224
+ }
5225
+ /**
5226
+ * 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.
5227
+ * @summary Cancel outgoing domain move
5228
+ * @param {string} domain Domain name
5229
+ * @param {*} [options] Override http request option.
5230
+ * @throws {RequiredError}
5231
+ * @memberof DomainsMoveApi
5232
+ */
5233
+ cancelOutgoingDomainMoveV1(domain, options) {
5234
+ return DomainsMoveApiFp(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
5235
+ }
5236
+ /**
5237
+ * 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.
5238
+ * @summary Get incoming domain move list
5239
+ * @param {*} [options] Override http request option.
5240
+ * @throws {RequiredError}
5241
+ * @memberof DomainsMoveApi
5242
+ */
5243
+ getIncomingDomainMoveListV1(options) {
5244
+ return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
5245
+ }
5246
+ /**
5247
+ * 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.
5248
+ * @summary Get incoming domain move
5249
+ * @param {string} domain Domain name
5250
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
5251
+ * @param {*} [options] Override http request option.
5252
+ * @throws {RequiredError}
5253
+ * @memberof DomainsMoveApi
5254
+ */
5255
+ getIncomingDomainMoveV1(domain, forceSync, options) {
5256
+ return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
5257
+ }
5258
+ /**
5259
+ * 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.
5260
+ * @summary Get outgoing domain move list
5261
+ * @param {*} [options] Override http request option.
5262
+ * @throws {RequiredError}
5263
+ * @memberof DomainsMoveApi
5264
+ */
5265
+ getOutgoingDomainMoveListV1(options) {
5266
+ return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
5267
+ }
5268
+ /**
5269
+ * 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.
5270
+ * @summary Get outgoing domain move
5271
+ * @param {string} domain Domain name
5272
+ * @param {*} [options] Override http request option.
5273
+ * @throws {RequiredError}
5274
+ * @memberof DomainsMoveApi
5275
+ */
5276
+ getOutgoingDomainMoveV1(domain, options) {
5277
+ return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
5278
+ }
5279
+ /**
5280
+ * 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.
5281
+ * @summary Reject incoming domain move
5282
+ * @param {string} domain Domain name
5283
+ * @param {*} [options] Override http request option.
5284
+ * @throws {RequiredError}
5285
+ * @memberof DomainsMoveApi
5286
+ */
5287
+ rejectIncomingDomainMoveV1(domain, options) {
5288
+ return DomainsMoveApiFp(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
5289
+ }
5290
+ /**
5291
+ * 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.
5292
+ * @summary Start outgoing domain move
5293
+ * @param {string} domain Domain name
5294
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
5295
+ * @param {*} [options] Override http request option.
5296
+ * @throws {RequiredError}
5297
+ * @memberof DomainsMoveApi
5298
+ */
5299
+ startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
5300
+ return DomainsMoveApiFp(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
5301
+ }
5302
+ }
5303
+ /**
5304
+ * DomainsPortfolioApi - axios parameter creator
5305
+ * @export
5306
+ */
5307
+ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5308
+ return {
5309
+ /**
5310
+ * 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.
5311
+ * @summary Disable domain lock
5312
+ * @param {string} domain Domain name
5313
+ * @param {*} [options] Override http request option.
5314
+ * @throws {RequiredError}
5315
+ */
5316
+ disableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5317
+ // verify required parameter 'domain' is not null or undefined
5318
+ assertParamExists('disableDomainLockV1', 'domain', domain);
5319
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
5320
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5323
+ let baseOptions;
5324
+ if (configuration) {
5325
+ baseOptions = configuration.baseOptions;
5326
+ }
5327
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5328
+ const localVarHeaderParameter = {};
5329
+ const localVarQueryParameter = {};
5330
+ // authentication apiToken required
5331
+ // http bearer authentication required
5332
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5335
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5336
+ return {
5337
+ url: toPathString(localVarUrlObj),
5338
+ options: localVarRequestOptions,
5339
+ };
5340
+ }),
5341
+ /**
5342
+ * 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.
5343
+ * @summary Disable privacy protection
5344
+ * @param {string} domain Domain name
5345
+ * @param {*} [options] Override http request option.
5346
+ * @throws {RequiredError}
5347
+ */
5348
+ disablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5349
+ // verify required parameter 'domain' is not null or undefined
5350
+ assertParamExists('disablePrivacyProtectionV1', 'domain', domain);
5351
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
5352
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5354
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5355
+ let baseOptions;
5356
+ if (configuration) {
5357
+ baseOptions = configuration.baseOptions;
5358
+ }
5359
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5360
+ const localVarHeaderParameter = {};
5361
+ const localVarQueryParameter = {};
5362
+ // authentication apiToken required
5363
+ // http bearer authentication required
5364
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5365
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5367
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5368
+ return {
5369
+ url: toPathString(localVarUrlObj),
5370
+ options: localVarRequestOptions,
5371
+ };
5372
+ }),
5373
+ /**
5374
+ * 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.
5375
+ * @summary Enable domain lock
5376
+ * @param {string} domain Domain name
5377
+ * @param {*} [options] Override http request option.
5378
+ * @throws {RequiredError}
5379
+ */
5380
+ enableDomainLockV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5381
+ // verify required parameter 'domain' is not null or undefined
5382
+ assertParamExists('enableDomainLockV1', 'domain', domain);
5383
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
5384
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5387
+ let baseOptions;
5388
+ if (configuration) {
5389
+ baseOptions = configuration.baseOptions;
5390
+ }
5391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5392
+ const localVarHeaderParameter = {};
5393
+ const localVarQueryParameter = {};
5394
+ // authentication apiToken required
5395
+ // http bearer authentication required
5396
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5397
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5399
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5400
+ return {
5401
+ url: toPathString(localVarUrlObj),
5402
+ options: localVarRequestOptions,
5403
+ };
5404
+ }),
5405
+ /**
5406
+ * 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.
5407
+ * @summary Enable privacy protection
5408
+ * @param {string} domain Domain name
5409
+ * @param {*} [options] Override http request option.
5410
+ * @throws {RequiredError}
5411
+ */
5412
+ enablePrivacyProtectionV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5413
+ // verify required parameter 'domain' is not null or undefined
5414
+ assertParamExists('enablePrivacyProtectionV1', 'domain', domain);
5415
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
5416
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5419
+ let baseOptions;
5420
+ if (configuration) {
5421
+ baseOptions = configuration.baseOptions;
5422
+ }
5423
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5424
+ const localVarHeaderParameter = {};
5425
+ const localVarQueryParameter = {};
5426
+ // authentication apiToken required
5427
+ // http bearer authentication required
5428
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5431
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5432
+ return {
5433
+ url: toPathString(localVarUrlObj),
5434
+ options: localVarRequestOptions,
5435
+ };
5436
+ }),
5437
+ /**
5438
+ * 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.
5439
+ * @summary Get domain authorization code
5440
+ * @param {string} domain Domain name
5441
+ * @param {*} [options] Override http request option.
5442
+ * @throws {RequiredError}
5443
+ */
5444
+ getDomainAuthorizationCodeV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5445
+ // verify required parameter 'domain' is not null or undefined
5446
+ assertParamExists('getDomainAuthorizationCodeV1', 'domain', domain);
5447
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
5448
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5451
+ let baseOptions;
5452
+ if (configuration) {
5453
+ baseOptions = configuration.baseOptions;
5454
+ }
5455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5456
+ const localVarHeaderParameter = {};
5457
+ const localVarQueryParameter = {};
5458
+ // authentication apiToken required
5459
+ // http bearer authentication required
5460
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5463
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5464
+ return {
5465
+ url: toPathString(localVarUrlObj),
5466
+ options: localVarRequestOptions,
5467
+ };
5468
+ }),
5469
+ /**
5470
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5471
+ * @summary Get domain details
5472
+ * @param {string} domain Domain name
5473
+ * @param {*} [options] Override http request option.
5474
+ * @throws {RequiredError}
5475
+ */
5476
+ getDomainDetailsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5477
+ // verify required parameter 'domain' is not null or undefined
5478
+ assertParamExists('getDomainDetailsV1', 'domain', domain);
5479
+ const localVarPath = `/api/domains/v1/portfolio/{domain}`
5480
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5483
+ let baseOptions;
5484
+ if (configuration) {
5485
+ baseOptions = configuration.baseOptions;
5486
+ }
5487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5488
+ const localVarHeaderParameter = {};
5489
+ const localVarQueryParameter = {};
5490
+ // authentication apiToken required
5491
+ // http bearer authentication required
5492
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5493
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5495
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5496
+ return {
5497
+ url: toPathString(localVarUrlObj),
5498
+ options: localVarRequestOptions,
5499
+ };
5500
+ }),
5501
+ /**
5502
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5503
+ * @summary Get domain list
5504
+ * @param {*} [options] Override http request option.
5505
+ * @throws {RequiredError}
5506
+ */
5507
+ getDomainListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5508
+ const localVarPath = `/api/domains/v1/portfolio`;
5509
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5510
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5511
+ let baseOptions;
5512
+ if (configuration) {
5513
+ baseOptions = configuration.baseOptions;
5514
+ }
5515
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5516
+ const localVarHeaderParameter = {};
5517
+ const localVarQueryParameter = {};
5518
+ // authentication apiToken required
5519
+ // http bearer authentication required
5520
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5521
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5522
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5523
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5524
+ return {
5525
+ url: toPathString(localVarUrlObj),
5526
+ options: localVarRequestOptions,
5527
+ };
5528
+ }),
5529
+ /**
5530
+ * 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.
5531
+ * @summary Get domain renewal information
5532
+ * @param {string} domain Domain name
5533
+ * @param {*} [options] Override http request option.
5534
+ * @throws {RequiredError}
5535
+ */
5536
+ getDomainRenewalInformationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5537
+ // verify required parameter 'domain' is not null or undefined
5538
+ assertParamExists('getDomainRenewalInformationV1', 'domain', domain);
5539
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
5540
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5542
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5543
+ let baseOptions;
5544
+ if (configuration) {
5545
+ baseOptions = configuration.baseOptions;
5546
+ }
5547
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5548
+ const localVarHeaderParameter = {};
5549
+ const localVarQueryParameter = {};
5550
+ // authentication apiToken required
5551
+ // http bearer authentication required
5552
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5553
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5554
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5555
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5556
+ return {
5557
+ url: toPathString(localVarUrlObj),
5558
+ options: localVarRequestOptions,
5559
+ };
5560
+ }),
5561
+ /**
5562
+ * 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.
5563
+ * @summary Purchase new domain
5564
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5565
+ * @param {*} [options] Override http request option.
5566
+ * @throws {RequiredError}
5567
+ */
5568
+ purchaseNewDomainV1: (domainsV1PortfolioPurchaseRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioPurchaseRequest_1, ...args_1], void 0, function* (domainsV1PortfolioPurchaseRequest, options = {}) {
5569
+ // verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
5570
+ assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest);
5571
+ const localVarPath = `/api/domains/v1/portfolio`;
5572
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5573
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5574
+ let baseOptions;
5575
+ if (configuration) {
5576
+ baseOptions = configuration.baseOptions;
5577
+ }
5578
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5579
+ const localVarHeaderParameter = {};
5580
+ const localVarQueryParameter = {};
5581
+ // authentication apiToken required
5582
+ // http bearer authentication required
5583
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5584
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5585
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5586
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5587
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5588
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration);
5589
+ return {
5590
+ url: toPathString(localVarUrlObj),
5591
+ options: localVarRequestOptions,
5592
+ };
5593
+ }),
5594
+ /**
5595
+ * 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.
5596
+ * @summary Update domain nameservers
5597
+ * @param {string} domain Domain name
5598
+ * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5599
+ * @param {*} [options] Override http request option.
5600
+ * @throws {RequiredError}
5601
+ */
5602
+ updateDomainNameserversV1: (domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioUpdateNameserversRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioUpdateNameserversRequest, options = {}) {
5603
+ // verify required parameter 'domain' is not null or undefined
5604
+ assertParamExists('updateDomainNameserversV1', 'domain', domain);
5605
+ // verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
5606
+ assertParamExists('updateDomainNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest);
5607
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
5608
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5610
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5611
+ let baseOptions;
5612
+ if (configuration) {
5613
+ baseOptions = configuration.baseOptions;
5614
+ }
5615
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5616
+ const localVarHeaderParameter = {};
5617
+ const localVarQueryParameter = {};
5618
+ // authentication apiToken required
5619
+ // http bearer authentication required
5620
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5621
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5622
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5623
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5624
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5625
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration);
5626
+ return {
5627
+ url: toPathString(localVarUrlObj),
5628
+ options: localVarRequestOptions,
5629
+ };
5630
+ }),
5631
+ };
5632
+ };
5633
+ /**
5634
+ * DomainsPortfolioApi - functional programming interface
5635
+ * @export
5636
+ */
5637
+ export const DomainsPortfolioApiFp = function (configuration) {
5638
+ const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
5639
+ return {
5640
+ /**
5641
+ * 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.
5642
+ * @summary Disable domain lock
5643
+ * @param {string} domain Domain name
5644
+ * @param {*} [options] Override http request option.
5645
+ * @throws {RequiredError}
5646
+ */
5647
+ disableDomainLockV1(domain, options) {
5648
+ return __awaiter(this, void 0, void 0, function* () {
5649
+ var _a, _b;
5650
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableDomainLockV1(domain, options);
5651
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5652
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5653
+ });
5654
+ },
5655
+ /**
5656
+ * 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.
5657
+ * @summary Disable privacy protection
5658
+ * @param {string} domain Domain name
5659
+ * @param {*} [options] Override http request option.
5660
+ * @throws {RequiredError}
5661
+ */
5662
+ disablePrivacyProtectionV1(domain, options) {
5663
+ return __awaiter(this, void 0, void 0, function* () {
5664
+ var _a, _b;
5665
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
5666
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5667
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5668
+ });
5669
+ },
5670
+ /**
5671
+ * 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.
5672
+ * @summary Enable domain lock
5673
+ * @param {string} domain Domain name
5674
+ * @param {*} [options] Override http request option.
5675
+ * @throws {RequiredError}
5676
+ */
5677
+ enableDomainLockV1(domain, options) {
5678
+ return __awaiter(this, void 0, void 0, function* () {
5679
+ var _a, _b;
5680
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableDomainLockV1(domain, options);
5681
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enableDomainLockV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5683
+ });
5684
+ },
5685
+ /**
5686
+ * 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.
5687
+ * @summary Enable privacy protection
5688
+ * @param {string} domain Domain name
5689
+ * @param {*} [options] Override http request option.
5690
+ * @throws {RequiredError}
5691
+ */
5692
+ enablePrivacyProtectionV1(domain, options) {
5693
+ return __awaiter(this, void 0, void 0, function* () {
5694
+ var _a, _b;
5695
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
5696
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5697
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5698
+ });
5699
+ },
5700
+ /**
5701
+ * 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.
5702
+ * @summary Get domain authorization code
5703
+ * @param {string} domain Domain name
5704
+ * @param {*} [options] Override http request option.
5705
+ * @throws {RequiredError}
5706
+ */
5707
+ getDomainAuthorizationCodeV1(domain, options) {
5708
+ return __awaiter(this, void 0, void 0, function* () {
5709
+ var _a, _b;
5710
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainAuthorizationCodeV1(domain, options);
5711
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainAuthorizationCodeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5712
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5713
+ });
5714
+ },
5715
+ /**
5716
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5717
+ * @summary Get domain details
5718
+ * @param {string} domain Domain name
5719
+ * @param {*} [options] Override http request option.
5720
+ * @throws {RequiredError}
5721
+ */
5722
+ getDomainDetailsV1(domain, options) {
5723
+ return __awaiter(this, void 0, void 0, function* () {
5724
+ var _a, _b;
5725
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainDetailsV1(domain, options);
5726
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5727
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5728
+ });
5729
+ },
5730
+ /**
5731
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5732
+ * @summary Get domain list
5733
+ * @param {*} [options] Override http request option.
5734
+ * @throws {RequiredError}
5735
+ */
5736
+ getDomainListV1(options) {
5737
+ return __awaiter(this, void 0, void 0, function* () {
5738
+ var _a, _b;
5739
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainListV1(options);
5740
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5742
+ });
5743
+ },
5744
+ /**
5745
+ * 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.
5746
+ * @summary Get domain renewal information
5747
+ * @param {string} domain Domain name
5748
+ * @param {*} [options] Override http request option.
5749
+ * @throws {RequiredError}
5750
+ */
5751
+ getDomainRenewalInformationV1(domain, options) {
5752
+ return __awaiter(this, void 0, void 0, function* () {
5753
+ var _a, _b;
5754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainRenewalInformationV1(domain, options);
5755
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.getDomainRenewalInformationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5757
+ });
5758
+ },
5759
+ /**
5760
+ * 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.
5761
+ * @summary Purchase new domain
5762
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5763
+ * @param {*} [options] Override http request option.
5764
+ * @throws {RequiredError}
5765
+ */
5766
+ purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5767
+ return __awaiter(this, void 0, void 0, function* () {
5768
+ var _a, _b;
5769
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
5770
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5772
+ });
5773
+ },
5774
+ /**
5775
+ * 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.
5776
+ * @summary Update domain nameservers
5777
+ * @param {string} domain Domain name
5778
+ * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
5779
+ * @param {*} [options] Override http request option.
5780
+ * @throws {RequiredError}
5781
+ */
5782
+ updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options) {
5783
+ return __awaiter(this, void 0, void 0, function* () {
5784
+ var _a, _b;
5785
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDomainNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
5786
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.updateDomainNameserversV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5787
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5788
+ });
5789
+ },
5790
+ };
5791
+ };
5792
+ /**
5793
+ * DomainsPortfolioApi - factory interface
5794
+ * @export
5795
+ */
5796
+ export const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
5797
+ const localVarFp = DomainsPortfolioApiFp(configuration);
5798
+ return {
5799
+ /**
5800
+ * 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.
5801
+ * @summary Disable domain lock
5802
+ * @param {string} domain Domain name
5803
+ * @param {*} [options] Override http request option.
5804
+ * @throws {RequiredError}
5805
+ */
5806
+ disableDomainLockV1(domain, options) {
5807
+ return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5808
+ },
5809
+ /**
5810
+ * 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.
5811
+ * @summary Disable privacy protection
5812
+ * @param {string} domain Domain name
5813
+ * @param {*} [options] Override http request option.
5814
+ * @throws {RequiredError}
5815
+ */
5816
+ disablePrivacyProtectionV1(domain, options) {
5817
+ return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5818
+ },
5819
+ /**
5820
+ * 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.
5821
+ * @summary Enable domain lock
5822
+ * @param {string} domain Domain name
5823
+ * @param {*} [options] Override http request option.
5824
+ * @throws {RequiredError}
5825
+ */
5826
+ enableDomainLockV1(domain, options) {
5827
+ return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
5828
+ },
5829
+ /**
5830
+ * 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.
5831
+ * @summary Enable privacy protection
5832
+ * @param {string} domain Domain name
5833
+ * @param {*} [options] Override http request option.
5834
+ * @throws {RequiredError}
5835
+ */
5836
+ enablePrivacyProtectionV1(domain, options) {
5837
+ return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
5838
+ },
5839
+ /**
5840
+ * 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.
5841
+ * @summary Get domain authorization code
5842
+ * @param {string} domain Domain name
5843
+ * @param {*} [options] Override http request option.
5844
+ * @throws {RequiredError}
5845
+ */
5846
+ getDomainAuthorizationCodeV1(domain, options) {
5847
+ return localVarFp.getDomainAuthorizationCodeV1(domain, options).then((request) => request(axios, basePath));
5848
+ },
5849
+ /**
5850
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
5851
+ * @summary Get domain details
5852
+ * @param {string} domain Domain name
5853
+ * @param {*} [options] Override http request option.
5854
+ * @throws {RequiredError}
5855
+ */
5856
+ getDomainDetailsV1(domain, options) {
5857
+ return localVarFp.getDomainDetailsV1(domain, options).then((request) => request(axios, basePath));
5858
+ },
5859
+ /**
5860
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
5861
+ * @summary Get domain list
5862
+ * @param {*} [options] Override http request option.
5863
+ * @throws {RequiredError}
5864
+ */
5865
+ getDomainListV1(options) {
5866
+ return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
5867
+ },
5868
+ /**
5869
+ * 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.
5870
+ * @summary Get domain renewal information
5871
+ * @param {string} domain Domain name
5872
+ * @param {*} [options] Override http request option.
5873
+ * @throws {RequiredError}
5874
+ */
5875
+ getDomainRenewalInformationV1(domain, options) {
5876
+ return localVarFp.getDomainRenewalInformationV1(domain, options).then((request) => request(axios, basePath));
5877
+ },
5878
+ /**
5879
+ * 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.
5880
+ * @summary Purchase new domain
5881
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
5882
+ * @param {*} [options] Override http request option.
5883
+ * @throws {RequiredError}
5884
+ */
5885
+ purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options) {
5886
+ return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
5887
+ },
5888
+ /**
5889
+ * 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.
5287
5890
  * @summary Update domain nameservers
5288
5891
  * @param {string} domain Domain name
5289
5892
  * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
@@ -5582,6 +6185,71 @@ export class DomainsTransferApi extends BaseAPI {
5582
6185
  */
5583
6186
  export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5584
6187
  return {
6188
+ /**
6189
+ * 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.
6190
+ * @summary Cancel pending IRTP verification
6191
+ * @param {string} domain Domain name
6192
+ * @param {*} [options] Override http request option.
6193
+ * @throws {RequiredError}
6194
+ */
6195
+ cancelPendingIRTPVerificationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
6196
+ // verify required parameter 'domain' is not null or undefined
6197
+ assertParamExists('cancelPendingIRTPVerificationV1', 'domain', domain);
6198
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
6199
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6202
+ let baseOptions;
6203
+ if (configuration) {
6204
+ baseOptions = configuration.baseOptions;
6205
+ }
6206
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
6207
+ const localVarHeaderParameter = {};
6208
+ const localVarQueryParameter = {};
6209
+ // authentication apiToken required
6210
+ // http bearer authentication required
6211
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6214
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6215
+ return {
6216
+ url: toPathString(localVarUrlObj),
6217
+ options: localVarRequestOptions,
6218
+ };
6219
+ }),
6220
+ /**
6221
+ * 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.
6222
+ * @summary Change WHOIS profile for domain
6223
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6224
+ * @param {*} [options] Override http request option.
6225
+ * @throws {RequiredError}
6226
+ */
6227
+ changeWHOISProfileForDomainV1: (domainsV1WHOISChangeUpdateRequest_1, ...args_1) => __awaiter(this, [domainsV1WHOISChangeUpdateRequest_1, ...args_1], void 0, function* (domainsV1WHOISChangeUpdateRequest, options = {}) {
6228
+ // verify required parameter 'domainsV1WHOISChangeUpdateRequest' is not null or undefined
6229
+ assertParamExists('changeWHOISProfileForDomainV1', 'domainsV1WHOISChangeUpdateRequest', domainsV1WHOISChangeUpdateRequest);
6230
+ const localVarPath = `/api/domains/v1/whois/change`;
6231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6232
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6233
+ let baseOptions;
6234
+ if (configuration) {
6235
+ baseOptions = configuration.baseOptions;
6236
+ }
6237
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6238
+ const localVarHeaderParameter = {};
6239
+ const localVarQueryParameter = {};
6240
+ // authentication apiToken required
6241
+ // http bearer authentication required
6242
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6243
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6246
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6247
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISChangeUpdateRequest, localVarRequestOptions, configuration);
6248
+ return {
6249
+ url: toPathString(localVarUrlObj),
6250
+ options: localVarRequestOptions,
6251
+ };
6252
+ }),
5585
6253
  /**
5586
6254
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5587
6255
  * @summary Create WHOIS profile
@@ -5647,6 +6315,38 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5647
6315
  options: localVarRequestOptions,
5648
6316
  };
5649
6317
  }),
6318
+ /**
6319
+ * 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.
6320
+ * @summary Get pending IRTP verification
6321
+ * @param {string} domain Domain name
6322
+ * @param {*} [options] Override http request option.
6323
+ * @throws {RequiredError}
6324
+ */
6325
+ getPendingIRTPVerificationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
6326
+ // verify required parameter 'domain' is not null or undefined
6327
+ assertParamExists('getPendingIRTPVerificationV1', 'domain', domain);
6328
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
6329
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6332
+ let baseOptions;
6333
+ if (configuration) {
6334
+ baseOptions = configuration.baseOptions;
6335
+ }
6336
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6337
+ const localVarHeaderParameter = {};
6338
+ const localVarQueryParameter = {};
6339
+ // authentication apiToken required
6340
+ // http bearer authentication required
6341
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6342
+ 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
+ return {
6346
+ url: toPathString(localVarUrlObj),
6347
+ options: localVarRequestOptions,
6348
+ };
6349
+ }),
5650
6350
  /**
5651
6351
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5652
6352
  * @summary Get WHOIS profile list
@@ -5761,7 +6461,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5761
6461
  if (configuration) {
5762
6462
  baseOptions = configuration.baseOptions;
5763
6463
  }
5764
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6464
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5765
6465
  const localVarHeaderParameter = {};
5766
6466
  const localVarQueryParameter = {};
5767
6467
  // authentication apiToken required
@@ -5816,6 +6516,36 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5816
6516
  export const DomainsWHOISApiFp = function (configuration) {
5817
6517
  const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration);
5818
6518
  return {
6519
+ /**
6520
+ * 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.
6521
+ * @summary Cancel pending IRTP verification
6522
+ * @param {string} domain Domain name
6523
+ * @param {*} [options] Override http request option.
6524
+ * @throws {RequiredError}
6525
+ */
6526
+ cancelPendingIRTPVerificationV1(domain, options) {
6527
+ return __awaiter(this, void 0, void 0, function* () {
6528
+ var _a, _b;
6529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPendingIRTPVerificationV1(domain, options);
6530
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.cancelPendingIRTPVerificationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6531
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6532
+ });
6533
+ },
6534
+ /**
6535
+ * 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.
6536
+ * @summary Change WHOIS profile for domain
6537
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6538
+ * @param {*} [options] Override http request option.
6539
+ * @throws {RequiredError}
6540
+ */
6541
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6542
+ return __awaiter(this, void 0, void 0, function* () {
6543
+ var _a, _b;
6544
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options);
6545
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.changeWHOISProfileForDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6546
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6547
+ });
6548
+ },
5819
6549
  /**
5820
6550
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5821
6551
  * @summary Create WHOIS profile
@@ -5846,6 +6576,21 @@ export const DomainsWHOISApiFp = function (configuration) {
5846
6576
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5847
6577
  });
5848
6578
  },
6579
+ /**
6580
+ * 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.
6581
+ * @summary Get pending IRTP verification
6582
+ * @param {string} domain Domain name
6583
+ * @param {*} [options] Override http request option.
6584
+ * @throws {RequiredError}
6585
+ */
6586
+ getPendingIRTPVerificationV1(domain, options) {
6587
+ return __awaiter(this, void 0, void 0, function* () {
6588
+ var _a, _b;
6589
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPendingIRTPVerificationV1(domain, options);
6590
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getPendingIRTPVerificationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6591
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6592
+ });
6593
+ },
5849
6594
  /**
5850
6595
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5851
6596
  * @summary Get WHOIS profile list
@@ -5930,6 +6675,26 @@ export const DomainsWHOISApiFp = function (configuration) {
5930
6675
  export const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
5931
6676
  const localVarFp = DomainsWHOISApiFp(configuration);
5932
6677
  return {
6678
+ /**
6679
+ * 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.
6680
+ * @summary Cancel pending IRTP verification
6681
+ * @param {string} domain Domain name
6682
+ * @param {*} [options] Override http request option.
6683
+ * @throws {RequiredError}
6684
+ */
6685
+ cancelPendingIRTPVerificationV1(domain, options) {
6686
+ return localVarFp.cancelPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
6687
+ },
6688
+ /**
6689
+ * 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.
6690
+ * @summary Change WHOIS profile for domain
6691
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6692
+ * @param {*} [options] Override http request option.
6693
+ * @throws {RequiredError}
6694
+ */
6695
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6696
+ return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
6697
+ },
5933
6698
  /**
5934
6699
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5935
6700
  * @summary Create WHOIS profile
@@ -5950,6 +6715,16 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
5950
6715
  deleteWHOISProfileV1(whoisId, options) {
5951
6716
  return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
5952
6717
  },
6718
+ /**
6719
+ * 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.
6720
+ * @summary Get pending IRTP verification
6721
+ * @param {string} domain Domain name
6722
+ * @param {*} [options] Override http request option.
6723
+ * @throws {RequiredError}
6724
+ */
6725
+ getPendingIRTPVerificationV1(domain, options) {
6726
+ return localVarFp.getPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
6727
+ },
5953
6728
  /**
5954
6729
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5955
6730
  * @summary Get WHOIS profile list
@@ -6009,6 +6784,28 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
6009
6784
  * @extends {BaseAPI}
6010
6785
  */
6011
6786
  export class DomainsWHOISApi extends BaseAPI {
6787
+ /**
6788
+ * 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.
6789
+ * @summary Cancel pending IRTP verification
6790
+ * @param {string} domain Domain name
6791
+ * @param {*} [options] Override http request option.
6792
+ * @throws {RequiredError}
6793
+ * @memberof DomainsWHOISApi
6794
+ */
6795
+ cancelPendingIRTPVerificationV1(domain, options) {
6796
+ return DomainsWHOISApiFp(this.configuration).cancelPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
6797
+ }
6798
+ /**
6799
+ * 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.
6800
+ * @summary Change WHOIS profile for domain
6801
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6802
+ * @param {*} [options] Override http request option.
6803
+ * @throws {RequiredError}
6804
+ * @memberof DomainsWHOISApi
6805
+ */
6806
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6807
+ return DomainsWHOISApiFp(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
6808
+ }
6012
6809
  /**
6013
6810
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
6014
6811
  * @summary Create WHOIS profile
@@ -6031,6 +6828,17 @@ export class DomainsWHOISApi extends BaseAPI {
6031
6828
  deleteWHOISProfileV1(whoisId, options) {
6032
6829
  return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6033
6830
  }
6831
+ /**
6832
+ * 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.
6833
+ * @summary Get pending IRTP verification
6834
+ * @param {string} domain Domain name
6835
+ * @param {*} [options] Override http request option.
6836
+ * @throws {RequiredError}
6837
+ * @memberof DomainsWHOISApi
6838
+ */
6839
+ getPendingIRTPVerificationV1(domain, options) {
6840
+ return DomainsWHOISApiFp(this.configuration).getPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
6841
+ }
6034
6842
  /**
6035
6843
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
6036
6844
  * @summary Get WHOIS profile list